/* Chaney Design Co. */
:root {
  --bg: #F3F3F1;
  --surface: #E9E9E6;
  --surface-2: #DFDFDB;
  --dark: #0E1011;
  --dark-2: #17191B;
  --text: #121517;
  --muted: #8C8F91;
  --muted-dark: #6E7173;
  --paper: #F3F3F1;
  --accent: #121517;
  --line: #D6D6D2;
  --line-dark: #26292B;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-head: var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 20px;
  --r-sm: 12px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tshadow: 0 1px 2px rgba(5,5,10,.55), 0 4px 24px rgba(5,5,10,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--text); color: var(--bg); }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.mono, .mono-num { font-family: var(--mono); }
.mono { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.mono-num { font-size: .86em; letter-spacing: 0; }
.soft { color: var(--muted); }
.dark .soft { color: var(--muted-dark); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.tag .mono { color: var(--text); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; }
.tag--dark .mono { color: var(--paper); border-color: var(--line-dark); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--text); opacity: 0; animation: ping 3.2s var(--ease) infinite; animation-delay: -1.2s; }
@keyframes ping { 0% { transform: scale(.5); opacity: .6; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--font); text-decoration: none; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--ink { background: var(--accent); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--paper { background: var(--paper); color: var(--text); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn .mono-num { color: var(--muted); }
@media (pointer: coarse) { .btn { min-height: 48px; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--text); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; gap: 10px; }
.nav__burger { display: none; }

.menu { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__inner { height: 64px; justify-content: space-between; }
  .nav__logo img { height: 20px; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav__burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .nav.open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .menu:not([hidden]) {
    display: flex; flex-direction: column; justify-content: space-between;
    height: calc(100dvh - 64px); padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
  }
  .menu__links a {
    display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
    font-size: 36px; letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .menu__links .mono { color: var(--muted); }
  .menu__foot { display: grid; gap: 10px; }
}

/* ---------- Hero (full-bleed photo, copy on the open right side) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  background: #1A1C1D; color: var(--paper);
  padding: 120px 0 clamp(28px, 4vw, 44px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%;
  animation: drift 20s ease-in-out infinite alternate; animation-delay: -7s; transform-origin: 75% 40%;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,11,12,.86) 0%, rgba(10,11,12,.72) 30%, rgba(10,11,12,.28) 56%, rgba(10,11,12,0) 72%),
    linear-gradient(0deg, rgba(10,11,12,.7) 0%, rgba(10,11,12,0) 30%),
    linear-gradient(180deg, rgba(10,11,12,.45) 0%, rgba(10,11,12,0) 18%);
}
.hero__inner { flex: 1; display: flex; align-items: center; justify-content: flex-start; }
.hero__copy { width: min(100%, 640px); text-shadow: var(--tshadow); }
.hero .tag--light { color: rgba(243,243,241,.72); }
.hero .dot, .hero .dot::after { background: var(--paper); border-color: var(--paper); }
.hero .dot::after { background: none; }
.hero__title {
  font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.045em; font-weight: 500;
  margin-bottom: 28px; text-wrap: balance;
}
.hero .soft { color: rgba(243,243,241,.58); }
.hero__lede { font-size: clamp(17px, 1.35vw, 19px); max-width: 42ch; color: rgba(243,243,241,.84); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { text-shadow: none; }
.btn--glass {
  background: rgba(243,243,241,.1); color: var(--paper); border-color: rgba(243,243,241,.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { border-color: var(--paper); background: rgba(243,243,241,.16); }
.btn--glass .mono-num { color: rgba(243,243,241,.6); }

.hero__foot {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid rgba(243,243,241,.22);
}
.hero__meta { display: flex; gap: 40px; }
.hero__meta dt { color: rgba(243,243,241,.55); margin-bottom: 6px; font-size: 10.5px; }
.hero__meta dd { font-size: 14px; }
.hero__sig { display: grid; gap: 3px; text-align: right; }
.hero__sig strong { font-weight: 500; font-size: 15px; }
.hero__sig .mono { color: rgba(243,243,241,.55); font-size: 10.5px; }

/* Nav sits on the photo at the very top: light version */
.nav:not(.scrolled):not(.open) .nav__logo img { filter: invert(1); }
.nav:not(.scrolled):not(.open) .nav__links a { color: var(--paper); }
.nav:not(.scrolled):not(.open) .nav__burger { color: var(--paper); }
.nav:not(.scrolled):not(.open) .btn--ghost { color: var(--paper); border-color: rgba(243,243,241,.4); }
.nav:not(.scrolled):not(.open) .btn--ghost:hover { border-color: var(--paper); }
.nav:not(.scrolled):not(.open) .btn--ink { background: var(--paper); color: var(--text); }

@media (max-width: 900px) {
  /* phones: photo fills the top, fades into black, copy starts on the fade */
  .hero { min-height: auto; padding-top: calc(min(62svh, 150vw) - 120px); background: #0E1011; }
  .hero__bg, .hero__scrim { bottom: auto; height: min(62svh, 150vw); }
  .hero__bg img { object-position: 85% 28%; transform-origin: 80% 30%; }
  .hero__scrim {
    background:
      linear-gradient(0deg, #0E1011 0%, rgba(14,16,17,.82) 18%, rgba(14,16,17,.25) 42%, rgba(14,16,17,0) 58%),
      linear-gradient(180deg, rgba(10,11,12,.5) 0%, rgba(10,11,12,0) 18%);
  }
  .hero__inner { align-items: flex-end; justify-content: flex-start; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); margin-bottom: 20px; }
  .hero__lede { margin-bottom: 26px; }
  .hero__foot { margin-top: 32px; }
  .hero__sig { display: none; }
  .hero__meta { gap: 18px 28px; flex-wrap: wrap; }
  .hero__meta div:nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Trust line ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__list li { padding: 28px 24px 28px 0; font-size: 15px; line-height: 1.4; }
.trust__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.trust__list .mono { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .trust__list { grid-template-columns: 1fr 1fr; }
  .trust__list li { padding: 22px 16px 22px 0; }
  .trust__list li + li { padding-left: 0; border-left: 0; }
  .trust__list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .trust__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Dark sections ---------- */
.dark { background: var(--dark); color: var(--paper); }
.dark .tag { color: var(--muted-dark); }

/* ---------- Problem / ink statement ---------- */
.problem { padding: var(--sec) 0; position: relative; overflow: hidden; }
.problem::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.06), transparent);
  animation: glow 9s ease-in-out infinite alternate; animation-delay: -3s; pointer-events: none;
}
@keyframes glow { from { transform: translate(0,0); opacity: .7; } to { transform: translate(-6vw, 4vw); opacity: 1; } }
.ink {
  font-size: clamp(30px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500;
  max-width: 22ch; position: relative; text-wrap: pretty;
}
.ink .w { color: #3A3E41; transition: color .5s var(--ease); }
.ink .w.on { color: var(--paper); }
.problem__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(56px, 8vw, 112px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.problem__foot p { max-width: 44ch; color: #B7BABC; font-size: 17px; }
.problem__foot em { font-style: normal; color: var(--paper); }
@media (max-width: 700px) { .problem__foot { flex-direction: column; align-items: start; } }

/* ---------- Section heads ---------- */
.h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.h2--xl { font-size: clamp(42px, 6.4vw, 96px); }
.head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: clamp(48px, 6vw, 80px); }
.head .h2 { max-width: 16ch; }
.head__note { margin-top: 24px; max-width: 46ch; color: #4A4E51; }
@media (min-width: 1001px) {
  .services .head { grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 48px; }
  .services .head .tag { grid-column: 1 / -1; }
  .services .head__note { margin: 0 0 8px; justify-self: end; }
}
.head--row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
@media (max-width: 700px) { .head--row { grid-template-columns: 1fr; } .head--row .btn { justify-self: start; } }

/* ---------- Services ---------- */
.services { padding: var(--sec) 0; }
.cards { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 16px; align-items: stretch; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r); padding: clamp(24px, 3vw, 36px);
  min-height: 460px; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__tag { display: inline-block; align-self: start; padding: 5px 10px; border: 1px solid #C9C9C4; border-radius: 999px; color: #55595C; font-size: 10.5px; margin-bottom: auto; }
.card__title { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.05; margin: 56px 0 14px; }
.card > p { color: #4A4E51; font-size: 16px; margin-bottom: 24px; }
.card__list { border-top: 1px solid #CFCFCA; }
.card__list li { padding: 11px 0; border-bottom: 1px solid #CFCFCA; font-size: 15px; display: flex; gap: 10px; }
.card__list li::before { content: "+"; font-family: var(--mono); color: var(--muted); }
.card--dark { background: var(--dark); color: var(--paper); }
.card--dark .card__tag { border-color: var(--line-dark); color: #A3A6A8; }
.card--dark > p { color: #B7BABC; }
.card--dark .card__list, .card--dark .card__list li { border-color: var(--line-dark); }
.card--dark .btn { margin-top: 24px; align-self: start; }
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__title { margin-top: 40px; }
  .card--dark { order: -1; }
}

/* ---------- Why ---------- */
.why { padding: 0 0 var(--sec); }
.head--split { grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 48px; }
.head--split .head__note { margin: 0 0 8px; justify-self: end; }
.why .h2 { max-width: 14ch; }
.why__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.why__stage { position: sticky; top: 110px; }
.why__caption { color: var(--muted); text-align: center; margin-top: 18px; font-size: 10.5px; }

.why__list { border-top: 1px solid var(--line); }
.why__list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
}
.why__list li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.why__list li.active::before { transform: scaleX(1); }
.why__num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-size: 11px; margin-top: 2px;
  transition: background-color .4s, color .4s, border-color .4s;
}
.why__list li.active .why__num { background: var(--text); border-color: var(--text); color: var(--paper); }
.why__list h3 { font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -.03em; margin-bottom: 10px; }
.why__list p { color: #4A4E51; max-width: 44ch; }

/* --- Laptop mockup (pure CSS, scales with its width) --- */
.laptop { width: 100%; filter: drop-shadow(0 40px 60px rgba(14,16,17,.16)) drop-shadow(0 8px 16px rgba(14,16,17,.08)); }
.laptop__lid {
  background: #1A1C1E; border-radius: 2.2% 2.2% 0 0 / 3.4% 3.4% 0 0; padding: 2.4% 2.4% 3%;
  box-shadow: inset 0 0 0 1px #2C2F31;
}
.laptop__screen { container-type: inline-size; background: #FAFAF8; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.laptop__base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -6.5%;
  background: linear-gradient(#D9D9D5, #BDBDB8 60%, #A9A9A4); border-radius: 0 0 10px 10px / 0 0 60% 60%;
}
.laptop__base span { position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); background: #B3B3AE; border-radius: 0 0 8px 8px; }

/* everything inside the screen is sized in cqw so it scales as one image */
.mock { font-family: var(--font); color: #16191B; height: 100%; display: flex; flex-direction: column; }
.mock span, .mock i, .mock b, .mock em { font-style: normal; }
.mock__bar { display: flex; align-items: center; gap: .7cqw; height: 4.4cqw; padding: 0 1.6cqw; background: #ECECE8; border-bottom: 1px solid #DCDCD7; flex: none; }
.mock__bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #C9C9C4; }
.mock__bar span { margin: 0 auto; transform: translateX(-2cqw); font-family: var(--mono); font-size: 1.2cqw; color: #7D8083; background: #F7F7F4; padding: .4cqw 4cqw; border-radius: 2cqw; }
.mock__nav { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 4cqw; flex: none; }
.mock__logo { position: relative; font-size: 1.35cqw; letter-spacing: .02em; color: #55595C; white-space: nowrap; border-radius: .6cqw; padding: .4cqw .6cqw; margin: -.4cqw -.6cqw; }
.mock__logo b { font-size: 2cqw; font-weight: 600; letter-spacing: -.02em; color: #16191B; margin-right: .5cqw; }
.mock__links { display: flex; gap: 2.4cqw; margin-left: auto; font-size: 1.35cqw; color: #55595C; }
.mock__btn { position: relative; font-size: 1.35cqw; background: #16191B; color: #FAFAF8; padding: 1cqw 2cqw; border-radius: 3cqw; white-space: nowrap; }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; padding: 1.4cqw 4cqw 2.4cqw; align-items: center; flex: 1; min-height: 0; }
.mock__copy { display: flex; flex-direction: column; gap: 1.4cqw; }
.mock__eyebrow { font-family: var(--mono); font-size: 1.05cqw; letter-spacing: .08em; text-transform: uppercase; color: #8C8F91; }
.mock__h { font-size: 4.6cqw; line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.mock__p { font-size: 1.45cqw; line-height: 1.45; color: #55595C; max-width: 30ch; }
.mock__ctas { display: flex; gap: 1cqw; margin-top: .4cqw; }
.mock__cta { font-size: 1.3cqw; padding: 1cqw 1.8cqw; border-radius: 3cqw; background: #16191B; color: #FAFAF8; white-space: nowrap; }
.mock__cta--line { background: none; color: #16191B; box-shadow: inset 0 0 0 1px #CFCFCA; }
.mock__photo {
  height: 100%; min-height: 14cqw; border-radius: 1.4cqw; position: relative; overflow: hidden;
  background:
    linear-gradient(#E6E6E2 0 40%, #C9CBC8 40% 44%, transparent 44%),
    repeating-linear-gradient(90deg, #9A9D9A 0 3cqw, #ADB0AD 3cqw 6cqw);
}
.mock__stripe {
  position: absolute; left: 1.4cqw; bottom: 1.4cqw; font-family: var(--mono); font-size: 1cqw; letter-spacing: .06em;
  text-transform: uppercase; color: #16191B; background: rgba(250,250,248,.85); padding: .6cqw 1cqw; border-radius: .6cqw;
}
.mock__stripe::before { content: "Recent project / Stevensville"; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; padding: 0 4cqw 3cqw; flex: none; }
.mock__card { position: relative; background: #EDEDEA; border-radius: 1.2cqw; padding: 1.6cqw; display: flex; flex-direction: column; gap: .5cqw; min-height: 12cqw; }
.mock__card--dark { background: #16191B; color: #FAFAF8; }
.mock__card--dark .mock__small { color: #A9ACAE; }
.mock__stars { font-size: 1.3cqw; letter-spacing: .2em; }
.mock__big { font-size: 3.2cqw; letter-spacing: -.04em; line-height: 1; margin-top: auto; }
.mock__small { font-size: 1.15cqw; color: #6E7173; }
.mock__field { height: 2.2cqw; border-radius: .6cqw; background: #FAFAF8; }
.mock__send { margin-top: auto; align-self: start; font-size: 1.15cqw; padding: .6cqw 1.6cqw; border-radius: 3cqw; background: #16191B; color: #FAFAF8; }

/* numbered pins + highlight */
.pin {
  position: absolute; z-index: 3; top: -1.3cqw; right: -1.3cqw;
  display: grid; place-items: center; width: 2.8cqw; height: 2.8cqw; border-radius: 50%;
  background: #16191B; color: #FAFAF8; font-family: var(--mono); font-size: 1.3cqw;
  box-shadow: 0 0 0 .45cqw #FAFAF8; transition: transform .45s var(--ease);
}
.mock__btn .pin { background: #FAFAF8; color: #16191B; box-shadow: 0 0 0 .45cqw #16191B; }
.mock__card--dark .pin { background: #FAFAF8; color: #16191B; box-shadow: 0 0 0 .45cqw #FAFAF8, 0 0 0 .7cqw #16191B; }
.mock__logo .pin { right: -2.6cqw; top: -1cqw; }
.mock [data-spot] { transition: opacity .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.laptop.focus .mock [data-spot] { opacity: .38; }
.laptop.focus .mock [data-spot].lit { opacity: 1; box-shadow: 0 0 0 .35cqw #FAFAF8, 0 0 0 .6cqw #16191B; transform: translateY(-.3cqw); }
.laptop.focus .mock [data-spot].lit .pin { transform: scale(1.18); }
.mock__btn.lit { box-shadow: 0 0 0 .35cqw #FAFAF8, 0 0 0 .6cqw #16191B !important; }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #16191B; opacity: 0; }
.lit .pin::after { animation: ping 2.4s var(--ease) infinite; }

@media (max-width: 1000px) {
  .head--split { grid-template-columns: 1fr; }
  .head--split .head__note { justify-self: start; margin-top: 24px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__stage { position: sticky; top: 72px; z-index: 2; background: var(--bg); padding: 8px 0 14px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); border-bottom: 1px solid var(--line); }
  .why__caption { display: none; }
  .laptop { max-width: 520px; margin: 0 auto; width: 88%; }
  .why__list { border-top: 0; }
  .why__list li { grid-template-columns: 44px 1fr; padding: 26px 0; }
}
@media (max-width: 1000px) and (max-height: 560px) { .why__stage { position: static; } }

/* ---------- Process ---------- */
.process { padding: var(--sec) 0; background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding-top: 36px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: -16px; height: 1px; background: #C5C5C0; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px var(--surface); }
.step:last-child::before { right: 0; }
.step__num { display: block; color: var(--muted); margin-bottom: 18px; }
.step h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; max-width: 14ch; }
.step p { color: #4A4E51; font-size: 15.5px; max-width: 30ch; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 36px; }
  .step::before { top: 6px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .step::after { top: 1px; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
}

/* ---------- About ---------- */
.about { padding: var(--sec) 0; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__copy .h2 { margin-bottom: 32px; max-width: 13ch; }
.about__copy > p:not(.tag) { color: #B7BABC; margin-bottom: 18px; max-width: 48ch; }
.facts { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.facts dt { color: var(--muted-dark); padding-top: 3px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img { aspect-ratio: 4 / 3; }
  .facts div { grid-template-columns: 100px 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: var(--sec) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__lede { font-size: 19px; color: #3A3D40; max-width: 36ch; margin: 28px 0 40px; }
.direct { border-top: 1px solid var(--line); }
.direct li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.direct .mono { color: var(--muted); padding-top: 4px; grid-row: span 2; }
.direct a { font-size: 19px; text-decoration: none; letter-spacing: -.01em; overflow-wrap: anywhere; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.direct small { font-size: 13.5px; color: var(--muted); }
.direct small a { font-size: inherit; text-decoration: underline; }

.formcard { background: var(--surface); border-radius: calc(var(--r) + 4px); padding: clamp(24px, 3.4vw, 44px); position: relative; }
.form__head { color: var(--text); margin-bottom: 28px; }
.form__head span { color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; color: #3A3D40; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 14px 16px; min-height: 52px; resize: vertical; transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #A6A9AB; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: #FAFAF8; }
.field.bad input, .field.bad textarea { border-color: #8A2B2B; }
.form__error { color: #8A2B2B; font-size: 14px; margin: -4px 0 14px; }
.form button { margin-top: 8px; }
.form button[disabled] { opacity: .6; pointer-events: none; }
.form__fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.success { text-align: left; padding: 8px 0; }
.success:focus { outline: none; }
.success__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--text); color: var(--paper); margin-bottom: 24px; }
.success .mono { color: var(--muted); margin-bottom: 10px; }
.success h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; }
.success > p:not(.mono) { color: #4A4E51; margin-bottom: 28px; max-width: 40ch; }
.success__actions { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .direct li { grid-template-columns: 1fr; }
  .direct .mono { grid-row: auto; }
}
@media (max-width: 420px) { .success__actions .btn { white-space: normal; text-align: center; padding: 12px 18px; } }

/* ---------- Client logo strip ---------- */
.clients { padding: 26px 0; }
.clients__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.clients__label { flex: none; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(40px, 5vw, 72px) / 2)); } }
.marquee__track li { flex: none; display: flex; align-items: center; height: 48px; }
.marquee__track img {
  max-height: 34px; max-width: 150px; width: auto; height: auto;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .62; transition: opacity .3s;
}
.marquee__track img:hover { opacity: 1; }
.marquee__track .ph {
  padding: 0 22px; height: 40px; border: 1px dashed #C3C3BE; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #A3A6A8;
}
@media (max-width: 700px) {
  .clients { padding: 20px 0 22px; }
  .clients__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .clients__label br { display: none; }
  .clients__label::after { content: ""; }
}

/* ---------- Selected work ---------- */
.work { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.cases { display: grid; gap: clamp(64px, 8vw, 128px); }
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.case--flip { grid-template-columns: 1fr 1.3fr; }
.case--flip .case__media { order: 2; }

/* before / after compare */
.ba {
  --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden;
  background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(14,16,17,.12); pointer-events: none;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--text); font-size: 20px; letter-spacing: 2px;
  box-shadow: 0 8px 24px rgba(14,16,17,.22); transition: transform .3s var(--ease);
}
.ba.dragging .ba__handle span { transform: translate(-50%, -50%) scale(1.08); }
.ba__tag {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 8px; font-size: 10px; pointer-events: none;
  background: rgba(14,16,17,.55); color: var(--paper); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--text); outline-offset: 4px; }

/* placeholders until real images are in */
.ph-img {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #E2E2DE 0 14px, #DADAD5 14px 28px);
}
.ph-img span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8C8F91; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.ph-img--after { background: radial-gradient(120% 90% at 70% 20%, #2A2D30, #121517); }
.ph-img--after span { background: #23262A; color: #A3A6A8; }
.ba__after .ph-img span { transform: translateX(25%); }
.ba__before .ph-img span { transform: translateX(-25%); }

.case__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 22px; }
.case__meta span { color: var(--text); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; }
.case__title { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1; }
.case__loc { color: var(--muted); margin: 12px 0 28px; }
.case__dl { border-top: 1px solid var(--line); margin-bottom: 28px; }
.case__dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.case__dl dt { color: var(--muted); padding-top: 3px; font-size: 10.5px; }
.case__dl dd { color: #3A3D40; }
.case__quote { margin: 0 0 28px; padding-left: 18px; border-left: 2px solid var(--text); }
.case__quote p { font-size: 18px; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 10px; }
.case__quote cite { font-style: normal; color: var(--muted); font-size: 10.5px; }

@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .case__dl div { grid-template-columns: 92px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.footer__badge { width: 64px; filter: invert(1); }
.footer__line { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.footer__links { display: grid; gap: 10px; justify-items: end; }
.footer__links a { text-decoration: none; color: #B7BABC; font-size: 15px; min-height: 28px; }
.footer__links a:hover { color: var(--paper); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--paper); }
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__links { justify-items: start; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Phone dock ---------- */
.dock { display: none; }
@media (max-width: 700px) {
  .dock {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(14,16,17,.16);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .dock.show { transform: translateY(0); }
  .dock .btn { min-height: 46px; }
}

/* ---------- Entrances ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ink .w { color: var(--paper); }
}

/* =====================================================================
   SELECTED WORK (home): cards that open each case study page
   ===================================================================== */
.wcards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.wcard { display: block; text-decoration: none; color: inherit; }
.wcard__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.035); }
.wcard__chip {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 8px; font-size: 10px;
  background: rgba(14,16,17,.55); color: var(--paper); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wcard__body { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end; padding: 22px 2px 0; }
.wcard__meta { grid-column: 1 / -1; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.wcard__meta span { color: var(--text); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; }
.wcard__title { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.02; }
.wcard__line { grid-column: 1; color: #4A4E51; max-width: 44ch; }
.wcard__go {
  grid-column: 2; grid-row: 2 / span 2; align-self: end; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.wcard:hover .wcard__go { background: var(--text); color: var(--paper); border-color: var(--text); transform: rotate(45deg); }
.wcard:focus-visible { outline-offset: 8px; border-radius: var(--r); }
@media (max-width: 800px) { .wcards { grid-template-columns: 1fr; gap: 56px; } }

/* =====================================================================
   CASE STUDY PAGES
   ===================================================================== */
.cs-hero { padding: calc(76px + clamp(56px, 9vw, 128px)) 0 0; }
.cs-hero .tag { color: var(--muted-dark); }
.cs-title { font-size: clamp(50px, 8vw, 128px); line-height: .92; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; max-width: 13ch; }
.cs-lede { max-width: 50ch; margin-top: 32px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: rgba(243,243,241,.8); }
.cs-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(48px, 7vw, 96px); padding: 20px 0 clamp(40px, 5vw, 64px); border-top: 1px solid rgba(243,243,241,.18);
}
.cs-meta dt { color: var(--muted-dark); font-size: 10.5px; margin-bottom: 8px; }
.cs-meta dd { font-size: 15px; line-height: 1.45; }
.cs-cover { background: linear-gradient(var(--dark) 50%, var(--bg) 50%); }
.cs-cover figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--dark-2); }
.cs-cover img { width: 100%; }

.cs-sec { padding: var(--sec) 0; }
.cs-sec--line { border-top: 1px solid var(--line); }
.cs-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.cs-body p { font-size: clamp(17px, 1.3vw, 19px); color: #3A3D40; max-width: 58ch; }
.cs-body p + p { margin-top: 1.1em; }
.cs-body strong { color: var(--text); font-weight: 500; }
.cs-list { border-top: 1px solid var(--line); }
.cs-list li { display: flex; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.cs-list .mono { color: var(--muted); font-size: 10.5px; min-width: 22px; }
.cs-h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 22px; }

/* the name equation (Baykin) */
.cs-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1.4fr; gap: clamp(12px, 2.5vw, 36px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.cs-eq__part b { display: block; font-weight: 500; font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.055em; }
.cs-eq__part p { margin-top: 14px; color: #4A4E51; font-size: 15.5px; max-width: 30ch; }
.cs-eq__op { font-size: clamp(36px, 5vw, 80px); line-height: 1.05; color: var(--muted); font-weight: 400; }
.cs-eq__part--sum b { color: var(--text); }
.cs-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.cs-notes h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.cs-notes p { color: #4A4E51; }

/* identity sheet */
.cs-id { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(16px, 2vw, 24px); }
.cs-panel { border-radius: var(--r); padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; min-height: 280px; }
.cs-panel img { width: 100%; height: auto; }
.cs-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; }
.cs-swatch { border-radius: var(--r-sm); aspect-ratio: 3 / 4; display: flex; align-items: end; padding: 12px; font-size: 10.5px; border: 1px solid rgba(14,16,17,.08); }
.cs-type { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cs-type div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cs-type dt { color: var(--muted); font-size: 10.5px; padding-top: 3px; }
.cs-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cs-icons li { background: var(--dark); border-radius: var(--r-sm); aspect-ratio: 1; display: grid; place-items: center; }
.cs-icons img { width: 56%; }

/* image grid */
.cs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.cs-fig { margin: 0; grid-column: span 12; }
.cs-fig__img { border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cs-fig__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-fig figcaption { margin-top: 12px; color: var(--muted); font-size: 10.5px; }
.s-8 { grid-column: span 8; } .s-7 { grid-column: span 7; } .s-6 { grid-column: span 6; }
.s-5 { grid-column: span 5; } .s-4 { grid-column: span 4; } .s-3 { grid-column: span 3; }
.r-43 .cs-fig__img { aspect-ratio: 4 / 3; } .r-45 .cs-fig__img { aspect-ratio: 4 / 5; }
.r-1 .cs-fig__img { aspect-ratio: 1; } .r-23 .cs-fig__img { aspect-ratio: 2 / 3; }
.cs-stack { display: grid; gap: clamp(12px, 1.6vw, 20px); align-content: start; }
.cs-stack .cs-fig__img { aspect-ratio: 16 / 10; }
.cs-chapter { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(72px, 9vw, 128px) 0 clamp(24px, 3vw, 36px); }
.cs-chapter:first-child { margin-top: 0; }
.cs-chapter h2 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1; }
.cs-chapter p { color: #4A4E51; max-width: 40ch; text-align: right; }

/* browser frame for website shots */
.cs-browser { border-radius: var(--r); overflow: hidden; background: #1B1E20; box-shadow: 0 40px 100px rgba(14,16,17,.22); }
.cs-browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #24282B; }
.cs-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3B4044; }
.cs-browser__bar span { margin-left: 14px; flex: 1; max-width: 340px; padding: 5px 12px; border-radius: 999px; background: #1B1E20; color: #8C9196; font-size: 10.5px; text-transform: none; letter-spacing: .02em; }
.cs-browser img { width: 100%; }

/* stat + result */
.cs-result { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cs-stat b { display: block; font-weight: 500; font-size: clamp(88px, 14vw, 220px); line-height: .82; letter-spacing: -.06em; }
.cs-stat span { display: block; margin-top: 18px; color: var(--muted-dark); }
.cs-result p { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.015em; max-width: 34ch; }

/* next project + CTA */
.cs-next { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.cs-next .mono { color: var(--muted); }
.cs-next b { display: block; font-weight: 500; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.05em; line-height: .95; margin: 14px 0 18px; }
.cs-next .arr { display: inline-block; transition: transform .35s var(--ease); }
.cs-next:hover .arr { transform: translate(4px, -4px); }
.cs-next__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.cs-next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cs-next:hover .cs-next__img img { transform: scale(1.035); }
.cs-cta { padding: var(--sec) 0; }
.cs-cta .h2 { max-width: 15ch; }
.cs-cta p { margin-top: 24px; max-width: 46ch; color: #B7BABC; font-size: 18px; }
.cs-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cs-cta .btn--ghost { color: var(--paper); border-color: rgba(243,243,241,.3); }
.cs-cta .btn--ghost:hover { border-color: var(--paper); }

@media (max-width: 900px) {
  .cs-meta { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .cs-split, .cs-id, .cs-result, .cs-next { grid-template-columns: 1fr; }
  .cs-eq { grid-template-columns: 1fr auto 1fr; row-gap: 28px; }
  .cs-eq__op--eq { display: none; }
  .cs-eq__part--sum { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
  .cs-notes { grid-template-columns: 1fr; }
  .s-8, .s-7, .s-6, .s-5, .s-4 { grid-column: span 12; }
  .s-3, .m-6 { grid-column: span 6; }
  .cs-chapter { flex-direction: column; align-items: start; }
  .cs-chapter p { text-align: left; }
  .cs-icons { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .cs-eq__part p { font-size: 14px; }
  .cs-browser__bar span { display: none; }
}

/* ---------- Hero: "See my work" link ---------- */
.hero__work {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px;
  color: rgba(243,243,241,.82); font-size: 15px; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(243,243,241,.35); transition: color .3s, text-decoration-color .3s;
}
.hero__work:hover { color: var(--paper); text-decoration-color: var(--paper); }
.hero__work span { transition: transform .35s var(--ease); }
.hero__work:hover span { transform: translateY(3px); }

/* ---------- Contact: what happens next ---------- */
.next { margin: 0 0 40px; }
.next__label { color: var(--muted); margin-bottom: 14px; }
.next__steps { border-top: 1px solid var(--line); }
.next__steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next__steps .mono { color: var(--muted); font-size: 10.5px; padding-top: 4px; }
.next__steps strong { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.next__steps p { color: #4A4E51; font-size: 15px; margin-top: 2px; }

/* ---------- Form: tap-to-pick choices ---------- */
.field--chips { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field--chips legend { padding: 0; font-size: 14px; margin-bottom: 10px; color: #3A3D40; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 15px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover span { border-color: #A6A9AB; }
.chip input:checked + span { background: var(--text); color: var(--paper); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.chip:active span { transform: scale(.98); }
.field--chips.bad .chip span { border-color: #8A2B2B; }
.opt { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.form__preview { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #FFF6D6; color: #6B5A1E; font-size: 12.5px; }

/* Anything marked hidden stays hidden, even if a class sets display */
[hidden] { display: none !important; }
