/* ==========================================================================
   David Banga Studio — feuille de style
   Palette : #ff8500 (orange) · #000000 (noir) · #a3a3a3 (gris)
   Polices : Albert Sans (titres, texte) · Newsreader (italiques) · DM Mono (étiquettes)
   ========================================================================== */

/* Layout: a dark viewfinder. Full-bleed hero of scattered frames with depth-of-field,
   then an editorial contact-sheet flow: index of series → masonry → bio → services → books → contact. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0d0b09;
  --bg-3: #171411;
  --paper: #f5f2ec;
  --mute: #a3a3a3;
  --mute-2: #77716a;
  --line: rgba(245, 242, 236, 0.14);
  --line-2: rgba(245, 242, 236, 0.28);
  --accent: #ff8500;
  --accent-ink: #000000;
  --shade: rgba(0, 0, 0, 0.62);

  --f-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --f-mono:
    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-label: 11px;
  --fs-sm: 14px;
  --fs-base: 17px;
  --fs-lead: clamp(20px, 2.1vw, 28px);
  --fs-h3: clamp(22px, 2.3vw, 30px);
  --fs-h2: clamp(46px, 7.6vw, 80px);
  --fs-hero: clamp(92px, 20.5vw, 330px);

  --side: clamp(16px, 4vw, 56px);
  --gut-l: max(var(--side), env(safe-area-inset-left, 0px));
  --gut-r: max(var(--side), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  max-width: 1480px;
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.serif-i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.accent {
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -3%);
  }
  60% {
    transform: translate(-2%, -1%);
  }
  80% {
    transform: translate(3%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* viewfinder corners utility */
