/* ==========================================================================
   Tarragó — art site
   Black background, white text, orange highlights. Inspired by bofill.com:
   full-bleed imagery, quiet typography, generous space.
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --fg: #f2f0ec;
  --muted: #9a968f;
  --line: rgba(242, 240, 236, .14);
  --accent: #ff6b1a;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1680px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.5rem;
}
.eyebrow a:hover { color: var(--fg); }
.display {
  font-size: clamp(3rem, 9vw, 9.5rem); font-weight: 500; line-height: .92; letter-spacing: -.045em;
}
.display--md { font-size: clamp(2.4rem, 6vw, 6rem); line-height: .95; }
.h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; max-width: 46ch; }
.prose { max-width: 60ch; }
.prose p { color: #d8d5cf; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.4em;
  border: 1px solid var(--line); border-radius: 999px; font-size: 15px;
  transition: border-color .3s, background .3s, color .3s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 500; }
.btn--solid:hover { background: transparent; color: var(--accent); }
.link-arrow { font-size: 14px; color: var(--muted); transition: color .3s; }
.link-arrow:hover { color: var(--accent); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gutter);
  transition: background .4s, transform .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 11, 11, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.logo { font-weight: 600; font-size: 20px; letter-spacing: .12em; margin-right: auto; }
.logo span { color: var(--accent); }
.logo--lg { font-size: clamp(28px, 4vw, 44px); display: inline-block; margin-bottom: .5rem; }
.nav ul, .langs, .overlay ol, .overlay__langs, .footer__nav, .footer__langs, .filters { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 2.2rem; }
.nav a, .langs a {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--accent);
  transition: right .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }
.langs { display: flex; gap: .9rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.langs a { color: var(--muted); }
.langs a:hover, .langs a[aria-current] { color: var(--fg); }
.langs a[aria-current]::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.menu-btn { display: none; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.menu-btn__icon { width: 22px; height: 8px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 6px; }
.menu-open .menu-btn__icon::before { top: 3px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 3px; transform: rotate(-45deg); }

/* Mobile overlay */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) var(--gutter) 2rem;
  opacity: 0; transition: opacity .4s;
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.overlay ol a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.overlay ol a span { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.overlay__langs { display: flex; gap: 1.5rem; margin-top: 3rem; font-size: 14px; letter-spacing: .1em; }
.overlay__langs a[aria-current] { color: var(--accent); }
.menu-open { overflow: hidden; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%); }
.hero__slide figcaption { position: absolute; right: var(--gutter); bottom: 2rem; z-index: 3; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,240,236,.8); }
.hero__slide figcaption a:hover { color: var(--accent); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(4rem, 12vh, 8rem); z-index: 3; }
.hero__content h1 { max-width: 12ch; }
.hero__sub { margin-top: 1.6rem; max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.25rem); color: rgba(242,240,236,.85); }
.hero__progress { position: absolute; left: var(--gutter); bottom: 2.2rem; z-index: 3; display: flex; gap: 6px; }
.hero__progress span { width: 28px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.hero__progress span.is-active::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: progress 6s linear forwards; }
@keyframes progress { from { transform: translateX(-100%); } to { transform: none; } }
.hero__scroll { display: none; }

