/* ==========================================================================
   İdil Kale v2 — "I am a Human-AI Designer"
   Type system: condensed display caps · warm serif statements · mono labels
   Motif: the asterisk from "İdil*"
   ========================================================================== */

:root {
    --paper: #faf7f2;
    --paper-2: #f2ece2;
    --white: #ffffff;
    --ink: #2a2727;
    --ink-soft: #5d5754;
    --line: #2a2727;

    --band: #94365f;
    --band-ink: #fbf3f6;
    --band-ink-soft: #f1d9e3;
    --display: #c2557f;
    --tab-active: #f7e5ec;
    --pop-1: #efb54a;
    --pop-2: #ef8a62;

    --f-display: 'League Gothic', 'Oswald', Impact, sans-serif;
    --f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --f-sans: 'General Sans', system-ui, -apple-system, sans-serif;

    --tabs-h: 64px;
    --gutter: clamp(20px, 5vw, 72px);
    --max: 1320px;
    --hair: 1.5px solid var(--line);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tabs-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
    font-family: var(--f-mono);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.88;
    letter-spacing: 0.005em;
    margin: 0;
}


.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Asterisk motif ---------- */
.asterisk { position: absolute; pointer-events: none; color: var(--band-ink); }
.asterisk svg { width: 100%; height: 100%; display: block; }
.asterisk--pop { color: var(--pop-1); }

/* ---------- Tab navigation (replaces the header) ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper);
    border-bottom: var(--hair);
}
.nav a {
    display: grid;
    place-items: center;
    height: var(--tabs-h);
    border-left: var(--hair);
    text-decoration: none;
    transition: background .2s;
}
.nav a:first-child { border-left: 0; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--tab-active); }
.nav a:focus-visible { outline: 3px solid var(--display); outline-offset: -5px; }

/* ---------- Buttons ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    padding: .85em 1.5em;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--solid:hover { background: var(--band); border-color: var(--band); }
.text-link { display: inline-flex; gap: .6em; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: .2em; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(calc(100svh - var(--tabs-h)), 880px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
}
.hero-copy { padding: 6vh 0 6vh calc(var(--gutter) + 2vw); position: relative; z-index: 2; }
.hero-lead { font-family: var(--f-serif); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; margin: 0 0 .3em; }
.hero-title { font-size: clamp(4rem, 9vw, 8.4rem); color: var(--display); }
.hero-title span { display: block; }
.hero-sign { display: flex; align-items: center; gap: 1.1rem; margin-top: clamp(2rem, 5vh, 3.4rem); }
.hero-sign-mark { width: 54px; height: 54px; flex: none; color: var(--display); position: static; }
.hero-name { font-family: var(--f-serif); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; margin: 0; }
.hero-sub { margin: .45em 0 0; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(1.6rem, 4vh, 2.6rem); }

.hero-figure { position: relative; align-self: end; height: 100%; display: flex; align-items: flex-end; justify-content: center; margin: 0; }
.hero-figure img { position: relative; width: min(38vw, 600px); height: auto; }
.hero-figure .asterisk { width: 92px; height: 92px; top: 18%; right: 14%; color: var(--pop-1); }

/* ---------- Bands ---------- */
.band { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); }
.band--round { border-radius: 0 0 28px 28px; }
.dark { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }

