/* ============================================================
   @johannescls â€” NYC Polaroid Studio
   Palette: cream, butter yellow, sky blue, ink navy
   Fonts: Fraunces / Space Grotesk / Caveat / JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,600;1,9..144,900&family=Space+Grotesk:wght@400;500;600;700&family=Caveat:wght@500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Paper & ink */
  --paper:      #fbf7ee;
  --paper-2:    #f4eddf;
  --paper-edge: #ebe2cf;
  --ink:        #1b2537;
  --ink-soft:   #445069;
  --ink-muted:  #8a8fa0;

  /* Accent duo â€” butter + sky */
  --butter:     #ffd86b;
  --butter-2:   #ffe8a3;
  --butter-ink: #8a6400;
  --sky:        #a8d4f0;
  --sky-2:      #d6eaf8;
  --sky-ink:    #1e5b7a;

  /* Mode variables (overridden by data-mode) */
  --bg:        var(--paper);
  --bg-alt:    var(--paper-2);
  --fg:        var(--ink);
  --fg-soft:   var(--ink-soft);
  --fg-mute:   var(--ink-muted);
  --line:      rgba(27, 37, 55, 0.12);
  --line-hard: rgba(27, 37, 55, 0.28);
  --accent:    var(--sky-ink);
  --accent-bg: var(--sky-2);

  /* Fonts */
  --f-serif: 'Fraunces', 'Times New Roman', serif;
  --f-sans:  'Space Grotesk', system-ui, sans-serif;
  --f-hand:  'Caveat', 'Comic Sans MS', cursive;
  --f-mono:  'JetBrains Mono', 'Courier New', monospace;

  color-scheme: light;
}

/* NIGHT MODE â€” code mode */
html[data-mode="it"] {
  --bg:        #0f1a2e;
  --bg-alt:    #172440;
  --fg:        #f0eee6;
  --fg-soft:   #c8d3e6;
  --fg-mute:   #7f8ba5;
  --line:      rgba(255, 255, 255, 0.12);
  --line-hard: rgba(255, 255, 255, 0.28);
  --accent:    var(--butter);
  --accent-bg: rgba(255, 216, 107, 0.15);
  color-scheme: dark;
}

/* DAY MODE â€” design mode */
html[data-mode="creative"] {
  --bg:        #fbf7ee;
  --bg-alt:    #f4eddf;
  --fg:        #1b2537;
  --fg-soft:   #445069;
  --fg-mute:   #8a8fa0;
  --line:      rgba(27, 37, 55, 0.12);
  --line-hard: rgba(27, 37, 55, 0.28);
  --accent:    var(--sky-ink);
  --accent-bg: var(--sky-2);
  color-scheme: light;
}

/* Day-mode yellow accents */
html[data-mode="creative"] .section-num,
html[data-mode="creative"] .org-head .org-index,
html[data-mode="creative"] .case-head .case-num,
html[data-mode="creative"] .exp-row .year,
html[data-mode="creative"] .toolkit-card .num,
html[data-mode="creative"] details.certs li::before {
  color: var(--butter-ink);
}

html[data-mode="creative"] .section-title em,
html[data-mode="creative"] .about-text h2 em,
html[data-mode="creative"] .org-head h2 em,
html[data-mode="creative"] .case-head h2 em,
html[data-mode="creative"] .page-hero h1 em,
html[data-mode="creative"] .footer-cta em {
  color: var(--butter-ink);
}

html[data-mode="creative"] .footer-meta .handle {
  color: var(--butter-ink);
}

html[data-mode="creative"] .btn-primary {
  background: var(--ink);
  color: var(--paper);
}
html[data-mode="creative"] .btn-primary:hover {
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 216, 107, 0.5);
}
html[data-mode="creative"] .btn-primary .arrow {
  background: var(--butter);
  color: var(--ink);
}
html[data-mode="creative"] .btn-primary:hover .arrow {
  background: var(--ink);
  color: var(--paper);
}

/* Day-mode background pattern */
html[data-mode="creative"] body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(27, 37, 55, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

html[data-mode="creative"] .hero::before {
  background: radial-gradient(circle, rgba(255, 216, 107, 0.35) 0%, transparent 70%);
}
html[data-mode="creative"] .page-hero::before {
  background: radial-gradient(circle, rgba(255, 216, 107, 0.35) 0%, transparent 70%);
}

html[data-mode="creative"] .mode-toggle button[aria-pressed="true"] {
  background: var(--butter);
  color: var(--ink);
}

/* Day-mode door accent */
html[data-mode="creative"] .door .door-num,
html[data-mode="creative"] .door h2 em {
  color: var(--butter);
}

* { box-sizing: border-box; }

html {
  --nav-height: 64px;
  --section-tabs-height: 0px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--section-tabs-height) + 16px);
}

