/* ==========================================================================
   Rodytis — Photography & Film
   Mobile-first. Obsidian, warm charcoal, raw titanium. Editorial, tactile, in motion.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #131211;
  --bg-3: #1c1a18;
  --ink: #e9e5dc;
  --ink-2: #a9a49a;
  --ink-3: #6d685f;
  --line: rgb(233 229 220 / 0.1);
  --line-2: rgb(233 229 220 / 0.22);
  --titanium: #c9c1b1;
  --paper: #e4dfd4;
  --rec: #ff4a2e;
  --error: #ff8f7a;
  --metal: linear-gradient(100deg, #8d887e 0%, #efe9dd 28%, #9f998e 52%, #f5f1e8 74%, #8d887e 100%);

  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1600px;
  --header-h: 64px;
  --section-space: clamp(104px, 14vw, 200px);
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

@media (min-width: 960px) {
  :root { --header-h: 80px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
  /* The page is locked at 1:1 on touch screens: no pinch or double-tap zoom, no sideways drift. */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}

/* No system long-press menus or text selection on media and controls; it should feel like an app. */
img, video, a, button, .tile, .filter, .lang-switch {
  -webkit-touch-callout: none;
}
img, video, button, .btn, .filter, .lang-switch, .nav, .mobile-nav, .tile-link, .contact-btn {
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.has-smooth) { scroll-behavior: smooth; }
}

html:has(dialog[open]),
html.menu-open { overflow: hidden; }

/* Visitors whose language isn't the page's default see nothing until i18n.js has swapped the text. */
html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd, fieldset, blockquote { margin: 0; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

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

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type ---------- */

.mono,
.eyebrow,
.section-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.section-title,
.about-quote,
.contact-title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-title em,
.about-quote em,
.contact-title em,
.hero-title em {
  font-style: italic;
  color: var(--titanium);
}

.section-index {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.section-index .idx { color: var(--ink); }
.section-index .idx::before { content: "("; }
.section-index .idx::after { content: ")"; }

/* Split headings: every word rises out of its own mask. The padding keeps diacritics (ą ę į ų š ž ė ū)
   and italic overhangs inside the clip without changing the layout. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.2em 0.1em 0.22em;
  margin: -0.2em -0.1em -0.22em;
}
.w-i { display: inline-block; }

/* ---------- Buttons & links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn .icon { transition: transform 0.5s var(--ease-out); }
/* Hover styles only where there is a real hover; on phones they would stick after a tap. */
@media (hover: hover) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn:hover .icon-down { transform: translateY(3px); }
}

.btn-primary { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .btn-primary:hover { background: #fff; } }

.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); } }

.btn-sm { min-height: 42px; padding: 0 1.2rem; font-size: 0.875rem; }

.link-line {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
}
.link-line::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
@media (hover: hover) { .link-line:hover::after { animation: line-swap 0.8s var(--ease-in-out); } }

@keyframes line-swap {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* Magnetic elements: JS feeds the pointer offset into --mx / --my. */
[data-magnetic] {
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px);
  transition-property: translate, background-color, color, border-color, scale, box-shadow;
  transition-duration: 0.9s, 0.4s, 0.4s, 0.4s, 0.6s, 0.4s;
  transition-timing-function: var(--ease-out);
}
[data-magnetic].is-magnet { transition-duration: 0.25s, 0.4s, 0.4s, 0.4s, 0.6s, 0.4s; }
[data-magnetic] .btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  translate: calc(var(--mx, 0) * 0.35px) calc(var(--my, 0) * 0.35px);
  transition: translate 0.9s var(--ease-out);
}
[data-magnetic].is-magnet .btn-label { transition-duration: 0.25s; }

/* ---------- Film grain ---------- */

.grain {
  position: fixed;
  inset: -10%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 0.9s steps(4) infinite; }
}

/* Touch screens: iOS 26 Safari clips fixed layers above its floating toolbar, which left a
   darker, grain-free band along the bottom. The grain is barely visible on a phone anyway. */
