/* ──────────────────────────────────────────────────────────────
   Bryce Jankowiak — Portfolio
   Tailwind handles layout/spacing/color.
   This file = local Inter font, square motif system, full-screen
   sections, ambient background canvas, color washes, buttons,
   project cards, hover states, animations.

   Square motif ratios:
   - filled:        1 × 1
   - outline:       0.18 × side
   - inside dot:    0.30 × side  (each-edge inset = 35%)
   ────────────────────────────────────────────────────────────── */

/* ── Inter (local variable font) ─────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('assets/font/Inter-VariableFont_opsz.ttf') format('truetype-variations'),
       url('assets/font/Inter-VariableFont_opsz.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/font/Inter-Italic-VariableFont_opsz.ttf') format('truetype-variations'),
       url('assets/font/Inter-Italic-VariableFont_opsz.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --ink:   #070707;
  --char:  #0f0f0f;
  --panel: #161616;
  --line:  #242424;
  --line2: #353535;
  --mute:  #8a8a8a;
  --soft:  #b8b8b4;
  --bone:  #ececea;
  /* Primary accent (was lime). Now a luminous white / light-gray
     ramp used for the live dot, primary CTA, hero gradient, motif
     accents, etc. Category tints (violet/cyan/etc.) stay colorful. */
  --lime:  #ececea;
  --lime2: #ffffff;
  --lime3: #b8b8b4;
  --violet:#a78bfa;
  --indigo:#6366f1;
  --cyan:  #38bdf8;
  --blue:  #2563eb;
  --coral: #ff9966;
  --rose:  #ff5e62;
  --pink:  #ff6b9d;
  --magenta:#c44ad7;
  --teal:  #34d399;
  --aqua:  #06b6d4;
  --amber: #fbbf24;
  --orange:#f97316;
  --nav-h: 68px;
  --anchor-offset: var(--nav-h);
  --section-pad-x: 20px;
  --section-pad-y: clamp(72px, 10vw, 136px);
  --section-pad-y-end: clamp(84px, 11vw, 152px);
}

/* ── Base ────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  /* Anchor jumps and section settling land below the sticky navigation. */
  overflow-x: hidden;
}
body {
  background: var(--ink);
  color: var(--bone);
  font-feature-settings: "ss01", "cv11";
  font-variation-settings: "opsz" 16;
  overflow-x: clip;
}
main { overflow-x: clip; }
body:not(.work-locked) {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
::selection { background: var(--lime); color: var(--ink); }
img { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@supports not (overflow-x: clip) {
  body,
  main { overflow-x: hidden; }
}

/* Editorial caps label */
.label {
  font-weight: 500;
  font-feature-settings: "tnum", "ss01";
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10.5px;
  color: var(--mute);
}
.label--bone { color: var(--bone); }
.label--lime { color: var(--lime); }

/* ── Crown logo ──────────────────────────────────────────────── */
.crown {
  display: block;
  width: 20px;
  height: auto;
  color: var(--bone);
  transition: color .2s ease;
}
.crown--sm     { width: 16px; }
.crown--accent { color: var(--lime); }
a:hover .crown { color: var(--lime); }

/* ── Ambient background canvas (fixed, full viewport) ─────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  /* Vertical fade — full at top, transparent at bottom */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0) 100%);
}
.ambient-bg canvas { display: block; width: 100%; height: 100%; }

/* ── Square motif primitives ─────────────────────────────────── */
.sq {
  display: inline-block;
  width: 10px; height: 10px;
  flex: 0 0 auto;
  vertical-align: middle;
  position: relative;
}
.sq--fill    { background: var(--bone); }
.sq--outline { box-shadow: inset 0 0 0 2px var(--bone); }
.sq--center  { box-shadow: inset 0 0 0 2px var(--bone); }
.sq--center::after { content: ""; position: absolute; inset: 35%; background: var(--bone); }
.sq--accent.sq--fill    { background: var(--lime); }
.sq--accent.sq--outline { box-shadow: inset 0 0 0 2px var(--lime); }
.sq--accent.sq--center  { box-shadow: inset 0 0 0 2px var(--lime); }
.sq--accent.sq--center::after { background: var(--lime); }

.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--lime);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); opacity: 1; }
  50%     { box-shadow: 0 0 0 4px rgba(255,255,255,0); opacity: 0.7; }
}

/* ── Icon tile ───────────────────────────────────────────────── */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border: 1.5px solid var(--bone);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  color: var(--bone);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.icon-tile svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: square; stroke-linejoin: miter;
}
.icon-tile--btn  { width: 28px; height: 28px; }
.icon-tile--btn svg { width: 13px; height: 13px; }
.icon-tile--right { margin-left: 4px; }
.icon-tile--lg   { width: 32px; height: 32px; }
.icon-tile--lg svg { width: 15px; height: 15px; }
.icon-tile--accent {
  border-color: var(--lime); color: var(--lime);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
}

/* ── Buttons (gradient + right action tile) ──────────────────── */
.btn-square {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border: 1.5px solid var(--line2);
  background: linear-gradient(180deg, #1c1c1c 0%, var(--char) 100%);
  color: var(--bone);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.btn-square--sm { padding: 8px 10px 8px 14px; font-size: 10.5px; gap: 10px; }
.btn-square:hover {
  border-color: var(--bone);
  background: linear-gradient(180deg, #262626 0%, #181818 100%);
}

.btn-square--primary {
  border-color: var(--lime3);
  color: var(--ink);
  background: linear-gradient(180deg, var(--lime2) 0%, var(--lime) 55%, var(--lime3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 8px 28px -10px rgba(255,255,255,0.4);
}
.btn-square--primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f3 55%, var(--lime) 100%);
  border-color: var(--bone);
}
.btn-square--primary .icon-tile {
  border-color: var(--ink); color: var(--ink);
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0));
}

/* Colored gradient button (uses tint vars) */
.btn-square--tint {
  border-color: transparent;
  color: var(--bone);
  background: linear-gradient(180deg, var(--tint-a, var(--violet)) 0%, var(--tint-b, var(--indigo)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 8px 28px -10px color-mix(in srgb, var(--tint-b, var(--indigo)) 50%, transparent);
}
.btn-square--tint:hover { filter: brightness(1.08); }
.btn-square--tint .icon-tile { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }

.btn-square--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--mute);
}
.btn-square--ghost:hover { color: var(--bone); border-color: var(--bone); background: rgba(255,255,255,0.02); }
.btn-square--ghost .icon-tile { border-color: var(--line2); color: var(--mute); }
.btn-square--ghost:hover .icon-tile { border-color: var(--bone); color: var(--bone); }

/* ── Tags ────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag-square {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  color: var(--bone);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--soft);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.nav-link .icon-tile { border-color: var(--line2); color: var(--mute); }
.nav-link:hover,
.nav-link.is-active { color: var(--bone); background: linear-gradient(180deg, #1a1a1a, var(--char)); }
.nav-link:hover .icon-tile,
.nav-link.is-active .icon-tile {
  border-color: var(--lime); color: var(--lime);
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px; bottom: 6px;
  width: 6px; height: 6px;
  background: var(--lime);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { opacity: 1; transform: translateY(0); }

/* ── Section system ──────────────────────────────────────────
   Full-viewport scroll targets, with their own tinted radial
   wash. Stays transparent enough that the ambient canvas shows.
*/
.section {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  scroll-margin-top: var(--anchor-offset);
  isolation: isolate;
}
.section__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x) var(--section-pad-y-end);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  :root { --section-pad-x: 40px; }
}

