/* Greetings from Joliet: web proposal for RFP-2026-JAHM-01 (DevStudioCraft) */
@font-face { font-family: "Clash Display"; src: url(fonts/clash-display-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url(fonts/clash-display-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo SemiExpanded"; src: url(fonts/archivo-semiexp-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f3e6c9; --surface: #ecdcb8; --paper: #fffaf0; --ink: #1e2a3a; --muted: #6b5e4a;
  --accent: #c8361d; --accent-ink: #fffaf0; --ochre: #d9a441; --sage: #6f8f62; --brown: #5a3b22;
  --line: rgba(30, 42, 58, .22);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(1rem, 3.2vw, 3.5rem); --top: clamp(4.2rem, 9vh, 5.6rem); --bot: clamp(3.6rem, 8vh, 4.8rem);
  --display: "Clash Display", "Satoshi", system-ui, sans-serif; --text: "Satoshi", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif; --sign: "Archivo SemiExpanded", "Clash Display", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 400 clamp(15px, .55vw + 9px, 18px)/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: repeating-linear-gradient(0deg, rgba(110, 80, 30, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 80, 30, .05) 0 1px, transparent 1px 3px);
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .07em; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1rem + 3.4vw, 4.4rem); line-height: .98; max-width: 14ch; }
h3 { font-size: clamp(1.05rem, .7rem + .6vw, 1.35rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.kick { display: flex; align-items: center; gap: .6em; font: 600 .74rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1rem; }
.kick::before { content: ""; width: .7em; height: .7em; background: var(--accent); }
.lede { font-size: clamp(1.02rem, .8rem + .45vw, 1.3rem); line-height: 1.45; max-width: 46ch; margin: 1.1rem 0 0; }
.small { font-size: .86rem; color: var(--muted); }
.note { font-size: .8rem; color: var(--muted); margin-top: 1rem; max-width: 70ch; }
p { margin: 0 0 .8em; }

/* ---------- chrome */
.bar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: var(--top); display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--pad); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: .7rem; font: 700 .9rem/1 var(--text); text-decoration: none; }
.brand b { font-family: var(--sign); font-weight: 800; letter-spacing: .02em; }
.brand i { font-style: normal; color: var(--accent); }
.brand span { font-weight: 500; color: var(--muted); }
.tools { display: flex; gap: .4rem; align-items: center; }
.tools .count { font: 600 .8rem/1 var(--text); letter-spacing: .08em; margin-right: .6rem; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .7em 1.2em;
  border: 1.5px solid var(--ink); background: transparent; font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background .18s var(--ease-out), color .18s var(--ease-out), transform .14s var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.icon { width: 44px; padding: 0; }
.dots { position: fixed; z-index: 20; left: var(--pad); right: var(--pad); bottom: 0; height: var(--bot); display: flex; align-items: center; gap: 1.2rem; }
.dots ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex: 1; }
.dots li { flex: 1; }
.dots button { display: block; width: 100%; height: 24px; border: 0; background: none; padding: 10px 0; }
.dots button::before { content: ""; display: block; height: 4px; background: var(--line); transition: background .24s var(--ease-out); }
.dots button[aria-current="step"]::before, .dots button.done::before { background: var(--ink); }
.dots button[aria-current="step"]::before { background: var(--accent); }
.keys { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.keys kbd { font: 600 .7rem/1 var(--text); border: 1px solid var(--line); padding: .25em .45em; margin-right: .2em; background: var(--paper); }

/* ---------- deck */
.deck .slides { position: fixed; inset: 0; overflow: hidden; }
.deck .slide { position: absolute; inset: 0; padding: var(--top) var(--pad) var(--bot); overflow: auto; visibility: hidden;
  opacity: 0; transform: translateX(4%); }
.ready.deck .slide { transition: opacity .48s var(--ease-out), transform .48s var(--ease-out), visibility 0s .48s; }
.deck .slide.prev { transform: translateX(-4%); }
.deck .slide.on { visibility: visible; opacity: 1; transform: none; }
.ready.deck .slide.on { transition: opacity .48s var(--ease-out), transform .48s var(--ease-out), visibility 0s; }
.slide-in { min-height: 100%; display: flex; flex-direction: column; justify-content: safe center; }
.stack .slide-in { min-height: 0; }
.stack .slide { padding: 5rem var(--pad) 4rem; border-top: 1px solid var(--line); }
.stack .dots, .stack .keys, .stack .tools { display: none; }
.stack .cover .slide-in { padding-top: 3rem; }
.stack .cover .road { display: none; }
.gantt .m1 { display: none; }
.stack .bar { position: absolute; }

/* ---------- 1 cover */
.cover .slide-in { justify-content: center; }
.deck .cover { overflow-x: clip; }
.greet { font: 400 clamp(2.2rem, 1rem + 4vw, 5rem)/1 var(--serif); font-style: italic; color: var(--accent); margin: 0 0 -.1em .04em; }
.word { display: flex; font: 800 clamp(5rem, 1rem + 15.4vw, 18rem)/.86 var(--sign); letter-spacing: -.01em; margin: 0; }
.L { position: relative; display: inline-block; }
.L .sh, .L .fill, .L .st { display: block; }
.L .sh { color: var(--ink); transform: translate(.045em, .05em); }
.L .fill { position: absolute; inset: 0; color: transparent; background: var(--img) center/cover no-repeat; -webkit-background-clip: text; background-clip: text; }
.L .st { position: absolute; inset: 0; color: transparent; -webkit-text-stroke: .028em var(--ink); }
.stamp { position: absolute; right: var(--pad); top: calc(var(--top) + 1rem); border: 2px dashed var(--accent); color: var(--accent);
  padding: .9rem 1.1rem; font: 800 .95rem/1.15 var(--sign); text-align: center; text-transform: uppercase; transform: rotate(8deg); letter-spacing: .02em; }
.stamp small { display: block; font-size: .78em; margin-top: .3rem; }
.cover-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; margin-top: clamp(1rem, 4vh, 2.6rem); }
.cover-foot h1 { font-size: clamp(1.4rem, .9rem + 1.2vw, 2.2rem); line-height: 1.05; max-width: 22ch; }
.cover-foot p { margin: .6rem 0 0; max-width: 58ch; }
.cover-act { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.legend { font-size: .78rem; color: var(--muted); margin-top: .8rem; text-align: right; }
.cover .road { position: absolute; left: 0; right: 0; bottom: calc(var(--bot) - 6px); height: 2px; background: var(--ink); transform-origin: left; }

/* ---------- 2 letter */
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.letter p { max-width: 60ch; }
.sig { font: 400 2rem/1 var(--serif); font-style: italic; margin: 1.2rem 0 .2rem; }
.box { background: var(--surface); border-top: 4px solid var(--accent); padding: 1.4rem 1.5rem; }
.box dl { margin: 0; display: grid; gap: .7rem; }
.box dt { font: 600 .72rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.box dd { margin: .2rem 0 0; }

/* ---------- 3 postcards */
.places { display: grid; grid-template-columns: minmax(15rem, .75fr) 2.4fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.2vw, 1.3rem);
  max-width: calc((100vh - var(--top) - var(--bot) - 2.5rem) / 2 / 1.433 * 4 + 3rem); width: 100%; justify-self: end; }
.pc-note { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 2px dashed var(--accent);
  color: var(--accent); transform: rotate(2deg); padding: 1rem; aspect-ratio: 3 / 4.3; }
.pc-note span { font: 400 clamp(1.4rem, 1rem + 1vw, 2.2rem)/1 var(--serif); font-style: italic; }
.pc-note small { font: 700 .66rem/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; margin-top: .8rem; }
.pc { position: relative; display: block; aspect-ratio: 3 / 4.3; border: 0; padding: 0; background: none; text-align: left;
  transform: rotate(var(--tilt)); transition: transform .5s var(--ease-out); }
.pc:nth-child(odd) { --tilt: -1.5deg; } .pc:nth-child(even) { --tilt: 1.2deg; }
.pc:hover, .pc.flip { transform: rotate(0deg) translateY(-6px); }
.pc { perspective: 1100px; }
.pc-in { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .7s var(--ease-expo); }
.pc.flip .pc-in { transform: rotateY(180deg); }
.pc .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper);
  padding: 6px 6px 0; box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(30, 42, 58, .45); display: flex; flex-direction: column; }
