/* Final page: reuses the variant styles it borrows from, then adds the new pieces. */
@import url("theatre.css");
@import url("logbook.css");
@import url("tank.css");

/* own products — one-line meta above the title */
.act-n { text-transform: uppercase; letter-spacing: .08em; }
.act-links a:first-child { background: var(--fg); color: rgb(var(--bg-c)); }

/* Built for me — list on the left, the selected tool on the right */
.bfm { display: grid; gap: 14px; }
@media (min-width: 960px) { .bfm { grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: stretch; } }
.bfm-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; align-content: start; border-radius: 18px; background: rgba(var(--bg-c),.78); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bfm-item { width: 100%; display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s; }
.bfm-item b { font: 600 18px var(--font-display); letter-spacing: -.01em; }
.bfm-item small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.bfm-item small em { font-style: normal; color: #ff8a75; font-weight: 600; margin-right: 4px; }
.bfm-item:hover { background: rgba(var(--ink-c),.035); }
.bfm-item[aria-selected="true"] { background: rgba(var(--ink-c),.06); border-color: rgba(var(--ink-c),.16); }
.bfm-item[aria-selected="true"] b { color: var(--fg-hi); }
.bfm-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bfm-views { position: relative; min-height: 420px; border-radius: 18px; overflow: hidden; background: rgba(var(--bg-c),.82); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bfm-view { display: none; height: 100%; }
.bfm-view.on { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: bfmIn .4s cubic-bezier(.2,.7,.2,1); }
@keyframes bfmIn { from { opacity: 0; transform: translateY(8px); } }
.bfm-fig { min-height: 260px; background: rgb(var(--surf-c)); border-bottom: 1px solid var(--line); overflow: hidden; }
.bfm-fig figure { margin: 0; height: 100%; }
.bfm-fig figure img { display: block; width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: var(--pos, 50% 50%); cursor: zoom-in; }
.bfm-fig .tool-illus { height: 100%; min-height: 260px; grid-template-columns: minmax(0, 220px) minmax(0, 220px); justify-content: center; }
.bfm-text { padding: 18px 20px 22px; display: grid; gap: 8px; }
.bfm-text h3 { margin: 0; font: 400 clamp(24px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: -.01em; }
.bfm-text p { margin: 0; color: var(--fg); font-size: 15.5px; line-height: 1.6; max-width: 68ch; }
.bfm-text small { font: 500 12px var(--font-mono); color: var(--muted); }
@media (max-width: 959px) { .bfm-views { min-height: 0; } .bfm-fig { min-height: 200px; } }

/* Teams I've joined — frosted-glass hover */
.wrows { gap: 2px; }
.wrow { position: relative; border-radius: 14px; border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); transition: background .3s, box-shadow .3s, padding .3s, backdrop-filter .3s; }
.wrow:hover, .wrow:focus-visible { padding-left: 14px; background: rgba(var(--bg-c),.42); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px rgba(var(--ink-c),.12), inset 0 1px 0 rgba(var(--ink-c),.08), 0 18px 40px -24px rgba(0,0,0,.8); outline: none; }
.wrow:hover .wr-img img { transform: scale(1.06); }
.wr-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* About — numbers on a single line */
.nums--line { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nums--line div { padding: 12px; }
.nums--line b { font-size: clamp(20px, 1.9vw, 27px); white-space: nowrap; }
.nums--line span { font-size: 12px; }
.readme-main > .big { margin-top: 0; }
.readme-body { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .readme-body { grid-template-columns: 260px minmax(0, 1fr); } }
.readme-main, .readme-side { min-width: 0; }
@media (max-width: 959px) {
  .bfm-views { display: none; }
  .bfm-list { padding: 6px; }
  .bfm-list .bfm-view.on { display: block; height: auto; margin: 6px 0 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: rgb(var(--surf-c)); }
  .bfm-list .bfm-fig { height: 200px; min-height: 0; }
  .bfm-list .bfm-fig figure, .bfm-list .bfm-fig figure img { height: 200px; max-height: none; }
  .bfm-list .bfm-fig .tool-illus { min-height: 0; height: 200px; grid-template-columns: 1fr 1fr; padding: 12px; }
  .bfm-list .bfm-text { padding: 14px 14px 16px; }
  .bfm-list .bfm-text h3 { display: none; }
}

/* ───────── Obsidian glass: hairline edges, top sheen, soft depth — the koi stay visible behind ───────── */
:root {
  --g-bg: linear-gradient(180deg, rgba(var(--ink-c),.045), rgba(var(--ink-c),.012) 38%, rgba(var(--ink-c),0)), rgba(var(--bg-c),.36);
  --g-blur: blur(14px) saturate(150%);
  --g-edge: rgba(var(--ink-c),.055);
  --g-shadow: inset 0 1px 0 rgba(var(--ink-c),.06), 0 30px 70px -45px rgba(0,0,0,.95);
  --g-fill: rgba(var(--ink-c),.03);
}
.mf, .ddc, .dec, .loop li, .bfm-list, .bfm-views, .readme, .act .blog, .watch, .ans, .ask, .figma-note,
.deck-cards .ddc, .rail button, .deck-nav button, .tank-toggle, .act-links a:not(:first-child), .chap-links a:not(:first-child) {
  background: var(--g-bg) !important;
  border: 1px solid var(--g-edge) !important;
  box-shadow: var(--g-shadow) !important;
  backdrop-filter: var(--g-blur) !important; -webkit-backdrop-filter: var(--g-blur) !important;
}
.ask:focus-within { border-color: rgba(var(--ink-c),.14) !important; }
.figma-note { border-color: rgba(162,89,255,.18) !important; }

/* media frames: glass chrome, the phone floats over the tank */
.mf-top { background: transparent; border-bottom-color: rgba(var(--ink-c),.04); }
.mf-tabs { background: rgba(var(--ink-c),.035); }
.mf [data-pane="watch"] { background: transparent; }
.mf-stage { background: transparent; }
.mf-shots { background: rgba(var(--bg-c),.55); }
.mf-play-cta::after { background: radial-gradient(closest-side, rgba(var(--bg-c),.6), rgba(var(--bg-c),.1)); }

/* inner pieces: no borders, just quiet fills */
.ddc-opts li { border: 0; background: var(--g-fill); }
.ddc-opts li.is-chosen { border: 0; background: rgba(var(--acc-c),.07); box-shadow: inset 0 0 0 1px rgba(var(--acc-c),.22); }
.ddc-fig { border: 0; background: rgba(var(--bg-c),.5); }
.dec-agent { border: 0 !important; background: rgba(255,90,70,.06) !important; }
.dec-me { border: 0 !important; background: rgba(var(--acc-c),.06) !important; box-shadow: inset 0 0 0 1px rgba(var(--acc-c),.18); }
.nums div { border: 0; background: var(--g-fill); }
.stamp { border: 0; background: rgba(var(--acc-c),.06); }
.watch { border-color: rgba(var(--acc-c),.12) !important; }
.mf-chaps button, .mf-vtoggle { border: 0; background: var(--g-fill); }
.ans-card { border: 0; background: var(--g-fill); }
.ans-card:hover { background: rgba(var(--ink-c),.06); }
.ans-foot, .readme-tab, .bfm-fig { border-color: rgba(var(--ink-c),.04); }
.readme-tab { background: rgba(var(--ink-c),.02); }
.bfm-views .bfm-fig { background: rgba(var(--bg-c),.45); }
.bfm-item[aria-selected="true"] { border-color: transparent; background: rgba(var(--ink-c),.06); box-shadow: inset 0 1px 0 rgba(var(--ink-c),.05); }
@media (max-width: 959px) { .bfm-list .bfm-view.on { border: 0; background: rgba(var(--bg-c),.5); } }

/* frosted cards stacked in the judgment deck: hide the ones not shown so they don't ghost through */
.deck-cards .ddc { transition: opacity .3s, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s .3s; }
.deck-cards .ddc:not(.on) { visibility: hidden; }
.deck-cards .ddc.on { visibility: visible; transition-delay: 0s; }
/* stopwatch card keeps its lime identity, on glass */
.watch { background: linear-gradient(180deg, rgba(var(--acc-c),.07), rgba(var(--acc-c),.025)), rgba(var(--bg-c),.4) !important; border-color: rgba(var(--acc-c),.3) !important; box-shadow: inset 0 1px 0 rgba(var(--acc-c),.08), 0 30px 70px -45px rgba(0,0,0,.95) !important; align-items: center; }
/* the Figma step keeps its purple edge and glow, on glass */
.loop li.is-figma { border-color: rgba(162,89,255,.55) !important; box-shadow: 0 0 0 1px rgba(162,89,255,.25), 0 20px 50px -30px rgba(162,89,255,.6), inset 0 1px 0 rgba(var(--ink-c),.06) !important; }
/* Teams rows: no edge at rest; the frosted panel only appears on hover */
.wrow { border: 0; box-shadow: none; }

/* featured — own products in the hero */
.hero { min-height: auto; padding-bottom: 48px; }
.featured { width: min(1080px, 100%); margin-top: 34px; display: grid; gap: 12px; justify-items: center; }
.featured-k { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-shadow: 0 0 10px rgb(var(--bg-c)); }
.featured-row { width: 100%; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .featured-row { grid-template-columns: 1fr; } }
.feat { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; text-decoration: none; text-align: left;
  background: var(--g-bg); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, background .25s; }
.feat:hover, .feat:focus-visible { transform: translateY(-3px); border-color: rgba(var(--ink-c),.14); outline: none; }
.feat-img { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--p-accent); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.feat:hover .feat-img img { transform: scale(1.06); }
.feat-t { display: grid; gap: 2px; min-width: 0; }
.feat-t b { font: 600 17px var(--font-display); letter-spacing: -.01em; }
.feat-t small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ink-c),.06); color: var(--muted); font-size: 13px; transition: background .25s, color .25s; }
.feat:hover .feat-go { background: var(--fg); color: rgb(var(--bg-c)); }
/* tighter hero so the featured row shows on first load */
.hero { padding-top: clamp(24px, 6vh, 64px); gap: 16px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 78px); }
.hero .avatar { width: 56px; height: 56px; }
.ask-group { margin-top: 8px; gap: 16px; }
.featured { margin-top: 22px; }

