/* ==========================================================================
   Dr. Yethindra Vityala — "The Lab Notebook"
   Paper + lab grid (bermawy) · giant name & cobalt wipes (alejandroha)
   intro split, scroll-reveal copy, list rows (pamidor)
   ========================================================================== */

/* the hero name waits for its own font instead of flashing a fallback; same file as the Google Fonts Archivo */
@font-face {
  font-family: "Archivo Hero"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: block;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdnoLg.woff2) format("woff2");
}

:root {
  --paper: #efece5;
  --paper-2: #e6e2d8;
  --card: #f7f5f0;
  --ink: #0e0f13;
  --ink-2: #3d3e45;
  --mute: #66645f;
  --line: rgba(14, 15, 19, 0.14);
  --line-2: rgba(14, 15, 19, 0.28);
  --grid: rgba(42, 62, 158, 0.2);
  --blue: #2b3f9f;
  --blue-2: #1f2f80;
  --blue-soft: #dfe3f4;
  --pulse: #e2412e;
  --pulse-text: #c4301f; /* the red when it is text on paper */
  --night: #0b0c10;
  --night-2: #15161c;
  --gold: #b88a2a;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --f-hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--paper);
  /* dot-grid notebook paper: reads as a lab notebook without cutting through small type */
  background-image: radial-gradient(circle, var(--grid) 1.1px, transparent 1.6px);
  background-size: 30px 30px;
  background-position: 15px 15px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--f-mono); font-size: 12.5px; }
.skip:focus { top: 12px; }