@media (max-width: 767px) {
  :root {
    --anchor-offset: var(--nav-h);
    --section-pad-y: 64px;
    --section-pad-y-end: 80px;
  }

  .section {
    min-height: auto;
  }

  .section--hero {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
  }

  .section__inner {
    justify-content: flex-start;
  }
}

.section__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.step-num {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tint-a, var(--lime));
}
.step-label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}

/* Section-specific tint vars — drives wash + headline gradients */
.section--hero    { --tint-a: var(--lime2);  --tint-b: var(--lime3); }
.section--studio  { --tint-a: var(--violet); --tint-b: var(--indigo); }
.section--work    { --tint-a: var(--cyan);   --tint-b: var(--blue); }
.section--contact { --tint-a: var(--coral);  --tint-b: var(--rose); }

/* Default wash — large soft radial of section's tint A in one corner,
   tint B in the opposite corner */
.section__wash--default {
  background:
    radial-gradient(ellipse 70% 60% at 12% 18%,
      color-mix(in srgb, var(--tint-a) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 60% at 88% 88%,
      color-mix(in srgb, var(--tint-b) 14%, transparent), transparent 60%);
}

/* Gradient headline helper (used by display H1/H2) */
.h-gradient {
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.h-soft {
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone) 35%, var(--bone)/40 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ── Hero motif frame ───────────────────────────────────────── */
.motif-frame {
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #131313, #080808);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}

/* ── Hero motif grid (varied grayscale) ─────────────────────── */
.motif-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  aspect-ratio: 6 / 7;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(180deg, #181818, #0d0d0d);
}
.motif-cell {
  position: relative;
  width: 100%; height: 100%;
  transition: background .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.motif-cell.is-fill-light { background: #ececea; }
.motif-cell.is-fill-mid   { background: #8a8a8a; }
.motif-cell.is-fill-dark  { background: #3a3a3a; }
.motif-cell.is-fill-deep  { background: #1c1c1c; }
.motif-cell.is-outline       { box-shadow: inset 0 0 0 8px var(--bone); }
.motif-cell.is-outline-mid   { box-shadow: inset 0 0 0 8px #8a8a8a; }
.motif-cell.is-outline-dim   { box-shadow: inset 0 0 0 8px #3a3a3a; }
.motif-cell.is-center        { box-shadow: inset 0 0 0 8px var(--bone); }
.motif-cell.is-center::after { content: ""; position: absolute; inset: 35%; background: var(--bone); }
.motif-cell.is-center-mid       { box-shadow: inset 0 0 0 8px #8a8a8a; }
.motif-cell.is-center-mid::after{ content: ""; position: absolute; inset: 35%; background: #8a8a8a; }
.motif-cell.is-center-dim       { box-shadow: inset 0 0 0 8px #3a3a3a; }
.motif-cell.is-center-dim::after{ content: ""; position: absolute; inset: 35%; background: #3a3a3a; }
.motif-cell.is-accent.is-fill-light,
.motif-cell.is-accent.is-fill-mid,
.motif-cell.is-accent.is-fill-dark,
.motif-cell.is-accent.is-fill-deep { background: var(--lime); }
.motif-cell.is-accent.is-outline,
.motif-cell.is-accent.is-outline-mid,
.motif-cell.is-accent.is-outline-dim,
.motif-cell.is-accent.is-center,
.motif-cell.is-accent.is-center-mid,
.motif-cell.is-accent.is-center-dim { box-shadow: inset 0 0 0 8px var(--lime); }
.motif-cell.is-accent.is-center::after,
.motif-cell.is-accent.is-center-mid::after,
.motif-cell.is-accent.is-center-dim::after { background: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .motif-cell { animation: cellPulse 5.5s ease-in-out infinite; }
  @keyframes cellPulse {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50%      { opacity: 0.82; filter: brightness(1.12); }
  }
}

/* ── Studio stat cells ──────────────────────────────────────── */
.stat-cell {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.85));
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .2s ease;
  backdrop-filter: blur(4px);
}
.stat-cell:hover { background: linear-gradient(180deg, rgba(28,28,28,0.9), rgba(19,19,19,0.9)); }
.stat-cell__label {
  font-weight: 500; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mute); margin-top: 12px;
}
.stat-cell__value { font-size: 14px; color: var(--bone); font-weight: 500; }
.stat-cell--accent {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), transparent 70%),
    linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.85));
}

/* ── Project cards ───────────────────────────────────────────
   Each card carries [data-tint]. Card body monochrome,
   accent color lives on the strip, thumb wash, corner, foot hover.
*/
.project-card {
  --tint-a: #e7e7e3;
  --tint-b: #8a8a8a;

  position: relative;
  background: linear-gradient(180deg, rgba(22,22,22,0.85) 0%, rgba(15,15,15,0.85) 100%);
  display: flex;
  flex-direction: column;
  transition: background .2s ease, transform .2s ease;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tint-a), var(--tint-b));
  z-index: 3;
}
.project-card:hover {
  background: linear-gradient(180deg, rgba(31,31,31,0.9) 0%, rgba(20,20,20,0.9) 100%);
}

.project-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
}

.project-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 25%, color-mix(in srgb, var(--tint-a) 22%, transparent), transparent 60%),
    radial-gradient(ellipse at 80% 80%, color-mix(in srgb, var(--tint-b) 18%, transparent), transparent 55%),
    linear-gradient(135deg, #131313 0%, #080808 100%);
  transition: background .3s ease;
}
.project-thumb canvas { display: block; width: 100%; height: 100%; }

.project-corner {
  position: absolute;
  top: 14px; right: 14px;
  width: 16px; height: 16px;
  box-shadow: inset 0 0 0 3px var(--tint-a);
  z-index: 2;
}
.project-corner::after {
  content: ""; position: absolute; inset: 35%; background: var(--tint-a);
}

.project-card__body {
  padding: 22px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--bone); }
.project-card__desc  { font-size: 13.5px; color: var(--mute); line-height: 1.6; }
.project-card__meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(255,255,255,0.02));
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color .2s ease, background .2s ease;
}
.project-card:hover .project-card__foot {
  color: var(--bone);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tint-a) 14%, transparent),
    color-mix(in srgb, var(--tint-b) 8%, transparent));
}
.project-card__foot .icon-tile { border-color: var(--line2); color: var(--mute); transition: border-color .2s, color .2s, background .2s; }
.project-card:hover .project-card__foot .icon-tile {
  border-color: var(--tint-a); color: var(--tint-a);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint-a) 22%, transparent), transparent);
}

