/* ————————————————————————————————————————————————
   MICHAEL ERDOĞDU — Photographer & Videographer
   Design system: warm near-black, editorial serif × grotesque,
   film grain, lego grid. Built by Crea Design Studio.
   ———————————————————————————————————————————————— */

:root {
  --bg: #0e0d0b;
  --bg-2: #141310;
  --ink: #e9e5dc;
  --ink-dim: #a39d90;
  --muted: #6f6a5f;
  --accent: #c9a36a;
  --rec: #ff3b30;
  --line: rgba(233, 229, 220, 0.14);
  --line-soft: rgba(233, 229, 220, 0.07);

  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans); /* single-family discipline, à la Europa Grotesk */

  --pad: clamp(20px, 4vw, 64px);
  --gap: clamp(8px, 0.8vw, 12px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.9s ease, color 0.9s ease;
}

/* light room — the gallery flips for the about section (à la 2horloges /infos) */
body.theme-light {
  --bg: #e7e2d8;
  --bg-2: #ddd7cb;
  --ink: #171511;
  --ink-dim: #565046;
  --muted: #8a8375;
  --line: rgba(23, 21, 17, 0.18);
  --line-soft: rgba(23, 21, 17, 0.09);
}

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

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ————— utilities ————— */

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* weight does the talking: 600 = the work, 200 = the whisper */
.serif { font-weight: 600; letter-spacing: -0.01em; }
.it { font-weight: 200; font-style: normal; letter-spacing: 0; }

.line-mask { display: block; overflow: hidden; }
.line-mask > .line-inner { display: block; transform: translateY(110%); }

/* ————— grain ————— */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.07;
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-32px, 18px); }
  50% { transform: translate(22px, -28px); }
  75% { transform: translate(-14px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ————— preloader ————— */

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__mark {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: loader-in 1.1s var(--ease-out) both;
}

.loader__mark .it { color: var(--accent); font-weight: 200; }

.loader__label {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) * 0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: loader-in 1.1s var(--ease-out) 0.25s both;
}

.loader__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s var(--ease-out) infinite;
}

@keyframes loader-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader__count {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) * 0.75);
  font-weight: 200;
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  animation: loader-in 1.1s var(--ease-out) 0.15s both;
}

.loader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
}

/* ————— header ————— */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 28px) var(--pad);
  mix-blend-mode: difference;
  color: #fff; /* difference blend inverts against whatever scrolls beneath */
  transition: transform 0.6s var(--ease-out);
}

.header.is-hidden { transform: translateY(-110%); }

.header__logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-toggle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  transition: background 0.35s ease, color 0.35s ease;
}