/* Manifesto -------------------------------------------------------------- */
.manifesto { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 6vw, 8rem); align-items: end; padding-block: clamp(5rem, 14vw, 12rem); }
.manifesto__text p { font-size: clamp(1.7rem, 3.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 400; margin: 0; }
.manifesto__aside p { font-size: 16px; max-width: 38ch; }

/* Section head ----------------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-bottom: 3rem; }
.section-head .eyebrow { margin: 0; }

/* Featured projects ------------------------------------------------------ */
.featured { padding-bottom: clamp(4rem, 10vw, 9rem); }
.featured__list { display: grid; gap: clamp(4rem, 10vw, 10rem); }
.feature a { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.feature__media { grid-column: 1 / span 8; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.feature__media picture, .feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature a:hover .feature__media img { transform: scale(1.04); }
.feature__meta { grid-column: 9 / span 4; padding-bottom: .5rem; }
.feature--1 .feature__media { grid-column: 5 / span 8; grid-row: 1; aspect-ratio: 16 / 10; }
.feature--1 .feature__meta { grid-column: 1 / span 4; grid-row: 1; }
.feature--2 .feature__media { grid-column: 2 / span 7; aspect-ratio: 5 / 4; }
.feature__num { display: block; font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 1rem; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); margin-bottom: .4rem; transition: color .3s; }
.feature a:hover h3 { color: var(--accent); }
.feature p { font-size: 15px; }
.feature__summary { color: #cfcbc4; max-width: 34ch; }

/* Craft teaser ----------------------------------------------------------- */
.craft-teaser { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.craft-teaser__media { position: absolute; inset: 0; }
.craft-teaser__media picture, .craft-teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.craft-teaser__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.2) 100%); }
.craft-teaser__content { position: relative; padding-block: 6rem; }
.craft-teaser__content p { max-width: 42ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin: 2rem 0; color: #e2dfd9; }

/* Figures ---------------------------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-block: clamp(5rem, 10vw, 9rem); }
.figure { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.figure strong { display: block; font-size: clamp(2.4rem, 4.5vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: .6rem; }
.figure strong::first-letter { color: var(--accent); }
.figure span { color: var(--muted); font-size: 15px; }

/* Audiences / values ----------------------------------------------------- */
.audiences { padding-bottom: clamp(5rem, 10vw, 9rem); }
.audiences__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.audiences__list li, .value { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.audiences__num { display: block; font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 2.5rem; }
.audiences h3, .value h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.audiences p, .value p { font-size: 15px; }

/* Page head -------------------------------------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 10vw, 9rem)); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.page-head .lead { margin-top: 2rem; }
.page-head--center { min-height: 70vh; }
.count { font-size: .22em; color: var(--accent); vertical-align: top; letter-spacing: 0; margin-left: .2em; }

/* Projects index --------------------------------------------------------- */
.toolbar { display: flex; justify-content: space-between; gap: 2rem; align-items: center; border-block: 1px solid var(--line); padding-block: 1rem; margin-bottom: 3rem; position: sticky; top: var(--header-h); z-index: 10; background: rgba(11,11,11,.92); backdrop-filter: blur(10px); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.filters button, .view-toggle button { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; transition: color .3s; }
.filters button:hover, .view-toggle button:hover { color: var(--fg); }
.filters button.is-active, .view-toggle button.is-active { color: var(--accent); }
.view-toggle { display: flex; gap: 1rem; flex-shrink: 0; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem var(--gutter); padding-bottom: 8rem; }
.projects__listhead { display: none; }
.card.is-hidden { display: none; }
.card a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
.card__media { grid-column: 1 / -1; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); margin-bottom: 1rem; }
.card__media picture, .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card a:hover .card__media img { transform: scale(1.05); }
.card__title { font-size: 1.25rem; transition: color .3s; }
.card a:hover .card__title { color: var(--accent); }
.card__place { grid-column: 1; color: var(--muted); font-size: 14px; }
.card__year { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 14px; }
.card__cat { display: none; }

/* List view (Bofill-style index) */
.projects.is-list { display: block; }
.projects.is-list .projects__listhead,
.projects.is-list .card a { display: grid; grid-template-columns: 3fr 2fr 2fr 80px; gap: 1rem; align-items: baseline; }
.projects.is-list .projects__listhead { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: .8rem; }
.projects.is-list .card a { border-top: 1px solid var(--line); padding: 1.1rem 0; position: relative; }
.projects.is-list .card:last-child a { border-bottom: 1px solid var(--line); }
.projects.is-list .card__media {
  position: fixed; top: 0; left: 0; width: 300px; aspect-ratio: 4 / 3; margin: 0; pointer-events: none; z-index: 20;
  opacity: 0; transform: translate(var(--mx, 0), var(--my, 0)) scale(.9); transition: opacity .3s, transform .3s var(--ease);
}
.projects.is-list .card a:hover .card__media { opacity: 1; transform: translate(var(--mx, 0), var(--my, 0)) scale(1); }
.projects.is-list .card__title { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.projects.is-list .card__place, .projects.is-list .card__cat, .projects.is-list .card__year { display: block; grid-column: auto; grid-row: auto; font-size: 15px; color: var(--muted); }
.projects.is-list .card__year { text-align: right; }

/* Project page ----------------------------------------------------------- */
.project__hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; }
.project__hero > picture, .project__hero > picture img { width: 100%; height: 100%; object-fit: cover; }
.project__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); }
.project__hero-text { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 7vh, 5rem); z-index: 2; }
.project__hero-text h1 { max-width: 16ch; }
.project__intro { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 8rem); padding-block: clamp(4rem, 9vw, 8rem); }
.project__facts { margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.project__facts div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; border-top: 1px solid var(--line); padding: .9rem 0; font-size: 14px; }
.project__facts div:last-child { border-bottom: 1px solid var(--line); }
.project__facts dt { color: var(--muted); }
.project__facts dd { margin: 0; }
.project__body { max-width: 62ch; }
.project__body .lead { margin-bottom: 2rem; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; max-width: none; }
.project__body p:not(.lead) { color: #d2cec7; font-size: 18px; }
.project__video { margin-bottom: 6rem; }
.project__video video, .project__video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 3vw, 3rem) var(--gutter); padding-bottom: clamp(5rem, 10vw, 9rem); }
.gallery__item { margin: 0; grid-column: span 12; }
.gallery__item a { display: block; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: 13px; color: var(--muted); padding-top: .7rem; }
.gallery__item.is-landscape { grid-column: 1 / span 9; }
.gallery__item.is-portrait { grid-column: span 5; }
.gallery__item.is-landscape:nth-child(4n+3) { grid-column: 4 / span 9; }
.gallery__item.is-portrait:nth-child(even) { grid-column: 8 / span 5; margin-top: 8rem; }