.pc .face img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.pc .cap { padding: .55rem .2rem .6rem; font: 800 .66rem/1.15 var(--sign); text-transform: uppercase; letter-spacing: .03em; }
.pc .cap span { display: block; font: 500 .7rem/1.3 var(--text); text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: .15rem; }
.pc .back { transform: rotateY(180deg); padding: .9rem .85rem; font-size: .78rem; line-height: 1.4; justify-content: flex-start;
  background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 46%; background-position: 50% 92%; background-repeat: no-repeat; }
.pc .back h3 { font-size: .95rem; margin-bottom: .45rem; }
.pc .back .pst { position: absolute; right: .7rem; top: .7rem; width: 2.1rem; height: 2.5rem; border: 2px dotted var(--accent); }
.pc .back p { margin: 0 0 .5rem; padding-right: .2rem; }
.hint { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- 4 roads */
.roads { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.map { width: 100%; height: auto; max-height: 64vh; }
.map .rt { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .w { stroke: #2f5d8a; stroke-width: 5; }
.map .r { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 0; }
.map .r2 { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 10 6; }
.map .h { stroke: var(--accent); stroke-width: 6; }
.map .lh { stroke: var(--ochre); stroke-width: 5; }
.map text { font: 600 13px var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.map .city { font: 800 22px var(--sign); letter-spacing: .02em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1.4rem; margin-top: 1.6rem; }
.fact b { display: block; font: 700 clamp(1.6rem, 1rem + 1.3vw, 2.4rem)/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.fact span { display: block; font-size: .8rem; line-height: 1.35; margin-top: .3rem; }
.key { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .8rem; margin-top: .6rem; }
.key i { display: inline-block; width: 1.6rem; height: 4px; vertical-align: middle; margin-right: .4rem; }

/* ---------- 5 today */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { border-top: 1.5px solid var(--ink); padding-top: .7rem; }
.tile p { font-size: .84rem; color: #3a3328; margin: .35rem 0 0; }
.step b { font: 600 .72rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.split { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.split > p { max-width: 50ch; margin: 0; }

/* ---------- 6 architecture */
.tabs { display: inline-flex; border: 1.5px solid var(--ink); margin: 1.4rem 0 0; flex-wrap: wrap; }
.tabs button { border: 0; background: none; min-height: 44px; padding: .6em 1.1em; font-weight: 700; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.arch { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(1.5rem, 3vw, 4rem); align-items: center; margin-top: clamp(1rem, 3vh, 2rem); }
.diagram { width: 100%; max-height: 36vh; }
.diagram line { stroke: var(--ink); stroke-width: 1.2; transition: stroke-dasharray .4s; }
.diagram rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; transition: all .45s var(--ease-out); }
.diagram rect.strong { fill: var(--ink); }
.diagram .hub { fill: var(--accent); stroke: var(--ink); }
.diagram text { font: 500 11px var(--text); fill: var(--ink); }
.mocks { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.hwsign { grid-row: span 2; background: var(--brown); color: #f4efe6; border: 4px solid #f4efe6; outline: 3px solid var(--brown);
  padding: 1.4rem 1.4rem; display: flex; flex-direction: column; justify-content: center; min-height: 13rem; border-radius: 10px; }
.hwsign .a { font: 800 clamp(1.4rem, .8rem + 1.6vw, 2.4rem)/1.02 var(--sign); }
.hwsign .b { font: 600 clamp(.9rem, .7rem + .4vw, 1.1rem)/1.2 var(--text); margin-top: .6rem; opacity: .92; }
.ticket { background: var(--paper); border: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr 5.5rem; min-height: 6.4rem; }
.ticket > div { padding: .8rem 1rem; }
.ticket .a { font: 800 1.05rem/1.1 var(--sign); text-transform: uppercase; }
.ticket .b { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.ticket .stub { border-left: 1.5px dashed var(--ink); display: flex; align-items: center; justify-content: center; font: 700 .72rem/1.2 var(--text); text-align: center; }
.webbar { background: var(--paper); border: 1.5px solid var(--ink); }
.webbar .chrome { height: 1.3rem; border-bottom: 1.5px solid var(--ink); display: flex; gap: .3rem; align-items: center; padding: 0 .5rem; }
.webbar .chrome i { width: .45rem; height: .45rem; border-radius: 50%; border: 1.2px solid var(--ink); }
.webbar .nav { padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.webbar .a { font: 800 .95rem/1.1 var(--sign); }
.webbar .b { font-size: .74rem; color: var(--muted); }
.webbar .go { font: 700 .72rem/1 var(--text); background: var(--accent); color: var(--paper); padding: .5em .8em; white-space: nowrap; }
.swap { transition: opacity .2s var(--ease-out); }
.swap.out { opacity: 0; }
.model-text { margin: 0 0 1rem; max-width: 52ch; min-height: 5.6em; }
.model-text b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: block; margin-bottom: .2rem; }

/* ---------- 7 territories */
.terr { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(1rem, 3vh, 2rem); }
.tcard { background: var(--paper); padding: 1.3rem 1.3rem 1.2rem; border-top: 4px solid var(--c1); display: flex; flex-direction: column; }
.tcard .spec { font-size: clamp(2.4rem, 1.4rem + 2.2vw, 3.8rem); line-height: 1; margin: .5rem 0 .8rem; color: var(--c4); }
.sw { display: flex; gap: 4px; margin-bottom: .8rem; }
.sw span { flex: 1; height: 1.4rem; border: 1px solid var(--line); }
.tcard p { font-size: .86rem; color: #3a3328; }
.tsign { margin-top: auto; padding: .8rem 1rem; border-radius: 7px; border: 3px solid currentColor; outline: 2px solid var(--bg2); }
.tsign .a { font-size: 1.15rem; line-height: 1.1; }
.tsign .b { font: 600 .74rem/1.2 var(--text); margin-top: .3rem; opacity: .9; }

/* ---------- 8 method */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: clamp(1rem, 3vh, 2rem); }
.phase { border-top: 1.5px solid var(--ink); padding-top: .7rem; }
.phase .when { font: 600 .72rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phase h3 { margin: .35rem 0 .5rem; min-height: 2.4em; font-size: 1.02rem; }
.phase ul { margin: 0 0 .7rem; padding-left: 1rem; font-size: .8rem; color: #3a3328; }
.phase li { margin-bottom: .2rem; }
.ms { display: inline-block; background: var(--ochre); color: var(--ink); font: 700 .72rem/1 var(--text); padding: .45em .6em; }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: clamp(1rem, 3.5vh, 2.2rem); background: var(--surface); padding: 1rem 1.2rem; }
.nums b { display: block; font: 700 1.9rem/1 var(--display); letter-spacing: -.02em; }
.nums span { font-size: .78rem; color: var(--muted); }

/* ---------- 9 plan */
.gantt { width: 100%; border-collapse: collapse; margin-top: clamp(1rem, 3vh, 1.8rem); font-size: .8rem; table-layout: fixed; }
.gantt th { font: 600 .7rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 0 .5rem; text-align: center; }
.gantt th:first-child { text-align: left; width: 34%; }
.gantt td { padding: 0; height: 1.75rem; border-top: 1px solid var(--line); position: relative; }
.gantt td:first-child { padding-right: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt td.sub:first-child { padding-left: 1.2rem; color: var(--muted); }
.gantt .bar-x { position: absolute; top: .4rem; bottom: .4rem; left: 0; right: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease-expo); }
.gantt .bar-x.t3 { background: var(--sage); }
.gantt .dia { position: absolute; left: 50%; top: 50%; width: .8rem; height: .8rem; background: var(--accent); transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform .5s var(--ease-out); }
.on .gantt .bar-x { transform: scaleX(1); }
.on .gantt .dia { transform: translate(-50%, -50%) rotate(45deg) scale(1); }

/* ---------- 10 deliverables */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; margin-top: 1.4rem; }
.dl div { border-top: 1px solid var(--line); padding: .55rem 0; display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; font-size: .88rem; }
.dl div::before { content: counter(d, decimal-leading-zero); counter-increment: d; font: 600 .72rem/1.6 var(--text); color: var(--accent); }
.dl { counter-reset: d; }
.dl b { display: block; }
.dl span { color: var(--muted); font-size: .8rem; }

/* ---------- 11 galleries + 12 room */
.t3 { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 1.2rem; margin-top: clamp(1rem, 3vh, 2rem); }
.room { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); height: 100%; align-items: center; }
.stage { position: relative; height: min(70vh, 40rem); background: #e7d6b2 url(img/gallery-render.jpg) center/cover; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.stage .tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); padding: .4rem .7rem; font: 600 .74rem/1.2 var(--text); }
.stage .load { position: absolute; right: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .4rem .7rem; font: 600 .74rem/1 var(--text); }
.views { display: grid; gap: .5rem; margin: 1.2rem 0; }
.views button { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; align-items: center; text-align: left; border: 1.5px solid var(--ink);
  background: none; min-height: 48px; padding: .5rem .8rem; font-size: .88rem; }
.views button b { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ochre); align-items: center; justify-content: center; font-size: .8rem; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.views button[aria-pressed="true"] b { background: var(--accent); color: var(--paper); }

/* ---------- 13 team */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; margin-top: 1rem; }
.role { border-top: 1.5px solid var(--ink); padding-top: .6rem; }
.role p { font-size: .84rem; color: #3a3328; margin: .3rem 0 0; }

/* ---------- 14 work */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.5vw, 1.6rem); margin-top: clamp(1rem, 3vh, 1.8rem); }
.case { display: flex; flex-direction: column; text-decoration: none; }
.case .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.case .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-expo); }
.case:hover .pic img { transform: scale(1.04); }
.case h3 { margin: .8rem 0 .2rem; }
.case .meta { font: 600 .7rem/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case p { font-size: .84rem; color: #3a3328; margin: .5rem 0; }
.case .go { margin-top: auto; font-weight: 700; font-size: .86rem; text-decoration: underline; text-underline-offset: .2em; }

/* device mock (iRobo card and case) */
.pic.device { position: relative; background: #f39a1e; display: flex; align-items: center; justify-content: flex-start; padding: 7% 0 7% 6%; }
.browser { position: relative; display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); }
.browser > i { display: block; height: 10px; background: #f4efe6; border-bottom: 1px solid rgba(0, 0, 0, .08);
  background-image: radial-gradient(circle, #e05c3a 2.2px, transparent 2.6px), radial-gradient(circle, #e9b42c 2.2px, transparent 2.6px), radial-gradient(circle, #6f8f62 2.2px, transparent 2.6px);
  background-size: 9px 10px; background-repeat: no-repeat; background-position: 6px 0, 15px 0, 24px 0; }
.browser img, .browser video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.pic.device .browser { width: 80%; }
.pic.device .phone { position: absolute; right: 5%; bottom: 7%; width: 24%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top;
  border: 3px solid #1e2a3a; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); background: #fff; }
.case .pic.device img { transition: none; }
.case .pic.device .browser { transition: transform .5s var(--ease-expo); }
.case:hover .pic.device .browser { transform: translateY(-3px); }

/* case slides */
.cs { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 3.5vw, 4rem); align-items: center; }
.cs-media { background: var(--field); padding: clamp(1rem, 2.4vw, 2.2rem); height: min(68vh, 44rem); display: grid; place-items: center; overflow: hidden; }
.cs-media.trio { grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(.6rem, 1.2vw, 1.2rem); align-items: center; }
.cs-media.trio > * { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; max-height: 100%; border-radius: 6px; }
.cs-media.trio > :not(video) { transform: scale(.92); opacity: .95; }
.cs-media.devices { position: relative; place-items: center start; }
.cs-media.devices .browser.big { width: 82%; }
.cs-media.devices .phone { position: absolute; width: 19%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border: 4px solid #1e2a3a;
  border-radius: 16px; background: #fff; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55); }
.cs-media.devices .p1 { right: 13%; bottom: 8%; transform: rotate(-3deg); }
.cs-media.devices .p2 { right: 3%; bottom: 14%; transform: rotate(4deg); }
.cs-text h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); max-width: 16ch; }
.cs-text .meta { font: 600 .72rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .7rem 0 1.1rem; }
.cs-text p { font-size: .93rem; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: .8rem 0; margin: 1.1rem 0 1.2rem; }
.stats b { display: block; font: 700 clamp(1.5rem, 1rem + 1vw, 2.2rem)/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.stats span { font-size: .76rem; color: var(--muted); }

/* studio reel */
.reel { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.5vw, 1.6rem); margin-top: clamp(1.2rem, 4vh, 2.4rem); }
.reel figure { margin: 0; }
.reel .screen { display: block; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; border-radius: 6px; box-shadow: 0 16px 34px -22px rgba(30, 42, 58, .6); }
.reel .screen video, .reel .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figure:nth-child(odd) { transform: translateY(1.2rem); }
.reel figcaption { font-size: .82rem; margin-top: .7rem; color: var(--muted); }
.reel figcaption b { color: var(--ink); }

/* ---------- 15 close */
.close .two { grid-template-columns: 1fr 1.15fr; }
.big { font-size: clamp(2.6rem, 1rem + 5vw, 6rem); }
.bigpc { background: var(--paper); padding: 10px 10px 0; transform: rotate(2.5deg); box-shadow: 0 18px 40px -24px rgba(30, 42, 58, .55); }
.bigpc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bigpc p { font: 800 .9rem/1 var(--sign); text-transform: uppercase; padding: .9rem .3rem 1rem; margin: 0; }
.bigpc p span { font: 500 .78rem var(--text); text-transform: none; color: var(--muted); margin-left: .5rem; }
.contact { display: grid; grid-template-columns: repeat(3, auto); gap: 1.6rem; margin-top: 2rem; font-size: .9rem; }
.contact span { display: block; font: 600 .7rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.legal { font-size: .74rem; color: var(--muted); margin-top: 1.6rem; max-width: 70ch; }

/* ---------- intro motion (first visit only, JS adds .intro) */
.intro .L { animation: drop .9s var(--ease-expo) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.intro .greet { animation: rise .8s var(--ease-expo) both 60ms; }
.intro .stamp { animation: thunk .5s var(--ease-out) both 760ms; }
.intro .cover .road { animation: draw 1s var(--ease-io) both 300ms; }
.intro .cover-foot { animation: rise .8s var(--ease-expo) both 620ms; }
@keyframes drop { from { transform: translateY(-38%) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes thunk { from { transform: rotate(-4deg) scale(1.6); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.on .map .rt { animation: route 1.6s var(--ease-io) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes route { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.on .map .r2 { animation-name: fadein; animation-duration: .9s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.on .map .hubdot { animation: pop .5s var(--ease-out) both 1.5s; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.map .hubdot { transform-box: fill-box; transform-origin: center; }

/* ---------- responsive */
@media (max-width: 899px) {
  .two, .roads, .arch, .room, .close .two, .cover-foot, .roles, .dl, .terr { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .places { grid-template-columns: 1fr; }
  .grid3, .facts { grid-template-columns: 1fr 1fr; }
  .grid6, .phases, .nums { grid-template-columns: 1fr 1fr; }
  .work, .t3, .cs { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 1fr 1fr; } .reel figure:nth-child(odd) { transform: none; }
  .cs-media { height: auto; aspect-ratio: 4 / 4.4; }
  .cover-act, .legend { justify-content: flex-start; text-align: left; }
  .stamp { top: 4.6rem; padding: .6rem .7rem; font-size: .75rem; }
  .gantt { font-size: .7rem; } .gantt th:first-child { width: 46%; }
  .gantt .m3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .gantt .m1 { display: inline; }
  .mocks { grid-template-columns: 1fr; } .hwsign { grid-row: auto; min-height: 9rem; }
  .stage { height: 62vh; }
  .contact { grid-template-columns: 1fr; gap: 1rem; }
  .brand span { display: none; }
}
@media (min-width: 900px) and (max-height: 820px) {
  h2 { font-size: clamp(1.9rem, .8rem + 2.7vw, 3.4rem); }
  .kick { margin-bottom: .7rem; }
  .gantt td { height: 1.5rem; }
  .tabs { margin-top: .9rem; }
  .arch { margin-top: .8rem; }
  .diagram { max-height: 40vh; }
  .note { margin-top: .6rem; }
  .case h3 { margin-top: .6rem; }
  .case p { margin: .3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .deck .slide, .deck .slide.prev { transform: none; }
}
@media print { .bar, .dots { display: none; } }