.vf,
.g-open::after,
.pf::after {
  --c: var(--accent);
  --l: 18px;
  --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left/var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left/var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right/var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right/var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left/var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left/var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right/var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right/var(--t) var(--l) no-repeat;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-out);
}
.btn:hover {
  border-color: var(--paper);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--paper);
  border-color: var(--paper);
}
.btn .arr {
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arr {
  transform: translateX(4px);
}

/* ───────── loader ───────── */
.loader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  flex-direction: column;
  justify-content: space-between;
  padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gut-r)
    calc(24px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  animation: loaderFailsafe 0s 5s forwards;
}
.loader.out {
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 100% 0);
}
.loader.gone {
  display: none !important;
}
@keyframes loaderFailsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}
.loader-top {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
}
.loader-label {
  color: var(--mute);
}
.loader-mid {
  display: grid;
  place-items: center;
}
.loader-mid img {
  width: clamp(72px, 10vw, 120px);
  height: auto;
  animation: breathe 1.6s ease-in-out infinite alternate;
}
@keyframes breathe {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}
.loader-bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.loader-count {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.loader-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ───────── header ───────── */
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    transform 0.5s var(--ease),
    background 0.4s;
}
.head.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head.hide {
  transform: translateY(-110%);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand img {
  height: 26px;
  width: auto;
}
.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  position: relative;
  color: var(--mute);
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a.on {
  color: var(--paper);
}
.nav a:hover::after,
.nav a.on::after {
  transform: scaleX(1);
  transform-origin: left;
}
.head-cta {
  min-height: 40px;
  padding: 0 18px;
}
.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 4px;
}
.menu-btn .bars {
  display: inline-block;
  width: 22px;
  height: 8px;
  position: relative;
  margin-left: 10px;
  vertical-align: middle;
}
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-btn .bars::before {
  top: 0;
}
.menu-btn .bars::after {
  bottom: 0;
}
.menu-btn[aria-expanded="true"] .bars::before {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .bars::after {
  transform: translateY(-3.25px) rotate(-45deg);
}
.mnav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--gut-r)
    calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.mnav.open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.mnav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mnav ol a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-weight: 800;
  font-size: clamp(40px, 11vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.mnav ol a small {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.mnav-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--mute);
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  min-height: max(640px, min(100svh, 1000px));
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}
.field {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pf {
  position: absolute;
  width: var(--w);
  aspect-ratio: var(--ar);
  top: var(--t, auto);
  left: var(--l, auto);
  right: var(--r, auto);
  bottom: var(--b, auto);
  will-change: transform;
  cursor: zoom-in;
}
.pf-in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ph, #111);
}
.pf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--blur, 0px)) brightness(var(--br, 0.6)) saturate(0.95);
  transform: scale(1.04);
  transition:
    filter 0.7s var(--ease-out),
    transform 1.2s var(--ease-out);
}
.pf:hover img {
  filter: blur(0) brightness(1) saturate(1);
  transform: scale(1);
}
.pf::after {
  content: "";
  position: absolute;
  inset: -8px;
  opacity: 0;
  transition:
    opacity 0.4s,
    inset 0.5s var(--ease-out);
  pointer-events: none;
}
.pf:hover::after {
  opacity: 1;
  inset: -12px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    60% 52% at 50% 52%,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
  pointer-events: none;
}
.hero-content a,
.hero-content button {
  pointer-events: auto;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  justify-content: center;
  margin-bottom: clamp(10px, 2vw, 22px);
}
.rec {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 133, 0, 0.2);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec {
  50% {
    opacity: 0.25;
  }
}
.hero-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.8;
  letter-spacing: -0.055em;
  font-size: var(--fs-hero);
}
.hn-david {
  font-weight: 150;
  font-size: 0.5em;
  align-self: center;
  transform: translateX(-0.42em);
  letter-spacing: -0.03em;
  margin-bottom: 0.02em;
}
.hn-banga {
  font-weight: 800;
  color: var(--accent);
  padding-bottom: 0.2em;
  margin-bottom: -0.14em;
}
.hn-line {
  display: block;
  overflow: hidden;
  padding-inline: 0.04em;
}
.ch {
  display: inline-block;
  will-change: transform;
}
.js-anim .hero-name .ch {
  transform: translateY(105%);
}
.hero-logo-wrap {
  display: block;
  overflow: hidden;
}
.hero-logo {
  display: block;
  width: min(86vw, 900px);
  height: auto;
}
.js-anim .hero-logo {
  transform: translateY(105%);
}
.hero-ready .hero-logo {
  transform: none;
  transition: transform 1.25s var(--ease-out) 120ms;
}
.hero-ready .hero-name .ch {
  transform: none;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.hero-sub {
  margin: clamp(18px, 2.6vw, 34px) auto 30px;
  max-width: 34ch;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.35;
  color: var(--paper);
  text-wrap: balance;
}
.hero-sub em {
  font-family: var(--f-serif);
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 36px);
}
.hero-hud {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mute);
  pointer-events: none;
}
.hero-hud .scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.hero-hud .scroll i {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero-hud .scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip {
  to {
    top: 100%;
  }
}

/* ───────── marquee ───────── */
.marquee {
  overflow: hidden;
  padding-block: clamp(16px, 2.2vw, 26px);
  background: var(--bg);
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 38s linear infinite;
}
.marquee:hover .mq-track {
  animation-play-state: paused;
}
.mq-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding-right: clamp(22px, 3vw, 44px);
}
.mq-group span {
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.mq-group span:nth-child(4n + 3) {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.mq-group .mk {
  width: clamp(16px, 1.8vw, 24px);
  height: clamp(16px, 1.8vw, 24px);
  border-right: 10px solid var(--accent);
  border-bottom: 10px solid var(--accent);
  flex: none;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* ───────── sections ───────── */
.sec {
  padding-block: clamp(40px, 10vw, 40px);
  position: relative;
}
.sec-about {
  padding-block: clamp(72px, 10vw, 140px);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
}
.h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 .serif-i {
  letter-spacing: -0.03em;
}
.sec-lead {
  max-width: 44ch;
  color: var(--mute);
  font-size: var(--fs-base);
  margin: 0;
}

/* index of series */
.series {
  list-style: none;
  margin: 0 0 clamp(70px, 9vw, 130px);
  padding: 0;
  border-top: 1px solid var(--line);
}
.series li {
  border-bottom: 1px solid var(--line);
}
.s-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px 40px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.s-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.s-name {
  font-size: clamp(30px, 4.8vw, 48px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  transition:
    transform 0.55s var(--ease),
    color 0.3s;
}
.s-desc {
  color: var(--mute);
  max-width: 30ch;
  font-size: var(--fs-sm);
  line-height: 1.45;
  transition: color 0.3s;
}
.s-count {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.s-count .arr {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.s-thumbs {
  display: none;
}
@media (hover: hover) {
  .s-row:hover::before,
  .s-row:focus-visible::before {
    transform: scaleY(1);
  }
  .s-row:hover .s-name,
  .s-row:focus-visible .s-name {
    transform: translateX(clamp(10px, 1.6vw, 24px));
    color: var(--accent-ink);
  }
  .s-row:hover .s-desc,
  .s-row:hover .s-count,
  .s-row:focus-visible .s-desc,
  .s-row:focus-visible .s-count {
    color: var(--accent-ink);
  }
  .s-row:hover .arr {
    transform: translateX(6px) rotate(-45deg);
  }
}
.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(200px, 17vw, 280px);
  aspect-ratio: 4/5;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition:
    opacity 0.35s,
    scale 0.35s;
  overflow: hidden;
  background: var(--bg-3);
}
.peek.on {
  opacity: 1;
}
.peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  position: sticky;
  top: calc(84px + env(safe-area-inset-top, 0px));
  z-index: 5;
  padding-block: 10px;
}
.chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  transition: all 0.3s;
}
.chip sup {
  font-size: 9px;
  color: var(--mute-2);
  top: 0;
}
.chip:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.chip[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--accent-ink);
}
.chip[aria-pressed="true"] sup {
  color: var(--accent-ink);
}

/* gallery */
.gallery {
  columns: 3;
  column-gap: clamp(10px, 1.4vw, 20px);
}
.gallery.masonry {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  grid-auto-rows: 4px;
  row-gap: 0;
  align-items: start;
}
.gallery.masonry .g-item {
  margin: 0;
}
.g-item {
  break-inside: avoid;
  margin: 0 0 clamp(10px, 1.4vw, 20px);
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-out);
}
.g-item.fading {
  opacity: 0;
  transform: scale(0.97);
}
.g-open {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ph, #111);
  text-align: left;
  cursor: zoom-in;
}
.g-open img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition:
    transform 1.1s var(--ease-out),
    filter 0.6s;
}
.g-open::after {
  content: "";
  position: absolute;
  inset: 14px;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.4s,
    transform 0.6s var(--ease-out);
  pointer-events: none;
}
.g-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 40px 18px 16px;
  color: var(--paper);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-out);
}
.g-open:hover img,
.g-open:focus-visible img {
  transform: scale(1.045);
}
.g-open:hover::after,
.g-open:focus-visible::after {
  opacity: 1;
  transform: none;
}
.g-open:hover .g-meta,
.g-open:focus-visible .g-meta {
  opacity: 1;
  transform: none;
}
.g-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mute);
}

