/* ==========================================================================
   Outset Web Design — "Midnight Glass"
   One stylesheet for every page. Colors and sizes live in the variables below.
   ========================================================================== */

:root {
  --ink: #0A0C11;          /* page background */
  --ink-2: #13161E;        /* raised panels */
  --ink-3: #1A1D26;        /* browser-frame cards */
  --paper: #F3F1EC;        /* light text / light band */
  --paper-ink: #4A4841;    /* body text on the light band */
  --muted: rgba(243, 241, 236, .68);
  --faint: rgba(243, 241, 236, .5);
  --line: rgba(255, 255, 255, .1);
  --accent: #FF7A45;       /* brand accent (orange) */
  --indigo: #5B6CFF;       /* glow color */
  --teal: #1FB8A6;
  --green: #3DDC97;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Instrument Serif', Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(88px, 11vw, 160px);
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* not "hidden": that would break the sticky menu bar */
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 90px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.03em; font-weight: 700; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Shared pieces ---------- */

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  font-size: 1.13em;
}

.eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.02; }

.lede { color: var(--muted); font-size: 17px; line-height: 1.6; }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 24px 60px -24px rgba(0,0,0,.6);
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.has-orbs { position: relative; overflow: hidden; }
.has-orbs > *:not(.orb) { position: relative; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1.1; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }  /* primary: "Book a free call" only */
.btn-outline { border: 1px solid rgba(243,241,236,.35); color: var(--paper); background: transparent; font-weight: 400; }  /* secondary */

.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 1.2; white-space: nowrap; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Header / nav ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding: 20px 0 0; }
.site-header .wrap { position: relative; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
}
/* Darker base so the menu stays readable over the light team section */
.nav.glass, .mobile-menu.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)), rgba(12,14,20,.74);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }

.nav-links { display: flex; gap: 32px; font-size: 15px; color: rgba(243,241,236,.78); }
.nav-links a { padding: 8px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav .btn { min-height: 44px; padding: 12px 22px; font-size: 15px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.1); color: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none; margin-top: 10px; padding: 12px; border-radius: 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-size: 17px; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: 8px; }
.site-header.open .mobile-menu { display: flex; }

/* ---------- Hero ---------- */

/* A site preview paired with a focused headline and clear calls to action. */
.hero { margin-top: -84px; padding: 8px clamp(8px, 1.4vw, 20px) clamp(48px, 6vw, 80px); }
.hero-card {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--ink-2);
  min-height: min(760px, calc(100svh - 16px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); align-items: center;
  gap: clamp(32px, 4.5vw, 72px); text-align: left;
  padding: 128px clamp(24px, 4vw, 64px) 72px clamp(28px, 5vw, 80px);
}
.hero-site { grid-column: 2; grid-row: 1; min-width: 0; }
.hero-site .frame { padding: 14px; border-radius: 24px; background: rgba(26,29,38,.92); border-color: rgba(255,255,255,.14); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.hero-site .frame-bar { overflow: hidden; white-space: nowrap; }
.hero-site .shot { height: auto; aspect-ratio: 16 / 10; }
.hero-site .shot img { position: absolute; top: 0; left: 0; width: 100%; }
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 66px); line-height: 1.04; text-wrap: balance; }
.hero h1 .script { color: var(--accent); }
.hero-sub { max-width: 30em; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: rgba(243,241,236,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-ctas .btn-outline { background: rgba(10,12,17,.25); }

.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px; font-size: 14px; color: rgba(243,241,236,.85);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61,220,151,.18); flex-shrink: 0; }

/* ---------- Trust strip ---------- */

.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust > div:first-child { padding-left: 0; }
.trust > div:last-child { padding-right: 0; }
.trust strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.trust span { font-size: 15px; color: rgba(243,241,236,.6); line-height: 1.5; }

/* ---------- Problem ---------- */

