/* esmacevik.com
   Source of truth: Figma "Portfolio 26 SOT Design" (dCBMld53zR3Bd0dHku3W6E)
   Tokens below mirror the Figma variables. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg-page: #f2efe8;
  --bg-subtle: #ece8e0;
  --bg-surface: #fbfaf6;
  --bg-inverse: #141414;
  --bg-inverse-raised: #1c1b19;
  --bg-accent: #57a76d;
  --pattern-dot: #dcd6ca;
  --pattern-bar: #c9c2b4;

  --text-primary: #141414;
  --text-body: #3e3b35;
  --text-secondary: #5e5b54;
  --text-tertiary: #9c968a;
  --text-logo: #0d0c21;
  --text-accent: #57a76d;
  --text-inverse: #f2efe8;
  --text-inverse-secondary: #a8a196;
  --text-accent-on-dark: #f6b4d4;
  --text-link-on-dark: #f8b4d8;
  --text-highlight-on-dark: #5eb576;

  --border-default: #d9d4c9;
  --border-on-dark: #3a3631;
  --border-strong: #141414;

  --radius-tile: 4px;
  --radius-card: 16px;
  --radius-letter: 20px;
  --radius-feature: 24px;
  --radius-contact: 32px;
  --radius-pill: 999px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-logo: "Rubik", var(--font-sans);

  --container: 1200px;
  --gutter: 120px;
  --section-y: 64px;
  --nav-h: 96px;
}

@media (max-width: 1280px) { :root { --gutter: 64px; } }
@media (max-width: 960px)  { :root { --gutter: 40px; } }
@media (max-width: 640px)  { :root { --gutter: 20px; --section-y: 48px; --nav-h: 97px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--bg-inverse); color: var(--text-inverse); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus-visible { top: 16px; }

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

/* Dot pattern (rebuilt in CSS, Figma uses vectors on a 24px grid) */
.dots { background-image: radial-gradient(circle at 12px 12px, var(--pattern-dot) 1.1px, transparent 1.6px); background-size: 24px 24px; }

/* Type helpers */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.serif-note { font-family: var(--font-serif); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; color: var(--text-secondary); }
.section-title { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }

/* Buttons and links */
.text-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; line-height: 20px; padding-block: 7px; }
.text-btn img { width: 16px; height: 16px; transition: transform .2s ease; }
.text-btn:hover img { transform: translate(2px, -2px); }
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.link-underline:hover { background-size: 100% 1px; }

.circle-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); transition: background-color .2s ease, border-color .2s ease; }
.circle-btn img { width: 16px; height: 16px; }
.circle-btn img.lock { height: 18px; }
a:hover .circle-btn, .circle-btn:hover { background: var(--text-accent-on-dark); border-color: var(--text-accent-on-dark); }

.chip { display: inline-flex; align-items: center; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); line-height: normal; white-space: nowrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }

/* ===== Nav ===== */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(242, 239, 232, 0.92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); box-shadow: 0 1px 0 var(--border-default); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { font-family: var(--font-logo); font-weight: 700; font-size: 24px; line-height: 28px; color: var(--text-logo); text-transform: lowercase; letter-spacing: 0; }
.logo span { color: var(--text-accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 16px; font-weight: 500; letter-spacing: 0.01em; line-height: 24px; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-accent); }
.nav-links .nav-resume { padding: 0; letter-spacing: 0.01em; line-height: 24px; }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; line-height: 21px; padding: 12px 0; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars span { top: 5.2px; } .menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5.2px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 640px) {
  .nav { align-items: flex-end; padding-bottom: 11px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--bg-page); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .mobile-menu ul { display: flex; flex-direction: column; }
  .mobile-menu li a { display: block; padding: 16px 0; font-size: 36px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--border-default); }
  .mobile-menu li a[aria-current="page"] { color: var(--text-accent); }
  .mobile-menu .mobile-menu-foot { display: flex; gap: 24px; font-size: 16px; font-weight: 500; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--bg-page); box-shadow: none; }
}

/* Dotted backdrop: covers the nav and the hero only, ends where the hero ends */
.dotted { position: relative; }
.dotted::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--nav-h) * -1); z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 12px 12px, var(--pattern-dot) 1.1px, transparent 1.6px); background-size: 24px 24px; }
@media (max-width: 640px) { .br-desktop { display: none; } }

/* ===== Home hero ===== */
.home-hero { position: relative; min-height: calc(828px - var(--nav-h)); }
.home-hero .container { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding-top: 127px; padding-bottom: 72px; }
.hero-copy { max-width: 560px; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .head { display: flex; flex-direction: column; gap: 8px; }
.hero-title { font-size: 64px; font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.hero-lead { font-size: 18px; line-height: 1.6; max-width: 520px; }
.hero-copy .details { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.hero-art { --w: 307px; position: relative; flex: none; width: calc(var(--w) * 1.14); height: calc(var(--w) * 1.56); margin-right: 28px; }
.stamp { position: relative; }
.stamp img { width: 100%; height: auto; }
.blend-luminosity { mix-blend-mode: luminosity; }
.hero-art .stamp-main { position: absolute; left: 0; top: 0; width: var(--w); }
.hero-art .seal { position: absolute; left: calc(var(--w) * .697); top: calc(var(--w) * .938); width: calc(var(--w) * .443); }
.hero-art .signature { position: absolute; left: calc(var(--w) * .046); top: calc(var(--w) * 1.49); width: calc(var(--w) * .492); }

/* Desktop: hero plus the 120px logo band fill the first screen, like the Figma frame (828 + 120) */
@media (min-width: 901px) {
  .home-hero { min-height: max(520px, calc(100svh - var(--nav-h))); display: flex; align-items: center; }
  .home-hero .container { align-items: center; padding-top: 8px; padding-bottom: 16px; }
  .hero-art { --w: clamp(220px, calc((100svh - var(--nav-h) - 80px) / 1.56), 307px); }
  .hero-title { font-size: clamp(48px, calc((100svh - 96px) * .12), 64px); }
}
@media (min-width: 901px) and (max-width: 1100px) { .hero-art { --w: min(260px, clamp(200px, calc((100svh - var(--nav-h) - 80px) / 1.56), 307px)); margin-right: 0; } }
@media (max-width: 900px) {
  .home-hero { min-height: 0; }
  .home-hero .container { flex-direction: column-reverse; gap: 20px; padding-top: 32px; padding-bottom: 64px; }
  .hero-art { --w: 188px; margin: 0 0 0 7px; width: 220px; height: 280px; }
  .hero-art .seal { left: 126px; top: 184px; width: 93px; }
  .hero-art .signature { display: none; }
  .hero-copy { gap: 32px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; }
  .hero-lead { font-size: 16px; line-height: 1.65; }
  .hero-copy .head { gap: 12px; }
  .hero-copy .details { gap: 24px; }
}

/* ===== Designed for band ===== */
.band { border-block: 1px solid var(--border-default); overflow: hidden; }
.band-inner { display: flex; align-items: center; gap: 40px; padding-block: 44px; padding-left: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--container) - var(--gutter) * 2) / 2)); }
.band-label { flex: none; width: 150px; font-family: var(--font-serif); font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: 0.01em; }
.band-logos { flex: 1; min-width: 0; overflow: hidden; }
.band-track { display: flex; align-items: center; gap: 52px; width: max-content; animation: marquee 45s linear infinite; }
.band-track img { flex: none; width: auto; }
.band-logos:hover .band-track { animation-play-state: paused; }
.band-logos { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (max-width: 640px) {
  .band-inner { gap: 24px; padding-block: 40px; padding-left: 24px; }
  .band-label { width: auto; font-size: 14px; }
  .band-track { gap: 48px; animation-duration: 36s; --half-gap: 24px; }
  .band-track img { transform: scale(.92); }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 26px)); } }

