/* Layout: full-bleed bands (concrete, then one ink band for contact). Poster-style display type, hard edges, grain. The portrait is the only soft shape: a rounded film frame. Direction A "Concreto". */
:root {
  --concrete: #95988F;
  --ink: #0D0D0D;
  --bone: #ECECEB;
  --oxblood: #7D2929;
  --steel: #4B4543;
  --ink-soft: #22221F;
  --bone-soft: #B9BBB3;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.55' intercept='.22'/%3E%3CfeFuncG type='linear' slope='.55' intercept='.22'/%3E%3CfeFuncB type='linear' slope='.55' intercept='.22'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* roles: what each color does. Light = the original Concreto colors. */
  --bg: var(--concrete);       /* page */
  --fg: var(--ink);            /* text */
  --fg-soft: var(--ink-soft);  /* secondary text */
  --line: var(--ink);          /* dividers, outlines, active tab, hover fills */
  --on-line: var(--bone);      /* text on --line */
  --panel: var(--ink);         /* sound cards, breakdowns */
  --deep: var(--ink);          /* contact band */
  --accent: var(--oxblood);    /* small marks, underlines, hover text */
  --track: #33332f;            /* empty part of the position bar */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ink :focus-visible { outline-color: var(--bone); }

.band { background-color: var(--bg); background-image: var(--grain); background-blend-mode: overlay; }
.band.ink { background-color: var(--deep); color: var(--bone); }
.in { max-width: 1000px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 22px; font-family: var(--display); font-size: 17px; letter-spacing: .07em; text-transform: uppercase; flex-wrap: wrap; }
.top .right { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; }
.top nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.top a { text-decoration: none; }
.top nav a:hover { color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: end; padding-block: clamp(28px, 6vw, 64px) 28px; }
.kicker { font-family: var(--display); font-size: clamp(18px, 2.6vw, 24px); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--accent); flex: none; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 22cqw, 132px); line-height: .92; letter-spacing: .005em; margin: 0 0 26px; }
.hero-text { container-type: inline-size; min-width: 0; }
h1 span { display: block; }
.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 30em; margin: 0 0 30px; line-height: 1.55; }
.lede b { font-weight: 700; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px 11px; border-radius: 4px; font-family: var(--display); font-size: 17px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--line); color: var(--on-line); }
.btn.primary { background: var(--oxblood); border-color: var(--oxblood); color: var(--bone); }
.btn.primary:hover { background: var(--line); border-color: var(--line); color: var(--on-line); }
.ink .btn { border-color: var(--bone); color: var(--bone); }
.ink .btn:hover { background: var(--bone); color: var(--ink); }
.ink .btn.primary { background: var(--oxblood); border-color: var(--oxblood); color: var(--bone); }
.ink .btn.primary:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn.sm { padding: 8px 14px 7px; font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--accent); }
.mailline { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 16px 0 0; font-size: 15px; font-weight: 500; }

/* film frame: media (photo and video) sit in a black matte with rounded corners and a caption on the matte. Interface stays square. */
.photo, .film { margin: 0; background: #000; border-radius: 34px; padding: 11px 11px 0; box-shadow: 0 0 0 1px #2a2a27; position: relative; overflow: hidden; }
.photo { justify-self: end; width: 100%; max-width: 290px; }
.photo img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.photo::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; opacity: .45; pointer-events: none; border-radius: inherit; }
.film-in { border-radius: 20px; overflow: hidden; isolation: isolate; background: #000; }
.film-in > * { border-radius: inherit; }
.photo figcaption, .film figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 12px 8px 14px; font-family: var(--display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-soft); }
.photo figcaption span, .film figcaption span { white-space: nowrap; }

.meta { display: flex; gap: 8px 30px; flex-wrap: wrap; padding-block: 26px 40px; font-size: 14px; font-weight: 500; }
.meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--fg); margin-right: 10px; vertical-align: middle; }

section { border-top: 3px solid var(--line); padding-block: clamp(40px, 7vw, 72px); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6.5vw, 64px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 28px; }
h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.muted { color: var(--fg-soft); }

