/* ==========================================================================
   Ivan Balasi — Portfolio
   Layout concept: a working "proof sheet" — wide expanded type, hairline
   grids, every piece of work shown in a frame (browser chrome for web,
   print border for design, contact-sheet cell for photos).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }


/* ---------- Tokens ---------- */
:root {
  /* Color — cool proof-paper, ink, one ultramarine accent */
  --paper: #f2f3f5;
  --paper-2: #e7e9ed;
  --ink: #0f1217;
  --ink-2: #4a505c;
  --line: #cfd3da;
  --accent: #2a38e8;
  --accent-ink: #ffffff;
  --focus: #2a38e8;
  --success: #1f7a4a;
  --accent-inverse: #8e98ff; /* accent on an ink-colored band */

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --t-lg: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --t-xl: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
  --t-hero: clamp(2.9rem, 1rem + 8.4vw, 8.75rem);

  /* Space & layout */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: clamp(3.5rem, 2rem + 6vw, 7rem);
  --max: 82rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 4rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1014;
    --paper-2: #171a20;
    --ink: #e9ebef;
    --ink-2: #9ca3ae;
    --line: #2b3039;
    --accent: #8e98ff;
    --accent-ink: #0e1014;
    --focus: #8e98ff;
    --success: #5cc98d;
    --accent-inverse: #2a38e8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1014;
  --paper-2: #171a20;
  --ink: #e9ebef;
  --ink-2: #9ca3ae;
  --line: #2b3039;
  --accent: #8e98ff;
  --accent-ink: #0e1014;
  --focus: #8e98ff;
  --success: #5cc98d;
  --accent-inverse: #2a38e8;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paint the safe-area band above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

[hidden] { display: none !important; }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--s-2)); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.section { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-block: var(--s-7); }

.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: end;
    gap: var(--s-6);
  }
}
.section-head h2 { font-size: var(--t-xl); font-stretch: 112%; }
.section-head p { color: var(--ink-2); max-width: 46ch; }

/* Mono label — used for metadata, eyebrows, frame captions */
.label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  max-width: 40ch;
}

.prose { max-width: 62ch; display: grid; gap: var(--s-4); }
.prose p { color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.875rem;
  padding: 0 var(--s-5);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 var(--t-sm) / 1 var(--f-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:hover .arrow { transform: translateX(3px); }
.arrow { display: inline-block; transition: transform 0.2s var(--ease); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span {
  font-family: var(--f-mono);
  font-weight: 500;
  font-stretch: 100%;
  font-size: var(--t-xs);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.brand:hover { color: var(--ink); }
.brand:hover span { color: var(--accent); }

.nav-list { list-style: none; display: flex; gap: var(--s-1); }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--s-3);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.nav-list a:hover { color: var(--ink); background: var(--paper-2); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

.header-tools { display: flex; align-items: center; gap: var(--s-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

.theme-toggle .theme-label { display: none; }
.theme-toggle [data-icon] { display: none; }
.theme-toggle[data-mode="system"] [data-icon="system"],
.theme-toggle[data-mode="light"] [data-icon="light"],
.theme-toggle[data-mode="dark"] [data-icon="dark"] { display: block; }

.menu-toggle { display: none; }
.menu-toggle .bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle[aria-expanded="true"] .bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile navigation */
@media (max-width: 60rem) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    z-index: 49;
    background: var(--paper);
    padding: var(--s-6) var(--gutter-r) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)) var(--gutter);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    width: 100%;
    min-height: 4rem;
    padding: 0;
    border-radius: 0;
    font-family: var(--f-display);
    font-stretch: 118%;
    font-weight: 700;
    font-size: var(--t-lg);
    color: var(--ink);
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] { background: transparent; color: var(--accent); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-bottom: var(--s-6);
}
.status-dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  margin-right: var(--s-2);
  vertical-align: 0.05em;
}

.hero-title {
  font-size: var(--t-hero);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: initial;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .serif {
  font-size: 0.82em;
  letter-spacing: -0.01em;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 0.9s var(--ease) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero-title .line:nth-child(3) > span { animation-delay: 0.16s; }
}
@keyframes rise {
  from { transform: translateY(0.35em); opacity: 0.001; }
  to { transform: none; opacity: 1; }
}

.hero-foot {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--ink);
}
@media (min-width: 56rem) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* Discipline index — the 5 practices, web listed first and weighted */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-3);
  padding-block: var(--s-3);
  text-decoration: none;
}
.index-list .num { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); }
.index-list .name { font-weight: 600; font-size: var(--t-md); font-stretch: 110%; }
.index-list .count { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); }
.index-list li:first-child .name { color: var(--accent); }
.index-list a:hover .name { color: var(--accent); }
.index-list a:hover .count { color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: var(--s-7) var(--s-7); border-bottom: 1px solid var(--line); }
.page-hero .label { display: block; margin-bottom: var(--s-4); }
.page-title {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 18ch;
}
.page-title .serif { color: var(--accent); font-size: 0.9em; }
.page-hero .lede { margin-top: var(--s-5); color: var(--ink-2); max-width: 52ch; }

/* ---------- Frames: browser chrome, print border, media slot ---------- */
.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 2rem;
  padding-inline: var(--s-3);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}
.frame-bar::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 0.5rem;
  background:
    radial-gradient(circle at 0.25rem 50%, var(--line) 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 1.125rem 50%, var(--line) 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 2rem 50%, var(--line) 0.22rem, transparent 0.24rem);
}
.frame-bar span { overflow: hidden; text-overflow: ellipsis; }

.media {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 10);
  max-width: 100%;
  background: var(--paper-2);
  overflow: hidden;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.media--contain img { object-fit: contain; object-position: center; padding: var(--s-4); }

/* Shown when an image is missing (not yet added) or for typographic tiles */
.media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-4);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 2.5rem,
    var(--paper-2);
  color: var(--ink-2);
}
.media.is-missing img { display: none; }
.media.is-missing .media-fallback,
.media--tile .media-fallback { display: flex; }
.media-fallback .tile-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2rem, 1rem + 4vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.media.is-missing .tile-mark { font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem); line-height: 1; }
.media-fallback .tile-note { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.04em; }