@media (hover: none) {
  .grain { display: none; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-3%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Cursor: an inverting dot that swells into a label over media ---------- */

.cursor-dot,
.cursor-bubble {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
  will-change: translate, scale;
}

.cursor-dot {
  z-index: 80;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: scale 0.45s var(--ease-out), opacity 0.3s ease;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-link { scale: 4.2; }
.cursor-dot.is-down { scale: 0.65; }
.cursor-dot.is-link.is-down { scale: 3.4; }
.cursor-dot.is-media,
.cursor-dot.is-text { scale: 0; }

.cursor-bubble {
  z-index: 81;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  scale: 0;
  transition: scale 0.55s var(--ease-out);
}
.cursor-bubble.is-active { scale: 1; }
.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor-dot { display: block; }
  .has-cursor .cursor-bubble { display: grid; }
  .has-cursor,
  .has-cursor * { cursor: none !important; }
  .has-cursor :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { cursor: text !important; }
  .has-cursor .lightbox,
  .has-cursor .lightbox * { cursor: auto !important; }
  .has-cursor .lightbox button { cursor: pointer !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.7s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background: rgb(11 11 12 / 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

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

.menu-open .site-header {
  transform: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav { display: none; }
.header-cta { display: none; }

.nav-list {
  display: flex;
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-list a[aria-current] { color: var(--ink); }
@media (hover: hover) { .nav-list a:hover { color: var(--ink); } }
.nav-list a[aria-current]::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--rec);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}
.menu-lines { position: relative; transform: translateY(-4px); }
.menu-lines::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 16px;
}
.menu-open .menu-lines { transform: translateY(0) rotate(45deg); }
.menu-open .menu-lines::before { top: 0; width: 24px; transform: rotate(-90deg); }

@media (min-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .header-actions { justify-self: end; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Language switch ---------- */

.lang-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.lang-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  transition: translate 0.6s var(--ease-out);
}
.lang-switch[data-active="en"]::before { translate: 100% 0; }

.lang-switch button {
  min-width: 42px;
  height: 34px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.35s ease;
}
@media (hover: hover) { .lang-switch button:hover { color: var(--ink); } }
.lang-switch button[aria-pressed="true"] { color: var(--bg); }

.lang-switch--sm button { height: 30px; min-width: 38px; }

/* Language change: the page dissolves and re-forms instead of snapping. */
.vt-lang::view-transition-old(root) { animation: vt-out 0.3s var(--ease-in-out) both; }
.vt-lang::view-transition-new(root) { animation: vt-in 0.6s var(--ease-out) 0.1s both; }
@keyframes vt-out { to { opacity: 0; filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(10px); } }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 32px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.mobile-nav {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.mobile-nav li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.menu-open .mobile-nav li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.08s + var(--i) * 0.06s);
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 12vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.mobile-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.menu-mail { text-transform: none; letter-spacing: 0.04em; text-decoration: none; }

@media (min-width: 960px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero: a viewfinder window onto the reel ---------- */

.hero {
  --ww: min(50vw, 420px);
  --wh: calc(var(--ww) * 1.25);
  position: relative;
  height: 240vh;
  height: 240svh;
}

@media (min-width: 700px) {
  .hero {
    --ww: clamp(220px, 24vw, 420px);
    height: 280vh;
    height: 280svh;
  }
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.1);
  will-change: transform;
}

.reel-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.reel-frame.is-current { opacity: 1; }

.reel-frame img,
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86);
}

@media (prefers-reduced-motion: no-preference) {
  .reel-frame.is-current img { animation: reel-drift 2.6s linear both; }
}
@keyframes reel-drift { from { transform: scale(1.07); } to { transform: none; } }

.reel-video {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.reel-video.is-playing { opacity: 1; }

.reel-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(11 11 12 / 0.55) 16%, transparent 42%),
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgb(0 0 0 / 0.5) 100%);
  pointer-events: none;
}

.hero-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* Four obsidian shutters frame the window; JS slides them apart as you scroll. */
.reel-mask i {
  position: absolute;
  z-index: 2;
  background: var(--bg);
  will-change: transform;
}
.m-t { top: 0; left: 0; right: 0; height: 50%; transform: translate3d(0, calc(var(--wh) / -2), 0); }
.m-b { bottom: 0; left: 0; right: 0; height: calc(50% + var(--lift, 0px)); transform: translate3d(0, calc(var(--wh) / 2), 0); }
.m-l { top: 0; bottom: 0; left: 0; width: 50%; transform: translate3d(calc(var(--ww) / -2), 0, 0); }
.m-r { top: 0; bottom: 0; right: 0; width: 50%; transform: translate3d(calc(var(--ww) / 2), 0, 0); }

/* With JS the shutters start closed and open on load. */
.js .m-t,
.js .m-b { transform: none; }

.reel-window {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rw-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 0 solid rgb(233 229 220 / 0.65);
}
.rw-mark:nth-child(1) { border-top-width: 1px; border-left-width: 1px; transform: translate(calc(var(--ww) / -2 - 12px), calc(var(--wh) / -2 - 12px)); }
.rw-mark:nth-child(2) { border-top-width: 1px; border-right-width: 1px; transform: translate(calc(var(--ww) / 2 - 2px), calc(var(--wh) / -2 - 12px)); }
.rw-mark:nth-child(3) { border-bottom-width: 1px; border-left-width: 1px; transform: translate(calc(var(--ww) / -2 - 12px), calc(var(--wh) / 2 - 2px)); }
.rw-mark:nth-child(4) { border-bottom-width: 1px; border-right-width: 1px; transform: translate(calc(var(--ww) / 2 - 2px), calc(var(--wh) / 2 - 2px)); }

.js .rw-mark { opacity: 0; transition: opacity 0.8s ease; }
.js .reel-window.is-open .rw-mark { opacity: 1; }

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) * 0.5) var(--gutter) 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, min(21vw, 12vh), 15rem);
  font-size: clamp(3.25rem, min(21vw, 12svh), 15rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink);
  mix-blend-mode: difference;
  pointer-events: none;
}

