/* =========================================================
   NAZATEKH
   Direction: type only (taste-skill seed 328587432)
   Brand colours from the logo: cyan #00d8ff on near-black and paper
========================================================= */

:root {
  --bg: #f1f4f3;
  --surface: #e2e9e8;
  --ink: #0d1517;
  --muted: #45535a;

  --dark: #0b1214;
  --dark-surface: #18242a;
  --dark-raised: #22323a;
  --dark-ink: #eef3f2;
  --dark-muted: #a3b4b6;

  --accent: #00d8ff;
  --accent-strong: #6be8ff;
  --accent-ink: #0b1214;

  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five sizes, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1rem + 2vw, 2.75rem);
  --step-display: clamp(2.75rem, 0.9rem + 9.1vw, 9.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}


/* =========================================================
   RESET
========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-weight: 600;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nums { font-variant-numeric: tabular-nums; }


/* =========================================================
   TYPE ROLES
========================================================= */

.display {
  font-size: var(--step-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.head {
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.small {
  font-size: var(--step-small);
  line-height: 1.45;
}

.muted { color: var(--muted); }


/* =========================================================
   LAYOUT
========================================================= */

.wrap { padding-inline: var(--margin); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section { padding-block: calc(var(--section) / 2); }

.field-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.field-dark .muted { color: var(--dark-muted); }

.field-surface { background: var(--surface); }


/* =========================================================
   CONTROLS
========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-hover) ease;
}

.button:active { transform: scale(0.97); }

.button-ink {
  background: var(--ink);
  color: var(--bg);
}

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease;
}

.link-plain {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .button-ink:hover { background-color: #26343a; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.12em; }
}


/* =========================================================
   TOP BAR (corner links, no bar chrome)
========================================================= */

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem var(--margin) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  width: auto;
  height: 26px;
  background: none;
}

.wordmark img + img {
  height: 18px;
  margin-top: 8px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--step-small);
  font-weight: 500;
}

.menu-button {
  display: none;
  min-height: 3rem;
  padding: 0 0.25rem;
  font-size: var(--step-small);
  font-weight: 600;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: var(--margin);
  right: var(--margin);
  padding: 1rem 1.25rem 1.25rem;
  background: var(--dark-raised);
  color: var(--dark-ink);
}

.mobile-menu.active { display: grid; gap: 0.25rem; }

.mobile-menu a {
  padding: 0.6rem 0;
  font-size: var(--step-lead);
  font-weight: 500;
  text-decoration: none;
}


/* =========================================================
   HERO: the quote is the headline
========================================================= */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(0, 40ch) 1fr;
  grid-template-areas:
    "chip-a .    ."
    "title title title"
    "chip-b note chip-c";
  align-content: center;
  align-items: center;
  row-gap: 2.5rem;
  column-gap: var(--gutter);
  padding: 2rem var(--margin) 5rem;
}

.hero-title {
  grid-area: title;
  justify-self: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hero-note {
  grid-area: note;
  align-self: start;
  text-align: center;
  color: var(--dark-ink);
}

.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.lines [data-line] { display: block; }


/* the three controls, drawn as pieces of a quoting tool */

.chip {
  width: min(100%, 22rem);
  padding: 0.9rem 1rem 1rem;
  background: var(--dark-surface);
  color: var(--dark-ink);
  border-radius: var(--radius);
  font-size: var(--step-small);
  transform: rotate(var(--tilt, 0deg));
}

.chip-a { grid-area: chip-a; justify-self: start; margin-left: 8%; --tilt: -3deg; }
.chip-b { grid-area: chip-b; justify-self: start; align-self: start; --tilt: 2deg; }
.chip-c { grid-area: chip-c; justify-self: end; align-self: start; --tilt: -2deg; }

.chip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: var(--dark-muted);
}

.chip-head output {
  color: var(--dark-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chip fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.segments label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0 0.4rem;
  background: var(--dark-raised);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.segments label:active { transform: scale(0.96); }

.segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segments label:has(input:checked) {
  background: var(--accent);
  color: var(--accent-ink);
}

.segments label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 500;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  flex: none;
  position: relative;
  width: 3.25rem;
  height: 1.75rem;
  background: var(--dark-raised);
  transition: background-color var(--t-ui) ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--dark-ink);
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}

.switch input:checked + .switch-track { background: var(--accent); }

.switch input:checked + .switch-track::after {
  transform: translateX(1.5rem);
  background: var(--accent-ink);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =========================================================
   PAGE HEADER (inner pages)
========================================================= */

.page-head {
  padding: clamp(5rem, 12vw, 10rem) var(--margin) clamp(4rem, 8vw, 7rem);
}

.page-head h1 { max-width: 11ch; }

.page-head p {
  max-width: 44ch;
  margin-top: 2.5rem;
}


/* =========================================================
   WORK: oversized visual, small cluster
========================================================= */

.work {
  overflow: hidden;
}

.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}

.project + .project { margin-top: 140px; }

.project-visual {
  grid-column: 1 / 8;
  margin-left: calc(var(--margin) * -1);
  height: var(--h, 80svh);
  min-height: 420px;
  overflow: hidden;
  background: var(--surface);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 20% 50%);
  transform-origin: var(--pos, 20% 50%);
}

