/* Celeste Trápaga Studio — hand-built site. No framework, no external deps. */

/* ---------- Fonts (OFL, self-hosted) ---------- */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f2ece3;
  --paper-2: #e9e0d3;
  --ink: #24160e;
  --ink-soft: #5b4636;
  --leather: #432b1b;
  --leather-deep: #26170f;
  --rust: #5e2816;
  --terracotta: #a84b27;
  --clay: #c08462;
  --olive: #535826;
  --moss: #3d3b24;
  --sand: #a5896d;
  --frame: #b9a08c;
  --sky: #6e8086;
  --line: color-mix(in srgb, currentColor 22%, transparent);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Lora", Georgia, "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
em { font-style: italic; }
::selection { background: var(--rust); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* film grain — analog paper feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-family: var(--f-mono); }
.skip:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Mono label — her dossier notation: // 01 — Estudio */
.label {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; gap: .6em; align-items: baseline;
}
.label::before { content: "//"; opacity: .55; letter-spacing: 0; }
.label--plain::before { content: none; }

/* TC brand mark, painted with currentColor through a mask */
.mark { display: inline-block; aspect-ratio: 272 / 260; width: 2.4rem; background: currentColor;
  -webkit-mask: url("../logo-tc.svg") center / contain no-repeat; mask: url("../logo-tc.svg") center / contain no-repeat; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--paper); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s, transform .4s var(--ease);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.page--light .site-header { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand .mark { width: 2.15rem; }
.brand__name { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.brand__name small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .32em; opacity: .75; margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { border: 1px solid currentColor; padding: .55rem 1rem; border-radius: 999px; transition: background-color .3s, color .3s; }
.nav .nav__cta::after { content: none; }
.nav .nav__cta:hover { background: currentColor; }
.nav .nav__cta:hover span { color: var(--paper); }
.site-header.is-solid .nav .nav__cta:hover span, .page--light .nav .nav__cta:hover span { color: var(--paper); }
.site-header:not(.is-solid) .nav .nav__cta:hover span { color: var(--ink); }
.page--light .site-header:not(.is-solid) .nav .nav__cta:hover span { color: var(--paper); }

.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: .5rem; margin-right: -.5rem;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; align-items: center; gap: .7rem; }
.menu-btn__bars { width: 26px; height: 10px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-open .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--leather-deep); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.menu ol { list-style: none; margin: 0 0 2.5rem; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; border-top: 1px solid rgba(242, 236, 227, .16); }
.menu li a { display: flex; align-items: baseline; justify-content: space-between; padding: .9rem 0; text-decoration: none;
  font-family: var(--f-display); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.05; }
.menu li a::after { content: "0" counter(m); font-family: var(--f-mono); font-size: .8rem; opacity: .6; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-family: var(--f-mono); font-size: .85rem; }
.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open { overflow: hidden; }

/* ---------- Buttons / links ---------- */
.btn { display: inline-flex; align-items: center; gap: .9rem; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.5rem; border: 1px solid currentColor; border-radius: 999px; transition: background-color .35s, color .35s; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
a:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; color: var(--paper); display: grid; overflow: hidden; background: #47525a; isolation: isolate; }
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media { z-index: -2; }
.hero__media video { transform: scale(1.06); animation: slowzoom 18s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 16, 10, .42) 0%, rgba(24, 16, 10, .05) 32%, rgba(24, 16, 10, .1) 55%, rgba(24, 16, 10, .78) 100%); }
.hero__inner { align-self: end; padding-block: calc(var(--header-h) + 3rem) clamp(2rem, 5vh, 3.5rem); display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); }
.hero__kicker { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 7.6rem); line-height: .96; font-weight: 400; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #f0d9c4; }
.hero__foot { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; border-top: 1px solid rgba(242, 236, 227, .3); padding-top: 1.25rem; }
.hero__foot p { margin: 0; max-width: 46ch; font-size: 1.02rem; color: rgba(242, 236, 227, .9); }
.hero__ctrl { display: flex; gap: 1.25rem; align-items: center; }
.scroll-cue { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .7rem; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
.video-toggle { background: none; border: 1px solid rgba(242, 236, 227, .55); color: inherit; border-radius: 999px; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; cursor: pointer; }
.video-toggle svg { width: 12px; height: 12px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

@keyframes slowzoom { to { transform: scale(1); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 10rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1.5rem 4rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.4rem); text-wrap: balance; }
.section-head h2 em { color: var(--terracotta); }
.section-head p { max-width: 52ch; margin-top: 1.5rem; color: var(--ink-soft); }

/* Studio / manifesto */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem 4rem; }
.studio__lead { font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: pretty; margin: 0; }
.studio__lead em { color: var(--terracotta); }
.studio__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.seal { width: clamp(9rem, 16vw, 13rem); aspect-ratio: 1; position: relative; color: var(--rust); overflow: hidden; border-radius: 50%; }
.seal svg.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal svg text { font-family: var(--f-mono); font-size: 9.6px; letter-spacing: 2.6px; fill: currentColor; text-transform: uppercase; }
.seal .mark { position: absolute; inset: 29%; width: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.disciplines { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; border-top: 1px solid var(--line); }
.disciplines li { padding: 1.4rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; }
.disciplines b { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; letter-spacing: .12em; color: var(--terracotta); }
.disciplines span { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.15; }
.disciplines small { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* Values marquee */
.marquee { background: var(--rust); color: var(--paper); overflow: hidden; padding-block: clamp(1.2rem, 2.5vw, 2rem); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); }
.marquee span { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.1; white-space: nowrap; }
.marquee .mark { width: clamp(1.6rem, 3vw, 2.6rem); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Projects archive ---------- */
.archive { background: var(--leather-deep); color: var(--paper); overflow: hidden; }
.archive::before { content: ""; position: absolute; inset: 0; background: url("../img/tex-leather-1600.webp") center / cover; opacity: .28; mix-blend-mode: soft-light; pointer-events: none; }
.archive .wrap { position: relative; }
.archive .section-head h2 em { color: var(--clay); }
.archive .section-head p { color: rgba(242, 236, 227, .72); }

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(242, 236, 227, .2); }
.project-row { border-bottom: 1px solid rgba(242, 236, 227, .2); }
.project-row a { display: grid; grid-template-columns: 5.5rem minmax(0, 1.6fr) minmax(0, 1fr) clamp(12rem, 24vw, 21rem); gap: 1.5rem 2.5rem; align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.6rem); text-decoration: none; position: relative; }
.project-row__num { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .1em; align-self: start; padding-top: .6rem; opacity: .7; }
.project-row__title { font-family: var(--f-display); font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.8rem); line-height: .98; transition: transform .6s var(--ease), color .4s; }
.project-row__title em { display: block; font-size: .42em; line-height: 1.2; margin-top: .6rem; color: var(--clay); }
.project-row__meta { display: grid; gap: .9rem; align-self: end; font-size: .95rem; color: rgba(242, 236, 227, .78); }
.project-row__meta p { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.chip i { width: 1.7rem; height: 1.7rem; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(242, 236, 227, .35); flex: none; }
.project-row__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; position: relative; background: #3a281c; }
.project-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.project-row a:hover .project-row__img img, .project-row a:focus-visible .project-row__img img { transform: scale(1.06); filter: saturate(1); }
.project-row a:hover .project-row__title { transform: translateX(.6rem); }
.project-row__go { position: absolute; right: 0; top: clamp(1.6rem, 3vw, 2.6rem); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: .5rem .8rem; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.project-row a:hover .project-row__go, .project-row a:focus-visible .project-row__go { opacity: 1; transform: none; }

/* ArteBA cover is typographic (the original had no photo) */
.cover-type { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 1.2rem; background: url("../img/tex-leather-1600.webp") 30% center / cover; color: #e9d9c8; }
.cover-type b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: .9; letter-spacing: -.02em; text-align: right; }
.cover-type b span { font-style: italic; font-weight: 400; }
.cover-type small { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }
.cover-type small sup { font-size: .5em; vertical-align: .9em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.about__photo { position: relative; }
.about__photo figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo .about__small { position: absolute; width: 42%; right: -8%; bottom: -10%; aspect-ratio: 3 / 4; border: 10px solid var(--paper); box-shadow: 0 20px 40px -24px rgba(36, 22, 14, .5); }
.about__body { padding-top: clamp(0rem, 4vw, 4rem); }
.about__body h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.6rem); margin: 1.2rem 0 2rem; }
.about__body h2 em { color: var(--terracotta); }
.about__body .lead { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.3; margin-bottom: 1.6rem; }
.about__body p { color: var(--ink-soft); max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .3rem; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.45; }

/* Field notebook strip */
.strip { margin-top: clamp(5rem, 10vw, 9rem); }
.strip__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.strip__head h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.strip__btns { display: flex; gap: .6rem; }
.strip__btns button { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; font-size: 1.1rem; transition: background-color .3s, color .3s; }
.strip__btns button:hover { background: var(--ink); color: var(--paper); }
.strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(14rem, 26vw, 22rem); gap: clamp(1rem, 2vw, 1.6rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.2rem; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--frame) transparent; scroll-padding-inline: var(--gutter); }
.strip__track li { scroll-snap-align: start; }
.strip__track figure { margin: 0; }
.strip__track img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 2px; }
.strip__track figcaption { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .7rem; display: flex; justify-content: space-between; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process { background: var(--moss); color: var(--paper); overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; background: url("../img/tex-moss-900.webp") center / cover; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.process .wrap { position: relative; }
.process .section-head h2 em { color: #d7cf9e; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(242, 236, 227, .25); }
.steps li { padding: 2.2rem 2.2rem 2.4rem 0; border-right: 1px solid rgba(242, 236, 227, .25); }
.steps li + li { padding-left: 2.2rem; }
.steps li:last-child { border-right: 0; }
.steps b { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; letter-spacing: .14em; color: #d7cf9e; }
.steps h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin: 1.2rem 0 1rem; font-style: italic; }
.steps p { margin: 0; color: rgba(242, 236, 227, .82); max-width: 34ch; }
.notation { margin-top: clamp(3rem, 6vw, 5rem); font-family: var(--f-mono); font-size: clamp(.9rem, .8rem + .4vw, 1.1rem); color: rgba(242, 236, 227, .7); display: flex; flex-wrap: wrap; gap: .6rem 2rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 11rem); isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__card { background: var(--paper); padding: clamp(2rem, 5vw, 4.5rem); max-width: 60rem; margin-inline: auto; box-shadow: 0 0 0 clamp(8px, 1.2vw, 14px) var(--frame), 0 40px 80px -40px rgba(36, 22, 14, .6); position: relative; }
.contact__card h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.8rem); margin: 1.2rem 0 1.2rem; text-wrap: balance; }
.contact__card h2 em { color: var(--terracotta); }
.contact__card > p { color: var(--ink-soft); max-width: 48ch; }
.socials { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.socials li { border-bottom: 1px solid var(--line); }
.socials a { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 1.3rem 0; text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.socials a:hover { padding-left: .8rem; color: var(--terracotta); }
.socials small { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.socials span { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.contact__card .mark { position: absolute; top: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); width: clamp(2.6rem, 5vw, 4rem); color: var(--rust); }

/* ---------- Footer ---------- */
.site-footer { background: var(--leather-deep); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) 0 2rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer__top p { color: rgba(242, 236, 227, .7); max-width: 32ch; margin-top: 1.2rem; }
.footer__top h3 { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.footer__top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__top a { text-decoration: none; }
.footer__top a:hover { text-decoration: underline; }
.footer__word { font-family: var(--f-display); font-size: clamp(3rem, 12.5vw, 13rem); line-height: .85; letter-spacing: -.03em; white-space: nowrap; color: rgba(242, 236, 227, .92); margin: 0; }
.footer__word em { color: var(--clay); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(242, 236, 227, .2); padding-top: 1.5rem; margin-top: 2rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 236, 227, .62); }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0 0 0 0); transform: none; }

.js .hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.js .hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .12s); }
.js .hero .hero__kicker, .js .hero .hero__foot { opacity: 0; animation: fade 1.2s var(--ease) 1s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ============================================================
   Project (case study) pages
   ============================================================ */
.project { --p-bg: var(--paper); --p-ink: var(--ink); --p-soft: var(--ink-soft); --p-accent: var(--terracotta); --p-line: color-mix(in srgb, var(--p-ink) 18%, transparent); background: var(--p-bg); color: var(--p-ink); }
.project .label { color: var(--p-accent); }
.p-hero { position: relative; min-height: 100svh; display: grid; color: var(--paper); overflow: hidden; isolation: isolate; background: #222; }
.p-hero__bg { position: absolute; inset: 0; z-index: -2; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .3) 52%, rgba(0, 0, 0, .74)); }
.p-hero__inner { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.p-hero__inner { align-self: end; padding-block: calc(var(--header-h) + 3rem) clamp(2rem, 5vh, 3.5rem); }
.p-hero .label { color: inherit; }
.p-hero h1 { font-size: clamp(3.2rem, 1rem + 10vw, 11rem); line-height: .9; letter-spacing: -.03em; margin: 1.2rem 0 1.4rem; overflow-wrap: anywhere; }
.p-hero h1 em { font-weight: 400; }
.p-hero__sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); line-height: 1.2; max-width: 30ch; margin: 0; }
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 1.2rem; }
.p-meta div { display: grid; gap: .2rem; }
.p-meta dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.p-meta dd { margin: 0; font-size: .98rem; }