.statement { min-height: 78vh; display: grid; place-items: center; padding: 14vh var(--gutter); }
.statement p {
    font-family: var(--f-serif);
    font-size: clamp(2.1rem, 5.2vw, 5.2rem);
    line-height: 1.12;
    text-align: center;
    max-width: 17ch;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.statement p em { color: var(--band-ink-soft); }
.statement .asterisk--a { width: clamp(90px, 13vw, 190px); height: clamp(90px, 13vw, 190px); top: 9%; left: 6%; }
.circle { position: absolute; width: clamp(160px, 22vw, 320px); aspect-ratio: 1; border-radius: 50%; background: var(--pop-2); right: -6%; bottom: -14%; }

/* ---------- Section heads ---------- */
.section { padding: clamp(72px, 12vh, 140px) 0; }
.section--tight-top { padding-top: 0; }
.section--alt { background: var(--paper-2); }
.section-title { font-size: clamp(4.4rem, 11vw, 10rem); }
.section-kicker { margin: 0 0 1.4rem; color: var(--ink-soft); }
.dark .section-kicker { color: #bdb6b1; }
.section-lead { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; max-width: 32ch; margin: 1.6rem 0 0; }
.sub-title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .9; margin: 0 0 28px; }

/* ---------- Split rows (used everywhere: triad, skills, research, case sections) ---------- */
.rows { border-top: var(--hair); margin-top: clamp(48px, 8vh, 88px); }
.row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(40px, 7vh, 72px) 0;
    border-bottom: var(--hair);
}
.row-num { display: block; margin-bottom: .9rem; color: var(--ink-soft); }
.row-title { font-size: clamp(3rem, 6.5vw, 6rem); }
.row p { margin: 0 0 1em; max-width: 58ch; }
.row p:last-child { margin-bottom: 0; }
.pull { font-family: var(--f-serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; }

/* ---------- Proof cards ---------- */
.seen-in { margin: 1.6rem 0 1rem !important; color: var(--ink-soft); }
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: var(--hair);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
a.card:focus-visible { outline: 3px solid var(--display); outline-offset: 3px; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--hair); background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.1; }
.card-fact { font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.card-cta { margin-top: auto; padding-top: 8px; font-size: .72rem; }

.ai-box { display: grid; place-items: center; background: var(--band); color: var(--band-ink); padding: 18px; }
.ai-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: .7rem; }
.ai-flow b { font-weight: 500; border: 1.5px solid currentColor; border-radius: 999px; padding: .35em .8em; }
.ai-flow b.key { background: var(--pop-1); color: var(--ink); border-color: var(--pop-1); }
.ai-flow i { width: 14px; height: 1.5px; background: currentColor; }

/* ---------- What's next (dark) ---------- */
.next { padding: clamp(80px, 14vh, 150px) 0; }
.next .section-title { color: var(--paper); }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 7vh, 72px); }
.next-item { border-top: 1.5px solid rgba(250, 247, 242, .4); padding-top: 28px; }
.next-item .q { font-family: var(--f-serif); font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.12; margin: 0 0 .6em; }
.next-item p { color: #d9d3cd; margin: 0 0 1.4rem; max-width: 48ch; }
.next-item .mono { color: var(--pop-1); }
.next .asterisk { width: 220px; height: 220px; right: -60px; top: -60px; color: var(--display); }

/* ---------- Who I am (carousel) ---------- */
.who { min-height: 88vh; }
.who-title { font-size: clamp(6rem, 21vw, 22rem); color: var(--paper); position: absolute; top: -.08em; right: -.03em; white-space: nowrap; line-height: .82; }
.who-inner { position: relative; z-index: 1; padding: clamp(240px, 36vh, 400px) var(--gutter) clamp(64px, 10vh, 110px); max-width: var(--max); margin: 0 auto; }
.who-kicker { color: var(--band-ink-soft); margin: 0 0 clamp(36px, 6vh, 80px); }
.trait { min-height: 12em; }
.trait h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(4rem, 9vw, 8.5rem); line-height: 1; margin: 0 0 .25em; color: var(--band-ink); }
.trait p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); max-width: 46ch; color: var(--band-ink); margin: 0; }
.trait-nav { display: flex; align-items: center; gap: 28px; margin-top: 44px; }
.trait-nav button { appearance: none; border: 0; background: none; cursor: pointer; color: var(--band-ink); padding: 8px; width: 72px; }
.trait-nav button:focus-visible { outline: 3px solid var(--band-ink); }
.trait-nav svg { width: 64px; height: 20px; display: block; }
.who .asterisk--a { width: clamp(140px, 18vw, 300px); height: clamp(140px, 18vw, 300px); left: -4%; top: -3%; }
.who .asterisk--b { width: clamp(90px, 10vw, 170px); height: clamp(90px, 10vw, 170px); right: 5%; bottom: 7%; }