.frame { background: #000; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; }
.video { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; display: block; border: 0; }
.mediacard { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(24px, 5vw, 48px); aspect-ratio: 16 / 9; min-height: 220px; text-decoration: none; color: var(--bone); }
.mediacard .play { width: 64px; height: 64px; border-radius: 50%; background: var(--oxblood); display: grid; place-items: center; }
.mediacard .play::after { content: ""; border-left: 20px solid var(--bone); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.mediacard strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; }
.mediacard small { color: var(--bone-soft); font-size: 14px; }
.caption { font-size: 14px; color: var(--fg-soft); margin: 14px 0 0; max-width: 46em; }

.game { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.facts { display: grid; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 2px solid var(--line); }
.facts li:last-child { border-bottom: 2px solid var(--line); }
.facts li span:first-child { color: var(--fg-soft); }
.facts li span:last-child { text-align: right; font-weight: 600; }
.sounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sound { padding: 20px; border-radius: 6px; background: var(--panel); color: var(--bone); }
.sound h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.sound p { margin: 0; font-size: 14px; color: var(--bone-soft); line-height: 1.5; }
.layers { display: grid; gap: 4px; margin-bottom: 18px; }
.layers i { display: block; height: 6px; background: var(--concrete); opacity: .75; }
.layers i:nth-child(3n) { background: var(--bone); opacity: 1; }
.layers i:nth-child(2) { opacity: .5; }

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 64px); }
.about a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 600; }
.about a:hover { color: var(--accent); }
/* "More about me": a longer bio that opens in place, so the home stays short */
.more { margin-top: 22px; }
.more summary { list-style: none; gap: 10px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-family: var(--text); font-weight: 500; font-size: 1.2em; line-height: 1; }
.more[open] summary::after { content: "−"; }
.more .close-label, .more[open] .open-label { display: none; }
.more[open] .close-label { display: inline; }
.more-body { padding-top: 24px; }
@media (max-width: 460px) { .more summary.btn { flex: none; } }
@media (prefers-reduced-motion: no-preference) { .more[open] .more-body { animation: more-in .25s ease-out; } }
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 2px solid var(--line); border-radius: 4px; padding: 5px 13px; font-size: 14px; font-weight: 600; }
.label { font-family: var(--display); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }

