/* ---------- EDITORIAL (the original flat look) + Rams/Braun geometry + Drams-style rhythm ---------- */
:root { --sand: #e4e4df; --shape: #2e2720; --red: #ea4128; }

/* stats strip: flat, hairline, no tiles */
.stats-strip .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 0; padding-bottom: 0; }
.stats-left { display: flex; flex-direction: column; gap: 36px; }
.dotclock { display: flex; gap: 10px; align-items: flex-end; }
.dotclock .g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 44px; }
.dotclock .g i { aspect-ratio: 1; border-radius: 50%; background: transparent; }
.dotclock .g i.on { background: var(--shape); }
.dotclock .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin: 0 6px 12px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.thinrow { display: flex; gap: 44px; flex-wrap: wrap; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.thinrow small { font-size: 12px; font-weight: 400; letter-spacing: .08em; margin-left: 8px; font-family: 'RF Dewi', monospace; color: var(--gray); }
.dial-wrap { width: 190px; }
.dial-wrap svg { width: 100%; display: block; }

/* section heads in the Drams rhythm: big tight title left, quiet count right */
section { padding: 96px 0; }
.section-head { align-items: baseline; margin-bottom: 56px; }

/* Type stat meter, flat */
.ticks { display: flex; gap: 3px; height: 26px; margin-top: 18px; }
.ticks i { flex: 1; background: var(--ink); border-radius: 0; transform-origin: bottom; }
.ticks i.off { background: var(--line); }
.ticks i.hot { background: var(--accent); }

/* NDA strip: hatch + big numeral, flat */
.nda-strip { margin-top: 32px; display: flex; align-items: stretch; border: 1px solid var(--ink); }
.nda-strip .hatch { width: 120px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--accent) 6px 7px); border-right: 1px solid var(--ink); }
.nda-strip .txt { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex: 1; flex-wrap: wrap; }
.nda-strip .big { font-weight: 300; font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.nda-strip .big small { font-size: 12px; font-weight: 400; letter-spacing: .08em; margin-left: 8px; font-family: 'RF Dewi', monospace; color: var(--gray); }
.nda-strip p { font-size: 14px; max-width: 360px; line-height: 1.5; color: var(--gray); }
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .stats-strip .wrap { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 0; }
  .dial-wrap { width: 130px; }
  .dotclock .g { width: 30px; }
  .nda-strip .hatch { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .dotclock .sep { animation: none; } }

/* ---------- small details from the reference ---------- */
.bit { position: absolute; right: 32px; top: -40px; width: 64px; height: 64px; pointer-events: none; opacity: .92; }
.bit svg { display: block; overflow: visible; }
.bit .vinyl { transform-box: fill-box; transform-origin: center; transition: transform .2s linear; }
.bit .redline { animation: scale 6s ease-in-out infinite alternate; }
@keyframes scale { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
.bit-top svg g { animation: float 3.6s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(5px); } }
.hero-photo-section .bit { top: auto; bottom: 8px; right: 12px; }
/* active rail marker is the red ball */
.rail a.on::before { background: radial-gradient(circle at 65% 30%, #fff 0 1.2px, transparent 1.6px), var(--red) !important; width: 9px !important; height: 9px !important; left: -4px !important; }
/* right-edge slider */
.slider { position: fixed; right: 14px; top: 50%; width: 18px; height: 130px; margin-top: -65px; z-index: 30; pointer-events: none; }
.slider i { position: absolute; left: 8px; top: 0; bottom: 0; width: 1.5px; background: var(--shape); opacity: .75; }
.slider b { position: absolute; left: 0; top: 0; width: 18px; height: 12px; background: #84868a; border-bottom: 5px solid #43474b; box-sizing: content-box; height: 8px; }
/* the yellow spot sits on "now" in the career list */
.timeline-row:last-child .duration::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--sand-spot, #e6b93f); }
@media (max-width: 1099px) { .slider { display: none; } .bit { right: 16px; transform: scale(.75); transform-origin: top right; } }
@media (prefers-reduced-motion: reduce) { .bit .redline, .bit-top svg g { animation: none; } }
.bit-podcast { right: 32px; left: auto; }

/* ---------- BOARDS: layout taken from the generated concepts ---------- */
header { z-index: 36; }
.header-inner nav { margin-left: auto; margin-right: auto; gap: 56px; }
header nav a { text-transform: uppercase; letter-spacing: .04em; color: var(--ink); position: relative; border-bottom: none !important; }
header nav a::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
header nav a.on::after, header nav a:hover::after { transform: scale(1); }
.head-clock { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.5; color: var(--ink); border-left: 1px solid var(--line); padding-left: 20px; }
.head-clock b { display: block; font-weight: 400; color: var(--gray); }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
@media (max-width: 980px) { .head-clock { display: none; } .header-inner nav { display: none; } }
.vline { display: none; }
@media (min-width: 1100px) { .vline { display: block; position: fixed; left: var(--rail-w); top: var(--head-h); bottom: 0; width: 1px; background: var(--line); z-index: 5; } }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .08em; color: var(--gray); margin-bottom: 22px; }
.eyebrow i { width: 28px; height: 1px; background: var(--gray); }

/* hero: heavy name left, portrait bleeding right, small mono column */
.hero-photo-section { padding: 56px 0 0 !important; overflow: hidden; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 150px; gap: 32px; align-items: end; }
.hero2-text { align-self: center; padding-bottom: 56px; }
h1.wordmark { font-size: clamp(44px, 5.2vw, 84px) !important; line-height: .88 !important; letter-spacing: -0.045em !important; max-width: none !important; }
h1.wordmark .ln { display: block; white-space: nowrap; }
h1.wordmark .accent-underline { display: block; }
h1.wordmark .accent-underline::after { bottom: 4px; height: 12px; }
.hero2-lead { font-size: 18px; line-height: 1.45; max-width: 360px; margin-top: 32px; color: var(--ink); }
.hero2-tags { margin-top: 40px; font-size: 11.5px; line-height: 1.9; letter-spacing: .06em; color: var(--gray); }
.hero2-photo .photo-hero { aspect-ratio: 4 / 5; }
.hero2-photo .photo-hero img { object-position: 36% 12%; }
.hero2-photo .photo-hero-halftone { -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 38%, rgba(0,0,0,.5) 52%, #000 70%); mask-image: linear-gradient(to right, transparent 0%, transparent 38%, rgba(0,0,0,.5) 52%, #000 70%); }
.hero2-side { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0 56px; font-size: 11px; line-height: 1.7; letter-spacing: .06em; color: var(--gray); text-align: right; }
.hero2-side .dash { width: 22px; height: 2px; background: var(--accent); margin-left: auto; }
.hero2-side .quote { color: var(--ink); }
@media (max-width: 980px) { .hero2 { grid-template-columns: 1fr; } .hero2-side { display: none; } .hero2-text { padding-bottom: 8px; } .hero2-photo .photo-hero { aspect-ratio: 1 / 1; } }

/* work: tiles with art, caption row underneath */
.work-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.wt { display: block; }
.wt-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.wt-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wt:hover .wt-art svg, .wt:hover .wt-art .aa { transform: scale(1.06); }
.wt-orange .wt-art { background: var(--accent); }
.wt-dark .wt-art { background: #0d0d0c; display: grid; place-items: center; }
.wt-dark .aa { font-size: clamp(80px, 11vw, 150px); font-weight: 700; letter-spacing: -0.06em; color: #f4f2ec; line-height: 1; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wt-dark .bar { position: absolute; right: 22%; top: 0; bottom: 0; width: 14px; background: var(--accent); transform-origin: top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.wt-dark:hover .bar { transform: scaleY(.55); }
.wt-cap { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding-top: 14px; align-items: start; }
.wt-cap .num { font-family: 'RF Dewi', monospace; font-size: 11px; color: var(--gray); padding-top: 4px; }
.wt-cap h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.wt-cap p { font-size: 13px; color: var(--gray); line-height: 1.5; margin-top: 6px; }
.wt-cap .meta { display: block; margin-top: 10px; font-family: 'RF Dewi', monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--accent); }
.wt-cap .arr { font-size: 20px; transition: transform .3s; }
.wt:hover .arr { transform: translateX(6px); }
@media (max-width: 980px) { .work-tiles { grid-template-columns: 1fr; } }

/* podcast: large title like the boards */
.podcast-title { font-size: clamp(48px, 7vw, 104px) !important; line-height: .92; letter-spacing: -0.045em !important; font-weight: 700; margin-bottom: 20px !important; }
h1.wordmark .accent-underline { width: fit-content; }
@media (max-width: 1099px) { header .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- hero v3: portrait is the main object, bleeding to the edge ---------- */
:root { --paper: #eeede9; }
h1.wordmark .accent-underline::after { display: none !important; }
.hero-photo-section { position: relative; min-height: calc(100vh - 84px); padding: 0 !important; overflow: hidden; }
.hero2 { position: static; display: block; min-height: calc(100vh - 84px); }
.hero2-text { position: relative; z-index: 3; width: 44%; padding: 72px 0 56px; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 84px); }
.hero2-photo { position: absolute; right: 0; bottom: 0; top: 0; width: 62%; z-index: 1; }
.hero2-photo .photo-hero { position: absolute; inset: 0; aspect-ratio: auto; background: none; }
.hero2-photo .photo-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; mix-blend-mode: multiply; }
.hero2-photo .photo-hero-halftone { display: none; }
.hero2-photo canvas { position: absolute; inset: 0; }
.hero2-side { position: absolute; right: 32px; top: 40px; bottom: 56px; z-index: 3; width: 150px; padding: 0; }
@media (max-width: 980px) {
  .hero-photo-section { min-height: 0; }
  .hero2, .hero2-text { min-height: 0; }
  .hero2-text { width: 100%; padding: 40px 0 24px; }
  .hero2-photo { position: relative; width: 100%; height: 420px; }
}

/* ---------- PROPORTIONS measured from the concept boards (as share of page width) ----------
   header 6.9% tall · sidebar column 12.5% · content starts ~15% · hero title ~7% · work tiles 3:2, gap 1.6% · mono ~0.9% */
:root { --rail-w: clamp(150px, 12.5vw, 230px); --head-h: clamp(84px, 6.9vw, 120px); }
.header-inner { padding-block: calc((var(--head-h) - 44px) / 2) !important; }
.mark { font-size: clamp(22px, 2.1vw, 32px); }
.header-tagline { font-size: clamp(10.5px, .78vw, 12.5px) !important; }
nav a, .head-clock, .rail { font-size: clamp(11.5px, .88vw, 14px); }
.hero-photo-section, .hero2, .hero2-text { min-height: calc(100vh - var(--head-h)) !important; }
h1.wordmark { font-size: clamp(44px, 6.6vw, 108px) !important; }
.hero2-lead { font-size: clamp(17px, 1.3vw, 21px); max-width: 24em; }
.hero2-tags, .hero2-side, .eyebrow { font-size: clamp(11px, .85vw, 13.5px); }
.wt-art { aspect-ratio: 3 / 2; }
.work-tiles { gap: 2.6vw 1.6vw; }
.wt-cap h3 { font-size: clamp(16px, 1.25vw, 20px); }
.wt-cap p { font-size: clamp(12.5px, .92vw, 14.5px); }
.podcast-title { font-size: clamp(52px, 7.4vw, 120px) !important; }
section { padding: clamp(72px, 7vw, 120px) 0; }
.section-head { margin-bottom: clamp(36px, 3.6vw, 60px); }

/* ---------- hero v4: the portrait board (g21): face is the hero, name is quiet ---------- */
.hero2-text { width: 30%; }
.hero2-photo { width: 76%; }
h1.wordmark { font-size: clamp(28px, 2.9vw, 46px) !important; line-height: .95 !important; letter-spacing: -0.035em !important; }
h1.wordmark .accent-underline { display: block; }
.hero2-lead { margin-top: 22px; }
.hero2-side { top: 0; bottom: 0; width: 160px; display: flex; flex-direction: column; justify-content: center; gap: 22px; text-align: left; right: 5%; }
.hero2-side > div:first-child { display: none; }
.hero2-side .dash { margin-left: 0; order: -1; }
.hero2-side .quote { font-size: clamp(12px, 1vw, 15px); line-height: 1.7; }
@media (max-width: 980px) { .hero2-text { width: 100%; } .hero2-photo { width: 100%; } .hero2-side { display: none; } }
.hero2-photo .photo-hero { cursor: crosshair; }
@media (max-width: 980px) { .hero2-photo .photo-hero { cursor: default; } }
/* quote aligns with the PORTFOLIO eyebrow */
@media (min-width: 981px) { .hero2-side { justify-content: flex-start; top: calc(50% - 166px); bottom: auto; padding-top: 0; gap: 16px; } }
.hero2-side .dash { display: none; }
.hero2-side .quote { min-height: 6.4em; }
.hero2-side .quote .caret { display: inline-block; margin-left: 2px; color: var(--accent); animation: blink 1s steps(2) infinite; }
@media (min-width: 981px) { .hero2-side { width: 230px; right: 3.5%; } .hero2-side .quote { min-height: 10.5em; } }
@media (min-width: 981px) { .hero2-side .quote { min-height: 0; white-space: pre; font-size: clamp(11px, .85vw, 13.5px); letter-spacing: .06em; line-height: 1.7; } .hero2-side { width: 260px; } }
/* name: much bigger */
h1.wordmark { font-size: clamp(44px, 6vw, 108px) !important; line-height: .9 !important; }
@media (max-width: 980px) { h1.wordmark { font-size: clamp(40px, 12vw, 72px) !important; } }
h1.wordmark { font-size: clamp(44px, 7.4vw, 140px) !important; line-height: .88 !important; }
@media (max-width: 980px) { h1.wordmark { font-size: clamp(40px, 12vw, 72px) !important; } }
/* name: huge, runs over the portrait and inverts against it */
@media (min-width: 981px) {
  .hero2-text { z-index: auto; }
  .hero2-text > * { position: relative; z-index: 3; }
  h1.wordmark { font-size: clamp(60px, 10.5vw, 200px) !important; line-height: .86 !important; color: var(--paper); mix-blend-mode: difference; z-index: 4 !important; white-space: nowrap; }
}
.head-clock, .head-clock b { color: var(--accent); }
.hc-dot { background: var(--accent); }
.hero2-text .eyebrow i { display: none; }

/* dot fields: two rows only, an orange wave runs through them, then back to black */
@keyframes dotwave { 0%,55%,100% { fill: #2e2720; } 20%,35% { fill: #ff3d1a; } }
.wt-dots .dw, .bit .dw { animation: dotwave 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .wt-dots .dw, .bit .dw { animation: none; } }
header nav a.nav-cv, header nav a.nav-cv:hover { color: var(--accent); }

/* appearance: Type and Talks headings rise letter by letter, talk cards are uncovered by a sliding sheet with an orange line drawn on top */
.talk-card { position: relative; overflow: hidden; }
.talk-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.7,0,.2,1) calc(var(--d, 0s) + .35s); z-index: 2; }
.talk-card::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: bottom; transform: scaleY(0); z-index: 1; pointer-events: none; }
.js .talk-card[data-reveal] { opacity: 1; transform: none; transition: none; }
.js .talk-card[data-reveal]::after { transform: scaleY(1); }
.js .talk-card[data-reveal].in::after { transform: scaleY(0); transition: transform .9s cubic-bezier(.7,0,.2,1) var(--d, 0s); }
.js .talk-card[data-reveal].in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .js .talk-card[data-reveal]::after { transform: scaleY(0) !important; } .talk-card::before { transform: none; transition: none; } }
.fdots { display: block; fill: #2e2720; }
.fdots .dw { animation: dotwave 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fdots .dw { animation: none; } }
/* Type disc: dots pop in one by one along the spiral */
.js .bit-type .hd { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.js .bit-type.in .hd { animation: dotin .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes dotin { 0% { opacity: 0; transform: scale(0); fill: #ff3d1a; } 60% { opacity: 1; transform: scale(1.5); fill: #ff3d1a; } 100% { opacity: 1; transform: scale(1); fill: #2e2720; } }
@media (prefers-reduced-motion: reduce) { .js .bit-type .hd { opacity: 1; transform: none; } .js .bit-type.in .hd { animation: none; } }
/* Talks mark: strokes draw themselves one after another, flashing orange, then settle to ink */
.js .bit-talks .hs { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .bit-talks .hr { opacity: 0; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.js .bit-talks.in .hs { animation: strokein .7s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(var(--i) * 220ms); }
.js .bit-talks.in .hr { animation: barin .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 220ms); }
@keyframes strokein { 0% { stroke-dashoffset: 1; stroke: #ff3d1a; } 60% { stroke: #ff3d1a; } 100% { stroke-dashoffset: 0; stroke: #2e2720; } }
@keyframes barin { 0% { opacity: 1; transform: scaleY(0); fill: #ff3d1a; } 60% { fill: #ff3d1a; } 100% { opacity: 1; transform: scaleY(1); fill: #2e2720; } }
@media (prefers-reduced-motion: reduce) { .js .bit-talks .hs { stroke-dashoffset: 0; } .js .bit-talks .hr { opacity: 1; transform: none; } .js .bit-talks.in .hs, .js .bit-talks.in .hr { animation: none; } }

/* Type meter as two rows of dots (as in the reference): they light up one by one with an orange flash, then an orange wave keeps running through them */
.ticks { display: grid; grid-template-columns: repeat(12, 14px); gap: 10px; height: auto; margin-top: 22px; }
.ticks i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--shape); }
.ticks i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.ticks i.hot { background: var(--accent); }
.ticks i:not(.off) { animation: tickpop .6s cubic-bezier(.2,.8,.2,1), tickwave 2.8s ease-in-out 1.2s infinite; animation-delay: 0s, calc(1.2s + var(--k, 0) * 90ms); }
@keyframes tickpop { 0% { transform: scale(.2); background: var(--accent); } 60% { transform: scale(1.4); background: var(--accent); } 100% { transform: scale(1); } }
@keyframes tickwave { 0%, 45%, 100% { background: var(--shape); } 15%, 30% { background: var(--accent); } }
.ticks i.hot { animation: tickpop .6s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 760px) { .ticks { grid-template-columns: repeat(12, 1fr); gap: 6px; } .ticks i { width: auto; aspect-ratio: 1; height: auto; } }
@media (prefers-reduced-motion: reduce) { .ticks i:not(.off) { animation: none; } }

/* portrait canvas: walks in, sits, follows the pointer with his head, stands up and leaves when the page scrolls (control in halftone.js) */
.hero2-photo .photo-hero canvas#portraitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; display: block; }
.hero2-photo .photo-hero img { object-position: 50% 30%; }
.hero2-photo .photo-hero.has-video img { display: none; }
.hero2-photo .photo-hero:not(.has-video) canvas#portraitCanvas { display: none; }
.hero2-photo .photo-hero { background: var(--paper); }
.hero2-photo .photo-hero canvas#portraitCanvas { z-index: 0; }

/* mobile: the portrait stays, below the text, with the same gaze loop (wandering + tap/drag) */
@media (max-width: 980px) {
  .hero-photo-section { overflow: hidden; }
  .hero2-text { min-height: 0 !important; padding: 36px 0 12px; }
  .hero-photo-section, .hero2 { min-height: 0 !important; }
  .hero2-photo { position: relative !important; width: 100% !important; height: min(118vw, 520px) !important; margin-top: 8px; }
  .hero2-photo .photo-hero { touch-action: pan-y; }
}
@media (max-width: 980px) { .hero2-tags { display: none; } .hero2-photo { margin-top: -4px; height: min(112vw, 500px) !important; } }

/* Behance projects: real covers, click opens the project on Behance */
.wt-be .wt-art { background: var(--sand); }
.wt-be .wt-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wt-be:hover .wt-art img { transform: scale(1.05); }
.be-head { display:flex; justify-content:space-between; align-items:baseline; margin: 56px 0 20px; }
.be-head h3 { font-size: 14px; font-family:'RF Dewi',monospace; font-weight:400; color: var(--gray); letter-spacing:.04em; }
.be-head a { font-family:'RF Dewi',monospace; font-size: 11px; letter-spacing:.06em; border-bottom:1px solid var(--accent); }
@media (min-width: 821px) { .podcast-visual { margin-top: 36px; } }
@media (max-width: 820px) { .hud, .slider { display: none !important; } }
