:root {
  --black: #000;
  --black-2: #000;
  --white: #ffffff;
  --paper: #f3f1ec;
  --paper-2: #e9e6de;
  --muted: #807f79;
  --line: rgba(0, 0, 0, .18);
  --line-dark: rgba(255, 255, 255, .22);
  --accent: #f26722;
  --accent-soft: #ffb11b;
  --header-h: 88px;
  --page-pad: clamp(22px, 4.2vw, 72px);
  --section-y: clamp(105px, 13vw, 210px);
  --ease: cubic-bezier(.2, .78, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open,
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, picture { display: block; width: 100%; }
img, video, picture {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
figure, h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
#app { min-height: 100svh; }

/* Loader + transitions */
.loader,
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
}
.loader { transition: opacity .55s var(--ease), visibility .55s; }
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo,
.page-transition img { width: min(21vw, 162px); height: auto; animation: logoPulse 1s ease-in-out infinite alternate; }
.loader__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  animation: loadingLine 1.15s var(--ease-out) forwards;
}
.page-transition { z-index: 900; opacity: 0; visibility: hidden; transform: translateY(100%); transition: transform .65s var(--ease-out), opacity .25s, visibility .65s; }
.page-transition.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
@keyframes logoPulse { from { opacity: .28; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes loadingLine { to { width: 100%; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 140; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease), transform .4s var(--ease);
}
.site-header.is-scrolled,
.site-header--solid {
  height: 72px;
  background: rgba(0, 0, 0, .92);
  border-color: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; }
.brand img { width: auto; height: 51px; object-fit: contain; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand img,
.site-header--solid .brand img { height: 42px; }
body[data-page="project"] .site-header:not(.is-scrolled) {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(28px, 3.5vw, 58px); }
.site-nav a {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
}
.site-nav a span { font-size: 8px; opacity: .48; transform: translateY(-1px); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 11px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; position: relative; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { position: absolute; left: 8px; width: 28px; height: 1px; background: currentColor; transition: top .3s, transform .3s; }
.menu-button span:first-child { top: 17px; }
.menu-button span:nth-child(2) { top: 27px; }
.menu-button[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Global layout */
.section-shell { width: min(100%, 1660px); margin-inline: auto; padding-inline: var(--page-pad); }
.section-light { background: var(--paper); color: var(--black); }
.section-dark { background: var(--black); color: var(--white); }
.section-index { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.section-note { align-self: end; justify-self: end; font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.arrow-link { display: inline-flex; width: max-content; align-items: center; gap: 22px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 500; letter-spacing: .16em; transition: gap .3s var(--ease), opacity .3s; }
.arrow-link:hover { gap: 34px; opacity: .65; }
.arrow-link--light { color: #fff; }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #000; color: #fff; }
.hero__fallback,
.hero__video,
.hero__veil,
.hero__grain { position: absolute; inset: 0; }
.hero__fallback { z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.35s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture,
.hero-slide img { height: 100%; }
.hero-slide img { object-fit: cover; transform: scale(1.04); animation: heroDrift 12s linear infinite alternate; }
.hero__video { z-index: 1; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero.has-video .hero__video { opacity: 1; }
.hero__veil { z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.06) 44%, rgba(0,0,0,.55)); }
.hero__grain { z-index: 3; opacity: .17; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.hero__logo-wrap { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: calc(var(--header-h) + 30px) var(--page-pad) 100px; }
.hero__logo { width: clamp(175px, 22vw, 355px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.2)); }
.hero__meta { position: absolute; z-index: 5; left: var(--page-pad); right: var(--page-pad); bottom: 28px; display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.38); font-size: 9px; letter-spacing: .16em; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); font-size: 8px; letter-spacing: .18em; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 38px; overflow: hidden; background: rgba(255,255,255,.28); }
.scroll-cue b { position: absolute; inset: 0; display: block; background: #fff; transform: translateY(-100%); animation: scrollDrop 1.8s infinite var(--ease); }
@keyframes heroDrift { to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
@keyframes scrollDrop { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Intro */
.intro { padding: var(--section-y) 0; }
.intro__grid { display: grid; grid-template-columns: minmax(110px, .65fr) 4fr; gap: clamp(30px, 6vw, 100px); }
.intro__content { display: grid; grid-template-columns: 2.3fr 1fr; column-gap: clamp(45px, 8vw, 140px); }
.intro__kicker { grid-column: 1 / -1; margin-bottom: clamp(36px, 6vw, 80px); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.intro__title { max-width: 16ch; font-size: clamp(44px, 6.5vw, 104px); font-weight: 400; line-height: .98; letter-spacing: -.058em; }
.intro__aside { align-self: end; display: grid; gap: 34px; max-width: 39ch; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.55; }

/* Metrics */
.metrics { padding: 0 0 clamp(105px, 13vw, 190px); }
.metrics__topline { display: flex; justify-content: space-between; margin: 0 var(--page-pad); padding: 28px 0; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.54); font-size: 9px; letter-spacing: .16em; }
.metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { min-height: clamp(310px, 30vw, 470px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 4vw, 66px) clamp(20px, 3.2vw, 54px); border-left: 1px solid var(--line-dark); }
.metric:last-child { border-right: 1px solid var(--line-dark); }
.metric__number { display: flex; align-items: flex-end; gap: 12px; }
.metric strong { font-size: clamp(84px, 10vw, 170px); font-weight: 300; line-height: .75; letter-spacing: -.09em; }
.metric em { padding-bottom: .12em; font-size: clamp(20px, 2.2vw, 37px); font-weight: 300; font-style: normal; }
.metric > div { display: grid; gap: 7px; }
.metric b { font-size: 10px; letter-spacing: .16em; }
.metric small { color: rgba(255,255,255,.48); font-size: 11px; }

/* Section headings */
.section-heading { display: grid; grid-template-columns: minmax(110px, .65fr) 2.4fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; margin-bottom: clamp(65px, 9vw, 140px); }
.section-heading h2 { max-width: 13ch; font-size: clamp(48px, 6.9vw, 110px); font-weight: 400; line-height: .94; letter-spacing: -.06em; }
.section-heading .arrow-link { align-self: end; justify-self: end; }
.section-heading--light { color: #fff; }
.projects-section .section-heading .arrow-link {
  font-size: clamp(12px, .95vw, 14px);
  font-weight: 800;
}

/* Projects rail */
.projects-section { padding: var(--section-y) 0 clamp(100px, 11vw, 170px); overflow: hidden; }
.project-rail-wrap { padding-left: var(--page-pad); }
.project-rail { display: flex; gap: clamp(16px, 2vw, 32px); overflow-x: auto; padding-right: var(--page-pad); scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; cursor: grab; }
.project-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.project-rail::-webkit-scrollbar { display: none; }
.project-card { flex: 0 0 min(69vw, 780px); scroll-snap-align: start; }
.project-card--feature { flex-basis: min(76vw, 940px); }
.project-card--portrait { flex-basis: min(50vw, 590px); }
.project-card figure { position: relative; height: clamp(470px, 58vw, 760px); overflow: hidden; background: #000; }
.project-card--feature figure { height: clamp(480px, 55vw, 760px); }
.project-card--portrait figure { height: clamp(510px, 60vw, 820px); }
.project-card picture,
.project-card img,
.project-card video { height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.project-card picture img { height: 100%; object-fit: cover; }
.project-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.56)); }
.project-card__number { position: absolute; top: 23px; left: 25px; z-index: 2; font-size: 10px; letter-spacing: .15em; }
.project-card figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 40px; padding: clamp(22px, 3vw, 44px); color: #fff; }
.project-card figcaption > div { display: grid; gap: 8px; }
.project-card figcaption > div:last-child { align-content: end; justify-items: end; text-align: right; }
.project-card figcaption span { font-size: clamp(26px, 3.2vw, 49px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.project-card figcaption small { font-size: 9px; letter-spacing: .13em; color: rgba(255,255,255,.72); }
.project-card__open { position: absolute; z-index: 3; top: 50%; left: 50%; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #000; font-style: normal; font-size: 20px; opacity: 0; transform: translate(-50%, -40%) scale(.8); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.project-card:hover img,
.project-card:hover picture,
.project-card:hover video,
.project-card:focus-visible img,
.project-card:focus-visible picture,
.project-card:focus-visible video { transform: scale(1.08); filter: brightness(.82); }
.project-card:hover .project-card__open,
.project-card:focus-visible .project-card__open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rail-footer { display: flex; align-items: center; justify-content: space-between; padding: 26px var(--page-pad) 0 0; }
.rail-footer > p { color: rgba(255,255,255,.46); font-size: 9px; letter-spacing: .16em; }
.rail-controls { display: flex; align-items: center; gap: 13px; }
.rail-controls button { width: 48px; height: 48px; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; transition: background .3s, color .3s; }
.rail-controls button:hover { background: #fff; color: #000; }
.rail-controls span { min-width: 55px; text-align: center; font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.55); }

/* Placeholder visuals */
.placeholder-visual { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; }
.placeholder-visual--grid { background-color: #000; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 38px 38px; }
.placeholder-visual__logo { position: absolute; top: 50%; left: 50%; font-size: clamp(110px, 15vw, 230px); font-weight: 900; line-height: .68; letter-spacing: -.09em; opacity: .1; transform: translate(-50%, -50%); }
.placeholder-visual--orange { background: var(--accent); color: #000; }
.placeholder-visual__line { position: absolute; width: 140%; height: 1px; left: -20%; top: 50%; background: rgba(0,0,0,.45); transform: rotate(-35deg); box-shadow: 0 -100px rgba(0,0,0,.19), 0 100px rgba(0,0,0,.19), 0 -200px rgba(0,0,0,.1), 0 200px rgba(0,0,0,.1); }
.placeholder-visual__line--reverse { transform: rotate(22deg); }
.placeholder-visual--plan { background: #dedbd3; color: #000; }
.placeholder-plan { position: absolute; inset: 13%; border: 1px solid rgba(0,0,0,.4); }
.placeholder-plan::before, .placeholder-plan::after, .placeholder-plan i { content: ""; position: absolute; display: block; border-color: rgba(0,0,0,.32); }
.placeholder-plan::before { left: 32%; top: 0; bottom: 0; border-left: 1px solid; }
.placeholder-plan::after { left: 0; right: 0; top: 58%; border-top: 1px solid; }
.placeholder-plan i:nth-child(1) { left: 32%; right: 0; top: 24%; border-top: 1px solid; }
.placeholder-plan i:nth-child(2) { left: 72%; top: 24%; bottom: 58%; border-left: 1px solid; }
.placeholder-plan i:nth-child(3) { left: 14%; top: 58%; bottom: 0; border-left: 1px solid; }
.placeholder-plan i:nth-child(4) { left: 14%; right: 32%; bottom: 22%; border-top: 1px solid; }
.placeholder-plan--offset { inset: 8% 20% 18% 7%; transform: rotate(3deg); }
.placeholder-visual--black { background: #000; }
.placeholder-word { position: absolute; left: -2%; bottom: -8%; font-size: clamp(170px, 24vw, 360px); font-weight: 900; letter-spacing: -.12em; color: rgba(255,255,255,.08); }
.placeholder-visual--paper { background: #e6e3dc; color: #000; }
.placeholder-columns { position: absolute; inset: 14% 12%; display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 8%; align-items: end; }
.placeholder-columns i { display: block; border: 1px solid rgba(0,0,0,.35); border-bottom: 8px solid rgba(0,0,0,.55); }
.placeholder-columns i:nth-child(1) { height: 48%; }
.placeholder-columns i:nth-child(2) { height: 82%; }
.placeholder-columns i:nth-child(3) { height: 63%; }

/* Manifesto */
.manifesto { position: relative; overflow: hidden; padding: clamp(105px, 14vw, 220px) 0; }
.manifesto__track { position: absolute; top: 0; left: 0; display: flex; width: max-content; white-space: nowrap; font-size: clamp(65px, 10vw, 165px); font-weight: 900; line-height: .75; letter-spacing: -.075em; color: rgba(0,0,0,.055); animation: marquee 26s linear infinite; }
.manifesto__content { position: relative; display: grid; grid-template-columns: minmax(110px, .65fr) 4fr; gap: clamp(30px, 6vw, 100px); padding-top: clamp(50px, 7vw, 100px); }
.manifesto blockquote { max-width: 16ch; font-size: clamp(43px, 6.6vw, 105px); font-weight: 400; line-height: .98; letter-spacing: -.057em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Studio */
.studio { padding: var(--section-y) 0; }
.studio .section-note {
  max-width: 34ch;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.35;
  letter-spacing: .02em;
}
.studio__story { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(55px, 12vw, 190px); padding-bottom: clamp(85px, 11vw, 170px); }
.studio__lead { font-size: clamp(31px, 4.25vw, 67px); line-height: 1.05; letter-spacing: -.045em; }
.studio__copy { display: grid; align-content: start; gap: 1.5em; font-size: clamp(16px, 1.38vw, 21px); line-height: 1.55; }
.services-stack { border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: minmax(55px, .4fr) 1.7fr 1.3fr 40px; gap: clamp(20px, 4vw, 66px); align-items: center; min-height: clamp(190px, 19vw, 280px); border-bottom: 1px solid var(--line); transition: background .4s var(--ease), padding .4s var(--ease); }
.service-row::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #000; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.service-row > * { position: relative; z-index: 1; }
.service-row__index { font-size: 10px; letter-spacing: .16em; }
.service-row h3 { max-width: 12ch; font-size: clamp(31px, 4vw, 64px); font-weight: 400; line-height: .96; letter-spacing: -.05em; }
.service-row p { max-width: 43ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.service-row i { justify-self: end; font-size: 20px; font-style: normal; }
.service-row:hover { color: #fff; }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover p { color: rgba(255,255,255,.62); }
.service-row--accent::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 4px; background: var(--accent); z-index: 3; }

/* Process */
.process { padding: var(--section-y) 0; }
.process__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(55px, 8vw, 125px); }
.process__visual { position: sticky; top: calc(var(--header-h) + 34px); align-self: start; }
.process__images { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.process__images > picture,
.process__images > img,
.process__images > video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.1s var(--ease-out); }
.process__images > picture img { height: 100%; object-fit: cover; opacity: 1; transform: none; }
.process__images > picture.is-active,
.process__images > img.is-active,
.process__images > video.is-active { opacity: 1; transform: scale(1); }
.process__visual > span { display: block; margin-top: 16px; color: rgba(255,255,255,.46); font-size: 9px; letter-spacing: .16em; }
.process__content > .section-index { margin-bottom: clamp(45px, 6vw, 85px); }
.process-list { border-top: 1px solid var(--line-dark); }
.process-item { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 14px 28px; padding: 30px 0; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: #fff; text-align: left; cursor: pointer; }
.process-item > span { grid-row: 1 / 3; font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.4); }
.process-item b { font-size: clamp(30px, 3.4vw, 52px); font-weight: 400; letter-spacing: -.04em; transition: transform .35s var(--ease); }
.process-item small { max-height: 0; overflow: hidden; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.55; opacity: 0; transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.process-item.is-active b { transform: translateX(10px); }
.process-item.is-active small { max-height: 80px; margin-top: 4px; opacity: 1; }

/* Team */
.team { padding: var(--section-y) 0; }
.team__heading { display: flex; justify-content: space-between; margin-bottom: clamp(48px, 7vw, 100px); padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 46px); }
.person__photo { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: var(--paper-2); }
.person__photo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px); background-size: 36px 36px; }
.person__photo--two::before { background-size: 54px 54px; transform: rotate(4deg) scale(1.1); }
.person__photo span { position: relative; font-size: clamp(100px, 15vw, 245px); font-weight: 900; letter-spacing: -.1em; color: rgba(0,0,0,.11); }
.person__photo small { position: absolute; left: 22px; bottom: 20px; font-size: 8px; letter-spacing: .16em; color: var(--muted); }
.person__meta { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 12px; }
.person h3 { font-size: clamp(22px, 2.1vw, 34px); font-weight: 400; letter-spacing: -.03em; }
.person p { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

/* Contact + footer */
.contact { position: relative; min-height: 90svh; display: flex; align-items: center; overflow: hidden; padding: clamp(115px, 14vw, 210px) 0 70px; }
.contact__grid-bg { position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: clamp(45px, 6vw, 92px) clamp(45px, 6vw, 92px); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
.contact__inner { position: relative; width: 100%; }
.contact h2 { max-width: 11ch; margin: clamp(55px, 8vw, 115px) 0; font-size: clamp(60px, 9.6vw, 155px); font-weight: 400; line-height: .88; letter-spacing: -.075em; }
.contact__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.contact__actions a { display: flex; justify-content: space-between; align-items: center; min-height: 105px; padding: 0 28px 0 0; font-size: 11px; letter-spacing: .15em; transition: background .35s, padding .35s; }
.contact__actions a + a { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.contact__actions a:hover,
.contact__actions a:focus-visible { background: #fff; color: #000; padding-inline: 28px; }
.contact__actions i { font-size: 20px; font-style: normal; }
.contact__meta { display: flex; justify-content: space-between; margin-top: 28px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .15em; }
.site-footer { min-height: 130px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 25px var(--page-pad); background: #000; color: rgba(255,255,255,.55); border-top: 1px solid var(--line-dark); font-size: 9px; letter-spacing: .14em; }
.site-footer img { width: auto; height: 58px; }
.site-footer span { justify-self: center; }
.site-footer a { justify-self: end; color: #fff; }

/* Projects archive */
.archive-hero { padding: clamp(165px, 18vw, 260px) 0 clamp(90px, 10vw, 150px); }
.archive-hero__grid { display: grid; grid-template-columns: minmax(110px, .65fr) 3fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.archive-hero h1 { font-size: clamp(82px, 13vw, 210px); font-weight: 400; line-height: .72; letter-spacing: -.09em; }
.archive-hero__lead { margin-top: clamp(38px, 5vw, 65px); max-width: 42ch; font-size: clamp(18px, 1.7vw, 25px); color: var(--muted); }
.archive-hero__count { justify-self: end; display: grid; justify-items: end; gap: 5px; }
.archive-hero__count strong { font-size: clamp(60px, 7vw, 110px); font-weight: 300; line-height: .8; letter-spacing: -.08em; }
.archive-hero__count span { font-size: 9px; letter-spacing: .15em; }
.archive { padding-bottom: var(--section-y); }
.archive__toolbar { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 34px); padding-top: clamp(35px, 5vw, 70px); }
.archive-card { min-width: 0; }
.archive-card--wide { grid-column: span 2; }
.archive-card figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.archive-card--wide figure { aspect-ratio: 16 / 8; }
.archive-card--tall figure { aspect-ratio: 4 / 5; }
.archive-card picture,
.archive-card img,
.archive-card video { height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.archive-card picture img { height: 100%; object-fit: cover; }
.archive-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(0,0,0,.65)); }
.archive-card__id { position: absolute; top: 20px; left: 22px; z-index: 2; font-size: 9px; letter-spacing: .15em; }
.archive-card figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 42px); color: #fff; }
.archive-card figcaption h2 { font-size: clamp(28px, 3.6vw, 58px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.archive-card figcaption p { margin-top: 8px; color: rgba(255,255,255,.66); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.archive-card > figure > i { position: absolute; z-index: 3; right: 26px; top: 25px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; font-style: normal; opacity: 0; transform: scale(.75); transition: opacity .35s, transform .35s; }
.archive-card:hover img,
.archive-card:hover picture,
.archive-card:hover video,
.archive-card:focus-visible img,
.archive-card:focus-visible picture,
.archive-card:focus-visible video { transform: scale(1.07); filter: brightness(.8); }
.archive-card:hover > figure > i,
.archive-card:focus-visible > figure > i { opacity: 1; transform: scale(1); }
.archive-card .placeholder-visual figcaption { color: inherit; }
.archive-card .placeholder-visual--orange figcaption,
.archive-card .placeholder-visual--paper figcaption,
.archive-card .placeholder-visual--plan figcaption { color: #000; }
.archive-card .placeholder-visual--orange figcaption p,
.archive-card .placeholder-visual--paper figcaption p,
.archive-card .placeholder-visual--plan figcaption p { color: rgba(0,0,0,.55); }
.archive-cta { padding: clamp(85px, 11vw, 160px) 0; }
.archive-cta .section-shell { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.archive-cta p { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.5); }
.archive-cta a { display: flex; align-items: center; gap: 30px; font-size: clamp(42px, 7vw, 105px); font-weight: 300; letter-spacing: -.06em; }

/* Project detail */
.project-hero { position: relative; min-height: 100svh; overflow: hidden; background: #000; color: #fff; }
.project-hero > picture,
.project-hero > img,
.project-hero > video { position: absolute; inset: 0; height: 100%; object-fit: cover; animation: projectHero 12s linear infinite alternate; }
.project-hero > picture img { height: 100%; object-fit: cover; }
.project-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.03) 50%, rgba(0,0,0,.57)); }
.project-hero__meta { position: absolute; top: calc(var(--header-h) + 36px); left: var(--page-pad); right: var(--page-pad); display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.34); font-size: 9px; letter-spacing: .16em; }
.project-hero__title { position: absolute; left: var(--page-pad); bottom: clamp(55px, 8vw, 105px); }
.project-hero__title p { margin-bottom: 18px; font-size: 9px; letter-spacing: .16em; }
.project-hero__title h1 { font-size: clamp(88px, 15vw, 230px); font-weight: 400; line-height: .68; letter-spacing: -.09em; }
.project-hero__back { position: absolute; right: var(--page-pad); bottom: 42px; font-size: 9px; letter-spacing: .15em; }
@keyframes projectHero { to { transform: scale(1.055); } }
.project-summary { padding: var(--section-y) 0; }
.project-summary__grid { display: grid; grid-template-columns: .85fr 1.8fr; gap: clamp(70px, 14vw, 220px); align-items: start; }
.project-facts { position: sticky; top: 110px; }
.project-facts .section-index { margin-bottom: 35px; }
.project-facts dl { border-top: 1px solid var(--line); }
.project-facts dl > div { display: grid; grid-template-columns: 115px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: 8px; letter-spacing: .15em; }
.project-facts dd { font-size: 13px; }
.project-description { display: grid; gap: 34px; }
.project-description__lead { font-size: clamp(34px, 4.8vw, 75px); line-height: 1.02; letter-spacing: -.05em; }
.project-description > p:not(.project-description__lead):not(.project-description__note) { max-width: 57ch; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.55; }
.project-description__note { max-width: 58ch; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.project-gallery-detail { padding-bottom: var(--section-y); }
.project-gallery-detail__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 30px); }
.detail-image { position: relative; grid-column: span 6; overflow: hidden; cursor: zoom-in; }
.detail-image--wide { grid-column: span 12; }
.detail-image picture,
.detail-image img,
.detail-image video { height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.detail-image picture img { height: 100%; object-fit: cover; }
.detail-image--wide picture,
.detail-image--wide img,
.detail-image--wide video { aspect-ratio: 16 / 9; }
.detail-image:hover img,
.detail-image:hover picture,
.detail-image:hover video { transform: scale(1.025); }
.detail-image figcaption { display: flex; justify-content: space-between; padding-top: 10px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.project-process-band { position: relative; min-height: 85svh; display: flex; align-items: flex-end; overflow: hidden; }
.project-process-band__image { position: absolute; inset: 0; }
.project-process-band__image img { height: 100%; object-fit: cover; filter: grayscale(1) brightness(.45); }
.project-process-band__content { position: relative; width: 100%; padding-bottom: clamp(70px, 9vw, 135px); }
.project-process-band blockquote { max-width: 17ch; margin-top: clamp(45px, 7vw, 90px); font-size: clamp(42px, 6.7vw, 108px); font-weight: 400; line-height: .98; letter-spacing: -.057em; }
.project-navigation { padding: clamp(55px, 8vw, 105px) 0; }
.project-navigation .section-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project-navigation a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 22px; padding: 32px 0; border-top: 1px solid var(--line); }
.project-navigation a:last-child { grid-template-columns: 1fr auto; text-align: right; }
.project-navigation a span { grid-row: 1 / 3; font-size: 24px; }
.project-navigation a small { font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.project-navigation a b { font-size: clamp(22px, 2.4vw, 38px); font-weight: 400; letter-spacing: -.035em; }
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 70px var(--page-pad) 45px; background: rgba(0,0,0,.96); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1500px, 92vw); max-height: 80vh; object-fit: contain; }
.lightbox p { margin-top: 16px; color: rgba(255,255,255,.58); font-size: 9px; letter-spacing: .15em; }
.lightbox__close { position: absolute; top: 18px; right: var(--page-pad); width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 30px; cursor: pointer; }

/* Admin mockup */
.admin-page { min-height: 100svh; display: grid; grid-template-columns: 270px 1fr; background: #eeeae3; }
.admin-sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 34px 28px; background: #000; color: #fff; }
.admin-brand { display: flex; align-items: flex-end; gap: 16px; }
.admin-brand img { width: auto; height: 64px; }
.admin-brand span { padding-bottom: 3px; font-size: 9px; letter-spacing: .16em; color: rgba(255,255,255,.5); }
.admin-sidebar nav { display: grid; margin-top: 90px; }
.admin-sidebar nav a { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 12px; }
.admin-sidebar nav a span { font-size: 8px; }
.admin-sidebar nav a.is-active { color: #fff; }
.admin-sidebar > p { margin-top: auto; color: rgba(255,255,255,.32); font-size: 8px; line-height: 1.7; letter-spacing: .13em; }
.admin-main { padding: 58px clamp(30px, 6vw, 95px) 90px; }
.admin-header { display: flex; justify-content: space-between; align-items: end; }
.admin-header h1 { margin-top: 10px; font-size: clamp(55px, 7vw, 105px); font-weight: 400; line-height: .9; letter-spacing: -.07em; }
.admin-header button { border: 0; padding: 17px 22px; background: #000; color: #fff; font-size: 9px; letter-spacing: .14em; cursor: pointer; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-stats article { min-height: 135px; display: flex; justify-content: space-between; flex-direction: column; padding: 22px; border-left: 1px solid var(--line); }
.admin-stats article:last-child { border-right: 1px solid var(--line); }
.admin-stats span { font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.admin-stats strong { font-size: 46px; font-weight: 300; letter-spacing: -.06em; }
.admin-projects { margin-top: 55px; border-top: 1px solid var(--line); }
.admin-project { display: grid; grid-template-columns: 130px 1.5fr 1fr auto; gap: 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.admin-project__thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.admin-project__thumb img { height: 100%; object-fit: cover; }
.admin-project__thumb--placeholder { display: grid; place-items: center; font-size: 36px; color: #aaa; }
.admin-project > div:nth-child(2) > span { font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.admin-project h2 { margin-top: 8px; font-size: 27px; font-weight: 400; letter-spacing: -.035em; }
.admin-project p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.admin-project__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-project__tags span { padding: 7px 8px; background: #dfdcd4; font-size: 7px; letter-spacing: .1em; }
.admin-project--live .admin-project__tags span:first-child { background: #cce0cd; }
.admin-project button { border: 0; border-bottom: 1px solid; background: transparent; padding: 6px 0; font-size: 8px; letter-spacing: .14em; cursor: pointer; }

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .menu-button { display: block; }
  .site-header.is-scrolled, .site-header--solid { height: 68px; }
  .brand img { height: 44px; }
  .site-nav { position: fixed; inset: 0; z-index: 1; display: grid; place-content: center; gap: 0; background: #000; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { justify-content: center; min-width: 270px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 25px; font-weight: 400; letter-spacing: -.025em; }
  .site-nav a span { font-size: 9px; }
  .site-nav a::after { display: none; }
  .intro__grid,
  .manifesto__content { grid-template-columns: 1fr; }
  .intro__content { grid-template-columns: 1fr; }
  .intro__aside { margin-top: 50px; max-width: 50ch; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { min-height: 235px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .arrow-link,
  .section-note { justify-self: start; }
  .studio__story { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 45px 1.3fr 1fr 25px; }
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { position: relative; top: auto; }
  .process__images { aspect-ratio: 16 / 10; }
  .archive-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .archive-hero__count { justify-self: start; justify-items: start; margin-top: 35px; }
  .project-summary__grid { grid-template-columns: 1fr; }
  .project-facts { position: relative; top: auto; }
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 680px) {
  :root { --page-pad: 20px; --section-y: 96px; }
  .loader__logo, .page-transition img { width: 120px; }
  .site-header { padding-inline: 20px; }
  .hero__logo { width: min(45vw, 205px); }
  .hero__meta { right: auto; display: grid; gap: 7px; border-top: 0; }
  .scroll-cue { left: auto; right: 22px; transform: none; }
  .scroll-cue span { display: none; }
  .intro__title { font-size: clamp(43px, 13vw, 68px); }
  .metrics__topline { margin-inline: 20px; }
  .metric { padding-inline: 0; border-left: 0; border-right: 0; }
  .metric strong { font-size: clamp(92px, 28vw, 130px); }
  .section-heading h2 { font-size: clamp(47px, 13vw, 70px); }
  .project-card,
  .project-card--feature,
  .project-card--portrait { flex-basis: 88vw; }
  .project-card figure,
  .project-card--feature figure,
  .project-card--portrait figure { height: 118vw; max-height: 650px; }
  .project-card figcaption { flex-direction: column; gap: 12px; }
  .project-card figcaption > div:last-child { justify-items: start; text-align: left; }
  .project-card__open { display: none; }
  .rail-footer > p { display: none; }
  .rail-footer { justify-content: flex-end; }
  .manifesto__track { font-size: 68px; }
  .manifesto blockquote { font-size: clamp(41px, 12.5vw, 65px); }
  .service-row { grid-template-columns: 38px 1fr 24px; padding: 30px 0; }
  .service-row p { grid-column: 2 / -1; padding-right: 25px; }
  .service-row i { grid-column: 3; grid-row: 1; }
  .team-grid { grid-template-columns: 1fr; gap: 65px; }
  .person__meta { display: grid; gap: 6px; }
  .contact { min-height: auto; }
  .contact h2 { font-size: clamp(58px, 17vw, 87px); }
  .contact__actions { grid-template-columns: 1fr; }
  .contact__actions a + a { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .contact__meta { display: grid; gap: 10px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 22px; min-height: 118px; }
  .site-footer img { height: 49px; }
  .site-footer > span { display: none; }
  .archive-hero { padding-top: 145px; }
  .archive-hero h1 { font-size: clamp(76px, 25vw, 125px); }
  .archive__toolbar p:last-child { display: none; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card--wide { grid-column: auto; }
  .archive-card figure,
  .archive-card--wide figure,
  .archive-card--tall figure { aspect-ratio: 4 / 5; }
  .archive-cta .section-shell { display: grid; }
  .archive-cta a { font-size: 51px; }
  .project-hero__meta { top: calc(var(--header-h) + 30px); }
  .project-hero__title h1 { font-size: clamp(82px, 28vw, 132px); }
  .project-hero__back { display: none; }
  .project-facts dl > div { grid-template-columns: 105px 1fr; }
  .project-gallery-detail__grid { grid-template-columns: 1fr; }
  .detail-image,
  .detail-image--wide { grid-column: auto; }
  .detail-image img,
  .detail-image picture,
  .detail-image video,
  .detail-image--wide img,
  .detail-image--wide picture,
  .detail-image--wide video { aspect-ratio: 4 / 5; }
  .project-process-band { min-height: 75svh; }
  .project-process-band blockquote { font-size: clamp(41px, 12vw, 67px); }
  .project-navigation .section-shell { grid-template-columns: 1fr; }
  .project-navigation a:last-child { display: none; }
  .admin-main { padding: 32px 20px 70px; }
  .admin-header { display: grid; gap: 30px; }
  .admin-header button { width: max-content; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats article { min-height: 105px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .admin-project { grid-template-columns: 85px 1fr; }
  .admin-project__tags,
  .admin-project > button { display: none; }
}

@media (hover: none) {
  .project-card__open,
  .archive-card > figure > i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ===== V3 — ajustes de ritmo, métricas y archivo ===== */
:root { --section-y: clamp(72px, 8vw, 125px); }

/* Menú mobile siempre negro y completamente visible */
body.menu-open .site-header { background: #000; border-color: rgba(255,255,255,.12); }
@media (max-width: 980px) {
  .site-nav {
    min-height: 100dvh;
    overflow-y: auto;
    padding: calc(var(--header-h) + 36px) 24px 40px;
    background: #000;
  }
  .site-nav.is-open { display: grid; }
}

/* Portada: conservar solamente las líneas inferiores */
.hero__meta--lines { height: 1px; padding: 0; border-top: 1px solid rgba(255,255,255,.38); }
.scroll-cue { gap: 0; }

/* Ritmo general más compacto */
.intro { padding: clamp(72px, 8vw, 120px) 0; }
.intro__kicker { margin-bottom: clamp(25px, 3vw, 46px); }
.intro__aside { gap: 22px; }
.section-heading { margin-bottom: clamp(42px, 5vw, 74px); }
.projects-section { padding: clamp(72px, 8vw, 120px) 0 clamp(70px, 8vw, 115px); }
.studio { padding: clamp(72px, 8vw, 120px) 0; }
.studio__story { padding-bottom: clamp(55px, 6vw, 95px); }
.process { padding: clamp(72px, 8vw, 120px) 0; }
.team { padding: clamp(72px, 8vw, 120px) 0; }
.team__heading { margin-bottom: clamp(34px, 4vw, 58px); }

/* Métricas circulares */
.metrics { padding: clamp(62px, 7vw, 105px) 0; }
.metrics__topline { display: none; }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 30px);
  align-items: stretch;
  max-width: 1240px;
}
.metric {
  aspect-ratio: 1;
  min-height: 0;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 3vw, 46px);
  padding: clamp(28px, 3.4vw, 50px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  text-align: center;
}
.metric:last-child { border-right: 1px solid rgba(255,255,255,.72); }
.metric:nth-child(odd) { background: #fff; color: #000; border-color: #fff; }
.metric:nth-child(odd) small { color: rgba(0,0,0,.56); }
.metric:nth-child(even) { background: #000; color: #fff; }
.metric__number { justify-content: center; }
.metric strong { font-size: clamp(64px, 7.8vw, 118px); line-height: .8; }
.metric em { font-size: clamp(17px, 1.8vw, 28px); }
.metric > div { gap: 6px; }

/* Proyectos destacados: interacción directa, sin controles inferiores */
.project-rail { cursor: ew-resize; }
.project-rail.is-dragging { cursor: grabbing; }
.rail-footer { display: none; }

/* Marquesina de servicios */
.manifesto { padding: clamp(78px, 9vw, 135px) 0; }
.manifesto__track {
  top: 14px;
  gap: 20px;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: .8;
  letter-spacing: -.055em;
}
.manifesto__sequence { display: flex; align-items: center; gap: 20px; }
.manifesto__sequence i { font-style: normal; font-weight: 300; opacity: .55; }
.manifesto__content { padding-top: clamp(52px, 6vw, 82px); }

/* Servicios sin numeración ni flechas */
.service-row {
  grid-template-columns: minmax(260px, 1.35fr) 1fr;
  gap: clamp(30px, 6vw, 100px);
  min-height: 150px;
  padding: 24px 0;
}
.service-row h3 { max-width: 15ch; font-size: clamp(29px, 3.4vw, 53px); }

/* Contacto con datos reales */
.contact { min-height: 72svh; padding: clamp(80px, 9vw, 130px) 0 55px; }
.contact h2 { margin: clamp(38px, 5vw, 70px) 0; font-size: clamp(52px, 8vw, 122px); }
.contact__actions a { min-height: 118px; }
.contact__actions a > span { display: grid; gap: 10px; }
.contact__actions small { font-size: 8px; letter-spacing: .16em; color: rgba(255,255,255,.5); }
.contact__actions strong { font-size: clamp(16px, 1.7vw, 25px); font-weight: 400; letter-spacing: -.015em; text-transform: none; }
.contact__actions a:hover small { color: rgba(0,0,0,.52); }
.contact__meta { justify-content: flex-start; }

/* Archivo de proyectos compacto y en cuadrícula uniforme */
.archive-hero { padding: calc(var(--header-h) + 50px) 0 50px; }
.archive-hero__grid { grid-template-columns: minmax(95px, .55fr) 4fr; gap: clamp(28px, 5vw, 78px); }
.archive-hero h1 { font-size: clamp(72px, 10vw, 155px); line-height: .78; }
.archive-hero__lead { margin-top: 24px; }
.archive-hero__count { display: none; }
.archive { padding-bottom: clamp(65px, 7vw, 105px); }
.archive__toolbar { padding-top: 16px; padding-bottom: 16px; }
.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
  padding-top: 30px;
}
.archive-card--wide { grid-column: auto; }
.archive-card figure,
.archive-card--wide figure,
.archive-card--tall figure { aspect-ratio: 4 / 3; }
.archive-card figcaption { padding: clamp(17px, 2vw, 28px); }
.archive-card figcaption h2 { font-size: clamp(24px, 2.7vw, 42px); }
.archive-cta { padding: clamp(52px, 6vw, 86px) 0; }
.archive-cta .section-shell { justify-content: flex-start; }
.archive-cta a { gap: 20px; font-size: clamp(31px, 4.4vw, 65px); }
.site-footer--compact { grid-template-columns: 1fr auto; }
.site-footer--compact span { justify-self: end; }

/* Página de proyecto: descripción seguida directamente por galería */
.project-summary { padding: clamp(72px, 8vw, 115px) 0 clamp(55px, 6vw, 90px); }
.project-gallery-detail { padding-bottom: clamp(70px, 8vw, 120px); }
.project-navigation { padding: clamp(45px, 5vw, 72px) 0; }

@media (max-width: 980px) {
  .metrics__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .metric { padding: 22px; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --section-y: 72px; }
  .hero__meta--lines { left: 20px; right: 20px; width: auto; }
  .scroll-cue { right: 24px; bottom: 22px; }
  .metrics__grid { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .metric { width: min(82vw, 315px); }
  .manifesto { padding: 70px 0 76px; }
  .manifesto__track { font-size: 49px; }
  .manifesto__sequence { gap: 20px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; min-height: 150px; padding: 25px 0; }
  .service-row p { grid-column: auto; padding-right: 0; }
  .contact { padding-top: 72px; }
  .contact__actions a { min-height: 105px; padding-right: 14px; }
  .contact__actions a + a { padding-left: 0; }
  .contact__actions strong { font-size: 17px; }
  .archive-hero { padding: calc(var(--header-h) + 42px) 0 42px; }
  .archive-hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .archive-hero__lead { margin-top: 18px; }
  .archive-grid { grid-template-columns: 1fr; padding-top: 22px; }
  .archive-card figure,
  .archive-card--wide figure,
  .archive-card--tall figure { aspect-ratio: 4 / 3; }
  .archive-cta a { font-size: clamp(30px, 10vw, 45px); }
  .project-navigation a:last-child { display: grid; }
  .site-footer--compact { grid-template-columns: 1fr; }
  .site-footer--compact span { display: block; justify-self: start; }
}


/* ===== V4 — ajustes finales y handoff Codex ===== */
:root {
  --black: #000;
  --black-2: #000;
}

/* Métricas: círculos solapados 12 %, cifras en negrita */
.metrics { overflow: hidden; }
.metrics__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1320px;
  padding-inline: max(var(--page-pad), 34px);
}
.metric {
  position: relative;
  flex: 0 0 clamp(250px, 29vw, 430px);
  width: clamp(250px, 29vw, 430px);
  aspect-ratio: 1;
  z-index: 1;
}
.metric + .metric { margin-left: clamp(-65px, -3.6vw, -36px); }
.metric:nth-child(2) { z-index: 3; }
.metric:nth-child(3) { z-index: 2; }
.metric strong { font-weight: 800; letter-spacing: -.075em; }
.metric em { font-weight: 700; }
.metric > div { max-width: 18ch; }

/* Titular de proyecto más enfático */
.project-card figcaption span { font-weight: 700; }

/* Nota territorial legible dentro de la grilla */
.section-heading .section-note {
  max-width: 34ch;
  line-height: 1.45;
  letter-spacing: .035em;
  text-transform: none;
}

/* Proceso más compacto y textos alineados con sus títulos */
.process { padding: clamp(52px, 5.8vw, 86px) 0; }
.process__content > .section-index { margin-bottom: clamp(28px, 3.5vw, 48px); }
.process-item { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 28px; padding: 25px 0; }
.process-item b,
.process-item small { grid-column: 2; }
.process-item b { transform: none !important; }
.process-item small { padding-left: 0; }
.process-item.is-active small { margin-top: 2px; }

/* Contactos en renglones independientes */
.contact__actions strong { display: grid; gap: 4px; }
.contact__actions strong > span { display: block; }

/* Archivo: solamente imagen en reposo; leyenda y zoom al hover */
.archive-card figure { background: #000; }
.archive-card img {
  transform: scale(1);
  filter: none;
  transition: transform .85s var(--ease-out), filter .45s ease;
}
.archive-card__overlay {
  opacity: 0;
  background: rgba(0,0,0,.62);
  transition: opacity .42s var(--ease);
}
.archive-card figcaption {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.archive-card figcaption h2 { font-weight: 700; }
.archive-card:hover img,
.archive-card:hover picture,
.archive-card:hover video,
.archive-card:focus-visible img,
.archive-card:focus-visible picture,
.archive-card:focus-visible video { transform: scale(1.10); filter: none; }
.archive-card:hover .archive-card__overlay,
.archive-card:focus-visible .archive-card__overlay { opacity: 1; }
.archive-card:hover figcaption,
.archive-card:focus-visible figcaption { opacity: 1; transform: translateY(0); }

/* Todos los fondos de interfaz definidos como negros usan negro pleno */
html,
.loader,
.page-transition,
.site-header.is-scrolled,
.site-header--solid,
body.menu-open .site-header,
.site-nav,
.section-dark,
.hero,
.metric:nth-child(even),
.service-row::before,
.process__images,
.contact,
.site-footer,
.placeholder-visual--black { background-color: #000; }

@media (max-width: 980px) {
  .metrics__grid { padding-inline: var(--page-pad); }
  .metric { flex-basis: clamp(220px, 34vw, 330px); width: clamp(220px, 34vw, 330px); }
  .metric + .metric { margin-left: clamp(-50px, -4vw, -28px); }
  .section-heading .section-note { justify-self: start; max-width: 48ch; }
}

@media (max-width: 720px) {
  .metrics__grid {
    flex-direction: column;
    padding-block: 10px;
  }
  .metric { flex-basis: auto; width: min(78vw, 315px); }
  .metric + .metric { margin-left: 0; margin-top: clamp(-44px, -11vw, -32px); }
  .metric:nth-child(2) { z-index: 3; }
  .metric:nth-child(3) { z-index: 2; }
  .process { padding: 48px 0; }
  .process-item { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 16px; }
  .archive-card__overlay { opacity: .42; }
  .archive-card figcaption { opacity: 1; transform: none; }
}

/* ===== V5 — ajustes previos al handoff final ===== */

/* Header negro desde el primer fotograma de la home */
body[data-page="home"] .site-header {
  background: #000;
  border-color: rgba(255,255,255,.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 981px) {
  .site-nav {
    background-color: transparent;
  }
}

body[data-page="project"] .site-header:not(.is-scrolled) .site-nav {
  background-color: transparent;
}

/* La portada queda limpia: el logo vive únicamente en el header */
.hero__logo-wrap,
.hero__logo { display: none; }

/* Texto institucional */
.studio__lead strong { font-weight: 800; }

/* Hover de servicios a sangre, conservando el contenido dentro de la grilla */
.service-row::before {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%) scaleY(0);
}
.service-row:hover::before {
  transform: translateX(-50%) scaleY(1);
}

/* Fotografías de directores: formato cuadrado y escala más contenida */
.team-grid {
  grid-template-columns: repeat(2, minmax(260px, 400px));
  justify-content: start;
  max-width: 860px;
}
.person__photo { aspect-ratio: 1 / 1; }
.person__photo span { font-size: clamp(82px, 11vw, 175px); }

@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: minmax(0, 320px);
    max-width: 100%;
  }
  .person__photo { width: 100%; }
}

/* ===== Producción modular — accesibilidad y contacto dinámico ===== */
.contact__actions a:hover small,
.contact__actions a:focus-visible small { color: rgba(0,0,0,.52); }

@media (max-width: 980px) {
  .contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__actions a:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .contact__actions { grid-template-columns: 1fr; }
  .contact__actions a:nth-child(3) { grid-column: auto; }
}

/* ===== Producción modular — contacto agrupado y fotos reales ===== */
.person__image {
  position: relative;
  z-index: 1;
  height: 100%;
  object-fit: cover;
}

.person__photo:has(.person__image)::before { opacity: 0; }

.contact__actions {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 118px;
  padding: 0 28px 0 0;
  font-size: 11px;
  letter-spacing: .15em;
  transition: background .35s, color .35s, padding .35s;
}

.contact-card + .contact-card {
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.contact-card > span {
  display: grid;
  gap: 10px;
}

.contact-card small {
  font-size: 8px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}

.contact-card strong {
  display: grid;
  gap: 8px;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-transform: none;
}

.contact-card--phones strong a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: max-content;
  min-height: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  transition: opacity .25s;
}

.contact-card--phones strong a + a {
  padding-left: 0;
  border-left: 0;
}

.contact-card--phones strong a:hover,
.contact-card--phones strong a:focus-visible {
  background: transparent;
  color: inherit;
  padding: 0;
  opacity: .58;
}

.contact-card--phones em {
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-card:hover,
.contact-card:focus-visible,
.contact-card--phones:focus-within {
  background: #fff;
  color: #000;
  padding-inline: 28px;
}

.contact-card:hover small,
.contact-card:focus-visible small,
.contact-card--phones:focus-within small,
.contact-card:hover em,
.contact-card--phones:focus-within em { color: rgba(0,0,0,.52); }

@media (max-width: 980px) {
  .contact__actions { grid-template-columns: 1fr; }
  .contact-card + .contact-card {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .contact-card { min-height: 105px; padding-right: 14px; }
  .contact-card strong { font-size: 18px; }
  .contact-card--phones strong a {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }
}

/* ===== Ajuste final — equipo centrado ===== */
.team__heading {
  justify-content: center;
  text-align: center;
}

.team-grid {
  justify-content: center;
  margin-inline: auto;
}

.person {
  text-align: center;
}

.person__photo {
  margin-inline: auto;
}

.person__meta {
  justify-content: center;
  display: grid;
  gap: 8px;
  text-align: center;
}

/* ===== Ajuste final — flechas como texto, no emoji ===== */
.arrow-link span,
.archive-cta a span,
.contact-card i,
.project-card__open,
.project-hero__back,
.project-navigation a span,
.site-footer a {
  font-family: Arial, Helvetica, sans-serif;
  font-variant-emoji: text;
}

/* ===== Ajuste final — CTA archivo de proyectos ===== */
.archive-cta {
  padding: clamp(44px, 5vw, 72px) 0;
}

.archive-cta a {
  gap: 18px;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.02;
}

@media (max-width: 680px) {
  .archive-cta a {
    font-size: clamp(26px, 8vw, 38px);
  }
}

/* ===== Ajuste final — header mobile siempre negro ===== */
@media (max-width: 980px) {
  .site-header,
  .site-header:not(.is-scrolled),
  body[data-page="project"] .site-header,
  body[data-page="project"] .site-header:not(.is-scrolled),
  body[data-page="project"] .site-header:not(.is-scrolled) .site-nav,
  body.menu-open .site-header {
    background-color: #000;
    border-color: rgba(255,255,255,.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav,
  .site-nav.is-open {
    background-color: #000;
  }
}

/* ===== Ajuste final — títulos de proyecto contenidos ===== */
.project-hero__title {
  right: var(--page-pad);
  max-width: calc(100vw - (var(--page-pad) * 2));
}

.project-hero__title h1 {
  max-width: 8.6ch;
  overflow-wrap: normal;
}

@media (max-width: 980px) {
  .project-hero__title {
    bottom: clamp(42px, 9vw, 78px);
  }

  .project-hero__title h1 {
    max-width: 6.8ch;
    font-size: clamp(58px, 19vw, 110px);
    line-height: .76;
    letter-spacing: -.075em;
  }
}

@media (max-width: 420px) {
  .project-hero__title h1 {
    max-width: 7.5ch;
    font-size: clamp(48px, 16vw, 68px);
    line-height: .82;
  }
}
