/* ==========================================================================
   Dr. Cevdet Acarsoy — "Three rooms"
   The therapy room, the lecture hall & the screen. Docendo discimus.
   ========================================================================== */

:root {
  --bg: oklch(0.975 0.006 85);
  --surface: oklch(0.945 0.012 85);
  --ink: oklch(0.19 0.012 250);
  --ink-2: oklch(0.42 0.012 250);
  --ink-3: oklch(0.58 0.01 250);
  --line: oklch(0.19 0.012 250 / 0.12);
  --accent: oklch(0.42 0.085 195);           /* deep teal — the therapy room */
  --accent-ink: oklch(0.975 0.006 85);
  --sand: oklch(0.9 0.035 80);               /* the lecture hall */
  --night: oklch(0.17 0.012 250);            /* the screen */

  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist", system-ui, sans-serif; /* no monospace: sans + serif only */
  --serif: "Instrument Serif", Georgia, serif;

  --t-mega: clamp(4.4rem, 16vw, 17rem);
  --t-h1: clamp(2.8rem, 6.5vw, 7rem);
  --t-h2: clamp(2.2rem, 4.5vw, 4.6rem);
  --t-lead: clamp(1.25rem, 1.2vw + 0.9rem, 2rem);
  --t-body: clamp(1rem, 0.25vw + 0.94rem, 1.125rem);
  --t-small: 0.9rem;

  --gutter: clamp(18px, 4.5vw, 64px);
  --sec: clamp(110px, 14vw, 200px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.16 0.01 250);
    --surface: oklch(0.2 0.012 250);
    --ink: oklch(0.95 0.006 85);
    --ink-2: oklch(0.77 0.01 85);
    --ink-3: oklch(0.6 0.01 85);
    --line: oklch(0.95 0.006 85 / 0.12);
    --accent: oklch(0.5 0.085 195);
    --sand: oklch(0.32 0.03 75);
    --night: oklch(0.11 0.01 250);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -0.04em; line-height: 0.98; }
p { text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html[data-lang="en"] .tr, html[data-lang="tr"] .en, html:not([data-lang]) .tr { display: none !important; }

.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid currentColor; font-weight: 500; font-size: var(--t-small);
  transition: color 400ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform 500ms var(--ease); }
.btn .ar { transition: transform 300ms var(--ease); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary::before { background: var(--accent); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light::before { background: var(--ink); }
.btn--ghost { color: inherit; border-color: color-mix(in oklch, currentColor 35%, transparent); }
.btn--ghost::before { background: currentColor; opacity: 0.12; }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:not(.btn--primary):not(.btn--ghost):hover { color: var(--bg); }
  .btn:hover .ar { transform: translateX(4px); }
}

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.nav { position: fixed; inset: 0 0 auto; z-index: 50; mix-blend-mode: difference; color: #f2f2f2; }
.nav__in { height: 70px; display: flex; align-items: center; gap: 28px; }
.nav__name { font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: var(--t-small); }
.nav__links a { position: relative; opacity: 0.75; transition: opacity 200ms; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.lang { display: inline-flex; padding: 3px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; }
.lang button { padding: 5px 10px; border-radius: 999px; opacity: 0.7; }
html[data-lang="en"] .lang [data-set="en"], html[data-lang="tr"] .lang [data-set="tr"] { background: #f2f2f2; color: #111; opacity: 1; }
@media (max-width: 820px) { .nav__links { display: none; } .lang { margin-left: auto; } }

/* ==========================================================================
   HERO — the door opens (scroll-linked via --p / --e from JS)
   ========================================================================== */
.hero { height: 230svh; position: relative; --p: 0; --e: 0; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__kicker {
  position: absolute; left: 0; right: 0; top: 96px; z-index: 4;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  opacity: calc(1 - var(--p) * 4);
}
.hero__kicker [lang="la"] { color: var(--accent); }
.hero__name { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-size: var(--t-mega); line-height: 0.82; letter-spacing: -0.06em; font-weight: 500; }
.hero__l { position: absolute; overflow: hidden; padding: 0.04em 0.02em 0.12em; white-space: nowrap; }
.hero__l > span { display: inline-block; }
.hero__l--1 { left: var(--gutter); top: 17svh; transform: translateX(calc(var(--e) * -70vw)); }
.hero__l--2 { right: var(--gutter); bottom: 14svh; transform: translateX(calc(var(--e) * 70vw)); }
.hero__l small { font-family: var(--mono); font-size: 0.09em; letter-spacing: 0.08em; vertical-align: top; position: relative; top: 1.1em; margin-right: 0.5em; color: var(--accent); }
.hero__l--2 > span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.035em; }

.hero__photo {
  --w0: min(30vw, 400px); --h0: min(56svh, 520px);
  position: absolute; left: 50%; top: 52%; z-index: 2;
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--e));
  height: calc(var(--h0) + (100svh - var(--h0)) * var(--e));
  translate: -50% calc(-50% - var(--e) * 2svh);
  border-radius: calc(28px * (1 - var(--e)));
  overflow: hidden; background: var(--surface);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; scale: calc(1.08 - var(--e) * 0.08); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.15 0.01 250 / 0.1), oklch(0.15 0.01 250 / 0.75)); opacity: clamp(0, (var(--p) - 0.45) * 2.5, 1); }
.hero__reveal {
  position: absolute; left: var(--gutter); bottom: 12svh; z-index: 2; color: #f5f2ec;
  font-size: var(--t-h1); line-height: 0.95; letter-spacing: -0.045em; font-weight: 500;
  opacity: clamp(0, (var(--p) - 0.6) * 3, 1);
  translate: 0 calc((1 - clamp(0, (var(--p) - 0.6) * 3, 1)) * 40px);
}
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  opacity: calc(1 - var(--p) * 4);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll i { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } 60%, to { transform: translateY(100%); } }

