:root{--paper:#f8f6f1;--ink:#161513;--muted:#625e56;--line:#dcd6cb;--amber:#ff9900;--wide:1280px;--head:70px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--head) + 18px)}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 "PingFang SC","Microsoft YaHei",system-ui,sans-serif}
h1,h2,h3,p,dl,dd,figure{margin:0}a{color:inherit}a:focus-visible{outline:3px solid #c67600;outline-offset:4px}
.wrap{width:min(var(--wide),90%);margin-inline:auto}
header{height:var(--head);position:sticky;top:0;background:#151514;color:#fff;border-top:3px solid var(--amber);border-bottom:1px solid #34322c;z-index:5}
.bar,.brand,.navlinks,.actions{display:flex;align-items:center}.bar{height:100%;gap:32px}.bar a,.actions a,.toc a{text-decoration:none}
.brand{gap:15px;margin-right:auto}.brand img{width:109px;height:auto}.brand span{padding-left:16px;border-left:1px solid #4d4a41;letter-spacing:.1em;font-weight:600}
.navlinks{gap:30px;font-size:14px;color:#d8d3ca}.navlinks a:hover,.secondary:hover{color:var(--amber)}
.contact-link{border:1px solid #9c773a;padding:6px 17px;color:#ffbc53;font-size:14px}.contact-link:hover{background:#302719}
.skip{position:fixed;top:-80px;left:10px;background:white;padding:10px;z-index:10}.skip:focus{top:10px}
.kicker,.category{font:650 .79rem/1.5 "SFMono-Regular",Consolas,monospace;letter-spacing:.13em}
.reading{display:grid;grid-template-columns:190px minmax(0,1fr);gap:clamp(30px,5vw,86px);padding-block:56px 78px}
.toc{position:sticky;top:calc(var(--head) + 22px);border-top:3px solid var(--ink);padding-top:16px}.toc h2{font-size:16px;margin-bottom:14px}.toc a{display:block;padding:8px 12px;color:#625e56;border-left:2px solid transparent;font-size:15px}.toc a:hover,.toc a[aria-current]{background:#eee8dc;color:var(--ink);border-color:#bd6900}
article{background:#fff;border:1px solid var(--line);min-width:0}article section{padding:clamp(26px,4vw,62px);border-bottom:1px solid var(--line)}article section:last-child{border:0}
.kicker,.category{color:#88500b}.kicker{display:flex;align-items:center;gap:10px}.kicker:before{content:"";width:22px;height:2px;background:#db7d00}
article h1{font-size:clamp(27px,3vw,44px);line-height:1.25;letter-spacing:-.05em;margin:9px 0 20px}
article h2{font-size:1.18rem;line-height:1.45}article p,article dd{color:#514d47}.intro{font-size:1.08rem;max-width:44em}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:25px}.pair>div{border-top:2px solid #df9a34;padding-top:15px}.pair p,.case p:not(.category),.stages p{margin-top:7px}
.case{display:grid;grid-template-columns:.87fr 1fr;gap:28px;align-items:center;border-top:1px solid var(--line);padding:25px 0}.case:last-child{padding-bottom:0}.case h2{font-size:1.65rem}.category{letter-spacing:.05em;margin-bottom:4px}.case img{width:100%;height:auto;display:block;border:1px solid var(--line)}.textlink{color:#804600;text-underline-offset:4px}
.stages{list-style:none;counter-reset:step;display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;padding:0;margin:0}.stages li{counter-increment:step;border-top:1px solid var(--line);padding:14px 0 0}.stages li:before{content:counter(step,decimal-leading-zero);font:600 16px monospace;color:#995000;display:block;margin-bottom:7px}
.terms{margin-top:20px}.terms div{display:grid;grid-template-columns:7.8em 1fr;gap:14px;padding:15px 0;border-top:1px solid var(--line)}.terms dt,.person b{font-weight:650}
.people{display:grid;grid-template-columns:1fr 1fr;gap:18px}.person{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.person img,.monogram{width:59px;height:77px;object-fit:cover}.monogram{background:#29261f;color:#e9ac50;display:grid;place-items:center;font-size:26px;flex-shrink:0}.person b,.person p{font-size:.875rem}.person p{color:var(--muted)}.team-note{margin-top:15px}
#contact{background:#1b1a17;color:white}#contact .kicker{color:#ffb33b}#contact p{color:#d3cdbf}.contact-body{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px;border-top:1px solid #4f4738;padding-top:20px}.contact-body a{display:block;color:white;text-underline-offset:4px}.contact-body h2{margin-bottom:10px}.contact-body small{font-size:.8rem;color:#e4c99e}.contact-body img{display:block;width:100px}.contact-body figcaption{text-align:center;font-size:13px;color:#dfd7cb}
@media(max-width:920px){.reading{grid-template-columns:142px minmax(0,1fr);gap:24px}.people,.case{grid-template-columns:1fr}.person{padding-block:10px}.people{gap:4px}.case{gap:14px}}
@media(max-width:700px){:root{--head:58px}.wrap{width:90%}.bar{gap:12px}.brand{gap:10px}.brand img{width:84px}.brand span{font-size:13px;padding-left:10px}.navlinks{display:none}.contact-link{padding:4px 10px}.reading{display:block;padding-block:24px 30px}.toc{position:static;display:flex;gap:4px;flex-wrap:wrap;border-top:0;padding:0 0 16px}.toc h2{flex-basis:100%;margin:0}.toc a{padding:4px 8px;font-size:14px}.pair,.stages{grid-template-columns:1fr;gap:15px}.terms div{display:block}.terms dt{margin-bottom:4px}article section{padding:24px 18px}.case img{max-height:none}.contact-body{flex-wrap:wrap}.contact-body img{width:85px}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}@media print{header,aside,footer,.actions,.skip{display:none}.reading{display:block}.wrap{width:100%}.cover-in{min-height:0}.cover{background:white;color:#161513}.lead,.eyebrow{color:#514d47}article{border:0}article section{break-inside:auto}.case,.person{break-inside:avoid}}

.home { background: #100e0c; }
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 66px 5%;
  color: #fffaf0;
  background: radial-gradient(ellipse at 85% 22%, #503120, transparent 48%),
              radial-gradient(ellipse at 12% 86%, #614022, transparent 47%), #120f0e;
}
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 51%, #120e0bd9 0%, #120e0ba6 19%, transparent 52%);
}
.hero-copy { text-align: center; }
.lit-copy > * {
  --local-light: calc(var(--light-x, 0px) - var(--offset-x, 0px)) calc(var(--light-y, 0px) - var(--offset-y, 0px));
}
.cover-logo { position: relative; display: block; width: clamp(200px, 27vw, 420px); height: auto; margin: 0 auto 28px; }
.cover-logo img { display: block; width: 100%; height: auto; }
.cover-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--light-strength, 0);
  background: radial-gradient(ellipse 78px 64px at var(--local-light),
    #fff8dd 0%, #ffcf79 34%, rgba(247, 171, 83, .48) 62%, transparent 100%);
  -webkit-mask: url("assets/wordmark-light.png") center / 100% 100% no-repeat;
  mask: url("assets/wordmark-light.png") center / 100% 100% no-repeat;
}
.cover h1 { margin: 0; font-size: clamp(22px, 2.55vw, 40px); line-height: 1.35; letter-spacing: .035em; font-weight: 650; }
.lead { margin: 14px 0 0; color: #eee2cf; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media screen and (forced-colors: none) {
    .lit-copy h1, .lit-copy .lead {
      background-color: #fffaf0;
      background-image: radial-gradient(ellipse 95px 44px at var(--local-light),
        rgba(255, 178, 62, var(--light-strength, 0)) 0% 22%, transparent 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .lit-copy .lead { background-color: #eee2cf; }
  }
}
.mobile-break { display: none; }
.actions { justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; font-size: 15px; font-weight: 600; }
.actions a { padding: 10px 20px; border: 1px solid transparent; border-radius: 4px; }
.primary { color: #241807; background: #ffb23e; }
.primary:hover { background: #ffc469; }
.actions .secondary { border-color: #806d53; color: #fff2df; background: #211b15d9; }
.secondary small { font: 600 .72rem monospace; color: #dbbc86; }
@media(max-width:700px) {
  .cover-logo { margin-bottom: 24px; }
  .mobile-break { display: inline; }
  .actions { gap: 10px; }
  .actions a { padding: 9px 14px; }
}
@media print { .cover canvas { display: none; } }
.chapter { min-width: 0; }
.pager {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.pager a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: .94rem;
  text-decoration: none;
}
.pager a[rel="next"] { margin-left: auto; background: var(--ink); color: white; }
.pager a:hover { border-color: #ab6400; }
.navlinks a[aria-current] { color: var(--amber); }
@media print { .pager { display: none; } }

/* ---------- Home: sections below the cover ---------- */
.home { --d-bg:#100e0c; --d-card:#17130f; --d-line:#2e2820; --d-text:#f5ecdd; --d-muted:#b7aa94; --d-amber:#ffb23e; color: var(--d-text); }
.home-bar { position: fixed; inset: 0 0 auto; z-index: 100; background: #100e0cd6; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top-color: transparent; border-bottom-color: #2a251e; transition: transform .35s ease, opacity .35s ease; }
.home-bar[data-state="hidden"] { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.home-bar .navlinks a { color: #d8d3ca; }
.home-bar .navlinks a[aria-current] { color: var(--amber); }
.home-bar .contact-link[aria-current] { background: #302719; color: #ffd28a; border-color: #ffb23e; }
/* Anchor landing without JS: html's scroll-padding-top is bar + 18px, so pulling the
   section up by its top padding (minus the 1px border) leaves the eyebrow ~20px below the bar. */
.band { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid #1f1b16; scroll-margin-top: calc(1px - clamp(72px, 10vw, 128px)); }
.band:focus { outline: none; }
.band-head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 52px); }
.band .eyebrow, .eyebrow { font: 650 .78rem/1.5 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; color: var(--d-amber); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.band h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.band-head > p:last-child, .team-band p, .talk-box p { margin-top: 14px; color: var(--d-muted); font-size: clamp(15px, 1.1vw, 17px); }
.band h3 { font-size: 1.2rem; line-height: 1.4; }
.tag { font-size: .8rem; font-weight: 600; line-height: 1.5; letter-spacing: .04em; color: #e2a24a; margin-bottom: 8px; }

/* Cards with a pointer-following amber glow */
.glow-card { position: relative; isolation: isolate; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: clamp(22px, 2.4vw, 32px); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .3s, transform .3s; }
.glow-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), #ffb23e1f, transparent 60%); }
.glow-card:hover { border-color: #5c4528; }
.glow-card:hover::before { opacity: 1; }
.glow-card p { color: var(--d-muted); }
.glow-card h3 + p { margin-top: 8px; }

.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.flow-card { grid-row: span 2; }
.flow { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 10px; background: #1d1813; }
.flow li::before { content: counter(flow, decimal-leading-zero); grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2a2015; color: var(--d-amber); font: 600 14px monospace; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 36px; bottom: -13px; width: 2px; height: 12px; background: linear-gradient(#ffb23e, #ffb23e33); }
.flow li:nth-child(3) { border-color: #6b4d22; background: #241b10; }
.flow b { font-weight: 650; }
.flow span { color: var(--d-muted); font-size: .9rem; }
.more { display: inline-block; margin-top: 26px; color: var(--d-amber); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; text-underline-offset: 5px; }
.more-row { display: flex; gap: 28px; flex-wrap: wrap; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { padding: 0; display: flex; flex-direction: column; }
.work-thumb { display: block; padding: 14px 14px 0; background: #1c1712; border-bottom: 1px solid var(--d-line); overflow: hidden; }
.work img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; border-radius: 6px 6px 0 0; opacity: .92; transition: transform .5s ease, opacity .3s; }
.work:hover img { opacity: 1; }
.work:hover img { transform: scale(1.03); }
.work > div { padding: 20px 22px 24px; background: var(--d-card); position: relative; }
.work:hover { transform: translateY(-4px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps li { border-top: 2px solid var(--d-line); padding-top: 20px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--d-amber); transition: width .9s ease .2s; }
.steps li.is-in::before { width: 100%; }
.step-no { display: block; font: 600 .85rem monospace; color: var(--d-amber); margin-bottom: 10px; }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.terms-grid p { margin-top: 8px; color: var(--d-muted); font-size: .95rem; line-height: 1.75; }
.steps p { margin-top: 6px; color: var(--d-muted); font-size: .95rem; }

.team-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.faces { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faces li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card); }
.faces img, .faces .mono { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.faces .mono { display: grid; place-items: center; background: #2a2015; color: var(--d-amber); font-size: 22px; }
.faces span { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.faces small { display: block; color: var(--d-muted); font-weight: 400; font-size: .8rem; }

.talk { border-top: 0; padding-top: 0; }
.talk-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: clamp(28px, 4vw, 56px); background: radial-gradient(ellipse at 90% 10%, #4a2e15, transparent 55%), var(--d-card); border-color: #4b3920; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; font-weight: 600; font-size: 15px; }
.talk-actions a { padding: 10px 20px; border-radius: 4px; text-decoration: none; border: 1px solid transparent; }
.talk-actions .secondary { border-color: #806d53; color: #fff2df; }
.talk-actions .secondary:hover { color: var(--amber); }
.talk-box figure { text-align: center; flex-shrink: 0; }
.talk-box figure img { width: 132px; border-radius: 8px; background: #fff; padding: 6px; display: block; }
.talk-box figcaption { margin-top: 8px; font-size: 13px; color: var(--d-muted); }

/* Reveal on scroll (only when JS has run and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .bento .reveal:nth-child(2), .js .work-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
  .js .bento .reveal:nth-child(3), .js .work-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }
  .js .steps .reveal:nth-child(4) { transition-delay: .24s; }
  .js .terms-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .js .terms-grid .reveal:nth-child(3) { transition-delay: .16s; }
}

/* Cover: fade into the sections below, and hint that the page continues */
.cover::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--d-bg)); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: #cbbfa9; font-size: 13px; letter-spacing: .08em; text-decoration: none; }
.scroll-hint span { font-size: 16px; color: var(--d-amber); }
.scroll-hint:hover { color: var(--d-amber); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint span { animation: nudge 2.2s ease-in-out infinite; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.talk-mail { font-size: .9rem; }

/* Mobile navigation drawer (no JS needed) */
.nav-drawer { display: none; position: relative; }
.nav-drawer summary { list-style: none; cursor: pointer; padding: 4px 12px; border: 1px solid #9c773a; color: #ffbc53; font-size: 14px; }
.nav-drawer summary::-webkit-details-marker { display: none; }
.drawer-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; display: grid; padding: 8px; background: #17130f; border: 1px solid var(--d-line); border-radius: 10px; box-shadow: 0 12px 30px #0009; }
.drawer-panel a { padding: 10px 12px; color: #e9e1d3; text-decoration: none; border-radius: 6px; }
.drawer-panel a:hover { background: #241c13; color: var(--d-amber); }

/* Visible keyboard focus on dark sections */
.home a:focus-visible, .home summary:focus-visible, .site-foot a:focus-visible { outline: 2px solid #ffb23e; outline-offset: 3px; }
.glow-card:focus-visible { outline: 2px solid #ffb23e; outline-offset: 3px; }

/* ---------- Shared footer ---------- */
.site-foot { background: #0d0b09; color: #b9b0a1; font-size: 14px; border-top: 1px solid #241f19; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 52px 36px; }
.site-foot h2 { font-size: 13px; letter-spacing: .1em; color: #f1e8d9; margin-bottom: 14px; font-weight: 650; }
.site-foot nav a, .site-foot .foot-grid > div:last-child a { display: block; padding: 3px 0; text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.foot-brand img { display: block; height: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 22em; line-height: 1.75; }
.site-foot .foot-base { display: flex; justify-content: space-between; padding-block: 18px; border-top: 1px solid #241f19; color: #9e9484; font-size: 13px; }

@media (max-width: 920px) {
  .bento, .team-band { grid-template-columns: 1fr; }
  .flow-card { grid-row: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .work { display: grid; grid-template-columns: 1fr 1fr; }
  .work-thumb { border-bottom: 0; border-right: 1px solid var(--d-line); padding: 14px 0 0 14px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .terms-grid { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Six nav items no longer fit on one line below ~880px: switch to the drawer. */
@media (max-width: 880px) {
  .home-bar .navlinks { display: none; }
  .nav-drawer { display: block; }
}
@media (max-width: 700px) {
  .work { display: flex; }
  .work-thumb { border-right: 0; border-bottom: 1px solid var(--d-line); padding: 12px 12px 0; }
  .steps { grid-template-columns: 1fr; }
  .home-bar .contact-link { display: none; }
  .faces { grid-template-columns: 1fr 1fr; }
  .talk-box { flex-direction: column; align-items: flex-start; }
  .site-foot .foot-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 24px; }
  .site-foot .foot-base { flex-direction: column; gap: 4px; }
}
@media print { .home-bar, .site-foot { display: none; } .js .reveal { opacity: 1; transform: none; } }