/* ---------- type primitives ---------- */
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.br-label { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-style: italic; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: 0; color: var(--blue); }
.br-label::before { content: "[ "; }
.br-label::after { content: " ]"; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.kicker i { width: 8px; height: 8px; background: var(--pulse); border-radius: 50%; display: inline-block; }
.h-statement { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(48px, 8.6vw, 150px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.h-section { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(40px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.h-light { font-weight: 250; font-variation-settings: "wdth" 100; letter-spacing: -0.045em; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.35; letter-spacing: -0.01em; max-width: 46ch; }
.body-copy { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.body-copy p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 99px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
  background: var(--ink); color: #fff; transition: transform 0.3s var(--ease), background 0.3s;
  position: relative; overflow: hidden;
}
.pill:hover { transform: translateY(-2px); }
.pill--blue { background: var(--blue); }
.pill--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill--light { background: #fff; color: var(--ink); }
.pill--lg { height: 46px; padding: 0 22px; font-size: 13px; }
.pill .arr { transition: transform 0.3s var(--ease); }
.pill:hover .arr { transform: translateX(3px); }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-2);
  border-radius: 4px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.35);
}
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.topbar.is-scrolled { background: rgba(239, 236, 229, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar.on-dark { color: #fff; }
.topbar.on-dark.is-scrolled { background: rgba(11, 12, 16, 0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.brand { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.brand b { font-weight: 800; }
.brand { padding: 8px 6px 8px 0; }
.brand .ecg-mini { width: 40px; height: 22px; color: var(--pulse); transition: transform 0.4s var(--ease); }
.brand:hover .ecg-mini { transform: scale(1.12); }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 6px 8px; border-radius: 4px; transition: background 0.25s, color 0.25s;
}
.nav a::before { content: "["; opacity: 0; margin-right: 2px; transition: opacity 0.25s; }
.nav a::after { content: "]"; opacity: 0; margin-left: 2px; transition: opacity 0.25s; }
.nav a:hover::before, .nav a:hover::after, .nav a[aria-current="page"]::before, .nav a[aria-current="page"]::after { opacity: 1; }
.nav a[aria-current="page"] { color: var(--blue); }
.on-dark .nav a[aria-current="page"] { color: #9fb0ff; }
.top-cta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex: 1 1 0; }
.topbar > .brand { flex: 1 1 0; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--blue); color: #fff;
  clip-path: circle(0% at calc(100% - 38px) 32px); visibility: hidden; transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 12px) var(--gutter) 28px; overflow-y: auto;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 38px) 32px); visibility: visible; transition: clip-path 0.8s var(--ease), visibility 0s; }
.drawer-close { position: absolute; top: 10px; right: calc(var(--gutter) - 6px); width: 44px; height: 44px; font-size: 26px; color: #fff; }
.drawer nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.2); }
.drawer nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(34px, 9vw, 64px); letter-spacing: -0.015em; line-height: 1; }
.drawer nav a small { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; opacity: 0.7; letter-spacing: 0; }
.drawer .drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .top-cta .pill--blue { display: none; }
}
@media (max-width: 520px) {
  .top-cta .pill { display: none; }
  .brand { font-size: 16px; }
}

/* ---------- HOME hero: the name is the picture ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 28px) var(--gutter) 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-kicker { position: relative; z-index: 3; margin-bottom: clamp(72px, 15vh, 170px); }
.hero-name {
  margin: 0; padding: 0; font-family: "Archivo Hero", var(--f-display); font-weight: 250; text-transform: uppercase; line-height: 0.86; text-align: left;
  letter-spacing: -0.05em; font-size: clamp(56px, 13.6vw, 300px); white-space: nowrap; position: relative; z-index: 3; color: var(--ink);
}
.hero-name .dr { font-family: var(--f-hand); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--blue); font-size: 0.24em; vertical-align: 2.3em; margin-right: 0.18em; }
.hero-name .line { display: block; width: fit-content; overflow: hidden; padding: 0 0.14em 0.03em; margin: 0 -0.14em; }
.hero-name .line:nth-child(2) { margin-left: auto; margin-right: 0; padding-right: 0.1em; } /* stays inside the edge so the fit check settles */
.hero-name .line > span { display: inline-block; }
/* cursor-responsive name */
.hero-name .ch { display: inline-block; font-variation-settings: "wght" var(--w, 250), "wdth" var(--d, 100); will-change: font-variation-settings; }
.hero-name .line:nth-child(2) .ch { --w: 800; --d: 112; }
.hero-name b { font-weight: inherit; }
.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: clamp(18px, 2.4vw, 34px); padding: 18px 0 28px; border-top: 1px solid var(--line-2); position: relative; z-index: 3; }
.hero-tag { margin: 0; font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.005em; }
.hero-tag em { color: var(--blue); }
.hero-foot .cities { color: var(--ink-2); justify-self: center; }
.hero-cta { display: flex; gap: 8px; justify-self: end; }
@media (max-width: 900px) {
  .hero-kicker { margin-bottom: clamp(56px, 12vh, 110px); }
  .hero-name { font-size: clamp(44px, 14.6vw, 140px); }
  .hero-foot { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .hero-foot .cities { justify-self: start; }
  .hero-cta { justify-self: start; flex-wrap: wrap; }
}

/* ---------- inner page hero ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 100px)); padding-bottom: clamp(40px, 6vw, 80px); position: relative; }
.phero .crumb { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.phero h1 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; letter-spacing: -0.025em; line-height: 0.98; font-size: clamp(60px, 11vw, 190px); }
.phero h1 b { font-weight: 400; font-style: italic; font-variation-settings: normal; letter-spacing: -0.02em; }
.phero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.phero-grid .lead { justify-self: end; }
.phero-note { font-family: var(--f-serif); font-style: italic; color: var(--blue); font-size: 24px; display: inline-block; }
.fig-note { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--blue); margin-top: 8px; }
@media (max-width: 800px) { .phero-grid { grid-template-columns: 1fr; } .phero-grid .lead { justify-self: start; } }

/* ---------- section scaffolding ---------- */
.sec { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 60px); flex-wrap: wrap; }
.sec-head .left { display: grid; gap: 14px; }
.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }
.dark { background: var(--night); color: #f3f1ec; background-image: none; }
.dark .body-copy, .dark .lead { color: #c9c7c0; }
.dark .rule { background: rgba(255,255,255,0.16); }
.dark .tag { border-color: rgba(255,255,255,0.25); background: transparent; }
.bluebg { background: var(--blue); color: #fff; }

/* ---------- scroll-reveal statement (pamidor) ---------- */
.statement { display: grid; grid-template-columns: 1fr minmax(180px, 280px); gap: clamp(24px, 4vw, 60px); align-items: start; }
.reveal-text { margin: 0; font-family: var(--f-serif); font-variation-settings: normal; font-size: clamp(27px, 3.3vw, 52px); line-height: 1.14; letter-spacing: -0.012em; font-weight: 400; }
.reveal-text .w { color: rgba(14,15,19,0.16); transition: color 0.2s; }
.reveal-text .w.on { color: var(--ink); }
.reveal-text em { font-style: normal; }
.reveal-text .w.on.hl { color: var(--blue); }
.polaroid { background: #fff; padding: 10px 10px 40px; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.35); transform: rotate(4deg); position: relative; }
.polaroid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: grayscale(1); }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 11px; font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.polaroid .tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(231, 222, 190, 0.8); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } .polaroid { max-width: 240px; } }

/* ---------- home About: side column with a small photo, text beside it ---------- */
.about-brief { padding-top: clamp(56px, 7vw, 110px); }
.ab-grid { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 96px); padding-top: clamp(24px, 2.6vw, 36px); background: linear-gradient(var(--line-2), var(--line-2)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.ab-label { display: block; margin-bottom: 18px; color: var(--mute); }
.ab-photo { display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter 0.6s var(--ease); }
.ab-side:hover .ab-photo { filter: none; }
.ab-card { display: grid; gap: 5px; margin-top: 16px; max-width: 230px; }
.ab-card b { font-family: var(--f-serif); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -0.005em; }
.ab-card span { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; line-height: 1.5; color: var(--ink-2); }
.ab-copy { max-width: 980px; }
.ab-title { margin: 0 0 clamp(22px, 2.4vw, 32px); font-family: var(--f-serif); font-weight: 400; font-size: clamp(46px, 6vw, 104px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.ab-and { display: inline-block; width: 0.6em; height: 0.6em; margin: 0 0.04em; color: var(--pulse); vertical-align: 0.02em; }
.ab-and svg { width: 100%; height: 100%; overflow: visible; }
.ab-and path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
.ab-title.is-in .ab-and path, .reduced .ab-and path { stroke-dashoffset: 0; }
.ab-lead { margin: 0; max-width: 34ch; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink); }
.ab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(22px, 2.4vw, 32px); }
.ab-cols p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ab-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); margin: clamp(30px, 3.2vw, 44px) 0 0; }
.ab-rows div { padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.ab-rows dt { margin-bottom: 7px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--mute); }
.ab-rows dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
.ab-links { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: clamp(28px, 3vw, 40px); }
.ab-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 6px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; transition: color 0.3s, border-color 0.3s; }
.ab-links a svg { transition: transform 0.4s var(--ease); }
.ab-links a:hover { color: var(--blue); border-color: var(--blue); }
.ab-links a:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
  .ab-grid { grid-template-columns: 1fr; gap: 26px; }
  .ab-side { display: grid; grid-template-columns: 92px 1fr; gap: 14px 16px; align-items: center; }
  .ab-label { grid-column: 1 / -1; margin-bottom: 0; }
  .ab-photo { max-width: 92px; }
  .ab-card { margin-top: 0; }
  .ab-card b { font-size: 20px; }
  .ab-title { white-space: normal; }
}
@media (max-width: 640px) { .ab-cols, .ab-rows { grid-template-columns: 1fr; } .ab-rows div + div { margin-top: 14px; } }
/* About page: the Guinness photo as a small print */
.about-lead { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: start; }
.about-fig { margin: 0; max-width: 250px; }
.about-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
@media (max-width: 760px) { .about-lead { grid-template-columns: 1fr; } .about-fig { max-width: 170px; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); margin-top: clamp(48px, 7vw, 100px); }
.stat { padding: 22px 18px 6px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; font-size: clamp(60px, 8vw, 136px); letter-spacing: 0.012em; line-height: 0.95; display: flex; align-items: flex-start; }
.stat .num sup { font-size: 0.4em; font-weight: 400; color: var(--pulse-text); margin-left: 3px; letter-spacing: 0; line-height: 1.1; }
.stat .lbl { margin-top: 12px; font-weight: 500; text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.02em; }
.stat .exp { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; max-width: 30ch; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- ECG timeline ---------- */
.ecg-sec { overflow: hidden; }
.ecg-pin { position: relative; height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 12px); }
.ecg-head { margin-bottom: 0; }
.ecg-track { position: relative; flex: 1; min-height: 220px; margin: 170px 0 140px; will-change: transform; }
.ecg-svg { position: absolute; inset: 0; height: 100%; overflow: visible; }
.ecg-svg .base { stroke: rgba(14,15,19,0.12); }
.ecg-svg .live { stroke: var(--pulse); }
.ecg-node { position: absolute; transform: translate(-50%, 0); width: 240px; opacity: 0; transition: opacity 0.5s var(--ease); }
.ecg-node .card { transition: transform 0.6s var(--ease); }
.ecg-node.up .card { transform: translate(-50%, 14px); }
.ecg-node.down .card { transform: translate(-50%, -14px); }
.ecg-node.on { opacity: 1; }
.ecg-node.on .card { transform: translate(-50%, 0); }
.ecg-svg .pen { fill: var(--pulse); filter: drop-shadow(0 0 6px rgba(226, 65, 46, 0.8)); }
.ecg-node .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pulse); border: 2.5px solid var(--paper); box-shadow: 0 0 0 1px rgba(226,65,46,0.35); position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); z-index: 1; }
.ecg-node .card { position: absolute; left: 50%; transform: translateX(-50%); width: 240px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; box-shadow: 0 10px 30px -18px rgba(0,0,0,0.3); }
.ecg-node.up .card { bottom: 22px; }
.ecg-node.down .card { top: 22px; }
.ecg-node .yr { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: 34px; letter-spacing: -0.01em; line-height: 1; }
.ecg-node .where { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); margin: 6px 0 4px; }
.ecg-node .what { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ecg-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ecg-progress .bar { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.ecg-progress .bar i { position: absolute; inset: 0; background: var(--pulse); transform-origin: left; transform: scaleX(0); }
.ecg-bpm { font-family: var(--f-mono); font-size: 12.5px; color: var(--pulse-text); display: flex; gap: 6px; align-items: center; }
.ecg-bpm i { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); animation: beat 1.1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 15% { transform: scale(1.6); } 30% { transform: scale(1); opacity: 0.6; } }
/* mobile: vertical list version */
.ecg-list { display: none; }
@media (max-width: 860px) {
  .ecg-pin { display: none; }
  .ecg-list { display: block; position: relative; padding-left: 34px; }
  .ecg-list::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--pulse) 0 6px, transparent 6px 10px); opacity: 0.6; }
  .ecg-list li { list-style: none; position: relative; padding: 0 0 26px; }
  .ecg-list li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 0 5px rgba(226,65,46,0.15); }
  .ecg-list .yr { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: 32px; letter-spacing: -0.01em; line-height: 1; }
  .ecg-list .where { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); margin: 6px 0 2px; }
  .ecg-list .what { font-size: 15px; color: var(--ink-2); }
  .ecg-list ul { margin: 0; padding: 0; }
}

