/* Hallmark · shape: Marquee Hero, swapped to Stage for the brief · genre: modern-minimal · theme: Cobalt (deal: manual, all three dealt themes were dark and the brief asks for light) · redesign: full · draw: a7dfd7
 * hero: Stage · nav: edge-aligned · footer: statement · imagery: the projects (stand-in renders until photos arrive) · signature: the career drawn as dimension lines on a year ruler
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: P, a portfolio argues little; the ruler and the LED-segment meters say "hardware engineer" without words */
/* Hallmark · waive 44c · hero is Stage with a 4:3 carousel at 60% of the screen · the user asked for a project carousel beside the key facts, not a full-screen picture */
/* Hallmark · reworded "Doświadczenie i edukacja" to "Ścieżka zawodowa" · 8, the section became one ruler */
/* Hallmark · reworded "Praca" to "Praca" lane label · 8, the ruler's lanes are labels, not headings */
/* Hallmark · reworded "Edukacja" to "Edukacja" lane label · 8, the ruler's lanes are labels, not headings */
/* Hallmark · reworded "Projektowanie elektroniki" to the same table caption · 8, skill groups are tables with captions */
/* Hallmark · reworded "RF i high-speed" to the same table caption · 8, skill groups are tables with captions */
/* Hallmark · reworded "Drony i modele RC" to the same table caption · 8, skill groups are tables with captions */
/* Hallmark · reworded "CAD i druk 3D" to the same table caption · 8, skill groups are tables with captions */
/* Hallmark · dropped #nav-links · the mobile menu went with the toggle; section links stay in the nav from 60rem up */
/* Hallmark · omitted the Cobalt ASCII field · the user asked for a plain page with no decorative background */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-paper: oklch(95.6% 0.011 250); --color-paper-2: oklch(93.4% 0.013 252); --color-paper-3: oklch(90.6% 0.015 252);
  --color-rule: oklch(87.6% 0.012 252); --color-rule-2: oklch(80% 0.015 252);
  --color-surface: oklch(99.3% 0.003 250);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
body { font-size: 1.0625rem; }
h3 { font-weight: 500; }
.lead { color: var(--color-ink-2); }

/* Keys */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input);
  background: var(--color-key-face); color: var(--color-ink);
  font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.key:hover { border-color: var(--color-ink-2); }
.key:active { background: var(--color-paper-3); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; transition: none; }
.key:disabled { cursor: not-allowed; color: var(--color-muted); border-color: var(--color-rule); background: var(--color-paper-2); }
.key--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.key--primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.key--primary:active { background: var(--color-accent-edge); }
.key--small { min-height: 40px; padding: 0 var(--space-md); }
.key--icon { min-height: 40px; width: 40px; padding: 0; background: transparent; }

