/* ============================================================
   SHIR LAVY - portfolio
   Design system: warm paper canvas, ink type, one hot accent.
   Editorial project layout inspired by the giant-title / small-body
   / full-width-media / centered-credits structure.
   ============================================================ */

:root {
  --paper: #f1eee6;
  --paper-2: #e9e5da;
  --ink: #141310;
  --ink-70: rgba(20, 19, 16, 0.7);
  --ink-45: rgba(20, 19, 16, 0.45);
  --accent: #ff4a1c;
  --line: rgba(20, 19, 16, 0.14);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

/* Grain / paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.spacer-lg { height: clamp(80px, 14vh, 180px); }
.spacer-md { height: clamp(48px, 8vh, 96px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 0.5ch;
}
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   HOME - HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(24px, 5vh, 60px);
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(52px, 15vw, 240px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; will-change: transform; }
.hero-sub {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(24px, 4vh, 48px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-sub p { max-width: 40ch; color: var(--ink-70); font-size: 15px; }
.hero-sub .role {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--ink-45);
}

/* marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.marquee__inner { display: inline-flex; gap: 48px; will-change: transform; }
.marquee__inner span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.marquee__inner span em { color: var(--accent); font-style: normal; }

/* ============================================================
   HOME - PROJECT INDEX (hover-follow preview)
   ============================================================ */
.work { position: relative; }
.work-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.work-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.08em; color: var(--ink-45);
}
.work-head .count { font-family: var(--font-display); font-size: 13px; color: var(--ink-45); }

.project-list { list-style: none; }
.project-row { border-bottom: 1px solid var(--line); }
.project-row a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 3vh, 34px) 0;
  position: relative;
}
.project-row .idx {
  font-family: var(--font-display); font-size: 13px; color: var(--ink-45);
}
.project-row .name {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(26px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
  transform-origin: left;
}
.project-row .tags {
  font-family: var(--font-display);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-45); text-align: right;
  transition: color 0.4s var(--ease);
}
.project-row a:hover .name { transform: translateX(28px); color: var(--accent); }
.project-row a:hover .tags { color: var(--ink); }
.project-row .arrow {
  position: absolute; left: 60px; opacity: 0;
  transform: translateX(-10px);
  transition: all 0.5s var(--ease); color: var(--accent);
  font-family: var(--font-display); font-size: clamp(26px, 5vw, 60px);
}
.project-row a:hover .arrow { opacity: 1; transform: translateX(0); }

/* floating cursor preview */
.hover-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 200px;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.hover-preview.is-visible { opacity: 1; }
.hover-preview .media {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
}

/* ============================================================
   HOME - VIDEO GRID (simple, Maayan-style)
   ============================================================ */