/* ---------- Featured work rows (home) ---------- */
.feature-list { display: grid; gap: var(--s-8); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-7); }
  .feature:nth-child(even) .feature-media { order: 2; }
}
.feature-media { display: block; text-decoration: none; }
.feature-media:hover img { transform: scale(1.02); }
.feature-body { display: grid; gap: var(--s-4); min-width: 0; }
.feature-body h3 { font-size: var(--t-lg); font-stretch: 112%; }
.feature-body p { color: var(--ink-2); max-width: 44ch; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
}

/* ---------- Practice strip (home: other disciplines) ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}
@media (min-width: 40rem) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .practice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.practice {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4) var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-width: 0;
}
@media (min-width: 40rem) {
  .practice { padding-inline: var(--s-5); border-left: 1px solid var(--line); }
  .practice:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (min-width: 64rem) {
  .practice:nth-child(2n + 1) { border-left: 1px solid var(--line); padding-left: var(--s-5); }
  .practice:first-child { border-left: 0; padding-left: 0; }
}
.practice h3 { font-size: var(--t-md); font-stretch: 115%; }
.practice p { color: var(--ink-2); font-size: var(--t-sm); }
.practice .link-arrow { justify-self: start; font-size: var(--t-sm); }
.practice:hover h3 { color: var(--accent); }

/* ---------- Numbers row ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--s-5);
  list-style: none;
}
.facts li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.facts strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: var(--t-xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.facts span { color: var(--ink-2); font-size: var(--t-sm); max-width: 28ch; }

/* ---------- Work index (work.html) ---------- */
.toolbar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 20;
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-4);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 56rem) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.filters { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 2.5rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 var(--t-sm) / 1 var(--f-body);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .chip-count { font-family: var(--f-mono); font-size: 0.6875rem; margin-left: 0.35rem; opacity: 0.7; }

.search { position: relative; }
.search input {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0 var(--s-4) 0 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-sm) / 1 var(--f-body);
}
@media (min-width: 56rem) { .search input { width: 16rem; } }
.search input::placeholder { color: var(--ink-2); }
.search input:hover { border-color: var(--ink-2); }
.search input:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1rem; height: 1rem;
  transform: translateY(-50%);
  color: var(--ink-2);
  pointer-events: none;
}

.result-line { padding-block: var(--s-4); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--s-7) var(--s-5);
  list-style: none;
}
.work-card { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.work-card[hidden] { display: none !important; }
.work-card h3 { font-size: var(--t-md); font-stretch: 110%; }
.work-card .card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.work-card p { color: var(--ink-2); font-size: var(--t-sm); }
.work-card .card-link { font-size: var(--t-sm); justify-self: start; }
.work-card .card-note { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--ink-2); }

.empty-state {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
.empty-state h2 { font-size: var(--t-lg); font-stretch: 112%; }
.empty-state p { color: var(--ink-2); }

/* ---------- Design grid (print border frames) ---------- */
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-6) var(--s-5);
  list-style: none;
}
.print { display: grid; gap: var(--s-3); min-width: 0; }
.print-open {
  display: block;
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: zoom-in;
  color: inherit;
  text-align: left;
  font: inherit;
  transition: border-color 0.2s var(--ease);
}
.print-open:hover { border-color: var(--ink); }
.print-open:hover img { transform: scale(1.015); }
.print-open .media { --ratio: 4 / 3; }
.print-open .media img { object-position: center; }
.print-caption { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.print-caption h3 { font-size: var(--t-base); font-weight: 600; font-stretch: 105%; }
.print-caption a { font-size: var(--t-sm); white-space: nowrap; }

/* ---------- Contact sheet (photography) ---------- */
.sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--ink);
  list-style: none;
}
@media (min-width: 48rem) { .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-3); } }
.sheet li { display: grid; gap: var(--s-1); min-width: 0; }
.sheet .frame-no {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--paper-2);
  opacity: 0.75;
}
.sheet .print-open { padding: 0; border: 0; background: transparent; }
.sheet .media { --ratio: 4 / 5; }
.sheet .media-fallback { background: #1b1f26; color: #aab1bc; }
.sheet .media-fallback .tile-mark { color: #e9ebef; font-size: clamp(1rem, 0.7rem + 1vw, 1.5rem); }

.service-list { list-style: none; display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 48rem) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.service-list h3 { font-size: var(--t-md); font-stretch: 112%; }
.service-list p { color: var(--ink-2); font-size: var(--t-sm); max-width: 44ch; }

/* ---------- Media page: video & podcast ---------- */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--ink);
  overflow: hidden;
}
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  color: #fff;
}
.video-poster .media { position: absolute; inset: 0; aspect-ratio: auto; }
.video-poster .media img { object-position: center; opacity: 0.85; transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); }
.video-poster:hover .media img { opacity: 1; transform: scale(1.02); }
.play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3);
  border-radius: 999px;
  background: #ffffff;
  color: #0f1217;
  font: 600 var(--t-sm) / 1 var(--f-body);
}
.play svg { width: 2rem; height: 2rem; }
.video-poster:hover .play { background: var(--accent); color: var(--accent-ink); }
.video-poster:focus-visible { outline-offset: -4px; }
.video-poster .media-fallback { color: #aab1bc; background: #1b1f26; }
.video-poster .media-fallback .tile-mark { color: #e9ebef; }

.split {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
  .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}
.split > * { min-width: 0; }
.split h3 { font-size: var(--t-lg); font-stretch: 112%; }

.episode-list { list-style: none; border-top: 1px solid var(--ink); }
.episode {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .episode { grid-template-columns: 8rem minmax(0, 1fr) auto; gap: var(--s-5); align-items: baseline; }
}
.episode time { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.episode h4 { font-size: var(--t-base); font-weight: 600; font-stretch: 105%; line-height: 1.35; }
.episode h4 a { text-decoration: none; }
.episode h4 a:hover { text-decoration: underline; }
.episode p { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s-2); max-width: 60ch; }
.episode .label { white-space: nowrap; }

.cover { max-width: 16rem; }
.cover .media { --ratio: 1 / 1; border: 1px solid var(--line); }

/* ---------- About ---------- */
.portrait { width: 100%; max-width: 24rem; }
.portrait .media { --ratio: 4 / 5; }
.timeline { list-style: none; border-top: 1px solid var(--ink); }
.timeline li {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .timeline li { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-5); }
}
.timeline .when { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); padding-top: 0.25rem; }
.timeline h3 { font-size: var(--t-base); font-weight: 600; font-stretch: 105%; line-height: 1.35; }
.timeline p { color: var(--ink-2); font-size: var(--t-sm); }

