/* ==========================================================================
   Felipe Cardona — Portafolio
   Negro editorial + cobre · Cormorant Garamond + Inter
   ========================================================================== */

:root {
  --bg: #111111;
  --bg-2: #161616;
  --bg-3: #1d1d1c;
  --ink: #f5f5f5;
  --ink-2: #c9c7c2;
  --muted: #8a8a8a;
  --line: rgba(245, 245, 245, .12);
  --line-2: rgba(245, 245, 245, .22);
  --copper: #b47a55;
  --copper-2: #d39b74;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--copper); color: #111; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}
.kicker--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0;
}
.display em { font-style: italic; color: var(--copper-2); font-weight: 300; }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 18px 0 0;
}
.h2 em { font-style: italic; color: var(--copper-2); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.6; max-width: 54ch; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 28px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), transform .3s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: #111; }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 11px; }
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.link-u {
  position: relative;
  display: inline-block;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0b0b0b;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
  animation: preloader-safety 0s 4.5s forwards;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__name {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 120px);
  font-weight: 300;
  line-height: .9;
  overflow: hidden;
}
.preloader__name span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.preloader__name span:nth-child(2) { animation-delay: .08s; font-style: italic; color: var(--copper-2); }
.preloader__count {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@keyframes preloader-safety { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: transform .6s var(--ease-out), background-color .4s, backdrop-filter .4s;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.header.is-scrolled { background: rgba(17, 17, 17, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.header.is-scrolled::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span { color: var(--copper-2); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .3s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .5s var(--ease-out), opacity .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0d0d0d;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-menu nav a small { font-family: var(--sans); font-size: 11px; color: var(--copper); letter-spacing: .1em; }
.mobile-menu__foot { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b0b0b;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.12);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 28%),
    linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,0) 70%),
    linear-gradient(90deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 96px);
  padding-top: calc(var(--header-h) + 40px);
}
.hero__title {
  font-size: clamp(56px, 10.5vw, 168px);
  margin: 22px 0 28px;
  max-width: 11ch;
}
.hero__sub { max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 96px);
  z-index: 3;
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}
.hero__caption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); min-height: 1.6em; }
.hero__caption b { color: var(--copper-2); font-weight: 500; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 46px;
  height: 2px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero__dot i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active i { animation: dot 6s linear forwards; }
.hero__dot.is-done i { transform: scaleX(1); }
@keyframes dot { to { transform: scaleX(1); } }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: var(--line-2);
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--copper-2);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollcue { to { top: 100%; } }

