/* ==========================================================
   Aramă Marian — Fotografie & Film
   Palette: warm darkroom black + cream + copper (aramă = cupru)
   ========================================================== */

:root {
  --bg: #0d0b09;
  --bg-2: #15120f;
  --bg-3: #1d1915;
  --ink: #efe6d8;
  --ink-2: #c9bfb0;
  --muted: #8a8073;
  --line: rgba(239, 230, 216, .12);
  --copper: #c8794a;
  --copper-2: #e3a47c;
  --copper-dim: rgba(200, 121, 74, .16);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; font-family: var(--f-display); font-weight: 300; color: var(--copper-2); }
::selection { background: var(--copper); color: var(--bg); }
:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 24px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 28px;
}
.rec {
  width: 8px; height: 8px; border-radius: 50%; background: #e2513b; display: inline-block;
  box-shadow: 0 0 0 0 rgba(226, 81, 59, .6); animation: rec 1.6s infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* lines that slide up from a mask */
.line { display: block; overflow: hidden; padding: 0 .14em .16em; margin: 0 -.14em -.16em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--copper); color: #1a0f08; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; }
.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  padding-bottom: 2px;
}
.link-arrow span { transition: transform .4s var(--ease); display: inline-block; }
.link-arrow:hover { background-size: 100% 1px; color: var(--copper-2); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s 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); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
  animation: loader-failsafe 0s 5s forwards; /* never trap the page if scripts fail */
}
html:not(.anim) .loader { display: none; }
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__frame { position: relative; width: 180px; height: 120px; display: grid; place-items: center; }
.loader__count { font-family: var(--f-display); font-size: 56px; font-weight: 300; letter-spacing: -.02em; }
.loader__label {
  position: absolute; bottom: -34px; left: 0; right: 0; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--copper); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #1a0f08; opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--copper); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .1s; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor__icon { position: absolute; width: 26px; height: 26px; color: var(--copper-2); opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .25s, transform .5s var(--ease); }
.cursor.is-icon {
  width: 60px; height: 60px; margin: -30px 0 0 -30px; mix-blend-mode: normal;
  background: rgba(13, 11, 9, .55); box-shadow: inset 0 0 0 1px var(--copper);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cursor.is-icon[data-icon="video"] .cursor__icon--video,
.cursor.is-icon[data-icon="photo"] .cursor__icon--photo { opacity: 1; transform: none; transition-delay: .08s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Exposure meter ---------- */
.meter {
  position: fixed; right: 26px; top: 50%; z-index: 60; transform: translateY(-50%);
  height: 320px; width: 40px; pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.meter.is-visible { opacity: 1; }
.meter::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), var(--copper-dim), var(--line)); }
.meter__scale {
  position: absolute; inset: 0; right: 8px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2);
}
.meter__scale i { display: block; width: 8px; height: 1px; background: var(--ink-2); opacity: .45; }
.meter__scale span { line-height: 1; }
.meter__needle {
  position: absolute; left: -6px; top: 0; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--copper);
  margin-top: -6px; will-change: transform; filter: drop-shadow(0 0 6px rgba(200, 121, 74, .7));
}
.meter__section {
  position: absolute; right: 0; bottom: -38px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2);
}
@media (max-width: 1100px) { .meter { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(13, 11, 9, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 21px; letter-spacing: -.01em; }
.nav__logo em { color: var(--ink-2); margin-left: 4px; }
.nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 18px var(--copper); }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-family: var(--f-display); font-size: clamp(40px, 12vw, 64px); line-height: 1.1; display: flex; align-items: baseline; gap: 14px; }
.menu small { font-family: var(--f-mono); font-size: 12px; color: var(--copper); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 18vh, 180px) var(--gutter) 0; }
.hero__intro {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px;
  position: relative; z-index: 2;
}
.hero__intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.hero__title {
  font-family: var(--f-display); font-weight: 300; margin: 0;
  font-size: clamp(56px, 10.5vw, 176px); line-height: .92; letter-spacing: -.035em;
}
.hero__title em { font-weight: 300; }
.hero__sub { padding-bottom: 14px; max-width: 440px; }
.hero__sub p { margin: 0 0 28px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }
.hero__sub strong { color: var(--ink); font-weight: 500; }
.hero__ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero__stage { height: 100vh; margin-top: clamp(40px, 7vh, 80px); position: relative; }
.hero__frame {
  position: absolute; inset: 0;
  clip-path: inset(0% 20% 40% 20% round 22px);
  overflow: hidden; background: var(--bg-3);
  will-change: clip-path;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }

.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .86); }
.hud .corner { width: 26px; height: 26px; border-color: rgba(255, 255, 255, .75); }
.hud .corner.tl { top: 28px; left: 28px; } .hud .corner.tr { top: 28px; right: 28px; }
.hud .corner.bl { bottom: 28px; left: 28px; } .hud .corner.br { bottom: 28px; right: 28px; }
.hud__top, .hud__bottom { position: absolute; left: 70px; right: 70px; display: flex; justify-content: space-between; gap: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hud__top { top: 32px; } .hud__top > span:first-child { display: flex; align-items: center; gap: 8px; }
.hud__bottom { bottom: 32px; justify-content: center; gap: 36px; }
.hud__focus {
  position: absolute; left: 50%; top: 50%; width: 70px; height: 46px; transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .6);
}
.hud__focus::before, .hud__focus::after { content: ""; position: absolute; background: rgba(255,255,255,.6); }
.hud__focus::before { left: 50%; top: -8px; width: 1px; height: 8px; }
.hud__focus::after { top: 50%; left: -8px; width: 8px; height: 1px; }
.hud { opacity: 0; }

@media (max-width: 860px) {
  .hero__intro { grid-template-columns: 1fr; gap: 28px; }
  .hero__stage { height: 62vh; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .hero__frame { clip-path: inset(0 var(--gutter) 0 var(--gutter) round 14px); }
  .hud { opacity: 1; font-size: 10px; }
  .hud .corner.tl { top: 16px; left: calc(var(--gutter) + 14px); } .hud .corner.tr { top: 16px; right: calc(var(--gutter) + 14px); }
  .hud .corner.bl { bottom: 16px; left: calc(var(--gutter) + 14px); } .hud .corner.br { bottom: 16px; right: calc(var(--gutter) + 14px); }
  .hud__top, .hud__bottom { left: calc(var(--gutter) + 46px); right: calc(var(--gutter) + 46px); }
  .hud__top { top: 20px; } .hud__bottom { bottom: 20px; gap: 14px; }
  .hud__bottom span:nth-child(n+3) { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; margin-top: clamp(60px, 10vh, 120px);
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 36px; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -.02em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { font-style: italic; color: var(--copper-2); }
.marquee__track b { color: var(--copper); font-size: 20px; font-weight: 400; }

/* ---------- Section heads ---------- */
section { position: relative; }
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(40px, 7vh, 80px); }
.section-head h2 {
  font-family: var(--f-display); font-weight: 300; margin: 0;
  font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.03em; max-width: 14ch;
}
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head__note { max-width: 360px; color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .16em; margin: 0 -.08em -.16em; }
.reveal-words .w > span { display: inline-block; will-change: transform; }

/* ---------- Services ---------- */
.services { padding: clamp(100px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); }
.svc-list { border-top: 1px solid var(--line); margin: 0 var(--gutter); }
.svc {
  position: relative; display: grid; grid-template-columns: 80px 1.2fr 1fr 60px; align-items: start; gap: 24px;
  padding: clamp(28px, 4.5vh, 48px) 0; border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--bg-2); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svc:hover::before { transform: scaleY(1); }
.svc__num { font-family: var(--f-mono); font-size: 13px; color: var(--copper); padding-top: 14px; }
.svc__title {
  font-family: var(--f-display); font-weight: 300; margin: 0; letter-spacing: -.03em;
  font-size: clamp(44px, 6.5vw, 108px); line-height: 1; transition: transform .6s var(--ease), color .4s;
}
.svc:hover .svc__title { transform: translateX(14px); color: var(--copper-2); font-style: italic; }
.svc__items { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
.svc__items li { display: flex; gap: 12px; align-items: baseline; }
.svc__items li::before { content: ""; width: 14px; height: 1px; background: var(--copper); flex: none; transform: translateY(-4px); }
.svc__arrow { font-size: 28px; color: var(--muted); padding-top: 10px; text-align: right; transition: transform .5s var(--ease), color .3s; }
.svc:hover .svc__arrow { transform: rotate(45deg); color: var(--copper); }

@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; gap: 10px; }
  .svc__num { padding-top: 0; }
  .svc__arrow { display: none; }
}

/* ---------- Films ---------- */
.films { padding: clamp(80px, 12vh, 140px) 0 0; }
.film-stack { position: relative; }
.film { position: sticky; top: 0; height: 100vh; padding: 10vh var(--gutter); display: flex; align-items: center; }
.film__card {
  position: relative; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); cursor: pointer; transform-origin: 50% 0%; will-change: transform;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, .55);
}
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film__card:hover .film__video { transform: scale(1.04); }
.film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.82) 100%); }
@media (max-width: 860px) { .film__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.88) 85%); } }
.film__meta { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 40px); }
.film__top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; backdrop-filter: blur(6px);
}
.film__bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; }
.film__bottom h3 { font-family: var(--f-display); font-weight: 300; margin: 0; font-size: clamp(42px, 7vw, 120px); line-height: .95; letter-spacing: -.035em; grid-column: 1; }
.film__bottom p { margin: 0; color: var(--ink-2); grid-column: 1; }
.film__play {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 8px; border-radius: 999px; background: rgba(239, 230, 216, .12);
  border: 1px solid rgba(239, 230, 216, .28); backdrop-filter: blur(10px); font-weight: 500; font-size: 14px;
  transition: background .4s, color .4s;
}
.film__play-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--copper); position: relative; }
.film__play-ico::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid #1a0f08; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film__card:hover .film__play { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .film { position: relative; height: auto; padding: 0 var(--gutter) 20px; }
  .film__card { aspect-ratio: 4 / 5; height: auto; }
  .film__bottom { grid-template-columns: 1fr; }
  .film__play { grid-column: 1; grid-row: auto; margin-top: 14px; justify-self: start; }
}