.toolkit { display: grid; gap: var(--s-5); }
@media (min-width: 48rem) { .toolkit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.toolkit h3 { font-size: var(--t-sm); margin-bottom: var(--s-3); }
.toolkit ul { list-style: none; display: grid; gap: var(--s-1); color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- Contact band ---------- */
.contact-band { background: var(--ink); color: var(--paper); }
.contact-band .wrap { padding-block: var(--s-8); display: grid; gap: var(--s-6); }
.contact-band h2 {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 16ch;
}
.contact-band h2 .serif { color: var(--accent-inverse); }
.contact-band .label { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.contact-band p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); max-width: 46ch; }
.contact-links { list-style: none; display: grid; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, var(--ink)); }
@media (min-width: 48rem) { .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.contact-links a,
.contact-links .contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 3.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, var(--ink));
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-md);
  font-stretch: 110%;
}
.contact-links a:hover { color: var(--accent-inverse); }
.contact-links .handle { font-family: var(--f-mono); font-weight: 400; font-size: var(--t-xs); font-stretch: 100%; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); overflow: hidden; text-overflow: ellipsis; }
.contact-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact-band .btn:hover { background: var(--accent-inverse); color: var(--ink); border-color: var(--accent-inverse); }
.copy-status { font-family: var(--f-mono); font-size: var(--t-xs); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-6) calc(var(--s-6) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-sm); }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent); }
.site-footer small { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e9ebef;
}
.lightbox::backdrop { background: rgba(8, 10, 13, 0.94); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-top,
.lightbox-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: calc(var(--s-3) + env(safe-area-inset-top, 0px)) var(--gutter-r) var(--s-3) var(--gutter);
}
.lightbox-bottom { padding: var(--s-3) var(--gutter-r) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding-inline: var(--gutter); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-caption { font-size: var(--t-sm); min-width: 0; }
.lightbox .lb-caption a { color: #e9ebef; }
.lightbox .lb-count { font-family: var(--f-mono); font-size: var(--t-xs); color: #aab1bc; }
.lightbox .icon-btn { color: #e9ebef; border-color: rgba(233, 235, 239, 0.3); }
.lightbox .icon-btn:hover { border-color: #e9ebef; }
.lightbox .icon-btn:focus-visible { outline-color: #8e98ff; }
.lb-nav { display: flex; gap: var(--s-2); }

/* ---------- Utilities ---------- */
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.stack { display: grid; gap: var(--s-4); }
.stack-lg { display: grid; gap: var(--s-6); }
.muted { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- More videos grid (media.html) ---------- */
.video-more { display: grid; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-6) var(--s-5);
  list-style: none;
}
.video-card { display: grid; gap: var(--s-3); min-width: 0; }
.video-caption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.video-caption h4 { font-size: var(--t-base); font-weight: 600; font-stretch: 105%; line-height: 1.3; }
.video-caption a { font-size: var(--t-sm); white-space: nowrap; }
.play--sm { padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); }
.play--sm svg { width: 1.5rem; height: 1.5rem; }
.video-card .media-fallback .tile-mark { display: none; } /* title is in the caption */
.video-poster .media-fallback { text-align: left; }

/* ---------- Second podcast + audio players (media.html) ---------- */
.podcast-block { display: grid; gap: var(--s-6); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.episode p.audio-missing { margin: 0; }
.episode--audio .stack { gap: var(--s-3); }
.audio { width: 100%; max-width: 32rem; height: 2.5rem; }
.audio:focus-visible { outline-offset: 2px; }

/* Contact sheet crops: centre frames, with a few faces nudged toward the top */
.sheet .media img { object-position: center; }
.sheet .media img.pos-20 { object-position: center 20%; }
.sheet .media img.pos-30 { object-position: center 30%; }
.sheet .media img.pos-35 { object-position: center 35%; }
.sheet .media img.pos-40 { object-position: center 40%; }

/* Wider frame for screenshots that shouldn't be cropped (e.g. chatbot open on the right) */
.media--wide { --ratio: 2912 / 1604; }

/* Archived site screenshot (media.html) */
.site-shot { margin: 0; display: grid; gap: var(--s-3); max-width: 52rem; }
.media--archive { --ratio: 1600 / 1056; }

/* ---------- Case study (case-rutgers.html) ---------- */
.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-4) var(--s-5);
  margin: var(--s-6) 0 0;
}
.case-facts div { display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--ink); }
.case-facts dd { margin: 0; font-weight: 600; font-stretch: 105%; }
.page-hero .label a { color: inherit; }
.page-hero .label a:hover { color: var(--accent); }

.process { list-style: none; border-top: 1px solid var(--ink); }
.process li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.process .step-no { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent); padding-top: 0.3rem; }
.process h3 { font-size: var(--t-base); font-weight: 600; font-stretch: 105%; line-height: 1.35; }
.process p { color: var(--ink-2); font-size: var(--t-sm); }
.case-gallery .print-open .media { --ratio: 16 / 10; }
.case-gallery .print-open .media img { object-position: top center; }
.case-facts div,
.service-list li { align-content: start; }

/* ---------- Site map (case study IA) ---------- */
.ia { border-top: 1px solid var(--ink); padding-top: var(--s-4); font-size: var(--t-sm); }
.ia ul { list-style: none; margin: 0; padding: 0; }
.ia-top { display: grid; gap: var(--s-2); }
.ia-node {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-stretch: 105%;
  background: var(--paper);
}
.ia-node--open { border-color: var(--ink); display: grid; gap: var(--s-3); }
.ia-roles { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ia-role {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
  font-weight: 600;
}
.ia-shared { display: grid; gap: var(--s-2); padding: var(--s-3); background: var(--paper-2); border-radius: var(--radius); font-weight: 400; }
.ia-sub { display: grid; gap: var(--s-1); }
.ia-sub .ia-sub { margin: var(--s-1) 0 0 var(--s-2); padding-left: var(--s-3); border-left: 1px solid var(--line); color: var(--ink-2); }
.print-caption .label { white-space: nowrap; flex: none; }

/* Clickable screenshot inside a browser frame (opens the lightbox) */
.frame-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; }
.frame-open:hover img { transform: scale(1.015); }
.frame-open:focus-visible { outline-offset: -3px; }
.lightbox.is-tall figure { overflow-y: auto; place-items: start center; padding-block: var(--s-2); }
.lightbox.is-tall img { max-height: none; width: min(100%, 64rem); }

/* Links to previous portfolios (home) */
.old-portfolios { display: grid; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.old-portfolios ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); }
.old-portfolios li { display: grid; gap: 2px; }
.old-portfolios a { font-weight: 600; text-decoration: none; }
.old-portfolios a:hover { text-decoration: underline; }
.old-portfolios .muted { font-size: var(--t-sm); }

/* Second screenshot thumbnail under a project frame (e.g. BracketBash leaderboard) */
.thumb-open {
  display: inline-flex; align-items: center; gap: var(--s-3);
  justify-self: start; padding: var(--s-1); padding-right: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 500 var(--t-sm) / 1 var(--f-body);
  cursor: zoom-in;
}
.thumb-open:hover { border-color: var(--ink); }
.thumb-open .media { width: 4.5rem; --ratio: 4 / 3; }
.thumb-open .media img { object-position: top center; }
.thumb-open .media-fallback .tile-mark { font-size: 0.8rem; }
.old-portfolios .old-site { gap: var(--s-2); }
.old-site-name { font-weight: 600; }
.old-site-shots { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.old-portfolios li { align-content: start; }

/* Quick answers (about.html) */
.faq { display: grid; border-top: 1px solid var(--ink); }
.faq-item { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: var(--t-md); font-stretch: 110%; }
.faq-item p { color: var(--ink-2); max-width: 62ch; }

/* Core skills row above the toolkit columns (about.html) */
.core-skills { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.core-skills .tags li { font-size: var(--t-xs); padding: 0.3rem 0.75rem; color: var(--ink); }


/* ==========================================================================
   Classic theme layer
   Glass header, ambient glow, Geist type, soft Apple-style elevation on
   cards instead of hairline borders. Dark and light, following the toggle.
   ========================================================================== */
:root {
  --paper: #f5f5f7;
  --paper-2: #ffffff;
  --ink: #0c0e14;
  --ink-2: #5d6475;
  --line: rgba(10, 14, 30, .09);
  --line-2: rgba(10, 14, 30, .2);
  --accent: #4a5bff;
  --accent-ink: #ffffff;
  --focus: #4a5bff;
  --success: #0fa982;
  --accent-inverse: #4a5bff;
  --card: #ffffff;
  --stage: #eceef3;
  --dim: #9aa1b2;
  --glow: .45;
  --shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  --shadow-hover: 2px 4px 16px rgba(0, 0, 0, .16);
  --ca: #ffffff;
  --cb: #eceefe;

  --f-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(2.16rem, 5.94vw, 5.18rem);
  --radius: 14px;
  --r-card: 28px;
  --ease: cubic-bezier(0, 0, .5, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #07080b; --paper-2: #16181f; --ink: #eef0f4; --ink-2: #8a91a0;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --accent: #7b8cff; --accent-ink: #07080b; --focus: #7b8cff; --success: #6be3c1; --accent-inverse: #7b8cff;
    --card: #16181f; --stage: #1d2029; --dim: #5c6272; --glow: 1;
    --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-hover: 0 4px 10px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .6);
    --ca: #12141c; --cb: #0b0c11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #07080b; --paper-2: #16181f; --ink: #eef0f4; --ink-2: #8a91a0;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --accent: #7b8cff; --accent-ink: #07080b; --focus: #7b8cff; --success: #6be3c1; --accent-inverse: #7b8cff;
  --card: #16181f; --stage: #1d2029; --dim: #5c6272; --glow: 1;
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .6);
  --ca: #12141c; --cb: #0b0c11;
  color-scheme: dark;
}

/* Base + ambient glow */
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    radial-gradient(640px 640px at 8% -8%, rgba(75, 91, 255, calc(.32 * var(--glow))), transparent 70%),
    radial-gradient(520px 520px at 100% 12%, rgba(255, 138, 76, calc(.2 * var(--glow))), transparent 70%),
    radial-gradient(480px 480px at 40% 100%, rgba(39, 211, 168, calc(.12 * var(--glow))), transparent 70%);
  background-attachment: fixed;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; font-stretch: 100%; }
.serif { font-family: var(--f-display); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--dim); }
.label { font-family: var(--f-body); font-size: .82rem; font-weight: 500; letter-spacing: .01em; text-transform: none; }
.lede { font-size: 1.12rem; color: var(--ink-2); }

