:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e3d4;
  --cream: #faf8f2;
  --ink: #161a13;
  --ink-soft: #2a3224;
  --olive: #546338;
  --olive-deep: #3b4628;
  --moss: #7d8b5a;
  --muted: #5c6354;
  --line: #d4d0c2;
  --serein: #efe6d4;
  --mora: #f3e0d4;
  --onda: #dbe6e4;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --header: 72px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --shadow: 0 28px 60px -32px #161a1340;
  --text: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --h1: clamp(2.5rem, 1.4rem + 4.2vw, 5.25rem);
  --h2: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --h3: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--header) + env(safe-area-inset-top, 0px));
  overflow-x: clip;
}
::selection { background: #d5dfb0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: pretty;
}
em { font-style: italic; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 120px); }
.kicker {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--olive);
  margin-bottom: 12px;
}
.fine-print {
  margin-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 400;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--olive);
  z-index: 300;
  transform-origin: left;
  transform: scaleX(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.button:hover { background: var(--olive-deep); }
.text-link {
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  background: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 200;
  padding: env(safe-area-inset-top, 0px) max(20px, calc((100% - 1180px) / 2 + 20px)) 0;
}
.header.has-scrolled {
  border-bottom-color: #d4d0c266;
  box-shadow: 0 8px 24px #161a1308;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}
.wordmark span { color: var(--olive); }
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.header nav > a {
  position: relative;
}
.header nav > a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.header nav > a:hover:after { transform: scaleX(1); }
.nav-cta {
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-cta:hover { background: var(--olive-deep); }
.menu-toggle { display: none; }

.hero {
  padding: clamp(28px, 4vw, 48px) 0 20px;
}
.hero-grid {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.hero-copy { padding-top: 8px; }
.hero h1 {
  font-size: var(--h1);
  font-weight: 600;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
}
.hero-price-chip {
  display: none;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-price-chip strong {
  font-family: var(--display);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.sprint-card {
  background: #ece8d8;
  border: 1px solid #cdc8b6;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}
.sprint-flag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--olive-deep);
  margin-bottom: 10px;
}
.sprint-card h2,
.offer-primary h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.sprint-price,
.price {
  font-family: var(--display);
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 8px 0 10px;
}
.sprint-price span,
.price span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.sprint-note {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.sprint-card ul,
.offer-deliverables {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.sprint-card li,
.offer-deliverables li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.sprint-card li:before,
.offer-deliverables li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 1px;
  background: var(--olive);
}
.sprint-card .button { width: 100%; }

.concept-marquee {
  position: relative;
  width: 100%;
  margin: 48px 0 0;
  overflow: hidden;
}
.concept-track {
  display: flex;
  width: max-content;
  animation: concept-drift 90s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.concept-marquee.is-static {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.concept-marquee.is-static::-webkit-scrollbar { display: none; }
.concept-marquee.is-static .concept-track { animation: none; }
.concept-marquee.is-static .concept-card { scroll-snap-align: center; }
.concept-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}
.concept-card {
  position: relative;
  display: block;
  flex: 0 0 clamp(260px, 28vw, 400px);
  width: clamp(260px, 28vw, 400px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd6c6;
  box-shadow: var(--shadow);
  color: #2a261c;
}
.concept-card img {
  width: 100%;
  height: 100%;
  transition: transform 1.1s var(--ease);
}
.theme-serein img { object-position: 50% 72%; }
.theme-mora img { object-position: 50% 62%; }
.theme-onda img { object-position: 50% 38%; }
.concept-card:hover img { transform: scale(1.035); }
.theme-mora { color: #fff6de; }
.theme-onda { color: #163f4e; }
.concept-brand {
  position: absolute;
  top: 5.5%;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.concept-brand small {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.concept-title {
  position: absolute;
  left: 7%;
  top: 15%;
  font-family: var(--display);
  font-size: clamp(1.85rem, 2.6vw, 2.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.concept-title em { font-style: italic; }
.concept-footer {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  font-size: 0.8125rem;
  font-weight: 500;
}
.hero-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
  padding-inline: 20px;
}
@keyframes concept-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8%;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2,
.faq h2,
.process h2,
.contact h2,
dialog h2 {
  font-size: var(--h2);
  font-weight: 600;
  max-width: 18ch;
}
.section-head > p {
  font-size: var(--lead);
  color: var(--muted);
}

.work { background: #1b211b; color: #edf0df; }
.work .kicker,
.work .fine-print { color: #b7c3a6; }
.work .section-head > p { color: #c3cdb4; }

.project-tabs {
  display: flex;
  border-bottom: 1px solid #5f6d535c;
  margin-bottom: 24px;
}
.project-tabs > button {
  width: 33.333%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 16px 12px 16px 0;
  color: #aebda0;
  border-bottom: 2px solid transparent;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: left;
}
.project-tabs > button span,
.project-tabs small {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}
.project-tabs small {
  flex-basis: 100%;
  margin: 0;
  padding-left: 28px;
  color: #9eae8c;
}
.project-tabs > button[aria-selected="true"] {
  color: #e2edc4;
  border-bottom-color: #cadb9e;
}

.project-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  background: var(--serein);
  color: #2c3020;
  box-shadow: var(--shadow);
}
.project-panel.theme-mora { background: var(--mora); }
.project-panel.theme-onda { background: var(--onda); }
.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}
.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.project-visual #project-brand {
  position: absolute;
  top: 6%;
  left: 7%;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}
.theme-mora .project-visual { color: #fff6de; }
.theme-onda .project-visual { color: #163f4e; }
#project-headline {
  position: absolute;
  top: 14%;
  left: 7%;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.project-visual-label {
  position: absolute;
  bottom: 5%;
  left: 7%;
  font-size: 0.8125rem;
  font-weight: 500;
}
.project-thinking {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
}
.project-thinking h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  margin: 16px 0 28px;
}
.project-thinking h3 em { color: #6f7d52; }
.theme-mora .project-thinking h3 em { color: #b0543f; }
.theme-onda .project-thinking h3 em { color: #4f7c7d; }
.project-detail { margin-bottom: 22px; }
.project-detail span,
.project-hypothesis span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.project-detail p {
  font-size: 1rem;
  line-height: 1.65;
  color: #5f6654;
  max-width: 38ch;
}
.theme-mora .project-detail p,
.theme-mora .project-thinking .kicker { color: #885c4b; }
.theme-onda .project-detail p,
.theme-onda .project-thinking .kicker { color: #4f7075; }
.project-hypothesis {
  padding-top: 22px;
  border-top: 1px solid #a9b38d80;
}
.theme-mora .project-hypothesis { border-color: #c4a190; }
.theme-onda .project-hypothesis { border-color: #91b0ad; }
.project-hypothesis p {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-top: 8px;
  max-width: 28ch;
}
.project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.9375rem;
}
.project-controls div { display: flex; gap: 20px; }
.project-controls button {
  min-height: 44px;
  border-bottom: 1px solid #889779;
  font-size: 0.9375rem;
  font-weight: 500;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.why-grid span {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--olive);
}
.why-grid h3 {
  margin: 16px 0 12px;
  font-size: var(--h3);
}
.why-grid p {
  color: var(--muted);
  max-width: 36ch;
}

.chapter { padding: 0; }
.chapter-frame {
  position: relative;
  margin: 0 20px;
  height: min(680px, 72vw);
  min-height: 420px;
  overflow: hidden;
  background: #1f281e;
  color: #f4f2e7;
}
.chapter-frame img {
  position: absolute;
  inset: -5% 0;
  width: 100%;
  height: 110%;
  max-width: none;
  transform: translate3d(0, var(--scene-offset, 0px), 0);
}
.chapter-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #15201699 0%, transparent 68%);
}
.chapter-copy {
  position: absolute;
  left: 6%;
  top: 22%;
  max-width: 16ch;
}
.chapter-copy .kicker { color: #c3d0b4; }
.chapter-copy h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  margin: 16px 0 18px;
}
.chapter-copy p {
  font-size: var(--lead);
  line-height: 1.55;
  color: #c5ceba;
}

.offer-primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: clamp(28px, 4vw, 48px);
  background: #e7ead8;
  border: 1px solid #c5ccb0;
}
.offer-primary-copy p {
  font-size: var(--lead);
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 24px;
}
.offer-deliverables li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 8px;
  padding-left: 0;
  align-items: baseline;
  font-size: 1rem;
  border-bottom: 1px solid #c5ccb066;
  padding-bottom: 10px;
}
.offer-deliverables li:before { display: none; }
.offer-deliverables strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--olive-deep);
}

.offer-secondary {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  background: transparent;
}
.offer-secondary h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.offer-secondary p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.process { background: #ece8da; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}
.process-steps li {
  border-top: 1px solid #c3c6b4;
  padding-top: 18px;
}
.process-steps span {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--olive);
}
.process-steps h3 { margin: 14px 0 10px; }
.process-steps p { color: var(--muted); }

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fit-grid article {
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.fit-grid article:last-child { background: transparent; }
.fit-grid h3 { margin-bottom: 18px; }
.fit-grid li {
  padding: 12px 0;
  border-top: 1px solid #d5d3c4;
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8%;
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
.expand {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.expand:before,
.expand:after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 1px;
  background: var(--olive);
  transition: transform .35s var(--ease);
}
.expand:after { transform: rotate(90deg); }
details[open] .expand:after { transform: rotate(0); }
.faq-list p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 54ch;
}

.contact {
  background: #d7e0bc;
  color: #24301c;
  padding: 80px 0 28px;
}
.contact .kicker { color: #4d5f36; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: 12px 0 32px;
}
.contact h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 12ch;
}
.contact-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 48px;
}
.contact-meta p { color: #556744; max-width: 42ch; }
.contact-meta a {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  border-bottom: 1px solid #95a575;
  padding-bottom: 4px;
}
.footer-wordmark {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(4.5rem, 18vw, 12rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
  border-top: 1px solid #9aaa7b75;
  padding: 36px 0 24px;
}
.footer-wordmark span { color: var(--olive-deep); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #9aaa7b75;
  padding: 18px 0 8px;
  font-size: 0.875rem;
  color: #62764e;
}

dialog {
  width: min(520px, calc(100% - 24px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  padding: 36px 32px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #161a13a8;
  backdrop-filter: blur(8px);
}
.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.dialog-close span {
  position: relative;
  width: 18px;
  height: 18px;
}
.dialog-close span:before,
.dialog-close span:after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 1px;
  background: currentColor;
}
.dialog-close span:before { transform: rotate(45deg); }
.dialog-close span:after { transform: rotate(-45deg); }
dialog h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 8px 0 12px; max-width: none; }
.dialog-lead {
  color: var(--muted);
  margin-bottom: 22px;
}
form label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 14px;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #c8ceba;
  background: #f9f8f1;
  border-radius: 0;
  font-size: 1rem;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}
dialog .button { width: 100%; margin-top: 8px; }
#form-status { min-height: 0; }
#form-status:not(:empty) { margin-bottom: 8px; }
dialog .button[disabled] { opacity: .55; }
.form-note, #form-status {
  font-size: 0.9375rem;
  color: #69725a;
  margin-top: 12px;
}
#form-status.is-success { color: #3d4d2c; }
#form-status.is-error { color: #8a3a2a; }
#form-status a { text-decoration: underline; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reveal { opacity: 1; }
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
}
.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-head,
  .faq-layout,
  .offer-primary,
  .offer-secondary,
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-price-chip { display: block; }
  .offer-secondary { grid-template-columns: 1fr; }
  .project-thinking { padding: 28px; }
  .project-panel,
  .project-visual { min-height: 520px; }
  .chapter-copy h2 { font-size: 3.4rem; }
}

@media (max-width: 820px) {
  :root { --header: 64px; }
  html, body { overflow-x: clip; max-width: 100%; }
  .container,
  .hero-grid { width: min(1180px, calc(100% - 32px)); }
  .header nav {
    display: none;
    position: fixed;
    top: calc(var(--header) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 12px 6% 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 24px 36px #25351d1a;
    max-height: calc(100dvh - var(--header) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  .header nav.open { display: flex; }
  .header nav > a {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .header nav > a:after { display: none; }
  .header nav .nav-cta { margin-top: 18px; min-height: 52px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 500;
  }
  .menu-lines {
    width: 18px;
    height: 12px;
    position: relative;
  }
  .menu-lines:before,
  .menu-lines:after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform .3s var(--ease);
  }
  .menu-lines:before { top: 3px; }
  .menu-lines:after { top: 9px; }
  html.nav-open { overflow: hidden; }
  html.nav-open .menu-lines:before { transform: translateY(3px) rotate(45deg); }
  html.nav-open .menu-lines:after { transform: translateY(-3px) rotate(-45deg); }

  .hero { padding-top: 20px; }
  .hero h1 { max-width: 12ch; }
  .hero-actions .button,
  .sprint-card .button,
  .offer-primary .button,
  .contact .button { width: 100%; }
  .concept-marquee { margin-top: 32px; }
  .concept-card {
    flex: 0 0 min(72vw, 280px);
    width: min(72vw, 280px);
  }
  .concept-track { animation-duration: 70s; }
  .project-tabs > button { font-size: 1.15rem; }
  .project-tabs small { display: none; }
  .project-panel { grid-template-columns: 1fr; min-height: 0; }
  .project-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
    height: min(46vh, 340px);
    max-width: calc(min(46vh, 340px) * 0.8);
    width: 100%;
    margin: 0 auto;
    border-radius: 6px;
  }
  #project-headline {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    line-height: 1.05;
  }
  .chapter-frame {
    margin: 0;
    height: min(46vh, 340px);
    min-height: 0;
  }
  .chapter-shade { background: linear-gradient(180deg, transparent 20%, #122015d4 100%); }
  .chapter-copy {
    top: auto;
    bottom: 36px;
    max-width: 88%;
  }
  .why-grid,
  .fit-grid,
  .process-steps { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-row,
  .contact-meta { flex-direction: column; align-items: start; }
  dialog { padding: 28px 18px; }
  input, select, textarea { font-size: 16px; }
  footer { flex-wrap: wrap; }
  footer span:nth-child(2) { order: 3; flex-basis: 100%; }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .text-link { justify-content: center; }
}

@media (max-width: 820px) {
  .motion-ready .reveal,
  .motion-ready .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .concept-track { transform: none; animation: none !important; }
  .concept-marquee { overflow-x: auto; }
  .concept-group + .concept-group { display: none; }
  .chapter-frame img { transform: none; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* Spec Portfolio Callout Banner in #work */
.spec-portfolio-callout {
  margin-top: 40px;
  background: var(--dark, #11120f);
  color: #fff;
  border: 1px solid #2e3528;
  border-radius: 4px;
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}
.spec-callout-text .kicker {
  color: #a4e0b9;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}
.spec-callout-text h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 12px;
  text-wrap: balance;
}
.spec-callout-text p {
  color: #c0c3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}
.spec-callout-text strong {
  color: #fff;
}
.spec-callout-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.spec-callout-action .button {
  background: #e8ff65;
  color: #11120f;
  font-weight: 700;
  border-color: #e8ff65;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.spec-callout-action .button:hover {
  background: #d4ec53;
}
.spec-brand-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.spec-brand-pills a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 100px;
  background: #1e221b;
  border: 1px solid #32382c;
  color: #c5ccc0;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
}
.spec-brand-pills a:hover {
  background: #2b3226;
  color: #fff;
  border-color: #a4e0b9;
}

@media (max-width: 820px) {
  .spec-portfolio-callout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
    margin-top: 32px;
  }
  .spec-callout-text h3 {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
    line-height: 1.32;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
  }
  .spec-callout-text p {
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .spec-callout-action {
    width: 100%;
    gap: 12px;
  }
  .spec-callout-action .button {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }
  .spec-brand-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .spec-brand-pills a {
    text-align: center;
    padding: 7px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