.work-hero {
  min-height: 43svh;
  padding-top: clamp(112px, 14vh, 145px);
  padding-bottom: clamp(24px, 4vh, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.offer-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.64fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  margin-block: clamp(34px, 5vh, 60px);
}
.offer-kicker {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-45);
}
.offer-list { border-top: 1px solid var(--line); }
.offer-item {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(29px, 4.15vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink-45);
  transition: color 0.45s var(--ease), padding-left 0.55s var(--ease);
}
.offer-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.45s var(--ease);
}
.offer-item sup {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-45);
}
.offer-item:is(:hover, :focus-visible, .is-active) {
  color: var(--ink);
  padding-left: 20px;
}
.offer-item:is(:hover, :focus-visible, .is-active)::before { width: 7px; }
.offer-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
  transform: rotate(1.5deg);
  transition: transform 0.7s var(--ease);
}
.offer-stage:has(.offer-item:nth-child(even):hover) .offer-visual { transform: rotate(-1.5deg); }
.offer-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.45s ease, transform 0.8s var(--ease);
}
.offer-media.is-active { opacity: 1; transform: scale(1); }
.offer-visual-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 20px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-offer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-block: clamp(54px, 8vh, 88px);
  overflow: hidden;
}
.ticker-intro {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto 8px;
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-45);
}
.offer-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 13px;
}
.offer-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: offerTicker 40s linear infinite;
}
.offer-ticker-reverse .offer-ticker-track {
  animation-direction: reverse;
  animation-duration: 29s;
}
.offer-ticker span {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.offer-ticker i {
  margin-inline: clamp(20px, 2.6vw, 38px);
  color: var(--accent);
  font-size: clamp(10px, 1.2vw, 17px);
  font-style: normal;
}
.ticker-window {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr;
  gap: clamp(8px, 1vw, 14px);
  width: min(66vw, 790px);
  height: clamp(88px, 14vh, 145px);
  margin: clamp(10px, 1.5vh, 16px) auto;
}
.ticker-window video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.ticker-window video:nth-child(2) { transform: translateY(5px); }
@keyframes offerTicker {
  to { transform: translateX(-50%); }
}
.work-hero-meta,
.work-grid-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-45);
}
.work-hero-title {
  margin: 7px 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.24em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.35vw, 34px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: none;
}
.work-hero-message { margin-block: clamp(26px, 4vh, 44px); }
.work-hello {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.35vw, 62px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.work-hero-title .hero-prefix {
  flex: 0 0 auto;
  display: inline-block;
}
.work-hero-title .hero-line {
  display: inline-block;
  overflow: hidden;
  padding: 0.1em 0 0.14em;
  vertical-align: bottom;
}
.work-hero-title .hero-line > span {
  display: block;
  will-change: transform, opacity;
}
.work-hero-title .service-line {
  position: relative;
  display: inline-grid;
  color: var(--accent);
  min-width: 10.8em;
  min-height: 1.08em;
  padding: 0 0 0.16em;
}
.work-hero-title [data-service] {
  position: static;
  grid-area: 1 / 1;
  align-self: baseline;
  white-space: nowrap;
  transform: translateY(0);
}
.work-hero-note {
  align-self: flex-end;
  max-width: 30ch;
  color: var(--ink-70);
  font-size: 15px;
}
.work-grid-heading {
  padding-top: 24px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
}

.intro-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  padding-top: clamp(120px, 20vh, 220px);
  padding-bottom: clamp(28px, 5vh, 56px);
}
.intro-row .name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.02em;
}
.intro-row .name .dot { color: var(--accent); }
.intro-row .tagline { max-width: 34ch; color: var(--ink-70); font-size: 15px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 26px);
  padding-bottom: clamp(40px, 8vh, 100px);
}
.tile a { display: block; }
.tile .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}
.tile .thumb .ph {
  position: absolute; inset: 0;
  background-size: 200% 200%;
  animation: drift 16s var(--ease) infinite alternate;
  transition: transform 0.8s var(--ease);
}
.tile .thumb img,
.tile .thumb video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile a:hover .thumb .ph,
.tile a:hover .thumb img,
.tile a:hover .thumb video { transform: scale(1.06); }
.tile .thumb::after {
  content: "View →";
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-display); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: all 0.5s var(--ease);
}
.tile a:hover .thumb::after { opacity: 1; transform: translateY(0); }
.tile .cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px;
}
.tile .cap .nm {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(15px, 1.4vw, 19px); letter-spacing: 0.01em;
  transition: color 0.4s var(--ease);
}
.tile a:hover .cap .nm { color: var(--accent); }
.tile .cap .tg {
  font-family: var(--font-display); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-45); text-align: right; white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-block: clamp(60px, 12vh, 140px) 40px;
  border-top: 1px solid var(--line);
}
.footer-cta {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 10vw, 150px);
}
.footer-cta a { display: inline-flex; align-items: center; gap: 0.2ch; }
.footer-cta a:hover { color: var(--accent); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 60px; color: var(--ink-45); font-size: 13px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-meta a:hover { color: var(--accent); }

/* ============================================================
   PROJECT PAGE  (the Maayan-style structure)
   ============================================================ */
.project-hero { padding-top: clamp(120px, 18vh, 220px); text-align: center; }
.project-hero .eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px; color: var(--accent); margin-bottom: 24px;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 7vw, 96px);
}