/* ---------- Small grids ---------- */
.play-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.play { text-decoration: none; }
.play-img { aspect-ratio: 1; border: var(--hair); border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.play-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.play:hover .play-img img { transform: scale(1.04); }
.play .mono { display: block; margin-top: 12px; font-size: .68rem; color: var(--ink-soft); }
.play strong { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 1.4rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border: var(--hair); border-radius: 999px; padding: .4em .9em; }

.q-title { font-family: var(--f-serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: .5rem 0 0; font-weight: 400; }
.meta { color: var(--ink-soft); }

/* ---------- Works list ---------- */
.works { margin-top: clamp(48px, 8vh, 88px); border-top: var(--hair); }
.work {
    display: grid;
    grid-template-columns: 56px minmax(0, 340px) minmax(0, 1fr) minmax(0, 220px);
    gap: clamp(20px, 3vw, 44px);
    padding: clamp(28px, 5vh, 44px) 0;
    border-bottom: var(--hair);
    text-decoration: none;
    align-items: start;
}
.work-no { color: var(--ink-soft); padding-top: .4em; }
.work-thumb { aspect-ratio: 4 / 3; border: var(--hair); border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-title { font-size: clamp(3rem, 5.6vw, 5.4rem); transition: color .2s; }
.work-hook { font-family: var(--f-serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.3; margin: .6em 0 0; max-width: 34ch; }
.work-cta { display: inline-block; margin-top: 1.2rem; font-size: .72rem; }
.work-meta { display: grid; gap: 14px; margin: 0; }
.work-meta div { border-top: 1px solid rgba(42, 39, 39, .3); padding-top: 8px; }
.work-meta dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.work-meta dd { margin: 0; font-size: .95rem; line-height: 1.4; }
a.work:hover .work-title { color: var(--display); }
a.work:hover .work-thumb img { transform: scale(1.04); }
a.work:focus-visible { outline: 3px solid var(--display); outline-offset: 4px; }


/* ---------- Side-project gallery (horizontal, draggable) ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gallery-head .sub-title { margin-bottom: 0; }
.gallery-controls { display: flex; align-items: center; gap: 10px; }
.gallery-hint { color: var(--ink-soft); font-size: .7rem; margin-right: 8px; }
.gallery-btn { appearance: none; width: 64px; height: 44px; border: var(--hair); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.gallery-btn svg { width: 30px; height: 12px; }
.gallery-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.gallery-btn:disabled { opacity: .3; cursor: default; }
.gallery-btn:focus-visible { outline: 3px solid var(--display); outline-offset: 3px; }

.gallery {
    --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 2.4vw, 32px);
    overflow-x: auto;
    padding: clamp(36px, 6vh, 56px) var(--edge) 24px;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
    cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 3px solid var(--display); outline-offset: -3px; }
.gallery.is-dragging { cursor: grabbing; user-select: none; }
.gallery.is-dragging .gcard { pointer-events: none; }

.gcard { flex: 0 0 auto; width: clamp(270px, 28vw, 400px); text-decoration: none; }
.gcard--wide { width: clamp(330px, 44vw, 620px); }
.gcard--offset { margin-top: clamp(40px, 8vh, 88px); }
.gcard-img { height: clamp(300px, 44vh, 440px); border: var(--hair); border-radius: 20px; overflow: hidden; background: var(--paper); }
.gcard--tall .gcard-img { height: clamp(380px, 58vh, 580px); }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gcard-img--dark { background: var(--ink); }
.gcard-img--dark img { object-fit: contain; padding: 12%; }
.gcard:hover .gcard-img img { transform: scale(1.05); }
.gcard:focus-visible { outline: 3px solid var(--display); outline-offset: 4px; border-radius: 20px; }
.gcard-meta { display: block; margin-top: 16px; font-size: .68rem; color: var(--ink-soft); }
.gcard-name { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; margin-top: 6px; transition: color .2s; }
.gcard:hover .gcard-name { color: var(--display); }
.gcard-desc { margin: 6px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; max-width: 36ch; }

/* one-by-one entrance, left to right (only when JS is running) */
.js .gallery .gcard { opacity: 0; transform: translateX(-56px); }
.js .gallery.is-in .gcard {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 120ms);
}
@media (prefers-reduced-motion: reduce) {
    .js .gallery .gcard { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
    .gallery-hint { display: none; }
    .gcard, .gcard--wide { width: 78vw; }
    .gcard--offset { margin-top: 0; }
    .gcard-img, .gcard--tall .gcard-img { height: 62vw; }
}

/* ---------- Path ---------- */
.influences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 7vh, 72px); }
.influence { border-top: var(--hair); padding-top: 22px; }
.influence h3 { font-family: var(--f-serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0 0 .5em; }
.influence p { margin: 0; }

.quote-band { padding: clamp(80px, 14vh, 150px) var(--gutter); text-align: center; }
.quote-band p { font-family: var(--f-serif); font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.12; max-width: 20ch; margin: 0 auto; position: relative; z-index: 1; }
.quote-band .asterisk { width: 120px; height: 120px; right: 8%; top: 12%; }

.milestone {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    padding: 36px 0;
    border-top: var(--hair);
    align-items: start;
}
.milestone:last-child { border-bottom: var(--hair); }
.milestone .year { font-family: var(--f-display); font-size: 3.4rem; line-height: .9; }
.milestone h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .4em; }
.milestone p { margin: 0; }
.milestone figure { margin: 0; border: var(--hair); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.milestone figure img { width: 100%; height: 100%; object-fit: cover; }
.milestone figure.ai-box { display: grid; }

.learned { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: l; }
.learned li { counter-increment: l; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 28px 0; border-top: var(--hair); font-family: var(--f-serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; }
.learned li:last-child { border-bottom: var(--hair); }
.learned li::before { content: "0" counter(l); font-family: var(--f-mono); font-size: .9rem; letter-spacing: .14em; padding-top: .6em; color: var(--ink-soft); }

.basics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: var(--hair); }
.kv div:last-child { border-bottom: var(--hair); }
.kv dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .3em; color: var(--ink-soft); }
.kv dd { margin: 0; }
.list-years { list-style: none; margin: 0; padding: 0; }
.list-years li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-top: var(--hair); }
.list-years li:last-child { border-bottom: var(--hair); }
.list-years .y { font-family: var(--f-mono); font-size: .9rem; padding-top: .15em; }

/* ==========================================================================
   CASE STUDY
   ========================================================================== */
.cs-hero { padding: clamp(48px, 9vh, 96px) 0 clamp(40px, 6vh, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .8em; margin: 0 0 clamp(32px, 6vh, 64px); color: var(--ink-soft); }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.cs-kicker { margin: 0 0 1rem; color: var(--ink-soft); }
.cs-title { font-size: clamp(5.4rem, 15vw, 14rem); color: var(--display); }
.cs-hook { font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; max-width: 30ch; margin: clamp(20px, 3vh, 32px) 0 0; }

.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 7vh, 72px) 0 0; border-top: var(--hair); border-bottom: var(--hair); }
.cs-meta div { padding: 18px 20px 20px 0; }
.cs-meta div + div { border-left: var(--hair); padding-left: 20px; }
.cs-meta dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-size: 1rem; line-height: 1.45; }