@media (max-width: 820px) {
  .hero__photo { --w0: 62vw; --h0: 42svh; top: 50%; }
  .hero__l--1 { top: 14svh; }
  .hero__l--2 { bottom: 17svh; }
  .hero__kicker { top: 84px; font-size: 0.68rem; }
  .hero__kicker [lang="la"] { display: none; }
  .hero__scroll { display: none; }
}

/* intro (page load) */
.js .intro { opacity: 0; translate: 0 16px; }
.js .hero__l .intro { opacity: 1; translate: 0 110%; }
.is-ready .intro, .is-ready .hero__l .intro { opacity: 1; translate: 0 0; transition: translate 1.2s var(--ease), opacity 900ms ease; transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .hero__photo { clip-path: inset(100% 0 0 0); }
.is-ready .hero__photo { clip-path: inset(0); transition: clip-path 1.4s var(--ease-io) 100ms; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg); position: relative; z-index: 1; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 450; letter-spacing: -0.03em; white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: "✦"; font-size: 0.6em; color: var(--accent); margin-inline: 1.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ==========================================================================
   THREE ROOMS — pinned; JS sets data-room and --rp
   ========================================================================== */
.rooms { height: 380svh; position: relative; --rp: 0; }
.rooms__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  --rbg: var(--accent); --rfg: var(--accent-ink); --rfg2: color-mix(in oklch, var(--accent-ink) 72%, transparent);
  background: var(--rbg); color: var(--rfg);
  transition: background 900ms var(--ease-io), color 600ms ease;
}
.rooms[data-room="1"] .rooms__stage { --rbg: var(--sand); --rfg: var(--ink); --rfg2: var(--ink-2); }
.rooms[data-room="2"] .rooms__stage { --rbg: var(--night); --rfg: oklch(0.96 0.006 85); --rfg2: oklch(0.72 0.01 85); }
.rooms__grid { height: 100%; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 110px); align-items: center; padding-top: 50px; }
.rooms .eyebrow { color: var(--rfg2); }
.rooms__count { font-size: clamp(5rem, 13vw, 13rem); line-height: 0.8; letter-spacing: -0.07em; font-weight: 500; margin: 18px 0 28px; display: flex; align-items: flex-start; }
.rooms__num { display: inline-block; }
.rooms__num.swap { animation: numSwap 700ms var(--ease); }
@keyframes numSwap { from { opacity: 0; transform: translateY(30%); filter: blur(6px); } }
.rooms__of { font-size: 0.22em; letter-spacing: 0; font-family: var(--mono); color: var(--rfg2); margin-top: 0.4em; margin-left: 0.3em; }
.rooms__index li { padding: 12px 0; border-top: 1px solid color-mix(in oklch, var(--rfg) 18%, transparent); font-size: var(--t-small); color: var(--rfg2); transition: color 400ms, padding 500ms var(--ease); }
.rooms__index li.on { color: var(--rfg); padding-left: 14px; }
.rooms__index li.on::before { content: "→ "; }
.rooms__bar { height: 2px; background: color-mix(in oklch, var(--rfg) 18%, transparent); margin-top: 18px; overflow: hidden; }
.rooms__bar i { display: block; height: 100%; background: var(--rfg); transform-origin: left; transform: scaleX(var(--rp)); }

.rooms__cards { display: grid; }
.room { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; visibility: hidden; }
.room > * { opacity: 0; transform: translateY(50px); transition: opacity 500ms ease, transform 900ms var(--ease); }
.room.on { visibility: visible; }
.room.on > * { opacity: 1; transform: none; }
.room.on > :nth-child(2) { transition-delay: 60ms; }
.room.on > :nth-child(3) { transition-delay: 120ms; }
.room.on > :nth-child(4) { transition-delay: 180ms; }
.room.on > :nth-child(5) { transition-delay: 240ms; }
.room h2 { font-size: var(--t-h1); }
.room h2 em { opacity: 0.85; }
.room__text { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; color: var(--rfg2); }
.room__creds { display: flex; flex-wrap: wrap; gap: 10px; }
.room__creds li { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid color-mix(in oklch, var(--rfg) 30%, transparent); border-radius: 14px; min-width: 180px; }
.room__creds b { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; font-weight: 500; }
.room__creds span { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.room__links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 500; }
.room__links a { border-bottom: 1px solid color-mix(in oklch, currentColor 40%, transparent); padding-bottom: 2px; }
.room .btn { color: var(--rfg); }
.room .btn--light { background: var(--rfg); color: var(--rbg); border-color: var(--rfg); }
@media (max-width: 820px) {
  .rooms__grid { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-top: 70px; }
  .rooms__count { font-size: 4.5rem; margin: 6px 0 0; }
  .rooms__index, .rooms__side .eyebrow { display: none; }
  .rooms__bar { margin-top: 10px; }
  .room { gap: 16px; }
  .room__text { font-size: 1.15rem; }
  .room__creds li { min-width: 0; padding: 10px 14px; }
}

/* ==========================================================================
   MOTTO
   ========================================================================== */