/* ===== Section scaffolding ===== */
.section { padding-block: var(--section-y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }

/* ===== Selected work (Home) ===== */
.selected { padding-top: 120px; padding-bottom: 64px; }
.case-list { display: flex; flex-direction: column; gap: 40px; }
.case-card { display: grid; grid-template-columns: 550fr 598fr; column-gap: 52px; align-items: start; }
.case-card .visual { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 550 / 350; background: var(--bg-subtle); }
.case-card .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.case-card:hover .visual img { transform: scale(1.015); }
.case-card .body { display: flex; justify-content: space-between; gap: 24px; padding-top: 47px; }
.case-card .text { max-width: 460px; display: flex; flex-direction: column; gap: 32px; }
.case-card .text-top { display: flex; flex-direction: column; gap: 24px; }
.case-card .title-block { display: flex; flex-direction: column; gap: 8px; }
.case-card h3 { font-size: 42px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; max-width: 440px; }
.case-card .desc { color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 1100px) { .case-card h3 { font-size: 34px; } .case-card .body { padding-top: 16px; } }
@media (max-width: 760px) {
  .selected { padding-top: 48px; padding-bottom: 48px; }
  .case-list { gap: 48px; }
  .case-card { grid-template-columns: 1fr; row-gap: 20px; }
  .case-card .body { padding-top: 0; }
  .case-card .text { gap: 20px; }
  .case-card .text-top { gap: 12px; }
  .case-card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
  .case-card .desc { font-size: 14px; }
  .case-card .circle-btn { width: 40px; height: 40px; }
  .case-card .chip { font-size: 10px; padding: 5px 10px; }
}

/* ===== Letters (In their words) ===== */
.letters { padding-block: 64px; overflow: hidden; }
.pager { display: flex; align-items: center; gap: 12px; }
.pager .count { font-size: 12px; letter-spacing: 0.06em; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-right: 0; }
.pager button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-size: 20px; font-weight: 500; line-height: 1; transition: opacity .2s ease, background-color .2s ease; }
.pager button:hover:not(:disabled) { background: var(--bg-surface); }
.pager button:disabled { opacity: .35; cursor: default; }
.letter-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.letter-track::-webkit-scrollbar { display: none; }
.letter { flex: none; width: 588px; scroll-snap-align: start; background: var(--bg-inverse-raised); color: var(--text-inverse); border-radius: var(--radius-letter); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 545px; }
.letter .quote { display: flex; flex-direction: column; gap: 20px; }
.letter .mark { font-size: 64px; font-weight: 600; line-height: .8; color: var(--text-accent-on-dark); height: 36px; }
.letter .excerpt { font-size: 20px; line-height: 1.55; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.letter .excerpt p + p { margin-top: 1.55em; }
.letter .read { align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-accent-on-dark); white-space: pre; padding-block: 4px; }
.letter .read:hover { text-decoration: underline; text-underline-offset: 3px; }
.letter .from { border-top: 1px solid var(--border-on-dark); padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .who { display: flex; flex-direction: column; gap: 5px; }
.person .name { font-size: 20px; font-weight: 500; }
.person .role { color: var(--text-inverse-secondary); }
.person .relation { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-inverse-secondary); }
.person .relation img { width: 14px; height: 14px; }
.linkedin-mark { width: 18px; height: 18px; opacity: .9; }
@media (max-width: 760px) {
  .letters { padding-block: 48px; }
  .letters .pager { display: none; }
  .letter-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 12px; }
  .letter { width: min(320px, 82vw); min-height: 0; padding: 28px 24px; border-radius: 16px; }
  .letter .excerpt { font-size: 16px; -webkit-line-clamp: 9; }
  .letter .mark { font-size: 48px; height: 28px; }
  .person .name { font-size: 18px; }
  .person .role { font-size: 14px; }
}

/* Letter drawer */
.drawer { position: fixed; inset: 0; z-index: 80; margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; display: flex; justify-content: flex-end; }
.drawer:not([open]) { display: none; }
.drawer::backdrop { background: rgba(20, 20, 20, .45); }
.drawer-panel { width: min(640px, 100%); height: 100%; background: var(--bg-inverse-raised); color: var(--text-inverse); display: flex; flex-direction: column; animation: drawer-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 36px; border-bottom: 1px solid var(--border-on-dark); }
.drawer-top .pager .count { color: var(--text-inverse-secondary); }
.drawer-top .pager button { border-color: var(--border-on-dark); color: var(--text-inverse); }
.drawer-top .pager button:hover:not(:disabled) { background: #26241f; }
.drawer-close { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-accent-on-dark); padding: 12px 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 40px 36px 48px; display: flex; flex-direction: column; gap: 32px; }
.drawer-body .mark { font-size: 64px; font-weight: 600; line-height: .8; color: var(--text-accent-on-dark); height: 36px; }
.drawer-body .full { font-size: 18px; line-height: 1.65; letter-spacing: -0.005em; }
.drawer-body .full p + p { margin-top: 1.1em; }
.drawer-body .from { border-top: 1px solid var(--border-on-dark); padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
@media (max-width: 640px) { .drawer-top { padding: 16px 20px; } .drawer-body { padding: 28px 20px 40px; } .drawer-body .full { font-size: 16px; } }

/* ===== How I work ===== */
.how { padding-block: 64px; }
.how .section-title { margin-bottom: 40px; }
.how-row { display: flex; gap: 40px; align-items: flex-start; padding-block: 28px; border-top: 1px solid var(--border-default); }
.how-row:last-child { border-bottom: 1px solid var(--border-default); }
.how-row .num { flex: none; width: 48px; font-family: var(--font-serif); font-size: 15px; color: var(--text-tertiary); line-height: 1.6; }
.how-row .head { flex: none; width: 420px; }
.how-row .q { display: none; font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.how-row h3 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.how-row p.desc { flex: 1; min-width: 0; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 960px) { .how-row .head { width: 300px; } }
@media (max-width: 640px) {
  .how { padding-block: 48px; }
  .how .section-title { margin-bottom: 24px; }
  .how-list { display: flex; flex-direction: column; gap: 40px; }
  .how-row { flex-direction: column; gap: 16px; padding: 0; border: 0; }
  .how-row:last-child { border: 0; }
  .how-row .num { display: none; }
  .how-row .head { width: auto; }
  .how-row .q { display: block; }
  .how-row h3 { font-size: 20px; letter-spacing: -0.02em; }
  .how-row p.desc { color: var(--text-body); line-height: 1.55; }
}

/* ===== Experience (Home) ===== */
.experience { padding-block: 64px; }
.exp-links { display: flex; gap: 24px; font-weight: 500; line-height: 27px; }
.exp-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--border-default); }
.exp-row .left { display: flex; flex-direction: column; gap: 5px; }
.exp-row .company { font-size: 18px; font-weight: 500; line-height: 27px; }
.exp-row .role { font-size: 12px; letter-spacing: 0.04em; color: var(--text-body); }
.exp-row .right { display: flex; gap: 24px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.exp-row .loc { width: 220px; text-align: right; color: var(--text-secondary); opacity: .7; }
.exp-row .dates { font-variant-numeric: tabular-nums; }
.exp-more { display: inline-block; padding-block: 20px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-body); }
.exp-more:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .experience { padding-block: 48px; }
  .experience .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .exp-links { font-size: 14px; }
  .exp-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .exp-row .company { font-size: 16px; line-height: 1.4; }
  .exp-row .right { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; font-size: 12px; }
  .exp-row .loc { width: auto; text-align: left; }
}

