/* Yoav Rubin — layout: Dennis-style editorial page (grey portrait hero, big lists, dark footer)
   with a Henry-style retro workstation you scroll into. Deliberately single-look. */
:root {
  color-scheme: light;
  --ink: #1C1D20; --ink-2: #141517; --paper: #FFFFFF;
  --hero: #999D9E; --hero-2: #8C9091; --mute: #6E7074;
  --line: rgba(28,29,32,.14); --blue: #455CE9; --blue-2: #3247D6;
  --on-dark: #FFFFFF; --on-dark-mute: rgba(255,255,255,.52); --line-dark: rgba(255,255,255,.16);

  --w-teal: #008080; --w-face: #C0C0C0; --w-hi: #FFFFFF; --w-lo: #808080; --w-dk: #0A0A0A; --w-mid: #DFDFDF;
  --w-navy: #000080; --w-navy-2: #1084D0; --w-paper: #FFFFFF; --w-text: #000000;
  --sc-paper: #F8F6F1; --sc-ink: #1F1E1C; --sc-link: #0000EE; --sc-visited: #551A8B;
  --bios: #C9C9C9; --bios-hi: #FFFFFF; --bios-ok: #7CFC8A;
  --casing: #DDD6C6; --casing-2: #C4BCA9; --note: #FFE27A; --note-ink: #3A3320;
  --wood: #4A3A2E; --wood-2: #2C221B;

  --bv-out: inset -1px -1px var(--w-dk), inset 1px 1px var(--w-hi), inset -2px -2px var(--w-lo), inset 2px 2px var(--w-mid);
  --bv-in: inset -1px -1px var(--w-hi), inset 1px 1px var(--w-dk), inset -2px -2px var(--w-mid), inset 2px 2px var(--w-lo);
  --bv-field: inset -1px -1px var(--w-hi), inset 1px 1px var(--w-lo);

  --f-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sys: Tahoma, "Microsoft Sans Serif", "MS Sans Serif", Geneva, Verdana, sans-serif;
  --f-bios: "VT323", "Lucida Console", "Courier New", monospace;
  --f-slab: "Arvo", Rockwell, "Roboto Slab", Georgia, serif;
  --f-slab-body: "Zilla Slab", Rockwell, Georgia, serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-mono: "Courier New", Courier, monospace;
  --gutter: clamp(16px, 6.5vw, 120px);
  --ease: cubic-bezier(.76, 0, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); margin: 0; font-weight: 500; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* loader */
#loader { display: none; }
.js #loader { position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: 200; display: grid; place-items: center; color: var(--on-dark); pointer-events: none; }
#loader svg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 300px); z-index: -1; }
#loader path { fill: var(--ink-2); }
.loader-word { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; display: flex; align-items: center; gap: .9rem; margin: 0; letter-spacing: -.01em; }
.loader-word .dot { width: .28em; height: .28em; border-radius: 50%; background: var(--on-dark); }

/* header */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter) 0; color: var(--on-dark); }
.brand { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.brand .copy { display: inline-block; transition: transform .9s var(--ease); }
.brand:hover .copy { transform: rotate(360deg); }
.brand .b { display: inline-block; overflow: hidden; vertical-align: bottom; transition: max-width .7s var(--ease), opacity .5s; }
.brand .b1 { max-width: 5.2em; }
.brand .b3 { max-width: 0; opacity: 0; }
.brand:hover .b1 { max-width: 0; opacity: 0; }
.brand:hover .b3 { max-width: 4em; opacity: 1; }
.topnav { display: flex; gap: clamp(.4rem, 2vw, 1.6rem); }
.topnav a, .menu-text { position: relative; text-decoration: none; font-size: 1.05rem; padding: .6rem .9rem; display: inline-block; background: none; border: 0; cursor: pointer; }
.topnav a::after, .menu-text::after { content: ""; position: absolute; left: 50%; bottom: -.15rem; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translate(-50%, 0) scale(0); transition: transform .35s var(--ease); }
.topnav a:hover::after, .menu-text:hover::after { transform: translate(-50%, 0) scale(1); }
.menu-text { display: none; }

/* floating menu */
.fab { position: fixed; top: 1.6rem; right: var(--gutter); z-index: 120; width: clamp(64px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; display: grid; place-items: center; overflow: hidden; transform: scale(0); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.fab .burger { position: relative; z-index: 1; width: 34%; height: 14%; display: flex; flex-direction: column; justify-content: space-between; }
.fab .burger i { display: block; height: 1.5px; background: var(--on-dark); transition: transform .4s var(--ease); }
.menu-open .fab .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .fab .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-open .fab { background: var(--blue); }
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu-open .scrim { opacity: 1; visibility: visible; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(520px, 100vw); background: var(--ink); color: var(--on-dark); transform: translateX(calc(100% + 110px)); transition: transform .85s var(--ease); visibility: hidden; }
.menu-open .panel { transform: none; visibility: visible; }
.panel svg { position: absolute; top: 0; left: -99px; width: 100px; height: 100%; }
.panel svg path { fill: var(--ink); }
.panel-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 7rem clamp(1.5rem, 6vw, 5.5rem) 3rem; overflow-y: auto; }
.panel .eyebrow { color: var(--on-dark-mute); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-dark); margin-bottom: 2rem; }
.panel-links { display: flex; flex-direction: column; gap: .6rem; }
.panel-links a { font-size: clamp(2.4rem, 5vw, 3.6rem); text-decoration: none; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 1.2rem; }
.panel-links a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark); transform: scale(0); transition: transform .35s var(--ease); margin-left: -2.2rem; }
.panel-links a:hover::before { transform: scale(1); }
.panel-socials { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.panel-socials a, .panel-socials button { text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1180px; background: var(--hero); color: var(--on-dark); overflow: clip; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-par, .hero-in { position: absolute; inset: 0; }
.portrait { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 88%; width: auto; aspect-ratio: .736; z-index: 1; }
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.hero-loc { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.6rem); background: var(--ink); padding: 1.5rem 1.5rem 1.5rem var(--gutter); border-radius: 0 999px 999px 0; }
.hero-loc p { margin: 0; font-size: 1.12rem; line-height: 1.28; }
.globe { width: clamp(3.6rem, 5.6vw, 5.6rem); aspect-ratio: 1; border-radius: 50%; background: var(--hero); display: grid; place-items: center; }
.globe svg { width: 58%; height: 58%; }
.hero-role { position: absolute; right: var(--gutter); top: 37%; z-index: 3; }
.hero-role svg { width: clamp(1.1rem, 1.6vw, 1.6rem); height: auto; display: block; margin-bottom: clamp(1.6rem, 4vh, 3rem); }
.hero-role h1 { margin: 0; font-size: clamp(1.5rem, 2.45vw, 2.7rem); font-weight: 400; line-height: 1.22; letter-spacing: -.01em; }
.marquee { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 2; white-space: nowrap; pointer-events: none; overflow: hidden; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee span { font-size: clamp(6rem, 15.5vw, 17rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; padding-right: .3em; }

/* intro */
.intro { padding-block: clamp(5rem, 13vw, 13rem) clamp(4rem, 9vw, 9rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro-lead { font-size: clamp(1.55rem, 2.75vw, 3rem); font-weight: 400; line-height: 1.32; letter-spacing: -.012em; margin: 0; text-wrap: pretty; }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.wd > span { display: inline-block; }
.intro-side { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 5rem); padding-top: .6rem; }
.intro-side p { margin: 0; font-size: 1.08rem; line-height: 1.62; max-width: 32ch; }
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(4rem, 8vw, 8rem); padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.traits h3 { margin: .6rem 0 .4rem; font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 400; letter-spacing: -.015em; }
.traits p { margin: 0; color: var(--mute); font-size: 1rem; max-width: 34ch; }

/* buttons */
.round-btn, .pill-btn, .pill { position: relative; overflow: hidden; isolation: isolate; text-decoration: none; cursor: pointer; border: 0; }
.round-btn { width: clamp(9.5rem, 13vw, 12.5rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-dark); font-size: 1.05rem; }
.round-btn.blue { background: var(--blue); }
.fill { position: absolute; z-index: -1; left: -25%; width: 150%; height: 200%; top: 100%; border-radius: 50%; background: var(--fillc, var(--blue)); transition: top .6s var(--ease); pointer-events: none; }
.round-btn.blue .fill { --fillc: var(--blue-2); }
.round-btn:hover .fill, .pill-btn:hover .fill, .pill:hover .fill, .fab:hover .fill { top: -50%; }
.label { position: relative; display: inline-block; }
.pill-btn { display: inline-flex; align-items: center; gap: .3rem; padding: 1.55rem 3.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.05rem; transition: color .4s; }
.pill-btn:hover { color: var(--on-dark); }
.pill-btn sup { font-size: .62em; opacity: .6; }

/* work */
.work { padding-block: 0 clamp(5rem, 10vw, 10rem); }
.work-head { display: flex; justify-content: space-between; padding: 0 clamp(0rem, 4vw, 4.5rem) 2.4rem; }
.work-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.work-list + .work-head { padding-top: clamp(3.5rem, 6vw, 6rem); }
.work-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 4.1vw, 4rem) clamp(0rem, 4vw, 4.5rem); border-top: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.work-row h3 { margin: 0; font-size: clamp(2.4rem, 5.5vw, 6.2rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; transition: transform .45s var(--ease), opacity .45s; }
.work-row p { margin: 0; font-size: 1.05rem; text-align: right; transition: transform .45s var(--ease), opacity .45s; }
.work-row:hover h3 { transform: translateX(-10px); opacity: .45; }
.work-row:hover p { transform: translateX(10px); opacity: .45; }
.work-thumb { display: none; }
.work-more { display: flex; justify-content: center; padding-top: clamp(3.5rem, 6vw, 6rem); }
.pv, .pv-cur { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 60; transform: scale(0); }
.pv { width: clamp(300px, 28vw, 420px); aspect-ratio: 1.15; overflow: hidden; border-radius: 4px; }
.pv-slider { position: absolute; inset: 0; transition: transform .55s var(--ease); }
.pv-item { height: 100%; display: grid; place-items: center; background: var(--bg); }
.pv-item img { width: 80%; height: auto; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.pv-cur { width: 84px; height: 84px; border-radius: 50%; background: var(--blue); color: var(--on-dark); display: grid; place-items: center; font-size: .95rem; z-index: 61; }

/* sliding rows */
.slides { overflow: clip; display: flex; flex-direction: column; gap: clamp(1rem, 3vw, 3rem); padding-block: 1rem clamp(5rem, 10vw, 9rem); }
.slide-row { display: flex; gap: clamp(1rem, 3vw, 3rem); width: max-content; will-change: transform; }
.r1 { margin-left: -6vw; }
.r2 { margin-left: -22vw; }
.tile { margin: 0; width: clamp(240px, 25vw, 470px); aspect-ratio: 1.33; background: var(--bg); display: grid; place-items: center; overflow: hidden; border-radius: 4px; }
.tile img { width: 74%; height: auto; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.tile.sq img { width: 52%; border-radius: 6px; }
.tile.tall img { width: auto; height: 84%; border-radius: 14px; }
.tile.stat { color: var(--on-dark); place-items: center start; padding: clamp(1.4rem, 3vw, 3rem); align-content: center; gap: .8rem; }
.tile.stat.light { color: var(--ink); }
.tile.stat b { display: block; font-size: clamp(3rem, 6.2vw, 7rem); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.tile.stat span { display: block; font-size: clamp(.95rem, 1.1vw, 1.12rem); max-width: 22ch; opacity: .72; line-height: 1.4; }
.curve-wrap { position: relative; height: 10vw; background: var(--ink-2); overflow: hidden; margin-top: -1px; }
.curve { position: absolute; left: 50%; width: 150%; height: 750%; background: var(--paper); border-radius: 50%; transform: translate(-50%, -86.666%); box-shadow: 0 60px 50px rgba(0,0,0,.08); }

/* footer */
.foot { background: var(--ink-2); color: var(--on-dark); padding-block: clamp(6rem, 12vw, 11rem) 2rem; overflow: clip; }
.foot-top { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.avatar { flex: none; width: clamp(4.4rem, 7.5vw, 8rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--hero); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.foot-top h2 { margin: 0; font-size: clamp(2.8rem, 7vw, 8.4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.foot-arrow { margin-left: auto; align-self: flex-end; width: clamp(1.2rem, 1.8vw, 1.8rem); height: auto; }
.foot-line { position: relative; margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line-dark); }
.foot-line .round-btn { position: absolute; right: clamp(0rem, 8vw, 9rem); top: 0; transform: translateY(-50%); }
.foot-pills { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: clamp(3rem, 5vw, 4.2rem); }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: 1.45rem 2.4rem; border-radius: 999px; border: 1px solid var(--line-dark); background: none; color: var(--on-dark); font-size: 1.05rem; transition: border-color .4s; }
.pill:hover { border-color: var(--blue); }
.pill .ico { width: 1.25em; height: 1.25em; vertical-align: -.3em; margin-right: .55em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-top: clamp(6rem, 12vw, 11rem); }
.foot-bottom > div { display: flex; flex-direction: column; gap: .7rem; }
.foot-bottom .eyebrow { color: var(--on-dark-mute); }
.foot-bottom p { margin: 0; font-size: 1rem; }
.foot-meta { display: flex; gap: clamp(2rem, 4vw, 4rem); flex-wrap: wrap; }
.foot-socials { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-socials a { text-decoration: none; position: relative; }
.foot-socials a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.foot-socials a:hover::after { transform: scaleX(1); transform-origin: left; }
.tnum { font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 160%); z-index: 300; background: var(--blue); color: var(--on-dark); padding: .9rem 1.5rem; border-radius: 999px; font-size: .98rem; transition: transform .5s var(--ease); box-shadow: 0 12px 30px rgba(0,0,0,.25); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast { visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .intro-side p { max-width: 40ch; }
  .traits { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .menu-text { display: inline-block; }
  .hero { min-height: 560px; }
  .portrait { height: 70%; }
  .hero-loc { top: auto; bottom: 30%; transform: none; padding: 1rem 1.2rem 1rem var(--gutter); gap: 1.2rem; }
  .hero-loc p { font-size: .95rem; }
  .hero-role { left: var(--gutter); right: auto; top: 15%; }
  .marquee { bottom: 6%; }
  .marquee span { font-size: 28vw; }
  .intro-side { flex-direction: column; align-items: flex-start; }
  .work-head { padding-inline: 0; }
  .work-row { flex-direction: column; align-items: flex-start; gap: .9rem; padding-inline: 0; }
  .work-row p { text-align: left; }
  .work-row:hover h3, .work-row:hover p { transform: none; opacity: 1; }
  .work-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1.6; background: var(--bg); border-radius: 4px; margin-bottom: .4rem; }
  .work-thumb img { width: 82%; height: auto; }
  .tile { width: 64vw; }
  .foot-arrow { display: none; }
  .foot-socials a, .topnav a, .brand { padding-block: .6rem; }
  .foot-socials { gap: 1.2rem 1.6rem; }
  .foot { padding-bottom: 5.5rem; }
  .foot-pills { padding-top: 5.4rem; }
  .foot-line .round-btn { right: 0; width: 8.6rem; }
  .pill { padding: 1.1rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