/* ---------- Photos ---------- */
.photos { padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.tabs { position: relative; display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-radius: 999px; }
.tab {
  position: relative; z-index: 1; height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .4s;
}
.tab sup { font-family: var(--f-mono); font-size: 9px; color: var(--muted); margin-left: 3px; transition: color .4s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: #1a0f08; }
.tab.is-active sup { color: rgba(26, 15, 8, .6); }
.tab--soon { opacity: .6; }
.tabs__ink {
  position: absolute; z-index: 0; top: 6px; left: 0; height: 42px; width: 0; border-radius: 999px; background: var(--copper);
  transition: transform .6s var(--ease), width .6s var(--ease);
}
.photos__caption { padding: 0 var(--gutter); color: var(--muted); margin: -40px 0 28px; min-height: 18px; }
.photos__cat { color: var(--copper-2); }

.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(200px, 26vw, 480px);
  grid-auto-flow: dense; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); min-height: 60vh;
}
.g-item {
  position: relative; overflow: hidden; border-radius: 10px; background: var(--bg-3); cursor: zoom-in;
  clip-path: inset(0 0 0 0 round 10px);
}
.g-item img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  transition: filter .6s var(--ease);
  will-change: transform;
}
.g-item .corner { width: 22px; height: 22px; z-index: 2; border-color: var(--ink); opacity: 0; transition: all .5s var(--ease); }
.g-item .corner.tl { top: 30px; left: 30px; } .g-item .corner.tr { top: 30px; right: 30px; }
.g-item .corner.bl { bottom: 30px; left: 30px; } .g-item .corner.br { bottom: 30px; right: 30px; }
.g-item:hover .corner { opacity: 1; }
.g-item:hover .corner.tl { top: 16px; left: 16px; } .g-item:hover .corner.tr { top: 16px; right: 16px; }
.g-item:hover .corner.bl { bottom: 16px; left: 16px; } .g-item:hover .corner.br { bottom: 16px; right: 16px; }
.g-item__idx {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink); opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.g-item:hover .g-item__idx { opacity: 1; transform: none; }
.gallery:hover .g-item img { filter: brightness(.55) saturate(.8); }
.gallery .g-item:hover img { filter: none; }

