/* Studio pages: /studio, /studio/stack, /studio/stack/tour. Same house as index.html:
   Faculty Glyphic for display (uppercase), Inter for reading, IBM Plex Mono for labels,
   paper and ink, colour only in the gradient. */

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

@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Glyphic Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Plex Fallback"; src: local("Courier New"), local("Menlo"); size-adjust: 100%; }

:root {
  --display: "Faculty Glyphic", "Glyphic Fallback", Georgia, serif;
  --mono: "IBM Plex Mono", "Plex Fallback", ui-monospace, monospace;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-80: rgba(26,26,26,.8);
  --ink-60: rgba(26,26,26,.6);
  --ink-45: rgba(26,26,26,.45);
  --ink-30: rgba(26,26,26,.3);
  --ink-15: rgba(26,26,26,.15);
  --ink-08: rgba(26,26,26,.08);
  --ink-04: rgba(26,26,26,.04);
  --night: #0F0F0E;
  --night-2: #181816;
  --on-night: #F2F1EC;
  --on-night-60: rgba(242,241,236,.62);
  --on-night-30: rgba(242,241,236,.3);
  --on-night-12: rgba(242,241,236,.12);
  --g1: #C88A28; --g2: #B86828; --g3: #904830; --g4: #604040; --g5: #304858; --g6: #186060; --g7: #0A6858;
  --grad: linear-gradient(155deg, #C88A28 0%, #B86828 20%, #904830 38%, #604040 55%, #304858 72%, #186060 88%, #0A6858 100%);
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
::selection { background: #C88A28; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gut); }

/* ---- type ---- */
.label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45);
}
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -.025em; line-height: .95;
}
h1, h2, h3, h4 { font-weight: 400; }
.h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: -.025em; }
.h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 3vw, 36px); line-height: 1.02; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.8vw, 23px); font-weight: 300; line-height: 1.5; color: var(--ink-80); max-width: 36em; }
.body { font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--ink-60); }
.body p + p { margin-top: 12px; }
.body strong { color: var(--ink); font-weight: 500; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: .88em; background: var(--ink-04); border: 1px solid var(--ink-08); border-radius: 5px; padding: 1px 5px; color: var(--ink); }

