:root {
  --paper: #FAF8F3;
  --ink: #141414;
  --red: #E2492F;
  --body: #3A3A38;
  --muted: #6A655C;
  --dim: #948E82;
  --rule: #DCD6C9;
  --tan: #EFE9DC;
  --frame: #E9E4D8;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } .site-nav { gap: 0 16px; } }

/* Header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 28px 0; }
.mark { text-decoration: none; font-weight: 700; font-stretch: 112%; letter-spacing: 0.28em; font-size: 15px; display: flex; align-items: baseline; }
.stop { display: inline-block; width: 0.42em; height: 0.42em; background: var(--red); margin-left: 0.1em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a { text-decoration: none; display: inline-block; padding: 12px 0; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

/* Sections */
.section { padding: 0 0 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; border-top: 10px solid var(--ink); padding-top: 20px; margin-bottom: 56px; }
.label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foundation { width: 140px; height: 10px; background: var(--ink); }

/* Hero / approach */
.hero { padding: 80px 0 120px; }
.hero h1 { margin: 0; max-width: 1000px; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.hero .foundation { margin: 40px 0 48px; }
.hero-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; font-size: 18px; line-height: 1.6; color: var(--body); }
.hero-copy p { margin: 0; }
.steps { margin: 72px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 48px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li:nth-child(2) { padding-top: 14px; border-top-width: 6px; }
.steps li:nth-child(3) { padding-top: 10px; border-top: 10px solid var(--red); }
.steps h3 { margin: 8px 0 10px; font-size: 22px; font-weight: 700; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.more-link { margin: 56px 0 0; font-size: 15px; font-weight: 600; }
.more-link a { text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* Activity */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 72px; align-items: start; }
.counter { font-size: clamp(56px, 9vw, 112px); font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.counter-note { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.heat-scroll { margin-top: 32px; overflow-x: auto; }
.heat { display: grid; grid-template-rows: repeat(7, 18px); grid-auto-flow: column; grid-auto-columns: 18px; gap: 4px; width: max-content; }
.heat span { display: block; }
.l0 { background: #E6E0D3; } .l1 { background: #F3D59B; } .l2 { background: #EE9F27; } .l3 { background: var(--red); } .l4 { background: #13284A; } .lx { background: transparent; }
.legend { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--body); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend span { width: 12px; height: 12px; }
.enh-list { margin: 8px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.enh { border-top: 1px solid var(--rule); padding: 12px 0; outline: none; }
.enh:focus-visible { box-shadow: inset 3px 0 0 var(--red); }
.enh-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 12px; align-items: baseline; }
.enh-date { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.enh-short { font-size: 15px; font-weight: 600; }
.enh-plus { font-weight: 700; color: var(--red); transition: transform .3s; }
.enh-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.enh-body p { overflow: hidden; min-height: 0; margin: 0; padding-left: 68px; font-size: 14px; line-height: 1.55; color: var(--body); transition: padding-top .35s var(--ease); }
.enh:hover .enh-body, .enh:focus .enh-body { grid-template-rows: 1fr; }
.enh:hover .enh-body p, .enh:focus .enh-body p { padding-top: 8px; }
.enh:hover .enh-plus, .enh:focus .enh-plus { transform: rotate(45deg); }
@media (max-width: 600px) { .enh-body p { padding-left: 0; } }

/* Projects accordion */
.pj-row { display: flex; gap: 8px; height: 600px; }
.pj { position: relative; overflow: hidden; min-width: 0; background: var(--tan); flex: 0 0 76px; border-bottom: 2px solid var(--ink); transition: flex-grow .6s var(--ease), border-bottom-width .4s; }
.pj.is-open { flex-grow: 1; border-bottom-width: 10px; }
.pj-tab { all: unset; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0; color: var(--ink); transition: opacity .3s; }
.pj-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.pj.is-open .pj-tab { opacity: 0; pointer-events: none; }
.pj-num { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.pj-tabname { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }
.dot { display: inline-block; width: 12px; height: 12px; flex: none; background: var(--ink); }
.dot.building { background: var(--red); }
.dot.planning { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
.dot.sm { width: 9px; height: 9px; }
.pj-panel { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .3s; }
.pj.is-open .pj-panel { opacity: 1; pointer-events: auto; transition: opacity .45s .15s; }
.pj-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--frame); }
.pj-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pj-shot.dark { background: var(--ink); }
.pj-shot.grey { background: #55534E; }
.pj-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; color: #CFCAC0; }
.pj-placeholder p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 360px; }
.blocks { display: grid; grid-template-columns: repeat(6, 14px); gap: 6px; }
.blocks span { height: 14px; background: var(--paper); }
.blocks .r { background: var(--red); } .blocks .g { background: #55534E; }
.pj-info { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 28px 32px 30px; min-width: 640px; }
.pj-info h3 { margin: 0; display: flex; align-items: baseline; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pj-info h3 .stop { width: 0.16em; height: 0.16em; margin-left: 0.06em; }
.pj-info p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--body); max-width: 460px; }
.facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 8px 20px; font-size: 14px; align-content: start; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .pj-row { flex-direction: column; height: auto; }
  .pj { flex: none; height: 64px; transition: height .6s var(--ease), border-bottom-width .4s; }
  .pj.is-open { height: 600px; }
  .pj-tab { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0 20px; }
  .pj-tabname { writing-mode: horizontal-tb; transform: none; font-size: 22px; flex: 1; }
  .pj-info { grid-template-columns: 1fr; gap: 16px; padding: 20px; min-width: 0; }
  .pj-info h3 { font-size: 30px; }
}

/* Selected work */
.wk { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.wk-row { padding: 14px 0; }
.wk-btn { all: unset; cursor: pointer; display: block; width: 100%; }
.wk-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.wk-tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: color .4s; margin-bottom: 6px; }
.wk-name { display: inline-flex; align-items: baseline; font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; font-stretch: 92%; font-weight: 250; color: var(--dim); transition: font-weight .5s var(--ease), color .4s; }
.wk-name .stop { width: 0.16em; height: 0.16em; margin-left: 0.06em; transform: scale(0); transform-origin: left bottom; transition: transform .35s var(--ease) .1s; }
.wk-row.is-on .wk-tag { color: var(--red); }
.wk-row.is-on .wk-name { font-weight: 800; color: var(--ink); }
.wk-row.is-on .wk-name .stop { transform: scale(1); }
.wk-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.wk-row.is-on .wk-detail { grid-template-rows: 1fr; }
.wk-detail > div { overflow: hidden; min-height: 0; }
.wk-inner { padding-top: 22px; display: flex; flex-direction: column; gap: 20px; opacity: 0; transition: opacity .4s; }
.wk-row.is-on .wk-inner { opacity: 1; }
.wk-meta { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 32px; border-top: 2px solid var(--ink); padding-top: 14px; }
.wk-meta dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wk-meta dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.wk-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.wk-result p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--body); }
.wk-big { text-align: right; margin-left: auto; }
.wk-big b { display: block; font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.wk-big span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wk-side { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 20px; }
.frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--frame); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .9s var(--ease); }
.frame img.contain { object-fit: contain; background: #fff; }
.frame img.is-on { opacity: 1; transform: scale(1); }
.chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); font-size: 15px; font-weight: 600; }
.chip svg { flex: none; }
.ticks-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ticks { display: flex; gap: 6px; }
.tick { all: unset; cursor: pointer; width: 10px; height: 10px; background: var(--dim); opacity: .5; transition: width .4s, background .4s; }
.tick.is-on { width: 28px; background: var(--red); opacity: 1; }
.tick:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wk-count { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; }
.wk-inline { display: none; }
@media (max-width: 960px) {
  .wk { grid-template-columns: 1fr; }
  .wk-side { display: none; }
  .wk-inline { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--frame); }
  .wk-inline img { width: 100%; height: 100%; object-fit: cover; }
  .wk-inline img.contain { object-fit: contain; background: #fff; }
  .wk-inline .chip { font-size: 13px; }
  .wk-name { font-size: 40px; }
  .wk-meta { grid-template-columns: 1fr; }
  .wk-big b { font-size: 40px; }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px 96px; align-items: start; padding: 80px 0 120px; }
.about h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.about .foundation { margin: 36px 0 44px; }
.about-copy { display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.65; color: #2A2A28; max-width: 680px; }
.about-copy p { margin: 0; }
.about-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; font-size: 15px; border-top: 2px solid var(--ink); padding-top: 18px; }
.about-facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.about-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; padding-top: 48px; } }

/* Footer */
.site-footer { border-top: 10px solid var(--ink); padding: 56px 0 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer p { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.button:hover { background: var(--red); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