.gallery__empty {
  grid-column: 1 / -1; grid-row: span 2; display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line); border-radius: 10px; background: radial-gradient(ellipse at center, rgba(200, 60, 40, .10), transparent 65%);
}
.gallery__empty h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 4vw, 56px); margin: 10px 0; letter-spacing: -.02em; }
.gallery__empty p { color: var(--muted); margin: 0 auto; max-width: 380px; }
.safelight { width: 10px; height: 10px; border-radius: 50%; background: #c83c28; box-shadow: 0 0 30px 8px rgba(200, 60, 40, .5); margin: 0 auto; animation: rec 2.4s infinite; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .g-item { grid-column: span 2 !important; grid-row: auto !important; aspect-ratio: var(--ar); }
  .g-item.is-portrait { grid-column: span 1 !important; }
  .g-item img { inset: 0; height: 100%; }
  .gallery__empty { min-height: 340px; grid-column: span 2; }
  .photos__caption { margin-top: -20px; }
  .tabs { border-radius: 18px; }
}

/* ---------- About (quiet) ---------- */
.about { padding: clamp(120px, 18vh, 200px) var(--gutter); background: var(--bg-2); border-top: 1px solid var(--line); }
.about__grid { max-width: 980px; margin: 0 auto; }
.about__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(36px, 6vh, 64px); }
.about__head .label { margin: 0; }
/* Easter egg: tiny periodic-table tile, explains itself on hover */
.about__mono {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); border-radius: 3px; cursor: help; outline: none;
  font-family: var(--f-display); font-size: 15px; color: var(--muted); opacity: .55;
  transition: opacity .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.about__mono small { position: absolute; top: 2px; left: 3px; font-family: var(--f-mono); font-size: 7px; line-height: 1; }
.about__mono i {
  position: absolute; right: 0; top: calc(100% + 10px); white-space: nowrap;
  font-family: var(--f-mono); font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--copper-2);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none;
}
.about__mono:hover, .about__mono:focus-visible { opacity: 1; color: var(--copper-2); border-color: var(--copper); }
.about__mono:hover i, .about__mono:focus-visible i { opacity: 1; transform: none; }
.about__lead {
  font-family: var(--f-display); font-weight: 300; margin: 0 0 40px;
  font-size: clamp(26px, 2.8vw, 44px); line-height: 1.25; letter-spacing: -.015em; max-width: 30ch;
}
.scrub-words .sw { opacity: .16; transition: none; }
.about__text { color: var(--ink-2); max-width: 56ch; font-size: 17px; margin: 0 0 clamp(60px, 9vh, 100px); }

.journey { list-style: none; margin: 0; padding: 0; position: relative; border-top: 1px solid var(--line); }
.journey__item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.journey__place { color: var(--copper-2); padding-top: 4px; }
.journey__item h4 { margin: 0 0 6px; font-weight: 500; font-size: 18px; }
.journey__item p { margin: 0; color: var(--muted); max-width: 60ch; font-size: 15px; }
.journey__item a { color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; white-space: nowrap; }
.journey__item a:hover { color: var(--copper-2); border-color: var(--copper); }
.about__aside { margin: 40px 0 0; color: var(--muted); font-size: 14px; font-style: italic; font-family: var(--f-display); }

.about__intro {
  display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  margin-bottom: clamp(60px, 9vh, 100px);
}
.about__words .about__text { margin-bottom: 0; }
.about__portrait { margin: 0; }
.about__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo .corner { border-color: rgba(239, 230, 216, .7); }
.about__photo .corner.tl { top: 12px; left: 12px; } .about__photo .corner.tr { top: 12px; right: 12px; }
.about__photo .corner.bl { bottom: 12px; left: 12px; } .about__photo .corner.br { bottom: 12px; right: 12px; }
.about__portrait figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
/* Darkroom: the portrait "develops" as it scrolls into view */
html.anim .about__photo img { filter: grayscale(1) brightness(.3) contrast(1.15); transform: scale(1.08); }