/* Header: frosted glass bar */
.site-header {
  background: color-mix(in srgb, var(--paper) 58%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-stretch: 100%; text-transform: uppercase; letter-spacing: .24em; word-spacing: .35em; font-size: .95rem; -webkit-text-stroke: .25px currentColor; }
.brand span { text-transform: none; letter-spacing: .02em; word-spacing: 0; font-weight: 400; }
.nav-list a { font-size: .9rem; color: var(--ink-2); }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.icon-btn { border-color: var(--line-2); width: 2.5rem; height: 2.5rem; transition: background-color .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 60rem) {
  .nav-list a { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; letter-spacing: -.03em; }
}

/* Buttons */
.btn { border-color: var(--ink); font-weight: 500; font-size: .95rem; padding-inline: 1.4rem; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.link-arrow { font-weight: 500; border-bottom-color: var(--line-2); }
.link-arrow:hover { color: var(--accent); border-bottom-color: currentColor; }

/* Home hero */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--s-8); }
.hero-meta .label {
  display: inline-flex; align-items: center;
  padding: .45rem .9rem .45rem .7rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.status-dot { box-shadow: 0 0 12px var(--success); }
.hero-title { font-size: var(--t-hero); font-weight: 600; font-stretch: 100%; line-height: .98; letter-spacing: -.05em; max-width: 15ch; }
.hero-title .serif { font-size: 1em; letter-spacing: -.05em; color: var(--dim); }
.hero-foot { border-top: 0; padding-top: 0; }
.hero-foot nav {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--s-3) var(--s-5);
}
.index-list { border-top: 0; }
.index-list li:last-child { border-bottom: 0; }
.index-list a { padding-block: var(--s-4); }
.index-list .name { font-stretch: 100%; font-weight: 500; letter-spacing: -.01em; }
.index-list .num, .index-list .count { font-variant-numeric: tabular-nums; }

