/* Layout: a drafting sheet. Grid-paper ground, numbered sheets, a title block, a slide-in summary sheet per project. */
:root {
  --ground: #E7E9EC;
  --sheet: #FCFCFB;
  --sheet-2: #F3F4F2;
  --ink: #16181B;
  --ink-2: #4C545C;
  --ink-3: #6E767E;
  --line: #D2D6DA;
  --line-2: #B7BDC3;
  --accent: #308d9c;
  --accent-ink: #1f6f7b;
  --accent-wash: rgba(48,141,156,.1);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --on-accent: #FCFCFB;
  --grid: rgba(22,24,27,.045);
  --grid-major: rgba(22,24,27,.07);
  --ok: #1d6b45;
  --bad: #a12b2b;
  --scrim: rgba(22,24,27,.42);
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.wrap { max-width: 1600px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 64px); }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--accent); border-bottom: 7px solid transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.h-sec { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.needs { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--bad); border: 2px dashed currentColor; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 20px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; transition: color .3s var(--ease); }
.btn::before, .icon-btn::before, .filter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .35s var(--ease); }
.btn:hover::before, .btn:focus-visible::before, .icon-btn:hover::before, .filter:hover::before { transform: none; }
.btn:hover, .btn:focus-visible, .icon-btn:hover, .filter:hover { color: #fff; }
.btn-solid { background: var(--ink); color: var(--sheet); }
.btn-tonal { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-latimer { background: #052d37; color: #fcd21c; }
.btn-latimer::before { background: #fcd21c; }
.btn.btn-latimer:hover, .btn.btn-latimer:focus-visible { color: #09232c; }
.foot .rev { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ground); border-bottom: 2px solid var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .14em; }
.brand svg { width: 28px; height: 28px; overflow: hidden; border-radius: 8px; }
.brand .plane { transform-box: view-box; }
.brand:hover .plane, .brand:focus-visible .plane { animation: flyoff 1.1s var(--ease); }
@keyframes flyoff { 0% { transform: none; opacity: 1; } 42% { transform: translate(26px, -26px) scale(.7); opacity: 0; } 43% { transform: translate(-26px, 26px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.nav-links { display: none; gap: 22px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--accent-ink); }
.nav-mail { margin-left: auto; }
.nav-li { margin-left: 8px; }
.nav-cv { margin-left: 8px; padding: 8px 14px; }
.brand { text-decoration: none; }
@media (min-width: 720px) { .nav-links { display: flex; gap: clamp(14px, 2vw, 22px); } .nav-mail { margin-left: 8px; } }

.hero { position: relative; padding-block: 48px 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr .65fr; gap: 56px; } .hero { padding-block: 72px 56px; } }
.hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 6.2rem); line-height: .92; letter-spacing: -.02em; margin: 14px 0 18px; }
.lede { font-size: clamp(1.05rem, 1.2vw, 1.25rem); color: var(--ink-2); max-width: 60ch; margin: 0 0 18px; }
.lede + .cta { margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: 34px; border: 2px solid var(--line-2); background: var(--sheet); }
.proof button { text-align: left; background: none; border: 0; border-right: 2px solid var(--line); padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; transition: background-color .2s var(--ease); }
.proof button:last-child { border-right: 0; }
.proof button:hover { background: var(--accent-wash); }
.proof .v { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; }
.proof .l { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.proof .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.portrait { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.dim { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 10px; }
.dim span.ln { flex: 1; height: 1px; background: var(--ink-3); position: relative; }
.dim span.ln::before, .dim span.ln::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--ink-3); }
.dim span.ln::before { left: 0; } .dim span.ln::after { right: 0; }
.frame { background: var(--sheet); border: 2px solid var(--line-2); padding: 10px; position: relative; border-radius: var(--r-md); }
.frame img { border-radius: var(--r-sm); }
.frame img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.frame:hover img { filter: grayscale(0); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; }
.frame::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.frame::after { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.frame figcaption { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--ink-3); padding-top: 8px; display: flex; justify-content: space-between; }


section.sec { padding-block: 64px; border-top: 2px solid var(--line-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 46ch; }

.flags { display: grid; gap: 28px; }
.flag { display: grid; text-decoration: none; background: var(--sheet); border: 2px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.flag:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--ink) 45%, transparent); border-color: var(--ink-3); }
.flag .media { position: relative; background: var(--sheet-2); overflow: hidden; aspect-ratio: 16/10; }
.flag .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.flag:hover .media img { transform: scale(1.035); }
.flag .fig { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; background: var(--sheet); color: var(--ink-2); padding: 3px 7px; border-radius: 6px; }
.with { font-size: .88rem; color: var(--ink-3); margin-top: -6px; }
.with a { color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--line-2); }
.with a:hover { color: var(--accent-ink); border-color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 4px; }
.links a, .links button { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.links a:hover, .links button:hover { color: var(--accent-ink); border-color: var(--accent); }
.links .primary { color: var(--accent-ink); }
.links .primary i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.flag:hover .links .primary i { transform: translateX(3px); }
.flag { cursor: pointer; }
.flag .body { padding: 22px 22px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.flag h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.05; text-transform: uppercase; }
.flag .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); }
.flag p { margin: 0; color: var(--ink-2); }
.bigstat { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 2px solid var(--line); }
.bigstat b { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--accent-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.bigstat span { font-size: .86rem; color: var(--ink-2); }
.open { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; gap: 6px; }
.flag:hover .open i { transform: translateX(3px); }
.open i { font-style: normal; transition: transform .25s var(--ease); }
@media (min-width: 900px) {
  .flag { grid-template-columns: 1.25fr 1fr; }
  .flag .media { aspect-ratio: auto; min-height: 340px; }
  .flag:nth-child(even) .media { order: 2; }
  .flag .body { padding: 30px; align-content: center; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; padding: 3px 9px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.panel { display: grid; gap: 12px; }
@media (min-width: 700px) { .panel { grid-template-columns: 1fr 1fr; } }
.skills-block { grid-column: 1 / -1; display: grid; gap: 4px; }
.skills-title { margin: 0 0 8px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .02em; }
.skill { background: var(--sheet); border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 6px; }
.skill h3 { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.skill p { margin: 0; color: var(--ink); max-width: none; }
.skill .proof-links { font-size: .84rem; color: var(--ink-3); }
.skill .proof-links button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent-ink); font: inherit; border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.about-copy p a { color: var(--accent-ink); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter { position: relative; overflow: hidden; isolation: isolate; border: 0; cursor: pointer; border-radius: 10px; padding: 7px 13px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); transition: background-color .2s, color .2s; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.more { display: grid; gap: clamp(14px, 1.4vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--sheet); border: 2px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-rows: auto 1fr; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--ink) 45%, transparent); border-color: var(--ink-3); }
.card .media { aspect-ratio: 4/3; background: var(--sheet-2); overflow: hidden; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card .fig { position: absolute; left: 8px; top: 8px; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; background: var(--sheet); color: var(--ink-2); padding: 2px 6px; border-radius: 6px; }
.card .body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.card .meta { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; text-transform: uppercase; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.card.wipcard { cursor: default; border-style: dashed; background: transparent; grid-template-rows: 1fr; }
.card.wipcard:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.card.wipcard ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .9rem; display: grid; gap: 6px; }
.wip { margin-top: 18px; display: grid; gap: 10px; padding: 16px 18px; border: 2px dashed var(--line-2); border-radius: var(--r-md); }
.wip ul { margin: 0; padding-left: 18px; color: var(--ink-2); }

.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.about p { margin: 0 0 14px; max-width: 62ch; color: var(--ink-2); }
dl.facts { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--sheet); border: 2px solid var(--line-2); display: grid; grid-template-columns: auto 1fr; }
dl.facts dt, dl.facts dd { margin: 0; padding: 10px 14px; border-bottom: 2px solid var(--line); }
dl.facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 13px; }
dl.facts dd { text-align: right; font-size: .94rem; }
dl.facts > :nth-last-child(-n+2) { border-bottom: 0; }

.contact h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: .95; margin: 12px 0 22px; }

