/* ============================================================
   qbflows — landing page
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   A value earns a token when it is used in more than one place
   and has to change as a unit: surfaces, text greys, rules,
   radii, spacing, motion. One-off decorative values stay inline
   so there is no name to maintain for a value that never varies.
   ============================================================ */

:root {
  /* --- Surfaces ---
     Ink ground, warm paper for inverted blocks. There is no hue accent:
     emphasis comes from inverting a block, not from colouring a word. */
  --bg: #0c0d0f;
  --surface-sunken: #0e1012;
  --surface-nav: rgba(12, 13, 15, 0.62);
  --surface-nav-scrolled: rgba(12, 13, 15, 0.9);

  /* --- Paper (the emphasis) --- */
  --paper: #edeae3;

  /* --- Borders --- */
  --line: rgba(237, 234, 227, 0.1);
  --line-strong: rgba(237, 234, 227, 0.18);
  --line-hover-strong: rgba(237, 234, 227, 0.32);

  /* --- Text --- */
  --text: #edeae3;
  --text-hover: #ffffff;
  --muted: #9c9b96;
  --faint: #7c7b77;
  --faint-ui: #8d8c87;
  --ink: #0c0d0f; /* text on paper */
  --text-nav: #a5a49f; /* nav links */
  --text-footer-link: #a8a7a2; /* footer links */
  --text-step-out: #8a8985; /* approach deliverables */

  /* --- Neutral washes --- */
  --tint-3: rgba(237, 234, 227, 0.05);
  --tint-4: rgba(237, 234, 227, 0.07);
  --tint-grid: rgba(237, 234, 227, 0.06);

  /* --- Layout --- */
  --max: 1200px;
  --gutter: 24px;
  --gutter-sm: 18px;

  /* --- Spacing scale --- */
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 92px;
  --space-10: 128px;
  --section-y: var(--space-10);
  --section-y-md: var(--space-9);
  --section-y-sm: 76px;

  /* --- Radii --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* --- Typography --- */
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.75rem; /* 12px — minimum for visible copy */
  --text-base: 1rem;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --t-hover: 200ms;
  --t-slow: 350ms;
  --t-reveal: 700ms;
  --t-drift: 26s;

  /* --- Interaction states (single definition site) --- */
  --state-lift: translateY(-1px);
  --state-btn-shadow: 0 10px 30px rgba(242, 240, 234, 0.12);

  /* --- Elevation --- */
  --z-base: 1;
  --z-grain: 300;
  --z-nav: 100;
  --z-skip: 1000;

  /* --- Nav chrome --- */
  --surface-nav-line: rgba(237, 234, 227, 0.09);
  --surface-nav-line-scrolled: rgba(237, 234, 227, 0.13);
  --shadow-menu: 0 24px 60px rgba(0, 0, 0, 0.55);
  --t-marquee: 44s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: top var(--t-hover) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 100px;
}

/* ============================================================
   Buttons & shared bits
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-hover) var(--ease), background var(--t-hover) var(--ease),
    border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--t-hover) var(--ease);
}

.btn-primary {
  background: var(--text);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--text-hover);
  transform: var(--state-lift);
  box-shadow: var(--state-btn-shadow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--line-hover-strong);
  background: var(--tint-3);
  transform: var(--state-lift);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.eyebrow span {
  color: var(--text);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h2 em,
h1 em {
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

h2 em {
  color: inherit;
}

.section-lead {
  max-width: 600px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.68;
  letter-spacing: -0.005em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ============================================================
   Navigation
   ============================================================ */

.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--surface-nav-line);
  border-radius: var(--radius-pill);
  background: var(--surface-nav);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  transition: background var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}

.nav.scrolled {
  background: var(--surface-nav-scrolled);
  border-color: var(--surface-nav-line-scrolled);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--paper);
}

.brand-word {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 24px;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-nav);
  transition: color var(--t-hover) var(--ease), background var(--t-hover) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a[aria-current="true"] {
  position: relative;
}

.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu-cta {
  display: none;
}

.nav-cta {
  height: 44px;
  padding: 0 20px;
  font-size: 0.84rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding-top: 184px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--tint-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tint-grid) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 36%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse 68% 62% at 50% 36%, #000 20%, transparent 76%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--tint-3), transparent 72%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  top: -6%;
  right: -12%;
  width: 62%;
  height: 112%;
  color: rgba(237, 234, 227, 0.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 72%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 72%, transparent);
  animation: drift var(--t-drift) ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line-muted {
  color: var(--text);
}

.hero-sub {
  max-width: 680px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Marquee */

.marquee {
  position: relative;
  margin-top: 92px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--t-marquee) linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  margin-right: 42px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--faint-ui);
  white-space: nowrap;
  font-style: normal;
}

.marquee-track i {
  margin-right: 42px;
  font-style: normal;
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: var(--section-y) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  margin-top: 20px;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 64px;
  max-width: none;
}

.section-head-split .section-lead {
  margin-top: 0;
  padding-bottom: 6px;
}

/* Services — ruled grid, matching the Approach language */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service-item {
  display: flex;
  flex-direction: column;
  padding: 34px 34px 0 0;
  border-bottom: 1px solid var(--line);
}