.lang-toggle:hover { background: #fff; color: #000; }

.header__logo sup { font-size: 10px; letter-spacing: 0.1em; margin-left: 6px; color: var(--ink-dim); }

.header__nav { display: flex; gap: clamp(18px, 3vw, 40px); }

.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* clickable text goes REC-red under the viewfinder */
.nav-link:hover,
.filter:hover,
a.label:hover,
.to-top:hover,
.lang-toggle:hover {
  color: var(--rec) !important;
}

.lang-toggle:hover { background: transparent; border-color: var(--rec); }

/* ————— hero ————— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(28px, 4vh, 56px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.08);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 13, 11, 0.92) 0%, rgba(14, 13, 11, 0.35) 38%, rgba(14, 13, 11, 0.25) 100%);
}

.hero__topline {
  position: absolute;
  top: clamp(76px, 12vh, 120px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(56px, 12.5vw, 205px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero__title .row { display: flex; align-items: baseline; gap: 0.18em; }
.hero__title .it { font-weight: 200; letter-spacing: -0.02em; }
.hero__title .thin { color: var(--accent); font-weight: 600; }

.hero__meta {
  margin-top: clamp(20px, 3vh, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__meta .label { color: var(--ink-dim); }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* hero video switcher rail */
.hero__rail {
  position: absolute;
  right: var(--pad);
  bottom: clamp(120px, 22vh, 220px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__rail button {
  width: clamp(64px, 6vw, 96px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(233, 229, 220, 0.25);
  overflow: hidden;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}

.hero__rail button img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__rail button:hover { opacity: 0.85; transform: translateX(-3px); }

.hero__rail button.is-active {
  opacity: 1;
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .hero__rail {
    position: static;
    align-self: flex-end;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero__rail button { width: 52px; }
}

.hero__scroll .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.6); }
}

/* ————— marquee ————— */

.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(14px, 1.6vw, 22px) 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 0;
  will-change: transform;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__chunk {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(22px, 3vw, 44px);
  padding-right: clamp(22px, 3vw, 44px);
  font-size: clamp(18px, 2.4vw, 32px);
}

.marquee__chunk .word { font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; }
.marquee__chunk .word.it { color: var(--ink-dim); font-weight: 200; text-transform: lowercase; }
.marquee__chunk .star { color: var(--accent); font-size: 0.7em; }

/* ————— statement ————— */

.statement {
  padding: clamp(90px, 16vh, 200px) var(--pad);
  max-width: 1100px;
}

.statement p {
  font-weight: 200;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.statement .it, .statement .acc { color: var(--accent); font-weight: 550; }

.statement .label { display: block; margin-bottom: 28px; }

/* ————— section head ————— */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  margin-bottom: clamp(24px, 4vh, 48px);
}

.section-head h2 {
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-head h2 .it { font-weight: 200; }

.section-head .count {
  font-weight: 200;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: 0;
}

/* ————— category filter (red-dot style) ————— */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 0 var(--pad);
  margin-bottom: clamp(20px, 3vh, 36px);
}

.filter {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  padding: 4px 0 4px 14px;
  transition: color 0.35s ease;
}

.filter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.35s ease, scale 0.35s var(--ease-out);
}

.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::before { opacity: 1; scale: 1; }

/* ————— fixed HUD (difference-blend corners) ————— */

.hud {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: 18px;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}

body.is-loaded .hud { opacity: 0.75; }

@media (max-width: 760px) { .hud { display: none; } }

/* ————— works grid (lego) ————— */

.works { padding: clamp(40px, 8vh, 110px) 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: calc((100vw - 2 * var(--pad) - 11 * var(--gap)) / 12);
  grid-auto-flow: dense;
  gap: var(--gap);
  padding: 0 var(--pad);
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}

/* lego span presets — aspect emerges from col×row spans */
.tile--land   { grid-column: span 8; grid-row: span 5; }  /* ~16:10 */
.tile--wide   { grid-column: span 6; grid-row: span 4; }  /* 3:2 */
.tile--port   { grid-column: span 4; grid-row: span 6; }  /* 2:3 */
.tile--tall   { grid-column: span 4; grid-row: span 7; }  /* ~9:16 */
.tile--reel   { grid-column: span 4; grid-row: span 8; }  /* extra tall reel */
.tile--sq     { grid-column: span 4; grid-row: span 4; }
.tile--half   { grid-column: span 6; grid-row: span 7; }
.tile--banner { grid-column: span 12; grid-row: span 6; }

.tile__media { position: absolute; inset: 0; }

.tile__media img,
.tile__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 1s var(--ease-out), opacity 0.5s ease;
  filter: saturate(0.9);
}

.tile__media video { position: absolute; inset: 0; opacity: 0; }

.tile.is-playing .tile__media video { opacity: 1; }
.tile.is-playing .tile__media img { opacity: 0; }

.tile:hover .tile__media img,
.tile:hover .tile__media video { transform: scale(1.045); filter: saturate(1); }

.tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.75), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tile:hover .tile__shade { opacity: 1; }

.tile__meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.55s ease;
}

.tile:hover .tile__meta { transform: translateY(0); opacity: 1; }

.tile__title {
  font-weight: 600;
  font-size: clamp(13px, 1.15vw, 17px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tile__tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.tile__num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(233, 229, 220, 0.75);
  mix-blend-mode: difference;
}

.tile__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid rgba(233, 229, 220, 0.35);
  border-radius: 100px;
  color: var(--ink);
  background: rgba(14, 13, 11, 0.35);
  backdrop-filter: blur(6px);
}

/* ————— stills strip (horizontal scroll) ————— */

.stills { padding: clamp(60px, 12vh, 160px) 0 0; }

.stills__pin { overflow: hidden; }

.stills__track {
  display: flex;
  gap: var(--gap);
  padding: 0 var(--pad);
  width: max-content;
  align-items: center;
}

.still {
  position: relative;
  height: clamp(320px, 62vh, 640px);
  aspect-ratio: 2 / 3;
  flex: none;
  overflow: hidden;
  background: var(--bg-2);
}

.still--land { aspect-ratio: 3 / 2; }

.still img { height: 100%; width: 100%; object-fit: cover; filter: saturate(0.9); }

.still figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 229, 220, 0.8);
  mix-blend-mode: difference;
}