/* Electric Forest / Alta.ai-inspired compact opening */
.project-hero--compact {
  padding-top: clamp(120px, 15vh, 180px);
  text-align: left;
}
.project-opening {
  max-width: var(--maxw);
  margin-inline: auto;
}
.project-opening .project-title {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  text-transform: none;
  margin-bottom: clamp(38px, 5vh, 64px);
}
.project-opening .project-title span,
.project-opening .project-title small {
  display: block;
}
.project-opening .project-title.temu-title small { transform: translateX(-1px); }
.project-opening .project-title small {
  margin-top: 12px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}
.project-opening-copy h2,
.process-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.project-opening-copy p,
.process-copy p {
  max-width: 78ch;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.55;
}
.project-hero--compact + .media-block {
  margin-top: clamp(38px, 5vh, 64px);
}
.process-copy {
  width: min(var(--maxw), calc(100% - 48px));
  margin: clamp(56px, 8vh, 100px) auto clamp(34px, 5vh, 64px);
  text-align: left;
}
.poster-reference {
  width: min(var(--maxw), calc(100% - 48px));
  margin: clamp(36px, 5vh, 64px) auto clamp(56px, 8vh, 100px);
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.poster-reference img {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  display: block;
}
.poster-reference .reference-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-45);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.poster-reference p { font-size: 15px; }
.poster-reference a { border-bottom: 1px solid var(--line); }
.poster-reference a:hover { color: var(--accent); border-color: var(--accent); }
.project-intro {
  max-width: 42ch;
  margin: clamp(20px, 3vh, 36px) auto 0;
  color: var(--ink-70);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}
.project-facts {
  max-width: 760px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
}
.project-facts .fact { text-align: left; }
.project-facts .fact .k {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink-45); margin-bottom: 6px;
}
.project-facts .fact .v { font-size: 14px; }