body {
  margin: 0;
  font: 16px/1.6 var(--f-sans);
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip {
  position: fixed; top: -100px; left: 20px; z-index: 999;
  background: var(--butter); color: var(--ink);
  padding: 10px 18px; font-weight: 700; border-radius: 8px;
  transition: top 0.25s ease;
}
.skip:focus { top: 12px; }

/* ---- Utility ---- */
.serif  { font-family: var(--f-serif); }
.hand   { font-family: var(--f-hand); }
.mono   { font-family: var(--f-mono); }
.label  {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-hard);
  border-radius: 100px;
  color: var(--fg-soft);
  background: var(--bg);
}

/* ============================================================
   STICKY NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-brand .at {
  color: var(--accent);
  font-weight: 400;
}

.nav-brand .mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent);
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}
.nav-brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nav-brand:hover .mark { transform: rotate(6deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--fg-soft);
  transition: all 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: var(--accent-bg);
}
.nav-links .nav-resume {
  border: 1px solid var(--line-hard);
  font-weight: 600;
  white-space: nowrap;
}
.nav-links .nav-talk {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}
.nav-links .nav-talk:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Mode toggle in nav */
.mode-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--line-hard);
  background: var(--bg-alt);
  margin-right: 8px;
}
.mode-toggle button {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--fg-mute);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.mode-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

/* ============================================================
   HERO â€” Editorial split w/ Polaroids
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px clamp(16px, 5vw, 72px) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

/* Decorative background doodle */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -15%;
  width: 45vw; height: 45vw;
  max-width: 600px; max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--butter) 25%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--fg-mute);
}

.hero h1 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero h1 .row { display: block; }
.hero h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero h1 .hand {
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 0.5em;
  color: var(--accent);
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-3deg);
  margin-top: 6px;
}

.hero-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 44ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary .arrow {
  display: grid; place-items: center;
  flex-shrink: 0;
  line-height: 1;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  transition: transform 0.3s ease;
}
.btn-primary:hover .arrow { transform: rotate(-45deg); }
.btn-ghost {
  color: var(--fg);
  border-color: var(--line-hard);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Polaroid stack */
/* ============================================================
   POLAROID CAROUSEL (Hero)
   ============================================================ */
.hero-polaroids {
  /* Increase this value to move the fade boundary farther toward the text. */
  --carousel-left-extension: clamp(40px, 5vw, 80px);
  margin-left: calc(-1 * var(--carousel-left-extension));
  min-width: 0;
  position: relative;
  z-index: 2;
  height: min(640px, 78vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-polaroids:active { cursor: grabbing; }

.polaroid-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 20px;
  animation: drift 60s linear infinite;
  will-change: transform;
}

/* Auto-drifting carousel */
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

html[data-motion="off"] .polaroid-track {
  animation: none;
}

.polaroid {
  position: relative;
  flex-shrink: 0;
  background: #fff;
  padding: 14px 14px 54px;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.12),
    0 24px 48px -12px rgba(0,0,0,0.18);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  will-change: transform;
  width: 260px;
  aspect-ratio: 4/5;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05) !important;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 20px 48px -12px rgba(0,0,0,0.28);
  z-index: 5;
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.polaroid .caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  font-family: var(--f-hand);
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.1;
}
.polaroid .stamp {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
}

/* Give each polaroid a unique tilt & width */
.polaroid:nth-child(6n+1) { transform: rotate(-5deg); width: 260px; }
.polaroid:nth-child(6n+2) { transform: rotate(3deg)  translateY(14px); width: 220px; }
.polaroid:nth-child(6n+3) { transform: rotate(-3deg) translateY(-10px); width: 240px; }
.polaroid:nth-child(6n+4) { transform: rotate(4deg)  translateY(8px);  width: 250px; }
.polaroid:nth-child(6n+5) { transform: rotate(-4deg) translateY(-6px); width: 230px; }
.polaroid:nth-child(6n+6) { transform: rotate(2deg)  translateY(12px); width: 260px; }