.motto { padding-block: var(--sec); --mp: 0; overflow: hidden; }
.motto__in { display: grid; gap: clamp(40px, 6vw, 80px); }
.motto__latin { font-size: clamp(4rem, 14vw, 15rem); line-height: 0.85; letter-spacing: -0.065em; font-weight: 500; display: flex; flex-direction: column; }
.motto__a { transform: translateX(calc((0.5 - var(--mp)) * 18vw)); }
.motto__b { align-self: flex-end; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.04em; color: var(--accent); transform: translateX(calc((var(--mp) - 0.5) * 18vw)); }
.motto__text { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 450; max-width: 34ch; margin-left: auto; }
.motto__text .w { opacity: 0.18; transition: opacity 250ms ease; }
.motto__text .w.on { opacity: 1; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding-top: var(--sec); }
.sec__head { display: grid; grid-template-columns: 80px 1fr auto; align-items: end; gap: 20px; padding-bottom: 26px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.sec__head h2 { font-size: var(--t-h2); }
.sec__head .eyebrow { padding-bottom: 0.7em; }
@media (max-width: 640px) { .sec__head { grid-template-columns: 1fr; gap: 10px; } }

/* split headings (chars rise) */
.split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .ch { display: inline-block; transform: translateY(110%); transition: transform 900ms var(--ease); transition-delay: calc(var(--c) * 22ms); }
.split.in .ch { transform: none; }

/* archive */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); transition: background 250ms, color 250ms, border-color 250ms; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters sup { font-family: var(--mono); font-size: 0.62rem; margin-left: 4px; opacity: 0.6; }
.list { border-top: 1px solid var(--line); }
.js .list li { opacity: 0; transform: translateY(24px); }
.js .list.in li { animation: rowIn 700ms var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.item { position: relative; display: grid; grid-template-columns: 72px 1fr 150px 28px; gap: 20px; align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--line); isolation: isolate; transition: color 400ms var(--ease), padding 500ms var(--ease); }
.item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease); }
.item__year { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); transition: color 300ms; }
.item__title { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.35rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.item__note { display: block; font-size: var(--t-small); color: var(--ink-3); font-weight: 400; letter-spacing: -0.01em; margin-top: 3px; transition: color 300ms; }
.item__type { font-size: 0.8rem; color: var(--ink-2); transition: color 300ms; }
.item__ar { transition: transform 300ms var(--ease); }
@media (hover: hover) {
  a.item:hover { color: var(--accent-ink); padding-inline: 18px; }
  a.item:hover::before { transform: scaleY(1); transform-origin: top; }
  a.item:hover .item__year, a.item:hover .item__note, a.item:hover .item__type { color: color-mix(in oklch, var(--accent-ink) 75%, transparent); }
  a.item:hover .item__ar { transform: translate(3px, -3px); }
}
.more { margin-top: 26px; }
@media (max-width: 640px) { .item { grid-template-columns: 46px 1fr 18px; gap: 12px; } .item__type { display: none; } }

/* about + credentials */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.about__left { position: sticky; top: 110px; }
.about__face { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 26px; }
.about__lead { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.025em; font-weight: 450; }
.creds li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.creds li:first-child { border-top: 1px solid var(--line); }
.creds__y { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); padding-top: 3px; }
.creds b { display: block; font-weight: 500; letter-spacing: -0.02em; font-size: 1.08rem; }
.creds li > span > span:not(b span), .creds i { display: block; color: var(--ink-3); font-size: var(--t-small); margin-top: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__left { position: static; } }

/* instagram */
.ig__fallback { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.ig__fallback img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ig__fallback b { display: block; font-weight: 500; }
.ig__fallback .ar { margin-left: auto; }

/* off duty */
.personal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-card { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; transition: color 450ms var(--ease), border-color 300ms; }
.p-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at 100% 0%); transition: clip-path 700ms var(--ease); }
.p-n { position: absolute; top: 20px; left: 22px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); transition: color 300ms; }
.p-ar { position: absolute; top: 18px; right: 22px; transition: transform 300ms var(--ease); }
.p-card b { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.p-sub { font-size: var(--t-small); color: var(--ink-3); transition: color 300ms; }
@media (hover: hover) {
  .p-card:hover { color: var(--bg); border-color: var(--ink); }
  .p-card:hover::before { clip-path: circle(150% at 100% 0%); }
  .p-card:hover .p-n, .p-card:hover .p-sub { color: color-mix(in oklch, var(--bg) 70%, transparent); }
  .p-card:hover .p-ar { transform: translate(3px, -3px); }
}
@media (max-width: 860px) { .personal { grid-template-columns: 1fr 1fr; } .p-card { min-height: 150px; } }

/* contact */
.contact { margin-top: var(--sec); padding-block: clamp(80px, 11vw, 150px) 32px; background: var(--night); color: oklch(0.96 0.006 85); }
.contact__big { font-size: var(--t-mega); line-height: 0.85; letter-spacing: -0.065em; }
.contact__big em { color: oklch(0.72 0.09 195); }
.contact__mail { display: inline-flex; gap: 0.4em; margin-top: 34px; font-size: clamp(1.4rem, 2.6vw + 0.5rem, 2.8rem); font-weight: 450; letter-spacing: -0.035em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 600ms var(--ease); overflow-wrap: anywhere; }
.contact__mail .ar { transition: transform 300ms var(--ease); }
@media (hover: hover) { .contact__mail:hover { background-size: 100% 1px; } .contact__mail:hover .ar { transform: translateX(8px); } }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact .btn--light { background: oklch(0.96 0.006 85); color: var(--night); border-color: oklch(0.96 0.006 85); }
.contact .btn--light::before { background: oklch(0.72 0.09 195); }
@media (hover: hover) { .contact .btn--light:hover { color: var(--night); border-color: oklch(0.72 0.09 195); } }
.socials { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 80px; padding-top: 24px; border-top: 1px solid oklch(0.96 0.006 85 / 0.14); font-size: var(--t-small); }
.socials a { opacity: 0.65; transition: opacity 200ms; }
.socials a:hover { opacity: 1; }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: 0.8rem; opacity: 0.5; }