/* hero back to a full first screen (the featured row moved into the section) */
.hero { min-height: calc(100vh - 70px); padding-bottom: 72px; }

/* own product vs client work */
.ptag { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.ptag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ptag--own { color: rgb(var(--acc-c)); background: rgba(var(--acc-c),.08); }
.ptag--client { color: rgb(var(--cli-c)); background: rgba(var(--cli-c),.08); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -12px 0 26px; color: var(--muted); font-size: 13px; text-shadow: 0 0 10px rgb(var(--bg-c)); }
.legend .ptag--client { margin-left: 10px; }
.act-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.act-facts { margin: 0; display: grid; gap: 0; border-radius: 14px; overflow: hidden; background: var(--g-bg); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.act-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 16px; }
.act-facts div + div { border-top: 1px solid rgba(var(--ink-c),.04); }
.act-facts dt { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.act-facts dd { margin: 0; color: var(--fg); font-size: 14.5px; line-height: 1.45; }
.rail button.is-client i { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(var(--cli-c)); }
.rail button.is-own i { background: rgb(var(--acc-c)); box-shadow: 0 0 6px rgba(var(--acc-c),.6); }

/* ───────── simplified page ───────── */
/* hero: two clear actions + availability */
.hero-cta { display: grid; justify-items: center; gap: 14px; margin-top: 10px; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-btns .btn { font: 600 15px var(--font-body); padding: 13px 20px; border-radius: 12px; }
.hero-btns .btn:not(.primary) { background: var(--g-bg); border: 1px solid rgba(var(--ink-c),.1); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.hero-status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--font-mono); color: var(--muted); text-shadow: 0 0 10px rgb(var(--bg-c)); }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 4px rgba(47,191,91,.16); }

/* featured: the build log is there for the curious, folded by default */
.act-log { border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-edge); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.act-log summary { cursor: pointer; list-style: none; padding: 12px 16px; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; }
.act-log summary::after { content: "+"; font-size: 15px; line-height: 1; }
.act-log[open] summary::after { content: "−"; }
.act-log summary:hover { color: var(--fg); }
.act-log .blog { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 16px 10px; }
.act-pitch { max-width: 52ch; }

/* process: one compact strip */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-radius: 18px; overflow: hidden; background: var(--g-bg); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); } }
.flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 20px; }
@media (max-width: 899px) { .flow li { border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-edge); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); } }
@media (min-width: 900px) { .flow li + li { box-shadow: inset 1px 0 0 rgba(var(--ink-c),.05); } .flow li:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 18px; z-index: 1; font: 500 13px var(--font-mono); color: var(--muted); } }
.flow .fn { font: 500 11px var(--font-mono); color: var(--muted); }
.flow b { font: 600 17px var(--font-display); letter-spacing: -.01em; }
.flow .fd { font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
.flow li.is-figma .fn::after { content: " · Figma"; color: var(--figma); }

/* hierarchy: one rhythm for every section */
.sec { padding-top: clamp(88px, 11vw, 140px); }
.shead { margin-bottom: 28px; gap: 8px; }
.shead h2 { font-size: clamp(36px, 4.6vw, 60px); }
.shead p { font-size: 16px; color: var(--fg2); }
.act h3 { font-size: clamp(42px, 4.4vw, 64px); }
.readme-main h3 { margin-top: 28px; }
@media (max-width: 1199px) { .nums--line { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (max-width: 520px) { .nums--line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero legibility: koi fade out under the copy, the line itself is brighter */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: min(1100px, 120vw); height: 78%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--bg-c),.92) 0%, rgba(var(--bg-c),.82) 45%, rgba(var(--bg-c),.45) 75%, rgba(var(--bg-c),0) 100%); pointer-events: none; }
.hero .lede { color: var(--fg); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; max-width: 52ch; }
.hero .greet, .hero-status { color: var(--fg2); }