@media (min-width: 700px) {
  /* Sits a little above centre so the larger last line clears the intro text below. */
  .hero-title {
    font-size: min(12.5vw, 24vh);
    padding-bottom: 12vh;
  }
}

.hl {
  display: block;
  white-space: nowrap;
}
.hl-1 { align-self: flex-start; }
.hl-2 { align-self: flex-end; margin-right: 4vw; }
.hl-3 { align-self: flex-start; padding-left: 9vw; font-size: 1.14em; }

@media (min-width: 700px) {
  .hl-1 { padding-left: 3vw; }
  .hl-2 { margin-right: 6vw; }
  .hl-3 { padding-left: 16vw; font-size: 1.24em; }
}

.hl-in {
  display: inline-block;
  overflow: hidden;
  padding: 0.2em 0.1em 0.22em;
  margin: -0.2em -0.1em -0.22em;
}
.hero-title em { padding-right: 0.04em; }
/* Once scrolling scatters the letters, they may leave their line masks. */
.hero-title.is-loose .hl-in { overflow: visible; }

.ch { display: inline-block; }
.js .hero-title .ch { translate: 0 118%; }
.js.is-ready .hero-title .ch {
  translate: 0 0;
  transition: translate 1.4s var(--ease-out) calc(0.45s + var(--ci) * 0.03s);
}

/* Opening credits. JS feeds scroll progress into --c (0–1); each part keys off it in turn. */
.hero-credits {
  --c: 0;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-inline: var(--gutter);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.credit-meta {
  --k: clamp(0, calc(var(--c) * 3 - 1.9), 1);
  color: var(--ink-2);
  opacity: var(--k);
  translate: 0 calc((1 - var(--k)) * 14px);
}

.credit-title {
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--ink);
  /* Room for the descender of the "y" above the line below. */
  padding-bottom: 0.2em;
}
.credit-title .ch { translate: 0 calc((1 - clamp(0, var(--c) * 2.6 - 0.5 - var(--ci) * 0.12, 1)) * 118%); }

/* Timeline under the picture; the playhead follows the scroll. */
.hero-scrub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--ink);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.6);
  opacity: 0;
  pointer-events: none;
}
.scrub-tc { flex: none; font-variant-numeric: tabular-nums; }