/* Tints */
.project-card[data-tint="lime"]    { --tint-a: #ffffff; --tint-b: #b8b8b4; }
.project-card[data-tint="violet"]  { --tint-a: #a78bfa; --tint-b: #6366f1; }
.project-card[data-tint="cyan"]    { --tint-a: #38bdf8; --tint-b: #2563eb; }
.project-card[data-tint="coral"]   { --tint-a: #ff9966; --tint-b: #ff5e62; }
.project-card[data-tint="magenta"] { --tint-a: #ff6b9d; --tint-b: #c44ad7; }
.project-card[data-tint="teal"]    { --tint-a: #34d399; --tint-b: #06b6d4; }
.project-card[data-tint="amber"]   { --tint-a: #fbbf24; --tint-b: #f97316; }

.project-card--featured { grid-column: span 1 / span 1; }
@media (min-width: 1024px) { .project-card--featured { grid-column: span 2 / span 2; } }
.project-card--featured .project-thumb { aspect-ratio: 8 / 5; }
.project-card--featured .project-card__title { font-size: 22px; }

/* ── Work-page category sections ────────────────────────────
   Each category renders as a full-screen scroll target with
   its own gradient wash and a horizontal works showcase. */
.cat-section {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
  scroll-margin-top: var(--anchor-offset);
  isolation: isolate;
}
.cat-section__inner {
  max-width: 1400px; width: 100%;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x) var(--section-pad-y-end);
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.cat-section__head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.cat-section__index {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; font-size: 10.5px; color: var(--mute);
}
.cat-section__num   { color: var(--tint-a); }
.cat-section__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--bone);
}
@media (min-width: 768px)  { .cat-section__title { font-size: 76px; } }
@media (min-width: 1100px) { .cat-section__title { font-size: 104px; } }
.cat-section__title-grad {
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.cat-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px)  { .cat-works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cat-works { grid-template-columns: repeat(3, 1fr); } }

.cat-work {
  background: linear-gradient(180deg, rgba(22,22,22,0.85), rgba(15,15,15,0.85));
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  position: relative;
  transition: background .2s ease;
  backdrop-filter: blur(4px);
}
.cat-work:hover {
  background: linear-gradient(180deg, rgba(28,28,28,0.92), rgba(19,19,19,0.92));
}
.cat-work__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.cat-work__head .label--tint { color: var(--tint-a); }
.cat-work__title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--bone); line-height: 1.15; }
.cat-work__desc  { font-size: 13.5px; color: var(--soft); line-height: 1.6; }
.cat-work__meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
}
.cat-work__corner {
  position: absolute;
  top: 18px; right: 18px;
  width: 14px; height: 14px;
  box-shadow: inset 0 0 0 3px var(--tint-a);
  transition: box-shadow .2s ease;
}
.cat-work__corner::after {
  content: ""; position: absolute; inset: 35%;
  background: var(--tint-a);
}
.cat-work:hover .cat-work__corner { box-shadow: inset 0 0 0 3px var(--bone); }
.cat-work:hover .cat-work__corner::after { background: var(--bone); }

@media (max-width: 767px) {
  .cat-section {
    min-height: auto;
  }

  .cat-section__inner {
    justify-content: flex-start;
  }

  .cat-work {
    min-height: 220px;
  }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, #050505 60%);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   POLISH PASS — hierarchy, depth, hover refinement, mobile.
   Appended last so these overrides win without restructuring.
   ────────────────────────────────────────────────────────────── */

/* Section boundaries: connect sections with a faint gradient hairline
   and a subtle top-vignette so they layer instead of butting flat */
.section + .section,
.section + #cat-sections .cat-section,
.cat-section + .cat-section {
  position: relative;
}
.section + .section::before,
.section + #cat-sections > .cat-section::before,
.cat-section + .cat-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(236,236,234,0.10) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* A soft top-light vignette on every full-screen section gives
   gentle layering as you scroll between them */
.section__wash--default::after,
.cat-section .section__wash--default::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 18%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Section heads: more deliberate hierarchy */
.section__head { margin-bottom: 36px; gap: 14px; }
@media (min-width: 768px) { .section__head { margin-bottom: 48px; } }
.step-num   { font-weight: 600; font-size: 11px; }
.step-label { font-weight: 500; color: var(--soft); }

/* Hero name: gradient JANKOWIAK stays on a single line at every
   width. The clamp is sized so the longest word (9 characters at
   Inter Black, tracking -0.035em ≈ 4.4em wide) never overflows
   the col-span-7 container at the lg breakpoint. */
.section--hero h1 {
  font-size: clamp(52px, 12.8vw, 136px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.section--hero h1 > span { display: block; max-width: 100%; }
.section--hero h1 .h-gradient {
  background: linear-gradient(180deg, var(--tint-a) 0%, var(--tint-b) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--tint-a) 25%, transparent));
}

/* Studio + Contact + Work headings get a touch more luminance */
.section--studio h2 .h-gradient,
.section--contact h2 .h-gradient,
.cat-section__title-grad {
  filter: drop-shadow(0 4px 24px color-mix(in srgb, var(--tint-a) 22%, transparent));
}

/* Body copy: tighter measure and weight for better hierarchy */
.section--hero p,
.section--studio p { font-weight: 400; }

/* ── Navigation — softer, more premium ───────────────────── */
.nav-link {
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover,
.nav-link.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.nav-link .icon-tile {
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.nav-link::after {
  bottom: 8px;
  transition: opacity .25s ease, transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: translateY(0); }

/* ── Buttons — refined feedback ──────────────────────────── */
.btn-square {
  transition:
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    transform .12s ease,
    box-shadow .22s ease;
}
.btn-square:hover { transform: translateY(-1px); }
.btn-square:active { transform: translateY(0); }

.btn-square--primary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 10px 30px -10px rgba(255,255,255,0.42);
}
.btn-square--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.36),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 14px 36px -10px rgba(255,255,255,0.52);
}

.btn-square--tint:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Project cards — premium lift on hover ──────────────── */
.project-card {
  transition:
    background .25s ease,
    transform .25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .25s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 40px -20px rgba(0,0,0,0.55),
    0 0 0 1px color-mix(in srgb, var(--tint-a) 22%, transparent);
}
.project-card__head {
  padding: 12px 16px;
}
.project-card__title { line-height: 1.18; }
.project-card__desc  { font-size: 14px; }
.project-card__foot  { padding: 13px 16px; }

/* The 4px top accent bar gets a soft inner glow tied to the tint */
.project-card::before {
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--tint-a) 35%, transparent);
}