.cs-cover { margin: 0 0 clamp(64px, 10vh, 120px); border: var(--hair); border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.cs-cover img { width: 100%; height: auto; }

.ps { padding: clamp(72px, 12vh, 130px) 0; }
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); position: relative; z-index: 1; }
.ps-grid .mono { color: var(--band-ink-soft); margin: 0 0 1rem; }
.ps-grid p:not(.mono) { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; margin: 0; }
.ps .asterisk { width: 150px; height: 150px; right: -40px; bottom: -40px; color: var(--pop-1); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--hair); border-bottom: var(--hair); }
.stat { padding: 28px 20px 26px 0; }
.stat + .stat { border-left: var(--hair); padding-left: 24px; }
.stat-num { display: block; font-family: var(--f-display); font-size: clamp(5rem, 10vw, 9rem); line-height: .85; color: var(--display); }
.stat-label { display: block; margin-top: 10px; font-size: .74rem; }

.cs-sec {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(56px, 9vh, 96px) 0;
    border-bottom: var(--hair);
}
.cs-sec:first-child { border-top: var(--hair); }
.cs-sec-label { align-self: start; position: sticky; top: calc(var(--tabs-h) + 28px); }
.cs-sec-label .mono { display: block; color: var(--ink-soft); margin-bottom: .8rem; }
.cs-sec-label h2 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
.cs-headline { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; margin: 0 0 .6em; }
.cs-body p { margin: 0 0 1em; max-width: 62ch; }
.cs-body > *:last-child { margin-bottom: 0; }
.callout { font-family: var(--f-serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; border-left: 4px solid var(--display); padding: 4px 0 4px 22px; margin: 1.6em 0 0; max-width: 40ch; }

.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.finding { border: var(--hair); border-radius: 18px; background: var(--white); padding: 22px 22px 24px; }
.finding h4 { font-family: var(--f-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: 14px 0 8px; }
.finding p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.sev { display: inline-block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; border: var(--hair); border-radius: 999px; padding: .35em .9em; }
.sev--critical { background: var(--band); color: var(--band-ink); border-color: var(--band); }

.quotes { display: grid; gap: 16px; margin-top: 32px; }
.quote { margin: 0; border: var(--hair); border-radius: 18px; background: var(--white); padding: 26px 28px; }
.quote p { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; margin: 0 0 14px; }
.quote cite { font-style: normal; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.quote--band { background: var(--band); border-color: var(--band); color: var(--band-ink); }
.quote--band cite { color: var(--band-ink-soft); }

.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 32px -4px 0; }
.strip figure { flex: 0 0 min(78%, 560px); scroll-snap-align: start; margin: 0; }
.strip .frame { border: var(--hair); border-radius: 16px; overflow: hidden; background: var(--white); }
.strip figcaption { margin-top: 10px; font-size: .7rem; color: var(--ink-soft); }
.strip-hint { margin: 6px 0 0; font-size: .68rem; color: var(--ink-soft); }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.screens .card-img { aspect-ratio: 3 / 4; }
.screens .card-img img { object-position: top; }

.proto { margin-top: 32px; border: var(--hair); border-radius: 18px; overflow: hidden; background: var(--white); }
.proto iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.proto-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: var(--hair); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.reflection { padding: clamp(80px, 14vh, 150px) 0; }
.reflection .section-title { color: var(--paper); font-size: clamp(3.6rem, 8vw, 7rem); }
.reflection p:not(.mono) { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; max-width: 34ch; margin: clamp(28px, 5vh, 48px) 0 0; }
.reflection .asterisk { width: 200px; height: 200px; right: -50px; top: -50px; color: var(--display); }

.next-project { display: block; text-decoration: none; padding: clamp(72px, 12vh, 130px) 0; }
.next-project .mono { color: var(--band-ink-soft); }
.next-project .display { font-size: clamp(5rem, 13vw, 12rem); margin-top: 12px; display: flex; align-items: center; gap: .2em; }
.next-project .display span { transition: transform .3s ease; }
.next-project:hover .display span { transform: translateX(16px); }
.next-project p:not(.mono):not(.display) { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.7rem); max-width: 40ch; margin: 18px 0 0; }
.next-project:focus-visible { outline: 3px solid var(--pop-1); outline-offset: -8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(80px, 14vh, 140px) 0 40px; }
.say-hi { font-size: clamp(5rem, 16vw, 15rem); color: var(--paper); }
.say-hi span { color: var(--display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.footer-links .pill:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 90px; padding-top: 24px; border-top: 1px solid rgba(250, 247, 242, .25); color: #bdb6b1; font-size: .72rem; }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 26px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .work { grid-template-columns: 44px minmax(0, 260px) minmax(0, 1fr); }
    .work-meta { grid-column: 3; }
}

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding: 56px var(--gutter) 24px; }
    .hero-figure { height: auto; }
    .hero-figure img { width: min(78vw, 460px); }
    .row, .milestone, .cs-sec { grid-template-columns: 1fr; }
    .cs-sec-label { position: static; }
    .milestone .year { font-size: 2.6rem; }
    .next-grid, .influences, .basics, .ps-grid, .findings { grid-template-columns: 1fr; }
    .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-meta, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-meta div:nth-child(3), .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .cs-meta div:nth-child(n+3), .stat:nth-child(n+3) { border-top: var(--hair); }
    .screens { grid-template-columns: 1fr; }
    .screens .card-img { aspect-ratio: 4 / 3; }
    .work { grid-template-columns: 1fr; }
    .work-no { padding-top: 0; }
    .work-meta { grid-column: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --tabs-h: 52px; }
    body { font-size: 17px; }
    .nav a { font-size: .62rem; letter-spacing: .08em; }
    .who-inner { padding-top: 200px; }
    .kv div { grid-template-columns: 1fr; gap: 4px; }
    .learned li { grid-template-columns: 1fr; gap: 6px; }
    .work-meta { grid-template-columns: 1fr; }
    .to-top { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ==========================================================================
   CASE STUDY — media & content blocks
   ========================================================================== */
.cs-fig { margin: 32px 0 0; }
.cs-fig .frame, .figs .frame { border: var(--hair); border-radius: 18px; overflow: hidden; background: var(--white); }
.cs-fig .frame img, .figs .frame img { width: 100%; height: auto; }
.frame--pad { padding: clamp(24px, 4vw, 56px); }
.frame--pad img { margin: 0 auto; max-height: 420px; width: auto !important; max-width: 100%; }
.cs-cap { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cs-fig a.frame { display: block; text-decoration: none; }

.figs { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; margin-top: 32px; align-items: start; }
.figs figure { margin: 0; }
.figs--fill .frame { aspect-ratio: var(--ratio, 4 / 3); }
.figs--fill .frame img { height: 100%; object-fit: cover; }
.figs--contain .frame { aspect-ratio: var(--ratio, 3 / 4); display: grid; place-items: center; padding: 18px; }
.figs--contain .frame img { height: 100%; width: 100%; object-fit: contain; }

.flip { margin-top: 32px; border: var(--hair); border-radius: 18px; overflow: hidden; background: var(--white); }
.flip iframe { display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 340px; border: 0; }

.cs-video { margin: 32px 0 0; border: var(--hair); border-radius: 18px; overflow: hidden; background: var(--ink); }
.cs-video video { display: block; width: 100%; height: auto; }

.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; border-top: 1px solid rgba(42, 39, 39, .25); max-width: 62ch; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(42, 39, 39, .25); }
.ticks li::before { content: "*"; position: absolute; left: 4px; top: 10px; font-family: var(--f-serif); font-size: 1.4rem; line-height: 1; color: var(--display); }
.ticks li strong { font-weight: 600; }
.ticks li span { display: block; color: var(--ink-soft); font-size: .95rem; }
.ticks--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

.finding .num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--band); }