/* generic reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion: no scroll scenes, everything static and readable
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .marquee__track { animation: none; }
  .js .intro, .js .hero__l .intro { opacity: 1; translate: none; }
  .js .hero__photo { clip-path: none; }
  .js .rv, .js .list li, .split .ch { opacity: 1; transform: none; }
  .motto__text .w { opacity: 1; }
  .motto__a, .motto__b { transform: none; }
  .hero { height: 100svh; }
  .rooms { height: auto; }
  .rooms__stage { position: static; height: auto; padding-block: 100px; }
  .rooms__side { display: none; }
  .rooms__cards { gap: 90px; }
  .room { grid-area: auto; visibility: visible; }
  .room > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   v5 — proud scene, index, sub-pages
   ========================================================================== */
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* PROUDEST — pinned, number counts to 100 */
.proud { height: 220svh; position: relative; --pp: 0; }
.proud__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; background: var(--night); color: oklch(0.96 0.006 85); }
.proud .eyebrow { color: oklch(0.72 0.01 85); }
.proud__in { display: grid; gap: 22px; }
.proud__num { font-size: clamp(7rem, 24vw, 24rem); line-height: 0.8; letter-spacing: -0.07em; font-weight: 500; display: flex; align-items: flex-end; gap: 0.12em; font-variant-numeric: tabular-nums; }
.proud__unit { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.28em; letter-spacing: -0.02em; color: oklch(0.72 0.09 195); padding-bottom: 0.15em; }
.proud__title { font-size: var(--t-h2); max-width: 20ch; opacity: clamp(0, (var(--pp) - 0.25) * 4, 1); translate: 0 calc((1 - clamp(0, (var(--pp) - 0.25) * 4, 1)) * 30px); }
.proud__text { font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.02em; max-width: 42ch; color: oklch(0.78 0.01 85); opacity: clamp(0, (var(--pp) - 0.45) * 4, 1); translate: 0 calc((1 - clamp(0, (var(--pp) - 0.45) * 4, 1)) * 30px); }

/* INDEX — directory rows */
.dir { border-top: 1px solid var(--line); }
.dir a, .dir__single { position: relative; isolation: isolate; display: grid; grid-template-columns: 80px 1fr auto 40px; align-items: center; gap: 20px; padding: clamp(22px, 3vw, 38px) 6px; border-bottom: 1px solid var(--line); transition: color 400ms var(--ease), padding 500ms var(--ease); }
.dir__single { grid-template-columns: 1fr auto 40px; border-top: 1px solid var(--line); }
.dir a::before, .dir__single::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 550ms var(--ease); }
.dir__n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.dir__t { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.dir__s { font-size: var(--t-small); color: var(--ink-3); text-align: right; }
.dir__ar { font-size: 1.4rem; justify-self: end; transition: transform 400ms var(--ease); }
@media (hover: hover) {
  .dir a:hover, .dir__single:hover { color: var(--accent-ink); padding-inline: 22px; }
  .dir a:hover::before, .dir__single:hover::before { transform: scaleY(1); transform-origin: top; }
  .dir a:hover .dir__n, .dir a:hover .dir__s, .dir__single:hover .dir__s { color: color-mix(in oklch, var(--accent-ink) 75%, transparent); }
  .dir a:hover .dir__ar, .dir__single:hover .dir__ar { transform: translateX(6px); }
}
@media (max-width: 640px) { .dir a { grid-template-columns: 30px 1fr 24px; } .dir__s { display: none; } .dir__single { grid-template-columns: 1fr 24px; } }

/* SUB-PAGE HERO */
.phero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(30px, 5vw, 60px); }
.phero .eyebrow a { color: var(--ink-2); }
.phero .eyebrow a:hover { color: var(--accent); }
.phero__title { font-size: clamp(3.2rem, 10vw, 10rem); line-height: 0.9; letter-spacing: -0.06em; margin: 26px 0 30px; max-width: 14ch; }
.phero__lead { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 36ch; color: var(--ink-2); }
.sec--tight { padding-top: clamp(50px, 7vw, 90px); }

/* about page */
.about__body .creds { margin-top: 18px; }
.prose { margin-top: 18px; display: grid; gap: 18px; font-size: 1.12rem; max-width: 58ch; color: var(--ink-2); }
.link { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-weight: 500; }
.link:hover { color: var(--accent); }