/* ───────── Featured work — shared pieces ───────── */
.fw-meta { display: flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); color: var(--muted); }
.fw-key { display: grid; gap: 2px; }
.fw-key b { font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--font-mono); color: rgb(var(--acc-c)); letter-spacing: -.02em; }
.fw-key.is-client b { font: 500 16px/1.3 var(--font-body); color: var(--fg); letter-spacing: 0; }
.fw-key span { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fw-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-cta, .fw-live { text-decoration: none; font: 600 14px var(--font-body); padding: 10px 14px; border-radius: 10px; }
.fw-cta { background: var(--fg); color: rgb(var(--bg-c)); }
.fw-live { color: var(--fg); background: rgba(var(--ink-c),.05); }
.fw-cta:hover { background: var(--fg-hi); } .fw-live:hover { background: rgba(var(--ink-c),.1); }
.fw-img { border-radius: 14px; overflow: hidden; background: rgb(var(--surf-c)); aspect-ratio: 16/10; }
.fw-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.fw-phone { display: grid; place-items: center; height: 100%; }
.fw-phone .iphone { width: min(220px, 60%); margin: 0 auto; }
.fw-phone video { width: 100%; display: block; }



/* ───────── C · Grid — everything visible at a glance ───────── */
.fwG { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fwG-card { grid-column: span 2; display: grid; grid-template-rows: auto 1fr; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--g-bg); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s; }
.fwG-card.is-client { grid-column: span 3; }
.fwG-card:hover { transform: translateY(-4px); border-color: rgba(var(--ink-c),.14); }
.fwG-card .fw-img { border-radius: 0; }
.fwG-card:hover .fw-img img { transform: scale(1.04); }
.fwG-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 22px; }
.fwG-body h3 { margin: 0; font: 400 34px/1 var(--serif); letter-spacing: -.01em; }
.fwG-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg2); }
.fwG-body .fw-key b { font-size: 22px; }
@media (max-width: 899px) { .fwG { grid-template-columns: 1fr; } .fwG-card, .fwG-card.is-client { grid-column: auto; } }
.fwG-body .fw-key.is-client b { font: 500 15px/1.35 var(--font-body); color: var(--fg); letter-spacing: 0; }
.hero::before { width: min(1100px, 100%); } .hero { overflow-x: clip; }
/* hero copy on frosted glass: lighter tint, koi blur softly behind the words, edges fade out */
.hero::before {
  background: rgba(var(--bg-c),.32);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%);
}
.hero::before { backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%); }