/* Section rhythm: no hairlines between sections */
.section + .section { border-top: 0; }
.section-head h2, .page-title, .contact-band h2 { font-stretch: 100%; font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
.page-hero { border-bottom: 0; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--s-6); }
.page-title .serif { font-size: 1em; color: var(--dim); }

/* Soft list rules instead of heavy ink rules */
.practice-grid, .service-list, .episode-list, .timeline, .contact-links, .process, .ia, .faq,
.case-facts div, .facts li { border-top-color: var(--line); }

/* Browser frame: device chrome on a stage, like the classic project cards */
.frame { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.frame-bar { background: color-mix(in srgb, var(--ink) 6%, var(--card)); border-bottom: 0; height: 2.1rem; font-family: var(--f-body); font-size: .74rem; }
.frame-bar::before {
  background:
    radial-gradient(circle at .25rem 50%, #ff6159 .22rem, transparent .24rem),
    radial-gradient(circle at 1.125rem 50%, #ffbd2e .22rem, transparent .24rem),
    radial-gradient(circle at 2rem 50%, #28c941 .22rem, transparent .24rem);
}
.feature-media {
  position: relative;
  padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--stage);
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.feature-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%);
}
.feature-media .frame { border-radius: 14px 14px 0 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.12); }
.feature-media:hover { box-shadow: var(--shadow-hover); transform: scale(1.01); }
.feature-media:hover img { transform: none; }
.feature-body h3 { font-stretch: 100%; font-weight: 600; letter-spacing: -.03em; }

/* Tags */
.tags li { border: 0; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-body); font-size: .75rem; padding: .22rem .7rem; }