/* ── Cat-section works — same premium lift ──────────────── */
.cat-work {
  transition:
    background .25s ease,
    transform .25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .25s ease;
}
.cat-work:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -18px rgba(0,0,0,0.55),
    0 0 0 1px color-mix(in srgb, var(--tint-a) 22%, transparent);
}

/* ── Stat cells — gentle hover lift ─────────────────────── */
.stat-cell { transition: background .22s ease, transform .22s ease; }
.stat-cell:hover { transform: translateY(-1px); }

/* ── Motif frame — refined frame ────────────────────────── */
.motif-frame {
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.02);
}

/* ── Status bar / live-dot tighten ──────────────────────── */
.live-dot { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }

/* ── Headlines: enforce safe overflow ───────────────────── */
h1, h2, h3 { max-width: 100%; overflow-wrap: break-word; }

/* ── Mobile polish ──────────────────────────────────────── */
@media (max-width: 767px) {
  .section__inner { padding: 56px 20px 80px; }
  .section__head { margin-bottom: 28px; }

  /* Hero name scales down smoothly */
  .section--hero h1 { line-height: 0.92; letter-spacing: -0.025em; }

  /* Contact heading: smaller and tighter */
  .section--contact h2 { line-height: 0.92; }

  /* Bigger touch targets in the mobile drawer */
  #nav-drawer li > a {
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 13px;
  }

  /* Motif frame doesn't dominate on mobile */
  .motif-frame { max-width: 360px; margin: 0 auto; }

  /* Stat cells: two columns reads cleaner than four at small width */
  .stat-cell { padding: 18px 16px; }
}

/* Tablet polish */
@media (min-width: 768px) and (max-width: 1023px) {
  .section__inner { padding: 72px 36px 96px; }
}

/* ── Horizontal-overflow safety net ─────────────────────── */
body, main, .section, .cat-section { max-width: 100vw; }

/* ── Gradient text rendering hint ───────────────────────── */
.h-gradient,
.cat-section__title-grad {
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

/* ──────────────────────────────────────────────────────────────
   WORK APP — 3-column non-scrolling gallery
   ────────────────────────────────────────────────────────────── */

/* Lock the page to viewport — desktop only */
@media (min-width: 1024px) {
  body.work-locked {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}

.work-app {
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  width: 100%;
  position: relative;
}
@media (max-width: 1023px) { .work-app { height: auto; min-height: calc(100svh - var(--nav-h)); } }

.work-app__shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 768px)  { .work-app__shell { grid-template-columns: 32% 1fr; } }
@media (min-width: 1024px) { .work-app__shell { grid-template-columns: 18% 24% 1fr; } }

.work-col {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.85) 0%, rgba(15,15,15,0.92) 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.work-col--view {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, color-mix(in srgb, var(--tint-a, #ffffff) 8%, transparent), transparent 65%),
    radial-gradient(ellipse 60% 60% at 10% 100%, color-mix(in srgb, var(--tint-b, #b8b8b4) 6%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,0.92), rgba(8,8,8,0.95));
  transition: background .4s ease;
}

/* Tablet: cats + list collapse into one column (cats on top) */
@media (min-width: 768px) and (max-width: 1023px) {
  .work-col--cats { display: none; } /* compress cats into top of list column */
  .work-col--list { border-bottom: 0; }
}

/* Mobile: stacked columns, body scrolls */
@media (max-width: 767px) {
  .work-app__shell { display: block; }
  .work-col { min-height: 0; }
  .work-col--cats, .work-col--list { border-bottom: 1px solid var(--line); }
}

/* Column headers */
.work-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.20));
  flex: 0 0 auto;
}
.work-col__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ── Categories list ────────────────────────────────────── */
.work-cat-list {
  list-style: none;
  margin: 0; padding: 8px 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.work-cat {
  --tint-a: #ffffff;
  --tint-b: #b8b8b4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
}
.work-cat__chev {
  font-size: 12px;
  color: var(--line2);
  transition: color .2s ease, transform .2s ease;
}
.work-cat__count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.work-cat:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent);
  color: var(--bone);
}
.work-cat:hover .work-cat__chev { color: var(--soft); transform: translateX(2px); }
.work-cat.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint-a) 12%, transparent), transparent 70%);
  color: var(--bone);
  border-left-color: var(--tint-a);
}
.work-cat.is-active .work-cat__chev { color: var(--tint-a); }
.work-cat.is-active .work-cat__count { color: var(--tint-a); }

/* ── Project list ───────────────────────────────────────── */
.work-list {
  list-style: none;
  margin: 0; padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.work-list__item {
  --tint-a: #ffffff;
  --tint-b: #b8b8b4;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(36,36,36,0.6);
  transition: background .2s ease, border-color .2s ease;
}
.work-list__item:last-child { border-bottom: 0; }
.work-list__item:hover { background: rgba(255,255,255,0.025); }
.work-list__item.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint-a) 10%, transparent), transparent 70%);
  border-left-color: var(--tint-a);
}
.work-list__thumb {
  width: 36px; height: 36px;
  position: relative;
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b));
  flex-shrink: 0;
}
.work-list__thumb::after {
  content: ""; position: absolute; inset: 35%;
  background: rgba(255,255,255,0.85);
}
.work-list__title {
  font-size: 13.5px; font-weight: 500;
  color: var(--bone);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-list__year {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
}
.work-list__item.is-active .work-list__year { color: var(--tint-a); }

/* Empty state if a category has no works */
.work-list__empty {
  padding: 20px 18px;
  font-size: 12px;
  color: var(--mute);
}

/* ── Preview / viewer ──────────────────────────────────── */
.work-view {
  --tint-a: #ffffff;
  --tint-b: #b8b8b4;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: opacity .25s ease, transform .25s ease;
}
.work-view.is-leaving { opacity: 0; transform: translateY(6px); }
@media (max-width: 767px) { .work-view { padding: 22px 20px 28px; } }

.work-view__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 30% 30%,
      color-mix(in srgb, var(--tint-a) 36%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 85%,
      color-mix(in srgb, var(--tint-b) 28%, transparent), transparent 55%),
    linear-gradient(180deg, #141414, #060606);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.work-view__hero .project-corner {
  position: absolute;
  top: 16px; right: 16px;
  box-shadow: inset 0 0 0 3px var(--tint-a);
}
.work-view__hero .project-corner::after { background: var(--tint-a); }

.work-view__hero-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 6px 10px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.work-view__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.work-view__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--bone);
  max-width: 100%;
}
@media (min-width: 1024px) { .work-view__title { font-size: 36px; } }
.work-view__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tint-a);
}