.p-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 5rem; }
.p-intro__lead { font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); line-height: 1.15; margin: 0; text-wrap: pretty; }
.p-intro__lead em { color: var(--p-accent); }
.p-intro__body { margin-top: 2rem; color: var(--p-soft); columns: 2 18rem; column-gap: 3rem; }

.p-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 5rem; padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--p-line); }
.p-block__side { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; display: grid; gap: 1rem; }
.p-block__side h2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.6rem); }
.p-block__side h2 em { color: var(--p-accent); }
.p-block__main > p { color: var(--p-soft); max-width: 62ch; }
.p-block__main .big { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.25; color: var(--p-ink); max-width: 34ch; }

.quote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 2px solid var(--p-accent); font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); line-height: 1.3; max-width: 36ch; }
.quote p { margin: 0; }
.quote + .quote { margin-top: -1rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0; }
.tags li { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; border: 1px solid var(--p-line); border-radius: 999px; padding: .45rem .9rem; }

.refs { list-style: none; margin: 2rem 0 0; padding: 0; columns: 2 16rem; column-gap: 2.5rem; font-size: .92rem; }
.refs li { break-inside: avoid; padding: .7rem 0; border-top: 1px solid var(--p-line); display: grid; grid-template-columns: 2.2rem 1fr; color: var(--p-soft); }
.refs li::before { content: counter(list-item, decimal-leading-zero); font-family: var(--f-mono); font-size: .74rem; color: var(--p-accent); padding-top: .2rem; }
.refs b { font-weight: 500; color: var(--p-ink); }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .8rem; margin: 2rem 0; list-style: none; padding: 0; }
.swatches li { display: grid; gap: .5rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; }
.swatches i { display: block; aspect-ratio: 1 / 1.15; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.5rem); margin-block: clamp(3rem, 6vw, 5rem); }
.gallery figure { margin: 0; grid-column: span var(--span, 6); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: var(--ar, 4 / 5); }
.gallery figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .6rem; color: var(--p-soft); }
.gallery--contain img { object-fit: contain; background: var(--paper-2); padding: 8%; }