/* ───────── quote ───────── */
.quote {
  padding-block: clamp(10px, 16vw, 40px);
  text-align: center;
  overflow: hidden;
}
.quote blockquote {
  margin: 0;
}
.q-text {
  font-weight: 250;
  font-size: clamp(44px, 8.6vw, 80px);
  line-height: 0.98;
  margin: 0 auto;
  text-wrap: balance;
}
.q-text .w {
  display: inline-block;
  white-space: nowrap;
}
.q-text .qc {
  display: inline-block;
  will-change: transform;
}
.q-text .hl {
  color: var(--accent);
}
.q-cite {
  display: block;
  margin-top: clamp(56px, 6vw, 84px);
  color: var(--mute);
  font-style: normal;
}

/* ───────── about ───────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.sheet {
  position: relative;
}
.sec-about .about-grid {
  align-items: stretch;
}
.sheet .fr {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ph, var(--bg-3));
}
.sheet .fr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.15);
  transform-origin: 50% 30%;
}
.sheet-edge {
  display: flex;
  justify-content: space-between;
  color: var(--paper);
  font-size: 10px;
  margin-bottom: 12px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px) clamp(6px, 0.8vw, 10px);
}
.sheet-grid figure {
  margin: 0;
  position: relative;
}
.sheet-grid .fr {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--ph, var(--bg-3));
  position: relative;
}
.sheet-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}
.sheet-grid figcaption {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--mute-2);
  margin-top: 5px;
}
.sheet-solo {
  grid-template-columns: minmax(0, 1fr);
}
.sheet-solo .fr {
  aspect-ratio: 4/5;
}
.sheet-solo img {
  filter: none;
}
.sheet-grid .sel figcaption {
  color: var(--accent);
}
.sheet-grid .sel .fr::after {
  content: "";
  position: absolute;
  inset: 0;
}
.grease {
  position: absolute;
  inset: -9% -16% -12% -14%;
  pointer-events: none;
  overflow: visible;
}
.grease path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet-note {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--mute-2);
  font-size: 10px;
}
.about-body .h2 {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.about-lead {
  font-weight: 300;
  font-size: clamp(14px, 2.6vw, 29px);
  line-height: 1.22;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.about-lead em {
  color: var(--accent);
}

.about-text {
  display: grid;
  gap: 16px;
  color: var(--mute);
}
.about-text p {
  margin: 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: clamp(32px, 4vw, 52px) 0 0;
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  min-width: 0;
}
.facts dt {
  color: var(--mute-2);
}
.facts dd {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 500;
}

/* ───────── services ───────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.svc {
  position: relative;
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px)
    clamp(32px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  transition: background 0.4s;
  min-width: 0;
}
.svc::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc:hover {
  background: var(--bg-3);
}
.svc:hover::before {
  transform: scaleX(1);
}
.svc-ico {
  width: 44px;
  height: 44px;
  --l: 12px;
  --t: 2px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.svc-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.svc h3 {
  margin: 6px 0 0;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.svc p {
  margin: 0;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.55;
}
.svc .tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc .tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  
  border-radius: 999px;
  color: var(--mute);
}
.svc-cta {
  background: var(--paper);
  color: var(--accent-ink);
  justify-content: space-between;
}
.svc-cta:hover {
  background: var(--accent);
}
.svc-cta h3 {
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.svc-cta h3 em {
  font-family: var(--f-serif);
  font-weight: 300;
}
.svc-cta p {
  color: rgba(0, 0, 0, 0.72);
}
.svc-cta .go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.svc-cta::before {
  display: none;
}

/* ───────── books ───────── */
.books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.book {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 36px);
  transition: border-color 0.4s;
  min-width: 0;
}
.book:hover {
  border-color: var(--line-2);
}
.cover-wrap {
  perspective: 1200px;
}
.cover {
  position: relative;
  aspect-ratio: 3/4;
  transform: rotateY(-14deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
  box-shadow: 24px 30px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px)
    clamp(14px, 1.6vw, 22px) calc(clamp(14px, 1.6vw, 22px) + 10px);
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35),
    rgba(255, 255, 255, 0.12) 60%,
    rgba(0, 0, 0, 0.2)
  );
}
.book:hover .cover {
  transform: rotateY(-4deg) rotateX(0) translateY(-6px);
}
.cover-a {
  background: var(--bg-3);
  color: var(--paper);
  
}
.cover-b {
  background: var(--accent);
  color: var(--accent-ink);
}
.cover .c-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.cover .c-title {
  font-weight: 800;
  font-size: clamp(24px, 2.7vw, 40px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.cover .c-title em {
  display: block;
  font-family: var(--f-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.cover .c-mono {
  width: clamp(34px, 3.4vw, 52px);
  height: auto;
}
.cover .c-photo {
  position: absolute;
  right: -8%;
  top: 16%;
  width: 62%;
  aspect-ratio: 3/4;
  object-fit: cover;
  opacity: 0.9;
}
.cover-a .c-title,
.cover-a .c-top,
.cover-a .c-bot {
  position: relative;
}
.cover .c-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.book-info .mono {
  color: var(--accent);
}
.book-info h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.book-info p {
  margin: 0;
  color: var(--mute);
  font-size: 15.5px;
}
.book-info .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ───────── contact / footer ───────── */
.contact {
  padding-top: clamp(10px, 13vw, 10px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact > .wrap {
  max-width: none;
}
.c-big {
  margin: 0;
  font-size: clamp(64px, 15vw, 250px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.c-big em {
  font-family: var(--f-serif);
  font-weight: 250;
  letter-spacing: -0.04em;
}
.c-big .dot {
  color: var(--accent);
}
.c-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 80px);
  align-items: end;
}
.c-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.c-line:first-child {
  border-top: 1px solid var(--line);
}
.c-line .mono {
  width: 100%;
  color: var(--mute-2);
}
.c-value {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  user-select: all;
  overflow-wrap: anywhere;
  transition: color 0.3s;
  min-width: 0;
}
a.c-value:hover {
  color: var(--accent);
}
.copy {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  transition: all 0.3s;
}
.copy:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.copy.ok {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.barrels {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-bottom: 28px;
}
.barrel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 44px;
}
.barrel .bk {
  color: var(--mute-2);
  transition:
    color 0.3s,
    transform 0.5s var(--ease);
}
.barrel .word {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.3;
  height: 1.3em;
}
.barrel .bc {
  display: inline-flex;
  flex-direction: column;
}
.barrel .bc span {
  display: block;
  transition: transform 0.55s var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}
.barrel .bc span + span {
  color: var(--accent);
}
.barrel:hover .bc span,
.barrel:focus-visible .bc span {
  transform: translateY(-100%);
}
.barrel:hover .bk,
.barrel:focus-visible .bk {
  color: var(--accent);
}
.barrel:hover .bk.l {
  transform: translateX(-4px);
}
.barrel:hover .bk.r {
  transform: translateX(4px);
}
.c-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  color: var(--mute);
}
.c-meta div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.c-meta dt {
  color: var(--mute-2);
}
.c-meta dd {
  margin: 0;
  color: var(--paper);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}
.sign {
  margin-top: clamp(70px, 10vw, 140px);
}
.sign img {
  width: 100%;
  height: auto;
  opacity: 0.95;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--mute-2);
}
.legal a:hover {
  color: var(--accent);
}

/* whatsapp fab */
.fab {
  position: fixed;
  z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.5s var(--ease),
    background 0.3s;
}
.fab:hover {
  background: var(--paper);
}
.fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.fab.away {
  transform: translateY(calc(100% + 40px));
}

/* ───────── lightbox ───────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut-r)
    calc(14px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  opacity: 0;
  transition: opacity 0.35s;
}
.lb.open {
  opacity: 1;
}
.lb-top,
.lb-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  color: var(--mute);
}
.lb-count {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.lb-close {
  min-height: 44px;
  padding: 0 6px;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lb-close:hover {
  color: var(--accent);
}
.lb-stage {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  touch-action: pan-y;
}
.lb-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease-out);
}
.lb-img.swap {
  opacity: 0;
  transform: scale(0.985);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  z-index: 2;
}
.lb-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.lb-prev {
  left: 0;
}
.lb-next {
  right: 0;
}
.lb-cap {
  color: var(--paper);
  font-size: 15px;
  max-width: 60ch;
}
.lb-exif {
  color: var(--mute-2);
  text-align: right;
}

/* ───────── cursor ───────── */
.cursor {
  display: none;
}
.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.has-cursor .cursor.live {
  opacity: 1;
}
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
}
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(245, 242, 236, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    margin 0.35s var(--ease-out),
    background 0.3s,
    border-color 0.3s;
}
.cursor-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.big .cursor-ring {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.big .cursor-label {
  opacity: 1;
}
.cursor.big .cursor-dot {
  opacity: 0;
}
.cursor.link .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--accent);
}

/* scroll-driven reveal (transform only: content stays readable at rest) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rv {
      from {
        transform: translateY(28px);
      }
      to {
        transform: none;
      }
    }
  }
}

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
  }
  .gallery {
    columns: 2;
  }
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .books {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet {
    max-width: 620px;
  }
  .sheet .fr {
    position: relative;
    aspect-ratio: 1/1;
  }
  .c-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-desc {
    display: none;
  }
}
@media (max-width: 720px) {
  .lb-img {
    bottom: 56px;
  }
  .head-in {
    height: 66px;
  }
  .brand img {
    height: 21px;
  }
  .head-cta {
    display: none;
  }
  .hero {
    min-height: max(600px, 100svh);
  }
  .pf.m-hide {
    display: none;
  }
  .pf {
    width: var(--mw, var(--w));
    top: var(--mt, var(--t, auto));
    left: var(--ml, var(--l, auto));
    right: var(--mr, var(--r, auto));
    bottom: var(--mb, var(--b, auto));
  }
  .hn-david {
    transform: translateX(-0.3em);
  }
  .hero-hud {
    bottom: 22px;
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  .s-thumbs {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    margin-top: 4px;
  }
  .s-thumbs img {
    width: 56px;
    height: 70px;
    object-fit: cover;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut-l)) calc(-1 * var(--gut-r));
    padding-inline: var(--gut-l) var(--gut-r);
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: none;
  }
  .gallery {
    column-gap: 8px;
  }
  .g-item {
    margin-bottom: 8px;
  }
  .g-meta {
    display: none;
  }
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc {
    min-height: 0;
  }
  .book {
    grid-template-columns: minmax(0, 1fr);
  }
  .cover-wrap {
    max-width: 260px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .lb-nav {
    width: 46px;
    height: 46px;
    top: auto;
    bottom: -6px;
    transform: none;
  }
  .lb-stage {
    padding-bottom: 56px;
  }
  .lb-exif {
    display: none;
  }
  .fab {
    height: 50px;
    padding: 0 16px 0 14px;
  }
  .fab .fab-txt {
    display: none;
  }
  .fab {
    width: 54px;
    padding: 0;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain {
    display: none;
  }
}