.project-cluster {
  grid-column: 9 / 13;
}

.project-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-text {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  margin-top: 28px;
}

.project-text h3 {
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.project-text p { font-size: var(--step-body); line-height: 1.45; }

.project-stack {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--step-small);
}

a.project { text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .project-visual img { transition: transform 900ms var(--ease-soft); }
  a.project:hover .project-visual img { transform: scale(1.04); }
  a.project:hover h3 { text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 0.06em; }
}


/* =========================================================
   STATEMENT FIELD: one plan as a sentence
========================================================= */

.statement {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.statement h2 {
  font-size: var(--step-display);
  max-width: 14ch;
}

.chip-split {
  display: grid;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.chip-split div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.chip-split dt { color: var(--dark-muted); }
.chip-split dd { font-weight: 600; }

.statement-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-top: 64px;
}

.statement-foot p { grid-column: 1 / 7; }

.statement-actions {
  grid-column: 10 / 13;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 1rem;
}


/* =========================================================
   HOW IT RUNS: call and response column
========================================================= */

.exchange-col {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.exchange-col > * { grid-column: 5 / 11; }

.exchange + .exchange { margin-top: 88px; }

.exchange h3 {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.exchange .say {
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  font-size: var(--step-body);
}

.say-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.reply {
  margin-top: 16px;
  margin-left: 56px;
  padding: 20px;
  background: var(--dark);
  color: var(--dark-ink);
  font-size: var(--step-body);
}

.reply .say-label { color: var(--dark-muted); }

.quote-lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.quote-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.quote-lines .total {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--dark-raised);
  font-weight: 600;
}

.exchange-final {
  grid-column: 5 / 13 !important;
}

.exchange-final .result {
  margin-top: 16px;
  margin-left: 56px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.exchange-final .result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.exchange-final h3,
.exchange-final .say { max-width: calc(6 / 9 * 100%); }

.result-caption {
  margin-top: 0.75rem;
  margin-left: 56px;
  color: var(--muted);
  font-size: var(--step-small);
}


/* =========================================================
   ABOUT: side facts, wide paragraph
========================================================= */

.about-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.about-row > :first-child { grid-column: 1 / 4; }
.about-row > :last-child { grid-column: 5 / 13; }

.about-row + .about-row { margin-top: 120px; }

.facts {
  display: grid;
  gap: 20px;
  align-content: start;
  width: 160px;
  font-size: var(--step-small);
}

.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }

.about-paragraph {
  max-width: 44ch;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.about-paragraph + .about-paragraph { margin-top: 1em; }

.record-word {
  font-size: var(--step-small);
  font-weight: 500;
}

.record-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 64px;
}

.record-lists ul {
  width: min(100%, 300px);
  display: grid;
  gap: 10px;
  font-size: var(--step-small);
}

.record-lists li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.record-lists li span:last-child { color: var(--muted); text-align: right; }

.record-lists h3 {
  margin-bottom: 14px;
  font-size: var(--step-small);
  font-weight: 600;
}


/* =========================================================
   FAQ: answers as reading text
========================================================= */

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.faq h2 { grid-column: 1 / 4; }

.faq-text {
  grid-column: 5 / 13;
  columns: 2;
  column-gap: 56px;
}

.faq-text p {
  margin-bottom: 20px;
  break-inside: avoid;
  line-height: 1.55;
}

.faq-text strong { font-weight: 500; }


/* =========================================================
   PACKAGES (pricing page)
========================================================= */

.packages { display: grid; gap: 8px; margin-top: clamp(3rem, 6vw, 5rem); }

.package {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.25rem;
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  background: var(--surface);
}

.package h3 { grid-column: 1 / 5; }
.package .price { grid-column: 5 / 8; font-variant-numeric: tabular-nums; }
.package .for { grid-column: 8 / 13; }

.package ul {
  grid-column: 8 / 13;
  display: grid;
  gap: 0.35rem;
}

.package li::before {
  content: "+ ";
  color: var(--muted);
}

.package .button { grid-column: 8 / 13; justify-self: start; margin-top: 0.5rem; }

.addons {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.addons h2 { grid-column: 1 / 5; }

.addons ul {
  grid-column: 6 / 13;
  display: grid;
  gap: 1.5rem;
}

.addons li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  font-size: var(--step-lead);
  letter-spacing: -0.015em;
}

.addons li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }


/* =========================================================
   CONTACT: one field
========================================================= */

.contact {
  padding-block: 200px 160px;
}

.contact-col {
  width: min(100%, 520px);
  margin-left: calc((100% - 11 * var(--gutter)) / 3 + 4 * var(--gutter));
}

.contact h2 {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.contact h2 span { display: block; }
.contact h2 .muted { color: var(--dark-muted); }

.one-field {
  position: relative;
  margin-top: 28px;
}

.one-field input {
  width: 100%;
  height: 64px;
  padding: 0 4.5rem 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-size: max(1rem, var(--step-body));
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--t-hover) ease;
}

.one-field input::placeholder { color: #5f6d72; }

.one-field input:focus { outline-color: var(--accent); }

.one-field button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.one-field button:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .one-field button:hover { background: var(--accent-strong); }
}

.one-field button:disabled { opacity: 0.6; cursor: default; }

.contact-next {
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: var(--step-small);
}

.contact-status {
  margin-top: 12px;
  font-size: var(--step-small);
  font-weight: 500;
}

.contact-rows {
  display: grid;
  gap: 12px;
  margin-top: 72px;
  font-size: var(--step-small);
}

.contact-rows div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
}