/* media block (custom video player chrome) */
.media-block { margin-inline: auto; margin-block: clamp(48px, 8vh, 120px); }
.media-block.full { max-width: var(--maxw); }
.media-block.inset { max-width: 1000px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  border-radius: 4px;
}
.player video, .player .placeholder { width: 100%; height: 100%; object-fit: cover; }
/* animated placeholder standing in for the real video */
.player .placeholder {
  background:
    radial-gradient(120% 120% at 20% 20%, #ff5a2c 0%, transparent 55%),
    radial-gradient(120% 120% at 80% 30%, #ffd23f 0%, transparent 50%),
    radial-gradient(120% 120% at 60% 90%, #3a2fff 0%, transparent 55%),
    #1b1a17;
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: drift 14s var(--ease) infinite alternate;
  display: grid; place-items: center;
}
.player .placeholder .ph-label {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 12px; color: rgba(255,255,255,0.7);
}
@keyframes drift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 100% 100%, 0% 100%, 40% 0%, 0 0; }
}
/* controls */
.player .controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.player:hover .controls { opacity: 1; transform: translateY(0); }
.player.main .controls { opacity: 1; transform: translateY(0); }
.player .play-btn {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 12px; background: none; border: none;
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.player .play-btn .glyph {
  width: 0; height: 0; border-style: solid;
  border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff;
}
.player.is-playing .play-btn .glyph {
  border-width: 0; width: 8px; height: 10px;
  border-left: 3px solid #fff; border-right: 3px solid #fff; background: transparent;
}
.player .seek {
  flex: 1; height: 14px; position: relative; cursor: pointer; touch-action: none;
  background: linear-gradient(to bottom, transparent 5.5px, rgba(255,255,255,0.25) 5.5px, rgba(255,255,255,0.25) 8.5px, transparent 8.5px);
}
.player .seek .bar { position: absolute; inset: 5.5px auto auto 0; width: 0; height: 3px; background: var(--accent); }
.player .seek-range {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; touch-action: none;
}
.player .seek:focus-within { outline: none; }
.player .seek-range:focus { outline: none; }
.player.is-preparing-seek .seek { opacity: 0.65; }
.player .time { font-family: var(--font-display); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Maayan-style lead block: centered title, left subtitle + intro */
.project-lead {
  max-width: 820px;
  margin: clamp(28px, 5vh, 56px) auto 0;
  text-align: left;
}
.project-subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.project-lead p { color: var(--ink-70); font-size: 16px; line-height: 1.6; }

/* short centered process caption (like Maayan's process notes) */
.process-note {
  max-width: 600px;
  margin: clamp(44px, 7vh, 100px) auto;
  text-align: center;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
}

/* plain autoplay-loop hero video + gallery images */
.media-block video.loop { width: 100%; height: auto; display: block; border-radius: 4px; }
.media-block > img { width: 100%; height: auto; display: block; border-radius: 4px; }
.media-duo > img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* text section */
.text-block {
  max-width: 640px;
  margin: clamp(48px, 8vh, 120px) auto;
}
.text-block.wide { max-width: 820px; }
.text-block .lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2; font-weight: 500; letter-spacing: -0.01em;
}
.text-block .lead em { color: var(--accent); font-style: normal; }
.text-block p + p { margin-top: 20px; }
.text-block .body { color: var(--ink-70); font-size: 16px; line-height: 1.6; }
.section-num {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: 18px;
  display: inline-block;
}

/* two-up media */
.media-duo {
  max-width: var(--maxw); margin: clamp(48px,8vh,120px) auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* Oobit uses a tighter, more compact gallery rhythm. */
.media-duo.oobit-process-duo {
  max-width: 900px;
  margin-block: clamp(40px, 6vh, 72px);
}
.media-duo.slinky-gif-duo {
  max-width: var(--maxw);
  margin-block: clamp(40px, 6vh, 72px);
}
.media-duo.silk-gif-duo--new {
  margin-top: clamp(-74px, -5vh, -30px);
}
.media-block.slinky-gif-single {
  width: min(900px, calc(100% - 48px));
  margin-block: clamp(48px, 7vh, 88px);
  margin-inline: auto;
}
.media-block.slinky-gif-left {
  margin-inline: auto;
}
.media-block.slinky-gif-right {
  margin-inline: auto;
}
.media-block.slinky-gif-wide {
  max-width: 640px;
  margin-block: clamp(40px, 6vh, 76px);
}
.oobit-process-duo video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.oobit-stills {
  max-width: 1100px;
  margin: clamp(40px, 6vh, 72px) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.oobit-stills img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.silk-film {
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}
.silk-film img {
  width: 100%;
  height: auto;
  display: block;
}
.silk-carousel {
  position: relative;
  max-width: var(--maxw);
  margin: clamp(48px, 8vh, 120px) auto clamp(64px, 9vh, 110px);
}
.silk-carousel-viewport { overflow: hidden; border-radius: 4px; }
.silk-carousel-track {
  display: flex;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.silk-carousel-slide { flex: 0 0 100%; min-width: 0; }
.silk-carousel-slide .player { border-radius: 0; }
.silk-carousel-arrow {
  position: absolute;
  z-index: 4;
  top: calc(50% - 22px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(20,19,16,0.14);
  font-family: var(--font-display);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.silk-carousel-arrow:hover { color: var(--accent); transform: scale(1.06); }
.silk-carousel-arrow:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.86);
}
.silk-carousel-prev { left: -24px; }
.silk-carousel-next { right: -24px; }
.silk-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}
.silk-carousel-count {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}
.silk-carousel-dots { display: flex; align-items: center; gap: 8px; }
.silk-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink-45);
  cursor: pointer;
  transition: width 0.4s var(--ease), border-radius 0.4s var(--ease), background 0.4s var(--ease);
}
.silk-carousel-dots button.is-active { width: 24px; border-radius: 6px; background: var(--accent); }
.temu-bts-grid {
  width: min(var(--maxw), calc(100% - 48px));
  margin: clamp(40px, 6vh, 72px) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.temu-stills-grid {
  max-width: var(--maxw);
  margin: clamp(48px, 8vh, 120px) auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.temu-stills-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.temu-bts-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-page {
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(72px, 10vh, 140px);
}
.about-title {
  max-width: 1000px;
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 150px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.about-title .dot { color: var(--accent); }
.about-layout {
  margin-top: clamp(72px, 12vh, 150px);
  padding-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(48px, 10vw, 150px);
}
.about-intro {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.about-profile img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 4px;
}
.about-profile .about-intro {
  max-width: 440px;
  margin-top: 28px;
}
.about-body {
  max-width: 660px;
  color: var(--ink-70);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}
.about-body p + p { margin-top: 24px; }
.about-contact {
  margin-top: clamp(92px, 15vh, 190px);
  padding-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
}
.about-contact-lead {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.about-links {
  margin-top: clamp(40px, 7vh, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-links a {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.about-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-links .icon-fill {
  fill: currentColor;
  stroke: none;
}
.about-links a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* credits */
.credits {
  max-width: 640px; margin: clamp(60px,10vh,160px) auto clamp(40px,6vh,80px);
  text-align: center;
}
.credits h3 {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 13px; color: var(--accent); margin-bottom: 28px;
}
.credits dl { display: grid; gap: 12px; }
.credits .row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.credits .row dt { color: var(--ink-45); }
.credits .row dd a { border-bottom: 1px solid var(--line); }
.credits .row dd a:hover { color: var(--accent); border-color: var(--accent); }

/* project navigator */
.project-nav {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 7vh, 90px);
  text-align: center;
}
.project-nav .label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; color: var(--ink-45); margin-bottom: 20px;
}
.project-nav .next {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 8vw, 110px); line-height: 0.9; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.2ch;
}
.project-nav .next:hover { color: var(--accent); }

/* ============================================================
   MOTION - reveal states
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.d1.in { transition-delay: 0.08s; }
.reveal.d2.in { transition-delay: 0.16s; }
.reveal.d3.in { transition-delay: 0.24s; }

/* page transition overlay */
.page-wipe {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
}
.page-wipe.enter { transform: scaleY(1); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.page-wipe.leave { transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease); }

/* back link on project page */
.back-link {
  position: fixed; left: var(--gutter); bottom: 24px; z-index: 90;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; mix-blend-mode: difference; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.back-link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .project-row a { grid-template-columns: 32px 1fr; }
  .project-row .tags { display: none; }
  .project-facts { grid-template-columns: 1fr; }
  .media-duo { grid-template-columns: 1fr; }
  .silk-carousel { width: calc(100% - 40px); margin-inline: auto; }
  .silk-carousel-arrow { width: 40px; height: 40px; top: calc(50% - 20px); }
  .silk-carousel-prev { left: 10px; }
  .silk-carousel-next { right: 10px; }
  .oobit-stills { grid-template-columns: 1fr; }
  .temu-bts-grid { grid-template-columns: 1fr; }
  .temu-stills-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .work-hero { min-height: 36svh; padding-bottom: 24px; }
  .offer-stage { grid-template-columns: 1fr; gap: 20px; margin-block: 36px 28px; }
  .offer-item { font-size: clamp(25px, 8.2vw, 38px); }
  .offer-visual { order: -1; width: 64%; justify-self: end; aspect-ratio: 4 / 3; }
  .ticker-offer { margin-block: 46px 34px; }
  .offer-ticker span { font-size: clamp(29px, 8vw, 42px); }
  .ticker-window { width: 82vw; height: 92px; }
  .work-hero-title { font-size: clamp(17px, 4.8vw, 24px); gap: 0.2em; }
  .work-hello { font-size: clamp(30px, 8.8vw, 42px); }
  .work-hero-title .service-line { min-width: 10.5em; }
  .work-hero-note { align-self: flex-start; }
  .hover-preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