/* ===== Contact card + footer ===== */
.contact { padding-bottom: 72px; }
.contact-card { background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-contact); padding: 64px 72px; display: flex; flex-direction: column; gap: 52px; }
.contact-card h2 { font-size: 52px; font-weight: 400; line-height: 1.25; letter-spacing: -0.005em; max-width: 900px; }
.contact-card h2 em { font-style: normal; color: var(--text-highlight-on-dark); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 500; line-height: normal; white-space: pre; transition: background-color .2s ease, color .2s ease; }
.pill-light { background: var(--bg-page); color: var(--text-primary); }
.pill-light:hover { background: #fff; }
.pill-ghost { color: var(--text-link-on-dark); padding-inline: 14px; }
.pill-ghost:hover { background: #26241f; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; color: var(--text-secondary); }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a:hover { color: var(--text-primary); }
@media (max-width: 760px) { .contact-card { padding: 48px 40px; } .contact-card h2 { font-size: 40px; } }
@media (max-width: 640px) {
  .contact { padding-bottom: 48px; }
  .contact-card { padding: 32px 24px 24px; gap: 24px; border-radius: 24px; }
  .contact-card h2 { font-size: 36px; line-height: 1.2; }
  .contact-actions { gap: 0 8px; }
  .contact-actions .pill-ghost { padding: 12px 0; margin-right: 16px; font-size: 14px; }
  .contact-actions .pill-light { order: 3; width: 100%; justify-content: center; margin-top: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; font-size: 15px; }
  .site-footer nav { gap: 24px; }
}

/* ===== About hero ===== */
.about-hero { position: relative; }
.about-stage { position: relative; height: calc(751px - var(--nav-h)); max-width: 1440px; margin-inline: auto; }
.about-stage .corner { position: absolute; top: 18px; }
.about-stage .corner.left { left: 120px; }
.about-stage .corner.right { right: 136px; top: 16px; }
.about-stage figure { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.about-stage figcaption { padding-left: 10px; }
.about-stage .s-mayk { left: 301px; top: 19px; width: 150px; }
.about-stage .s-osman { left: 1081px; top: 187px; width: 150px; }
.about-stage .s-child { left: 103px; top: 363px; width: 150px; }
.about-stage .s-portrait { left: 567px; top: 62px; width: 307px; }
.about-stage .s-portrait img { width: 307px; }
.about-stage .caption { position: absolute; left: 0; right: 0; top: 534px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.about-stage .caption .kicker { color: var(--text-primary); }
@media (max-width: 1439px) {
  .about-stage { width: 100%; }
  .about-stage .s-mayk { left: 20.9%; } .about-stage .s-osman { left: auto; right: 14.5%; } .about-stage .s-child { left: 7.2%; }
  .about-stage .s-portrait { left: 50%; margin-left: -153px; }
  .about-stage .corner.left { left: var(--gutter); } .about-stage .corner.right { right: var(--gutter); }
}
@media (max-width: 900px) {
  .about-stage { height: auto; padding: 16px var(--gutter) 40px; display: grid; grid-template-columns: 1fr 160px 1fr; grid-template-rows: auto auto auto; align-items: start; column-gap: 12px; }
  .about-stage .corner { position: static; grid-row: 1; }
  .about-stage .corner.left { grid-column: 1 / 3; }
  .about-stage .corner.right { grid-column: 3; justify-self: end; }
  .about-stage figure { position: static; width: auto !important; margin: 0 !important; }
  .about-stage .s-child { display: none; }
  .about-stage .s-mayk { grid-column: 1; grid-row: 2; justify-self: end; width: 72px !important; margin-top: 48px !important; }
  .about-stage .s-portrait { grid-column: 2; grid-row: 2; margin-top: 20px !important; }
  .about-stage .s-portrait img { width: 160px; }
  .about-stage .s-osman { grid-column: 3; grid-row: 2; width: 74px !important; margin-top: 120px !important; }
  .about-stage figcaption { padding-left: 4px; font-size: 9px; }
  .about-stage .caption { position: static; grid-column: 1 / -1; grid-row: 3; margin-top: 12px; gap: 6px; }
  .about-stage .caption .kicker { font-size: 11px; max-width: 180px; line-height: 1.6; }
  .about-stage .caption .serif-note { display: none; }
}

/* ===== About experience ===== */
.about-intro { padding-top: 40px; padding-bottom: 120px; }
.about-intro > * + * { margin-top: 120px; }
.role-item { display: flex; gap: 48px; padding-block: 32px; border-top: 1px solid var(--border-default); }
.role-item:first-child { border-top: 0; }
.role-item .company { flex: none; width: 440px; display: flex; flex-direction: column; gap: 4px; }
.role-item .company h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.role-item .company .place { font-size: 12px; color: var(--text-tertiary); }
.role-item .detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.role-item .title-line { font-weight: 500; white-space: pre-wrap; }
.role-item .place-mobile { display: none; }
.role-item .story { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin-top: -4px; }
.role-item .chip-list { gap: 8px; padding-top: 6px; }
.role-item .chip { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 4px 10px; }
@media (max-width: 1100px) { .role-item .company { width: 300px; } }
@media (max-width: 760px) {
  .about-intro { padding-top: 24px; padding-bottom: 72px; }
  .about-intro > * + * { margin-top: 72px; }
  .role-item { flex-direction: column; gap: 4px; padding-block: 32px; }
  .role-item .company { width: auto; }
  .role-item .company h3 { font-size: 20px; }
  .role-item .company .place { display: none; }
  .role-item .detail { gap: 16px; }
  .role-item .title-line { font-size: 14px; }
  .role-item .place-mobile { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
  .role-item .story { margin-top: 0; }
}

/* ===== Projects by industry ===== */
.industry { background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-feature); padding: 56px; display: flex; flex-direction: column; gap: 40px; }
.industry-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.industry-head h2 { font-size: 42px; font-weight: 500; letter-spacing: -0.03em; line-height: normal; }
.industry-head .sub { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-inverse-secondary); margin-top: 10px; }
.industry-head .note { font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-inverse-secondary); text-align: right; }
.industry-bar { display: flex; gap: 4px; }
.industry-seg { min-width: 22px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.industry-seg .bar { height: 12px; background: var(--pattern-bar); transition: background-color .2s ease; }
.industry-seg .n { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: normal; padding-left: 4px; color: var(--text-inverse-secondary); opacity: .4; }
.industry-seg.small .n { font-size: 16px; }
.industry-seg .label { font-size: 14px; padding-left: 4px; color: var(--text-inverse-secondary); opacity: .4; white-space: nowrap; margin-top: -10px; }
.industry-seg.is-active .bar { background: var(--bg-accent); }
.industry-seg.is-active .n, .industry-seg.is-active .label { color: var(--text-inverse); opacity: 1; }
button.industry-seg:hover .n, button.industry-seg:hover .label { opacity: .8; }
.industry-projects { display: grid; grid-template-columns: repeat(4, 1fr); }
.industry-projects li { border-block: 1px solid var(--border-on-dark); padding-block: 16px; font-size: 14px; margin-top: -1px; }
@media (max-width: 1100px) { .industry-seg .label { font-size: 12px; } .industry-projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .industry-wrap { display: none; } }

/* About experience toggle */
.roles-toggle { margin-left: 488px; padding-top: 24px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: pre; }
@media (max-width: 1100px) { .roles-toggle { margin-left: 348px; } }
@media (max-width: 760px) { .roles-toggle { margin-left: 0; } }

/* ===== Works ===== */
.works-hero .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 24px; min-height: 178px; }
.works-hero h1 { font-size: 80px; font-weight: 700; line-height: 104px; letter-spacing: -0.04em; }
.works-hero p { max-width: 575px; font-size: 14px; line-height: 21px; letter-spacing: 0.03em; text-align: right; padding-top: 26px; }
.all-work { padding-top: 40px; padding-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-weight: 500; line-height: normal; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.filter .n { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.filter:hover { border-color: var(--border-strong); }
.filter[aria-pressed="true"] { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.filter[aria-pressed="true"] .n { color: #bdb7aa; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; row-gap: 72px; }
.work-card { display: flex; flex-direction: column; gap: 24px; }
.work-card[hidden] { display: none; }
.work-card .visual { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 588 / 334; background: var(--bg-subtle); }
.work-card .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .visual img { transform: scale(1.015); }
.work-card .body { display: flex; gap: 20px; align-items: flex-start; }
.work-card .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.work-card .title-block { display: flex; flex-direction: column; gap: 8px; }
.work-card .tags { display: flex; flex-wrap: wrap; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.work-card .tags li + li::before { content: "\00b7"; margin-inline: 4px; }
.work-card h2 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 524px; }
.work-card .desc { color: var(--text-secondary); line-height: 1.55; }
.work-card .company { color: var(--text-secondary); }
.work-empty { color: var(--text-secondary); padding-block: 40px; }
@media (max-width: 960px) { .work-card h2 { font-size: 24px; } }
@media (max-width: 640px) {
  .works-hero .container { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding-top: 16px; padding-bottom: 32px; }
  .works-hero h1 { font-size: 44px; line-height: 1.1; }
  .works-hero p { text-align: left; padding-top: 0; font-size: 14px; letter-spacing: 0.01em; }
  .all-work { padding-top: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-bottom: 24px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { padding: 8px 14px; font-size: 14px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .work-card { gap: 20px; }
  .work-card .text { gap: 12px; }
  .work-card .title-block { gap: 6px; }
  .work-card h2 { font-size: 22px; }
  .work-card .desc { font-size: 14px; }
  .work-card .circle-btn { width: 40px; height: 40px; }
  /* On mobile the company line moves to the top and the tags become chips */
  .work-card .text { display: flex; }
  .work-card .company { order: -1; }
  .work-card .tags { order: 3; gap: 6px; }
  .work-card .tags li { border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 5px 10px; font-size: 10px; letter-spacing: 0.06em; }
  .work-card .tags li + li::before { content: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.how-about { padding-block: 0; }
.work-link { display: flex; flex-direction: column; gap: 24px; }
.work-card .text h2 { margin-top: -8px; }
.works-contact-gap { height: 60px; }
@media (max-width: 640px) {
  .work-link { gap: 20px; }
  .work-card .text h2 { margin-top: 0; }
  .works-contact-gap { height: 24px; }
}
.about-stage .corner { white-space: nowrap; }
@media (max-width: 640px) { .section-title { font-size: 26px; } .how .section-title, .experience .section-title { font-size: 26px; } }
.industry-projects[hidden] { display: none; }

/* Hero links and intro (replaces Experience on Home) */
.hero-links, .intro-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; line-height: 27px; white-space: pre; }
.intro { padding-block: 64px; }
.intro-text { font-size: 39px; line-height: 1.7; letter-spacing: -0.01em; color: var(--text-secondary); }
.intro-text b { font-weight: 500; color: var(--text-primary); }
.intro-links { margin-top: 40px; }
@media (max-width: 960px) { .intro-text { font-size: 30px; line-height: 1.6; } }
@media (max-width: 640px) {
  .intro { padding-block: 48px; }
  .intro-text { font-size: 22px; line-height: 1.6; }
  .intro-links { margin-top: 24px; gap: 16px; }
}

/* Stamps lift a little on hover */
.hero-art .stamp-main, .hero-art .seal, .about-stage figure img { transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-origin: center; }
@media (hover: hover) {
  .hero-art .stamp-main:hover, .about-stage figure img:hover { transform: scale(1.09); }
  .hero-art .seal:hover { transform: scale(1.14) rotate(-6deg); }
}
.role-item[hidden] { display: none; }

/* =================== Case study pages =================== */
.case-hero .container { padding-top: 16px; padding-bottom: 72px; }
.case-hero-links { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 500; line-height: 16px; white-space: pre; }
.case-heading { margin-top: 100px; display: flex; flex-direction: column; gap: 12px; }
.case-kicker { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; color: var(--text-secondary); }
.case-title { font-size: 80px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; max-width: 1100px; }
.case-lead { margin-top: 28px; max-width: 780px; font-size: 20px; line-height: 1.65; }
.case-label { font-family: var(--font-serif); font-size: 16px; line-height: 1.3; letter-spacing: 0.02em; color: var(--text-secondary); }
.case-h2 { font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.section-intro { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.section-sub { margin-top: 8px; color: var(--text-secondary); line-height: 1.6; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; border-block: 1px solid var(--border-default); margin: 0; }
.meta-grid > div { padding: 32px; border-right: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 10px; }
.meta-grid > div:first-child { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.meta-grid > div:last-child { border-right: 0; padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.meta-grid dt { font-family: var(--font-serif); font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--text-secondary); }
.meta-grid dd { margin: 0; font-size: 14px; line-height: 1.35; }
.meta-grid.glance { grid-template-columns: 510fr 422fr 509fr; border-top: 0; }
.meta-grid.glance dd { line-height: 1.5; }

/* App slider */
.app-slider { background: var(--bg-subtle); padding: 40px 0; overflow: hidden; }
.pill-tabs { display: inline-flex; gap: 0; padding: 4px; border-radius: var(--radius-pill); background: rgba(20,20,20,.05); }
.pill-tabs button { padding: 8px 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; line-height: 18px; color: var(--text-secondary); transition: background-color .2s ease, color .2s ease; }
.pill-tabs button[aria-selected="true"], .pill-tabs button[aria-pressed="true"] { background: var(--bg-inverse); color: var(--text-inverse); }
.app-slider .pill-tabs { display: flex; width: max-content; margin: 0 auto 40px; }
.app-strip { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.app-strip::-webkit-scrollbar { display: none; }
.app-strip img { width: max(1440px, 100%); max-width: none; height: auto; margin-inline: auto; }

/* Case nav bar */
.case-nav { position: sticky; top: 0; z-index: 45; background: var(--bg-inverse); }
.case-nav-inner { display: flex; align-items: center; gap: 32px; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); height: 58px; }
.case-nav ul { display: flex; gap: 32px; height: 100%; overflow-x: auto; scrollbar-width: none; flex: 1; }
.case-nav ul::-webkit-scrollbar { display: none; }
.case-nav li { flex: none; height: 100%; }
.case-nav a { display: flex; align-items: center; height: 100%; font-size: 14px; color: var(--text-inverse); opacity: .6; border-bottom: 3px solid transparent; padding-top: 3px; transition: opacity .2s ease; white-space: nowrap; }
.case-nav a:hover { opacity: 1; }
.case-nav a[aria-current="true"] { opacity: 1; font-weight: 500; border-bottom-color: var(--text-inverse); }
.case-nav-top { flex: none; }
body.has-case-nav .site-header { position: relative; }

/* Sections */
.case-section { padding-block: 72px; scroll-margin-top: 58px; }
.overview { padding-top: 120px; padding-bottom: 40px; }
.overview-text { margin-top: 16px; max-width: 968px; font-size: 32px; line-height: 1.4; letter-spacing: -0.005em; }
.van-strip { margin-top: 40px; overflow: hidden; }
.van-strip { display: flex; justify-content: center; }
.van-strip img { width: 2500px; max-width: none; height: 217px; flex: none; }
.problem .case-label { margin-bottom: 40px; }
.card-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--bg-subtle); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 244px; }
.info-card h3 { font-size: 17px; font-weight: 600; line-height: 27px; margin-bottom: 12px; }
.info-card p { color: var(--text-secondary); line-height: 1.6; }
.shapes { font-family: var(--font-serif); font-weight: 500; font-size: 13px; line-height: 1.6; color: rgba(94,91,84,.8); letter-spacing: .01em; align-self: flex-start; }
.shapes:hover { color: var(--text-primary); }

.stats { display: flex; gap: 34px; margin-bottom: 64px; }
.stat { width: 280px; display: flex; flex-direction: column; }
.stat-label { font-size: 17px; font-weight: 600; line-height: 27px; margin-bottom: 8px; }
.stat-value { font-size: 80px; font-weight: 800; line-height: 104px; letter-spacing: -0.03em; }
.stat-note { padding-left: 12px; font-size: 14px; font-weight: 500; line-height: 16px; color: var(--text-secondary); }
.results { display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px; }
.results li { position: relative; padding-left: 28px; line-height: 1.6; }
.results li::before { content: "→"; position: absolute; left: 0; top: 2px; font-size: 14px; color: var(--text-accent); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: var(--bg-subtle); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.review figcaption { font-size: 17px; font-weight: 600; line-height: 27px; }
.review blockquote { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }

.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.methods li { background: var(--bg-subtle); border-radius: 8px; padding: 24px; min-height: 223px; display: flex; flex-direction: column; gap: 12px; }
.num { font-family: var(--font-serif); font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--text-tertiary); }
.methods h3, .finding h3 { font-size: 17px; font-weight: 500; }
.methods p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.findings { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-default); display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.finding { display: flex; flex-direction: column; gap: 12px; }
.finding p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.execution { padding-block: 40px; }
.dark-panel { background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-feature); padding: 56px; display: flex; flex-direction: column; gap: 64px; }
.dark-panel .section-intro { margin: 0; }
.dark-panel .case-label, .dark-panel .num { color: var(--text-inverse-secondary); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 14px; font-weight: 600; line-height: 22.5px; margin-bottom: -6px; }
.steps p { font-size: 13.3px; line-height: 1.6; color: var(--text-inverse-secondary); }
.gantt { display: flex; flex-direction: column; gap: 18px; }
.gantt-row { display: grid; grid-template-columns: 181px 1fr; gap: 22px; align-items: center; }
.gantt-name { font-size: 14.5px; line-height: 22px; }
.gantt-head { font-size: 12.7px; font-weight: 500; line-height: 18px; }
.gantt-months { position: relative; height: 18px; }
.gantt-months span { position: absolute; top: 0; }
.gantt-track { position: relative; height: 7px; border-radius: 999px; background: var(--bg-inverse-raised); overflow: hidden; }
.gantt-bar { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--bg-accent); transform-origin: left; }
.gantt-range { display: none; }
.gantt.is-visible .gantt-bar { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* Decisions */
.decisions { padding-bottom: 48px; }
.decision { scroll-margin-top: 80px; }
.decision + .decision { margin-top: 120px; }
.decision-head { display: flex; flex-direction: column; gap: 8px; }
.decision-head .responds { font-family: var(--font-serif); font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--text-tertiary); }
.decision-body { margin-top: 16px; max-width: 760px; line-height: 1.6; }
.decision-tabs { margin-top: 40px; margin-bottom: 24px; }
.decision-visual { margin-top: 64px; }
.decision-tabs + .tab-panels .compare, .decision-tabs + .tab-panels { margin-top: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-toggle { display: none; }
.compare-card { background: var(--bg-subtle); border-radius: 8px; padding: 20px 32px 32px; display: grid; grid-template-columns: 207px 277px; justify-content: space-between; column-gap: 24px; row-gap: 19px; }
.compare-card .compare-label { grid-column: 2; font-family: var(--font-serif); font-size: 16px; line-height: 20px; color: var(--text-secondary); text-align: right; }
.compare-card.after { grid-template-columns: 277px 207px; }
.compare-card.after .compare-label { grid-column: 1; text-align: left; }
.compare-card .phone { grid-row: 2; width: 277px; border-radius: 18px; }
.compare-card.before .phone { grid-column: 2; }
.compare-card.before .notes { grid-column: 1; grid-row: 2; }
.compare-card.after .phone { grid-column: 1; }
.compare-card.after .notes { grid-column: 2; grid-row: 2; }
.notes { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; counter-reset: n; }
.notes li { font-size: 14px; line-height: 1.55; color: var(--text-secondary); counter-increment: n; }
.notes li::before { content: "0" counter(n); display: block; font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; }
.after .notes li::before { color: var(--text-accent); }
.flow-card { background: var(--bg-subtle); border-radius: 8px; padding: 66px 54px 56px; display: grid; grid-template-columns: 1fr 278px 278px 1fr; gap: 32px; align-items: start; }
.flow-card .flow-note { padding-top: 40px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 230px; }
.flow-card figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.flow-card figcaption { font-family: var(--font-serif); font-size: 16px; color: var(--text-secondary); }
.flow-card img { width: 278px; border-radius: 18px; }
.built { margin-top: 40px; }
.built .case-label { margin-bottom: 20px; }
.built-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.built-cols h3 { font-size: 17px; font-weight: 500; line-height: 21px; margin-bottom: 8px; }
.built-cols p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.ds-image { margin-top: 40px; border-radius: 16px; overflow: hidden; background: #1e1d18; }
.ds-image + .ds-image { margin-top: 40px; }
.ds-image img { width: 100%; }

.learning-list li { display: grid; grid-template-columns: 360px 1fr; gap: 40px; padding-block: 20px; border-bottom: 1px solid var(--border-default); }
.learning-list h3 { font-size: 16px; font-weight: 500; }
.learning-list p { line-height: 1.6; }

.other-work { padding-top: 72px; padding-bottom: 60px; }
.other-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.other-head h2 { font-size: 42px; font-weight: 500; letter-spacing: -0.02em; line-height: 52px; }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.other-grid .work-card h2 { font-size: 22px; }
.other-grid .work-card .visual { aspect-ratio: 384 / 219; }

.ab-test { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-card { background: var(--bg-subtle); border: 1px solid var(--border-default); border-radius: 8px; padding: 40px; display: flex; flex-direction: column; }
.ab-card.winner { border-color: #90a285; }
.ab-top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.ab-chip { background: #2c322c; color: var(--text-inverse); border-radius: 999px; padding: 5px 12px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ab-button { margin-top: 32px; max-width: 419px; height: 60px; border-radius: 999px; background: #ff2c2c; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font-weight: 700; font-size: 17px; }
.ab-button span:first-child { font-size: 22px; }
.ab-value { margin-top: 32px; font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ab-card:not(.winner) .ab-value { color: var(--text-secondary); }
.ab-label { margin-top: 10px; font-size: 14px; font-weight: 500; }


/* Case page, screen comparison and figures (fizy web player) */
.section-body { margin-top: 8px; max-width: 760px; line-height: 1.6; }
.case-figure { margin: 0; }
.case-figure img { width: 100%; border-radius: 20px; }
.case-visual { overflow: hidden; background: #e9e5dc; }
.case-visual img { width: max(1440px, 100%); max-width: none; height: auto; margin-inline: auto; }
.info-card.compact { min-height: 0; justify-content: flex-start; gap: 12px; }
.info-card.compact h3 { margin: 0; }
.shot-compare { background: var(--bg-subtle); border-radius: 20px; padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.shot-compare .compare-toggle { display: inline-flex; align-self: flex-start; background: var(--bg-subtle); }
.shot-body { display: grid; grid-template-columns: minmax(0, 880fr) minmax(160px, 200fr); gap: 40px; align-items: start; }
.shot-media { position: relative; }
.shot-media img { width: 100%; border-radius: 21px; }
.shot-compare[data-show="after"] .shot.before, .shot-compare[data-show="before"] .shot.after { display: none; }
.shot-compare[data-show="after"] .notes.before, .shot-compare[data-show="before"] .notes.after { display: none; }
.shot-notes .notes { padding-top: 0; gap: 20px; }
.shot-notes .notes li { font-size: 13px; line-height: 1.6; color: var(--text-body); }
.shot-notes .notes li::before { font-size: 12px; margin-bottom: 4px; letter-spacing: .02em; }
.shot-notes .notes.after li::before { color: var(--text-accent); }
.ds-showcase { margin: 0; background: var(--bg-subtle); border-radius: 20px; padding: 48px 40px; }
.ds-showcase img { width: 100%; }
.feature-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid li { background: var(--bg-subtle); border-radius: 8px; padding: 24px; min-height: 146px; }
.feature-grid h4 { font-size: 17px; font-weight: 500; line-height: 26px; margin-bottom: 8px; }
.feature-grid p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.decision .section-intro { margin-bottom: 40px; }
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-body { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .case-visual img { width: 960px; }
  .case-figure { margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
  .case-figure::-webkit-scrollbar { display: none; }
  .case-figure img { width: 760px; max-width: none; border-radius: 12px; }
  .shot-compare { padding: 16px; border-radius: 12px; gap: 16px; }
  .shot-media img { border-radius: 8px; }
  .ds-showcase { padding: 20px 16px; border-radius: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .feature-grid li { min-height: 0; padding: 20px; }
}


/* Case page extras (fizy mobile app) */
.section-intro .responds { font-family: var(--font-serif); font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--text-tertiary); }
.decision .section-intro + .decision-tabs, .decision .section-intro + .decision-visual { margin-top: 0; }
.case-visual.band { background: var(--bg-subtle); padding-block: 50px; }
.theme-strip { margin-top: 72px; overflow: hidden; display: flex; justify-content: center; }
.theme-strip img { width: 1440px; max-width: none; flex: none; }
.finding-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.finding-cards li { background: #f1e3d6; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.finding-cards .num { font-family: var(--font-serif); font-size: 15px; color: var(--text-secondary); }
.finding-cards h3 { font-size: 17px; font-weight: 500; line-height: 1.4; margin: 8px 0 12px; }
.finding-cards p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.phone-showcase { background: var(--bg-subtle); border-radius: 20px; padding: 50px 22px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phone-showcase li { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.phone-showcase img { width: 100%; max-width: 277px; border-radius: 18px; }
.phone-showcase p { width: 100%; max-width: 277px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.ds-columns { border-top: 1px solid var(--border-default); padding-top: 43px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.ds-columns h4 { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 10px; }
.ds-columns p { font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.ds-sheets { margin: 40px 0 0; }
.ds-sheets img { width: 100%; }
@media (max-width: 1100px) {
  .finding-cards { grid-template-columns: 1fr 1fr; }
  .ds-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .theme-strip { margin-top: 40px; }
  .case-visual.band { padding-block: 28px; }
  .theme-strip img { width: 900px; }
  .finding-cards { grid-template-columns: 1fr; gap: 12px; }
  .finding-cards li { padding: 20px; }
  .phone-showcase { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 16px; gap: 12px; border-radius: 12px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding-inline: var(--gutter); }
  .phone-showcase::-webkit-scrollbar { display: none; }
  .phone-showcase li { flex: none; width: 62vw; scroll-snap-align: start; }
  .ds-columns { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; }
  .ds-sheets { margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
  .ds-sheets::-webkit-scrollbar { display: none; }
  .ds-sheets img { width: 760px; max-width: none; }
}

.decision-visual + .phone-showcase { margin-top: 40px; }
.section-label { margin-bottom: 40px; }
.case-section.text-only { padding-block: 48px; }

.phone-showcase.fixed { grid-template-columns: repeat(var(--n), minmax(0, 260px)); justify-content: center; column-gap: 32px; }
.case-section.text-only + .case-section.text-only { padding-top: 0; }

/* Tab panels */
[role="tabpanel"][hidden] { display: none; }

@media (max-width: 1100px) {
  .case-title { font-size: 64px; }
  .compare-card { grid-template-columns: 1fr; justify-content: stretch; }
  .compare-card.after { grid-template-columns: 1fr; }
  .compare-card .compare-label, .compare-card.after .compare-label { grid-column: 1; text-align: left; }
  .compare-card .phone, .compare-card.before .phone, .compare-card.after .phone { grid-column: 1; grid-row: 2; justify-self: center; }
  .compare-card.before .notes, .compare-card.after .notes { grid-column: 1; grid-row: 3; }
  .flow-card { grid-template-columns: 1fr 1fr; }
  .flow-card .flow-note { grid-column: span 2; padding-top: 0; max-width: none; }
  .stats { flex-wrap: wrap; }
  .steps, .methods { grid-template-columns: 1fr 1fr; }
  .built-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .case-hero .container { padding-bottom: 32px; }
  .case-heading { margin-top: 32px; gap: 4px; }
  .case-kicker { font-size: 14px; }
  .case-title { font-size: 44px; line-height: 1.05; }
  .case-lead { margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .meta-grid, .meta-grid.glance { grid-template-columns: 1fr; }
  .meta-grid > div, .meta-grid > div:first-child, .meta-grid > div:last-child { padding: 20px var(--gutter); border-right: 0; border-bottom: 1px solid var(--border-default); }
  .meta-grid > div:last-child { border-bottom: 0; }
  .app-slider { padding: 24px 0; }
  .app-slider .pill-tabs { margin-bottom: 24px; }
  .app-strip img { width: 1100px; }
  .case-nav-inner { padding-right: 0; }
  .case-nav .case-nav-top { display: none; }
  .case-section { padding-block: 48px; }
  .overview { padding-top: 64px; }
  .overview-text { font-size: 22px; line-height: 1.5; }
  .van-strip img { width: 1250px; height: 108px; }
  .card-grid.two { grid-template-columns: 1fr; gap: 12px; }
  .info-card { min-height: 0; padding: 20px; gap: 12px; }
  .stats { flex-direction: column; gap: 24px; margin-bottom: 40px; }
  .stat { width: 100%; border-bottom: 1px solid var(--border-default); padding-bottom: 16px; }
  .stat-value { order: 0; font-size: 64px; line-height: 1; }
  .stat-note { order: 1; padding-left: 0; margin-top: 4px; }
  .stat-label { order: 2; margin: 12px 0 0; }
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; gap: 12px; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: none; width: 78vw; scroll-snap-align: start; padding: 20px; }
  .methods { grid-template-columns: 1fr; gap: 12px; }
  .methods li { min-height: 0; padding: 20px; }
  .findings { grid-template-columns: 1fr; gap: 28px; }
  .dark-panel { padding: 28px 20px; gap: 32px; border-radius: 16px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .gantt-row { grid-template-columns: 1fr auto; gap: 12px; padding-block: 6px; }
  .gantt-head { display: none; }
  .gantt-track { display: none; }
  .gantt-range { display: block; font-family: var(--font-serif); font-size: 13px; color: var(--text-accent); }
  .decision + .decision { margin-top: 72px; }
  .decision-tabs.pill-tabs { background: none; padding: 0; border-bottom: 1px solid var(--border-default); border-radius: 0; gap: 16px; display: flex; }
  .decision-tabs.pill-tabs button { padding: 8px 0; border-radius: 0; background: none; color: var(--text-secondary); }
  .decision-tabs.pill-tabs button[aria-selected="true"] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--text-accent); }
  .compare { grid-template-columns: 1fr; background: var(--bg-subtle); border-radius: 8px; padding: 16px; gap: 0; }
  .compare-toggle { display: inline-flex; justify-self: start; margin-bottom: 16px; }
  .compare-card { background: none; padding: 0; }
  .compare-card .compare-label { display: none; }
  .compare-card .phone { width: 190px; }
  .compare:not([data-show="before"]) .compare-card.before, .compare[data-show="before"] .compare-card.after { display: none; }
  .flow-card { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
  .flow-card img { width: 100%; }
  .built-cols { grid-template-columns: 1fr; gap: 20px; }
  .ab-test { grid-template-columns: 1fr; gap: 12px; }
  .ab-card { padding: 20px; }
  .ab-button { height: 48px; font-size: 14px; padding: 0 20px; margin-top: 20px; }
  .ab-button span:first-child { font-size: 17px; }
  .ab-value { font-size: 56px; margin-top: 20px; }
  .ds-image { margin-top: 24px; border-radius: 12px; }
  .learning-list li { grid-template-columns: 1fr; gap: 8px; }
  .other-head h2 { font-size: 28px; line-height: 1.2; }
  .other-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Moonfare */
.big-stat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.big-stat .stat-value { margin: 0; }
.big-stat .stat-note { padding: 0; }
.big-stat .stat-label { margin: 0; }
.pull-quote { margin: 0; max-width: 760px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px; }
.pull-quote blockquote { margin: 0; font-size: 20px; line-height: 1.4; }
.pull-quote figcaption { font-family: var(--font-serif); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.ds-image.board { margin-top: 0; margin-bottom: 40px; }
.methods.plain li { min-height: 0; }
.card-grid.two.tight { margin-top: 16px; gap: 16px; }
.decisions.mf .container { display: flex; flex-direction: column; gap: 120px; }
.decisions.mf .decision { margin: 0; }
.decision-dark .section-intro .responds, .decision-dark .case-label { color: var(--text-inverse-secondary); }
.decision-dark .section-body { color: var(--text-inverse); }
.options-box { margin-top: 40px; background: var(--bg-subtle); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 8px; }
.options li { display: flex; flex-direction: column; gap: 10px; }
.options .opt { font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.chip-chosen { background: var(--bg-accent); color: var(--text-inverse); font-size: 14px; font-weight: 500; line-height: 16px; letter-spacing: 0; padding: 4px 10px; border-radius: var(--radius-pill); }
.options h4 { font-size: 17px; font-weight: 500; }
.options li > p:last-child { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.wf-row { border-top: 1px solid var(--border-default); padding-top: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.wf-row h4 { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.wf-row p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.wf-row img { width: 100%; border-radius: 8px; }
.guide-slider { margin-top: 40px; background: var(--bg-inverse-raised); border-radius: 18px; overflow: hidden; }
.guide-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 50px 8px 35px; }
.guide-tabs { display: flex; gap: 25px; overflow-x: auto; scrollbar-width: none; }
.guide-tabs button { padding: 9px 0 7px; font-size: 13px; font-weight: 500; line-height: 15px; color: var(--text-inverse-secondary); white-space: pre; border-bottom: 2px solid transparent; }
.guide-tabs button[aria-selected="true"] { color: var(--text-inverse); border-color: var(--bg-accent); }
.guide-tabs button:hover { color: var(--text-inverse); }
.guide-pager { display: flex; gap: 11px; }
.guide-pager .circle-btn { width: 40px; height: 40px; background: var(--bg-inverse); border-color: var(--border-on-dark); color: var(--text-inverse); }
.guide-pager .circle-btn:disabled { opacity: .35; cursor: default; }
.guide-slide { display: grid; grid-template-columns: 1fr 154px; gap: 46px; padding: 36px 50px 40px; align-items: start; }
.guide-slide[hidden] { display: none; }
.guide-slide img { width: 100%; }
.guide-notes { display: flex; flex-direction: column; gap: 36px; padding-top: 9px; }
.guide-notes li { display: flex; flex-direction: column; gap: 11px; font-size: 13px; line-height: 1.6; color: var(--text-inverse); }
.guide-notes span { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 20px; background: var(--bg-accent); font-size: 9px; font-weight: 600; color: #fafafa; }
.q-table-wrap { margin-top: 32px; background: var(--bg-subtle); border-radius: 12px; padding: 16px 24px; overflow-x: auto; }
.q-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.q-table th, .q-table td { padding: 20px 0; border-bottom: 1px solid var(--border-default); vertical-align: top; width: 33.3%; }
.q-table thead th { font-size: 13px; font-weight: 500; padding-block: 12px; }
.q-table tbody th { font-weight: 600; }
.q-table td { color: var(--text-secondary); }
.q-table td:last-child { color: var(--text-primary); }
.q-table tr:last-child > * { border-bottom: 0; }
.q-table .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); margin: 0 10px 2px 0; }
.q-table .dot.on { background: var(--bg-accent); }
.stepper-figure { margin: 40px 0 0; background: var(--bg-inverse-raised); border-radius: 20px; height: 550px; display: grid; place-items: center; }
.stepper-figure img { width: 590px; max-width: 100%; }
.info-card.dark { background: var(--bg-inverse-raised); }
.info-card.dark h3 { color: var(--text-inverse); }
.info-card.dark p { color: var(--text-inverse-secondary); }
@media (max-width: 1100px) {
  .methods.plain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .decisions.mf .container { gap: 72px; }
  .methods.plain { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .options-box { padding: 20px; }
  .wf-row { grid-template-columns: 1fr; gap: 12px; }
  .guide-controls { flex-direction: column; align-items: stretch; padding: 16px 20px 4px; }
  .guide-pager { justify-content: flex-end; }
  .guide-slide { grid-template-columns: 1fr; gap: 20px; padding: 16px 20px 24px; }
  .guide-notes { gap: 16px; padding: 0; }
  .q-table { font-size: 14px; min-width: 520px; }
  .q-table-wrap { padding: 8px 16px; }
  .stepper-figure { height: auto; padding: 24px 12px; }
  .pull-quote blockquote { font-size: 18px; }
  .big-stat .stat-value { font-size: 64px; line-height: 1.1; }
}

/* Project pages */
.project-cases { padding-block: 48px 72px; }
.project-cases .case-label { margin-bottom: 24px; font-weight: 400; }
.project-cases .case-list { gap: 24px; }
.case-card.soon { cursor: default; }
.case-card.soon:hover .visual img { transform: none; }

/* Expandable research */
.expand { margin-top: 40px; border-block: 1px solid var(--border-default); padding-block: 32px; }
.expand summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; cursor: pointer; }
.expand summary::-webkit-details-marker { display: none; }
.expand-text { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.expand-text .case-label { font-size: 15px; font-weight: 500; }
.expand-title { font-size: 17px; font-weight: 600; line-height: 27px; }
.expand-sum { color: var(--text-secondary); line-height: 24px; }
.expand-btn { flex: none; border: 1px solid var(--border-default); border-radius: 4px; padding: 12px 16px; font-size: 14px; font-weight: 500; letter-spacing: .02em; line-height: 20px; white-space: pre; transition: background-color .2s ease; }
.expand summary:hover .expand-btn { background: var(--bg-subtle); }
.expand .when-open, .expand[open] .when-closed { display: none; }
.expand[open] .when-open { display: inline; }
.expand-body { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.research-card { margin: 0; background: var(--bg-subtle); border-radius: 20px; overflow: hidden; }
.research-card img { width: 100%; }
.research-card figcaption { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.research-card h3 { font-size: 17px; font-weight: 600; line-height: 27px; }
.research-card p { color: var(--text-secondary); line-height: 24px; }
@media (max-width: 760px) {
  .expand summary { flex-direction: column; }
  .expand-body { grid-template-columns: 1fr; }
}

/* Password gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.gate-box { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; }
.gate-box .case-kicker { margin-top: 40px; }
.gate h1 { font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.gate-lead { font-size: 18px; line-height: 1.6; }
.gate-lead a { text-decoration: underline; text-underline-offset: 3px; }
.gate-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.gate-form label { font-family: var(--font-serif); font-size: 15px; color: var(--text-secondary); }
.gate-row { display: flex; gap: 12px; }
.gate-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--border-default); border-radius: 4px; background: var(--bg-surface); font: inherit; }
.gate-row input:focus { outline: 2px solid var(--text-primary); outline-offset: 1px; }
.gate-row .pill { background: var(--text-primary); color: var(--text-inverse); }
.gate-error { color: #b4401f; font-size: 14px; }
@media (max-width: 760px) { .gate h1 { font-size: 34px; } .gate-row { flex-direction: column; } .gate-row input { flex: none; } .gate-row .pill { justify-content: center; } }

/* Mobile menu fix: backdrop-filter on the scrolled header made the fixed menu size to the header */
body.menu-open { overflow: hidden; }
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-page); }

/* Moonfare mobile hero swipe */
.hero-swipe { display: none; }
@media (max-width: 760px) {
  .hero-has-swipe .app-strip { display: none; }
  .hero-has-swipe { padding-block: 24px; }
  .hero-swipe { display: block; }
  .hero-swipe-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .hero-swipe-track::-webkit-scrollbar { display: none; }
  .hero-swipe-track li { flex: 0 0 86%; scroll-snap-align: start; }
  .hero-swipe-track img { width: 100%; height: 200px; object-fit: cover; object-position: left top; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(20,20,20,.06); }
  .hero-swipe-note { padding: 14px var(--gutter) 0; font-size: 14px; font-weight: 500; }
}

/* Expand: bottom close */
.expand-close { display: none; }
@media (max-width: 760px) {
  .expand[open] summary .expand-btn { display: none; }
  .expand-close { display: inline-flex; justify-self: start; border: 1px solid var(--border-default); border-radius: 4px; padding: 12px 16px; font-size: 14px; font-weight: 500; white-space: pre; }
}

/* Question table: stacked on mobile */
.q-more { display: none; }
@media (max-width: 760px) {
  .q-table-wrap { overflow: visible; padding: 4px 16px 16px; }
  .q-table { min-width: 0; }
  .q-table thead { display: none; }
  .q-table, .q-table tbody, .q-table tr, .q-table th, .q-table td { display: block; width: auto; }
  .q-table tr { padding: 16px 0; border-bottom: 1px solid var(--border-default); }
  .q-table tr:last-child { border-bottom: 0; }
  .q-table th, .q-table td { border: 0; padding: 0; }
  .q-table tbody th { font-size: 14px; margin-bottom: 12px; }
  .q-table td { font-size: 14px; }
  .q-table td + td { margin-top: 10px; }
  .q-table td::before { content: attr(data-label); display: block; font-family: var(--font-serif); font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
  .q-table .dot { display: none; }
  .q-table-wrap:not(.show-all) tr.extra { display: none; }
  .q-table-wrap:not(.show-all) tr:nth-child(2) { border-bottom: 1px solid var(--border-default); }
  .q-more { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: pre; }
}

/* Lightbox */
img[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,20,20,.97); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: transparent; }
.lightbox-bar { display: flex; justify-content: flex-end; padding: 16px var(--gutter); }
.lightbox-close { color: var(--text-inverse); font-size: 16px; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; padding: 8px 0; }
.lightbox-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 0 var(--gutter) 32px; }
.lightbox-stage img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 8px; background: #fff; cursor: zoom-out; }
@media (max-width: 760px) {
  .lightbox-stage { place-items: center start; padding: 0 0 24px; }
  .lightbox-stage img { max-width: none; max-height: none; height: min(70vh, 640px); margin-inline: 16px; border-radius: 6px; }
  .lightbox-stage img.is-tall { height: auto; width: calc(100vw - 32px); }
  .lightbox-hint { color: var(--text-inverse-secondary); font-size: 13px; padding: 0 var(--gutter) 20px; }
}
@media (min-width: 761px) { .lightbox-hint { display: none; } }
body.lightbox-open { overflow: hidden; }

/* Mobile visuals pass (match Figma mobile frames) */
.showcase-caps { display: none; }
@media (max-width: 760px) {
  .app-strip img { width: 720px; }
  .case-figure { margin-inline: 0; overflow: visible; padding-inline: 0; }
  .case-figure img { width: 100%; max-width: 100%; border-radius: 12px; }
  .ds-sheets { margin-inline: 0; overflow: visible; padding-inline: 0; }
  .ds-sheets img { width: 100%; max-width: 100%; }
  .showcase-card { background: var(--bg-subtle); border-radius: 12px; padding: 20px 16px; }
  .showcase-card .phone-showcase, .showcase-card .phone-showcase.fixed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0; background: none; border-radius: 0; }
  .showcase-card .phone-showcase li { width: auto; flex: initial; }
  .showcase-card .phone-showcase img { max-width: 100%; border-radius: 10px; }
  .showcase-card .phone-showcase p { display: none; }
  .showcase-card .showcase-caps { display: block; margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
  .decision-visual + .showcase-card { margin-top: 24px; }
}
@media (min-width: 761px) { .showcase-card { display: contents; } }
@media (max-width: 760px) { .van-strip img { width: 870px; height: 76px; } }

/* Show more on mobile */
.show-more { display: none; }
@media (max-width: 760px) {
  .collapsible:not(.is-expanded) > .more-item { display: none; }
  .show-more { display: block; width: fit-content; margin: 20px 0 0; align-self: flex-start; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: pre; }
  .dark-panel .show-more { color: var(--text-inverse); }
}

/* Lightbox on mobile: fit with margins */
@media (max-width: 760px) {
  .lightbox-stage { place-items: center; padding: 0 20px 24px; overflow: hidden; }
  .lightbox-stage img, .lightbox-stage img.is-tall { max-width: 100%; max-height: calc(100svh - 110px); width: auto; height: auto; margin: 0; border-radius: 8px; }
  .lightbox-hint { display: none; }
}

/* Mobile: match Figma mobile frames (spacing, type, hero bands) */
@media (max-width: 760px) {
  .case-visual > .app-strip img { width: auto; height: var(--mh, 320px); }
  .case-visual:not(.hero-has-swipe) { padding: 0; }
  .case-section { padding: 72px 0 0; }
  .case-section.text-only { padding: 72px 0 0; }
  .case-section.text-only + .case-section.text-only { padding-top: 72px; }
  .decisions, .case-section.decisions { padding-bottom: 0; }
  .case-section:last-of-type, .learnings { padding-bottom: 72px; }
  .other-work { padding-top: 72px; }
  .section-intro { gap: 2px; margin-bottom: 32px; }
  .decision .section-intro { margin-bottom: 32px; }
  .case-h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
  .section-intro .responds { margin-top: 6px; }
  .section-body, .section-sub { margin-top: 22px; }
  .overview-text { margin-top: 24px; }
  .card-grid.two, .card-grid.two.tight { gap: 14px; }
  .info-card, .info-card.compact { padding: 16px; gap: 16px; }
  .info-card.compact { gap: 4px; }
  .info-card h3 { font-size: 16px; line-height: 27px; margin-bottom: 4px; }
  .info-card p { font-size: 14px; }
  .methods, .feature-grid { gap: 14px; }
  .methods li, .feature-grid li { padding: 16px; gap: 4px; }
  .methods h3, .feature-grid h4 { font-size: 16px; }
  .ds-showcase { padding: 0; background: none; }
  .decision + .decision { margin-top: 72px; }
  .decisions.mf .container { gap: 72px; }
}
@media (max-width: 760px) { .overview-text { font-size: 24px; line-height: 1.4; } }
@media (max-width: 760px) { .van-strip img { width: 1250px; height: 108px; } }

/* Mobile fixes round 3 */
@media (max-width: 760px) {
  :root { --pattern-dot: #e4dfd4; }
  .case-visual.band { padding-block: 23px; }
  .case-visual.band > .app-strip img { --mh: 274px; }
  .hero-swipe-track { align-items: flex-start; }
  .hero-swipe-track img { object-fit: contain; object-position: center; background: #fff; }
  .section-intro.label-only { margin-bottom: 24px; }
  .ds-columns { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .ds-columns li { padding-block: 16px; border-bottom: 1px solid var(--border-default); }
  .ds-columns li:first-child { padding-top: 0; }
  .ds-columns h4 { font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
  .ds-columns p { font-size: 14px; color: var(--text-primary); }
  .ds-sheets { margin-top: 32px; }
}
.section-intro.label-only .case-label { margin-bottom: 0; }
@media (min-width: 761px) { .section-intro.label-only { margin-bottom: 40px; } }

/* fizy themes: stacked crossfade on all sizes */
  .theme-cycle { display: grid !important; grid-template-columns: 1fr !important; justify-items: center; background: var(--bg-subtle) !important; border-radius: 12px; padding: 40px 16px 28px !important; margin: 0 !important; overflow: hidden; cursor: pointer; }
  .theme-cycle li { grid-area: 1 / 1; width: min(62%, 300px) !important; opacity: 0; transition: opacity .7s ease; }
  .theme-cycle li.is-current { opacity: 1; }
  .theme-cycle img { width: 100%; border-radius: 12px; }
  .theme-cycle p { display: block !important; margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 760px) { .theme-cycle { padding: 24px 16px 20px !important; } }

/* Back to top (mobile) */
.to-top { display: none; }
@media (max-width: 760px) {
  .to-top { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-inverse); color: var(--text-inverse); box-shadow: 0 4px 14px rgba(20,20,20,.18); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .to-top, body.lightbox-open .to-top { opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) {
  .more-extra:not(.is-expanded) { display: none; }
  :root { --nav-h: 64px; }
  .nav { align-items: center; padding-bottom: 0; }
  html { scroll-padding-top: 64px; }
}
@media (max-width: 760px) { .collapsible:not(.is-expanded) { margin-bottom: 0; } }

/* About: Now */
.now { padding-top: 0; }
.now-text { font-size: 32px; line-height: 1.7; letter-spacing: -0.01em; color: var(--text-secondary); max-width: 1200px; }
.now-text b { font-weight: 500; color: var(--text-primary); }

@media (max-width: 760px) { .now { margin-top: 48px; } .now-text { font-size: 22px; line-height: 1.5; } }

/* Mobile menu: no focus ring, keyboard focus shown as accent text */
.mobile-menu a:focus, .mobile-menu a:focus-visible { outline: none; }
.mobile-menu:focus { outline: none; }
/* About: toggle aligned left, Now text keeps 32px on desktop */
.roles-toggle { margin-left: 0 !important; }

/* Active page in the header: bold */
.nav-links a[aria-current="page"] { font-weight: 600; }
.mobile-menu li a[aria-current="page"] { font-weight: 600; }

/* Projects by industry v2 (Figma 341:36397) */
.industry { height: 500px; gap: 40px; overflow: hidden; }
.industry-bar { gap: 4px; width: 100%; }
.industry-seg { min-width: 0; }
.industry-seg.small { min-width: 56px; }
.industry-seg .n { font-size: 28px; letter-spacing: -0.03em; }
.industry-seg.small .n { font-size: 16px; padding-left: 0; }
.industry-seg .label { margin-top: -10px; overflow: visible; }
.industry-projects { display: block; margin-top: 12px; }
.industry-projects-label { font-family: var(--font-serif); font-weight: 500; font-size: 16px; line-height: 2.2; }
.industry-projects ul { display: block; font-size: 16px; line-height: 2.2; }
.industry-projects li { display: inline; white-space: nowrap; border: 0; padding: 0; margin: 0; font-size: 16px; }
.industry-projects li:not(:last-child)::after { content: "\00a0\00a0·\00a0"; color: var(--text-inverse-secondary); }

/* fizy mobile: three screens per theme, crossfading */
.theme-cycle.theme-trio { padding: 50px 24px 40px !important; border-radius: 20px; }
.theme-cycle.theme-trio li { width: 100% !important; max-width: 895px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.theme-trio .theme-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 277px)); justify-content: center; gap: 32px; width: 100%; }
.theme-trio .theme-phones img { width: 100%; max-width: none; border-radius: 16px; }
.theme-cycle.theme-trio p { margin-top: 16px; max-width: none; text-align: center; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 760px) {
  .theme-cycle.theme-trio { padding: 24px 12px 20px !important; border-radius: 12px; }
  .theme-trio .theme-phones { gap: 8px; }
  .theme-trio .theme-phones img { border-radius: 8px; }
}

/* Theme crossfade: the next theme fades in over the current one, so the panel never dims between themes */
.theme-cycle li { transition: none; z-index: 0; }
.theme-cycle li.is-prev { opacity: 1; z-index: 1; }
.theme-cycle li.is-current { z-index: 2; animation: theme-in .45s ease both; }
@keyframes theme-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .theme-cycle li.is-current { animation: none; } }
.theme-cycle li.is-prev p { visibility: hidden; }

/* ===== fizy personalization case ===== */
.fp-hero-band { background: var(--bg-subtle); height: 700px; display: flex; justify-content: center; padding-top: 50px; overflow: hidden; }
.fp-hero-band .theme-cycle.fp-hero-cycle { background: none !important; padding: 0 !important; border-radius: 0; width: 100%; max-width: 895px; align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .fp-hero-cycle .theme-phones img { opacity: 0; transform: translateY(32px); animation: fp-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .fp-hero-cycle .theme-phones img:nth-child(1) { animation-delay: .15s; }
  .fp-hero-cycle .theme-phones img:nth-child(2) { animation-delay: .35s; }
  .fp-hero-cycle .theme-phones img:nth-child(3) { animation-delay: .55s; }
}
@keyframes fp-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

.fp-d1-intro { display: grid; grid-template-columns: 761px 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.fp-map { margin: 0; border: 1px solid var(--border-default); border-radius: 16px; overflow: hidden; height: 406px; }
.fp-map img { width: 100%; height: 100%; object-fit: cover; object-position: left top; cursor: zoom-in; }
.fp-d1-text p { line-height: 1.6; }
.fp-d1-text p + p { margin-top: 25.6px; }

.fp-steps { grid-template-columns: repeat(5, 1fr); }
.fp-steps li { background: var(--bg-subtle); }
.fp-steps .num { font-family: var(--font-serif); font-weight: 500; font-size: 16px; color: var(--text-primary); }
.fp-steps h3 { font-size: 20px; line-height: 1.25; margin: 8px 0 20px; }
.fp-steps .shapes { font-size: 12px; color: var(--text-primary); }

.fp-compare .compare-card .phone { border-radius: 16px; box-shadow: 0 7.5px 11px rgba(88,88,88,.15); }
.fp-compare .compare-card.after .compare-label { color: var(--text-primary); }

.fp-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-bottom: 40px; border-bottom: 1px solid var(--border-default); }
.fp-swatches img { width: 100%; height: auto; }
.fp-flow { margin-top: 40px; background: var(--bg-subtle); border-radius: 20px; padding: 40px; }
.fp-flow-steps { display: flex; align-items: center; gap: 32px; }
.fp-flow-steps li:not(.fp-arrow) { flex: 1 1 0; background: var(--bg-media, #e4e0d7); border-radius: 10px; padding: 20px; }
.fp-flow-steps h4 { font-size: 14px; font-weight: 500; line-height: 16px; margin-bottom: 10px; }
.fp-flow-steps p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.fp-arrow { font-size: 22px; color: var(--text-tertiary); flex: none; }
.fp-sheets { margin: 40px 0 0; }
.fp-sheets img { width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; }
.decision .fp-flow + .theme-trio { margin-top: 40px !important; }

@media (max-width: 1200px) {
  .fp-d1-intro { grid-template-columns: 1fr 1fr; }
  .fp-map { height: auto; }
  .fp-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .fp-hero-band { height: auto; padding: 24px 20px; }
  .fp-d1-intro { display: flex; flex-direction: column-reverse; gap: 32px; }
  .fp-d1-text p { display: inline; }
  .fp-d1-text p + p::before { content: " "; }
  .fp-steps { grid-template-columns: 1fr; }
  .fp-steps h3 { font-size: 18px; margin-bottom: 12px; }
  .fp-swatches { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 32px; }
  .fp-flow { margin-top: 32px; padding: 16px; border-radius: 12px; }
  .fp-flow-steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .fp-arrow { align-self: center; transform: rotate(90deg); font-size: 18px; line-height: 1; }
  .fp-sheets { margin-top: 24px; }
  .decision .fp-flow + .theme-trio { margin-top: 32px !important; }
}
.fp-compare .compare-card { align-content: start; align-items: start; }
.fp-compare .compare-card .notes { padding-top: 9px; }
.guide-pager .circle-btn:hover:not(:disabled) { color: var(--text-primary); }
.guide-pager .circle-btn:disabled:hover { background: var(--bg-inverse); border-color: var(--border-on-dark); }