.work-view__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .work-view__meta { grid-template-columns: repeat(4, 1fr); } }
.work-view__meta-cell {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.85));
  padding: 12px 14px;
}
.work-view__meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.work-view__meta-value { margin-top: 4px; font-size: 13px; color: var(--bone); }

.work-view__short {
  font-size: 16px;
  color: var(--bone);
  line-height: 1.55;
  font-weight: 500;
}
.work-view__desc {
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.65;
  max-width: 64ch;
}

.work-view__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px)  { .work-view__gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .work-view__gallery { grid-template-columns: repeat(4, 1fr); } }
.work-view__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--tint-a) 28%, transparent), transparent 60%),
    linear-gradient(135deg, #161616, #080808);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.work-view__thumb::after {
  content: ""; position: absolute; inset: 42%;
  background: color-mix(in srgb, var(--tint-a) 80%, white);
  transition: background .2s ease;
}
.work-view__thumb:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tint-a) 40%, var(--line));
}
.work-view__thumb-label {
  position: absolute;
  bottom: 6px; left: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.work-view__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }

.work-view__cta {
  align-self: flex-start;
}

/* Empty preview placeholder */
.work-view__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Scrollbar styling within work app — subtle */
.work-cat-list::-webkit-scrollbar,
.work-list::-webkit-scrollbar,
.work-view::-webkit-scrollbar {
  width: 6px;
}
.work-cat-list::-webkit-scrollbar-thumb,
.work-list::-webkit-scrollbar-thumb,
.work-view::-webkit-scrollbar-thumb {
  background: var(--line2);
}
.work-cat-list::-webkit-scrollbar-track,
.work-list::-webkit-scrollbar-track,
.work-view::-webkit-scrollbar-track {
  background: transparent;
}

/* Tablet ≤1023: nest categories at top of the list column */
@media (min-width: 768px) and (max-width: 1023px) {
  .work-col--list .work-cat-list--inline {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding: 8px 12px;
    gap: 6px;
    flex: 0 0 auto;
  }
  .work-col--list .work-cat-list--inline .work-cat {
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 8px 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .work-col--list .work-cat-list--inline .work-cat.is-active {
    background: transparent;
    border-bottom-color: var(--tint-a);
  }
  .work-col--list .work-cat-list--inline .work-cat__count { display: none; }
}

/* ── Placeholder visual: project initials in list thumbnail ── */
.work-list__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-list__thumb::after { display: none; }
.work-list__thumb-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
  font-feature-settings: "ss01";
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ── Placeholder visual: huge gradient initials in preview hero ── */
.work-view__hero {
  isolation: isolate;
}
.work-view__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tint-a) 85%, white) 0%,
    color-mix(in srgb, var(--tint-b) 75%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 40px color-mix(in srgb, var(--tint-a) 28%, transparent));
  pointer-events: none;
  user-select: none;
  z-index: 1;
  /* Subtle gridded backing through the letterforms */
  text-shadow: none;
}
/* Faint grid overlay across the hero, behind initials */
.work-view__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/* Featured badge on hero */
.work-view__featured {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  padding: 5px 9px 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 6px 18px -8px color-mix(in srgb, var(--tint-a) 50%, transparent);
}

/* Gallery thumbnail visual: each thumb gets ghosted initials */
.work-view__thumb { overflow: hidden; }
.work-view__thumb::after { display: none; }
.work-view__thumb-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--tint-a) 35%, transparent);
  pointer-events: none;
  user-select: none;
}

/* CTA row */
.work-view__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Tighter view padding on smaller widths */
@media (max-width: 1023px) {
  .work-view { padding: 22px 22px 30px; }
}
@media (max-width: 767px) {
  .work-view__initials { font-size: clamp(72px, 22vw, 140px); }
  .work-view__title { font-size: 24px; }
}

/* ──────────────────────────────────────────────────────────────
   NATIVE SCROLL SNAP (replaces JS wheel interceptor)
   Proximity = gentle nudge to nearest section, never forces.
   Only on desktop, only for full-screen home sections.
   ────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  body[data-page="home"] { scroll-snap-type: y proximity; }
  body[data-page="home"] .section { scroll-snap-align: start; scroll-snap-stop: normal; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] { scroll-snap-type: none; }
}

/* ──────────────────────────────────────────────────────────────
   PROJECT DETAIL TEMPLATE (project.html)
   Reusable layout: hero · meta · overview · gallery · process ·
   outcome · footer-nav. Reads slug from URL.
   ────────────────────────────────────────────────────────────── */
.project-page {
  --tint-a: var(--lime2);
  --tint-b: var(--lime3);
  position: relative;
  padding-top: 24px;
  padding-bottom: 80px;
}

.project-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px)  { .project-wrap { padding: 0 40px; } }
@media (min-width: 1024px) { .project-wrap { padding: 0 60px; } }

/* Breadcrumb */
.project-crumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px;
  margin: 14px 0 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.project-crumb a { color: var(--mute); transition: color .2s ease; }
.project-crumb a:hover { color: var(--bone); }
.project-crumb__sep { opacity: 0.4; }
.project-crumb__here { color: var(--bone); }

/* Hero */
.project-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 56px;
}
@media (min-width: 900px) { .project-hero { grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; } }

.project-hero__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.project-hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tint-a);
}
.project-hero__title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--bone);
  max-width: 100%;
  overflow-wrap: break-word;
}
.project-hero__short {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--soft);
  max-width: 56ch;
}

.project-hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 70% at 30% 30%, color-mix(in srgb, var(--tint-a) 38%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, color-mix(in srgb, var(--tint-b) 28%, transparent), transparent 55%),
    linear-gradient(180deg, #141414, #060606);
}
.project-hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.project-hero__visual .project-corner { top: 18px; right: 18px; box-shadow: inset 0 0 0 3px var(--tint-a); }
.project-hero__visual .project-corner::after { background: var(--tint-a); }

.project-hero__initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tint-a) 88%, white) 0%,
    color-mix(in srgb, var(--tint-b) 75%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 40px color-mix(in srgb, var(--tint-a) 28%, transparent));
  pointer-events: none;
}

/* Generic project section */
.project-section { margin-bottom: 56px; }
.project-section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.project-section__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tint-a);
}
.project-section__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bone);
}
.project-section__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  font-size: 15px;
  color: var(--soft);
  line-height: 1.7;
  max-width: 72ch;
}
@media (min-width: 900px) {
  .project-section__body--two { grid-template-columns: 1fr 1fr; max-width: none; gap: 36px; }
}