/* Split words */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.is-split.is-in .split-word { transform: none; }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); }
.statement__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1.08;
  max-width: 18ch;
  margin: 26px 0 0;
}
.statement__text .w { color: rgba(245,245,245,.16); transition: color .4s; }
.statement__text .w.on { color: var(--ink); }
.statement__text .w.on.c { color: var(--copper-2); font-style: italic; }
.statement__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 24px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
  user-select: none;
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 300;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee__track span::after { content: "✦"; font-size: .4em; color: var(--copper); font-family: var(--sans); }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section { padding: clamp(96px, 12vw, 180px) 0; position: relative; }
.section--tight { padding-top: clamp(64px, 8vw, 110px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head p { margin: 0; color: var(--ink-2); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service {
  position: relative;
  padding: clamp(28px, 3.4vw, 52px) clamp(0px, 2.4vw, 40px) clamp(28px, 3.4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 520px;
}
.service:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); padding-right: 0; }
.service__num { font-size: 12px; color: var(--copper); letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.service__title { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.02; margin: 0; }
.service__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.service__list li {
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color .3s, color .3s;
}
.service:hover .service__list li { border-color: rgba(180,122,85,.5); }
.service__media { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: 190px; }
.service__media button { position: relative; overflow: hidden; background: var(--bg-3); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: grayscale(.35) brightness(.85); }
.service:hover .service__media img { filter: none; }
.service__media button:hover img { transform: scale(1.07); }
.service__more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.service__more:hover { color: var(--copper-2); }
.service__more .count { color: var(--muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  transition: all .35s var(--ease-out);
}
.filter sup { color: var(--copper); margin-left: 4px; }
.filter:hover { border-color: var(--ink-2); color: var(--ink); }
.filter.is-active { background: var(--ink); color: #111; border-color: var(--ink); }
.filter.is-active sup { color: #7a4f33; }

.work-list { border-top: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: 70px 1fr 220px 200px 40px;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .6s var(--ease-out), opacity .4s, color .4s;
}
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(180,122,85,.09), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.work-list:hover .work { color: var(--muted); }
.work-list .work:hover { color: var(--ink); padding-left: 18px; }
.work:hover::before { opacity: 1; }
.work__num { font-size: 12px; color: var(--copper); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.work__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 60px); line-height: 1.02; }
.work__title small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2); border: 1px solid rgba(180,122,85,.45); padding: 4px 9px; border-radius: 999px; margin-left: 14px; vertical-align: middle; white-space: nowrap; }
.work__cat, .work__type { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.work__type { color: var(--muted); }
.work__arrow { justify-self: end; transition: transform .5s var(--ease-out); }
.work:hover .work__arrow { transform: translateX(6px) rotate(-45deg); color: var(--copper-2); }
.work__thumb { display: none; }
.work.is-hidden { display: none; }

.preview {
  position: fixed;
  top: 0; left: 0;
  width: 380px;
  height: 260px;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .35s ease, transform .5s var(--ease-out);
  will-change: transform;
}
.preview.is-on { opacity: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.preview img.is-on { opacity: 1; }

/* ---------- Strip (archivo) ---------- */
.strip-wrap { position: relative; }
.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 var(--gutter) 24px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--copper) transparent;
}
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag * { pointer-events: none; }
.strip::-webkit-scrollbar { height: 3px; }
.strip::-webkit-scrollbar-thumb { background: var(--copper); }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; position: relative; }
.strip figure button { display: block; overflow: hidden; background: var(--bg-3); }
.strip img { height: clamp(260px, 42vw, 520px); width: auto; max-width: none; object-fit: cover; aspect-ratio: var(--ar, 3/2); transition: transform 1.2s var(--ease-out); }
.strip figure:nth-child(3n+2) img { --ar: 4/5; }
.strip figure button:hover img { transform: scale(1.04); }
.strip figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding-top: 10px; letter-spacing: .06em; }
.strip figcaption b { color: var(--ink-2); font-weight: 500; }
.strip-nav { display: flex; gap: 8px; }
.round {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s;
}
.round:hover { background: var(--ink); color: #111; border-color: var(--ink); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 32px 28px 8px 0; position: relative; }
.why__item + .why__item { padding-left: 28px; border-left: 1px solid var(--line); }
.why__item b { display: block; font-family: var(--serif); font-size: 56px; font-weight: 300; color: var(--copper-2); line-height: 1; margin-bottom: 20px; }
.why__item h3 { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.why__item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 56px; }
.process__line { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line); }
.process__line i { position: absolute; inset: 0; background: var(--copper); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -44px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.on::before { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 6px rgba(180,122,85,.15); }
.step span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); margin: 8px 0 10px; line-height: 1.05; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.about__img { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-3); }
.about__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about__tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(17,17,17,.75); backdrop-filter: blur(8px);
  padding: 10px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.about__text p { color: var(--ink-2); margin: 0 0 18px; max-width: 58ch; }
.about__text p:first-of-type { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink); }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
.about__facts div { padding: 18px 0; }
.about__facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.about__facts span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact { background: #0c0c0c; position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .14; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0c0c0c 0%, rgba(12,12,12,.6) 50%, #0c0c0c 100%); }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 110px); }
.contact__title { font-size: clamp(48px, 7vw, 110px); margin: 22px 0 26px; }
.contact__direct { display: grid; gap: 14px; margin-top: 40px; }
.contact__direct a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .3s, padding .5s var(--ease-out); }
.contact__direct a span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__direct a:hover { color: var(--copper-2); padding-left: 10px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.field { position: relative; padding-top: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; top: 34px; left: 0; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .35s var(--ease-out); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 14px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 24px, calc(100% - 7px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #161616; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label, .field input[type="date"] + label {
  top: 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2);
}
.field input[type="date"] { color-scheme: dark; }
.hp { position: absolute; left: -9999px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.form__status { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form__status.ok { color: #9fd3a8; }
.form__status.err { color: #e7a08a; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line); }
.footer__big {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(54px, 13vw, 220px); line-height: .85; letter-spacing: -.02em;
  margin: 0 0 clamp(40px, 6vw, 80px);
  white-space: nowrap;
}
.footer__big em { font-style: italic; color: var(--copper-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__grid h4 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.footer__grid a, .footer__grid p { display: block; margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.footer__grid a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.footer__bottom button { color: var(--muted); font-size: 12px; user-select: none; -webkit-user-select: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }
.js [data-clip] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0); }
.js [data-clip] img { transform: scale(1.25); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-clip].is-in img { transform: scale(1); }
.js .reveal-all [data-reveal], .js .reveal-all [data-clip] { opacity: 1; transform: none; clip-path: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: normal; }
.cursor.is-ready { opacity: 1; }
.cursor__ring {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(245,245,245,.5);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .35s, border-color .35s;
}
.cursor__ring span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #111; opacity: 0; transition: opacity .25s; font-weight: 600; }
.cursor.is-view .cursor__ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--copper-2); border-color: var(--copper-2); }
.cursor.is-view .cursor__ring span { opacity: 1; }
.cursor.is-link .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--copper-2); }
.cursor__dot { position: absolute; top: -2px; left: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--copper-2); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8,8,8,.96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .45s, visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top, .lightbox__bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); gap: 12px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; animation: lbin .7s var(--ease-out); }
.lightbox__stage .video { width: min(1200px, 100%); aspect-ratio: 16/9; background: #000; }
.lightbox__stage .video.is-vertical { width: auto; height: 100%; aspect-ratio: 9/16; max-height: 82vh; }
.lightbox__stage iframe { width: 100%; height: 100%; border: 0; }
@keyframes lbin { from { opacity: 0; transform: scale(.97); } }
.lightbox__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.lightbox__close:hover { background: var(--ink); color: #111; }
.lightbox__nav { display: flex; gap: 8px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  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 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); }
}