.cut { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; margin: 0; }
@supports (corner-shape: bevel) { .cut { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }

a:not(.key):hover { text-decoration-color: var(--color-accent); }

/* Nav */
.nav__inner { display: flex; align-items: center; gap: var(--space-xl); height: var(--nav-h); }
.nav__name { font: 600 var(--text-lg)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-lg); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); padding: var(--space-xs) 0; }
.nav__lang { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-ink-2); text-decoration: none; padding: var(--space-sm) var(--space-xs); margin-right: calc(var(--space-xl) * -0.5); }
.nav__lang:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* Hero */
.hero { padding-block: var(--space-lg) var(--space-2xl); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { max-width: 10ch; }
.hero .lead { margin-top: var(--space-lg); }
.facts { margin: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.facts div, .spec div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt, .spec dt { font: 500 var(--text-sm)/1.5 var(--font-display); color: var(--color-muted); padding-top: var(--space-3xs); }
.facts dd, .spec dd { margin: 0; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.text-link { font: 500 var(--text-md)/1 var(--font-display); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.25em; padding: var(--space-sm) 0; }
.text-link:hover { color: var(--color-accent); }
.text-link:active { color: var(--color-accent-deep); }

/* Carousel */
.carousel__view { aspect-ratio: 4 / 3; }
.carousel__track { display: flex; height: 100%; transition: transform var(--dur-long) var(--ease-out); }
.carousel__slide { flex: 0 0 100%; margin: 0; height: 100%; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.carousel__caption { font-size: var(--text-sm); color: var(--color-ink-2); }
.carousel__controls { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
.carousel__count { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-muted); margin-right: var(--space-xs); }
.carousel__pause .i-play { display: none; }
.carousel__pause[aria-pressed="true"] .i-play { display: block; }
.carousel__pause[aria-pressed="true"] .i-pause { display: none; }

/* Sections */
.section { padding-block: var(--section-gap-s) var(--section-gap); }
#o-mnie, #about { padding-block: var(--section-gap-s) var(--section-gap-l); }
#doswiadczenie, #experience { padding-top: 0; }
.head { margin-bottom: var(--space-2xl); }
.head .lead { margin-top: var(--space-md); }

/* Projects: one case, then the index */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.case__img { aspect-ratio: 4 / 3; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__text h3 { font-size: var(--text-2xl); font-weight: 600; }
.case__text > p { margin: var(--space-md) 0 var(--space-xl); color: var(--color-ink-2); }
.spec { margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }

.index { list-style: none; margin: var(--space-3xl) 0 0; padding: 0; }
.index__row {
  display: grid; grid-template-columns: 176px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: var(--gap-columns); align-items: start;
  padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule);
}
.index__row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.index__row img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); }
.index__row h3 { font-size: var(--text-lg); }
.index__row p { color: var(--color-ink-2); }
.index__tech { font: 500 var(--text-sm)/1.5 var(--font-display); color: var(--color-accent) !important; }

/* Experience and skills: the ruler on top, then the electronics skills, then hobbies as a quiet footnote row */
.board { padding: var(--space-xl); }
.board__skills { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-3xl); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-2); }
.skill-group h3, .hobby h3 { max-width: none; margin: 0 0 var(--space-md); font: 600 var(--text-lg)/1.2 var(--font-display); letter-spacing: 0; color: var(--color-ink); }
.hobby { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.hobby h3 { font-size: var(--text-md); color: var(--color-ink-2); }
.hobby h4 { margin: 0 0 var(--space-xs); font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-ink); }
.skill + .skill { margin-top: var(--space-md); }
.skill__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); font-size: var(--text-md); line-height: 1.35; margin-bottom: var(--space-xs); }
.skill__lvl { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-ink-2); white-space: nowrap; }
.also { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.also li { display: flex; align-items: baseline; gap: var(--space-sm); font-size: var(--text-md); line-height: 1.35; }
.also li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--color-accent); transform: translateY(-2px); }
.also--quiet { gap: var(--space-2xs); }
.also--quiet li { font-size: var(--text-sm); color: var(--color-ink-2); }
.also--quiet li::before { background: var(--color-rule-2); }
.skill__note { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }

/* LED-segment meter: ten cells across the column, the lit ones carry the level */
.meter { display: flex; gap: var(--space-3xs); }
.meter i { flex: 1; height: 8px; border-radius: 1px; background: var(--color-paper-3); }
.meter[data-v="1"] i:nth-child(-n+1), .meter[data-v="2"] i:nth-child(-n+2), .meter[data-v="3"] i:nth-child(-n+3),
.meter[data-v="4"] i:nth-child(-n+4), .meter[data-v="5"] i:nth-child(-n+5), .meter[data-v="6"] i:nth-child(-n+6),
.meter[data-v="7"] i:nth-child(-n+7), .meter[data-v="8"] i:nth-child(-n+8), .meter[data-v="9"] i:nth-child(-n+9),
.meter[data-v="10"] i { background: var(--color-accent); }