/* Meta grid */
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 56px;
}
@media (min-width: 640px)  { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta__cell {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.85));
  padding: 16px 18px;
}
.project-meta__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.project-meta__value { margin-top: 6px; font-size: 14px; color: var(--bone); }

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px)  { .project-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .project-gallery { grid-template-columns: repeat(4, 1fr); } }
.project-gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--tint-a) 26%, transparent), transparent 60%),
    linear-gradient(135deg, #161616, #080808);
  transition: transform .2s ease, border-color .2s ease;
}
.project-gallery__item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tint-a) 40%, var(--line));
}
.project-gallery__item::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-gallery__initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--tint-a) 40%, transparent);
}
.project-gallery__label {
  position: absolute;
  bottom: 10px; left: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Process steps */
.project-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .project-steps { grid-template-columns: repeat(3, 1fr); } }
.project-step {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.85));
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.project-step__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tint-a);
}
.project-step__title { font-size: 18px; font-weight: 700; color: var(--bone); letter-spacing: -0.01em; }
.project-step__body  { font-size: 14px; color: var(--soft); line-height: 1.6; }

/* Project footer nav */
.project-nav {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .project-nav { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.project-nav__link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,20,20,0.6), rgba(10,10,10,0.6));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.project-nav__link:hover {
  border-color: var(--bone);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(26,26,26,0.85), rgba(15,15,15,0.85));
}
.project-nav__label { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.project-nav__title { font-size: 15px; font-weight: 600; color: var(--bone); }
.project-nav__link--next { text-align: right; }
.project-nav__center { display: flex; justify-content: center; }

.project-missing {
  padding: 80px 20px;
  text-align: center;
  color: var(--mute);
}
.project-missing h2 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--bone); margin-bottom: 12px;
}

/* ──────────────────────────────────────────────────────────────
   CONTACT SECTION — Resume button + social row polish
   ────────────────────────────────────────────────────────────── */
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 24px;
}
@media (min-width: 640px) { .contact-links { grid-template-columns: repeat(4, 1fr); } }
.contact-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20,20,20,0.6), rgba(10,10,10,0.6));
  color: var(--bone);
  transition: background .2s ease, color .2s ease;
}
.contact-link:hover { background: linear-gradient(180deg, rgba(28,28,28,0.85), rgba(15,15,15,0.85)); }
.contact-link__label { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.contact-link__value { font-size: 14px; font-weight: 500; color: var(--bone); }

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Site footer polish */
.site-footer .footer__tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ══════════════════════════════════════════════════════════════
   NAV + BUTTON SYSTEM POLISH
   A focused UI pass for navigation and the button family.
   Builds on the base definitions above without restructuring.
   ══════════════════════════════════════════════════════════════ */

/* ── Header: floating, sharper edges ──────────────────────────── */
body > header.sticky {
  /* The sticky header sits on a faint gradient so it floats
     above scrolled content without competing with section
     gradients underneath. */
  background:
    linear-gradient(180deg, rgba(7,7,7,0.92) 0%, rgba(7,7,7,0.82) 100%);
  border-bottom: 1px solid rgba(36,36,36,0.85);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.02),
    0 14px 28px -22px rgba(0,0,0,0.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

/* Top hairline highlight — adds the early-2000s "panel edge" feel */
body > header.sticky::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(236,236,234,0.10) 28%,
    rgba(236,236,234,0.10) 72%,
    transparent 100%);
  pointer-events: none;
}

/* ── Nav UL: refined dividers ─────────────────────────────────── */
header nav ul.divide-x { border-left-color: transparent; }
header nav ul.divide-line > * { border-color: transparent !important; }
header nav ul.divide-line > li { position: relative; }
header nav ul.divide-line > li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(236,236,234,0.10) 30%,
    rgba(236,236,234,0.10) 70%,
    transparent 100%);
  pointer-events: none;
}

/* ── Nav link: refined active + hover language ───────────────── */
.nav-link {
  padding: 10px 16px;
  transition:
    color .25s ease,
    background .25s ease;
  isolation: isolate;
}

/* Override the older bg gradient on hover/active with a subtler
   highlight — we lean on the indicators instead. */
.nav-link:hover,
.nav-link.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}
.nav-link:hover .icon-tile,
.nav-link.is-active .icon-tile {
  border-color: var(--bone);
  color: var(--bone);
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
}

/* Active marker — small filled square pinned to the left edge.
   Persistent on the active page; absent otherwise. */
.nav-link::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px; height: 5px;
  background: var(--bone);
  transform: translateY(-50%) scale(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.nav-link.is-active::before { transform: translateY(-50%) scale(1); }

/* Hover marker — tab-style underline bar.
   Hover only (not active), so the two states don't overlap. */
.nav-link::after {
  left: 50%;
  right: auto;
  bottom: 4px;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  opacity: 0;
  transform: translate(-50%, 2px) scaleX(0.4);
  transform-origin: center;
  transition:
    opacity .25s ease,
    transform .28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) scaleX(1);
}
/* Active state suppresses the hover bar to avoid double-marking */
.nav-link.is-active::after { display: none; }

/* Focus-visible (keyboard) outline */
.nav-link:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: -1px;
}

/* ── Mobile drawer polish ─────────────────────────────────────── */
#nav-drawer {
  background: linear-gradient(180deg, rgba(15,15,15,0.96), rgba(8,8,8,0.96));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#nav-drawer li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color .2s ease, background .2s ease;
}
#nav-drawer li > a:hover {
  color: var(--bone);
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 60%);
}
/* Active page indicator in drawer */
body[data-page="home"]    #nav-drawer li > a[href="index.html"],
body[data-page="home"]    #nav-drawer li > a[href="#home"],
body[data-page="work"]    #nav-drawer li > a[href="work.html"],
body[data-page="about"]   #nav-drawer li > a[href="about.html"],
body[data-page="contact"] #nav-drawer li > a[href="contact.html"] {
  color: var(--bone);
  background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent 70%);
}
body[data-page="home"]    #nav-drawer li > a[href="index.html"]::before,
body[data-page="home"]    #nav-drawer li > a[href="#home"]::before,
body[data-page="work"]    #nav-drawer li > a[href="work.html"]::before,
body[data-page="about"]   #nav-drawer li > a[href="about.html"]::before,
body[data-page="contact"] #nav-drawer li > a[href="contact.html"]::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 5px; height: 5px;
  background: var(--bone);
  transform: translateY(-50%);
}

/* Hamburger toggle: tighter, more deliberate */
#nav-toggle {
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  transition: border-color .2s ease, background .2s ease;
}
#nav-toggle:hover {
  background: linear-gradient(180deg, #1f1f1f 0%, #131313 100%);
}

/* ══════════════════════════════════════════════════════════════
   BUTTON SYSTEM
   .btn-square                  — secondary outlined (default)
   .btn-square--primary         — luminous white CTA
   .btn-square--tint            — colored gradient (contextual)
   .btn-square--ghost           — minimal quiet
   Sizes: --sm, default (md), --lg
   All variants share: padding scale, gap, action-tile right slot,
   block-fill upper-right hover detail, hover lift, press state.
   ══════════════════════════════════════════════════════════════ */

