/* GenericPixels — styles.css (mobile-first) */
:root {
  --bg: #0B0D12;
  --bg-2: #10131A;
  --panel: #131722;
  --line: #1F2430;
  --line-2: #2A3142;
  --text: #F3F4F6;
  --muted: #A1A8B5;
  --cyan: #00F0FF;
  --lime: #A3E635;
  --amber: #F59E0B;
  --violet: #A78BFA;
  --emerald: #34D399;
  --ink: #0B0D12;

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 1.4rem + 5.6vw, 5.75rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --radius: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--cyan); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1em; height: 1em; flex: none; }

/* ---------- Tags & metadata ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.tag--cyan { color: var(--cyan); border: 1px solid var(--line-2); background: rgba(0, 240, 255, .06); padding: .55em .9em; border-radius: 999px; }
.tag--lime { color: var(--lime); }
.dot { width: 7px; height: 7px; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--text); --bg-btn: transparent; --fg: var(--text); --shadow: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.3em;
  font: 700 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  color: var(--fg); background: var(--bg-btn);
  border: 1px solid var(--b); border-radius: 10px;
  box-shadow: 0 4px 0 var(--shadow);
  transform: translateY(0);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s, color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn--primary { --bg-btn: var(--cyan); --b: var(--cyan); --fg: var(--ink); --shadow: #008C96; }
.btn--ghost { --b: var(--line-2); --bg-btn: rgba(255, 255, 255, .02); }
.btn--ghost:hover { --b: var(--text); }
.btn--small { min-height: 40px; padding: .6em 1em; font-size: .875rem; box-shadow: 0 3px 0 var(--shadow); }
.btn[href="#projects"]:hover .ico { transform: translateY(2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .brand__logo { height: 34px; } }
.brand--small .brand__logo { height: 24px; }

.nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s; }
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  position: absolute; inset: var(--nav-h) 0 auto 0;
  display: none; flex-direction: column; gap: 1rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav__menu.is-open { display: flex; }
.nav__menu ul { display: flex; flex-direction: column; }
.nav__menu ul a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .15s; }
.nav__menu ul a:hover, .nav__menu ul a[aria-current="true"] { color: var(--text); }

@media (min-width: 760px) {
  .nav__toggle { display: none; }
  .nav__menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; background: none; border: 0; }
  .nav__menu ul { flex-direction: row; gap: 1.75rem; }
  .nav__menu ul a { padding: .4rem 0; border: 0; font-size: .95rem; position: relative; }
  .nav__menu ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
  .nav__menu ul a:hover::after, .nav__menu ul a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { /* readability vignette */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(11, 13, 18, .88), rgba(11, 13, 18, .35) 70%, transparent),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero::after { /* CRT scanlines */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero__title { font-size: var(--fs-hero); max-width: 14ch; letter-spacing: -0.035em; }
.hl { color: var(--cyan); text-shadow: 0 0 28px rgba(0, 240, 255, .35); }
.hero__sub { max-width: 58ch; color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .5rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(11, 13, 18, .6); }
.hero__meta div { padding: .75rem 1.1rem; border-right: 1px solid var(--line); }
.hero__meta div:last-child { border-right: 0; }
.hero__meta dt { font: 600 .68rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.hero__meta dd { margin: .4rem 0 0; font: 700 1.25rem/1 var(--mono); color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--fs-h2); max-width: 20ch; }
@media (min-width: 900px) {
  #projects .section__head { grid-template-columns: 1fr auto; align-items: end; }
  #projects .section__head .tag { grid-column: 1 / -1; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 40px; padding: .5em 1em; cursor: pointer;
  font: 600 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: color .15s, border-color .15s, background-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

/* Bento */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lab { grid-column: 1 / -1; }
}
.card {
  --accent: var(--cyan);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 var(--accent);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s var(--ease), opacity .25s, filter .25s;
}
.card::before { /* pixel grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%);
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.card:hover { transform: translate(-3px, -3px); border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.card.is-hidden { display: none; }
.card__art { position: relative; padding: 1.75rem 1.75rem 0; }
.badge { width: clamp(88px, 22vw, 120px); height: auto; transition: transform .4s var(--ease); }
.card:hover .badge { transform: rotate(-4deg) scale(1.04); }
.card__body { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--muted); }
.card .btn { align-self: flex-start; margin-top: auto; }

.meta { display: flex; flex-wrap: wrap; gap: .5rem; font: 600 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.card .meta span { color: var(--muted); }
.card .meta .meta__live, .card .meta .meta__lab { color: var(--accent); }
.meta span { padding: .35em .6em; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(11, 13, 18, .6); }

.platforms { display: flex; flex-wrap: wrap; gap: .5rem; }
.platforms li { display: inline-flex; align-items: center; gap: .45em; padding: .4em .7em; font: 500 .8rem/1 var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.platforms .ico { color: var(--accent); }

/* Cypher Void: the card wears the game's own look from cyphervoid.com
   (violet night and gold, Cinzel display type, the Call of Wonders art). */
@font-face { font-family: "Cinzel"; src: url("assets/cyphervoid/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
.card--void {
  --accent: #f2b134;
  --cv-night: #140c2b; --cv-panel: #251852; --cv-line: #4a3a7a;
  --cv-soft: #d6cdf5; --cv-lilac: #b9a6ff; --cv-gold: #f2b134; --cv-gold-light: #ffd66b;
  background: linear-gradient(180deg, var(--cv-panel), var(--cv-night) 85%);
  border-color: var(--cv-line);
}
.card--void::before { display: none; }
.cv-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--cv-line); }
.cv-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(20, 12, 43, .55) 72%, var(--cv-panel)); }
.cv-art__scene { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transition: transform .6s var(--ease); }
.card--void:hover .cv-art__scene { transform: scale(1.04); }
.cv-art__logo { position: absolute; z-index: 1; left: 1.25rem; bottom: .5rem; width: clamp(140px, 38%, 230px); height: auto; filter: drop-shadow(0 6px 14px rgba(20, 12, 43, .7)); }
.card--void .card__body { padding-top: 1.25rem; }
.card--void h3 { font-family: "Cinzel", Georgia, serif; font-weight: 900; letter-spacing: .01em; color: #fff; }
.cv-sub { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cv-gold-light); }
.card--void p { color: var(--cv-soft); }
.card--void .meta span { color: var(--cv-lilac); border-color: var(--cv-line); background: rgba(20, 12, 43, .6); }
.card--void .meta .meta__live { color: var(--cv-gold-light); border-color: var(--cv-gold); }
.card--void .platforms li { color: #efe9ff; background: rgba(58, 38, 112, .55); border-color: var(--cv-line); }
.card--void .platforms .ico { color: var(--cv-gold-light); }
.btn--void {
  --bg-btn: var(--cv-gold, #f2b134); --b: #ffe08f; --fg: #2a1600; --shadow: #9a6410;
  font-family: "Cinzel", Georgia, serif; font-weight: 900; letter-spacing: .04em;
  border-width: 2px; border-radius: 999px;
}
.btn--void:hover { --bg-btn: #ffc94d; }
@media (min-width: 900px) {
  .card--void { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
  .card--void .cv-art { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--cv-line); }
  .card--void .cv-art::after { background: linear-gradient(90deg, transparent 60%, rgba(37, 24, 82, .6)); }
  .card--void .card__body { padding: 2rem 2.25rem; justify-content: center; }
}
/* Pixel Chicken: the featured card wears pixelchicken.game's look (night-blue
   panels, slate borders, gold gradient title, chunky amber button, key caps). */
.card--chicken {
  --accent: #ffcc33;
  --pc-bg: #0a0d12; --pc-panel: #141b24; --pc-line: #2c3a4e; --pc-line-2: #37465c;
  --pc-gold: #ffcc33; --pc-muted: #8ea1b8; --pc-text: #f2f6fc;
  background: radial-gradient(80% 70% at 100% 0%, rgba(255, 190, 46, .12), transparent 60%), linear-gradient(180deg, var(--pc-panel), var(--pc-bg));
  border: 2px solid var(--pc-line);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.card--chicken::before { display: none; }
.pc-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d131a; border-bottom: 2px solid var(--pc-line); }
.pc-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 27, 36, .35), transparent 30%, transparent 70%, rgba(20, 27, 36, .35)), linear-gradient(180deg, transparent 60%, rgba(10, 13, 18, .55)); }
.pc-art__scene { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; image-rendering: pixelated; transition: transform .6s var(--ease); }
.card--chicken:hover .pc-art__scene { transform: scale(1.04); }
.pc-ribbon {
  position: absolute; z-index: 1; top: 1rem; left: 1rem;
  padding: .5em .8em; font: 800 .72rem/1 var(--mono); letter-spacing: .12em;
  color: #191202; background: linear-gradient(180deg, #ffd447, #f59e0b);
  border-radius: 8px; box-shadow: 0 4px 0 #b46906;
}
.card--chicken .card__body { padding-top: 1.25rem; }
.pc-title { display: flex; align-items: center; gap: 1rem; }
.pc-badge { width: 72px; height: auto; flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); transition: transform .4s var(--ease); }
.card--chicken:hover .pc-badge { transform: rotate(-6deg) scale(1.06); }
.card--chicken h3 {
  font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(135deg, #fff5b8, #ffbe2e 55%, #ff6b35); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-sub { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 800; letter-spacing: .22em; color: var(--pc-gold); -webkit-text-fill-color: var(--pc-gold); }
.card--chicken p { color: var(--pc-muted); }
.card--chicken .meta span { color: var(--pc-muted); border-color: var(--pc-line); background: rgba(16, 21, 30, .9); border-radius: 8px; }
.card--chicken .meta .meta__live { color: #38e58c; border-color: rgba(56, 229, 140, .5); }
.pc-keys { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: 0; margin: 0; list-style: none; font-size: .85rem; color: var(--pc-muted); }
.pc-keys li { display: inline-flex; align-items: center; gap: .4em; }
.pc-keys kbd { padding: .25em .5em; font: 700 .75rem/1 var(--mono); color: var(--pc-text); background: #1f2937; border: 1px solid var(--pc-line-2); border-bottom-width: 3px; border-radius: 6px; }
.card--chicken .platforms li { color: var(--pc-text); background: #1f2937; border: 2px solid var(--pc-line-2); border-radius: 10px; }
.card--chicken .platforms .ico { color: var(--pc-gold); }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: auto; }
.card .pc-actions .btn { margin-top: 0; }
.btn--chicken {
  --bg-btn: #f59e0b; --b: transparent; --fg: #191202; --shadow: #b46906;
  background: linear-gradient(180deg, #ffd447, #f59e0b); border-radius: 12px; font-weight: 800;
  box-shadow: 0 6px 0 var(--shadow), 0 12px 24px rgba(245, 158, 11, .3);
}
.btn--chicken:hover { box-shadow: 0 8px 0 var(--shadow), 0 14px 28px rgba(245, 158, 11, .4); }
.btn--chicken:active { box-shadow: 0 2px 0 var(--shadow); }

/* Unfoldly: the card wears unfoldly.app's dark look (black and graphite,
   the teal-to-blue brand gradient, Apple system type, the fold illustration). */
.card--fold {
  --accent: #2fe0cb;
  --uf-bg: #000; --uf-card: #1c1c1e; --uf-line: #38383d; --uf-muted: #a1a1a6;
  --uf-blue: #5b8cff; --uf-teal: #2fe0cb;
  --uf-grad: linear-gradient(135deg, #14c8b4 0%, #2f6bff 100%);
  background: radial-gradient(90% 60% at 0% 0%, rgba(20, 200, 180, .16), transparent 60%), radial-gradient(90% 60% at 100% 0%, rgba(47, 107, 255, .18), transparent 60%), var(--uf-bg);
  border-color: var(--uf-line);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
.card--fold::before { display: none; }
.uf-art { position: relative; padding: 1.75rem 1.5rem .5rem; }
.uf-art__ill { width: 100%; height: auto; max-width: 460px; margin: 0 auto; overflow: visible; }
.uf-frame { fill: #f5f5f7; }
.uf-screen { fill: var(--uf-card); }
.uf-soft { fill: rgba(91, 140, 255, .18); }
.uf-tsoft { fill: rgba(20, 200, 180, .18); }
.uf-line { fill: var(--uf-line); }
.uf-stroke { fill: none; stroke: var(--uf-muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.uf-label { fill: var(--uf-muted); font: 600 15px -apple-system, system-ui, sans-serif; }
.uf-label--desk { fill: var(--uf-blue); }
.uf-art__ill .uf-screen, .uf-art__ill .uf-line { transition: fill .3s; }
.uf-title { display: flex; align-items: center; gap: 1rem; }
.uf-logo { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 4px 12px rgba(47, 107, 255, .35)); transition: transform .4s var(--ease); }
.card--fold:hover .uf-logo { transform: rotate(-6deg) scale(1.06); }
.card--fold h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.uf-tag { display: block; margin-top: .3rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; background: var(--uf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card--fold p { color: var(--uf-muted); }
.card--fold .meta { font-family: inherit; letter-spacing: .06em; }
.card--fold .meta span { color: var(--uf-muted); border-color: var(--uf-line); background: rgba(28, 28, 30, .8); border-radius: 999px; padding: .4em .8em; }
.card--fold .meta .meta__live { color: var(--uf-teal); border-color: rgba(47, 224, 203, .45); }
.card--fold .platforms li { font-family: inherit; color: #f5f5f7; background: var(--uf-card); border-color: var(--uf-line); border-radius: 999px; padding: .45em .85em; }
.card--fold .platforms .ico { color: var(--uf-blue); }
.btn--fold {
  --bg-btn: #2f6bff; --b: transparent; --fg: #fff; --shadow: #1a3fa6;
  background: var(--uf-grad, #2f6bff); border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; font-weight: 600;
}

.btn--fold .ico--store { width: 1.15em; height: 1.15em; }
.btn--fold:hover .ico--store { transform: none; }
.uf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: auto; }
.card .uf-actions .btn { margin-top: 0; }
.btn--fold-ghost {
  --bg-btn: var(--uf-card, #1c1c1e); --b: var(--uf-line, #38383d); --fg: #f5f5f7; --shadow: #000;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; font-weight: 600;
}
.btn--fold-ghost:hover { --b: var(--uf-blue, #5b8cff); }

.card--lab { --accent: var(--amber); gap: 1rem; padding: 1.75rem; border-style: dashed; border-color: var(--line-2); }
.card--lab p { max-width: 62ch; }
.card--lab h3 { font-size: var(--fs-h3); }
.lab-bar { height: 10px; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; max-width: 420px; }
.lab-bar span { display: block; height: 100%; width: 37%; background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 10px); animation: load 6s steps(12) infinite; }
@keyframes load { from { width: 8%; } to { width: 92%; } }
.card--lab .lab-note { font: 600 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--amber); }
.blink { animation: blinkpx 1s steps(2) infinite; }
.filter-empty { margin-top: 1rem; font-family: var(--mono); color: var(--muted); }

/* Ethos */
.section--ethos { border-block: 1px solid var(--line); background: var(--bg-2); }
.ethos { display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ethos__item { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); background: var(--bg); transition: background-color .25s; }
.ethos__item:last-child { border-bottom: 0; }
.ethos__item:hover { background: var(--panel); }
.ethos__item h3 { font-size: var(--fs-h3); margin: 1.25rem 0 .75rem; }
.ethos__item p { color: var(--muted); }
.ethos__num { display: inline-block; font: 700 .85rem/1 var(--mono); color: var(--ink); background: var(--lime); padding: .45em .6em; border-radius: 4px; box-shadow: 3px 3px 0 #4D7C0F; }
.ethos__item:nth-child(2) .ethos__num { background: var(--cyan); box-shadow: 3px 3px 0 #008C96; }
.ethos__item:nth-child(3) .ethos__num { background: var(--amber); box-shadow: 3px 3px 0 #92400E; }
@media (min-width: 900px) {
  .ethos { grid-template-columns: repeat(3, 1fr); }
  .ethos__item { border-bottom: 0; border-right: 1px solid var(--line); }
  .ethos__item:last-child { border-right: 0; }
}

/* Contact */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.contact h2 { font-size: var(--fs-h2); max-width: 18ch; }
.contact__sub { color: var(--muted); max-width: 52ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .75rem; width: 100%; }
.copy {
  display: inline-flex; align-items: stretch; max-width: 100%; min-height: 56px; cursor: pointer; padding: 0;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 0 var(--line-2);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s;
}
.copy:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime); border-color: var(--lime); }
.copy:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lime); }
.copy__addr { display: flex; align-items: center; padding: 0 1.1rem; font: 600 clamp(.8rem, .7rem + .6vw, 1.15rem)/1 var(--mono); white-space: nowrap; text-align: left; }
.copy__icon { display: flex; align-items: center; gap: .45em; padding: 0 1rem; font: 700 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--lime); }
.copy.is-copied .copy__icon { background: var(--cyan); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__links a { font: 500 .875rem/1.6 var(--mono); color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { font: 500 .8rem/1.6 var(--mono); color: var(--muted); }
@media (min-width: 900px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 140%); opacity: 0;
  padding: .75rem 1.1rem; font: 700 .85rem/1 var(--mono); letter-spacing: .08em;
  color: var(--ink); background: var(--lime); border-radius: 8px; box-shadow: 4px 4px 0 #4D7C0F;
  transition: transform .3s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Reveal on scroll (enabled by JS) */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .25s var(--ease), border-color .25s, box-shadow .25s var(--ease), background-color .25s; }
.js .reveal.is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
