@font-face {
  font-family: "GT America";
  src: url("assets/GT-America-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color-scheme: dark;
  --bg: #080808;
  --text: #f2f2ee;
  --body: #b8b9b2;
  --muted: #92938d;
  --rule: #2b2c29;
  --page: min(1320px, calc(100% - 96px));
  --rail: 190px;
  --gutter: 70px;
  --media-radius: 16px;
  --media-panel-height: clamp(460px, 38vw, 640px);
  --media-background: #1b1b1b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 44px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "GT America", Arial, sans-serif; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
p { margin: 0 0 22px; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 6.5vw, 96px); line-height: 1.04; max-width: 1100px; }
h2 { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.12; margin-bottom: 30px; }
h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 9px; }
.site-header, main, footer { width: var(--page); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: 13px; }
.signature { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.signature img { object-fit: contain; }
.draft-status { color: var(--muted); }
.notes-toggle { border: 0; background: none; padding: 3px 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.notes-toggle:hover { color: var(--text); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #bed5f6; outline-offset: 6px; }
.hero { padding-top: 26px; }
.media-panel { display: flex; align-items: center; justify-content: center; width: 100%; height: var(--media-panel-height); min-height: 0; padding: clamp(28px, 4.5vw, 64px); overflow: hidden; border-radius: var(--media-radius); background: var(--media-background); }
.media-panel > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; }
.hero-panel { padding: 22px 16px; }
.hero-panel > img { border-radius: 0; }
.study-layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gutter); align-items: start; margin-top: 64px; }
.section-rail { position: sticky; top: 40px; align-self: start; }
.back-link { display: block; color: var(--muted); text-decoration: underline; font-size: 12px; margin-bottom: 22px; }
.project-logo { display: inline-block; text-decoration: none; }
.project-logo img { width: 150px; height: auto; }
.section-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 38px; }
.section-nav a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.5; text-decoration: none; color: #777a75; transition: color 140ms ease; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--text); }
.study-content { min-width: 0; }
.project-overview { padding-bottom: 54px; }
.project-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0 0 64px; font-size: 13px; line-height: 1.8; }
.project-meta dt { color: var(--muted); margin-bottom: 10px; }
.project-meta dd { margin: 0; }
.hero-summary { max-width: 760px; font-size: 22px; line-height: 1.5; color: var(--body); margin: 30px 0 0; }
.chapter { padding: 60px 0; }
.chapter-label { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.chapter-label p { margin: 0; }
.chapter-body > p { max-width: 760px; color: var(--body); }
.draft-note { border-left: 1px solid #77796f; padding-left: 15px; font-size: 13px !important; color: var(--muted) !important; margin: 28px 0 0 !important; max-width: 760px; }
.hide-notes .draft-note { display: none; }
.decision { max-width: 760px; padding: 22px 0; }
.decision p { font-size: 17px; color: var(--body); margin-bottom: 0; }
.desktop-figure, .screenshot-set { margin-top: 30px; }
.company-context { max-width: 760px; margin-top: 38px; padding: 24px 0; border-top: 1px solid var(--rule); }
.company-context > span { font-size: 12px; color: var(--muted); }
.company-context p { font-size: 15px; color: #a2a49b; margin: 12px 0 0; }
footer { padding: 50px 0 42px; margin-top: 35px; border-top: 1px solid var(--rule); }
.footer-top { display: flex; justify-content: space-between; font-size: 14px; }
.footer-top > span { color: var(--muted); font-size: 12px; }
details { font-size: 12px; color: var(--muted); margin-top: 28px; max-width: 800px; }
summary { cursor: pointer; }
details p { margin: 16px 0 0; }
@media (min-width: 1800px) {
  :root { --page: min(1520px, calc(100% - 160px)); --rail: 220px; --gutter: 90px; }
  .chapter-body > p, .decision, .company-context { max-width: 840px; }
}
@media (max-width: 1100px) {
  :root { --rail: 155px; --gutter: 38px; }
  .project-meta { gap: 18px; font-size: 12px; }
}
@media (max-width: 800px) {
  :root { --page: calc(100% - 48px); --media-radius: 16px; }
  html { scroll-padding-top: 108px; }
  .site-header { gap: 16px; flex-wrap: wrap; }
  .draft-status { margin-left: auto; }
  .hero { padding-top: 15px; }
  .study-layout { display: block; margin-top: 32px; }
  .section-rail { top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 -24px 32px; padding: 16px 24px 0; background: var(--bg); }
  .back-link { margin: 0 0 0 auto; order: 1; }
  .project-logo { order: 0; }
  .project-logo img { width: 100px; }
  .section-nav { order: 2; width: calc(100% + 48px); flex: 0 0 calc(100% + 48px); flex-direction: row; flex-wrap: nowrap; gap: 24px; margin: 0 -24px; padding: 5px 24px 12px; overflow-x: auto; scrollbar-width: none; }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav a { flex-shrink: 0; white-space: nowrap; font-size: 12px; }
  .project-overview { padding-bottom: 30px; }
  .project-meta { margin-bottom: 42px; }
  .hero-summary { font-size: 20px; }
  .chapter { padding: 42px 0; }
}
@media (max-width: 600px) {
  :root { --page: calc(100% - 36px); --media-radius: 16px; }
  body { font-size: 17px; }
  .site-header { padding: 21px 0; gap: 12px; }
  .signature { font-size: 12px; gap: 9px; }
  .signature img { width: 23px; }
  .draft-status, .notes-toggle { font-size: 10px; }
  .notes-toggle { margin-left: auto; }
  h1 { font-size: clamp(42px, 10.5vw, 62px); }
  h2 { font-size: 33px; }
  h2 br { display: none; }
  .hero-panel { padding: 10px 0; }
  .hero-summary { font-size: 18px; }
  .section-rail { margin-inline: -18px; padding-inline: 18px; }
  .section-nav { width: calc(100% + 36px); flex-basis: calc(100% + 36px); margin-inline: -18px; padding-inline: 18px; }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; font-size: 12px; }
  .project-meta dt { margin-bottom: 5px; }
  .chapter-label { margin-bottom: 18px; }
  .footer-top { gap: 20px; }
  .footer-top > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav a { transition: none; }
}
@media print {
  :root { --bg: white; --text: black; --body: #333; --muted: #555; --rule: #bbb; --page: 100%; }
  body { font-size: 11pt; background: white; color: black; }
  .site-header, .section-rail, .notes-toggle, footer details, .draft-note { display: none; }
  .hero { padding: 0; }
  .hero-panel { max-width: 650px; }
  .study-layout { display: block; margin-top: 25px; }
  .project-meta { margin-bottom: 25px; }
  h1 { font-size: 40pt; }
  .hero-summary { font-size: 14pt; }
  h2 { font-size: 25pt; }
  .chapter { padding: 25px 0; break-inside: avoid; }
  .media-panel { padding: 20px; background: var(--media-background); }
  .desktop-figure, .screenshot-set { max-width: 650px; }
  a { color: black; }
}

.decision:first-child { padding-top: 0; }
.iteration-section { margin-top: 48px; }
.iteration-section > p { max-width: 760px; color: var(--body); font-size: 17px; }
.panel-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; align-content: center; gap: 20px; padding: 28px; background: var(--media-background); }
.screenshot-item { min-width: 0; }
.shot-frame { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: #17191e; }
.shot-frame > img { width: 100%; height: 100%; object-fit: contain; }
.shot-frame--exploration > img { transform: scale(1.65); transform-origin: 90% 25%; }
.shot-frame--detail { align-items: flex-start; }
.shot-frame--detail > img { height: auto; object-fit: initial; }
.shot-frame--phone > img { width: auto; height: calc(100% - 24px); max-width: calc(100% - 24px); object-fit: contain; }
.panel-sequence .screenshot-item > figcaption { margin-top: 13px; color: #15243f; font-size: 12px; line-height: 1.45; }
.screen-placeholder { flex-direction: column; gap: 9px; padding: 18px; text-align: center; }
.placeholder-title { color: #dadce2; font-size: 17px; }
.placeholder-label { color: #9397a4; font-size: 12px; }
.desktop-extension { border-top: 1px solid var(--rule); margin-top: 20px; }
.trade-history-section { margin-top: 48px; }
/* The trade cards share one center line. The phone extends below the mat. */
.broadcast-panel { container-type: inline-size; padding: 0 clamp(22px, 6.84%, 82px); overflow-x: auto; overflow-y: hidden; align-items: center; justify-content: flex-start; scrollbar-width: none; }
.broadcast-panel::-webkit-scrollbar { display: none; }
.broadcast-layout { --broadcast-art-height: calc(var(--media-panel-height) * 854 / 796.54187); display: flex; flex: 0 0 auto; gap: calc(var(--broadcast-art-height) * 79 / 854); width: max-content; height: calc(var(--broadcast-art-height) * 295 / 854); min-width: 0; margin-inline: auto; align-items: flex-start; }
.broadcast-screen { position: relative; flex: 0 0 auto; width: calc(var(--broadcast-art-height) * 395 / 854); height: 100%; margin-right: calc(var(--broadcast-art-height) * -10 / 854); }
.broadcast-screen img { position: absolute; top: calc(var(--broadcast-art-height) * -160 / 854); width: 100%; max-width: none; height: var(--broadcast-art-height); }
.history-card { flex: 0 0 auto; width: calc(var(--broadcast-art-height) * 362 / 854); }
.history-card img { width: 100%; height: auto; }
@media (max-width: 1000px) and (min-width: 801px) {
  .panel-sequence { padding: 20px; gap: 14px; }
}
@media (max-width: 650px) {
  :root { --media-panel-height: clamp(360px, 100vw, 440px); }
  .panel-sequence { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(100%, calc(var(--media-panel-height) - 92px)); justify-content: start; padding: 22px; gap: 22px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; scrollbar-width: thin; scrollbar-color: #6f91bc transparent; }
  .screenshot-item { width: 100%; }
  .panel-sequence .screenshot-item { scroll-snap-align: start; }
  .iteration-section { margin-top: 36px; }
  .broadcast-panel { padding-inline: 22px; }
  .trade-history-section { margin-top: 36px; }
}
@media print {
  .media-panel { height: auto; min-height: 260px; }
  .media-panel > img { height: auto; }
  .panel-sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; padding: 15px; gap: 12px; overflow: hidden; }
  .panel-sequence .screenshot-item > figcaption { font-size: 9pt; }
  .broadcast-panel { --media-panel-height: 400px; height: var(--media-panel-height); }
  .broadcast-layout { min-width: 0; }
}

.desktop-art { display: block; width: 100%; height: auto; border-radius: var(--media-radius); }

.trade-history-art { display: block; width: 100%; height: auto; border-radius: 16px; }

.monochrome-iterations .panel-sequence { border-radius: 0; }
.monochrome-iterations .shot-frame { border: 1px dashed #929292; border-radius: 0; background: #191919; }
.monochrome-iterations .shot-frame img { filter: grayscale(1); }
.monochrome-iterations .screenshot-item > figcaption { color: #bdbdbd; }

.decision-study { margin: 64px 0; padding-top: 32px; border-top: 1px solid #373737; scroll-margin-top: 32px; }
.decision-study p { max-width: 62ch; color: var(--body); margin: 16px 0 24px; }
.decision-study img { display: block; width: 100%; }
.canvas-photo, .early-crop { border: 1px dashed #777; }
.study-pair, .decision-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); align-items: center; }
.early-crop { overflow: hidden; aspect-ratio: 1; }
.early-crop img { height: 100%; object-fit: contain; filter: grayscale(1); transform: scale(1.65); transform-origin: 90% 25%; }
.decision-pair { padding: clamp(16px,3vw,42px); background: #1b1b1b; }
.decision-study figcaption { color: #aaa; margin-top: 12px; }
@media(max-width: 650px) { .study-pair, .decision-pair { grid-template-columns: 1fr; } }

.prototype-comparison { margin: 28px 0 36px; }
.prototype-options { display:flex; justify-content:flex-end; gap:4px; margin-bottom:12px; }
.prototype-options button { font:inherit; font-size:13px; color:#bbb; border:1px solid #444; background:transparent; border-radius:6px; padding:6px 12px; cursor:pointer; }
.prototype-options button[aria-pressed="true"] { color:white; background:#333; }
.prototype-split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:hidden; border-radius:16px; background:#191919; }
.prototype-workspace { position:relative; display:grid; place-items:center; padding:5%; min-width:0; overflow:hidden; }
.workspace-shot { position:relative; width:100%; aspect-ratio:2253/1478; overflow:hidden; border:1px solid #494949; border-radius:9px; }
.workspace-shot img { display:block; position:absolute; inset:-1%; width:102%; height:102%; max-width:none; }
.prototype-split[data-layout="fill"] .workspace-shot { position:absolute; inset:0; aspect-ratio:auto; border:0; border-radius:0; }
.prototype-split[data-layout="fill"] .prototype-workspace img { position:absolute; top:-3px; left:-3px; width:calc(100% + 6px); max-width:none; height:calc(100% + 6px); object-fit:cover; object-position:left center; border:0; border-radius:0; }
.prototype-split iframe { width:100%; height:490px; display:block; border:0; background:#222; }
.prototype-hint { font-size:13px; color:#aaa; margin-top:10px; }
@media(max-width:720px) { .prototype-split { grid-template-columns:1fr; } .prototype-workspace { aspect-ratio:1.65; } }

.prototype-split[data-layout="offset"] .workspace-shot { position:absolute; left:3%; top:50%; transform:translateY(-50%); width:118%; max-width:none; }
@media(max-width:720px) { .prototype-split[data-layout="offset"] .prototype-workspace { aspect-ratio:1.1; } }