.scrub-track {
  position: relative;
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(to right, rgb(233 229 220 / 0.35) 0 1px, transparent 1px 10px) left center / 100% 6px no-repeat;
}
.scrub-track::before,
.scrub-fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-2);
}
.scrub-fill {
  background: var(--rec);
  transform-origin: left;
  transform: scaleX(0);
}
.scrub-head {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 0;
  width: 1px;
  background: var(--rec);
  box-shadow: 0 0 10px rgb(255 74 46 / 0.8);
}
.scrub-head::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
}

.hero-top {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.hero-rec { display: none; color: var(--ink-2); }
.hero-rec [data-timecode] { color: var(--ink); font-variant-numeric: tabular-nums; }

.rec-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgb(255 74 46 / 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .rec-dot { animation: blink 1.6s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0.25; } }

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 1.25rem;
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 14px));
}

/* iOS Safari keeps a band above its floating toolbar clear, so the buttons sit higher there. */
@supports (-webkit-touch-callout: none) {
  .hero-bottom { padding-bottom: max(56px, calc(env(safe-area-inset-bottom) + 28px)); }
}

.hero-lede {
  max-width: 34ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  color: #cfcac0;
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

@media (min-width: 700px) {
  .hero-actions { column-gap: 1.75rem; }
}

.hero-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hud-scroll { display: inline-flex; align-items: center; gap: 0.75rem; }

/* Phones: the window's caption and the camera read-out would crowd the headline. */
@media (max-width: 699px) {
  .hero-hud { display: none; }
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: var(--line-2);
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-line::after { animation: scroll-cue 2.2s var(--ease-in-out) infinite; }
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (min-width: 900px) {
  .hero-rec { display: block; }
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 3rem;
  }
  .hero-lede { grid-column: 1; }
  .hero-actions { grid-column: 1; }
  .hero-hud { grid-column: 2; grid-row: 1 / span 2; align-self: end; gap: 2rem; }
}

/* Short landscape phones: give the headline the room. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-lede { display: none; }
  .hero-title { font-size: min(10vw, 20vh); }
}

.js .hero-in { opacity: 0; translate: 0 14px; }
.js.is-ready .hero-in {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1s ease var(--d, 1.2s), translate 1.2s var(--ease-out) var(--d, 1.2s);
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
}

/* ---------- Marquees ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(18px, 2.4vw, 32px);
  border-block: 1px solid var(--line);
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(22px, 3.2vw, 48px);
  padding-right: clamp(22px, 3.2vw, 48px);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.marquee-group i {
  font-style: normal;
  font-size: 0.3em;
  color: var(--rec);
}

.marquee-group .outline {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.js) .marquee-track { animation: marquee 50s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* The tilted band: raw titanium paper with obsidian type. */
.band {
  position: relative;
  z-index: 2;
  overflow: clip;
  padding-block: clamp(28px, 5vw, 72px);
}

.marquee--band {
  width: 112vw;
  margin-left: -6vw;
  rotate: -2.5deg;
  border: 0;
  background: var(--paper);
  color: var(--bg);
}
.marquee--band .marquee-group {
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-style: italic;
}
.marquee--band .marquee-group .g {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.marquee--band .marquee-group i { color: var(--bg); }

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-title {
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  line-height: 0.88;
}

.section-note {
  max-width: 40ch;
  color: var(--ink-2);
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: 1fr minmax(0, 24rem);
    align-items: end;
    gap: 3rem;
  }
  .section-note { justify-self: end; }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

.js [data-split] .w-i {
  translate: 0 112%;
  rotate: 5deg;
  transform-origin: 0 100%;
  transition:
    translate 1.15s var(--ease-out) calc(var(--d, 0s) + var(--wi) * 0.05s),
    rotate 1.15s var(--ease-out) calc(var(--d, 0s) + var(--wi) * 0.05s);
}
.js [data-split].is-in .w-i { translate: 0 0; rotate: 0deg; }

/* ---------- Work ---------- */

.work { padding-bottom: calc(var(--section-space) * 0.8); }

.work-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.filters {
  display: flex;
  gap: 0.5rem;
  max-width: calc(100% + 2 * var(--gutter));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .filters { margin-inline: 0; padding-inline: 0; max-width: 100%; }
}

.filter {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.4s var(--ease-out);
}
@media (hover: hover) { .filter:hover { color: var(--ink); border-color: var(--ink-3); } }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.filter sup {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 0;
  opacity: 0.7;
}

.work-count { display: none; font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .work-count { display: block; }
}

.work-stage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.grid {
  position: relative;
  min-height: 60vh;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  translate: 0 0;
  transition:
    translate 1s var(--ease-out),
    opacity 0.55s ease,
    scale 0.7s var(--ease-out),
    visibility 0s linear 0s;
}

.tile.is-out {
  opacity: 0;
  scale: 0.92;
  visibility: hidden;
  pointer-events: none;
  transition:
    translate 1s var(--ease-out),
    opacity 0.35s ease,
    scale 0.5s var(--ease-out),
    visibility 0s linear 0.5s;
}

.grid.no-anim .tile { transition: none !important; }
.grid.is-fading .tile:not(.is-out) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}
.tile-link:focus-visible { outline-offset: 6px; }

.tile-media {
  position: relative;
  aspect-ratio: var(--ratio, 1.5);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.tile-zoom {
  position: absolute;
  inset: 0;
  transition: transform 1.3s var(--ease-out);
}

.tile-par {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  will-change: transform;
}

.tile-par img,
.tile-par video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.tile-par img {
  opacity: 0;
  filter: brightness(0.9);
  transition: opacity 0.9s ease, filter 0.9s var(--ease-out);
}
.tile-par img.is-loaded { opacity: 1; }

.tile-par video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tile-par video.is-playing { opacity: 1; }

/* Hover texture for motion pieces: moving grain and scan lines, like a monitor feed. */
.tile-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgb(0 0 0 / 0.22) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  transition: opacity 0.5s ease;
}

.tile-badge,
.tile-rec {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgb(11 11 12 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.tile-badge { left: 12px; }
.tile-badge svg { width: 8px; height: 8px; fill: currentColor; stroke: none; }

.tile-rec {
  right: 12px;
  opacity: 0;
  translate: 0 -6px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease, translate 0.6s var(--ease-out);
}
.tile-rec .rec-dot { width: 6px; height: 6px; }

.tile-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  padding-top: 0.85rem;
}

.tile-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.tile-meta {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.tile-num {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* Reveal: the frame wipes up from its lower edge, the caption follows. */
.js .tile .tile-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out) var(--rd, 0s); }
.js .tile .tile-cap { opacity: 0; translate: 0 12px; transition: opacity 0.9s ease calc(var(--rd, 0s) + 0.25s), translate 1s var(--ease-out) calc(var(--rd, 0s) + 0.25s); }
.js .tile.is-in .tile-media { clip-path: inset(0 0 0 0); }
.js .tile.is-in .tile-cap { opacity: 1; translate: 0 0; }

@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .tile-zoom,
  .tile-link:focus-visible .tile-zoom { transform: scale(1.045); }
  .tile-link:hover .tile-par img,
  .tile-link:focus-visible .tile-par img { filter: none; }
  .tile--motion .tile-link:hover .tile-fx { opacity: 1; animation: fx-noise 0.6s steps(3) infinite; }
  .tile--motion .tile-link:hover .tile-rec { opacity: 1; translate: 0 0; }
  .tile--motion .tile-link:hover .tile-par { animation: jolt 0.5s steps(1) 1; }
}

@keyframes fx-noise {
  0% { background-position: 0 0, 0 0; }
  33% { background-position: 0 1px, -40px 30px; }
  66% { background-position: 0 2px, 30px -50px; }
  100% { background-position: 0 0, 0 0; }
}

/* A short signal hiccup when a motion piece "starts playing". */
@keyframes jolt {
  0% { translate: 0 0; filter: none; }
  20% { translate: -5px 1px; filter: contrast(1.35) saturate(1.7) hue-rotate(-14deg); }
  40% { translate: 4px -2px; filter: contrast(1.2) hue-rotate(12deg); }
  60% { translate: -2px 0; filter: brightness(1.15); }
  80%, 100% { translate: 0 0; filter: none; }
}

/* ---------- About ---------- */

.about-quote {
  max-width: 17ch;
  font-size: clamp(2.6rem, 7.4vw, 7.75rem);
  line-height: 0.94;
}

.about-grid {
  display: grid;
  gap: clamp(56px, 8vw, 88px);
  margin-top: clamp(64px, 9vw, 140px);
}

.collage {
  position: relative;
  aspect-ratio: 1 / 1.12;
}

.collage-item {
  position: absolute;
  will-change: translate;
}

/* Three portrait frames: the main photo, and two prints overlapping it. */
.ci-1 { left: 0; top: 4%; width: 56%; aspect-ratio: 2 / 3; }
.ci-2 { right: 0; top: 0; width: 40%; aspect-ratio: 4 / 5.2; rotate: 2.5deg; }
.ci-3 { right: 14%; bottom: 5%; width: 34%; aspect-ratio: 4 / 5; rotate: -3.5deg; }

.ci-clip {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-2);
}