/* ---------- Project page ---------- */
.p-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.p-hero__bg { position: absolute; inset: 0; }
.p-hero__bg img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,1) 0%, rgba(17,17,17,.5) 40%, rgba(17,17,17,.2) 100%); }
.p-hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; padding-top: calc(var(--header-h) + 40px); }
.p-hero__title { font-size: clamp(56px, 11vw, 180px); margin: 18px 0 18px; }
.p-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.p-hero__meta b { color: var(--copper-2); font-weight: 500; }
.p-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 8vw, 120px) 0; }
.p-specs { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.p-specs div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.p-specs span { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.p-desc { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.25; margin: 0 0 32px; }
.p-video { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; display: block; width: 100%; }
.p-video.is-vertical { aspect-ratio: 9/16; max-width: 420px; }
.p-video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease-out), opacity .5s; }
.p-video:hover img { transform: scale(1.04); opacity: .9; }
.p-video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.p-video__play span { width: 104px; height: 104px; border-radius: 50%; background: var(--ink); color: #111; display: grid; place-items: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; transition: transform .5s var(--ease-out), background .3s; }
.p-video:hover .p-video__play span { transform: scale(1.08); background: var(--copper-2); }
.p-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding-bottom: clamp(64px, 8vw, 120px); }
.p-gallery figure { margin: 0; overflow: hidden; background: var(--bg-3); }
.p-gallery button { display: block; width: 100%; height: 100%; }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.p-gallery button:hover img { transform: scale(1.04); }
.p-gallery figure:nth-child(5n+1) { grid-column: span 12; aspect-ratio: 21/9; }
.p-gallery figure:nth-child(5n+2), .p-gallery figure:nth-child(5n+3) { grid-column: span 6; aspect-ratio: 4/3; }
.p-gallery figure:nth-child(5n+4) { grid-column: span 5; aspect-ratio: 4/5; }
.p-gallery figure:nth-child(5n) { grid-column: span 7; aspect-ratio: auto; }
.p-next { display: block; position: relative; overflow: hidden; min-height: 60vh; border-top: 1px solid var(--line); }
.p-next__bg { position: absolute; inset: 0; opacity: .35; transition: opacity .8s, transform 1.6s var(--ease-out); }
.p-next__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-next:hover .p-next__bg { opacity: .55; transform: scale(1.03); }
.p-next__inner { position: relative; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 60px var(--gutter); }
.p-next__title { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 10vw, 150px); line-height: .95; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .work { grid-template-columns: 50px 1fr 160px 30px; }
  .work__type { display: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__item { padding-bottom: 32px; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .section-head, .statement__grid, .about, .contact__grid, .p-body { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; min-height: 0; }
  .process { grid-template-columns: 1fr; gap: 34px; padding-top: 0; padding-left: 34px; }
  .process__line { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .process__line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step::before { top: 6px; left: -34px; }
  .hero__meta { left: var(--gutter); right: auto; bottom: auto; top: calc(var(--header-h) + 18px); justify-items: start; text-align: left; }
  .hero__scroll { display: none; }
  .preview { display: none; }
  .work { grid-template-columns: 1fr; gap: 14px; padding: 24px 0 28px; }
  .work-list:hover .work { color: var(--ink); }
  .work-list .work:hover { padding-left: 0; }
  .work__num { display: none; }
  .work__thumb { display: block; order: -1; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
  .work__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .work__arrow { display: none; }
  .work__cat::after { content: " · " attr(data-type); color: var(--muted); }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__img { max-width: 520px; }
  .p-gallery figure { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat + .stat { padding-left: 12px; }
  .why { grid-template-columns: 1fr; }
  .why__item + .why__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .service__media { height: 150px; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Only truly intrusive effects are reduced */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__slide img { transition: none; transform: none; }
}