/* Career ruler: each role is a dimension line over the months it covers (lines 1 to 49 = January 2023 to the end of 2026) */
.ruler { display: grid; grid-template-columns: 8rem repeat(48, minmax(0, 1fr)); column-gap: 0; row-gap: var(--space-lg); }
.ruler__scale { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.ruler__scale span { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-muted); padding: 0 0 var(--space-sm) var(--space-xs); border-left: var(--rule-hair) solid var(--color-rule-2); font-variant-numeric: tabular-nums; }
.ruler__lane { grid-column: 1; font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); padding-top: var(--space-xs); }
.ruler__lane:nth-of-type(1) { grid-row: 2; }
.ruler__lane:nth-of-type(2) { grid-row: 3; }
.span { grid-column: calc(var(--from) + 1) / calc(var(--to) + 1); position: relative; padding: var(--space-sm) var(--space-md) 0; border-top: 2px solid var(--color-ink-2); }
.span::before, .span::after { content: ""; position: absolute; top: -8px; width: 2px; height: 14px; background: var(--color-ink-2); }
.span::before { left: 0; }
.span::after { right: 0; }
.span--work { border-top-color: var(--color-accent); }
.span--work::before, .span--work::after { background: var(--color-accent); }
.span--open { border-top-style: solid; }
.span--open::after { display: none; }
.span--start-open::before { display: none; }
.span--start-open { border-top-style: dashed; }
.ruler .span:nth-of-type(2), .ruler .span:nth-of-type(3) { grid-row: 2; }
.ruler .span:nth-of-type(4), .ruler .span:nth-of-type(5) { grid-row: 3; }
.span__date { font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.span h3 { margin-top: var(--space-3xs); font-size: var(--text-md); font-weight: 600; letter-spacing: 0; }
.span__org { font-size: var(--text-sm); color: var(--color-ink-2); }
.span__duties { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink); }
.span__duties li { display: flex; align-items: baseline; gap: var(--space-xs); }
.span__duties li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px; background: var(--color-accent); transform: translateY(-2px); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.portrait { aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.about__text h2 { margin-bottom: var(--space-xl); }
.about__text p + p { margin-top: var(--space-md); }

/* Footer: the contact as the closing statement */
.footer { padding-block: var(--section-gap-s) var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__head { font-size: var(--text-title); font-weight: 500; color: var(--color-ink-2); }
.footer__mail { display: inline-block; margin-top: var(--space-md); font: 600 var(--text-display-s)/1.1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-decoration-thickness: 2px; text-underline-offset: 0.12em; overflow-wrap: anywhere; }
.footer__mail:hover { color: var(--color-accent); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-lg); }
.footer__links a { font-weight: 500; }
.footer__legal { font-size: var(--text-sm); color: var(--color-muted); }

/* Ground and sheets: a tinted ground, white sheets where the content is the drawing */
.sheet { background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.cut { background: var(--color-surface); box-shadow: var(--shadow-card); }

/* Nav and hero sit on one white band; the rest of the page is on the tinted ground */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-surface); border-bottom: var(--rule-hair) solid transparent; transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--color-rule); box-shadow: var(--shadow-card); }
.hero { background: var(--color-surface); border-bottom: var(--rule-hair) solid var(--color-rule); }
.hero .cut { box-shadow: none; }

/* Projects: the opened case is one sheet */
.case { padding: var(--space-xl); }
.case__img { box-shadow: none; }
.index__row img { background: var(--color-surface); }


/* Ruler: a drawing sheet with the year lines carried through every lane */
.ruler { position: relative; }
.ruler::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 8rem; right: 0;
  background: var(--color-rule); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='8' viewBox='0 0 1000 8' preserveAspectRatio='none'%3E%3Crect width='3' height='4'/%3E%3C/svg%3E") 0 0 / 25% 8px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='8' viewBox='0 0 1000 8' preserveAspectRatio='none'%3E%3Crect width='3' height='4'/%3E%3C/svg%3E") 0 0 / 25% 8px repeat;
}
.ruler > * { position: relative; }
.span { background: var(--color-surface); }