/* two views: Home / About */
.view[hidden] { display: none !important; }
.links a[aria-current] { color: var(--fg); }
.links a[aria-current]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: currentColor; opacity: .5; }
.about-top { padding-top: clamp(48px, 8vw, 96px); }
.about-top .shead h2 { font-size: clamp(44px, 6vw, 84px); }
.is-about #about { padding-top: 0; }
/* teaser at the end of Home */
.teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 22px; align-items: center; padding: 22px 26px; border-radius: 20px; text-decoration: none;
  background: var(--g-bg); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1); }
.teaser:hover { border-color: rgba(var(--ink-c),.16); transform: translateY(-2px); }
.teaser-k { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.teaser b { font: 400 clamp(22px, 2.4vw, 32px)/1.15 var(--serif); }
.teaser-go { font: 600 14px var(--font-body); padding: 10px 14px; border-radius: 10px; background: var(--fg); color: rgb(var(--bg-c)); white-space: nowrap; }
@media (max-width: 640px) { .teaser { grid-template-columns: 1fr; } .teaser-go { justify-self: start; } }
.hero[hidden] { display: none !important; }

/* featured: two labelled groups, three cards each, discipline tags */
.fw-groups { display: grid; gap: clamp(36px, 5vw, 56px); }
.fw-group { display: grid; gap: 16px; }
.fw-gh { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-weight: 400; }
.fw-gh small { font-size: 14px; color: var(--muted); text-shadow: 0 0 10px rgb(var(--bg-c)); }
.fw-group .fwG-card, .fw-group .fwG-card.is-client { grid-column: span 2; }
.fw-meta span { font: 500 12px var(--font-mono); color: var(--muted); }
.skills-t { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skills-t li { font: 500 11.5px var(--font-mono); color: var(--fg); padding: 4px 8px; border-radius: 6px; background: rgba(var(--ink-c),.06); }
.fwG-card.is-client .fw-key b { font: 500 14.5px/1.35 var(--font-body); color: var(--fg); }


/* ───────── Teams — B · Timeline ───────── */
.twT { list-style: none; margin: 0; padding: 0; position: relative; }
.twT-row { position: relative; display: grid; grid-template-columns: 92px 22px minmax(0, 1fr); align-items: center; gap: 0 14px; padding: 14px 10px; border-radius: 14px; text-decoration: none; transition: background .25s; }
.twT li:not(:last-child) .twT-row::after { content: ""; position: absolute; left: calc(10px + 92px + 14px + 10px); top: 50%; height: 100%; width: 1px; background: rgba(var(--ink-c),.12); }
.twT-row:hover { background: rgba(var(--bg-c),.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.twT-y { font: 500 13px var(--font-mono); color: var(--muted); text-align: right; }
.twT-dot { position: relative; z-index: 1; justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--bg-c)); border: 1px solid rgba(var(--ink-c),.4); box-sizing: border-box; }
.twT-row:hover .twT-dot { background: rgb(var(--acc-c)); border-color: rgb(var(--acc-c)); box-shadow: 0 0 10px rgb(var(--acc-c)); }
.twT-t { display: grid; gap: 2px; } .twT-t b { font: 400 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); } .twT-t small { color: var(--muted); font-size: 13.5px; }
.twT-peek { position: fixed; z-index: 30; margin: 0; width: 320px; pointer-events: none; opacity: 0; transform: translateY(-50%) scale(.95); transition: opacity .2s, transform .3s; }
.twT-peek.on { opacity: 1; transform: translateY(-50%); }
.twT-peek img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -20px #000; }
@media (hover: none), (max-width: 900px) { .twT-peek { display: none; } .twT-row { grid-template-columns: 64px 18px minmax(0, 1fr); } .twT li:not(:last-child) .twT-row::after { left: calc(10px + 64px + 14px + 8px); } }

/* timeline: line and dots stay above the hover background */
.twT li:not(:last-child) .twT-row::after { z-index: 2; }
.twT-dot { z-index: 3; }
/* hero: a little more air between the pieces */
.hero { gap: 26px; }
.hero .greet { margin-top: 6px; }
.hero h1 { margin: 6px 0; }
.hero-cta { margin-top: 18px; }
/* hero: intro centred, actions pinned to the bottom of the first screen */
.hero { display: flex; flex-direction: column; align-items: center; min-height: calc(100svh - 70px); padding-bottom: clamp(28px, 6vh, 56px); }
.hero > :first-child { margin-top: auto; }
.hero-cta { margin-top: auto; padding-top: 32px; }
/* process strip: dividers only, no arrows */
.flow li::after { display: none !important; }
/* Built for me: show whole images, centred */
.bfm-fig figure img { object-fit: contain; object-position: 50% 50%; background: rgb(var(--surf-c)); }

/* featured groups: unmistakable section headers + per-card badges */
.fw-group--client { --gcol: rgb(var(--cli-c)); --gbg: rgba(var(--cli-c),.12); }
.fw-group--own { --gcol: rgb(var(--acc-c)); --gbg: rgba(var(--acc-c),.12); }
.fw-gh { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 14px; padding: 0 0 14px; border-bottom: 1px solid var(--gcol); }
.fw-gi { font: 500 12px var(--font-mono); color: var(--gcol); letter-spacing: .08em; }
.fw-gh h3 { margin: 0; font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--serif); color: var(--fg); text-shadow: 0 0 14px rgb(var(--bg-c)); }
.fw-gc { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gcol); padding: 6px 10px; border-radius: 999px; background: var(--gbg); white-space: nowrap; }
.fw-gh p { grid-column: 2 / -1; margin: 0; font-size: 15px; color: var(--muted); text-shadow: 0 0 10px rgb(var(--bg-c)); }
.fw-img { position: relative; }
.fw-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; padding: 6px 9px; border-radius: 8px; background: rgba(var(--bg-c),.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--gcol); }
.fw-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 640px) { .fw-gh { grid-template-columns: auto 1fr; } .fw-gc { grid-column: 2; justify-self: start; } .fw-gh p { grid-column: 1 / -1; } }