@media (max-width: 640px) {
    .figs { grid-template-columns: 1fr; }
    .figs--keep { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
    .ticks--cols { grid-template-columns: 1fr; }
}

/* ---------- Side-project (mini case) additions ---------- */
.cs-cover video { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: var(--ink); }
.cs-cover--pad { background: var(--white); padding: clamp(32px, 6vw, 96px); }
.cs-cover--pad img { margin: 0 auto; max-height: 560px; width: auto; }
.cs-cover--dark { background: var(--ink); }
.figs--grid { --cols: 4; }
@media (max-width: 960px) { .figs--grid { --cols: 3; } }
@media (max-width: 640px) { .figs--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Essential skills: switchable tabs (home) ---------- */
.skill-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 72px); border-top: var(--hair); border-bottom: var(--hair); }
.skill-tab {
    appearance: none;
    border: 0;
    border-left: var(--hair);
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background .2s;
}
.skill-tab:first-child { border-left: 0; }
.skill-tab .mono { color: var(--ink-soft); }
.skill-tab .display { font-size: clamp(2.2rem, 4.2vw, 4.2rem); transition: color .2s; }
.skill-tab:hover { background: var(--paper-2); }
.skill-tab[aria-selected="true"] { background: var(--tab-active); }
.skill-tab[aria-selected="true"] .display { color: var(--display); }
.skill-tab:focus-visible { outline: 3px solid var(--display); outline-offset: -5px; }