/* ---- nav ---- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gut);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.nav a { transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.nav.on-paper { position: relative; color: var(--ink-45); }
.nav.on-paper a:hover, .nav.on-paper a[aria-current="page"] { color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .005em;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { box-shadow: none; }
.note-small { font-size: 13px; line-height: 1.5; color: var(--ink-45); max-width: 34em; }
.link-u { border-bottom: 1px solid var(--ink-15); padding-bottom: 1px; transition: border-color .3s, color .3s; }
.link-u:hover { border-color: var(--ink); color: var(--ink); }

/* ---- hero (gradient, like the home page) ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad);
  padding: clamp(120px, 18vh, 180px) 0 clamp(56px, 8vh, 96px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 85% 0%, rgba(255,255,255,.14), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero .label { color: rgba(255,255,255,.7); }
.hero-title { font-size: clamp(64px, 15vw, 220px); margin: 18px 0 18px; }
.hero-line { font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; line-height: 1.35; max-width: 26em; color: rgba(255,255,255,.92); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-cta .note-small { color: rgba(255,255,255,.75); }
.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid rgba(255,255,255,.28);
}
.stat { padding: 18px 18px 0 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); line-height: 1.45; }

/* ---- browser and phone frames ---- */
.frame {
  position: relative; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--ink-08);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 24px -14px rgba(20,20,20,.25);
}
.frame::before {
  content: ""; display: block; height: 26px; border-bottom: 1px solid var(--ink-08);
  background:
    radial-gradient(circle at 16px 13px, #E3E1DA 4.5px, transparent 5px),
    radial-gradient(circle at 32px 13px, #E3E1DA 4.5px, transparent 5px),
    radial-gradient(circle at 48px 13px, #E3E1DA 4.5px, transparent 5px), #F6F5F1;
}
.frame img, .frame video { width: 100%; height: auto; }
.frame video { aspect-ratio: 1280 / 722; object-fit: cover; background: #f4f4f2; }
.phone {
  position: relative; border-radius: 34px; overflow: hidden; background: #fff;
  border: 7px solid #141414; box-shadow: 0 10px 24px -14px rgba(20,20,20,.35);
  aspect-ratio: 390 / 844;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- sections ---- */
.sec { padding: clamp(80px, 12vh, 140px) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(36px, 6vh, 64px); }
.sec-head .label { margin-bottom: 18px; }
.rule { border: 0; border-top: 1px solid var(--ink-08); margin: 0; }

.night { background: var(--night); color: var(--on-night); }
.night .label { color: var(--on-night-30); }
.night .body, .night .lede { color: var(--on-night-60); }
.night .body strong { color: var(--on-night); }
.night code { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--on-night); }

/* overview strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink-08); border-bottom: 1px solid var(--ink-08); }
.fact { padding: 22px 20px 24px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--ink-08); }
.fact .label { margin-bottom: 10px; }
.fact p { font-size: 15px; line-height: 1.55; color: var(--ink-80); }

/* three-up cards */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  border: 1px solid var(--ink-08); border-radius: 16px; padding: 26px 24px 28px; background: #fff;
}
.card .label { margin-bottom: 14px; }
.card h4 { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; line-height: 1.05; margin-bottom: 10px; }
.card p, .card li { font-size: 15px; line-height: 1.6; color: var(--ink-60); }
.card ul { padding-left: 1.1em; }
.card li + li { margin-top: 6px; }
.night .card { background: var(--night-2); border-color: var(--on-night-12); }
.night .card p, .night .card li { color: var(--on-night-60); }

/* process steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-15); }
.steps li { counter-increment: s; padding: 22px 18px 0 0; position: relative; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--ink-08); }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-45); display: block; margin-bottom: 14px; }
.steps h4 { font-family: var(--display); text-transform: uppercase; font-size: 20px; line-height: 1.05; margin-bottom: 10px; }
.steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }
.bignums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 6vh, 64px); }
.bignum { border-top: 1px solid var(--ink); padding-top: 16px; }
.bignum b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.03em; }
.bignum span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-60); }

/* design system */
.specimens { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.spec { border: 1px solid var(--ink-08); border-radius: 16px; padding: 24px; background: #fff; min-width: 0; }
.spec .big { font-size: clamp(54px, 7vw, 96px); line-height: .9; margin: 18px 0 18px; overflow-wrap: anywhere; }
.spec .use { font-size: 14px; color: var(--ink-60); line-height: 1.55; }
.spec .glyphs { font-size: 15px; color: var(--ink-60); margin-top: 10px; word-break: break-all; }
.swatches { display: grid; grid-template-columns: 1fr 1fr 3fr; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(16px, 2vw, 28px); }
.sw { border-radius: 16px; overflow: hidden; border: 1px solid var(--ink-08); background: #fff; }
.sw .chip { height: 120px; }
.sw .meta { padding: 12px 14px 14px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.sw .stops { display: flex; height: 26px; }
.sw .stops i { flex: 1; }

.components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(16px, 2vw, 28px); }
.comp { border: 1px solid var(--ink-08); border-radius: 16px; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 180px; }
.comp .demo { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.k-btn { font: 500 13px/1 var(--sans); padding: 10px 16px; border-radius: 999px; background: #111; color: #fff; border: 1px solid #111; cursor: pointer; }
.k-btn.sec { background: #fff; color: #111; border-color: rgba(17,17,17,.16); }
.k-input { font: 400 13px/1 var(--sans); padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(17,17,17,.16); color: var(--ink-45); width: 100%; background: #fff; }
.k-pill { font: 500 11px/1 var(--sans); padding: 6px 10px; border-radius: 999px; }
.k-av { width: 32px; height: 32px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 600 11px var(--sans); letter-spacing: .02em; }
.k-av + .k-av { margin-left: -14px; border: 2px solid #fff; }
.k-toast { font: 400 13px/1.3 var(--sans); background: #111; color: #fff; padding: 12px 16px; border-radius: 12px; display: inline-flex; gap: 12px; align-items: center; }
.k-toast u { text-decoration: none; font-weight: 600; }
.k-tile { width: 92px; height: 92px; border-radius: 14px; background: var(--grad); background-size: 300% 300%; color: #fff; display: flex; align-items: flex-end; padding: 10px; font: 400 15px var(--display); text-transform: uppercase; }
.k-tile.b { background-position: 50% 50%; } .k-tile.c { background-position: 100% 100%; }

.motion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.mo { border: 1px solid var(--on-night-12); border-radius: 16px; background: var(--night-2); overflow: hidden; display: flex; flex-direction: column; }
.mo .stage { height: 170px; display: grid; place-items: center; position: relative; background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.05), transparent 70%); }
.mo .txt { padding: 18px 20px 22px; border-top: 1px solid var(--on-night-12); }
.mo h4 { font-family: var(--display); text-transform: uppercase; font-size: 19px; margin-bottom: 8px; color: var(--on-night); }
.mo p { font-size: 14px; line-height: 1.55; color: var(--on-night-60); }
.mo video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.press-demo { font: 500 14px/1 var(--sans); padding: 13px 22px; border-radius: 999px; background: #F2F1EC; color: #111; border: 0; cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.press-demo:active, .press-demo.auto { transform: scale(.94); }
.lift-demo { width: 120px; height: 84px; border-radius: 12px; background: #F2F1EC; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s cubic-bezier(.2,.8,.2,1); box-shadow: 0 1px 1px rgba(0,0,0,.3); cursor: grab; }
.lift-demo:hover, .lift-demo.auto { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 22px 30px -12px rgba(0,0,0,.7); }
.morph-demo { position: relative; width: 150px; height: 100px; }
.morph-demo .from { position: absolute; left: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: #F2F1EC; }
.morph-demo .to { position: absolute; inset: 0; border-radius: 14px; background: #F2F1EC; transform-origin: 23px 23px; animation: morph 3.2s cubic-bezier(.34,1.36,.64,1) infinite; }
@keyframes morph { 0%, 18% { transform: scale(.22); opacity: 0; } 34%, 78% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(.22); opacity: 0; } }

.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.detail { border: 1px solid var(--ink-08); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.detail .pic { background: #F4F3EF; padding: 18px; height: 230px; display: grid; place-items: center; overflow: hidden; }
.detail .pic img { max-height: 194px; width: auto; height: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); background: #fff; }
.detail .txt { padding: 18px 20px 22px; }
.detail h4 { font-family: var(--display); text-transform: uppercase; font-size: 18px; margin-bottom: 6px; }
.detail p { font-size: 14px; line-height: 1.55; color: var(--ink-60); }

/* app blocks, Behance style */
.apps-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.apps-index a { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border: 1px solid var(--ink-15); border-radius: 999px; color: var(--ink-60); transition: border-color .3s, color .3s; }
.apps-index a:hover { border-color: var(--ink); color: var(--ink); }
.app { padding: clamp(64px, 10vh, 120px) 0 0; scroll-margin-top: 20px; }
.app-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(24px, 4vh, 40px); }
.app-head .label { margin-bottom: 14px; display: flex; gap: 14px; }
.app-head .label b { color: var(--ink); font-weight: 500; }
.hood { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ink-15); }
.hood .label { margin: 0 0 6px; color: var(--ink-45); }
.hood p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }
.plate { position: relative; border-radius: 22px; padding: clamp(14px, 3.4vw, 56px); overflow: hidden; background: #EFEDE7; }
.plate.grad { background: var(--grad); }
.plate.grad::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 20% 0%, rgba(255,255,255,.16), transparent 60%); pointer-events: none; }
.plate > * { position: relative; z-index: 1; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 20%, 250px); gap: clamp(14px, 3vw, 44px); align-items: end; }
.cap { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--ink-45); }
.night .cap { color: var(--on-night-30); }

/* tech */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--on-night-12); border: 1px solid var(--on-night-12); border-radius: 16px; overflow: hidden; }
.tg { background: var(--night); padding: 22px 22px 24px; }
.tg .label { margin-bottom: 14px; color: #D9A04A; }
.tg dl { display: grid; gap: 10px; }
.tg dt { font-size: 15px; color: var(--on-night); font-weight: 500; }
.tg dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--on-night-60); }
.arch { margin-top: clamp(28px, 4vh, 48px); border: 1px solid var(--on-night-12); border-radius: 16px; background: var(--night-2); padding: clamp(12px, 2.4vw, 32px); overflow: hidden; }
.arch svg { width: 100%; height: auto; }
.arch-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--on-night-60); }
.arch-legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 8px; }

/* code notes */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cnote { border: 1px solid var(--on-night-12); border-radius: 16px; background: var(--night-2); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cnote .txt { padding: 22px 24px 18px; }
.cnote h4 { font-family: var(--display); text-transform: uppercase; font-size: 21px; color: var(--on-night); margin: 10px 0 8px; line-height: 1.05; }
.cnote p { font-size: 14.5px; line-height: 1.6; color: var(--on-night-60); }
pre { margin: 0; padding: 18px 22px 22px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #E8E6DF; background: #0A0A09; border-top: 1px solid var(--on-night-12); flex: 1; -webkit-overflow-scrolling: touch; }
pre .c { color: #7D7A70; } pre .k { color: #E0A458; } pre .s { color: #8CC5B7; } pre .f { color: #F2F1EC; font-weight: 500; }
.file { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--on-night-30); }

/* playbook */
.pb-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-15); }
.pb-list > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); padding: 20px 0; border-bottom: 1px solid var(--ink-08); align-items: start; }
.pb-list .n { font-family: var(--mono); font-size: 12px; color: var(--ink-45); padding-top: 3px; }
.pb-list h4 { font-size: 17px; font-weight: 500; line-height: 1.35; }
.pb-list p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }
.pb-list .when b, .pb-list .not b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 4px; }
.pb-steps { counter-reset: p; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pb-steps li { counter-increment: p; min-width: 0; border: 1px solid var(--ink-08); border-radius: 16px; padding: 22px 24px; background: #fff; }
.pb-steps li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-45); margin-bottom: 10px; }
.pb-steps h4 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.pb-steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }
.pb-steps pre { margin-top: 14px; border-radius: 10px; border: 0; font-size: 12px; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.week { border-top: 2px solid var(--ink); padding-top: 16px; }
.week h4 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 8px 0 10px; }
.week ul { padding-left: 1.1em; }
.week li { font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }
.week li + li { margin-top: 6px; }