.stills__note {
  padding: 18px var(--pad) 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ————— about ————— */

.about {
  padding: clamp(100px, 18vh, 220px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about > div:first-child {
  position: sticky;
  top: 12vh;
}

.about__media { overflow: hidden; }

.about__media img { width: 100%; height: auto; filter: saturate(0.85); }

.about__body h2 {
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 18px 0 clamp(24px, 4vh, 44px);
}

.about__body h2 .it { color: var(--accent); font-weight: 200; }

.about__caption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.about__text {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  max-width: 56ch;
}

.about__text + .about__text { margin-top: 1em; }

.services { margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--line); }

.service {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.service__name { font-weight: 300; font-size: clamp(19px, 2vw, 30px); letter-spacing: -0.01em; }

.service__idx { font-weight: 200; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }

.clients { margin-top: clamp(36px, 6vh, 64px); }

.clients__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 16px;
  color: var(--ink-dim);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 21px);
}

.clients__row span { white-space: nowrap; }
.clients__row .sep { color: var(--accent); }

/* ————— contact ————— */

.contact {
  position: relative;
  padding: clamp(110px, 20vh, 260px) var(--pad) clamp(30px, 5vh, 60px);
  border-top: 1px solid var(--line-soft);
  overflow: clip;
}

.contact__big {
  font-weight: 200;
  font-size: clamp(40px, 8.4vw, 140px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 12em;
}

.contact__big .it { color: var(--accent); font-weight: 600; text-transform: uppercase; }

.contact__cta {
  margin-top: clamp(32px, 6vh, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s;
}

.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn .arrow { transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.footer {
  margin-top: clamp(80px, 14vh, 180px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.footer a:hover { color: var(--ink); }
.footer .label { font-size: 10px; }

.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top:hover .arrow { transform: translateY(-3px); }
.to-top .arrow { transition: transform 0.4s var(--ease-out); display: inline-block; }

/* ————— lightbox ————— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__stage { max-width: min(1200px, 100%); max-height: 100%; position: relative; }

.lightbox__stage video,
.lightbox__stage img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.lightbox__cap {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.lightbox__title { font-weight: 600; font-size: clamp(14px, 1.5vw, 20px); letter-spacing: 0.01em; }

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(14, 13, 11, 0.5);
}

.lightbox__close:hover { background: var(--ink); color: var(--bg); }

/* ————— viewfinder cursor ————— */

@media (pointer: fine) {
  html, body, a, button, .tile, .filter, .pf__item, video, img { cursor: none !important; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  pointer-events: none;
  width: 58px; height: 58px;
  color: #fff;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor__vf {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.cursor__dot { fill: var(--accent); mix-blend-mode: normal; }

.cursor__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  translate: -50% 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* arming: full revolution + a quarter more, then hold */
.cursor.is-armed .cursor__vf { animation: vf-arm 0.7s var(--ease-expo) forwards; }
.cursor.is-link .cursor__vf { transform: scale(0.72); }
.cursor.is-media .cursor__vf { transform: scale(1.3); }
.cursor.is-media .cursor__label { opacity: 1; color: var(--rec); }

@keyframes vf-arm {
  from { rotate: 0deg; }
  to { rotate: 450deg; }
}

/* blinking REC dot, top-right inside the frame */
.cursor__rec {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  mix-blend-mode: normal;
  opacity: 0;
}

.cursor.is-link .cursor__rec,
.cursor.is-media .cursor__rec {
  animation: rec-blink 1s steps(1) infinite;
}

@keyframes rec-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .invert-orb { display: none; }
  /* cheaper grain on touch devices — static, GPU-light */
  .grain { animation: none; opacity: 0.05; }
}

/* ————— full portfolio accordion ————— */

.pf { position: relative; }

.pf__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 5vh, 52px) var(--pad);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  transition: background 0.5s ease;
}

.pf__toggle:hover { background: rgba(233, 229, 220, 0.04); }

.pf__toggle-label {
  font-weight: 600;
  font-size: clamp(26px, 4.6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pf__toggle-label .it { font-weight: 200; }

.pf__arrow {
  flex: none;
  width: clamp(52px, 6vw, 84px);
  height: clamp(52px, 6vw, 84px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease-out), background 0.45s ease, color 0.45s ease;
}

.pf__arrow svg { width: 45%; height: 45%; }

.pf__toggle:hover .pf__arrow { background: var(--ink); color: var(--bg); }
.pf__toggle.is-open .pf__arrow { transform: rotate(180deg); }

.pf__body { display: none; overflow: hidden; }

.pf__filters {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: clamp(20px, 3vh, 32px) var(--pad) 8px;
}

.pf__hint { margin-left: auto; font-size: 10px; }

.pf__list { padding: 6px 0 clamp(40px, 7vh, 80px); }

.pf__item {
  width: 100%;
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) auto 2em;
  align-items: baseline;
  gap: 14px;
  padding: clamp(12px, 1.8vh, 20px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  transition: background 0.4s ease;
}

.pf__item:first-child { border-top: 1px solid var(--line-soft); }
.pf__item:hover { background: rgba(233, 229, 220, 0.03); }

.pf__idx {
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pf__name {
  display: inline-block;
  font-weight: 300;
  font-size: clamp(20px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transform-origin: left center;
  transition: color 0.25s ease;
  will-change: transform;
}

.pf__item:hover .pf__name { color: var(--rec); }
.pf__item.is-active .pf__name { font-weight: 600; color: var(--accent); }

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .pf__item:hover .pf__name { transform: scale(1.04); }
}

.pf__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.pf__type { color: var(--muted); font-size: 12px; text-align: right; }
.pf__item.is-active .pf__type { color: var(--accent); }

/* ————— right-side media drawer ————— */

.pf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(560px, 94vw);
  z-index: 230;
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.7s var(--ease-expo);
}

.pf-drawer.is-open { transform: translateX(0); }

.pf-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vh, 30px) 22px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.pf-drawer__title {
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.01em;
}

.pf-drawer__tag { margin-top: 6px; }

.pf-drawer__close {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: background 0.35s ease, color 0.35s ease;
}

.pf-drawer__close:hover { background: var(--ink); color: var(--bg); }

.pf-drawer__strip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior: contain;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.pf-drawer__cell {
  position: relative;
  flex: none;
  height: min(72vh, 640px);
  max-width: 88%;
  background: var(--bg-2);
}

.pf-drawer__cell video,
.pf-drawer__cell img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

.pf-drawer__cell::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: rgba(233, 229, 220, 0.9);
  background: rgba(10, 9, 8, 0.25);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.pf-drawer__cell:has(img)::after,
.pf-drawer__cell.is-playing::after { opacity: 0; }

.pf-drawer__expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 1px solid rgba(233, 229, 220, 0.4);
  border-radius: 50%;
  background: rgba(14, 13, 11, 0.55);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, color 0.3s ease;
}

.pf-drawer__expand:hover { background: var(--ink); color: var(--bg); }

/* ————— negative-color orb ————— */

.invert-orb {
  position: fixed;
  top: 0; left: 0;
  z-index: 96;
  width: 150px;
  height: 150px;
  will-change: transform;
  border-radius: 50%;
  border: 1px solid rgba(233, 229, 220, 0.35);
  backdrop-filter: invert(1) grayscale(0.15);
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.4s ease, scale 0.5s var(--ease-out);
}

.invert-orb.is-on { opacity: 1; scale: 1; }

@media (max-width: 760px) {
  .pf__item { grid-template-columns: 2.4em minmax(0, 1fr) 1.4em; }
  .pf__tag { display: none; }
  .pf-drawer { width: 100vw; }
  .pf-drawer__cell { height: 60vh; }
  .pf__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .invert-orb { display: none; }
}

/* ————— reveal helpers ————— */

[data-parallax] { overflow: hidden; }
[data-parallax] img { scale: 1.12; } /* composes with GSAP translate parallax */

/* ————— responsive ————— */

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about > div:first-child { position: static; max-width: 520px; }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: calc((100vw - 2 * var(--pad) - 5 * var(--gap)) / 6);
  }
  /* remap lego spans for 6-col */
  .tile--land   { grid-column: span 6; grid-row: span 4; }
  .tile--wide   { grid-column: span 6; grid-row: span 4; }
  .tile--port   { grid-column: span 3; grid-row: span 5; }
  .tile--tall   { grid-column: span 3; grid-row: span 5; }
  .tile--reel   { grid-column: span 3; grid-row: span 5; }
  .tile--sq     { grid-column: span 3; grid-row: span 5; }
  .tile--half   { grid-column: span 6; grid-row: span 7; }
  .tile--banner { grid-column: span 6; grid-row: span 4; }

  .tile--m-wide { grid-column: span 6 !important; grid-row: span 4 !important; }

  .tile__meta { transform: none; opacity: 1; }
  .tile__tag { white-space: normal; text-align: right; }
  .tile__shade { opacity: 1; }

  .hero__topline { flex-direction: column; gap: 8px; }
  .still { height: clamp(260px, 48vh, 420px); }
  .header__nav { gap: 16px; }
  .nav-link { font-size: 10px; letter-spacing: 0.12em; }
  .header__logo { font-size: 16px; }
}

/* ————— reduced motion ————— */

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll .dot { animation: none; }
  .marquee__track { animation-duration: 120s; }
  .line-mask > .line-inner { transform: none !important; }
  .reveal-img { clip-path: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