/* Footer: the one graphite band closes the page */
.footer { background: var(--color-graphite); color: var(--color-graphite-ink); border-top: 0; }
.footer__head { color: var(--color-graphite-muted); }
.footer__mail { color: var(--color-graphite-ink); text-decoration-color: var(--color-graphite-glyph-2); }
.footer__mail:hover { color: var(--color-accent-2); text-decoration-color: var(--color-accent-2); }
.footer__row { border-top-color: var(--color-graphite-2); }
.footer__links a { color: var(--color-graphite-ink); text-decoration-color: var(--color-graphite-glyph-2); }
.footer__links a:hover { color: var(--color-accent-2); text-decoration-color: var(--color-accent-2); }
.footer__legal { color: var(--color-graphite-muted); }
.footer :focus-visible { outline-color: var(--color-accent-2); }

/* Responsive */
@media (max-width: 60rem) {
  .nav__links { display: none; }
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__grid, .case, .about, .head--split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .index__row { grid-template-columns: 144px minmax(0, 1fr); }
  .index__row h3 { grid-column: 2; }
  .index__row p { grid-column: 2; }
  .index__row img { grid-row: 1 / span 3; }
  .portrait { max-width: 320px; }
  .ruler { display: block; }
  .ruler::before { display: none; }
  .case, .board { padding: var(--space-lg); }
  .board__skills { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-xl); }
  .hobby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hobby h3 { grid-column: 1 / -1; margin-bottom: 0; }
  .ruler__scale { display: none; }
  .ruler__lane { padding: 0 0 var(--space-sm); border: 0 !important; }
  .ruler__lane:nth-of-type(2) { margin-top: var(--space-2xl); }
  .span { margin: 0 0 var(--space-lg) !important; }
}
@media (max-width: 40rem) {
  .index__row { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-md); }
  .facts div, .spec div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hobby { grid-template-columns: minmax(0, 1fr); }
  .nav__inner { gap: var(--space-md); }
  .nav__lang { margin-right: 0; }
  .nav__name { font-size: var(--text-md); }
  .footer__mail { font-size: var(--text-xl); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { transition: none; }
}

/* ───────────────────────── Visual refresh: texture, structure, depth ─────────────────────────
 * The page read as blank: one flat tint, nothing marking where sections start, thin project rows.
 * Added: a drafting grid behind the hero, numbered section markers,
 * project cards with tag chips, a monogram plate in place of the empty portrait, and a textured footer. */
:root {
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-raised: 0 1px 2px oklch(21% 0.028 262 / 0.06), 0 18px 40px -18px oklch(30% 0.08 262 / 0.22);
  --shadow-lift: 0 1px 2px oklch(21% 0.028 262 / 0.06), 0 28px 56px -22px oklch(40% 0.16 262 / 0.32);
  --grid-line: color-mix(in oklab, var(--color-accent) 9%, transparent);
  --dot: color-mix(in oklab, var(--color-ink) 10%, transparent);
}

/* Ground: a faint dot matrix, like perfboard, under every tinted section */
body { background-color: var(--color-paper); background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0); background-size: 24px 24px; }

/* Technical labels in mono */
.facts dt, .spec dt, .span__date, .ruler__scale span, .ruler__lane, .skill__lvl, .carousel__count, .footer__legal {
  font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.01em;
}
.facts dt, .spec dt, .ruler__lane { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; }

/* Nav: frosted, with a small board mark before the name */
.nav { background: color-mix(in oklab, var(--color-surface) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav__name { display: inline-flex; align-items: center; gap: var(--space-sm); }
.nav__name::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 6px;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='10' y='10' width='12' height='12' rx='1.5' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M13 10V6M19 10V6M13 26v-4M19 26v-4M6 13h4M6 19h4M22 13h4M22 19h4' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Eyebrows */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-lg);
  padding: 6px 14px 6px 10px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: var(--color-surface); box-shadow: var(--shadow-card);
  font: 500 var(--text-xs)/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-2);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: oklch(62% 0.15 150); }