.ci-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Prints: paper border, thicker at the foot, like a proof pinned to the wall. */
.is-print {
  padding: 7px 7px 28px;
  background: var(--paper);
  box-shadow: 0 30px 60px -18px rgb(0 0 0 / 0.75), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* Layered reveal: each layer wipes in from a different edge. */
.js .collage-item { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out); }
.js .ci-2 { clip-path: inset(0 0 0 100%); transition-delay: 0.25s; }
.js .ci-3 { clip-path: inset(0 0 100% 0); transition-delay: 0.5s; }
.js .collage-item img { scale: 1.25; transition: scale 2s var(--ease-out); transition-delay: inherit; }
.js .collage.is-in .collage-item { clip-path: inset(0 0 0 0); }
.js .collage.is-in .collage-item img { scale: 1; }

.about-lede {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
}
.about-lede p + p { margin-top: 1em; }
.about-lede .about-cta {
  margin-top: 1.4em;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--titanium);
  text-wrap: balance;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(56px, 7vw, 128px);
  }
}

/* Process: a timeline that fills as you read it. */
.process { margin-top: clamp(112px, 13vw, 200px); }

.process-head {
  margin-bottom: clamp(16px, 2vw, 28px);
}

.process-body { position: relative; }

.process-track {
  position: absolute;
  top: 0.9rem;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: var(--line-2);
}