/* Rotating badge sticker */
.hero-sticker {
  position: absolute;
  top: 0px; right: 8%;
  width: 100px; height: 100px;
  z-index: 4;
  display: grid;
  place-items: center;
  animation: spin 22s linear infinite;
  pointer-events: none;
}
.hero-sticker svg { width: 100%; height: 100%; }
.hero-sticker text {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--fg);
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 32px;
  background: var(--fg-mute);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.section {
  padding: clamp(70px, 10vw, 140px) clamp(16px, 5vw, 72px);
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-head .left { max-width: 640px; }
.section-num {
  font-family: var(--f-hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-4deg);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-desc {
  font-size: 15px;
  color: var(--fg-soft);
  max-width: 42ch;
  margin-top: 16px;
  line-height: 1.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-photo {
  position: relative;
}
.about-polaroid {
  position: relative;
  background: #fff;
  padding: 16px 16px 72px;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 16px 40px -8px rgba(0,0,0,0.18);
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.about-polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.about-polaroid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.about-polaroid .caption {
  position: absolute;
  bottom: 20px;
  left: 20px; right: 20px;
  font-family: var(--f-hand);
  font-size: 24px;
  font-weight: 600;
  color: #444;
  text-align: center;
  line-height: 1.1;
}
.about-polaroid .tape {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 90px; height: 26px;
  background: color-mix(in srgb, var(--butter) 70%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.about-polaroid .tape::before,
.about-polaroid .tape::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    45deg, transparent 0 4px, rgba(0,0,0,0.05) 4px 6px
  );
}
.about-polaroid .tape::before { left: 0; }
.about-polaroid .tape::after  { right: 0; }

.about-text h2 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.about-text h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.about-text p {
  color: var(--fg-soft);
  margin-bottom: 18px;
  max-width: 52ch;
  line-height: 1.7;
}
.about-text .lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--fg);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-hard);
}
.about-facts div span {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
.about-facts div strong {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}

/* ============================================================
   EXPERIENCE (timeline)
   ============================================================ */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.exp-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: start; /* Changed from baseline to start so logo aligns to top */
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.exp-row:hover { padding-left: 12px; background: var(--accent-bg); }
.exp-row .year {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 500;
  padding-top: 12px; /* Aligns the text nicely with the logo */
}

/* New wrapper to hold logo + text side by side */
.exp-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* The Polaroid-style Logo */
.exp-row .org-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px -2px rgba(0,0,0,0.15);
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
  flex-shrink: 0;
}
.exp-row:hover .org-logo {
  transform: rotate(2deg) scale(1.05);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 12px 24px -6px rgba(0,0,0,0.2);
}

.exp-row .role {
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.exp-row .org {
  font-size: 14px;
  color: var(--fg-mute);
  font-weight: 500;
  margin-bottom: 8px;
}
.exp-row .desc {
  font-size: 14.5px;
  color: var(--fg-soft);
  max-width: 56ch;
  line-height: 1.6;
}
.exp-row .arrow {
  font-family: var(--f-hand);
  font-size: 30px;
  color: var(--accent);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  padding-top: 8px;
}
.exp-row:hover .arrow { transform: rotate(-45deg); }

/* ============================================================
   FOUNDATIONS / TOOLKIT
   ============================================================ */
.edu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.edu-card {
  background: var(--bg);
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent) 40%, transparent);
}
.edu-card .label { margin-bottom: 10px; }
.edu-card h3 {
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.edu-card p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
}