.contact-rows dt { color: var(--dark-muted); }


/* =========================================================
   FOOTER: contact as the headline
========================================================= */

.site-footer {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  padding: 40px var(--margin) 28px;
  background: var(--accent);
  color: var(--accent-ink);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  font-size: 15px;
}

.footer-top .wordmark { grid-column: 1 / 3; }
.footer-notes { grid-column: 3 / 9; display: grid; gap: 0.2rem; }
.footer-top .back { grid-column: 11 / 13; justify-self: end; }

.footer-call {
  margin-top: auto;
  padding-top: 6rem;
}

.footer-call a {
  display: inline-block;
  font-size: min(var(--step-display), 9.4vw);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
}

.footer-call p {
  margin-bottom: 1rem;
  font-size: var(--step-lead);
  font-weight: 500;
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: var(--step-small);
}

.footer-meta nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-meta p:last-child { text-align: right; }


/* =========================================================
   MOTION (content stays visible without script or with reduced motion)
========================================================= */

@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-expo) forwards;
    animation-delay: calc(var(--i, 0) * 110ms + 150ms);
  }

  .js .lines.is-changing [data-line] {
    animation: line-swap 620ms var(--ease-expo) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-rise] {
    opacity: 0;
    transform: translateY(18px) rotate(var(--tilt, 0deg));
    animation: rise 800ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 700ms);
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms var(--ease-out),
      transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .shutter[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js .shutter[data-reveal] img {
    transform: scale(1.18);
    transition: transform 1800ms var(--ease-soft);
  }

  .js .shutter[data-reveal].is-in img { transform: none; }
}

@keyframes line-up { to { transform: none; } }