.contact { border-top: 0; }
.contact .lead { color: var(--bone-soft); margin: 0; }
.contact .big { display: block; width: fit-content; max-width: 100%; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 7.4vw, 76px); line-height: 1.05; letter-spacing: .01em; overflow-wrap: anywhere; margin: 8px 0 26px; text-decoration: none; }
.contact .big .addr { text-decoration: underline; text-decoration-color: var(--oxblood); text-decoration-thickness: .075em; text-underline-offset: .14em; }
.contact .big:hover .addr { text-decoration-color: var(--bone); }
.contact .big .arr { font-family: var(--text); font-weight: 400; font-size: .45em; color: var(--bone-soft); margin-left: .25em; vertical-align: .35em; }
.contact .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
/* Instagram and Discord: square logo buttons with the same outline as "Copy address" */
.social { display: flex; gap: 12px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.social a { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--bone); border-radius: 4px; color: var(--bone); }
.social a:hover { background: var(--bone); color: var(--ink); }
.social svg { width: 22px; height: 22px; display: block; }
.avail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 2px solid var(--steel); padding-top: 28px; }
.avail p { font-size: 15px; margin: 0; color: var(--bone-soft); }
.avail strong { display: block; color: var(--bone); font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
footer { padding-block: 24px 36px; font-size: 13px; color: var(--bone-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px solid var(--steel); }

@media (max-width: 780px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .photo { justify-self: start; }
  .game, .about { grid-template-columns: minmax(0, 1fr); }
  .avail { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 460px) {
  .sounds { grid-template-columns: minmax(0, 1fr); }
  .top nav { gap: 6px 18px; }
  .top .right { gap: 10px 16px; }
  .btn { flex: 1 1 auto; }
  .top .btn { flex: none; }
  .social { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- v2: multi-page. Home = name + about + service index; each service has its own page, reached by square tabs. ---------- */
.top .name { text-decoration: none; }
.top .name:hover { color: var(--accent); }
.tabs { display: flex; gap: 0; border-bottom: 3px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 12px 20px 10px; font-family: var(--display); font-size: 17px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 3px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; margin-bottom: -3px; }
.tabs a:hover { color: var(--accent); }
.tabs a[aria-current="page"] { background: var(--line); color: var(--on-line); border-color: var(--line); }
.tabs a:first-child { margin-left: -3px; }

.hero.home { align-items: center; padding-block: clamp(36px, 7vw, 80px) clamp(36px, 6vw, 64px); }
.hero.home .lede { margin-bottom: 0; }

.services { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--line); }
.services li { border-bottom: 3px solid var(--line); }
.services a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: clamp(18px, 3vw, 28px) 14px; text-decoration: none; transition: background-color .15s, color .15s; }
.services .num { font-family: var(--display); font-size: 24px; letter-spacing: .08em; color: var(--accent); align-self: start; padding-top: .3em; }
.services .what { font-family: var(--display); font-size: clamp(34px, 6vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.services .desc { grid-column: 2; font-size: 15px; color: var(--fg-soft); max-width: 34em; }
.services .go { grid-row: 1 / span 2; grid-column: 3; font-size: 30px; line-height: 1; }
.services a:hover { background: var(--line); color: var(--on-line); }
.services a:hover .desc { color: var(--bone-soft); }

.pagehead { padding-block: clamp(36px, 7vw, 72px) clamp(28px, 5vw, 48px); max-width: 44em; }
.pagehead h1 { font-size: clamp(56px, 12vw, 120px); margin-bottom: 20px; }
.pagehead .lede { margin-bottom: 0; }

.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.offer .sound h4 { font-size: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.spotify { display: block; width: 100%; height: 352px; border: 0; }
.soon { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: clamp(24px, 5vw, 48px); color: var(--bone); background: #000; }
.soon strong { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.soon small { color: var(--bone-soft); font-size: 14px; }
.st-intro { max-width: 36em; margin: -12px 0 22px; }
/* music videos: film frame on the left, title, credit line and role tags on the right */
.clips { display: grid; gap: clamp(36px, 6vw, 56px); }
.clip { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(22px, 4vw, 40px); align-items: center; }
.clip-info h3 { margin-bottom: 8px; }
.clip-info p { font-size: 15px; }
.clip-info a { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.clip-info a:hover { color: var(--accent); }
.clip-info .tags { margin-top: 16px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.next a.btn::after { content: " →"; font-family: var(--text); }

@media (max-width: 780px) {
  .split, .clip { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .tabs a { padding: 10px 12px 8px; font-size: 15px; }
}
@media (max-width: 460px) {
  .tabs a { padding: 10px 8px 8px; font-size: 14px; letter-spacing: .04em; }
  .services a { grid-template-columns: 34px minmax(0, 1fr) auto; padding-inline: 6px; }
}

/* ---------- SFX breakdowns: one ink card per sound, one row per Ableton layer with its real waveform ---------- */
.bd-intro { margin: clamp(40px, 6vw, 60px) 0 18px; max-width: 40em; }
.bd-intro p { margin: 0; }
.bds { display: grid; gap: 14px; }
.bd { --p: 0; background: var(--panel); color: var(--bone); border-radius: 6px; padding: clamp(16px, 2.6vw, 24px); }
.bd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin-bottom: 10px; }
.bd-head h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; }
.bd-head p { margin: 2px 0 0; font-size: 14px; color: var(--bone-soft); line-height: 1.45; }
.bd-meta { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-soft); white-space: nowrap; }
.bd-play { width: 52px; height: 52px; border: 0; border-radius: 4px; background: var(--oxblood); color: var(--bone); cursor: pointer; display: grid; place-items: center; padding: 0; }
.bd-play::after { content: ""; border-left: 16px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.bd.playing .bd-play::after { border: 0; width: 14px; height: 14px; background: currentColor; margin: 0; }
.bd.loading .bd-play::after { border: 0; width: 18px; height: 4px; margin: 0; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); }
.bd-play:hover { background: var(--bone); color: var(--ink); }
.bd .bd-play:focus-visible, .bd button:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }
.bd-layers { display: grid; gap: 3px; }
.bd-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bd-name { background: none; border: 0; padding: 4px 0; text-align: left; font: 500 13px/1.2 var(--text); color: var(--bone); cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-name::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--oxblood); }
.bd-name[aria-pressed="false"] { color: var(--steel); text-decoration: line-through; }
.bd-name[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--steel); }
.bd-row:hover .bd-name { color: var(--bone-soft); }
.bd-row:hover .bd-wave svg:not(.hi) { fill: #6a6a63; }
.bd-wave { position: relative; height: 26px; }
.bd-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: #55554f; }
.bd-wave svg.hi { fill: var(--bone); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.bd-row.off .bd-wave { opacity: .28; }
.bd-wave::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: calc(var(--p) * 100%); width: 2px; background: var(--bone); opacity: 0; }
.bd.playing .bd-wave::after, .bd.paused .bd-wave::after { opacity: 1; }
.bd-note { margin: 12px 0 0; font-size: 13px; color: var(--bone-soft); }

@media (max-width: 560px) {
  .bd-head { grid-template-columns: auto minmax(0, 1fr); }
  .bd-meta { grid-column: 2; }
  .bd-row, .bd-bar { grid-template-columns: 98px minmax(0, 1fr); gap: 8px; }
  .bd-name { font-size: 12.5px; gap: 6px; }
  .bd-wave { height: 22px; }
}

/* position bar (seek) and "All layers" reset */
/* same columns as the layer rows, so the bar lines up with the waveforms */
.bd-bar { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 8px; }
.bd-scrub { position: relative; height: 32px; cursor: pointer; touch-action: pan-y; }
.bd-scrub::before, .bd-scrub span { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 1px; }
.bd-scrub::before { right: 0; background: var(--track); }
.bd-scrub span { width: calc(var(--p) * 100%); background: var(--bone); }
.bd-scrub span::after { content: ""; position: absolute; right: -2px; top: -6px; width: 4px; height: 16px; background: var(--bone); border-radius: 1px; }
.bd-scrub:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }
.bd-all { background: none; border: 2px solid var(--bone-soft); border-radius: 4px; color: var(--bone); padding: 4px 8px 3px; font-family: var(--display); font-size: 12px; white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.bd-all:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.bd-all[hidden] { display: none; }

/* soundtrack cards: one master file, a wide waveform that is also the position bar, and tags for where the track fits */
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 14px; padding: 0; }
.st-tags li { border: 2px solid var(--steel); border-radius: 4px; padding: 3px 8px 2px; font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-soft); }
.st-scrub { height: auto; padding: 6px 0; }
.st-scrub::before { display: none; }
.st-wave { height: 72px; }
.st-scrub:hover .st-wave svg:not(.hi) { fill: #6a6a63; }
.bd.st .bd-meta { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .st-wave { height: 56px; } }

/* touch screens: 44 px rows and bar, the minimum touch target in Apple's guidelines */
@media (pointer: coarse) {
  .bd-layers { gap: 0; }
  .bd-row { min-height: 44px; }
  .bd-wave { height: 28px; }
  .bd-scrub { height: 44px; }
  .bd-all { padding: 9px 8px 8px; }
}

/* ---------- Dark mode: "concrete at night". The site always opens light; the header switch turns dark on and the choice is remembered.
   Concrete becomes the structure (lines, active tab, hover), the page goes near-black, cards sit one step lighter. ---------- */
:root[data-theme="dark"] {
  --bg: #161715; --fg: var(--bone); --fg-soft: #A6A89F; --line: var(--concrete); --on-line: var(--ink);
  --panel: #23241F; --deep: var(--ink); --accent: #C4534C; --track: #3B3C36; color-scheme: dark;
}
/* the contact band is already dark: in dark mode a concrete line separates it from the page */
:root[data-theme="dark"] .band.ink { box-shadow: inset 0 3px 0 var(--line); }

/* theme switch: a square icon button in the header, same height as "Email me" */
.top .right { display: flex; align-items: center; gap: 10px; }
.theme { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 2px solid var(--line); border-radius: 4px; background: transparent; color: var(--fg); cursor: pointer; }
.theme:hover { background: var(--line); color: var(--on-line); }
.theme svg { width: 18px; height: 18px; display: block; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
.theme { position: relative; }
/* touch: the hit area grows to 44 px without making the button bigger than "Email me" */
@media (pointer: coarse) { .theme::before { content: ""; position: absolute; inset: -5px; } }
/* phones: name, switch and "Email me" stay on one line */
@media (max-width: 460px) {
  .top { gap: 12px; }
  .top .name { letter-spacing: .04em; }
  .top .right { gap: 8px; }
}
/* small phones: keep the name, the theme switch and Email me on one line, and all three tabs in view */
@media (max-width: 374px) {
  .top .name { font-size: 15px; }
}
@media (max-width: 340px) {
  .top { gap: 10px; }
  .top .name { font-size: 13.5px; letter-spacing: .03em; }
  .top .right { gap: 6px; }
  .theme { width: 34px; height: 34px; }
  .top .btn.sm { padding: 7px 10px 6px; font-size: 14px; }
  .tabs a { padding: 10px 6px 8px; font-size: 13px; letter-spacing: .03em; }
}