/* ---------- PERIODIC TABLE OF HONOURS ---------- */
.pt-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pt-legend button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid transparent; background: rgba(255,255,255,0.55); border-radius: 99px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.pt-legend button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pt-legend button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pt-legend .cnt { opacity: 0.6; }
.ptable {
  --cols: 10; --gap: 10px;
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  isolation: isolate;
}
/* soft glow that follows the cursor and shows through the gaps between elements */
.ptable::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(260px circle at var(--tx, 50%) var(--ty, 50%), rgba(43, 63, 159, 0.55), rgba(226, 65, 46, 0.18) 45%, transparent 70%);
  filter: blur(6px);
}
.ptable.is-live::before { opacity: 1; }
.el {
  --bg: var(--card); --fg: var(--ink); --sub: rgba(14, 15, 19, 0.6); --edge: var(--line-2); --shine: rgba(255, 255, 255, 0.55);
  position: relative; aspect-ratio: 1 / 1.1; perspective: 700px; cursor: pointer; text-align: left;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}
.el.is-dim { opacity: 0.14; filter: grayscale(1) blur(0.5px); pointer-events: none; }
.el:hover, .el:focus-visible { z-index: 3; }
.el:focus-visible { outline: none; }
.el-face {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 12px 12px 11px;
  background-color: var(--bg); color: var(--fg); border: 1px solid var(--edge); border-radius: 6px; overflow: hidden;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: none;
}
/* cursor spotlight inside the tile */
.el-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), var(--shine), transparent 60%);
  mix-blend-mode: soft-light;
}
.el-face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.35s;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}
.el:hover .el-face, .el:focus-visible .el-face, .el.is-active .el-face {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-7px) scale(1.06);
  box-shadow: 0 26px 40px -18px rgba(14, 15, 19, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
}
.el:hover .el-face::after, .el:focus-visible .el-face::after { opacity: 1; }
.el:hover .el-face::before, .el:focus-visible .el-face::before, .el.is-active .el-face::before { opacity: 0.35; }
.el-face .n { font-family: var(--f-mono); font-size: 12px; display: flex; justify-content: space-between; align-items: baseline; color: var(--sub); letter-spacing: 0.02em; }
.el-face .n b { font-weight: 500; color: var(--fg); }
.el-face .sym { align-self: end; font-weight: 650; font-variation-settings: "wdth" 100; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -0.04em; line-height: 0.95; transition: transform 0.4s var(--ease); transform-origin: left bottom; }
.el:hover .el-face .sym { transform: translateX(var(--sx, 0px)); }
.el-face .nm { font-size: clamp(12px, 0.86vw, 13px); font-weight: 450; line-height: 1.25; margin-top: 8px; color: var(--fg); opacity: 0.86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
.el--record { --bg: #2b3f9f; --fg: #fff; --sub: rgba(255, 255, 255, 0.78); --edge: #22337f; --shine: rgba(255, 255, 255, 0.9); }
.el--award { --bg: #d9432f; --fg: #fff; --sub: rgba(255, 255, 255, 0.82); --edge: #b8301f; --shine: rgba(255, 240, 220, 0.9); }
.el--honour { --bg: #1c1d23; --fg: #fff; --sub: rgba(255, 255, 255, 0.66); --edge: #000; --shine: rgba(160, 176, 255, 0.9); }
.el--degree { --bg: #ffffff; --fg: var(--ink); --sub: rgba(14, 15, 19, 0.6); --edge: rgba(14, 15, 19, 0.18); --shine: rgba(43, 63, 159, 0.5); }
.el--society { --bg: #e7eaf6; --fg: #1f2f80; --sub: rgba(31, 47, 128, 0.7); --edge: rgba(43, 63, 159, 0.3); --shine: rgba(255, 255, 255, 0.95); }

/* the live inspector, in the gap where a real periodic table keeps its key */
.pt-inspect {
  grid-column: 3 / 8; grid-row: 1 / 3; display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 1.6vw, 26px); align-items: center;
  padding: clamp(10px, 1.2vw, 18px) clamp(12px, 1.6vw, 26px); border: 1px solid var(--line); border-radius: 6px;
  background: #fbfaf7;
}
.pti-tile {
  width: clamp(120px, 11vw, 190px); aspect-ratio: 1 / 1.1; display: grid; grid-template-rows: auto 1fr auto; padding: 12px;
  background-color: var(--bg); color: var(--fg); border: 1px solid var(--edge); border-radius: 6px;
  box-shadow: 0 18px 34px -22px rgba(14, 15, 19, 0.5);
}
.pti-tile .n { font-family: var(--f-mono); font-size: 12px; display: flex; justify-content: space-between; color: var(--sub); }
.pti-tile .n b { font-weight: 500; color: var(--fg); }
.pti-tile .sym { align-self: end; font-weight: 650; font-variation-settings: "wdth" 100; font-size: clamp(54px, 5.6vw, 96px); letter-spacing: -0.05em; line-height: 0.85; }
.pti-tile .cat { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--sub); margin-top: 8px; }
.pti-body { display: grid; gap: 8px; min-width: 0; }
.pti-t { margin: 0; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(22px, 2.1vw, 33px); line-height: 1.1; letter-spacing: -0.01em; }
.pti-s { margin: 0; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); line-height: 1.45; }
.pti-hint { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pt-note { margin: 18px 0 0; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 1100px) {
  .ptable { --cols: 6; }
  .pt-inspect { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .ptable { --cols: 4; --gap: 6px; }
  .pt-inspect { display: none; }
}
@media (max-width: 400px) { .ptable { --cols: 3; } }

/* element detail (flip card modal) */
.eld { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; pointer-events: none; visibility: hidden; transition: visibility 0s 0.7s; }
.eld-bg { position: absolute; inset: 0; background: rgba(11,12,16,0.6); opacity: 0; transition: opacity 0.4s; backdrop-filter: blur(4px); }
.eld.is-open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.eld.is-open .eld-bg { opacity: 1; }
.eld-card {
  position: relative; width: min(920px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--card);
  display: grid; grid-template-columns: 260px 1fr; transform: perspective(1400px) rotateY(-90deg); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.3s; transform-origin: center;
}
.eld.is-open .eld-card { transform: perspective(1400px) rotateY(0); opacity: 1; }
.eld-tile { padding: 22px; display: flex; flex-direction: column; min-height: 300px; }
.eld-tile .n { font-family: var(--f-mono); font-size: 13px; display: flex; justify-content: space-between; }
.eld-tile .sym { font-weight: 650; font-variation-settings: "wdth" 100; font-size: 110px; letter-spacing: -0.045em; line-height: 0.9; margin-top: auto; }
.eld-tile .cat { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; margin-top: 10px; opacity: 0.8; }
.eld-body { padding: 28px clamp(20px, 3vw, 36px) 30px; display: grid; gap: 14px; align-content: start; }
.eld-body h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -0.015em; }
.eld-body .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.eld-body p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.eld-body figure { margin: 4px 0 0; border: 1px solid var(--line); background: #fff; padding: 8px; }
.eld-body figure img { width: 100%; max-height: 380px; object-fit: contain; }
.eld-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; z-index: 2; }
.eld-nav { display: flex; gap: 8px; margin-top: 6px; }
@media (max-width: 700px) { .eld-card { grid-template-columns: 1fr; } .eld-tile { min-height: 170px; } .eld-tile .n { padding-right: 48px; } .eld-tile .sym { font-size: 72px; } }

/* ---------- diagonal cobalt wipe (alejandroha) ---------- */
.wipe { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.wipe-inner { position: relative; z-index: 1; padding: 0 var(--gutter); }
.wipe-inner .h-statement { font-size: clamp(52px, 10vw, 180px); }
.wipe-inner .sub { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-style: italic; font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -0.01em; display: block; margin-bottom: 0.15em; }
.wipe-inner .br-label { display: inline-block; margin-top: 18px; font-size: clamp(22px, 2.8vw, 42px); }
.wipe-panel { position: absolute; inset: 0; background: var(--blue); color: #fff; z-index: 2; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); will-change: clip-path; display: grid; place-items: center; }
.wipe-panel .br-label { color: #fff; }

/* ---------- stacked numbered panels (alejandroha services) ---------- */
.stack { background: var(--blue); color: #fff; }
.stack-item { position: sticky; top: 0; background: var(--blue); border-top: 1px solid rgba(255,255,255,0.25); }
.stack-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); min-height: 74px; }
.stack-bar .idx { font-family: var(--f-serif); font-variation-settings: normal; font-weight: 400; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.01em; }
.stack-bar h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(26px, 2.9vw, 44px); letter-spacing: -0.015em; text-align: right; }
.stack-body { display: grid; grid-template-columns: 1fr 1.25fr; min-height: calc(100svh - 74px * 4); border-top: 1px solid rgba(255,255,255,0.25); }
.stack-body .txt { padding: clamp(20px, 3vw, 40px) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.stack-body .txt p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.86); }
.stack-body .txt ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.stack-body .txt li { border: 1px solid rgba(255,255,255,0.35); border-radius: 4px; padding: 4px 9px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
.stack-body .media { position: relative; overflow: hidden; background: #fff; min-height: 340px; }
.stack-body .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-body .media .paper { position: absolute; inset: 0; background: var(--paper); color: var(--ink); padding: clamp(18px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.stack-body .media .paper .big { font-family: var(--f-serif); font-variation-settings: normal; font-weight: 400; font-size: clamp(68px, 9.5vw, 160px); letter-spacing: -0.025em; line-height: 0.9; color: var(--blue); }
.stack-body .media .paper .cap { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 820px) { .stack-item { position: relative; } .stack-body { grid-template-columns: 1fr; min-height: 0; } .stack-body .media { min-height: 260px; } }

/* ---------- list rows (pamidor projects + bermawy article table) ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row {
  display: grid; grid-template-columns: 110px 1fr 220px 46px; gap: 18px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line-2); position: relative; transition: background 0.3s, padding 0.4s var(--ease);
}
.row:hover { background: rgba(255,255,255,0.55); padding-left: 14px; }
.row .yr { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); }
.row .ttl { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.row .jr { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); line-height: 1.35; }
.row .go { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.row:hover .go { background: var(--blue); color: #fff; border-color: var(--blue); transform: rotate(-45deg); }
.row.big .ttl { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(27px, 3.2vw, 48px); letter-spacing: -0.015em; line-height: 1.08; }
.row.big:hover .ttl { color: var(--pulse-text); }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr 38px; gap: 6px 12px; }
  .row .yr { grid-column: 1; }
  .row .ttl { grid-column: 1; }
  .row .jr { grid-column: 1; }
  .row .go { grid-column: 2; grid-row: 1 / span 3; }
}
.hover-preview { position: fixed; z-index: 55; width: 280px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.9); transition: opacity 0.25s, transform 0.35s var(--ease); background: var(--card); border: 1px solid var(--line); padding: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4); }
.hover-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-preview .k { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); }
.hover-preview p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- research library ---------- */
.lib-tools { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .lib-tools .inner { gap: 10px; }
  .lib-tools .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .lib-tools .chips::-webkit-scrollbar { display: none; }
  .lib-tools .chip { flex: none; }
  .lib-count { margin-left: 0; }
}
.lib-tools .inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; border: 1px solid var(--line-2); padding: 0 14px; background: #fff; border-radius: 6px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; background: transparent; transition: background 0.25s, color 0.25s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lib-count { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); margin-left: auto; }
.paper-row { display: grid; grid-template-columns: 64px 80px 1fr auto; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line-2); align-items: start; }
.paper-row .no { font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); padding-top: 3px; }
.paper-row .yr { font-family: var(--f-mono); font-size: 12.5px; padding-top: 3px; }
.paper-row h3 { margin: 0 0 6px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.paper-row .src { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; }
.paper-row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.paper-row .acts a, .paper-row .acts button { height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; display: inline-flex; align-items: center; background: transparent; transition: background 0.2s, color 0.2s; }
.paper-row .acts a:hover, .paper-row .acts button:hover { background: var(--ink); color: #fff; }
.paper-row mark { background: #fff3a8; color: inherit; }
.paper-row[hidden] { display: none; }
@media (max-width: 760px) { .paper-row { grid-template-columns: 52px 1fr; } .paper-row .no { display: none; } .paper-row .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.empty { padding: 60px 0; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 95; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-family: var(--f-mono); font-size: 12.5px; transition: transform 0.5s var(--ease); }
.toast.on { transform: translate(-50%, 0); }

/* cite drawer */
.cite { position: fixed; inset: 0; z-index: 92; display: grid; place-items: end center; pointer-events: none; visibility: hidden; transition: visibility 0s 0.6s; }
.cite.is-open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.cite .eld-bg { opacity: 0; }
.cite.is-open .eld-bg { opacity: 1; }
.cite-card { position: relative; width: min(760px, 100%); background: var(--card); padding: 26px clamp(18px, 3vw, 32px) 30px; transform: translateY(100%); transition: transform 0.6s var(--ease); max-height: 85svh; overflow: auto; }
.cite.is-open .cite-card { transform: translateY(0); }
.cite-card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.cite-tabs { display: flex; gap: 6px; margin: 16px 0 10px; }
.cite-out { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; background: #fff; border: 1px solid var(--line); padding: 14px; white-space: pre-wrap; word-break: break-word; }

/* ---------- clipped cards (bermawy) ---------- */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.clip { background: var(--card); border: 1px solid var(--line); position: relative; padding: 14px 14px 18px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.clip:nth-child(3n+1) { transform: rotate(-0.6deg); }
.clip:nth-child(3n+2) { transform: rotate(0.5deg); }
.clip:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0,0,0,0.4); }
.clip .pin { position: absolute; top: -16px; left: 50%; width: 22px; height: 46px; transform: translateX(-50%); color: #8a8f99; }
.clip .logo { aspect-ratio: 16/10; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.clip .logo img { max-height: 62%; max-width: 70%; object-fit: contain; filter: grayscale(1); transition: filter 0.4s; }
.clip:hover .logo img { filter: none; }
.clip .logo .wm { font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(32px, 3.4vw, 50px); letter-spacing: -0.015em; color: var(--ink); text-align: center; line-height: 1; }
.clip h3 { margin: 14px 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.clip .role { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); }
.clip p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.clip .more { margin-top: 12px; display: inline-flex; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
@media (max-width: 960px) { .clips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .clips { grid-template-columns: 1fr; } }

/* ---------- speaking: stage monitor + filmstrip ---------- */
.th-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.th-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.th-tabs button { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.th-tabs button span { opacity: 0.6; margin-left: 4px; }
.th-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.th-years { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.th-years::-webkit-scrollbar { display: none; }
.th-years button { flex: none; position: relative; height: 40px; padding: 0 9px; font-family: var(--f-serif); font-size: 22px; color: var(--mute); transition: color 0.25s; }
.th-years button:hover { color: var(--ink); }
.th-years button.on { color: var(--blue); }
.th-years button.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px; background: var(--pulse); }
.th-years button[hidden] { display: none; }
.th-stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.th-now { display: grid; gap: 14px; align-content: center; }
.th-count { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); }
.th-count b { font-family: var(--f-serif); font-weight: 400; font-size: clamp(54px, 5vw, 80px); line-height: 0.9; color: var(--ink); letter-spacing: 0.01em; }
.th-meta { font-size: 12.5px; color: var(--blue); }
.th-title { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.th-desc { margin: 0; max-width: 54ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.th-desc:empty { display: none; }
.th-nav { display: flex; gap: 8px; margin-top: 4px; }
/* filmstrip: one row, slides never cropped */
.strip-wrap { position: relative; margin-top: clamp(28px, 3.4vw, 48px); border-top: 1px solid var(--line-2); }
.strip { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 18px 2px 16px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(14, 15, 19, 0.3) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.strip-year { flex: none; scroll-snap-align: start; display: flex; align-items: flex-start; padding: 0 2px 0 12px; border-left: 1px solid var(--line-2); }
.strip-year:first-child { border-left: 0; padding-left: 0; }
.strip-year span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-serif); font-size: 28px; line-height: 1; color: var(--blue); }
.strip-year[hidden] { display: none; }
.slide { flex: none; width: clamp(136px, 11.5vw, 168px); scroll-snap-align: start; display: grid; gap: 9px; padding: 0; text-align: left; cursor: pointer; transition: transform 0.4s var(--ease); }
.slide[hidden] { display: none; }
.slide .mount { position: relative; display: block; aspect-ratio: 1 / 1; padding: 11% 10% 24%; border-radius: 6px; background: linear-gradient(160deg, #fffefb, #f1eee6); border: 1px solid rgba(14, 15, 19, 0.12); box-shadow: 0 6px 14px -8px rgba(20, 30, 80, 0.35); transition: box-shadow 0.4s var(--ease); }
.slide .ap { position: relative; display: block; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.slide .ap img { width: 100%; height: 100%; object-fit: contain; }
.slide .lbl { position: absolute; left: 10%; right: 10%; bottom: 6%; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: rgba(14, 15, 19, 0.6); }
.slide .lbl b { font-family: var(--f-serif); font-style: italic; font-size: 17px; font-weight: 400; color: var(--blue); text-transform: none; line-height: 0.8; }
.slide .t { font-size: 13px; line-height: 1.3; color: var(--ink-2); padding: 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide:hover { transform: translateY(-4px); }
.slide[aria-current="true"] .mount { box-shadow: 0 0 0 2px var(--blue), 0 16px 26px -16px rgba(43, 63, 159, 0.6); }
.slide[aria-current="true"] .t { color: var(--ink); }
.slide:focus-visible { outline: none; }
.slide:focus-visible .mount { box-shadow: 0 0 0 2px var(--pulse); }

.monitor { background: #dcd8cd; border-radius: 22px 22px 22px 60px; padding: 22px 22px 24px; box-shadow: inset 0 -6px 0 rgba(0,0,0,0.08), 0 30px 60px -30px rgba(0,0,0,0.45); }
.monitor-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: #5f5b52; margin-bottom: 10px; }
.monitor-top .led { width: 8px; height: 8px; border-radius: 50%; background: #3bd16f; box-shadow: 0 0 8px #3bd16f; display: inline-block; margin-right: 6px; }
.monitor-screen { position: relative; aspect-ratio: 16/10; background: #0b0f0c; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 6px #2a2a28, inset 0 0 40px rgba(0,0,0,0.8); touch-action: pan-y; }
.monitor-screen img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; border-radius: 6px; background: #fff; }
.monitor-screen .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.monitor-screen .osd { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; display: flex; justify-content: space-between; }
.monitor-screen .osd span { background: rgba(11, 15, 12, 0.82); color: #9dffb9; padding: 3px 7px; border-radius: 3px; }
.monitor-trace { height: 46px; margin-top: 14px; background: #10140f; border-radius: 8px; overflow: hidden; position: relative; }
.monitor-trace svg { position: absolute; inset: 0; width: 200%; height: 100%; color: #4dff88; animation: trace 4s linear infinite; }
@keyframes trace { to { transform: translateX(-50%); } }
.monitor-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.monitor-ctrl .dpad { width: 62px; height: 62px; position: relative; }
.monitor-ctrl .dpad::before, .monitor-ctrl .dpad::after { content: ""; position: absolute; background: #2a2a2e; border-radius: 4px; }
.monitor-ctrl .dpad::before { left: 21px; top: 0; width: 20px; height: 62px; }
.monitor-ctrl .dpad::after { top: 21px; left: 0; height: 20px; width: 62px; }
.monitor-ctrl .btns { display: flex; gap: 12px; }
.monitor-ctrl .btns button { width: 48px; height: 48px; border-radius: 50%; background: var(--pulse); color: #fff; font-size: 13px; box-shadow: 0 4px 0 #9e2a1c; transition: transform 0.1s, box-shadow 0.1s; }
.monitor-ctrl .btns button:active { transform: translateY(3px); box-shadow: 0 1px 0 #9e2a1c; }
.monitor-ctrl .knobs { display: flex; gap: 8px; }
.monitor-ctrl .knobs i { width: 34px; height: 8px; border-radius: 4px; background: #9b978b; transform: rotate(-25deg); display: block; }
@media (max-width: 900px) {
  .th-stage { grid-template-columns: 1fr; }
  .th-bar { flex-direction: column; align-items: stretch; }
  .monitor { border-radius: 18px 18px 18px 40px; padding: 16px 16px 18px; }
  .monitor-ctrl .dpad, .monitor-ctrl .knobs { display: none; }
  .monitor-ctrl { justify-content: flex-end; margin-top: 12px; }
  .th-nav { display: none; }
  .th-count b { font-size: 52px; }
}

/* ---------- marquee (press) ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 48s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-serif); font-size: clamp(26px, 2.7vw, 40px); white-space: nowrap; color: var(--ink-2); letter-spacing: -0.005em; }
.marquee-track img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.75; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- press cards ---------- */
.press-lead { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.press-feature { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 36px) clamp(18px, 2.2vw, 32px); min-height: clamp(220px, 20vw, 300px); transition: background 0.3s; }
.press-feature:first-child { padding-left: 0; }
.press-feature + .press-feature { border-left: 1px solid var(--line-2); }
.press-feature .outlet { font-family: var(--f-serif); font-variation-settings: normal; font-size: clamp(36px, 3.9vw, 64px); letter-spacing: -0.015em; line-height: 1.02; transition: color 0.3s; }
.press-feature:hover .outlet { color: var(--blue); }
.press-feature .hl { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.press-feature .go { margin-top: auto; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
.press-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 64px); margin-top: clamp(20px, 2.4vw, 36px); }
.press-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) 18px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.press-row .outlet { font-family: var(--f-serif); font-variation-settings: normal; font-size: 23px; letter-spacing: -0.008em; line-height: 1.15; transition: color 0.3s; }
.press-row .hl { font-size: 14px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.press-row .go { color: var(--mute); transition: transform 0.3s var(--ease), color 0.3s; }
.press-row:hover .outlet, .press-row:hover .go { color: var(--blue); }
.press-row:hover .go { transform: translate(2px, -2px); }
@media (max-width: 900px) {
  .press-lead, .press-list { grid-template-columns: 1fr; }
  .press-feature, .press-feature:first-child { min-height: 0; padding: 20px 0; }
  .press-feature + .press-feature { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 560px) { .press-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 12px; } .press-row .hl { grid-column: 1; grid-row: 2; } .press-row .go { grid-row: 1; grid-column: 2; } }

/* ---------- photo slider: equal frames, nothing cropped ---------- */
.slider-track { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.sl-card { flex: none; width: clamp(220px, 22vw, 300px); margin: 0; scroll-snap-align: start; }
.sl-mat { display: block; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); padding: 10px; transition: box-shadow 0.4s var(--ease); }
.sl-mat:hover { box-shadow: 0 18px 30px -20px rgba(14, 15, 19, 0.45); }
.sl-mat img { width: 100%; height: 100%; object-fit: contain; }
.sl-card figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider-ui { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.slider-count { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.slider-count b { color: var(--ink); font-weight: 500; }
.slider-bar { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.slider-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 0.3s var(--ease); }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 17px; transition: background 0.25s, color 0.25s, opacity 0.25s; }
.slider-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider-btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 760px) { .sl-card { width: 72vw; } }
/* award certificates: one small, equal frame each */
.cert { display: flex; justify-content: center; align-items: center; height: clamp(130px, 11vw, 160px); background: #fff; border: 1px solid var(--line); padding: 8px; }
.cert img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- about: chapters ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 48px); padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line-2); }
.chapter .ch-no { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--blue); }
.chapter .ch-no b { display: block; font-family: var(--f-serif); font-variation-settings: normal; font-weight: 400; font-size: clamp(46px, 5.4vw, 88px); text-transform: none; white-space: nowrap; letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-top: 10px; }
.chapter h3 { margin: 0 0 14px; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.02; letter-spacing: -0.015em; }
@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact .k { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.fact .v { font-size: 16px; line-height: 1.45; }
.fact .v small { display: block; font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); text-transform: uppercase; margin-top: 3px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } .fact { grid-template-columns: 1fr; gap: 4px; } }

/* accordion (pamidor skillset, dark) */
.acc { border-top: 1px solid rgba(255,255,255,0.16); }
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.16); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; text-align: left; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.acc-btn:hover, .acc-item.open .acc-btn { color: #fff; }
.acc-btn .i { font-family: var(--f-mono); font-size: 12.5px; }
.acc-btn .t { font-family: var(--f-serif); font-variation-settings: normal; font-size: clamp(25px, 2.9vw, 44px); letter-spacing: -0.012em; font-weight: 400; line-height: 1.1; }
.acc-btn .pl { width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.acc-item.open .acc-btn .pl { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .in { padding: 0 0 26px 76px; display: grid; gap: 10px; color: #c9c7c0; }
.acc-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.acc-panel li { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,0.12); padding-bottom: 8px; font-size: 15px; }
.acc-panel li span { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: #8d8b84; white-space: nowrap; }
@media (max-width: 640px) { .acc-btn { grid-template-columns: 34px 1fr auto; } .acc-panel .in { padding-left: 0; } .acc-panel li { grid-template-columns: 1fr; } }

/* ---------- contact form card (pamidor) ---------- */
.formcard { background: var(--night-2); color: #fff; padding: clamp(22px, 3vw, 40px); max-width: 640px; border: 1px solid rgba(255,255,255,0.08); }
.formcard h2 { margin: 6px 0 4px; font-family: var(--f-serif); font-weight: 400; font-variation-settings: normal; text-transform: none; font-size: clamp(36px, 3.9vw, 58px); letter-spacing: -0.015em; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: #8d8b84; }
.field input, .field select, .field textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.25); color: #fff; font: inherit; font-size: 16px; padding: 8px 0; outline: 0; border-radius: 0; }
.field select option { color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; }
@media (max-width: 600px) { .formgrid { grid-template-columns: 1fr; } }

/* ---------- footer: one statement, three doors, one line ---------- */
.footer { background: var(--blue); color: #fff; padding: clamp(64px, 8vw, 120px) var(--gutter) 0; position: relative; overflow: hidden; background-image: none; }
.footer-frame { max-width: var(--max); margin: 0 auto; }
.closer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 36px clamp(32px, 6vw, 120px); align-items: end; }
.closer-h { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(60px, 8vw, 132px); line-height: 0.95; letter-spacing: -0.02em; }
.doors { display: grid; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.door { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-family: var(--f-serif); font-size: clamp(25px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -0.01em; transition: color 0.3s, padding 0.45s var(--ease); }
.door .arr { display: inline-flex; transition: transform 0.45s var(--ease); }
.door:hover, .door:focus-visible { padding-left: 10px; color: #cdd5ff; }
.door:hover .arr, .door:focus-visible .arr { transform: translateX(6px); }
.footer-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; margin-top: clamp(64px, 8vw, 120px); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 15px; }
.fl-name { margin-right: auto; font-family: var(--f-serif); font-size: 24px; letter-spacing: -0.01em; }
.fl-social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-base { display: flex; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.footer-base a:hover { color: #fff; text-decoration: underline; }
/* the same statement opening the Contact page */
.contact-open { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 100px)); padding-bottom: clamp(48px, 6vw, 90px); }
.topbar.on-blue.is-scrolled { background: rgba(43, 63, 159, 0.88); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16); }
.on-blue .nav a[aria-current="page"] { color: #fff; }
@media (max-width: 760px) {
  .closer { grid-template-columns: 1fr; }
  .fl-name { width: 100%; margin-right: 0; }
  .footer-line { gap: 8px 22px; }
}

/* ---------- generic reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding: 0 0.12em 0.2em 0; margin-bottom: -0.2em; }
.split-line > span { display: inline-block; }

/* ---------- legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }

/* ---------- small screens: collapse the inline multi-column grids ---------- */
html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .statement[style*="grid-template-columns"], .clips[style*="grid-template-columns"], .row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .row[style*="grid-template-columns"] { gap: 8px; }
  .clip[style*="grid-template-columns"] { grid-template-columns: 96px 1fr !important; }
  .fact .v a, .fact .v { overflow-wrap: anywhere; }
}

/* ---------- ventures: ruled cells, one logo height, one ink ---------- */
.ventures { gap: 0; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.ventures .clip, .ventures .clip:nth-child(3n+1), .ventures .clip:nth-child(3n+2) { background: transparent; border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: clamp(20px, 2.2vw, 32px); transform: none; box-shadow: none; transition: background 0.3s; }
.ventures .clip:hover { background: rgba(255, 255, 255, 0.5); transform: none; box-shadow: none; }
.ventures .clip .logo { aspect-ratio: auto; height: 64px; background: none; border: 0; padding: 0; margin-bottom: clamp(28px, 3vw, 48px); justify-content: start; place-items: center start; overflow: visible; }
.ventures .clip .logo img { height: 56px; width: auto; max-width: 100%; max-height: none; filter: none; }
.ventures .clip .logo .wm { font-size: 56px; line-height: 1; }
.ventures .clip h3 { font-family: var(--f-serif); font-variation-settings: normal; font-weight: 400; font-size: clamp(25px, 2.1vw, 32px); letter-spacing: -0.01em; line-height: 1.1; margin-top: 8px; }
.ventures .clip .mono { color: var(--ink-2); }

/* ---------- phones: every control a thumb can hit ---------- */
@media (pointer: coarse) {
  .pill, .chip, .pt-legend button, .th-tabs button, .th-years button, .paper-row .acts a, .paper-row .acts button { min-height: 44px; }
  .pill:not(.pill--lg) { padding: 0 16px; }
  .footer-cols ul { gap: 0; }
  .footer-cols ul a, .footer-base a, .fact .v a { display: inline-block; padding: 11px 0; }
  .footer-base a { padding: 14px 4px; }
  .clip .more, .formcard p a { display: inline-block; padding: 12px 0; }
  .field input, .field select { min-height: 52px; }
  .field textarea { padding: 14px 0; }
}
@media (max-width: 760px) {
  .gallery figcaption { font-size: 13px; }
  .field label { font-size: 13px; }
}
/* narrowest phones: three columns so each honour keeps its full name */
@media (max-width: 460px) {
  .ptable { --cols: 3; }
  .el { aspect-ratio: auto; min-height: 148px; }
  .el-face { padding: 10px; }
  .el-face .nm { -webkit-line-clamp: 3; min-height: 3.75em; }
}

/* light focus ring on the blue and dark surfaces */
.drawer :focus-visible, .footer :focus-visible, .dark :focus-visible, .formcard :focus-visible { outline-color: #fff; }

/* ---------- page-to-page: paper fades through, the top bar stays put ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .topbar { view-transition-name: topbar; }
  ::view-transition-old(root) { animation: vt-out 0.2s ease-in both; }
  ::view-transition-new(root) { animation: vt-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