.skill-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(40px, 7vh, 72px) 0;
    border-bottom: var(--hair);
    animation: panel-in .45s ease both;
}
.skill-panel[hidden] { display: none; }
.skill-panel p { margin: 0 0 1em; max-width: 52ch; }
.skill-panel .seen-in { margin-top: 0 !important; }
.skill-panel:focus-visible { outline: 3px solid var(--display); outline-offset: 6px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Who I am: title on the left ---------- */
.who-title { left: -.03em; right: auto; }
.who .asterisk--a { left: auto; right: -4%; }

/* ---------- Path: education & experience timeline ---------- */
.timeline { margin-top: 32px; }
.entry {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(28px, 5vh, 44px) 0;
    border-top: var(--hair);
    align-items: start;
}
.entry:last-child { border-bottom: var(--hair); }
.entry-when { margin: 0; font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: .95; text-transform: uppercase; }
.entry-when small { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--ink-soft); }
.entry h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; margin: 0 0 .35em; }
.entry .org { margin: 0; color: var(--ink-soft); }
.entry .ticks { margin-top: 0; }
.entry .entry-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.entry .entry-links a { font-size: .68rem; }

@media (max-width: 960px) {
    .skill-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .skill-tab:nth-child(3) { border-left: 0; }
    .skill-tab:nth-child(n+3) { border-top: var(--hair); }
    .skill-panel { grid-template-columns: 1fr; }
    .entry { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Who I am: traits on the right, title on the left ---------- */
.who-inner > * { width: min(100%, 640px); margin-left: auto; }
.who-inner .trait h3 { font-size: clamp(3.6rem, 6.4vw, 6.8rem); }
.who .asterisk--b { right: auto; left: 5%; }
@media (max-width: 960px) { .who-inner > * { width: 100%; } }

/* ---------- Double major badge ---------- */
.degree-plus { display: flex; align-items: center; gap: 12px; margin: .5em 0 .45em; color: var(--display); font-size: 1.3rem; font-weight: 500; }
.degree-plus::before, .degree-plus::after { content: ""; flex: 1; height: 1px; background: rgba(42, 39, 39, .3); }
.badge { display: inline-block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; background: var(--band); color: var(--band-ink); border-radius: 999px; padding: .4em .9em; }
@media (max-width: 640px) { .who .asterisk--b { display: none; } }

/* Armoni products: each mockup whole, on its own grey */
.products .frame { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.products .frame img { width: 100%; height: 100%; object-fit: contain; }
.products .frame--cover img { object-fit: cover; }

/* ---------- Short version: plain body text on the right ---------- */
.row-text { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.65; max-width: 56ch; margin: 0; }

/* ---------- Who I am: stacked traits, one line titles ---------- */
.trait-stack { display: grid; }
.trait-stack .trait { grid-area: 1 / 1; min-height: 0; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.trait-stack .trait.is-on { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.who-inner .trait-stack .trait h3 { font-size: clamp(2.6rem, 5vw, 5.2rem); white-space: nowrap; }
.gallery { position: relative; }
.gcard.is-clone { pointer-events: auto; }

/* hero: name first, role, then a short statement */
.hero-title--name { font-size: clamp(4rem, 9vw, 8.4rem); line-height: .9; }
.hero-sub--role { margin-top: 1.1em; font-size: clamp(.8rem, 1vw, .95rem); }
.hero-statement { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.25; color: var(--ink); margin: clamp(1.4rem, 4vh, 2.4rem) 0 0; max-width: 22em; }