.bleed { margin: 0; position: relative; }
.bleed img { width: 100%; height: clamp(22rem, 70vh, 52rem); object-fit: cover; }
.bleed figcaption { position: absolute; left: var(--gutter); bottom: 1.2rem; color: var(--paper); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

.statement { text-align: center; padding-block: clamp(5rem, 12vw, 11rem); }
.statement p { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 4.6vw, 5.8rem); line-height: 1.04; margin: 1.5rem auto 0; max-width: 18ch; text-wrap: balance; }
.statement p em { color: var(--p-accent); }

.journey { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: j; position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 1px; background: var(--p-line); }
.journey li { position: relative; padding: 2rem 1rem 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.2; counter-increment: j; }
.journey li::before { content: ""; position: absolute; top: .2rem; left: 0; width: .7rem; height: .7rem; border-radius: 50%; background: var(--p-accent); }
.journey li::after { content: "0" counter(j); display: block; font-family: var(--f-mono); font-style: normal; font-size: .72rem; letter-spacing: .12em; color: var(--p-soft); margin-top: .5rem; }

.terms { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; list-style: none; margin: 2rem 0 0; padding: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem); line-height: 1.2; }
.terms li::after { content: "·"; margin-left: 1.2rem; color: var(--p-accent); }
.terms li:last-child::after { content: none; }