.process-fill {
  position: absolute;
  inset: 0;
  background: var(--rec);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

.process-steps {
  display: grid;
  gap: 48px;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}

.step { position: relative; }

.step::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: -36px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.step.is-active::before {
  background: var(--rec);
  border-color: var(--rec);
  box-shadow: 0 0 14px rgb(255 74 46 / 0.65);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-3);
  transition: color 0.8s ease, -webkit-text-stroke-color 0.8s ease;
}
.step.is-active .step-num { color: var(--ink); -webkit-text-stroke-color: transparent; }

.step-title {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step-text {
  max-width: 34ch;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .process-track {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
  .process-fill {
    transform-origin: left;
    transform: scaleX(var(--p, 0));
  }
  .process-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 40px);
    padding: 44px 0 0;
  }
  .step::before { top: -48px; left: 0; }
}

/* ---------- Products ---------- */

.product {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  margin-top: clamp(24px, 4vw, 56px);
}

/* The cover is a transparent tablet mockup: a soft glow behind it, a real shadow under it. */
.product-cover {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  margin: 0;
}
.product-cover::before {
  content: "";
  position: absolute;
  inset: 8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(201 193 177 / 0.16), transparent);
  filter: blur(20px);
}
.product-cover img {
  width: 100%;
  height: auto;
  rotate: -3deg;
  filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.65)) drop-shadow(0 4px 10px rgb(0 0 0 / 0.4));
  transition: rotate 1.2s var(--ease-out), scale 1.2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product-cover:hover img { rotate: 0deg; scale: 1.02; }
}

.product-body { max-width: 40rem; }

.product-kind { margin-bottom: 1.25rem; }

.product-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.product-title em { font-style: italic; color: var(--titanium); }

.product-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--titanium);
  text-wrap: balance;
}