/* teaching page */
.split2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.split2 .creds__y { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.split2 .creds li { grid-template-columns: 110px 1fr; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }
.ws__intro { max-width: 50ch; margin-bottom: 40px; }
.ws__group { font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.03em; margin: 50px 0 18px; font-weight: 500; }
.ws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ws__card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: border-color 300ms, transform 500ms var(--ease); }
.ws__card b { font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.25; }
.ws__n, .ws__min { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.ws__n { color: var(--accent); }
@media (hover: hover) { .ws__card:hover { border-color: var(--accent); transform: translateY(-4px); } }
.js .ws .ws__card { opacity: 0; transform: translateY(24px); }
.js .ws.in .ws__card { animation: rowIn 700ms var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
@media (max-width: 1000px) { .ws { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ws { grid-template-columns: 1fr; } .ws__card { min-height: 0; } }
.item--venue { grid-template-columns: 72px 1fr; }
.list--pubs .item__note i { font-family: inherit; }
.contact--small .contact__big { font-size: clamp(3.4rem, 11vw, 10rem); }

@media (prefers-reduced-motion: reduce) {
  .proud { height: auto; }
  .proud__stage { position: static; height: auto; padding-block: 100px; }
  .proud__title, .proud__text { opacity: 1; translate: none; }
  .js .ws .ws__card { opacity: 1; transform: none; }
}
/* sub-page index letter (ties to A/B/C on the home index) + scroll drift */
.phero { position: relative; }
.phero__glyph { position: absolute; right: 0; top: clamp(90px, 10vw, 130px); z-index: -1; font-family: var(--serif); font-style: italic; font-size: clamp(14rem, 38vw, 34rem); line-height: 0.8; color: var(--accent); opacity: 0.14; pointer-events: none; transform: translateY(calc(var(--hp, 0) * 30%)) rotate(calc(var(--hp, 0) * -6deg)); }
.phero__title { transform: translateY(calc(var(--hp, 0) * -40px)); }
.phero__lead { opacity: calc(1 - var(--hp, 0) * 1.4); }
.js .phero__glyph { clip-path: inset(100% 0 0 0); }
.is-ready .phero__glyph { clip-path: inset(0); transition: clip-path 1.4s var(--ease-io) 200ms; }
@media (prefers-reduced-motion: reduce) { .js .phero__glyph { clip-path: none; } }

/* MOBILE MENU */
.menu-btn { display: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .lang { margin-left: auto; }
}
.mnav { position: fixed; inset: 0; z-index: 80; background: var(--night); color: oklch(0.96 0.006 85); padding: 22px var(--gutter) 40px; display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease-io); }
.mnav.open { clip-path: inset(0); }
.mnav__close { align-self: flex-end; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px; }
.mnav nav { margin-top: auto; display: grid; }
.mnav nav a { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; padding: 10px 0; border-bottom: 1px solid oklch(0.96 0.006 85 / 0.14); opacity: 0; transform: translateY(30px); transition: opacity 500ms ease, transform 700ms var(--ease), color 200ms; }
.mnav.open nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 200ms); }
.mnav nav a[aria-current="page"], .mnav nav a:hover { color: oklch(0.72 0.09 195); }
@media (prefers-reduced-motion: reduce) { .mnav nav a { opacity: 1; transform: none; } }

/* ==========================================================================
   v6 — story timeline, feature blocks, expandable workshops
   ========================================================================== */
.linkrow { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }

/* timeline: a line that fills as you scroll */
.tl-wrap { position: relative; --tl: 0; }
.tl__line { position: absolute; left: 110px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl__line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--tl)); }
.tl { display: grid; }
.tl__item { display: grid; grid-template-columns: 110px 1fr; gap: 0 44px; padding: 26px 0; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 105px; top: 34px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-3); transition: background 400ms, border-color 400ms; }
.tl__item.in::before { background: var(--accent); border-color: var(--accent); }
.tl__y { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 4px; }
.tl__item h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.tl__item p { color: var(--ink-2); max-width: 60ch; }
.tl__item i { font-family: var(--serif); font-size: 1.1em; }
@media (max-width: 640px) {
  .tl__line { left: 6px; }
  .tl__item { grid-template-columns: 1fr; padding-left: 32px; }
  .tl__item::before { left: 1px; top: 30px; }
  .tl__y { margin-bottom: 6px; }
}

/* feature blocks (work page) */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 5vw, 80px); }
.feat { padding: 34px 0 40px; border-top: 1px solid var(--line); position: relative; }
.feat__n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.feat h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.045em; margin: 14px 0 14px; }
.feat p { color: var(--ink-2); max-width: 52ch; }
.feat i { font-family: var(--serif); font-size: 1.1em; color: var(--ink); }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }

/* expandable workshop cards */
.ws__gi { max-width: 60ch; margin: -6px 0 20px; }
.ws { align-items: start; }
.ws__card { padding: 0; min-height: 0; display: block; }
.ws__card summary { list-style: none; cursor: pointer; padding: 20px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ws__card summary::-webkit-details-marker { display: none; }
.ws__min { display: flex; justify-content: space-between; align-items: center; }
.ws__plus { font-size: 1.3rem; color: var(--ink); transition: transform 400ms var(--ease); }
.ws__card details[open] .ws__plus { transform: rotate(45deg); }
.ws__card details[open] { background: var(--surface); border-radius: 17px; }
.ws__more { padding: 0 20px 22px; font-size: 0.95rem; color: var(--ink-2); animation: rowIn 500ms var(--ease); }
.ws__lh { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; }
.ws__more ul { display: grid; gap: 6px; }
.ws__more li { padding-left: 16px; position: relative; }
.ws__more li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 520px) { .ws__card summary { min-height: 0; } }

/* ==========================================================================
   v7 — no monospace. Numbers and years in the elegant serif, labels in sans.
   ========================================================================== */
.eyebrow { letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 500; }
.item__year, .creds__y, .tl__y, .ws__n, .dir__n, .feat__n, .rooms__of, .proud__unit {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none;
}
.item__year { font-size: 1.15rem; color: var(--accent); }
.tl__y { font-size: 1.5rem; padding-top: 0; }
.ws__n { font-size: 1.2rem; }
.ws__min, .ws__lh { font-family: var(--font); }
.rooms__of { font-size: 0.3em; }
.hero__l small { font-family: var(--serif); font-style: italic; font-size: 0.16em; letter-spacing: 0; top: 0.6em; }
.hero__kicker { letter-spacing: 0.12em; font-weight: 500; }
.phero__glyph { opacity: 0.12; }
.item { grid-template-columns: 90px 1fr 28px; }
.split2 .list { margin-top: 14px; }
.list__empty { padding: 22px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .item { grid-template-columns: 64px 1fr 18px; } }