.problem { padding: var(--section) 0 clamp(80px, 10vw, 140px); }
.split { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 24px; }
.split > :first-child { display: flex; flex-direction: column; gap: 20px; }
.split > :last-child { grid-column: 3; }
.problem-body { display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.6; color: rgba(243,241,236,.72); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.compare > div { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.compare .rent { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.compare b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: rgba(243,241,236,.5); }
.compare .own b { color: var(--accent); }
.compare span { font-size: 16px; line-height: 1.5; color: rgba(243,241,236,.7); }
.compare .own span { color: var(--paper); }

/* ---------- Section headers ---------- */

.section { padding: 40px 0 var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 18px; }
.section-head .lede { max-width: 360px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.section-head.center .lede { max-width: 600px; font-size: 18px; }

/* ---------- Services ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 36px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px; min-height: 360px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 28px; font-weight: 600; }
.service p { font-size: 16px; color: var(--muted); }
.service .quote { font-family: var(--font-script); font-style: italic; letter-spacing: .02em; font-size: 27px; line-height: 1.2; color: var(--accent); }
.service .tags { margin-top: auto; font-size: 14px; color: var(--faint); }

/* ---------- Scrolling site previews ---------- */

.frame { border-radius: var(--radius-lg); background: var(--ink-3); border: 1px solid var(--line); padding: 18px; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 0 4px 14px; font-size: 12px; color: var(--faint); }
.frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.frame-bar .dot:nth-child(3) { margin-right: 6px; }

.shot {
  position: relative; overflow: hidden; background: var(--paper);
  border-radius: 12px; height: var(--h, 390px);
}
.shot img {
  width: 100%; height: auto;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
/* Desktop: scroll the whole page on hover. JS sets --dist and --dur so every
   preview moves at the same steady speed, whatever the page length. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .preview:hover .shot img,
  .preview:focus-visible .shot img {
    transform: translateY(var(--dist, 0px));
    transition-duration: var(--dur, 8s);
    transition-timing-function: cubic-bezier(.35, 0, .25, 1);
  }
  .preview:hover .hint, .preview:focus-visible .hint { opacity: 0; }
}
/* Touch screens: JS adds .playing to the one card nearest the middle of the screen. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .preview.playing .shot img { animation: peek var(--cycle, 16s) cubic-bezier(.45, 0, .2, 1) infinite; }
}
@keyframes peek {
  0%, 10% { transform: translateY(0); }
  55%, 65% { transform: translateY(var(--dist, 0px)); }
  100% { transform: translateY(0); }
}

.hint {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: rgba(10,12,17,.8); color: var(--paper);
  font-size: 12px; font-weight: 500; transition: opacity .3s; pointer-events: none;
}
.hint svg { width: 13px; height: 13px; }
.hint .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: none; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
  .preview.playing .hint .live { display: inline-block; }
}
/* Same rules when script.js detects a touch screen (belt and braces) */
.is-touch .hint-hover { display: none; }
.is-touch .hint-touch { display: inline; }
.is-touch .preview.playing .hint .live { display: inline-block; }
.is-touch .preview:not(.playing) .hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .is-touch .preview.playing .shot img { animation: peek var(--cycle, 16s) cubic-bezier(.45, 0, .2, 1) infinite; }
}

.preview { display: flex; flex-direction: column; gap: 20px; }
.preview-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.preview-meta > div { display: flex; flex-direction: column; gap: 6px; }
.preview-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.preview-line { font-size: 15px; line-height: 1.5; color: rgba(243,241,236,.6); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.preview-meta > .pill { flex-shrink: 0; }
.preview-meta > .pills { flex-direction: row; gap: 8px; }

/* Homepage selected work */
.work-home { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.work-home .side { display: flex; flex-direction: column; gap: 24px; }
.work-home .side .frame { padding: 16px; border-radius: 24px; }
.work-home .side .preview { gap: 16px; }
.work-home .side .preview-meta { align-items: center; }
.work-home .side .preview-name { font-size: 22px; }
.work-home .featured .frame { padding: 22px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500;
  padding-bottom: 6px; border-bottom: 1px solid rgba(243,241,236,.4); white-space: nowrap;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Process ---------- */

.step { padding: 36px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; }
.step-1 { border: 1px solid var(--line); }
.step-2 {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  -webkit-backdrop-filter: blur(11px) saturate(135%);
  backdrop-filter: blur(11px) saturate(135%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 12px 30px -12px rgba(0,0,0,.3);
}
.step-num { font-family: var(--font-display); font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.step h3 { font-size: 26px; font-weight: 600; }
.step p { font-size: 16px; color: var(--muted); }

/* ---------- What's included ---------- */

.plan { padding: 40px 36px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 22px; }
.plan h3 { font-size: 24px; font-weight: 600; }
.plan .pill { align-self: flex-start; border: 1px solid rgba(255,255,255,.22); font-weight: 600; color: var(--accent); }
.plan > p { font-size: 15px; color: rgba(243,241,236,.65); }
.plan hr { width: 100%; height: 1px; border: 0; background: rgba(255,255,255,.12); margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.plan .btn { margin-top: auto; width: 100%; font-size: 16px; }
.plan-light { background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.plan-light .pill { border-color: rgba(0,0,0,.2); color: var(--ink); }
.plan-light > p { color: #55524B; }
.plan-light hr { background: rgba(0,0,0,.12); }
.plan-light li svg { color: var(--ink); }
.pricing-note { margin-top: 56px; text-align: center; font-size: 16px; color: rgba(243,241,236,.65); }
.pricing-note a { color: var(--paper); font-weight: 600; border-bottom: 1px solid var(--accent); }

/* ---------- Team (light band) ---------- */

.team { background: var(--paper); color: var(--ink); padding: clamp(88px, 10vw, 140px) 0; }
.team .split > :first-child { gap: 22px; }
.team .eyebrow { color: var(--ink); opacity: .6; }
.team .team-copy { font-size: 18px; line-height: 1.65; color: var(--paper-ink); }
.team .where { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--paper-ink); }
.team .where svg { width: 18px; height: 18px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { display: flex; flex-direction: column; gap: 18px; }
.person img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 26px;
  box-shadow: 0 2px 6px rgba(10,12,17,.08), 0 20px 40px -18px rgba(10,12,17,.35);
}
.person h3 { font-size: 26px; }
.person .role { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B675E; }
.person p { font-size: 15px; line-height: 1.6; color: var(--paper-ink); margin-top: 6px; }

/* ---------- FAQ ---------- */

.faq { padding: var(--section) 0; }
.faq .split { grid-template-columns: 4fr 1fr 7fr; }
.faq .split > :first-child { gap: 18px; }
.faq-list { border-bottom: 1px solid rgba(255,255,255,.12); }
.faq-list details { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { font-family: var(--font-body); font-size: 28px; font-weight: 300; color: var(--accent); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 640px; }

/* ---------- Contact ---------- */

.contact { padding: 40px 0 120px; scroll-margin-top: 90px; }
.contact-card { border-radius: 40px; padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: 6fr 1fr 5fr; gap: 24px; }
.contact-card > :last-child { grid-column: 3; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; }
.contact-copy h2 { font-size: clamp(44px, 6vw, 72px); line-height: .98; }
.contact-copy h2 .script { color: var(--accent); }
.contact-copy > p { font-size: 19px; line-height: 1.6; color: rgba(243,241,236,.75); max-width: 460px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; font-size: 16px; }
.contact-lines a { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; max-width: 100%; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines svg { width: 20px; height: 20px; }
.contact-email { display: flex; align-self: flex-start; align-items: center; gap: 6px; max-width: 100%; }
.contact-email > a { min-width: 0; }
.contact-email > a span { overflow-wrap: anywhere; }
.copy-email { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: rgba(243,241,236,.72); cursor: pointer; }
.copy-email:hover { background: rgba(255,255,255,.08); color: var(--accent); }
.copy-email:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-email svg { width: 18px; height: 18px; }
.copy-email .icon-check { display: none; }
.copy-email.is-copied .icon-copy { display: none; }
.copy-email.is-copied .icon-check { display: block; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(243,241,236,.75); }
.form input, .form textarea {
  padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25); color: var(--paper); font: inherit; font-size: 16px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,69,.2); }
.form .btn { margin-top: 6px; width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #FF9C8A; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form { position: relative; }
.form .status { align-self: flex-end; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.site-footer .brand-name { font-size: 20px; color: var(--paper); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--paper); }

/* ---------- Work page ---------- */

.work-hero { padding-top: calc(84px + clamp(64px, 8vw, 100px)); margin-top: -84px; padding-bottom: 100px; }
.work-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 100px; }
.work-hero-top > div { display: flex; flex-direction: column; gap: 22px; }
.work-hero h1 { font-size: clamp(52px, 7vw, 96px); line-height: .95; max-width: 820px; }
.work-hero .lede { max-width: 380px; font-size: 18px; margin-bottom: 12px; }
.lineup { display: flex; flex-direction: column; gap: 16px; }
.lineup > span { font-size: 15px; font-weight: 500; color: rgba(243,241,236,.7); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters a { padding: 11px 20px; border-radius: 999px; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.filters a.active { background: var(--paper); color: var(--ink); font-weight: 600; }
.filters a span { opacity: .55; }

.group { padding: 0 0 140px; scroll-margin-top: 100px; }
.group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.group-head > div { display: flex; flex-direction: column; gap: 10px; }
.group-head .eyebrow { font-size: 13px; }
.group-head h2 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1; }
.group-head p { max-width: 480px; font-size: 16px; color: rgba(243,241,236,.62); }

.case {
  border-radius: 36px; background: var(--ink-2); border: 1px solid var(--line); padding: 20px;
  display: grid; grid-template-columns: 8fr 4fr; gap: 24px; margin-bottom: 64px;
}
.case .frame { border: 0; border-radius: 24px; gap: 0; align-self: start; }
.case-body { padding: 28px 20px 28px 8px; display: flex; flex-direction: column; gap: 26px; }
.case-body h3 { font-size: 48px; line-height: 1; }
.case-body .pills { justify-content: flex-start; }
.case-row { display: flex; flex-direction: column; gap: 6px; }
.case-row b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.case-row span { font-size: 16px; line-height: 1.6; color: rgba(243,241,236,.72); }
.case-row .result { font-family: var(--font-display); font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--paper); letter-spacing: -0.02em; }
.case-quote { margin: auto 0 0; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.case-quote p { font-family: var(--font-script); font-style: italic; letter-spacing: .02em; font-size: 22px; line-height: 1.35; }
.case-quote cite { font-style: normal; font-size: 14px; color: rgba(243,241,236,.6); }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.case-link svg { width: 16px; height: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.grid-3.grid-2x2 { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.grid-3 .frame { padding: 16px; border-radius: 24px; }
.grid-3 .preview { gap: 18px; }
.grid-3 .preview-meta { flex-direction: column; gap: 8px; }
.grid-3 .preview-meta > .top { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.grid-3 .preview-name { font-size: 24px; }
.grid-4 .frame { padding: 12px; border-radius: 20px; }
.grid-4 .shot { border-radius: 10px; }
.grid-4 .preview { gap: 16px; }
.grid-4 .preview-name { font-size: 21px; }
.grid-4 .preview-line { font-size: 14px; }
.grid-4 .tag { font-size: 13px; color: var(--accent); font-weight: 500; }

.cta-band { padding: 0 0 120px; }
.cta-card { border-radius: 36px; padding: clamp(26px, 4vw, 51px) clamp(28px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-card h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1; }

/* ---------- Blog ---------- */

.blog-hero { padding-top: calc(84px + clamp(64px, 8vw, 100px)); margin-top: -84px; padding-bottom: 72px; }
.blog-hero .work-hero-top { margin-bottom: 0; }
.blog-hero h1 { font-size: clamp(44px, 6vw, 84px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; padding-bottom: 140px; }
.post-card { display: flex; flex-direction: column; gap: 18px; }
.post-card .thumb { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); aspect-ratio: 1 / 1; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.3, 0, .2, 1); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .meta { font-size: 13px; color: var(--faint); display: flex; gap: 10px; align-items: center; }
.post-card .meta .pill { font-size: 12px; padding: 5px 11px; }
.post-card h2, .post-card h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
.post-card p { font-size: 15px; line-height: 1.55; color: rgba(243,241,236,.62); }
.post-card .read { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.post-card .thumb { display: block; }
.post-card .meta .pill { color: var(--accent); border: 1px solid rgba(255,255,255,.2); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.post-card.lead .thumb { max-width: 480px; }
.post-card.lead .body { display: flex; flex-direction: column; gap: 18px; }
.post-card.lead h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; font-weight: 700; }
.post-card.lead p { font-size: 17px; }

.post-head { padding-top: calc(84px + clamp(56px, 7vw, 88px)); margin-top: -84px; padding-bottom: 48px; }
.post-head .wrap { max-width: calc(1040px + var(--gutter) * 2); display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.post-head .intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.post-head .back { font-size: 15px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.post-head .back:hover { color: var(--paper); }
.post-head .back svg { width: 16px; height: 16px; }
.post-head h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 15px; color: var(--muted); }
.post-head .meta .pill { color: var(--accent); border: 1px solid rgba(255,255,255,.2); }
.post-feature { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1 / 1; background: var(--ink-3); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }

.prose { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 96px; box-sizing: content-box; font-size: 18px; line-height: 1.75; color: rgba(243,241,236,.82); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.15; color: var(--paper); margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 23px; line-height: 1.25; color: var(--paper); margin-top: 1.7em; scroll-margin-top: 100px; font-weight: 600; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #FF9C73; }
.prose strong { color: var(--paper); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li > ul { margin-top: .45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 20px 24px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-script); font-style: italic; font-size: 23px; line-height: 1.4; letter-spacing: .01em; color: var(--paper);
}
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote strong, .prose blockquote em { font-weight: 400; }
.prose blockquote .cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--muted); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); }
.prose figure.small img { max-width: 320px; }
.prose .video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin: 1.8em 0; background: #000; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--paper); font-weight: 600; }
.prose .toc { padding: 24px 28px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 16px; }
.prose .toc p { margin: 0 0 10px; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover { text-decoration: underline; }
.prose .back-top { font-size: 14px; }
.prose .back-top a { color: var(--faint); text-decoration: none; }
.prose .refs { font-size: 15px; color: var(--muted); word-break: break-word; }
.prose .sign { font-family: var(--font-script); font-style: italic; font-size: 24px; color: var(--paper); }
.prose sup a, .prose a.fn { text-decoration: none; font-size: .8em; }

.post-series { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 64px; box-sizing: content-box; }
.post-series .box { border-radius: 24px; padding: 28px; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 14px; }
.post-series h2 { font-size: 22px; font-weight: 600; }
.post-series ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.post-series a:hover { color: var(--accent); }
.post-series li[aria-current] { color: var(--paper); font-weight: 600; }

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.lead { grid-template-columns: 1fr; gap: 20px; }
  .post-head .wrap { grid-template-columns: 1fr 240px; gap: 36px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .blog-hero, .post-head { margin-top: -72px; padding-top: calc(72px + 48px); }
  .prose { font-size: 17px; }
  .prose blockquote { font-size: 20px; padding: 16px 18px; }
  .post-head .wrap { grid-template-columns: 1fr; gap: 32px; }
  .post-feature { border-radius: 20px; max-width: 280px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 120px 0; }
.notfound h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; }

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

@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .split, .faq .split { grid-template-columns: 1fr; gap: 40px; }
  .split > :last-child { grid-column: auto; }
  .work-home { grid-template-columns: 1fr; }
  .work-home .side { flex-direction: row; }
  .work-home .side > * { flex: 1; min-width: 0; }
  .case { grid-template-columns: 1fr; }
  .case-body { padding: 8px 12px 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .contact-card > :last-child { grid-column: auto; }
}

@media (max-width: 880px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  /* Tablets: copy on top, the site preview full width beneath it. */
  .hero-card { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 48px; padding: 120px clamp(24px, 5vw, 56px) 56px; }
  .hero-site { grid-column: 1; grid-row: 2; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div { padding: 22px 18px; }
  .trust > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-3, .grid-3, .grid-3.grid-2x2 { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .section-head, .group-head, .work-hero-top { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
  .work-hero-top { margin-bottom: 64px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .people { gap: 12px; }
  .person { gap: 12px; }
  .person img { border-radius: 18px; }
  .person h3 { font-size: 20px; }
  .person .role { font-size: 12px; }
}

@media (max-width: 640px) {
  :root { --radius-lg: 22px; }
  body { font-size: 15px; }
  .site-header { padding-top: 12px; }
  .nav { padding: 8px 8px 8px 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .hero { margin-top: -72px; }
  .work-hero { margin-top: -72px; padding-top: calc(72px + 56px); padding-bottom: 72px; }
  /* Phones: show the real site first, then the copy beneath it. */
  .hero { padding: 84px 0 48px; overflow-x: clip; }
  .hero-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "visual" "description" "actions"; align-items: start; gap: 22px; min-height: 0; padding: 0 12px; border-radius: 0; overflow: visible; background: none; }
  .hero-site .frame { padding: 10px; border-radius: 18px; }
  .hero-site .shot { height: auto; aspect-ratio: 4 / 3; border-radius: 10px; }
  .hero-copy { display: contents; }
  .hero-copy > * { position: relative; z-index: 1; }  /* keep copy above the glows */
  .hero-copy h1 { grid-area: title; margin: 0 var(--gutter); }
  .hero-site { grid-area: visual; grid-column: auto; grid-row: auto; }
  .hero-copy .hero-sub { grid-area: description; margin: 0 var(--gutter); }
  .hero-copy .hero-ctas { grid-area: actions; width: auto; margin: 0 var(--gutter) 8px; }
  .hero-br { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .status { font-size: 12px; padding: 7px 12px 7px 9px; }
  .hero-ctas { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 6px; margin-top: 8px; }
  .hero-ctas .btn-outline { border: 0; background: none; min-height: 44px; padding: 10px; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(243,241,236,.4); }
  .trust strong { font-size: 18px; }
  .trust span { font-size: 13px; }
  .problem-body { font-size: 17px; }
  .compare { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .service, .step, .plan { padding: 26px 24px; }
  .service h3 { font-size: 22px; }
  .service .quote { font-size: 22px; }
  .step-num { font-size: 40px; }
  .step h3 { font-size: 22px; }
  .work-home .side { flex-direction: column; }
  .frame, .work-home .featured .frame { padding: 12px; border-radius: 22px; }
  .frame-bar { padding-bottom: 10px; }
  .preview-meta { flex-direction: column; gap: 10px; }
  .work-home .side .preview-meta { flex-direction: row; }
  .preview-name { font-size: 22px; }
  .pills { justify-content: flex-start; }
  .faq-list summary { font-size: 18px; }
  .faq-list details { padding: 20px 0; }
  .contact { padding-bottom: 64px; }
  .contact-card { border-radius: 28px; }
  .contact-copy > p { font-size: 16px; }
  .case { padding: 12px; border-radius: 28px; }
  .case-body h3 { font-size: 36px; }
  .grid-4 { grid-template-columns: 1fr; gap: 40px; }
  .group { padding-bottom: 96px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