.eyebrow--num { padding: 0; border: 0; background: none; box-shadow: none; gap: var(--space-sm); color: var(--color-accent); font-size: var(--text-sm); }
.eyebrow--num::after { content: ""; width: 40px; height: 1px; background: var(--color-accent); }
.eyebrow--dark { color: var(--color-accent-2); }
.eyebrow--dark::after { background: var(--color-accent-2); }

/* Hero: a faint drafting grid */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(color-mix(in oklab, var(--color-accent) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--color-accent) 4%, transparent) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%); mask: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
}
.hero .carousel__view { box-shadow: var(--shadow-lift); }
.hero .facts { background: color-mix(in oklab, var(--color-surface) 70%, transparent); }
/* The controls sit on a solid strip */
.hero .carousel__bar { padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.hero .key--icon { background: var(--color-surface); }


/* Sheets lift a little more off the dotted ground */
.sheet, .cut { box-shadow: var(--shadow-raised); }
.case { position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--color-accent); }
.case__img { box-shadow: none; }

/* Project index becomes a card grid */
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.index__row, .index__row:last-child {
  display: flex; flex-direction: column; gap: var(--space-sm); padding: 0 0 var(--space-lg);
  background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-raised); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.index__row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in oklab, var(--color-accent) 35%, var(--color-rule)); }
.index__row img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #e6ebf3; border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; margin-bottom: var(--space-xs); }
.index__row > :not(img) { margin-inline: var(--space-lg); }
.index__row h3 { font-size: var(--text-xl); font-weight: 600; }
.tags { list-style: none; margin-top: auto !important; padding: var(--space-xs) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tags li { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--color-accent-wash); color: var(--color-accent-deep); font: 500 var(--text-xs)/1.2 var(--font-mono); }
.case .spec dd { font-family: var(--font-display); }

/* LED meters */
.meter i { height: 10px; border-radius: 2px; }
.span__duties li, .also li { font-size: var(--text-sm); }

/* About: monogram plate until a portrait arrives */
.portrait { background: var(--color-graphite); border-color: var(--color-graphite-2); }
.portrait__mark {
  position: relative; height: 100%; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(color-mix(in oklab, var(--color-accent-2) 12%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, color-mix(in oklab, var(--color-accent-2) 12%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--color-graphite);
}
.portrait__mono { font: 600 clamp(5rem, 10vw, 9rem)/1 var(--font-display); letter-spacing: -0.06em; color: var(--color-graphite-ink); }
.portrait__label { position: absolute; left: var(--space-lg); bottom: var(--space-lg); font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-graphite-muted); }
.portrait__mark::before, .portrait__mark::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--color-accent-2); opacity: 0.7; }
.portrait__mark::before { top: var(--space-lg); right: var(--space-lg); border-left: 0; border-bottom: 0; }
.portrait__mark::after { bottom: var(--space-lg); right: var(--space-lg); border-left: 0; border-top: 0; }
.about__text h2 + p { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink); }
.about__text p:not(.eyebrow) { color: var(--color-ink-2); }
.about__text h2 + p { color: var(--color-ink); }

/* Footer: a faint grid behind the closing statement */
.footer { position: relative; isolation: isolate; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(color-mix(in oklab, var(--color-accent-2) 7%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, color-mix(in oklab, var(--color-accent-2) 7%, transparent) 1px, transparent 1px) 0 0 / 48px 48px;
}
.footer__lead { margin-top: var(--space-sm); font-size: var(--text-lead); color: var(--color-graphite-muted); max-width: 48ch; }
.footer__mail { margin-top: var(--space-lg); }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 60rem) {
  .index__row h3, .index__row p { grid-column: auto; }
}
@media (max-width: 40rem) {
  .index { grid-template-columns: minmax(0, 1fr); }
  .index__row { padding-bottom: var(--space-md); }
  .index__row > :not(img) { margin-inline: var(--space-md); }
  .eyebrow { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; }
  .index__row:hover { transform: none; }
}