/* Jury fix: smooth cross-page transitions (View Transitions, progressive) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 350ms var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn 600ms var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
.nav { view-transition-name: nav; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
@media (max-width: 420px) { .nav__name { white-space: nowrap; font-size: 0.9rem; } .nav__in { gap: 10px; } .lang button { padding: 5px 8px; } }

/* ==========================================================================
   v8 — ink-reveal hero
   ========================================================================== */
.hero2 { height: 170svh; position: relative; --p: 0; }
.hero2__stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-top: 70px; overflow: hidden; }
.hero2__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero2__name { margin: 18px 0 0; font-weight: 400; }
.hero2__name small { display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 6px; }
.ink { display: block; width: 100%; height: auto; overflow: visible; }
.ink text { font-family: var(--serif); font-size: 150px; letter-spacing: -2px; fill: var(--ink); stroke: var(--ink); stroke-width: 0; }
.ink .ink__2 { font-style: italic; fill: var(--accent); stroke: var(--accent); }
.js .ink text { fill: transparent; stroke-width: 1.1; stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-ready .ink text { animation: ink 2.8s cubic-bezier(.5,0,.2,1) forwards 250ms; }
.is-ready .ink .ink__2 { animation-delay: 900ms; }
@keyframes ink { 65% { stroke-dashoffset: 0; fill: transparent; } 100% { stroke-dashoffset: 0; fill: currentColor; stroke-width: 0; } }
.ink text { color: var(--ink); } .ink .ink__2 { color: var(--accent); }
.hero2__rule { display: block; height: 1px; background: var(--line); margin: clamp(22px, 3vw, 36px) 0; position: relative; }
.hero2__rule::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.hero2__note { font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 30ch; color: var(--ink-2); margin: 0 0 26px; }
.hero2__areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hero2__areas li { --s: clamp(0, (var(--p) * 5) - var(--k) * 0.9 - 0.2, 1); opacity: var(--s); translate: 0 calc((1 - var(--s)) * 14px); }
.hero2__areas a { display: inline-flex; gap: 14px; align-items: baseline; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 4px 0; }
.hero2__areas a:hover { color: var(--accent); }
.hero2__areas i { font-family: var(--serif); font-size: 0.85em; color: var(--accent); }
.hero2__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--line); }
.hero2__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: translateY(calc(var(--p) * -5%)) scale(1.08); }
.hero2__photo::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: 0.12; pointer-events: none; }
.js .hero2__photo img { filter: blur(18px) saturate(0.6); }
.js .hero2__photo::after { opacity: 0.75; }
.is-ready .hero2__photo img { filter: blur(0) saturate(0.95); transition: filter 2.2s cubic-bezier(.3,0,.2,1) 1.2s; }
.is-ready .hero2__photo::after { opacity: 0.12; transition: opacity 2.4s ease 1.2s; }
@media (max-width: 760px) {
  .hero2 { height: 150svh; }
  .hero2__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero2__photo { order: -1; aspect-ratio: 16 / 11; max-height: 34svh; }
  .hero2__note { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2 { height: auto; } .hero2__stage { position: static; height: auto; min-height: 100svh; }
  .js .ink text { fill: currentColor; stroke-width: 0; animation: none; }
  .js .hero2__photo img { filter: none; } .js .hero2__photo::after { opacity: 0.12; }
  .hero2__areas li { opacity: 1; translate: none; } .hero2__rule::after { transform: scaleX(1); }
}

/* ==========================================================================
   v9 — icons instead of numbers
   ========================================================================== */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.sec__ic { color: var(--accent); }
.sec__ic .ic { width: 30px; height: 30px; }
.ws__group[data-ic] { display: flex; align-items: center; gap: 12px; }
.ws__group .ic { width: 0.95em; height: 0.95em; color: var(--accent); }
.item__year .item__ic { width: 22px; height: 22px; color: var(--accent); opacity: 0.85; vertical-align: middle; }
.ws__n .ic { width: 22px; height: 22px; color: var(--accent); }
.hero2__areas i { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 1px solid var(--line); border-radius: 50%; }
.hero2__areas i .ic { width: 0.85em; height: 0.85em; }
.hero2__areas a:hover i { border-color: var(--accent); }
.room__ey { display: flex; align-items: center; gap: 10px; }
.room__ey .ic { width: 22px; height: 22px; }
.rooms__icons { display: flex; gap: 14px; }
.rooms__icons span { display: grid; place-items: center; width: clamp(48px, 5vw, 64px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-3); transition: color .4s, border-color .4s, background .4s; }
.rooms__icons .ic { width: 45%; height: 45%; }
.rooms[data-room="0"] .rooms__icons span:nth-child(1), .rooms[data-room="1"] .rooms__icons span:nth-child(2), .rooms[data-room="2"] .rooms__icons span:nth-child(3) { color: #fff; background: var(--accent); border-color: var(--accent); }
.phero__glyph { width: clamp(220px, 34vw, 460px); height: auto; aspect-ratio: 1; font-size: 0; opacity: 0.1; }
.phero__glyph .ic { width: 100%; height: 100%; stroke-width: 0.6; }

/* ==========================================================================
   v10 — jury pass: cards with real thumbnails, chips, texture, rooms clean-up
   ========================================================================== */
body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: 0.035; } }
.rooms__index { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 clamp(28px, 4vw, 48px); position: sticky; top: 64px; z-index: 4; padding: 10px 0; background: var(--bg); }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-small); color: var(--ink-2); text-decoration: none; transition: color .25s, border-color .25s; }
.chips a .ic { color: var(--accent); }
.chips a:hover { color: var(--ink); border-color: var(--accent); }
.ws__group[id], #g-press { scroll-margin-top: 140px; }
.list.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 28px); border: 0; }
.card a, .card > div { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: color-mix(in oklch, var(--accent) 10%, var(--bg)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform .9s var(--ease), filter .5s; }
.card__tile { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); }
.card__tile .ic { width: 34%; height: 34%; stroke-width: 1; }
.card__play { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: color-mix(in oklch, var(--bg) 88%, transparent); color: var(--ink); transition: background .3s, color .3s; }
.card__body { display: grid; align-content: start; gap: 4px; padding: 14px 2px 4px; }
.card__y { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05rem; }
.card__body b { font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; transition: color .3s; }
.card__body span:last-child:not(.card__y) { font-size: var(--t-small); color: var(--ink-3); line-height: 1.45; }
@media (hover: hover) {
  .card a:hover img { transform: scale(1.04); filter: saturate(1); }
  .card a:hover .card__play { background: var(--accent); color: #fff; }
  .card a:hover b { color: var(--accent); }
}
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); top: 56px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .list.cards { gap: 14px; }
  .card a, .card > div { grid-template-columns: 128px 1fr; grid-template-rows: auto; gap: 14px; align-items: start; }
  .card__body { padding: 0; }
  .card__play { width: 26px; height: 26px; padding: 6px; left: 8px; bottom: 8px; }
}