/* featured cards: no border, a soft gradient that fades out toward the bottom */
.fwG-card { border: 0; box-shadow: 0 30px 70px -45px rgba(0,0,0,.9); background: linear-gradient(180deg, rgba(var(--ink-c),.07) 0%, rgba(var(--ink-c),.025) 45%, rgba(var(--ink-c),0) 100%), rgba(var(--bg-c),.3); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s; }
.fwG-card:hover { background: linear-gradient(180deg, rgba(var(--ink-c),.1) 0%, rgba(var(--ink-c),.04) 50%, rgba(var(--ink-c),.005) 100%), rgba(var(--bg-c),.34); }

/* lighter group headers + gradient rising from the bottom */
.fw-gh { grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 4px 12px; padding-bottom: 10px; }
.fw-gh h3 { font: 400 clamp(22px, 2vw, 26px)/1.1 var(--serif); }
.fw-gh p { grid-column: auto; font-size: 13.5px; }
.fw-gc { padding: 4px 9px; font-size: 11px; }
@media (max-width: 640px) { .fw-gh { grid-template-columns: auto 1fr auto; } .fw-gh p { grid-column: 2 / -1; grid-row: 2; } .fw-gc { grid-column: 3; grid-row: 1; } }
.fwG-card { background: linear-gradient(0deg, rgba(var(--ink-c),.07) 0%, rgba(var(--ink-c),.025) 45%, rgba(var(--ink-c),0) 100%), rgba(var(--bg-c),.3); }
.fwG-card:hover { background: linear-gradient(0deg, rgba(var(--ink-c),.1) 0%, rgba(var(--ink-c),.04) 50%, rgba(var(--ink-c),.005) 100%), rgba(var(--bg-c),.34); }
.fw-gc { justify-self: start; } .fw-gh p { justify-self: end; text-align: right; }
@media (max-width: 640px) { .fw-gc { justify-self: end; } .fw-gh p { justify-self: start; text-align: left; } }