.credo { list-style: none; margin: 0 0 clamp(60px, 9vh, 100px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.credo li { background: var(--bg-2); padding: 26px 24px 28px; }
.credo .mono { font-size: 11px; color: var(--copper); letter-spacing: .1em; }
.credo h4 { margin: 18px 0 8px; font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: 30px; line-height: 1.1; color: var(--ink); }
.credo p { margin: 0; color: var(--muted); font-size: 15px; }

/* Extra info: hidden by default, opens on demand */
.more { margin-top: 40px; }
.more__toggle {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 0; background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.more__label { font-family: var(--f-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); transition: color .4s var(--ease); }
.more__hint { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.more__icon { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .4s var(--ease), background .4s var(--ease), transform .6s var(--ease); }
.more__icon::before, .more__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--copper-2); transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.more__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.more__toggle:hover .more__label { color: var(--copper-2); }
.more__toggle:hover .more__icon { border-color: var(--copper); }
.more__toggle:focus-visible { outline: 1px solid var(--copper); outline-offset: 6px; }
.more.is-open .more__icon { background: var(--copper-dim); border-color: var(--copper); transform: rotate(180deg); }
.more.is-open .more__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.more__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease-in-out); }
.more.is-open .more__panel { grid-template-rows: 1fr; }
.more__inner { overflow: hidden; min-height: 0; }
.more__intro { margin: 36px 0 24px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.journey--extra { border-top: 0; }
.more__inner .about__aside { margin-bottom: 10px; }

@media (max-width: 860px) {
  .journey__item { grid-template-columns: 1fr; gap: 8px; }
  .about__intro { grid-template-columns: 1fr; }
  .about__portrait { max-width: 300px; }
  .credo { grid-template-columns: 1fr; }
  .credo li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 20px; }
  .credo h4 { margin: 0 0 4px; font-size: 24px; }
  .credo p { grid-column: 2; }
  .more__toggle { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .more__hint { grid-row: 2; }
  .more__icon { grid-row: 1 / 3; grid-column: 2; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(120px, 20vh, 220px) var(--gutter) 30px; overflow: hidden; }
.contact__title {
  font-family: var(--f-display); font-weight: 300; margin: 0 0 30px;
  font-size: clamp(54px, 11vw, 190px); line-height: .92; letter-spacing: -.04em;
}
.contact__sub { max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); margin: 0 0 clamp(50px, 8vh, 90px); }
.contact__mail {
  display: inline-flex; align-items: center; padding: clamp(18px, 2.4vw, 30px) clamp(26px, 3.5vw, 50px);
  border-radius: 999px; border: 1px solid var(--copper); position: relative; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-size: clamp(22px, 3.4vw, 54px); font-weight: 300; letter-spacing: -.02em;
  transition: color .5s var(--ease);
  max-width: 100%;
}
.contact__mail span { overflow-wrap: anywhere; }
.contact__mail::before {
  content: ""; position: absolute; inset: 0; background: var(--copper); z-index: -1; border-radius: inherit;
  clip-path: circle(0% at 50% 100%); transition: clip-path .8s var(--ease);
}
.contact__mail:hover { color: #1a0f08; }
.contact__mail:hover::before { clip-path: circle(150% at 50% 100%); }
.contact__links { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; }

.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  margin-top: clamp(100px, 16vh, 180px); padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer > :first-child { justify-self: start; }
.footer > :last-child { justify-self: end; text-align: right; }
.footer__note i { color: var(--copper-2); font-family: var(--f-display); }
@media (max-width: 760px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .footer > :first-child, .footer > :last-child { justify-self: center; text-align: center; }
}

/* ---------- Lightbox & Player ---------- */
.lightbox, .player {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 7, 6, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.lightbox.is-open, .player.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.lightbox__fig { margin: 0; width: 100%; height: calc(100vh - 160px); display: grid; place-items: center; padding: 0 var(--gutter); }
.lightbox__fig img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; }
.lightbox__close, .player__close {
  position: absolute; top: 22px; right: var(--gutter); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  display: flex; gap: 10px; align-items: center; color: var(--ink-2); padding: 10px 0; transition: color .3s;
}
.lightbox__close:hover, .player__close:hover { color: var(--copper-2); }
.lightbox__bar { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.lightbox__bar button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: border-color .3s, background .3s; }
.lightbox__bar button:hover { border-color: var(--copper); background: var(--copper-dim); }
.player__wrap { width: min(92vw, calc((100vh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; transform: scale(.94); transition: transform .7s var(--ease); }
.player.is-open .player__wrap { transform: scale(1); }
.player__video { width: 100%; height: 100%; }
.player__title { color: var(--muted); margin-top: 20px; }

/* ---------- Pre-JS state (only when animations are on) ---------- */
html.anim .hero__title .line > span,
html.anim .contact__title .line > span { transform: translateY(110%); }
html.anim .hero__sub, html.anim .hero__intro .eyebrow { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