/* ==========================================================================
   v11 — the notebook: pen marks, margin notes, taped print
   ========================================================================== */
:root { --hand: "Kalam", "Segoe Print", cursive; --pen: oklch(0.5 0.1 195); }

/* pen strokes */
.mark { position: relative; display: inline-block; }
.pen { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke: var(--pen); stroke-linecap: round; stroke-linejoin: round; }
.pen path { stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pen .pen__2 { stroke-width: 1.6; opacity: 0.55; }
.pen--under { left: -2%; width: 104%; height: 0.32em; bottom: -0.16em; }
.pen--circle { left: -9%; top: -16%; width: 118%; height: 132%; }
.pen--circle path { stroke-width: 2.2; }
.mark.in .pen path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.6,0,.25,1) .25s; }
.mark.in .pen .pen__2 { transition-delay: .85s; transition-duration: .7s; }
.mark--title { display: block; width: fit-content; }
.mark--title .pen--under { height: 0.14em; bottom: -0.02em; }

/* margin notes in handwriting */
.note { position: relative; font-family: var(--hand); font-weight: 400; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.2; letter-spacing: 0; color: var(--pen); rotate: -2.5deg; width: fit-content; max-width: 26ch; margin: 10px 0 14px; padding-left: 52px;
  opacity: 0; translate: 0 6px; transition: opacity .6s ease .5s, translate .8s var(--ease) .5s; }
.note.in { opacity: 1; translate: 0 0; }
.note .pen--arrow { left: 0; top: -0.15em; width: 44px; height: 30px; rotate: 180deg; transform: scaleY(-1); }
.note .pen--arrow path { stroke-width: 1.8; }
.note.in .pen path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.6,0,.25,1) .4s; }
.note--card { color: inherit; opacity: 0; margin: 2px 0 16px; }
.note--card.in { opacity: 0.85; }
.room .note--card .pen { stroke: currentColor; }
.note--motto { margin: 18px 0 0 auto; rotate: -4deg; font-size: clamp(1.3rem, 1.8vw, 1.7rem); }
.note--lead { margin-top: 18px; rotate: -1.8deg; }

/* the portrait as a taped print */
.hero2__photo.tape { overflow: visible; background: #fbfaf6; padding: 10px 10px 46px; border-radius: 2px; rotate: 1.6deg;
  box-shadow: 0 1px 2px oklch(0.2 0.01 250 / .08), 0 18px 40px -18px oklch(0.2 0.01 250 / .35); }
.hero2__photo.tape img { display: block; }
.hero2__photo.tape::before, .hero2__photo.tape .tape__b { content: ""; position: absolute; z-index: 2; width: 92px; height: 26px; top: -12px; left: 50%; translate: -50% 0; rotate: -4deg;
  background: oklch(0.93 0.03 95 / .72); box-shadow: 0 1px 2px oklch(0.2 0.01 250 / .08); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0) ; }
.hero2__photo.tape::after { inset: 10px 10px 46px; }
.note--photo { position: absolute; left: 16px; bottom: 6px; margin: 0; padding-left: 0; rotate: -1.5deg; color: oklch(0.3 0.02 250); font-size: 1.25rem; max-width: none; }
.note--photo .pen { display: none; }
.js .hero2__photo.tape { opacity: 0; translate: 0 18px; rotate: 5deg; }
.is-ready .hero2__photo.tape { opacity: 1; translate: 0 0; rotate: 1.6deg; transition: opacity .9s ease .2s, translate 1.2s var(--ease) .2s, rotate 1.4s var(--ease) .2s; }