.poem { font-family: var(--f-mono); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); line-height: 1.8; max-width: 44ch; margin: 2rem 0; }

.note { font-family: var(--f-mono); font-size: .82rem; color: var(--p-soft); border-top: 1px dashed var(--p-line); padding-top: 1rem; margin-top: 2rem; }

/* next project pager */
.pager { display: block; text-decoration: none; position: relative; overflow: hidden; color: var(--paper); isolation: isolate; }
.pager img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.pager::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 12, 8, .55); transition: background-color .6s; }
.pager:hover img { transform: scale(1.05); }
.pager:hover::before { background: rgba(20, 12, 8, .42); }
.pager .wrap { padding-block: clamp(5rem, 12vw, 10rem); display: grid; gap: 1rem; }
.pager strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 1rem + 8vw, 9rem); line-height: .92; letter-spacing: -.02em; }
.pager span.label { color: var(--paper); }

/* ---- project themes ---- */
.theme-arteba { --p-bg: #2b1810; --p-ink: #f1e6da; --p-soft: rgba(241, 230, 218, .74); --p-accent: #d7895a; }
.theme-arteba .p-block, .theme-arteba .p-intro-wrap { position: relative; }
.theme-arteba .refs b { color: #fff4ea; }
.theme-arteba .gallery--contain img { background: #3a2318; }

.theme-recrafture { --p-bg: #f1efe8; --p-ink: #151513; --p-soft: #4a4a44; --p-accent: #225ca7; }
.theme-recrafture .p-block__side h2, .theme-recrafture .p-hero h1 { font-family: var(--f-mono); font-weight: 700; letter-spacing: -.04em; }
.theme-recrafture .p-block__side h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.4rem); }
.theme-recrafture .p-block__side h2 mark { background: var(--hl, #e7e14c); color: inherit; padding: 0 .2em; }
.theme-recrafture .p-intro__lead em { color: #2f9158; }

.theme-witherwill { --p-bg: #1d2215; --p-ink: #ebe6d6; --p-soft: rgba(235, 230, 214, .72); --p-accent: #c9c08a; }
.theme-witherwill .p-block__side h2, .theme-witherwill .p-hero h1 { font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.theme-witherwill .p-hero h1 { letter-spacing: -.01em; }

.theme-yoamp { --p-bg: #ede3d6; --p-ink: #231b15; --p-soft: #5d4f43; --p-accent: #8b6a4c; }
.theme-yoamp .p-block__side h2, .theme-yoamp .p-hero h1 { font-family: var(--f-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.theme-yoamp .p-block__side h2 { font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); }
.theme-yoamp .p-hero h1 { font-size: clamp(2.4rem, .8rem + 7vw, 8rem); letter-spacing: .02em; }

.project .site-footer { background: #140c07; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .project-row a { grid-template-columns: 3.5rem minmax(0, 1fr) clamp(10rem, 28vw, 16rem); }
  .project-row__meta { grid-column: 2; grid-row: 2; }
  .project-row__img { grid-column: 3; grid-row: 1 / span 2; }
  .about__photo .about__small { right: -4%; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .section-head, .studio, .about, .p-intro, .p-block { grid-template-columns: minmax(0, 1fr); }
  .p-block__side { position: static; }
  .studio__aside { flex-direction: row; align-items: center; }
  .seal { width: 8.5rem; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 1.8rem 0; border-right: 0; border-bottom: 1px solid rgba(242, 236, 227, .25); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .about__photo { margin-right: 10%; margin-bottom: 3rem; }
  .p-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .journey::before { display: none; }
  .gallery figure { grid-column: span var(--span-m, 12); }
}

@media (max-width: 620px) {
  .project-row a { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .project-row__num { padding-top: 0; }
  .project-row__img { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
  .project-row__title { grid-row: 3; }
  .project-row__meta { grid-column: 1; grid-row: 4; }
  .project-row__go { display: none; }
  .socials a { grid-template-columns: minmax(0, 1fr) auto; }
  .socials small { grid-column: 1 / -1; }
  .facts, .disciplines { grid-template-columns: minmax(0, 1fr); }
  .strip__track { grid-auto-columns: 72%; }
  .contact__card .mark { display: none; }
  .p-intro__body { columns: 1; }
  .refs { columns: 1; }
  .brand__name { font-size: .98rem; letter-spacing: .1em; }
}

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