.service-item:nth-child(even) {
  padding-right: 0;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.service-item:nth-child(n + 3) {
  padding-top: 34px;
}

.service-item h3 {
  font-size: 1.46rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.service-item p {
  max-width: 92%;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.service-item .tags {
  margin-top: auto;
  padding: 26px 0 30px;
}

/* ============================================================
   Work
   ============================================================ */


.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.work-item {
  display: flex;
  flex-direction: column;
  padding: 0 30px 0 0;
  border-bottom: 1px solid var(--line);
}

.work-item + .work-item {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.work-item:last-child {
  padding-right: 0;
}

.work-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 0 30px;
}

.work-copy h3 {
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.work-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.work-copy .tags {
  margin-top: auto;
  padding-top: 20px;
}

/* Work media — each card carries a looped clip of the system running. */

.work-media {
  position: relative;
  height: 264px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  overflow: hidden;
}

.work-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .work-media video {
    display: none;
  }
}

.work-foot {
  margin-top: 36px;
  color: var(--faint);
  font-size: 0.94rem;
}

.work-foot a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}

.work-foot a:hover {
  color: var(--text-hover);
  border-color: var(--text-hover);
}

.work-foot a span {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease);
}

.work-foot a:hover span {
  transform: translateX(3px);
}

/* ============================================================
   Approach
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  display: flex;
  flex-direction: column;
  padding: 34px 34px 26px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.step + .step {
  padding-left: 34px;
}

.step:last-child {
  border-right: none;
  padding-right: 0;
}

.step-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--faint);
}

.step h3 {
  margin-top: 10px;
  font-size: 1.72rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.step-out {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--text-step-out);
}

/* ============================================================
   About
   ============================================================ */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.principle {
  padding: 34px 34px 26px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 34px;
}

.principle:last-child {
  padding-right: 0;
  border-right: none;
}

.principle h3 {
  font-size: 1.72rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.principle p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.about-note {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-note {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-note a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}

.faq-note a:hover {
  color: var(--text-hover);
  border-color: var(--text-hover);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-slow) var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 48px 26px 0;
}

.faq-answer p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 64px;
}

.cta-copy h2 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
}

.cta-sub {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 26px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 72px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--faint);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-footer-link);
  font-size: 0.9rem;
  transition: color var(--t-hover) var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--faint-ui);
}


/* ============================================================
   Texture & motion
   ============================================================ */

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-28px, 14px, 0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .nav-links {
    gap: 22px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-item:nth-child(2) {
    padding-right: 0;
  }

  .work-item:nth-child(3) {
    grid-column: 1 / -1;
    padding: 26px 0 0;
    border-left: none;
  }

  .work-item:nth-child(3) .work-media {
    height: 300px;
    margin-top: 20px;
  }


}

@media (max-width: 860px) {
  .nav {
    padding-right: 10px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-sunken);
    box-shadow: var(--shadow-menu);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-links a:hover {
    background: var(--tint-3);
  }

  .nav-links a[aria-current="true"] {
    background: var(--tint-4);
  }

  .nav-links a[aria-current="true"]::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 152px;
  }

  .hero-lines {
    width: 90%;
    right: -30%;
    opacity: 0.7;
  }

  .marquee {
    margin-top: 68px;
  }

  .section {
    padding: var(--section-y-md) 0;
  }

  .section-head {
    margin-bottom: var(--space-7);
  }

  .section-head-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-head-split .section-lead {
    margin-top: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .service-item,
  .service-item:nth-child(even),
  .service-item:nth-child(n + 3) {
    padding: 26px 0 30px;
    border-left: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
  }

  .service-item .tags {
    padding: 22px 0 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .work-item,
  .work-item + .work-item,
  .work-item:nth-child(2),
  .work-item:nth-child(3) {
    padding: 26px 0 30px;
    border-top: 1px solid var(--line);
    border-left: none;
    border-bottom: none;
  }

  .work-item .work-media {
    height: 264px;
    margin-top: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: none;
    border-bottom: none;
  }

  .step,
  .step + .step {
    padding: 28px 0 32px;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
  }

  .principles {
    grid-template-columns: 1fr;
    border-top: none;
    border-bottom: none;
  }

  .principle,
  .principle + .principle {
    padding: 28px 0 32px;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
  }

  .principle h3 {
    font-size: 1.5rem;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - (var(--gutter-sm) * 2));
  }

  .nav-wrap {
    top: 12px;
    padding: 0 12px;
  }

  .nav {
    padding-left: 16px;
  }

  .brand-word {
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .nav-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--text);
    color: var(--ink);
    font-weight: 500;
  }

  .nav-links .nav-menu-cta:hover {
    background: var(--text-hover);
  }

  .hero {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12.4vw, 3.3rem);
  }

  .hero-sub {
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .section {
    padding: var(--section-y-sm) 0;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .section-lead {
    font-size: 0.96rem;
  }

  .work-media {
    height: 250px;
  }

  .work-copy {
    padding: 22px;
  }

  .step h3 {
    font-size: 1.5rem;
  }

  .faq-item summary {
    font-size: 0.96rem;
    padding-block: 20px;
  }

  .faq-answer {
    padding-right: 12px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