.next-project a { position: relative; display: block; height: 70vh; overflow: hidden; }
.next-project picture, .next-project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.next-project a::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); transition: background .6s; }
.next-project a:hover::after { background: rgba(0,0,0,.35); }
.next-project a:hover img { transform: scale(1.04); }
.next-project__text { position: absolute; left: 0; right: 0; bottom: 3rem; z-index: 2; display: block; }
.next-project__text .eyebrow { display: block; }
.next-project__text .display { display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; padding: 4rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 10rem); width: auto; object-fit: contain; }
.lightbox figcaption { color: var(--muted); font-size: 14px; padding-top: 1rem; }
.lightbox__close { position: absolute; top: 1.5rem; right: var(--gutter); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 1rem; color: var(--muted); }
.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover { color: var(--accent); }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }

/* Craft page ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 8rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.split--reverse .split__text { order: -1; }
.split__media picture, .split__media img { width: 100%; }
.split__media img { max-height: 80vh; object-fit: cover; }
.split__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.split__media--duo picture:last-child { margin-bottom: 4rem; }
.steps { padding-block: clamp(4rem, 9vw, 8rem); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
.step { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step__media { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 1.4rem; background: var(--bg-2); order: -1; }
.step__media picture, .step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__num { display: block; font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: .8rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { font-size: 15px; }

.materials { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.materials__head { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; margin-bottom: 2rem; }
.materials__head .eyebrow { margin: 0; }
.materials__head p { margin: 0; font-size: 15px; }
.materials__tabs { display: flex; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: 3rem; }
.materials__tabs button {
  font-size: clamp(2.6rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  color: rgba(242,240,236,.22); transition: color .4s;
}
.materials__tabs button:hover { color: rgba(242,240,236,.6); }
.materials__tabs button[aria-selected="true"] { color: var(--fg); }
.materials__tabs button[aria-selected="true"]::after { content: "."; color: var(--accent); }
.materials__panel .lead { max-width: 60ch; margin-bottom: 2.5rem; }
.materials__images { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.materials__images picture { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.materials__images img { width: 100%; height: 100%; object-fit: cover; animation: fadein .7s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.details { padding-block: clamp(4rem, 9vw, 8rem); }
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.details__grid > div { aspect-ratio: 1; overflow: hidden; }
.details__grid picture, .details__grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: filter .6s, transform 1.2s var(--ease); }
.details__grid > div:hover img { filter: none; transform: scale(1.05); }

/* Studio ----------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-block: clamp(4rem, 9vw, 8rem); }
.partners { padding-bottom: clamp(4rem, 9vw, 8rem); }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 4rem; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; color: var(--muted); }
.climbing { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-block: 1px solid var(--line); padding-block: 3rem; margin-bottom: 4rem; }
.climbing p { margin: 0; max-width: 55ch; }
.footnote { font-size: 13px; color: var(--muted); padding-bottom: 4rem; }
.footnote p { border-top: 1px solid var(--line); padding-top: .8rem; max-width: 70ch; }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 8rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.contact__big { font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; transition: color .3s; word-break: break-word; }
.contact__big:hover { color: var(--accent); }
.contact__media { margin-top: 3rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem var(--gutter); align-content: start; }
.field { display: flex; flex-direction: column; gap: .5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span, .field legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .5rem; }
.field input, .field textarea {
  font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .6rem 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
[aria-invalid="true"] { border-color: #ff4d4d !important; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .3s; }
.chip input:checked + span { background: var(--fg); color: #000; border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: .3rem; accent-color: var(--accent); }
.consent a { text-decoration: underline; }
.form .btn { justify-self: start; }
.form__ok, .form__error { grid-column: 1 / -1; padding: 1rem 1.2rem; border-left: 2px solid var(--accent); background: var(--bg-2); margin: 0; }
.form__error { border-color: #ff4d4d; }
.hp { position: absolute; left: -9999px; }

.prose--legal { padding-bottom: 8rem; }
.prose--legal em { display: block; color: var(--fg); margin-top: 2rem; font-weight: 500; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(4rem, 9vw, 8rem) var(--gutter) 2rem; max-width: var(--max); margin: 0 auto; }
.footer__cta { margin-bottom: clamp(4rem, 8vw, 7rem); }
.footer__mail { font-size: clamp(2.6rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: color .4s; }
.footer__mail:hover { color: var(--accent); }
.footer__mail span { display: inline-block; transition: transform .4s var(--ease); }
.footer__mail:hover span { transform: translateX(.2em); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: var(--gutter); padding-bottom: 3rem; font-size: 15px; }
.footer__nav li, .footer__langs li { margin-bottom: .4rem; }
.footer__nav a:hover, .footer__langs a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__langs a[aria-current] { color: var(--accent); }
.footer__contact { font-style: normal; line-height: 1.9; }
.footer__bottom { display: flex; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: 13px; color: var(--muted); }
.footer__bottom span { margin-right: auto; }
.footer__bottom a:hover { color: var(--fg); }

/* Reveal on scroll ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
/* Custom pages (blocks built in the admin) */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.cblock-hero picture, .cblock-hero img { width: 100%; }
.cblock-hero img { max-height: 85vh; object-fit: cover; }
.cblock-text { padding-block: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 8rem); }
.cblock-text:not(:has(h2)) { grid-template-columns: 1fr; }
.cblock-text:not(:has(h2)) .prose { margin-left: auto; margin-right: auto; }
.cblock-image { padding-block: clamp(2rem, 5vw, 4rem); }
.cblock-image img { width: 100%; }
.cblock-image figcaption { margin-top: .8rem; font-size: 14px; }
.cblock-author { font-size: 15px; margin-top: 1.5rem; }
blockquote.manifesto__text { margin: 0; grid-column: 1 / -1; }
.details__grid > a { display: block; }