.foundation-group-head { margin-bottom: 24px; }
.foundation-group-head h3 {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.foundation-group-head p { color: var(--fg-mute); font-size: 14px; line-height: 1.6; }
.foundation-skills {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-hard);
}
#foundations .foundation-group .edu-list { margin-bottom: 0; }
#foundations .foundation-group .toolkit-grid { margin-top: 0; }
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.toolkit-card {
  padding: 28px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--bg);
  transition: all 0.3s ease;
}
.toolkit-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.toolkit-card .num {
  font-family: var(--f-hand);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.toolkit-card h3 {
  font-family: var(--f-serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.toolkit-card p {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.6;
}

details.certs {
  margin-top: 40px;
  border-top: 1px dashed var(--line-hard);
  padding-top: 20px;
}
details.certs summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
}
details.certs summary::-webkit-details-marker { display: none; }
details.certs summary .plus {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
details.certs[open] summary .plus { transform: rotate(45deg); }
details.certs ul {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
}
details.certs li {
  font-size: 14px;
  color: var(--fg-soft);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px dashed var(--line);
}
details.certs li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   TWO DOORS
   ============================================================ */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100svh;
}
.door {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 72px);
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  transition: flex 0.5s ease;
}
.door img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(110%) contrast(105%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.85) 100%);
  transition: background 0.5s ease;
}
.door:hover img { transform: scale(1.06); }
.door:hover::before {
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.9) 100%);
}
.door-content { width: 100%; position: relative; z-index: 1; }
.door .door-num {
  font-family: var(--f-hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--butter);
  margin-bottom: 12px;
  transform: rotate(-3deg);
  display: inline-block;
}
.door h2 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.door h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--butter);
}
.door p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 36ch;
  margin-bottom: 24px;
}
.door .door-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  transition: all 0.3s ease;
}
.door:hover .door-cta {
  background: var(--butter);
  border-color: var(--butter);
  color: #1b2537;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
#socials { scroll-margin-top: 110px; }

.social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.social-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 6px 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.social-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-4px);
}
.social-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  align-self: center;
  fill: var(--accent);
  stroke: none;
}
.social-icon-cutout {
  fill: var(--bg);
  stroke: var(--bg);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-icon-placeholder {
  display: block;
  box-sizing: border-box;
  border: 1px dashed var(--accent);
  background: var(--accent-bg);
  border-radius: 4px;
}
img.social-icon { object-fit: contain; }
.social-handle { min-width: 0; overflow-wrap: anywhere; }
.social-platform {
  grid-column: 2 / -1;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.social-handle {
  grid-column: 2;
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.social-arrow {
  color: var(--accent);
  font-family: var(--f-hand);
  font-size: 30px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.social-card:hover .social-arrow { transform: translate(4px, -4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 72px) 40px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-cta {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 16px 0 60px;
  display: block;
  max-width: 900px;
  transition: color 0.3s ease;
}
.footer-cta em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer-cta:hover { color: var(--accent); }
.footer-cta .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.footer-cta:hover .arrow { transform: translate(8px, -8px); }

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-mute);
}
.footer-meta .handle {
  font-family: var(--f-hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  transform: rotate(-2deg);
  display: inline-block;
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.motion-toggle {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 6px 12px;
  border: 1px solid var(--line-hard);
  border-radius: 100px;
  transition: all 0.2s ease;
}
.motion-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-hero {
  padding: clamp(120px, 14vw, 180px) clamp(16px, 5vw, 72px) clamp(40px, 6vw, 80px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 20%; right: -15%;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; }
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 152px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-hero p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-soft);
  max-width: 52ch;
  line-height: 1.65;
}

/* Tab bar for archive sections */
.tab-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 12px clamp(16px, 5vw, 72px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
/* Collection pages begin with a back link instead of a padded hero. */
main > .nu-page-nav, main > .sace-page-nav {
  padding-top: calc(var(--nav-height) + 24px);
}
.tab-bar a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--fg-mute);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab-bar a:hover { color: var(--fg); background: var(--accent-bg); }
.tab-bar a.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.tab-bar a sup {
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
}

/* ============================================================
   GALLERY (Creative)
   ============================================================ */
/* ============================================================
   IT CASE STUDY
   ============================================================ */
.case {
  padding: clamp(50px, 7vw, 100px) clamp(16px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.case:nth-child(even) { background: var(--bg-alt); }

.case-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
.case-head .case-num {
  font-family: var(--f-hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  transform: rotate(-3deg);
  display: inline-block;
  margin-bottom: 4px;
}
.case-head h2 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.case-head h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.case-head .case-desc {
  font-size: 15px;
  color: var(--fg-soft);
  margin-top: 12px;
  max-width: 56ch;
  line-height: 1.6;
}
.case-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  white-space: nowrap;
  align-self: start;
}

.case-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.case-shot {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-hard);
  background: var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.case-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.case-shot img {
  width: 100%;
  display: block;
}
.case-shot .shot-label {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  border-top: 1px solid var(--line);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-hard);
}
.case-meta div .label { margin-bottom: 6px; }
.case-meta div p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
dialog {
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #0a1020;
  color: #f0eee6;
  width: min(94vw, 1300px);
  max-height: 92vh;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
}
dialog::backdrop {
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(12px);
}
.lb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lb-toolbar button {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 11px;
  color: #f0eee6;
  transition: all 0.2s ease;
}
.lb-toolbar button:hover {
  background: var(--butter);
  color: #1b2537;
  border-color: var(--butter);
}
.lb-stage {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  height: 70vh;
}
.lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.lb-stage button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f0eee6;
  display: grid; place-items: center;
  font-size: 18px;
  transition: all 0.2s ease;
}
.lb-stage button:hover {
  background: var(--butter);
  color: #1b2537;
  border-color: var(--butter);
}
.lb-caption {
  padding: 8px 24px 24px;
  text-align: center;
}
.lb-caption h3 {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.lb-caption p {
  font-size: 12px;
  color: rgba(240, 238, 230, 0.65);
}

/* ============================================================
   CREDITS PAGE
   ============================================================ */
.credits-wrap {
  padding: 0 clamp(16px, 5vw, 72px) clamp(60px, 9vw, 120px);
  max-width: 1400px;
  margin: 0 auto;
}
.credits-wrap > p {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.7;
  max-width: 70ch;
  margin-bottom: 20px;
}
.credits-wrap > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin: 40px 0;
}
.credit-card {
  background: #fff;
  color: #10264d;
  padding: 12px 12px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.credit-card:nth-child(2n) { transform: rotate(1.5deg); }
.credit-card:hover { transform: rotate(0deg); }
.credit-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 14px;
}
.credit-card h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.credit-card p { font-size: 13px; color: #46556b; line-height: 1.65; margin-bottom: 14px; }
.credit-card a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #205b7a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-card a:hover { color: #10264d; }
.credit-card a:focus-visible { outline: 2px solid #205b7a; outline-offset: 4px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
/* Content stays readable without scripting; entrances are progressively enhanced. */
.reveal { opacity: 1; }
html[data-motion="off"] .reveal { opacity: 1; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--butter));
  transform-origin: left;
  transform: scaleX(var(--page-progress, 0));
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
  }
  .hero-polaroids {
    --carousel-left-extension: 0px;
    height: 420px;
    margin-top: 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .social-list { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 60vh; }
  .case-head { grid-template-columns: 1fr; }
  .case-badge { justify-self: start; }
  .case-shots { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 1fr; gap: 8px; }
  .exp-row .arrow { display: none; }
  .exp-content {
    gap: 16px;
  }
  .exp-row .org-logo {
    width: 52px;
    height: 52px;
    padding: 4px;
  }
}

@media (max-width: 900px) {
  .nav { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .nav-links { gap: 2px; flex-basis: 100%; min-width: 0; justify-content: flex-start; overflow-x: auto; }
  .nav-links a { flex-shrink: 0; font-size: 12.5px; padding: 10px; white-space: nowrap; }
  .mode-toggle button { padding: 5px 9px; font-size: 9px; }
  .nav-brand { font-size: 18px; }
  .nav-brand .mark { width: 26px; height: 26px; font-size: 17px; }
  .page-hero { padding-top: max(140px, calc(var(--nav-height) + 32px)); }
}

@media (max-width: 700px) {

  .hero h1 { font-size: clamp(42px, 11vw, 72px); }
  .hero-polaroids { height: 360px; }
  .polaroid { width: 200px; }
  .polaroid-track { gap: 16px; padding: 30px 12px; }
  
  .hero-sticker { width: 72px; height: 72px; top: 2%; right: 4%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .about-facts { grid-template-columns: 1fr 1fr; gap: 18px; }

  .polaroid-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tile-btn { padding: 8px 8px 36px; }
  .tile-btn .cap { font-size: 14px; bottom: 10px; }

  .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; padding: 8px; height: 60vh; height: 60dvh; }
  .lb-stage button { width: 44px; height: 44px; font-size: 14px; }
  .lb-stage img { min-width: 0; min-height: 0; }
  .lb-toolbar { gap: 12px; padding: 12px; letter-spacing: .04em; }
  .lb-toolbar button { flex-shrink: 0; min-height: 44px; }
  dialog { max-height: 92dvh; }

  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Temporary home-page construction welcome. */
#construction-notice {
  box-sizing: border-box;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  padding: clamp(28px, 6vw, 48px);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  text-align: center;
  overflow-y: auto;
}
#construction-notice::before {
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  inset: 0 0 auto;
  background: repeating-linear-gradient(135deg, #ffd86b 0 14px, #172440 14px 28px);
}
.construction-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  color: inherit;
  font-size: 28px;
  border: 0;
  cursor: pointer;
}
.construction-icon { font-size: 52px; margin-bottom: 16px; }
.construction-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}
#construction-title {
  font-family: var(--f-serif);
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.1;
  margin: 18px 0;
}
#construction-description { color: var(--fg-mute); line-height: 1.7; }
.construction-note { margin: 18px 0 26px; font-size: 13px; }
html:has(#construction-notice[open]) { overflow: hidden; }

/* Toolkits shared by the creative and tech pages. */
.toolkit { border-bottom: 1px solid var(--line); }
.toolkit .section-head { margin-bottom: 28px; }
.toolkit .label { display: block; margin-bottom: 16px; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  background: var(--bg-alt);
  min-width: 0;
}
.tool-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
}
.tool-card h3 { font-family: var(--f-sans); font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.tool-card p { font-size: 13px; line-height: 1.6; color: var(--fg-mute); margin: 0; }
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } .tool-card { padding: 20px; } }

/* Local brand artwork keeps toolkit cards readable in either color mode. */
.tool-mark--logos { background: #f4f6fa; box-sizing: border-box; padding: 8px; }
.tool-mark--logos img { display: block; width: 32px; height: 32px; object-fit: contain; }
.tool-mark--pair { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.tool-mark--pair img { width: 19px; height: 30px; }

/* A little personality for both toolkits; artwork stays in its brand colors. */
.tool-card { transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, border-color .32s ease; }
.tool-card .tool-mark { transition: box-shadow .32s ease; }
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgb(0 0 0 / 14%); }
  html:not([data-motion="off"]) .tool-card:hover { transform: translateY(-6px); }
  html:not([data-motion="off"]) .tool-card:hover .tool-mark { animation: tool-badge-pop .65s cubic-bezier(.22, 1, .36, 1) both; box-shadow: 0 6px 16px rgb(0 0 0 / 12%); }
  html:not([data-motion="off"]) .tool-card:hover .tool-mark img { animation: tool-logo-wiggle .75s ease both; }
  html:not([data-motion="off"]) .tool-card:hover .tool-mark--pair img:last-child { animation-delay: .1s; }
}
@keyframes tool-badge-pop {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-5px) scale(1.12) rotate(-6deg); }
  70% { transform: translateY(1px) scale(1.04) rotate(3deg); }
  100% { transform: translateY(-2px) scale(1.06); }
}
@keyframes tool-logo-wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(12deg); }
  55% { transform: rotate(-9deg); }
  78% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card, .tool-card .tool-mark { transition: none; }
  html:not([data-motion="off"]) .tool-card:hover,
  html:not([data-motion="off"]) .tool-card:hover .tool-mark,
  html:not([data-motion="off"]) .tool-card:hover .tool-mark img { transform: none; animation: none; }
}