.btn-square {
  /* Tighter shared baseline */
  isolation: isolate;
  transition:
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    transform .14s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

/* Block-fill upper-right detail — applies to all variants except ghost */
.btn-square::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--bone);
  opacity: 0;
  transform: translate(5px, -5px);
  transition:
    opacity .22s ease,
    transform .28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-square:hover::before { opacity: 1; transform: translate(0, 0); }
.btn-square:active::before { transform: translate(0, 0); opacity: 0.7; }

/* Press / active state shared across variants */
.btn-square:active {
  transform: translateY(0);
  transition-duration: .08s;
}

/* Focus-visible outline */
.btn-square:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}

/* ── Size variants ───────────────────────────────────────────── */
.btn-square--lg {
  padding: 16px 18px 16px 22px;
  font-size: 12px;
  gap: 16px;
  letter-spacing: 0.24em;
}
.btn-square--lg .icon-tile--btn  { width: 32px; height: 32px; }
.btn-square--lg .icon-tile--btn svg { width: 14px; height: 14px; }
.btn-square--lg::before { width: 10px; height: 10px; transform: translate(6px, -6px); }
.btn-square--lg:hover::before { transform: translate(0, 0); }

/* ── Primary — luminous white ─────────────────────────────────
   Three-stop gradient with brighter top sheen and a sharper edge.
   Hover deepens the contrast. */
.btn-square--primary {
  border-color: rgba(255,255,255,0.55);
  color: var(--ink);
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f6f6f3 36%,
    var(--lime) 78%,
    var(--lime3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 12px 36px -12px rgba(255,255,255,0.36);
}
.btn-square--primary:hover {
  background: linear-gradient(180deg,
    #ffffff 0%,
    #ffffff 36%,
    #f0f0ee 78%,
    var(--lime) 100%);
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 18px 44px -14px rgba(255,255,255,0.48);
}
.btn-square--primary:active {
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-square--primary::before { background: var(--ink); }
.btn-square--primary .icon-tile {
  border-color: rgba(0,0,0,0.55);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0));
}

/* ── Secondary / default — outlined ──────────────────────────── */
.btn-square {
  border-color: var(--line2);
  background: linear-gradient(180deg, #1a1a1a 0%, var(--char) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}
.btn-square:hover {
  border-color: var(--bone);
  background: linear-gradient(180deg, #232323 0%, #161616 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 10px 28px -16px rgba(0,0,0,0.8);
}

/* ── Tint — colored gradient (contextual) ────────────────────── */
.btn-square--tint {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.24),
    0 12px 32px -12px color-mix(in srgb, var(--tint-b, var(--indigo)) 55%, transparent);
}
.btn-square--tint:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 18px 40px -14px color-mix(in srgb, var(--tint-a, var(--violet)) 60%, transparent);
}
.btn-square--tint::before { background: rgba(255,255,255,0.85); }

/* ── Ghost — minimal quiet ───────────────────────────────────── */
.btn-square--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--mute);
  box-shadow: none;
  padding-left: 14px;
  padding-right: 10px;
}
.btn-square--ghost:hover {
  color: var(--bone);
  border-color: transparent;
  background: rgba(255,255,255,0.02);
  box-shadow: none;
}
.btn-square--ghost::before { display: none; }
/* Ghost gets its own subtle underline-on-hover instead of block-fill */
.btn-square--ghost::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--bone);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity .22s ease, transform .28s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-square--ghost:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Reduced-motion safety */
@media (prefers-reduced-motion: reduce) {
  .nav-link::before,
  .nav-link::after,
  .btn-square::before,
  .btn-square::after,
  .btn-square--ghost::after {
    transition: none;
  }
  .btn-square:hover,
  .btn-square:active { transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE SHELLS (about.html, contact.html)
   Modular, gradient-rich, multi-section pages that flow naturally
   (no scroll snap). Built from the same square / panel language.
   ══════════════════════════════════════════════════════════════ */

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
@media (min-width: 640px)  { .page-wrap { padding: 32px 40px 96px; } }
@media (min-width: 1024px) { .page-wrap { padding: 40px 60px 120px; } }

/* Hero block at the top of a page */
.page-hero {
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
@media (min-width: 768px) { .page-hero { padding: 56px 0 80px; margin-bottom: 80px; } }

.page-hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.page-hero__num    { color: var(--bone); }
.page-hero__label  { color: var(--mute); }

.page-hero__title {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.88;
  color: var(--bone);
  margin: 0;
}
.page-hero__title .h-gradient { display: inline-block; }
.page-hero__lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--soft);
  max-width: 64ch;
}

/* Page section blocks */
.page-section { margin-bottom: 64px; }
@media (min-width: 768px) { .page-section { margin-bottom: 88px; } }

.page-section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.page-section__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.page-section__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bone);
}
.page-section__kicker {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.page-section__body {
  font-size: 15.5px;
  color: var(--soft);
  line-height: 1.7;
  max-width: 72ch;
}
.page-section__body p + p { margin-top: 14px; }
.page-section__body strong { color: var(--bone); font-weight: 600; }

/* Bio: two-column layout, big lede + supporting paragraph */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .bio-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
}
.bio-grid__lede {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--bone);
}
.bio-grid__body {
  font-size: 15.5px;
  color: var(--soft);
  line-height: 1.7;
}
.bio-grid__body p + p { margin-top: 12px; }

/* ── Discipline cards (Design Focus) ──────────────────────── */
.discipline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px)  { .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .discipline-grid { grid-template-columns: repeat(3, 1fr); } }

.discipline-card {
  --tint-a: #ececea;
  --tint-b: #b8b8b4;
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, color-mix(in srgb, var(--tint-a) 8%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(22,22,22,0.85) 0%, rgba(15,15,15,0.92) 100%);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background .25s ease;
}
.discipline-card:hover {
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, color-mix(in srgb, var(--tint-a) 14%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(28,28,28,0.92) 0%, rgba(19,19,19,0.95) 100%);
}
.discipline-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tint-a), var(--tint-b));
}
.discipline-card__head {
  display: flex; align-items: center; gap: 10px;
}
.discipline-card__num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.discipline-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--bone);
  line-height: 1.2;
}
.discipline-card__body {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.6;
}
.discipline-card__list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