/* More than 5 menu entries: switch to the menu button earlier */
@media (max-width: 1280px) {
  .site-header--many .nav, .site-header--many .langs { display: none; }
  .site-header--many .menu-btn { display: inline-flex; }
}
@media (min-width: 1281px) and (max-width: 1500px) {
  .site-header--many .nav ul { gap: 1.4rem; }
}

@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .audiences__list, .figures { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .langs { display: none; }
  .menu-btn { display: inline-flex; }
  .manifesto, .split, .contact, .project__intro, .cblock-text { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .feature a, .feature--1 a, .feature--2 a { grid-template-columns: 1fr; }
  .feature a > * { grid-column: 1 !important; grid-row: auto !important; }
  .feature__media { aspect-ratio: 4 / 3 !important; }
  .project__facts { position: static; }
  .gallery__item, .gallery__item.is-landscape, .gallery__item.is-portrait,
  .gallery__item.is-landscape:nth-child(4n+3), .gallery__item.is-portrait:nth-child(even) { grid-column: 1 / -1; margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: .8rem; position: static; }
  .projects.is-list .projects__listhead, .projects.is-list .card a { grid-template-columns: 1fr auto; }
  .projects.is-list .card__place { grid-column: 1; }
  .projects.is-list .card__cat, .projects.is-list .projects__listhead span:nth-child(2), .projects.is-list .projects__listhead span:nth-child(3) { display: none; }
  .projects.is-list .card__year { grid-column: 2; grid-row: 1; }
  .projects.is-list .card__media { display: none; }
  .materials__head { flex-direction: column; }
  .climbing { flex-direction: column; align-items: flex-start; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .projects, .steps__list, .audiences__list, .figures, .materials__images, .form { grid-template-columns: 1fr; }
  .details__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-wrap: wrap; gap: 1rem; }
  .hero__slide figcaption { display: none; }
  .lightbox { padding: 3.5rem .5rem; }
  .materials__images picture { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
