:root {
  --bg: #f7f5f0;
  --bg-deep: #0b0c0f;
  --paper: #ffffff;
  --text: #0b0c0f;
  --muted: #6a6f78;
  --line: rgba(11, 12, 15, 0.1);
  --line-strong: rgba(11, 12, 15, 0.18);
  --header-h: 72px;
  --radius: 28px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "Segoe UI Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(11, 12, 15, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.94);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo em {
  font-style: normal;
  font-size: 0.72rem;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  top: -0.35em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-dark {
  background: var(--text);
  color: var(--bg);
}
.btn-dark:hover { background: #000; color: var(--bg); }

.btn-light {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-light:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.btn-on-dark {
  background: var(--bg);
  color: var(--text);
}
.btn-on-dark:hover { background: #fff; color: var(--text); }

.btn-ghost-on-dark {
  background: transparent;
  color: rgba(247, 245, 240, 0.85);
  border-color: rgba(247, 245, 240, 0.22);
}
.btn-ghost-on-dark:hover {
  color: #fff;
  border-color: rgba(247, 245, 240, 0.5);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--text);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 14px;
  min-height: 280px;
}

.hero-card {
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: min(100%, 280px);
  max-height: 170px;
  object-fit: contain;
}

.hero-card--mix { background: linear-gradient(165deg, #dff7f3, #fff 70%); }
.hero-card--paint { background: linear-gradient(165deg, #ffe4f1, #fff 70%); transform: translateY(28px); }
.hero-card--fortiva {
  background: linear-gradient(165deg, #0b0c0f, #1a2030);
  border-color: rgba(255, 255, 255, 0.08);
  position: relative;
}

.hero-card--fortiva img {
  width: min(100%, 210px);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.55);
}

/* Marquee / strip */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: drift 38s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track span { white-space: nowrap; }
.marquee-track strong { color: var(--text); font-weight: 650; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section heads */

.section {
  padding: 110px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 18px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42ch;
  line-height: 1.55;
}

/* Work chapters */

.work-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 56px;
}

.work {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.work--reverse { grid-template-columns: 0.85fr 1.15fr; }
.work--reverse .work-visual { order: 2; }
.work--reverse .work-copy { order: 1; }

.work--dark {
  background: var(--bg-deep);
  border-color: #000;
  color: var(--bg);
}

.work--dark .work-copy p,
.work--dark .work-meta,
.work--dark .work-index {
  color: rgba(247, 245, 240, 0.62);
}

.work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  min-height: 320px;
}

.work-visual img {
  width: min(100%, 420px);
  max-height: 280px;
  object-fit: contain;
}

.work--mix .work-visual { background: linear-gradient(160deg, #c8f3ec 0%, #f7fffd 55%, #fff 100%); }
.work--paint .work-visual { background: linear-gradient(160deg, #ffd0e6 0%, #fff7fb 55%, #fff 100%); }
.work--bubbles .work-visual { background: linear-gradient(160deg, #d8ceff 0%, #f7f4ff 55%, #fff 100%); }
.work--fortiva .work-visual {
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.18), transparent 40%),
    linear-gradient(160deg, #0b0c0f, #151b28);
}

.work--fortiva .work-visual img {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  max-height: 240px;
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

.work-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.work-copy h3 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 16px;
}

.work-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34ch;
  margin-bottom: 28px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.work-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.work--dark .work-meta span {
  border-color: rgba(247, 245, 240, 0.16);
  color: rgba(247, 245, 240, 0.72);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Studio */

.studio-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.studio-block p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 36ch;
}

.studio-points {
  list-style: none;
  display: grid;
  gap: 18px;
}

.studio-points li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.studio-points strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.studio-points span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Contact */

.contact-band {
  background: var(--bg-deep);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.contact-band .section-label { color: rgba(247, 245, 240, 0.45); }
.contact-band .section-title { color: var(--bg); margin-bottom: 14px; }
.contact-band p {
  color: rgba(247, 245, 240, 0.65);
  font-size: 1.08rem;
  max-width: 36ch;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 245, 240, 0.12);
  border-radius: 22px;
  padding: 28px;
}

.contact-card p {
  font-size: 0.95rem;
  margin: 10px 0 22px;
}

.contact-card .email {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--bg);
  display: inline-block;
  margin-bottom: 18px;
}

.publisher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: rgba(247, 245, 240, 0.45);
  font-size: 0.85rem;
}

.publisher img {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Product pages */

.product-hero {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.product-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.product-hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 36ch;
  margin-bottom: 28px;
}

.product-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: var(--shadow);
}

.product-panel img {
  width: min(100%, 380px);
  max-height: 260px;
  object-fit: contain;
}

.product-panel--mix { background: linear-gradient(160deg, #c8f3ec, #fff); }
.product-panel--paint { background: linear-gradient(160deg, #ffd0e6, #fff); }
.product-panel--bubbles { background: linear-gradient(160deg, #d8ceff, #fff); }

.meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 64px;
}

.meta-row div {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.meta-row dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.meta-row dd {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.soft-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.soft-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
}

.soft-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.soft-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cta-band {
  margin: 72px 0;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cta-band p { color: var(--muted); max-width: 40ch; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Legal / 404 */

.legal {
  padding: 72px 0 100px;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.legal-updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal section { margin-bottom: 28px; }
.legal h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }

.error {
  padding: 120px 0;
  text-align: center;
}

.error h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
}

.error p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-stage,
  .work,
  .work--reverse,
  .studio-block,
  .contact-band,
  .product-hero,
  .meta-row,
  .card-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .hero-card--paint { transform: none; }
  .work--reverse .work-visual,
  .work--reverse .work-copy { order: initial; }
  .hero { min-height: auto; padding-top: 40px; }
  .section { padding: 80px 0; }
}

@media (max-width: 720px) {
  .wrap,
  .wrap-narrow { width: calc(100% - 32px); }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    background: rgba(247, 245, 240, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s var(--ease), opacity 0.2s ease, padding 0.3s var(--ease);
  }

  .nav-links.open {
    max-height: 360px;
    padding: 12px 24px 24px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: 14px;
    justify-content: center;
  }

  .hero-actions .btn,
  .work-actions .btn,
  .actions .btn {
    width: 100%;
  }

  .marquee-track { animation-duration: 28s; }
}