/* Tint variants */
.discipline-card[data-tint="violet"]  { --tint-a: #a78bfa; --tint-b: #6366f1; }
.discipline-card[data-tint="cyan"]    { --tint-a: #38bdf8; --tint-b: #2563eb; }
.discipline-card[data-tint="coral"]   { --tint-a: #ff9966; --tint-b: #ff5e62; }
.discipline-card[data-tint="magenta"] { --tint-a: #ff6b9d; --tint-b: #c44ad7; }
.discipline-card[data-tint="teal"]    { --tint-a: #34d399; --tint-b: #06b6d4; }
.discipline-card[data-tint="amber"]   { --tint-a: #fbbf24; --tint-b: #f97316; }

/* ── Skills / Tools grid ──────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px)  { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

.skill-tile {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.92));
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .2s ease;
}
.skill-tile:hover { background: linear-gradient(180deg, rgba(28,28,28,0.92), rgba(19,19,19,0.95)); }
.skill-tile__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.skill-tile__meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.skill-group__head {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0 16px;
}
.skill-group__head:first-child { margin-top: 0; }
.skill-group__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.skill-group__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

/* ── Timeline (Experience & Education) ───────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,20,20,0.6), rgba(15,15,15,0.6));
  transition: background .2s ease;
}
@media (min-width: 640px) {
  .timeline__item {
    grid-template-columns: 110px 1fr 1fr;
    gap: 24px;
    align-items: baseline;
  }
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__item:hover {
  background: linear-gradient(180deg, rgba(28,28,28,0.85), rgba(19,19,19,0.85));
}
.timeline__year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.timeline__role { font-size: 15px; font-weight: 600; color: var(--bone); }
.timeline__org  { font-size: 13.5px; color: var(--soft); line-height: 1.5; }

/* ── Approach steps (reuse project-steps shape) ───────────── */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .approach-grid { grid-template-columns: repeat(4, 1fr); } }

.approach-step {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.92));
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}
.approach-step__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.approach-step__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.approach-step__body {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.6;
}

/* ── CTA block (bottom of about / inline) ─────────────────── */
.page-cta {
  position: relative;
  padding: 48px 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 90% 100%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(180deg, #141414 0%, #080808 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.page-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(236,236,234,0.18) 50%,
    transparent 100%);
}
@media (min-width: 768px) {
  .page-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 56px 40px;
  }
}
.page-cta__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--bone);
}
.page-cta__title .h-gradient { display: inline-block; }
.page-cta__sub {
  font-size: 14.5px;
  color: var(--soft);
  margin-top: 8px;
  max-width: 40ch;
}

/* ══════════════════════════════════════════════════════════════
   FORM SYSTEM (contact.html)
   ══════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 4fr 6fr; gap: 48px; }
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info__lede {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.contact-info__copy { font-size: 14.5px; color: var(--soft); line-height: 1.65; }

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-method {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.92));
  color: var(--bone);
  transition: background .2s ease, color .2s ease;
}
.contact-method:hover { background: linear-gradient(180deg, rgba(28,28,28,0.95), rgba(19,19,19,0.95)); }
.contact-method__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-method__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
  word-break: break-word;
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .form-field--wide   { grid-column: 1 / -1; }
  .contact-form .form-field--submit { grid-column: 1 / -1; }
}

.form-field {
  position: relative;
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.92));
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 64px;
  transition: background .2s ease;
}
.form-field--wide { min-height: 156px; }
.form-field:focus-within {
  background: linear-gradient(180deg, rgba(28,28,28,0.96), rgba(20,20,20,0.96));
}
.form-field__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color .2s ease;
}
.form-field:focus-within .form-field__label { color: var(--bone); }

.form-field__input,
.form-field__textarea {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  color: var(--bone);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  resize: none;
}
.form-field__input::placeholder,
.form-field__textarea::placeholder {
  color: var(--mute);
  font-weight: 400;
}
.form-field__textarea { min-height: 100px; line-height: 1.5; }

/* Focus-visible square indicator at the left edge of a focused field */
.form-field:focus-within::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 2px;
  background: var(--bone);
}

.form-field--submit {
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 16px;
  align-items: center;
}
.form-field--submit .form-field__note {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Submit confirmation (replaces form on submit) */
.form-thanks {
  padding: 36px 22px;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(10,10,10,0.92));
}
.form-thanks h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bone);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.form-thanks p { font-size: 14px; color: var(--soft); }

/* ── Availability section ─────────────────────────────────── */
.availability {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .availability { grid-template-columns: repeat(4, 1fr); } }
.availability__cell {
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(15,15,15,0.92));
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.availability__cell--accent {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, rgba(28,28,28,0.92), rgba(15,15,15,0.92));
}
.availability__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.availability__value { font-size: 15px; font-weight: 600; color: var(--bone); }
.availability__value--pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL SCROLLBAR
   Page-level scrollbar matches the custom thumb styling used on
   the work-app columns. Applies to home, about, contact pages.
   The work page's `body.work-locked` has `overflow: hidden` so
   the page scrollbar never shows there anyway.
   ══════════════════════════════════════════════════════════════ */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.page-scroll::-webkit-scrollbar,
.work-cat-list::-webkit-scrollbar,
.work-list::-webkit-scrollbar,
.work-view::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.page-scroll::-webkit-scrollbar-track,
.work-cat-list::-webkit-scrollbar-track,
.work-list::-webkit-scrollbar-track,
.work-view::-webkit-scrollbar-track {
  background: transparent;
}
.page-scroll::-webkit-scrollbar-thumb,
.work-cat-list::-webkit-scrollbar-thumb,
.work-list::-webkit-scrollbar-thumb,
.work-view::-webkit-scrollbar-thumb {
  background: var(--line2);
}
.page-scroll::-webkit-scrollbar-button,
.work-cat-list::-webkit-scrollbar-button,
.work-list::-webkit-scrollbar-button,
.work-view::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.page-scroll::-webkit-scrollbar-corner,
.work-cat-list::-webkit-scrollbar-corner,
.work-list::-webkit-scrollbar-corner,
.work-view::-webkit-scrollbar-corner {
  background: transparent;
}

/* ══════════════════════════════════════════════════════════════
   HERO MOTIF — interactive proximity glow
   Cells brighten + scale subtly toward the cursor. The --prox
   custom property is written by initMotifInteractive() in
   script.js. Disabled under reduced-motion.
   ══════════════════════════════════════════════════════════════ */
.motif-cell {
  --prox: 0;
  will-change: filter, transform;
  transform: scale(calc(1 + var(--prox) * 0.05));
  filter: brightness(calc(1 + var(--prox) * 0.7));
  transition: filter .18s ease, transform .22s cubic-bezier(0.22, 1, 0.36, 1);
}
.motif-grid { cursor: crosshair; }

@media (prefers-reduced-motion: reduce) {
  .motif-cell {
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .motif-grid { cursor: default; }
}

/* Final hero-name sizing override.
   Keep JANKOWIAK large and on one line across the active layout. */
.section--hero .hero-name {
  font-size: min(clamp(56px, 13vw, 120px), calc((100vw - 40px) / 7.35));
  line-height: 0.84;
  letter-spacing: -0.045em;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.section--hero .hero-name > span {
  display: block;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .section--hero .hero-name {
    font-size: min(clamp(84px, 8.2vw, 120px), calc(58vw / 7.35));
  }
}

@media (max-width: 420px) {
  .section--hero .hero-name {
    font-size: min(58px, calc((100vw - 40px) / 7.35));
  }
}