@keyframes line-swap {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {
  .topbar-links .link { display: none; }
  .menu-button { display: inline-flex; align-items: center; }

  .hero-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "chip-a chip-a"
      "title title"
      "chip-b chip-c"
      "note note";
    row-gap: 1.5rem;
  }

  .chip { --tilt: 0deg !important; width: 100%; }
  .chip-a { margin-left: 0; justify-self: stretch; }
  .chip-b, .chip-c { justify-self: stretch; }
  .hero-note { max-width: 40ch; justify-self: center; }

  .project-visual { display: none; }
  .project-cluster { grid-column: 1 / 13; }
  .project-thumb { width: 100%; }
  .project-text { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.25rem; }
  .project-text h3 { font-size: var(--step-head); }
  .project + .project { margin-top: 88px; }

  .statement { min-height: 0; }
  .statement-foot { margin-top: 2rem; }
  .statement-foot p,
  .statement-actions { grid-column: 1 / 13; justify-self: start; justify-items: start; }
  .statement-actions { margin-top: 2rem; }

  .exchange-col > *, .exchange-final { grid-column: 1 / 13 !important; }
  .reply, .exchange-final .result, .result-caption { margin-left: 0; }
  .reply { margin-top: 24px; }
  .exchange-final h3, .exchange-final .say { max-width: none; }

  .about-row { grid-template-columns: 1fr; row-gap: 2rem; }
  .about-row > :first-child, .about-row > :last-child { grid-column: 1 / -1; }
  .about-row .facts { order: 2; width: auto; grid-template-columns: 1fr 1fr; }
  .about-paragraph { max-width: none; }

  .faq h2, .faq-text { grid-column: 1 / 13; }
  .contact-col { margin-left: 0; }
  .faq-text { columns: 1; margin-top: 2rem; }

  .package h3, .package .price, .package .for, .package ul, .package .button { grid-column: 1 / 13; }
  .addons h2, .addons ul { grid-column: 1 / 13; }
  .addons ul { margin-top: 2rem; }

  .site-footer { min-height: 0; padding-bottom: 24px; }
  .footer-call { padding-top: 4.5rem; }
  .footer-top { grid-template-columns: 1fr auto; row-gap: 1.5rem; }
  .footer-top .wordmark { grid-column: 1; }
  .footer-top .back { grid-column: 2; }
  .footer-notes { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "note" "chip-a" "chip-b" "chip-c";
    align-content: start;
    row-gap: 4px;
    padding: 3.5rem var(--margin) 3.5rem;
  }
  .hero-title { justify-self: start; text-align: left; }
  .hero-note { justify-self: start; text-align: left; margin: 1.25rem 0 2.25rem; }
  .chip { padding: 0.75rem 0.875rem 0.875rem; }
  .chip-head { margin-bottom: 0.5rem; }
  .chip-split { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .chip-split div { flex-direction: column; justify-content: flex-start; gap: 0.1rem; }
  .topbar { padding-top: 1.25rem; }
  .topbar-links { gap: 1rem; }
  .topbar .button { min-height: 2.75rem; padding: 0 1rem; }
  .contact { padding-block: 120px 96px; }
  .contact-rows div { grid-template-columns: 1fr; gap: 0.15rem; }
  .footer-call a { font-size: var(--step-display); white-space: normal; }
  .footer-call .tel-break { display: block; }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-meta p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =========================================================
   INNER PAGES: page head with a second column
========================================================= */

.page-head.has-aside {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 3rem;
  align-items: end;
}

.page-head.has-aside > div:first-child { grid-column: 1 / 8; }
.page-head.has-aside > aside { grid-column: 8 / 13; }

.page-head h1.wide { max-width: none; }

.jump-list {
  display: grid;
  gap: 0.35rem;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.jump-list a { text-decoration: none; color: var(--dark-ink); }
.jump-list a span { color: var(--dark-muted); font-size: var(--step-small); font-weight: 400; margin-left: 0.5rem; }

@media (hover: hover) and (pointer: fine) {
  .jump-list a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.06em; }
}

.portrait {
  width: min(100%, 26rem);
  aspect-ratio: 4 / 5;
  margin-left: auto;
  /* the portrait, cropped from the personal portfolio screenshot */
  background-color: var(--dark-surface);
  background-image: url("/images/PORTFOLIO/Screenshot%202025-12-11%20213945.png");
  background-repeat: no-repeat;
  background-size: 622% auto;
  background-position: 29% 57%;
}

.portrait-caption {
  margin-top: 0.75rem;
  color: var(--dark-muted);
  font-size: var(--step-small);
  text-align: right;
}

.page-head .reply { margin: 0; }


/* package rows carry an example of the kind of site */

.package.with-example .example { grid-column: 1 / 6; grid-row: 1 / span 6; }
.package.with-example h3,
.package.with-example .price,
.package.with-example .for,
.package.with-example ul,
.package.with-example .button { grid-column: 7 / 13; }

.package .example figure,
.package .example .shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.package .example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.package .example figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: var(--step-small);
}


/* what we build: name and description rows */

.build-list {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.build-list li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
}

.build-list h3 { grid-column: 1 / 5; }
.build-list p { grid-column: 5 / 9; }
.build-list .from { grid-column: 5 / 9; grid-row: 2; margin-top: 0.6rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.build-list .thumb { grid-column: 10 / 13; grid-row: 1 / span 2; align-self: start; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.build-list .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

@media (max-width: 960px) {
  .page-head.has-aside > div:first-child,
  .page-head.has-aside > aside { grid-column: 1 / 13; }
  .portrait { margin-left: 0; width: min(100%, 420px); }
  .portrait-caption { text-align: left; }
  .package.with-example .example { grid-row: auto; grid-column: 1 / 13; margin-bottom: 0.5rem; }
  .package.with-example h3,
  .package.with-example .price,
  .package.with-example .for,
  .package.with-example ul,
  .package.with-example .button { grid-column: 1 / 13; }
  .build-list h3, .build-list p { grid-column: 1 / 13; }
  .build-list .from { grid-column: 1 / 13; grid-row: auto; justify-self: start; margin-top: 0.4rem; }
  .build-list .thumb { grid-column: 1 / 13; grid-row: auto; width: 100%; margin-top: 1rem; }
  .build-list p { margin-top: 0.5rem; }
}