@media (max-width: 760px) {
  .hero2__photo.tape { padding: 8px 8px 38px; rotate: 1deg; width: min(78%, 320px); justify-self: center; }
  .note { font-size: 1.1rem; padding-left: 44px; }
  .note .pen--arrow { width: 36px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pen: oklch(0.78 0.09 195); }
  .hero2__photo.tape { background: oklch(0.93 0.008 85); }
}
@media (prefers-reduced-motion: reduce) {
  .pen path { stroke-dashoffset: 0 !important; transition: none !important; }
  .note { opacity: 1; translate: none; transition: none; }
  .js .hero2__photo.tape { opacity: 1; translate: none; rotate: 1.6deg; }
}
.note--card { font-size: clamp(1.25rem, 1.6vw, 1.55rem); max-width: 30ch; }

.note--photo { bottom: 12px; line-height: 1; }
.hero2__photo.tape { padding-bottom: 52px; }

/* ==========================================================================
   v12 — arrows point at the title, card covers, workshop icons
   ========================================================================== */
.note { padding-left: 40px; }
.note .pen--arrow { left: 2px; top: auto; bottom: 0.55em; width: 30px; height: 46px; rotate: none; transform: none; }
.note .pen--arrow path { stroke-width: 1.7; }
.note--motto .pen--arrow { height: 54px; }
@media (max-width: 760px) { .note { padding-left: 34px; } .note .pen--arrow { width: 26px; height: 40px; } }

/* a card with no photo gets a printed cover, not an empty tile */
.card__cover { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 16px 18px; background: var(--accent); color: #f3f1ea;
  background-image: radial-gradient(120% 90% at 100% 0%, oklch(1 0 0 / .14), transparent 55%); }
.card__cover-ic .ic { width: 30px; height: 30px; }
.card__cover b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.01em; }
.card__cover i { font-style: normal; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .75; }

/* workshops: each has its own icon in a round badge */
.ws__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklch, var(--accent) 12%, var(--bg)); flex: none; }
.ws__n .ic { width: 22px; height: 22px; }
details[open] .ws__n { background: var(--accent); }
details[open] .ws__n .ic { color: #fff; }

/* Elsewhere: latest video + profile tiles */
.else { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.yt { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #111; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: color-mix(in oklch, var(--bg) 90%, transparent); color: var(--ink); transition: background .3s, color .3s; }
.yt__play .ic { width: 30px; height: 30px; }
.yt:hover .yt__play { background: var(--accent); color: #fff; }
.else__cap { margin: 12px 0 0; font-size: var(--t-small); color: var(--ink-2); }
.else__cap b { font-weight: 600; color: var(--ink); }
.else__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.else__tile { position: relative; display: grid; gap: 4px; align-content: start; min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; transition: border-color .3s, background .3s, translate .4s var(--ease); }
.else__tile b { font-weight: 500; font-size: 1.1rem; margin-top: auto; padding-top: 18px; }
.else__tile span:not(.else__ic):not(.else__ar) { font-size: var(--t-small); color: var(--ink-3); }
.else__ic { color: var(--accent); } .else__ic .ic { width: 28px; height: 28px; }
.else__ar { position: absolute; top: 16px; right: 16px; color: var(--ink-3); transition: translate .3s var(--ease), color .3s; }
@media (hover: hover) { .else__tile:hover { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 6%, var(--bg)); translate: 0 -2px; } .else__tile:hover .else__ar { color: var(--accent); translate: 2px -2px; } }
@media (max-width: 760px) { .else { grid-template-columns: 1fr; } .else__tile { min-height: 120px; } }

/* ==========================================================================
   v13 — readable menu, note spacing
   ========================================================================== */
.nav { mix-blend-mode: normal; color: var(--ink); transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s; }
.nav.is-scrolled { background: color-mix(in oklch, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
html[data-lang="en"] .nav .lang [data-set="en"], html[data-lang="tr"] .nav .lang [data-set="tr"] { background: var(--ink); color: var(--bg); }
/* notes sit a little lower so the arrow has room to reach the title without touching text */
.note { margin-top: 34px; }
.note--card { margin-top: 26px; }
.note--photo { margin-top: 0; }

/* ============================================================
   v14 — quotes in notes, roomier wide screens
   ============================================================ */
:root { --gutter: clamp(20px, 6vw, 112px); }
.wrap { width: min(1200px, 100% - var(--gutter) * 2); }
.note--lead { max-width: 38ch; }
.note__by { display: block; margin-top: 4px; font-size: 0.85em; opacity: 0.75; }
.note__by::before { content: "— "; }

/* v15 — hero fits the screen height (wide but short laptops, longer Turkish copy) */
@media (min-width: 821px) {
  .hero2__stage { padding-top: 76px; padding-bottom: 24px; }
  .hero2__name .ink { width: min(100%, calc((100svh - 330px) * 1.3)); min-width: 300px; }
  .hero2__note { max-width: 40ch; }
  .hero2__areas { display: flex; flex-wrap: wrap; gap: 6px 30px; }
  .hero2__rule { margin: clamp(14px, 2.2svh, 30px) 0; }
  .hero2__note { margin-bottom: clamp(12px, 2svh, 26px); }
  .hero2__photo.tape { max-height: calc(100svh - 150px); width: auto; aspect-ratio: 4 / 5.6; justify-self: end; }
}

/* v16 — "What I do" cards fit the screen height */
@media (min-width: 821px) {
  .rooms__grid { padding-top: 96px; padding-bottom: 32px; align-items: center; }
  .room { gap: clamp(10px, 2.2svh, 22px); }
  .room h2 { font-size: min(var(--t-h1), 8svh); }
  .room__text { font-size: min(var(--t-lead), 3.1svh); max-width: 44ch; }
  .room .note--card { font-size: min(clamp(1.15rem, 1.4vw, 1.4rem), 2.8svh); margin-block: 0; }
  .room__creds li { padding: clamp(8px, 1.4svh, 14px) 16px; }
}