.product-text {
  max-width: 44ch;
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.product-learn {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.product-learn li {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.product-learn li::before {
  content: "✦";
  flex: none;
  color: var(--ink-3);
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.product-price .price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.product-buy .btn { min-width: 11rem; }

.product-note { margin-top: 1rem; color: var(--ink-3); }

@media (min-width: 640px) {
  .product-learn { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

@media (min-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
  .product-cover { width: min(100%, 520px); }
}

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(to bottom, var(--bg), var(--bg-2) 55%, var(--bg));
}

.contact-grid {
  display: grid;
  gap: 64px;
}

.contact-title {
  margin-bottom: 1.75rem;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 0.9;
}

.contact-lede {
  max-width: 40ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
}

/* Two large link buttons: Instagram and email. */
.contact-actions {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.5rem, 2.8vw, 2.25rem);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.contact-btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) { .contact-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); } }

.contact-icon {
  flex: none;
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-icon .dot { fill: currentColor; stroke: none; }

.contact-btn-text {
  display: grid;
  flex: 1;
  gap: 0.3rem;
  min-width: 0;
}

.contact-btn-label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact-btn-sub {
  overflow: hidden;
  color: inherit;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-arrow {
  width: 22px;
  height: 22px;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) { .contact-btn:hover .contact-arrow { transform: translate(3px, -3px); } }

button.contact-btn {
  width: 100%;
  background: none;
  text-align: left;
  cursor: pointer;
}

/* Copy icon on the email button; turns into a check once the address is copied. */
.contact-copy {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}
.contact-copy .icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease, scale 0.4s var(--ease-out);
}
.contact-copy .check-icon { opacity: 0; scale: 0.6; }
.contact-btn.is-copied .copy-icon { opacity: 0; scale: 0.6; }
.contact-btn.is-copied .check-icon { opacity: 1; scale: 1; }

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(56px, 7vw, 128px);
    align-items: end;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.footer-mark {
  margin-block: 0 clamp(20px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.js .footer-mark .ch { translate: 0 105%; transition: translate 1.3s var(--ease-out) calc(var(--ci) * 0.06s); }
.js .footer-mark.is-in .ch { translate: 0 0; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.to-top {
  text-decoration: none;
  transition: color 0.3s ease;
}
@media (hover: hover) { .to-top:hover { color: var(--ink); } }

/* ---------- Lightbox ---------- */

.lightbox {
  --lb-chrome: 176px;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070707;
  color: var(--ink);
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lb-in 0.5s var(--ease-out) both;
}
@keyframes lb-in { from { opacity: 0; } }

.lightbox::backdrop { background: transparent; }

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 64px var(--gutter) 16px;
  touch-action: pan-y;
}

.lb-media {
  display: block;
  width: min(100%, calc((100svh - var(--lb-chrome)) * var(--r, 1.5)));
  height: auto;
  aspect-ratio: var(--r, 1.5);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-2);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.lb-media.is-loaded { opacity: 1; transform: none; }

.lb-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px var(--gutter) max(20px, env(safe-area-inset-bottom));
}

.lb-caption { min-width: 0; }

.lb-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lb-meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.lb-nav { display: flex; gap: 0.5rem; }

.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(11 11 12 / 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) { .lb-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
.lb-btn .icon { width: 16px; height: 16px; }

.lb-close {
  position: absolute;
  top: 12px;
  right: var(--gutter);
  z-index: 2;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-split] .w-i,
  .js .hero-title .ch,
  .js .hero-in,
  .js .footer-mark .ch {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
  .js .tile .tile-media,
  .js .collage-item { clip-path: none; }
  .js .tile .tile-cap { opacity: 1; translate: 0 0; }
  .js .collage-item img { scale: 1; }
  .reel { transform: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Touch ---------- */

/* Touch press feedback: controls give slightly under the finger. */
@media (hover: none) {
  .btn { transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), scale 0.3s var(--ease-out); }
  .contact-btn, .menu-toggle, .tile-link { transition: scale 0.3s var(--ease-out); }
  .lang-switch button { transition: color 0.35s ease, scale 0.3s var(--ease-out); }
  .filter { transition: color 0.3s ease, border-color 0.3s ease, background-color 0.4s var(--ease-out), scale 0.3s var(--ease-out); }
  .btn:active, .contact-btn:active, .menu-toggle:active, .lang-switch button:active { scale: 0.96; }
  .filter:active { scale: 0.94; }
  .tile-link:active { scale: 0.975; }
}