.foot { border-top: 2px solid var(--line-2); padding-block: 22px 28px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.form { background: var(--sheet); border: 2px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; max-width: 760px; position: relative; }
.form textarea, .form input { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--ground); border: 2px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form textarea:focus, .form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.form-row { display: grid; gap: 10px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.form .hint { margin: 0; font-size: .84rem; color: var(--ink-3); }
.form .status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form .status.ok { color: var(--ok); }
.form .status.err { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

dialog.sheet { padding: 0; border: 0; margin: auto; width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(10,20,25,.55); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: popIn .42s var(--ease); }
dialog.sheet::backdrop { background: var(--scrim); }
dialog.sheet[open]::backdrop { animation: fade .3s ease; }
dialog.sheet.closing { animation: popOut .22s ease-in forwards; }
dialog.sheet.closing::backdrop { animation: fade .22s ease reverse forwards; }
@keyframes popIn { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popOut { to { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 759px) { dialog.sheet { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: var(--r-md); } }
.sh { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sh-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sheet); border-bottom: 2px solid var(--line); }
.sh-bar .code { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--ink-3); margin-right: auto; }
.icon-btn { position: relative; overflow: hidden; isolation: isolate; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-family: var(--mono); font-size: .95rem; transition: background-color .2s, color .2s; }
.sh-in { padding: 22px 16px 40px; display: grid; gap: 26px; }
@media (min-width: 760px) { .sh-in { padding: 28px 36px 48px; } .sh-bar { padding-inline: 36px; } }
.tb { border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); border: 2px solid var(--ink); }
.tb > div { padding: 8px 12px; border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2); min-width: 0; }
.tb .ttl { grid-column: 1 / -1; border-top: 0; border-right: 0; padding: 14px 12px; }
.tb .ttl h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1; }
.tb small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tb span { font-size: .92rem; }
@media (min-width: 760px) { .tb { grid-template-columns: repeat(4, 1fr); } }
.gal { display: grid; gap: 10px; }
.gal-main { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--sheet-2); border: 2px solid var(--line); }
.gal-main img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--sheet-2); }
.gal-main figcaption { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink-2); padding: 8px 10px; border-top: 2px solid var(--line); display: flex; gap: 10px; }
.gal-main figcaption b { color: var(--accent-ink); font-weight: 500; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 2px; position: relative; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { position: relative; flex: 0 0 86px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--sheet-2); overflow: hidden; cursor: pointer; opacity: .5; filter: saturate(.6); transition: opacity .25s var(--ease), filter .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.thumbs button img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; pointer-events: none; }
.thumbs button span { position: absolute; left: 4px; bottom: 4px; font-size: .6rem; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 5px; background: rgba(22,24,27,.6); color: #fff; font-variant-numeric: tabular-nums; }
.thumbs button:hover { opacity: .85; filter: none; }
.thumbs button[aria-current="true"] { opacity: 1; filter: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.thumbs button[aria-current="true"] span { background: var(--accent); }
@media (max-width: 640px) { .thumbs button { flex-basis: 68px; } }
.stats { border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 2px solid var(--line-2); }
.stats > div { padding: 14px 16px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); display: grid; gap: 4px; margin: 0 -1px -1px 0; }
.stats b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .pg { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--accent-ink); text-decoration: none; margin-top: 2px; }
.stats .pg:hover { text-decoration: underline; }
.stats span { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .cols { grid-template-columns: 1.1fr .9fr; gap: 36px; } }
.cols p { margin: 0; color: var(--ink-2); }
.h-sm { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-weight: 500; }
.did { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.did li { padding-left: 18px; position: relative; color: var(--ink-2); }
.did li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.credits a { color: var(--accent-ink); }
.sh-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 2px solid var(--line); padding-top: 18px; }
.sh-next button { text-align: left; background: none; border: 2px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.sh-next button:last-child { text-align: right; }
.sh-next button:hover { border-color: var(--accent); }
.sh-next small { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.sh-next span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lab { border: 2px solid var(--line-2); background: var(--sheet-2); border-radius: var(--r-md); padding: 18px; display: grid; gap: 16px; }
.lab-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.lab-head h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.lab-note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.seg { display: inline-flex; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 20%, transparent); }
.ctrls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ctrls label { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: grid; gap: 6px; }
.gauge { display: grid; gap: 6px; }
.gauge .row { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.gauge .row b { font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: var(--r-md); overflow: visible; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-md); background: var(--accent); transition: width .5s var(--ease), background-color .3s; }
.bar i.bad { background: var(--bad); }
.bar i.ok { background: var(--ok); }
.bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.bar em::after { content: attr(data-l); position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-style: normal; font-size: .58rem; color: var(--ink-3); white-space: nowrap; }
.verdict { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; }
.verdict.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.verdict.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.fea-lab { display: grid; gap: 16px; }
@media (min-width: 760px) { .fea-lab { grid-template-columns: 1fr 1fr; align-items: start; } }
.fea-lab img { border: 2px solid var(--line); background: var(--sheet); width: 100%; aspect-ratio: 16/10; object-fit: contain; }
input[type=range] { width: min(320px, 100%); accent-color: var(--accent); }
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.readouts div { background: var(--sheet); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.readouts b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.readouts small { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chart { width: 100%; height: auto; background: var(--sheet); border: 2px solid var(--line); border-radius: var(--r-sm); }
.chart text { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); }
.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart .gr { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .cv { stroke: var(--accent); stroke-width: 2; fill: none; }
.chart .ar { fill: var(--accent-wash); stroke: none; }
.chart .pt { fill: var(--accent); stroke: var(--sheet); stroke-width: 2; }
.chart .tp { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.hex { display: grid; gap: 18px; }
@media (min-width: 640px) { .hex { grid-template-columns: 220px 1fr; align-items: center; } }
.dial { position: relative; width: 210px; height: 210px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sheet); justify-self: center; }
.dial span { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; font-family: var(--mono); font-size: .74rem; color: var(--ink-2); border-radius: 50%; transition: background-color .2s, color .2s; }
.dial span.on { background: var(--accent); color: var(--on-accent); }
.needle { position: absolute; left: 50%; top: 50%; width: 2px; height: 68px; margin-left: -1px; margin-top: -68px; background: var(--accent); transform-origin: 50% 100%; transition: transform .45s var(--ease); border-radius: 2px; }
.dial .hub { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--ink); }
.hex input[type=text] { font-family: var(--mono); font-size: .95rem; padding: 9px 12px; border: 2px solid var(--line-2); border-radius: 8px; background: var(--sheet); color: var(--ink); width: min(280px, 100%); text-transform: uppercase; }
.seq { display: flex; flex-wrap: wrap; gap: 6px; }
.seq span { font-family: var(--mono); font-size: .72rem; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 4px 6px; display: grid; text-align: center; min-width: 38px; background: var(--sheet); }
.seq span small { color: var(--ink-3); font-size: .62rem; }
.seq span.on { border-color: var(--accent); color: var(--accent-ink); }
.tempo { display: grid; gap: 16px; }
@media (min-width: 640px) { .tempo { grid-template-columns: 120px 1fr; align-items: center; } }
.track { position: relative; height: 180px; width: 90px; justify-self: center; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 18px); }
.track .knob { position: absolute; left: -8px; right: -8px; height: 12px; background: var(--accent); border-radius: 6px; top: 0; }
.track small { position: absolute; right: -54px; font-family: var(--mono); font-size: .58rem; color: var(--ink-3); }
.phase { font-family: var(--display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.beats { display: flex; gap: 6px; }
.beats i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); transition: background-color .1s, border-color .1s; }
.beats i.on { background: var(--accent); border-color: var(--accent); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.marquee { border-top: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); background: var(--sheet); overflow: hidden; padding: 7px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.marquee-track { display: flex; width: max-content; cursor: grab; touch-action: pan-y; user-select: none; will-change: transform; backface-visibility: hidden; }
.marquee-track.run { animation: marq 45s linear infinite; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--gw, 1000px))); } }
.marquee.dragging .marquee-track { cursor: grabbing; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-track span { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .03em; color: var(--ink-2); opacity: .6; white-space: nowrap; padding: 0 14px; line-height: 1.4; }
.marquee-track span::before { content: "/"; color: var(--accent); margin-right: 14px; font-weight: 700; }

.gal-track { display: flex; align-items: center; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; padding-block: 2px; }
.gal-track.multi { padding-inline: 9%; scroll-padding-inline: 9%; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; align-items: center; justify-content: center; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gal-track.multi .gal-slide { flex-basis: 82%; opacity: .45; transform: scale(.94); cursor: pointer; }
.gal-track.multi .gal-slide.on { opacity: 1; transform: none; cursor: inherit; }
.gal-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(68vh, 640px); border: 2px solid var(--line); border-radius: var(--r-md); background: var(--sheet-2); pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (max-width: 640px) { .gal-track.multi { padding-inline: 6%; } .gal-track.multi .gal-slide { flex-basis: 88%; } }
.gal-bar { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-2); padding: 8px 2px 0; }
.gal-bar b { color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.gal-bar span { flex: 1; min-width: 0; }
.gal-bar .icon-btn { width: 32px; height: 32px; flex: none; }

.live-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: var(--r-md); background: var(--accent-wash); }
.live-cta span { color: var(--ink-2); font-size: .9rem; }
.card .play { position: absolute; right: 8px; top: 8px; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.card .play:hover { transform: scale(1.06); }

.portrait { max-width: clamp(280px, 28vw, 440px); }
.form { max-width: 960px; }
@media (min-width: 1300px) { .flag .media { min-height: 400px; } .flags { gap: 34px; } }
@media (max-width: 420px) { .hero h1 { font-size: 2.3rem; } .tb .ttl h2 { font-size: 1.35rem; } .sh-in { padding-inline: 12px; } }

.btn-linkedin { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); }
.btn-linkedin::before { background: #0A66C2; }
.btn.btn-linkedin:hover, .btn.btn-linkedin:focus-visible { color: #fff; }
.nav-icon { padding: 8px 11px; }
.nav-icon svg { width: 17px; height: 17px; flex: none; display: block; }
@media (max-width: 520px) { .brand span { font-size: .72rem; } }