/* closing */
.closing { margin-top: clamp(80px, 12vh, 140px); background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 90% at 10% 100%, rgba(0,0,0,.18), transparent 60%); pointer-events: none; }
.closing .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(72px, 12vh, 140px); }
.closing .h2 { font-size: clamp(40px, 7vw, 104px); }
.closing .label { color: rgba(255,255,255,.7); }
.closing .note-small { color: rgba(255,255,255,.78); }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-family: var(--mono); font-size: 13px; }
.contact-line a { border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.contact-line a:hover { border-color: #fff; }

footer.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px var(--gut) 36px; max-width: var(--max); margin: 0 auto; font-family: var(--mono); font-size: 11px; color: var(--ink-30); letter-spacing: .04em; }
footer.foot a:hover { color: var(--ink); }

/* reveals */


/* studio index cards */
.work-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; border-radius: 24px; overflow: hidden; background: var(--grad); color: #fff; position: relative; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.work-hero:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(60,40,20,.55); }
.work-hero .pic { padding: clamp(18px, 3vw, 44px) 0 0 clamp(18px, 3vw, 44px); align-self: end; }
.work-hero .pic .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border: 0; transform: translateY(1px); }
.work-hero .txt { padding: clamp(24px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.work-hero .label { color: rgba(255,255,255,.72); }
.work-hero h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(54px, 7vw, 104px); line-height: .9; letter-spacing: -.03em; margin: 14px 0 14px; }
.work-hero p { font-size: 17px; font-weight: 300; line-height: 1.55; color: rgba(255,255,255,.9); }
.work-hero .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.work-hero .chips span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 11px; color: rgba(255,255,255,.88); }
.work-hero .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.work-small { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); align-items: center; border: 1px solid var(--ink-08); border-radius: 24px; background: #F1EFEA; padding: clamp(20px, 3vw, 44px); overflow: hidden; }
.work-small .shots { display: flex; gap: clamp(8px, 1.4vw, 16px); justify-content: center; }
.work-small .shots .phone { width: 31%; max-width: 180px; border-width: 5px; border-radius: 24px; }
.work-small .shots .phone:nth-child(2) { transform: translateY(-14px); }
.work-small h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 4vw, 52px); line-height: .95; letter-spacing: -.02em; margin: 12px 0 12px; }
.work-small p { font-size: 15.5px; line-height: 1.6; color: var(--ink-60); }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ink-15); color: var(--ink-60); }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { padding: 22px 18px 22px 0; border-bottom: 1px solid var(--ink-08); }
  .steps li + li { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--ink-08); }
  .motion-grid { grid-template-columns: 1fr 1fr; }
  .specimens { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .pb-list > li { grid-template-columns: 40px minmax(0, 1fr); }
  .pb-list > li > :nth-child(n+3) { grid-column: 2; }
  .weeks { grid-template-columns: 1fr 1fr; }
  .work-hero { grid-template-columns: 1fr; }
  .work-hero .pic { order: 2; padding-right: clamp(18px, 3vw, 44px); }
}
@media (max-width: 760px) {
  .sec-head, .app-head { grid-template-columns: 1fr; gap: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--ink-08); }
  .cols, .details, .components, .notes, .pb-steps { grid-template-columns: 1fr; }
  .bignums { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatches .sw:last-child { grid-column: 1 / -1; }
  .duo { grid-template-columns: minmax(0, 1fr) 30%; }
  .work-small { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 12px 0 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.18); padding-left: 12px; }
  .steps, .motion-grid, .stack-grid, .weeks { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .duo { grid-template-columns: 1fr; }
  .duo .phone { width: 62%; margin: 0 auto; }
  .plate { border-radius: 16px; }
  .frame::before { height: 18px; background:
    radial-gradient(circle at 12px 9px, #E3E1DA 3.5px, transparent 4px),
    radial-gradient(circle at 24px 9px, #E3E1DA 3.5px, transparent 4px),
    radial-gradient(circle at 36px 9px, #E3E1DA 3.5px, transparent 4px), #F6F5F1; }
  .btn { padding: 13px 18px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Stack for AI agents */
.mcp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }
.mcp-chat { border: 1px solid var(--ink-08); border-radius: 16px; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mcp-msg .who { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 6px; }
.mcp-msg p { font-size: 15px; line-height: 1.55; }
.mcp-msg.you p { background: #111; color: #fff; border-radius: 14px 14px 14px 4px; padding: 12px 14px; display: inline-block; }
.mcp-msg.ai p { color: var(--ink-80); }
.mcp-calls { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--ink-04); border: 1px dashed var(--ink-15); }
.mcp-calls span { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink-80); display: flex; gap: 10px; align-items: baseline; }
.mcp-calls i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #C88A28; color: #fff; display: grid; place-items: center; font-size: 10px; }
.mcp-slot .frame { height: 100%; }
.mcp-ph { aspect-ratio: 16 / 10; height: calc(100% - 26px); min-height: 220px; background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.mcp-ph .label { color: rgba(255,255,255,.75); margin-bottom: 8px; }
.mcp-ph p { font-size: 17px; font-weight: 300; max-width: 22em; }
.mcp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); border-radius: 16px; overflow: hidden; }
.mcp-tools div { background: #fff; padding: 18px 18px 20px; }
.mcp-tools b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.mcp-tools span { font-size: 13.5px; line-height: 1.5; color: var(--ink-60); }
.mcp-flow { display: flex; flex-direction: column; gap: 6px; }
.mcp-flow span { border: 1px solid var(--ink-15); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; font-weight: 500; }
.mcp-flow small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-60); }
.mcp-flow em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-45); padding-left: 14px; }
.mcp-flow em::before { content: "\2193  "; }
@media (max-width: 1000px) { .mcp { grid-template-columns: 1fr; } .mcp-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mcp-tools { grid-template-columns: 1fr; } }
pre code { background: none; border: 0; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }


/* ---- the short case study ---- */
.hero-short { padding-bottom: clamp(48px, 7vh, 80px); }
.hero-short .hero-title { margin-top: 0; }
.btn-big { font-size: 17px; padding: 17px 28px; }
.demo-note { margin-top: 14px; color: rgba(255,255,255,.8); }
.meta-line { margin-top: clamp(36px, 6vh, 56px); padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.72); line-height: 1.6; }
.blurb { padding-top: clamp(56px, 9vh, 96px); }
.blurb p { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.6; color: var(--ink-80); }
.blurb p + p { margin-top: 18px; }
.gallery { padding-top: clamp(48px, 8vh, 88px); display: grid; gap: clamp(28px, 4vw, 48px); }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.g-row-phone { grid-template-columns: minmax(0, 1fr) clamp(160px, 22%, 260px); align-items: end; }
.g-item { margin: 0; min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.g-item figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-60); line-height: 1.5; }
.built { padding-top: clamp(72px, 11vh, 120px); content-visibility: auto; contain-intrinsic-size: auto 1600px; }
.built > p { font-size: 17px; line-height: 1.7; color: var(--ink-80); margin-top: 18px; }
.h-plain { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -.02em; margin-bottom: 28px; }
.h-small { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.05; margin: clamp(48px, 7vh, 72px) 0 8px; }
.tech { display: grid; border-top: 1px solid var(--ink-08); margin-bottom: 8px; }
.tech div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ink-08); }
.tech dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-45); padding-top: 3px; }
.tech dd { margin: 0; font-size: 15.5px; color: var(--ink-80); }
.bug { margin-top: 22px; }
.bug h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.bug p, .built h3 + p { font-size: 16px; line-height: 1.7; color: var(--ink-80); }
.built h3 + p { margin-top: 10px; }
.work-hero h3 a { color: inherit; }
.work-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
@media (max-width: 640px) {
  .g-row { grid-template-columns: 1fr; }
  .g-row-phone { grid-template-columns: 1fr; }
  .g-phone { width: 62%; margin: 0 auto; }
  .tech div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- quiet project card (same as the home page) ---- */
.proj-head { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(28px, 4vh, 44px); }
.studio-head { padding: clamp(40px, 8vh, 96px) 0 clamp(28px, 4vh, 44px); }
.proj-h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: -.03em; }
.proj-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; margin: 24px 0 8px; }
.proj-sub { font-weight: 300; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-60); margin: 14px 0 16px; max-width: 38em; }
.proj-title + .proj-sub { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px; border: 1px solid var(--ink-15); border-radius: 100px; color: var(--ink-60); }
.proj-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: 13px; }
.proj-links a { border-bottom: 1px solid var(--ink-15); padding-bottom: 2px; color: var(--ink); transition: border-color .3s; }
.proj-links a:hover { border-color: var(--ink); }
.proj-note { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-45); max-width: 40em; }
.proj-img { display: block; border-radius: 20px; background: #ECEAE4; overflow: hidden; padding: clamp(22px, 5vw, 72px) clamp(18px, 7vw, 110px) 0; }
.proj-img img { display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); }
.proj a .proj-img img { transition: transform .5s var(--ease); }
.proj a:hover .proj-img img { transform: translateY(-4px); }
.proj-title a { color: inherit; }
.outro { padding-top: clamp(64px, 10vh, 110px); padding-bottom: clamp(48px, 8vh, 80px); }

.proj-lead { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; margin: 0 0 10px; }
.steps3 { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; font-weight: 300; color: var(--ink-60); line-height: 1.5; }
.steps3 b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border: 1px solid var(--ink-15); border-radius: 50%; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink); }
.proj-lead + .proj-sub { margin-top: 0; }
.steps3 li { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; }

/* ---- the lean project entry ---- */
.entry { border-top: 1px solid var(--ink-08); padding-top: clamp(20px, 3vh, 32px); }
.entry-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.entry-title a, .entry p a { white-space: nowrap; font-family: var(--mono); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); border-bottom: 1px solid var(--ink-15); padding-bottom: 2px; }
.entry-title a:hover, .entry p a:hover { border-color: var(--ink); }
.entry p { font-weight: 300; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; color: var(--ink-60); }