/* group header: one quiet line, no pill, no divider */
.fw-gh { grid-template-columns: auto auto 1fr; border-bottom: 0; padding-bottom: 0; }
.fw-gh p { grid-column: 3; }
@media (max-width: 640px) { .fw-gh { grid-template-columns: auto 1fr; } .fw-gh p { grid-column: 1 / -1; grid-row: 2; } }

/* card: year left, discipline tags right; label above value */
.fw-meta { justify-content: space-between; align-items: center; gap: 12px; }
.fw-meta .skills-t { justify-content: flex-end; }
.fw-key { gap: 3px; margin-top: 2px; }


/* one accent per group: the 01/02 index and the card's key value share the group colour */
.fw-group .fwG-card .fw-key b, .fw-group .fwG-card.is-client .fw-key b { color: var(--gcol); }
.fwG-body h3 { font-size: 28px; line-height: 1.05; }

/* own-work cards: founder · model · live */
.fw-biz { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; align-items: center; gap: 6px 0; margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(var(--ink-c),.07); font: 500 12px/1.3 var(--font-mono); color: var(--muted); }
.fw-biz > * + *::before { content: "·"; margin: 0 8px; color: rgba(var(--ink-c),.25); }
.fw-biz b { font-weight: 500; color: var(--fg); }
.fw-biz .is-live { color: var(--gcol); }
.fw-biz .is-live::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; vertical-align: 1px; animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fw-biz .is-live::after { animation: none; } }