/* Larger reading text, without changing the scale of the display headings. */
.label, .section-num, .case-num { font-size: 12px; }
.tool-card p { font-size: 15px; line-height: 1.75; }
.credit-card p { font-size: 15px; line-height: 1.8; }
.lb-caption p { font-size: 15px; line-height: 1.8; }
.footer-meta { font-size: 13px; }

/* Decorative accents follow the scroll; unsupported browsers keep them still. */
@supports (animation-timeline: view()) {
  html[data-motion="on"] .luminus-hero-spark,
  html[data-motion="on"] .projects-coming-mark,
  html[data-motion="on"] .internship-orbit {
    animation: scroll-turn linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  html[data-motion="on"] .luminus-hero-halo {
    animation: scroll-halo linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes scroll-turn { from { rotate: -30deg; } to { rotate: 85deg; } }
@keyframes scroll-halo { from { scale: .86; opacity: .5; } to { scale: 1.08; opacity: 1; } }
/* Slow, small accents; no animated filters, shadows, or layout properties. */
@keyframes ambient-breathe { 0%, 100% { translate:0 0; } 50% { translate:0 -5px; } }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .ambient-accent { animation:ambient-breathe 6s ease-in-out infinite; animation-play-state:paused; }
  html[data-motion="on"] .ambient-accent.ambient-active { animation-play-state:running; }
  html[data-motion="on"] .ambient-accent:nth-child(even) { animation-delay:-3s; }
  html[data-motion="on"] .nav-links a { transition:translate .2s ease, background-color .2s ease; }
  html[data-motion="on"] .nav-links a:hover { translate:0 -2px; }
  html[data-motion="on"] .btn .arrow, html[data-motion="on"] .work-cta > span { transition:translate .25s ease; }
  html[data-motion="on"] .work-cta > span { display:inline-block; }
  html[data-motion="on"] .btn:hover .arrow, html[data-motion="on"] .work-feature:hover .work-cta > span { translate:3px -3px; }
}
.section > .label.ambient-accent, .footer > .label.ambient-accent { display:inline-block; }
@media (prefers-reduced-motion: reduce) {
  .luminus-hero-spark, .projects-coming-mark, .internship-orbit, .luminus-hero-halo { animation: none !important; }
}