/* Cards: practice tiles, facts, work, print, episodes */
.practice-grid { border-top: 0; gap: 16px; }
.practice, .practice:nth-child(2n+1), .practice:first-child {
  padding: 28px; border: 0; border-radius: var(--r-card);
  background: var(--card); box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.practice:hover { box-shadow: var(--shadow-hover); transform: scale(1.01); }
.practice h3 { font-stretch: 100%; font-size: 1.5rem; letter-spacing: -.035em; }

.facts { gap: 16px; }
.facts li { border-top: 0; padding: 28px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.facts strong { font-weight: 600; font-stretch: 100%; letter-spacing: -.05em; }

.work-grid { gap: 24px; }
.work-card {
  padding: 14px 14px 24px; border-radius: 24px;
  background: var(--card); box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.work-card > :not(.frame):not(.frame-open):not(.thumb-open) { margin-inline: 10px; }
.work-card:hover { box-shadow: var(--shadow-hover); transform: scale(1.01); }
.work-card .frame { box-shadow: none; background: var(--paper); border-radius: 14px; }
.work-card h3 { font-stretch: 100%; font-weight: 600; }

.toolbar { background: color-mix(in srgb, var(--paper) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chip { border-color: var(--line-2); font-family: var(--f-body); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .chip-count { font-family: var(--f-body); }
.search input { border-color: var(--line-2); background: var(--card); font-family: var(--f-body); }

.print-grid { gap: 24px; }
.print { padding: 12px 12px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.print:hover { box-shadow: var(--shadow-hover); transform: scale(1.01); }
.print-open { border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--paper); }
.print-caption { padding-inline: 6px; }
.print-caption h3 { font-stretch: 100%; }
.case-gallery .print-open { border-radius: 12px; }

/* Photography: classic square-cornered contact sheet, same in every theme */
.sheet { background: #0f1217; border-radius: 0; box-shadow: none; }
.sheet .media, .sheet .print-open { border-radius: 0; }
.sheet .frame-no { color: #c9ced8; opacity: .8; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.sheet .print-open:hover img { transform: scale(1.015); }

.service-list { border-top: 0; gap: 16px; }
.service-list li { padding: 24px 28px; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.service-list h3 { font-stretch: 100%; }

.video-player, .video-poster { border-radius: 20px; background: #000; }
.video-player { box-shadow: var(--shadow); }
.video-card .video-player { border-radius: 16px; }
.play { background: #fff; color: #0c0e14; }
.video-poster:hover .play { background: var(--accent); color: #fff; }
.episode h4, .video-caption h4, .timeline h3, .process h3, .faq-item h3, .split h3, .empty-state h2 { font-stretch: 100%; font-weight: 600; letter-spacing: -.02em; }
.cover .media { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.portrait .media { border-radius: var(--r-card); box-shadow: var(--shadow); }
.thumb-open { border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.thumb-open:hover { box-shadow: var(--shadow-hover); }
.thumb-open .media { border-radius: 8px; }
.old-portfolios { border-top: 0; }
.ia-node { border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; }
.ia-node--open { box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.ia-shared { background: color-mix(in srgb, var(--ink) 5%, var(--card)); }
.process .step-no { font-variant-numeric: tabular-nums; }
.media-fallback { background: color-mix(in srgb, var(--ink) 4%, var(--card)); }
.media-fallback .tile-mark { font-weight: 600; font-stretch: 100%; letter-spacing: -.04em; }

/* Contact: gradient card, list rows */
.contact-band { background: transparent; color: var(--ink); padding: 0 var(--gutter-r) var(--s-8) var(--gutter); }
.contact-band .wrap {
  max-width: var(--max); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-card); background: linear-gradient(180deg, var(--ca), var(--cb)); box-shadow: var(--shadow);
}
.contact-band h2 { max-width: 16ch; }
.contact-band h2 .serif { color: var(--dim); }
.contact-band .label { color: var(--ink-2); }
.contact-band p { color: var(--ink-2); }
.contact-links { border-top: 1px solid var(--line-2); column-gap: 40px; }
.contact-links a, .contact-links .contact-row { border-bottom: 1px solid var(--line-2); font-weight: 600; font-stretch: 100%; letter-spacing: -.03em; transition: padding .3s var(--ease), color .2s; }
.contact-links a:hover { color: var(--accent); padding-inline: 10px; }
.contact-links .handle { font-family: var(--f-body); color: var(--ink-2); letter-spacing: 0; }
.contact-band .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-band .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-band .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }

.site-footer { border-top: 0; }
.site-footer small { font-family: var(--f-body); }

@media (prefers-reduced-motion: reduce) {
  .practice:hover, .work-card:hover, .print:hover, .feature-media:hover { transform: none; }
}


/* ---------- Classic / Bold switch ---------- */
.look-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.look-switch button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 500 .8rem/1 var(--f-body); padding: .5rem .8rem; border-radius: 999px; transition: background-color .2s, color .2s;
}
.look-switch button:hover { color: var(--ink); }
.look-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 26rem) {
  .look-switch button { padding: .45rem .55rem; font-size: .74rem; }
  .brand span { display: none; }
}

/* ==========================================================================
   Bold look — sun, blue, tomato and pink colour bands, Syne display type,
   hard ink offset shadows. One light look in every theme setting.
   ========================================================================== */
:root[data-look="bold"] {
  --paper: #fffdf8; --paper-2: #ffffff; --ink: #0d0d12; --ink-2: #4a4a58;
  --line: rgba(13, 13, 18, .18); --line-2: #0d0d12;
  --accent: #2230ff; --accent-ink: #ffffff; --focus: #2230ff; --success: #ff4a2b; --accent-inverse: #ffd23f;
  --card: #ffffff; --stage: transparent; --dim: #2230ff; --glow: 0;
  --sun: #ffd23f; --tomato: #ff4a2b; --pink: #ff8fd0; --blue: #2230ff;
  --hard: 8px 8px 0 #0d0d12; --hard-hover: 12px 12px 0 #0d0d12;
  --shadow: var(--hard); --shadow-hover: var(--hard-hover);
  --ca: #ff4a2b; --cb: #ff4a2b;
  --f-display: "Syne", "Geist", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Geist", system-ui, sans-serif;
  --f-serif: "Syne", "Geist", system-ui, sans-serif;
  --f-mono: "Hanken Grotesk", "Geist", system-ui, sans-serif;
  --t-hero: clamp(2.6rem, 1rem + 7.4vw, 7.6rem);
  color-scheme: light;
}
:root[data-look="bold"] body { background: var(--paper); background-image: none; font-size: 1.0625rem; }
:root[data-look="bold"] body::before { background: var(--sun); }
:root[data-look="bold"] h1, :root[data-look="bold"] h2, :root[data-look="bold"] h3, :root[data-look="bold"] h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; }
:root[data-look="bold"] .label { font-weight: 700; color: inherit; opacity: .8; }
:root[data-look="bold"] .theme-toggle { display: none; }
:root[data-look="bold"] ::selection { background: var(--sun); color: var(--ink); }

/* Header */
:root[data-look="bold"] .site-header { background: var(--sun); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 3px solid var(--ink); }
:root[data-look="bold"] .brand { font-family: var(--f-display); font-weight: 800; letter-spacing: .06em; word-spacing: .2em; -webkit-text-stroke: 0; font-size: 1.05rem; }
:root[data-look="bold"] .brand span { font-family: var(--f-body); font-weight: 700; color: var(--ink); opacity: .7; }
:root[data-look="bold"] .nav-list a { font-weight: 700; color: var(--ink); }
:root[data-look="bold"] .nav-list a:hover { background: #fff; color: var(--ink); }
:root[data-look="bold"] .nav-list a[aria-current="page"] { background: var(--ink); color: #fff; }
:root[data-look="bold"] .icon-btn { border: 2px solid var(--ink); }
:root[data-look="bold"] .look-switch { box-shadow: none; background: var(--ink); }
:root[data-look="bold"] .look-switch button { color: #fff; font-weight: 700; }
:root[data-look="bold"] .look-switch button[aria-pressed="true"] { background: var(--tomato); color: #fff; }
@media (max-width: 60rem) {
  :root[data-look="bold"] .site-nav { background: var(--sun); }
  :root[data-look="bold"] .nav-list li { border-bottom: 2px solid var(--ink); }
  :root[data-look="bold"] .nav-list a[aria-current="page"], :root[data-look="bold"] .nav-list a:hover { background: transparent; color: var(--blue); }
}

/* Buttons & links */
:root[data-look="bold"] .btn { background: var(--ink); color: #fff; border: 0; font: 800 1rem/1 var(--f-display); min-height: 3.2rem; padding-inline: 1.7rem; transition: transform .2s, background-color .2s; }
:root[data-look="bold"] .btn:hover { background: var(--tomato); color: #fff; transform: rotate(-2deg) scale(1.04); }
:root[data-look="bold"] .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
:root[data-look="bold"] .btn--ghost:hover { background: var(--ink); color: #fff; }
:root[data-look="bold"] .link-arrow { font-weight: 800; border-bottom-width: 2px; }
:root[data-look="bold"] .link-arrow:hover { color: inherit; }
:root[data-look="bold"] a:hover { color: inherit; }

/* Home hero: a sun band */
:root[data-look="bold"] .hero { background: var(--sun); border-bottom: 3px solid var(--ink); }
:root[data-look="bold"] .hero-meta .label { box-shadow: none; background: #fff; border: 2px solid var(--ink); opacity: 1; }
:root[data-look="bold"] .status-dot { background: var(--tomato); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-look="bold"] .status-dot { animation: bold-pulse 1.6s infinite; }
}
@keyframes bold-pulse { 50% { transform: scale(1.6); opacity: .5; } }
:root[data-look="bold"] .hero-title { font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: -.045em; max-width: 16ch; }
:root[data-look="bold"] .hero-title .line { overflow: visible; }
:root[data-look="bold"] .hero-title .serif { display: inline-block; font-size: .62em; line-height: 1.05; color: var(--sun); background: var(--ink); padding: .06em .18em .1em; border-radius: .12em; rotate: -1.5deg; margin-top: .12em; }
:root[data-look="bold"] .lede { color: var(--ink); font-weight: 500; }
:root[data-look="bold"] .hero-foot nav { background: #fff; border: 3px solid var(--ink); box-shadow: var(--hard); border-radius: 22px; }
:root[data-look="bold"] .index-list li { border-bottom: 2px solid var(--ink); }
:root[data-look="bold"] .index-list li:last-child { border-bottom: 0; }
:root[data-look="bold"] .index-list .name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
:root[data-look="bold"] .index-list li:first-child .name, :root[data-look="bold"] .index-list a:hover .name { color: var(--blue); }
:root[data-look="bold"] .index-list .num, :root[data-look="bold"] .index-list .count { color: var(--ink); font-weight: 700; }

/* Section bands on the home page */
:root[data-look="bold"] .section:has(#featured-title) { background: var(--blue); color: #fff; }
:root[data-look="bold"] .section:has(#featured-title) .section-head h2 { color: var(--sun); }
:root[data-look="bold"] .section:has(#featured-title) .section-head p,
:root[data-look="bold"] .section:has(#featured-title) .feature-body p,
:root[data-look="bold"] .section:has(#featured-title) .muted { color: rgba(255,255,255,.88); }
:root[data-look="bold"] .section:has(#featured-title) .tags li { color: var(--ink); }
:root[data-look="bold"] .section:has(#featured-title) .thumb-open { color: var(--ink); }
:root[data-look="bold"] .section:has(#practice-title) { background: var(--pink); }
:root[data-look="bold"] .section-head h2, :root[data-look="bold"] .page-title, :root[data-look="bold"] .contact-band h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
:root[data-look="bold"] .section-head h2 { font-size: clamp(2.4rem, 1rem + 5vw, 5rem); }
:root[data-look="bold"] .section-head p { color: inherit; font-size: 1.1rem; }

/* Interior page hero: a sun band too */
:root[data-look="bold"] .page-hero { background: var(--sun); border-bottom: 3px solid var(--ink); }
:root[data-look="bold"] .page-title { font-size: clamp(2.6rem, 1rem + 6vw, 6rem); max-width: 16ch; }
:root[data-look="bold"] .page-title .serif { color: var(--blue); }
:root[data-look="bold"] .page-hero .lede { color: var(--ink); }

/* Frames: white windows with ink chrome and hard shadows */
:root[data-look="bold"] .frame { background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--hard); }
:root[data-look="bold"] .frame-bar { background: #fff; border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 700; height: 2.3rem; }
:root[data-look="bold"] .frame-bar::before {
  width: 2.5rem; height: .75rem;
  background:
    radial-gradient(circle at .375rem 50%, var(--tomato) .26rem, var(--ink) .27rem, var(--ink) .36rem, transparent .37rem),
    radial-gradient(circle at 1.25rem 50%, var(--sun) .26rem, var(--ink) .27rem, var(--ink) .36rem, transparent .37rem),
    radial-gradient(circle at 2.125rem 50%, var(--pink) .26rem, var(--ink) .27rem, var(--ink) .36rem, transparent .37rem);
}
:root[data-look="bold"] .feature-media { padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
:root[data-look="bold"] .feature-media::before { display: none; }
:root[data-look="bold"] .feature-media .frame { border-radius: 16px; box-shadow: 10px 10px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
:root[data-look="bold"] .feature-media:hover { transform: none; box-shadow: none; }
:root[data-look="bold"] .feature-media:hover .frame { transform: translate(-4px, -4px); box-shadow: 16px 16px 0 var(--ink); }
:root[data-look="bold"] .tags li { box-shadow: none; background: var(--sun); color: var(--ink); font-weight: 700; font-size: .78rem; }

/* Cards */
:root[data-look="bold"] .practice, :root[data-look="bold"] .facts li, :root[data-look="bold"] .work-card,
:root[data-look="bold"] .print, :root[data-look="bold"] .service-list li, :root[data-look="bold"] .thumb-open,
:root[data-look="bold"] .ia-node {
  border: 3px solid var(--ink); box-shadow: var(--hard); transition: transform .2s, box-shadow .2s;
}
:root[data-look="bold"] .practice:hover, :root[data-look="bold"] .work-card:hover, :root[data-look="bold"] .print:hover {
  transform: translate(-4px, -4px); box-shadow: var(--hard-hover);
}
:root[data-look="bold"] .practice { background: #fff; }
:root[data-look="bold"] .practice:nth-child(1) { background: var(--sun); }
:root[data-look="bold"] .practice:nth-child(3) { background: var(--blue); color: #fff; }
:root[data-look="bold"] .practice:nth-child(3) p { color: rgba(255,255,255,.88); }
:root[data-look="bold"] .practice p { color: inherit; }
:root[data-look="bold"] .practice:hover h3 { color: inherit; }
:root[data-look="bold"] .practice h3 { font-size: 1.7rem; }
:root[data-look="bold"] .facts li:nth-child(1) { background: var(--sun); }
:root[data-look="bold"] .facts li:nth-child(2) { background: var(--pink); }
:root[data-look="bold"] .facts li:nth-child(3) { background: var(--blue); color: #fff; }
:root[data-look="bold"] .facts li:nth-child(3) span { color: rgba(255,255,255,.88); }
:root[data-look="bold"] .facts span { color: inherit; font-weight: 500; }
:root[data-look="bold"] .facts strong { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; }
:root[data-look="bold"] .work-card .frame, :root[data-look="bold"] .print-open { box-shadow: none; border: 2px solid var(--ink); }
:root[data-look="bold"] .work-card .frame-bar { height: 2rem; }
:root[data-look="bold"] .print-grid .print:nth-child(4n+1) { background: var(--sun); }
:root[data-look="bold"] .print-grid .print:nth-child(4n+3) { background: var(--pink); }
:root[data-look="bold"] .service-list li:nth-child(4n+1) { background: var(--sun); }
:root[data-look="bold"] .service-list li:nth-child(4n+4) { background: var(--pink); }
:root[data-look="bold"] .service-list p, :root[data-look="bold"] .work-card p, :root[data-look="bold"] .feature-body p,
:root[data-look="bold"] .timeline p, :root[data-look="bold"] .episode p, :root[data-look="bold"] .faq-item p, :root[data-look="bold"] .process p { color: #2c2c38; }
:root[data-look="bold"] .chip { border: 2px solid var(--ink); font-weight: 700; }
:root[data-look="bold"] .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
:root[data-look="bold"] .search input { border: 2px solid var(--ink); }
:root[data-look="bold"] .toolbar { background: var(--paper); border-bottom: 3px solid var(--ink); }
:root[data-look="bold"] .timeline, :root[data-look="bold"] .episode-list, :root[data-look="bold"] .process,
:root[data-look="bold"] .faq, :root[data-look="bold"] .ia, :root[data-look="bold"] .case-facts div { border-top: 3px solid var(--ink); }
:root[data-look="bold"] .timeline li, :root[data-look="bold"] .episode, :root[data-look="bold"] .process li, :root[data-look="bold"] .faq-item { border-bottom: 2px solid var(--ink); }
:root[data-look="bold"] .process .step-no { color: var(--tomato); font-weight: 800; }
:root[data-look="bold"] .video-player, :root[data-look="bold"] .video-poster { border-radius: 18px; }
:root[data-look="bold"] .video-player { border: 3px solid var(--ink); box-shadow: var(--hard); }
:root[data-look="bold"] .play { background: var(--sun); color: var(--ink); font-weight: 800; }
:root[data-look="bold"] .video-poster:hover .play { background: var(--tomato); color: #fff; }
:root[data-look="bold"] .cover .media, :root[data-look="bold"] .portrait .media { border: 3px solid var(--ink); box-shadow: var(--hard); border-radius: 20px; }
:root[data-look="bold"] .ia-role { background: var(--blue); }
:root[data-look="bold"] .ia-shared { background: var(--sun); }
:root[data-look="bold"] .sheet { box-shadow: var(--hard); }

/* Contact: tomato band */
:root[data-look="bold"] .contact-band { background: var(--tomato); color: #fff; padding: 0; }
:root[data-look="bold"] .contact-band .wrap { background: none; box-shadow: none; border-radius: 0; max-width: calc(var(--max) + var(--gutter) + var(--gutter-r)); padding: var(--s-8) var(--gutter-r) var(--s-8) var(--gutter); }
:root[data-look="bold"] .contact-band h2 { font-size: clamp(2.8rem, 1rem + 7vw, 7rem); max-width: 13ch; }
:root[data-look="bold"] .contact-band h2 .serif { color: var(--sun); }
:root[data-look="bold"] .contact-band .label, :root[data-look="bold"] .contact-band p, :root[data-look="bold"] .contact-links .handle { color: rgba(255,255,255,.9); }
:root[data-look="bold"] .contact-links { border-top: 2px solid rgba(255,255,255,.5); }
:root[data-look="bold"] .contact-links a { border-bottom: 2px solid rgba(255,255,255,.5); font-family: var(--f-display); font-weight: 800; }
:root[data-look="bold"] .contact-links a:hover { color: var(--sun); }
:root[data-look="bold"] .contact-band .btn { background: var(--ink); color: #fff; }
:root[data-look="bold"] .contact-band .btn:hover { background: var(--sun); color: var(--ink); }
:root[data-look="bold"] .contact-band .btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 3px #fff; }

:root[data-look="bold"] .site-footer { background: var(--ink); color: #b5b5c0; }
:root[data-look="bold"] .site-footer small, :root[data-look="bold"] .footer-links a { color: #b5b5c0; }
:root[data-look="bold"] .footer-links a:hover { color: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  :root[data-look="bold"] .practice:hover, :root[data-look="bold"] .work-card:hover, :root[data-look="bold"] .print:hover,
  :root[data-look="bold"] .feature-media:hover .frame, :root[data-look="bold"] .btn:hover { transform: none; }
}

/* Tighter corners on Web work and Design cards */
.work-card { border-radius: 10px; }
.work-card .frame, :root[data-look="bold"] .work-card .frame { border-radius: 6px; }
.print { border-radius: 10px; }
.print-open, .case-gallery .print-open { border-radius: 6px; }

/* Tighter corners on the Video & podcast page */
.video-player, .video-poster, .video-card .video-player,
:root[data-look="bold"] .video-player, :root[data-look="bold"] .video-poster { border-radius: 10px; }
.cover .media, :root[data-look="bold"] .cover .media { border-radius: 10px; }

/* Tighter corners on the About portrait */
.portrait .media, :root[data-look="bold"] .portrait .media { border-radius: 10px; }

/* Podcast cover: simple typographic tile */
.podcast-tile .media-fallback { background: var(--accent); color: var(--accent-ink); padding: var(--s-5); }
.podcast-tile .media-fallback .tile-mark { color: var(--accent-ink); font-size: clamp(1.9rem, 1.2rem + 2vw, 2.5rem); }
.podcast-tile .tile-icon { width: 2.25rem; height: 2.25rem; }

/* Three-option look switch: fit phone headers */
@media (max-width: 26rem) {
  .look-switch { gap: 0; }
  .look-switch button { padding: .42rem .45rem; font-size: .7rem; }
  .header-tools { gap: 6px; }
}


/* ==========================================================================
   Creative look — fonts: Archivo Expanded ExtraBold (headings) + Hanken Grotesk (body).
   Replaces Syne for headings. Colors, borders and shadows unchanged.
   ========================================================================== */
:root[data-look="bold"] {
  --f-display: "Archivo", "Geist", system-ui, sans-serif;
  --f-serif: "Archivo", "Geist", system-ui, sans-serif;
}
:root[data-look="bold"] h1, :root[data-look="bold"] h2, :root[data-look="bold"] h3, :root[data-look="bold"] h4,
:root[data-look="bold"] .brand, :root[data-look="bold"] .btn, :root[data-look="bold"] .serif,
:root[data-look="bold"] .index-list .name, :root[data-look="bold"] .contact-links a { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; }
:root[data-look="bold"] .hero-title, :root[data-look="bold"] .hero-title .serif, :root[data-look="bold"] .section-head h2, :root[data-look="bold"] .page-title, :root[data-look="bold"] .contact-band h2, :root[data-look="bold"] .facts strong { letter-spacing: -.035em; }
@media (max-width: 26rem) { :root[data-look="bold"] .brand { font-stretch: 100%; letter-spacing: .04em; font-size: .95rem; } }

/* Phone header fit: brand + look switch + menu button must fit one row */
@media (max-width: 30rem) {
  .brand span { display: none; }
  .site-header .wrap { gap: 8px; }
  .look-switch button { padding: .42rem .45rem; font-size: .7rem; }
}
@media (max-width: 24rem) {
  .brand { font-size: .95rem; }
  .look-switch button { padding: .4rem .36rem; font-size: .66rem; }
  .header-tools { gap: 4px; }
}
@media (max-width: 21rem) {
  .brand { font-size: .82rem; }
  .look-switch button { padding: .38rem .28rem; font-size: .62rem; }
  .site-header .wrap { gap: 4px; }
}