/* client work bento: tall phone on the left, wide BPCE on top, two cards under it */
@media (min-width: 900px) {
  .fwG--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .fw-group .fwG--bento .fwG-card { grid-column: auto; }
  .fw-group .fwG--bento .fwG-card[data-slot="af-app"] { grid-column: 1 / 3; grid-row: 1 / 3; grid-template-rows: 1fr auto; }
  .fw-group .fwG--bento .fwG-card[data-slot="af-app"] .fw-img { aspect-ratio: auto; min-height: 320px; }
  .fw-group .fwG--bento .fwG-card[data-slot="af-app"] .fw-img img { position: absolute; inset: 0; object-position: 50% 30%; }
  .fw-group .fwG--bento .fwG-card[data-slot="bpce"] { grid-column: 3 / 7; grid-row: 1; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
  .fw-group .fwG--bento .fwG-card[data-slot="bpce"] .fw-img { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .fw-group .fwG--bento .fwG-card[data-slot="bpce"] .fw-img img { position: absolute; inset: 0; object-position: 45% 55%; }
  .fw-group .fwG--bento .fwG-card[data-slot="bpce"] .fwG-body { align-content: stretch; grid-template-rows: auto auto 1fr auto; }
  .fw-group .fwG--bento .fwG-card[data-slot="barclays-trading"] { grid-column: 3 / 5; grid-row: 2; }
  .fw-group .fwG--bento .fwG-card[data-slot="apple"] { grid-column: 5 / 7; grid-row: 2; }
}

/* process strip: full step explanation + tool line, Figma note underneath */
.flow .ft { margin-top: 6px; font: 500 11px/1.4 var(--font-mono); color: var(--muted); }
.flow li.is-figma .ft { color: var(--figma); }
.flow-note { margin: 14px 0 0; max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.flow-note span { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--figma); margin-right: 10px; }

.bfm-case { display: inline-block; margin-top: 12px; font: 500 13px var(--font-body); color: rgb(var(--acc-c)); text-decoration: none; }
.bfm-case:hover { text-decoration: underline; }

/* featured cards: breathing room around the title block */
.fwG-body h3 { margin-top: 10px; }
.fwG-body > p { margin-bottom: 10px; }

/* own-work stat: label and value on one line, smaller value */
.fw-group .fwG-card.is-own .fw-key { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fw-group .fwG-card.is-own .fw-key b { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.fw-biz .is-live { text-decoration: none; }
.fw-biz .is-live .lk { cursor: pointer; border-radius: 4px; }
.fw-biz .is-live .lk { text-decoration: underline; text-decoration-color: rgba(var(--acc-c),.35); text-underline-offset: 3px; }
.fw-biz .is-live:hover .lk { text-decoration-color: currentColor; }
.fw-biz .is-live .lk:focus-visible { outline: 2px solid var(--gcol); outline-offset: 2px; }

/* case-study live link: green, like the live links on the cards */
.cs .cs-link { color: rgb(var(--acc-c)); border-color: rgba(var(--acc-c),.35); background: rgba(var(--acc-c),.08); }
.cs .cs-link:hover { border-color: rgb(var(--acc-c)); background: rgba(var(--acc-c),.14); }

/* top bar: taller, lighter fade with frosted glass that dissolves downward */
.bar::before { inset: 0 0 -72px; background: linear-gradient(rgba(var(--bg-c),.62) 0%, rgba(var(--bg-c),.38) 45%, rgba(var(--bg-c),0) 100%);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  -webkit-mask-image: linear-gradient(#000 40%, rgba(0,0,0,.5) 70%, transparent 100%); mask-image: linear-gradient(#000 40%, rgba(0,0,0,.5) 70%, transparent 100%); }

/* light theme: softer depth than the dark shadows */
:root[data-theme="light"] { --g-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 24px 50px -36px rgba(30,28,40,.2); }
:root[data-theme="light"] .fwG-card { box-shadow: 0 24px 50px -36px rgba(30,28,40,.2); }
:root[data-theme="light"] .fwG-card { background: linear-gradient(0deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.35) 100%), rgba(255,255,255,.3); }

/* top bar: eased, more progressive fade (no visible edge where the blur stops) */
.bar::before { inset: 0 0 -110px;
  background: linear-gradient(rgba(var(--bg-c),.55) 0%, rgba(var(--bg-c),.42) 22%, rgba(var(--bg-c),.26) 42%, rgba(var(--bg-c),.13) 62%, rgba(var(--bg-c),.05) 80%, rgba(var(--bg-c),0) 100%);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.85) 25%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.28) 65%, rgba(0,0,0,.09) 82%, transparent 100%);
          mask-image: linear-gradient(#000 0%, rgba(0,0,0,.85) 25%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.28) 65%, rgba(0,0,0,.09) 82%, transparent 100%); }

/* featured cards: deeper shadow on hover */
.fwG-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .35s ease; }
.fwG-card:hover { box-shadow: 0 44px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(var(--ink-c),.04); }
:root[data-theme="light"] .fwG-card:hover { box-shadow: 0 36px 64px -26px rgba(30,28,40,.34); }

/* UX reviewer: the Figma window sits a little lower, cropped at the bottom like a screen peeking up */
.bfm-fig figure img[data-zoom="ux-reviewer/cover"] { object-fit: cover; object-position: 50% 0; padding: 32px 32px 0; box-sizing: border-box; background: rgba(var(--ink-c),.035); }

/* tools: wrapper is transparent on desktop; on phones each tool slides open like an accordion */
.bfm-in { display: contents; }
@media (max-width: 959px) {
  .bfm-list .bfm-view, .bfm-list .bfm-view.on { display: grid; height: auto; grid-template-rows: 0fr; opacity: 0; margin: 0; border: 0; background: none; border-radius: 0; animation: none;
    transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease, margin .45s cubic-bezier(.2,.7,.2,1); }
  .bfm-list .bfm-view.on { grid-template-rows: 1fr; opacity: 1; margin: 6px 0 4px; }
  .bfm-list .bfm-in { display: block; min-height: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--surf-c)); }
  .bfm-list .bfm-view:not(.on) .bfm-in { border-width: 0; }
}
@media (max-width: 959px) and (prefers-reduced-motion: reduce) { .bfm-list .bfm-view { transition: none; } }
