/* karlaledesma.mx — site styles
   Palette: warm gallery paper + ink, with the brand chartreuse used sparingly. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ee;
  --paper-2: #e9e6e0;
  --ink: #121212;
  --ink-2: #34332f;
  --muted: #65625d;
  --line: rgba(18, 18, 18, .14);
  --accent: #c4ff61;
  --dark: #0d0d0d;
  --error: #b3261e;
  --on-dark-muted: rgba(244, 242, 238, .64);
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1680px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: .7rem 1rem; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; padding-top: clamp(2.5rem, 5vw, 4rem); }
.muted, .meta { color: var(--muted); font-size: .9rem; }
.meta { margin: 0; }

/* ---------- Type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.25rem;
  font-size: .75rem; line-height: 1.2; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; flex: 0 0 2.25rem; height: 1px; background: currentColor; }

.display {
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 1rem + 6.4vw, 7.5rem);
  line-height: .94; letter-spacing: -.048em; font-weight: 600;
  text-transform: lowercase; text-wrap: balance;
}
.display-m {
  font-size: clamp(2rem, 1rem + 3.4vw, 4.25rem);
  line-height: 1; letter-spacing: -.04em; font-weight: 600;
  text-transform: lowercase; text-wrap: balance;
}
.lede {
  max-width: 40ch; margin: 0 0 1.5rem;
  font-size: clamp(1.125rem, 1rem + .55vw, 1.4rem); line-height: 1.45;
  color: var(--ink-2); text-wrap: pretty;
}

/* ---------- Controls ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .8rem 1.45rem;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:hover span { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--ink { background: var(--ink); color: var(--accent); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }

.link-line {
  display: inline-flex; align-items: center; gap: .5em;
  padding-bottom: .2em; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link-line::after { content: "→"; transition: transform .35s var(--ease); }
.link-line:hover { background-size: 35% 1px; }
.link-line:hover::after { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 2rem 0 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--accent);
  border-bottom: 1px solid rgba(18, 18, 18, .12);
}
.bar { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; color: var(--ink); padding: 6px 0; }
.logo { display: block; height: 22px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1.1rem, 2.4vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.nav__link { position: relative; display: block; padding: .5rem 0; font-weight: 500; text-decoration: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link[aria-current] { font-weight: 600; }

.lang { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
.lang__sep { color: var(--muted); }
.lang__alt { color: var(--muted); text-decoration: none; padding: .6rem .15rem; }
.lang__alt:hover { color: var(--ink); text-decoration: underline; }

.menu { display: none; }
.menu__btn { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .1rem; font-weight: 600; cursor: pointer; list-style: none; }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn i { position: relative; width: 22px; height: 8px; border-block: 1.5px solid currentColor; transition: transform .3s var(--ease), border-color .3s; }
.menu[open] .menu__btn i { border-color: transparent; }
.menu__btn i::before, .menu__btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.menu[open] .menu__btn i::before { opacity: 1; transform: rotate(45deg) scaleX(1.1); }
.menu[open] .menu__btn i::after { opacity: 1; transform: rotate(-45deg) scaleX(1.1); }
.menu__panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--paper); overflow: auto;
}
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__link { display: block; padding: .15rem 0; font-size: clamp(2.5rem, 12vw, 3.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; text-decoration: none; }
.menu__link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.menu__foot { display: grid; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.menu__foot p { margin: 0; }
.menu__foot .lang { font-size: .9rem; }

@media (max-width: 859px) {
  :root { --header-h: 58px; }
  .nav, .bar > .lang { display: none; }
  .menu { display: block; margin-left: auto; }
  .logo { height: 19px; }
}
html.menu-open { overflow: hidden; }
/* backdrop-filter would trap the fixed menu panel inside the header */
.site-header:has(.menu[open]), html.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 6rem); align-items: end;
  padding-block: clamp(2.5rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem);
}
.hero__title { margin-bottom: 2rem; font-size: clamp(2.6rem, .6rem + 4.5vw, 6.5rem); }
.hero__title-2 { display: block; color: var(--muted); }
.hero__media { margin: 0; }
.hero__media a { display: block; overflow: hidden; }
.hero__media img { width: 100%; max-height: calc(100svh - var(--header-h) - 5rem); object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__media a:hover img { transform: scale(1.015); }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media img { max-height: none; }
}

.g-cap { display: flex; align-items: baseline; gap: .75rem; margin-top: .8rem; font-size: .78rem; line-height: 1.35; color: var(--muted); letter-spacing: .01em; }
.g-num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Section heads ---------- */

.section-head { padding-block: clamp(4.5rem, 10vw, 10rem) clamp(1.75rem, 3vw, 3rem); }
.section-head--flush { padding-inline: 0; padding-top: 0; }

/* ---------- Category strip (home index) ---------- */

.strip { display: flex; gap: clamp(8px, 1vw, 16px); margin: 0; padding-bottom: .5rem; list-style: none; }
.strip__item { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
.strip__link { display: block; text-decoration: none; }
.strip__img { display: block; height: clamp(20rem, 62vh, 44rem); overflow: hidden; background: var(--paper-2); }
.strip__img picture, .strip__img img { width: 100%; height: 100%; }
.strip__img img { object-fit: cover; transition: transform 1.2s var(--ease); }
.strip__label { display: flex; align-items: baseline; gap: .6rem; padding-top: .9rem; }
.strip__num { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.strip__name {
  font-size: clamp(1rem, .85rem + .5vw, 1.3rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2;
  text-transform: lowercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.strip__link:hover .strip__name, .strip__link:focus-visible .strip__name { background-size: 100% 1px; }
.strip__link:hover img { transform: scale(1.035); }
@media (hover: hover) and (min-width: 760px) {
  .strip:hover .strip__item { flex-grow: .85; }
  .strip:hover .strip__item:hover, .strip .strip__item:focus-within { flex-grow: 1.9; }
}
@media (max-width: 759px) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 72vw; scroll-snap-align: start; }
  .strip__img { height: auto; aspect-ratio: 4 / 5; }
}

/* ---------- Staggered gallery ---------- */

.stagger { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 7rem); }
.stagger::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.stagger__col { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 8rem); min-width: 0; }
.stagger__col--b { padding-top: clamp(5rem, 16vw, 18rem); }
.g-item { width: var(--wf, 100%); margin: 0; }
.g-item--end { align-self: flex-end; }
.g-item--start { align-self: flex-start; }
.g-item[hidden] { display: none; }
.g-link { display: block; overflow: hidden; }
[data-gallery="lightbox"] .g-link { cursor: zoom-in; }
.g-link img { width: 100%; transition: transform 1s var(--ease); }
.g-link:hover img { transform: scale(1.015); }
@media (max-width: 759px) {
  .stagger { display: flex; flex-direction: column; gap: 2.75rem; }
  .stagger::before { display: none; }
  .stagger__col { display: contents; }
  .stagger__col--b { padding: 0; }
  .g-item { width: 100%; }
}

/* Scroll reveal (only applied by JS to items below the fold) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

/* ---------- Approach ---------- */

.approach { padding-block: clamp(5rem, 11vw, 11rem) clamp(3rem, 6vw, 6rem); }
.approach__head { max-width: 64rem; }
.approach__head .display-m { margin-bottom: 1.75rem; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3rem); margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
.point, .step { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.point__num { display: block; margin: 0 0 2.5rem; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.point__title { margin: 0 0 .75rem; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.15; letter-spacing: -.02em; }
.point p, .step p { margin: 0; color: var(--ink-2); max-width: 42ch; }
.clients { max-width: 62ch; margin: clamp(3rem, 6vw, 5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 859px) { .points { grid-template-columns: 1fr; } .point__num { margin-bottom: 1rem; } }

/* ---------- CTA band ---------- */

.cta-band { margin-top: clamp(4rem, 8vw, 8rem); background: var(--accent); color: var(--ink); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 1.75rem 4rem; padding-block: clamp(4rem, 9vw, 8.5rem); }
.cta-band__title { grid-column: 1 / -1; margin: 0; font-size: clamp(2.5rem, 1rem + 5.2vw, 6.25rem); line-height: .95; letter-spacing: -.048em; text-wrap: balance; }
.cta-band__text { margin: 0; max-width: 38ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.cta-band .btn { justify-self: start; }
@media (max-width: 759px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; background: var(--ink); color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.brand--footer { color: var(--paper); }
.brand--footer .logo { height: 26px; }
.footer__based { margin: 1.25rem 0 0; color: var(--on-dark-muted); }
.site-footer .eyebrow { color: var(--on-dark-muted); }
.footer__list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer__list a, .footer__legal a { text-decoration: none; }
.footer__list a:hover, .footer__legal a:hover { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid rgba(244, 242, 238, .16); font-size: .8rem; color: var(--on-dark-muted); }
.footer__legal p { margin: 0; }
@media (max-width: 759px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
main > :last-child:not(.cta-band) { margin-bottom: clamp(4rem, 8vw, 8rem); }

/* ---------- Page heads ---------- */

.page-head { padding-block: clamp(3rem, 8vw, 8rem) clamp(2rem, 4vw, 4rem); }
.page-head--center { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; }
.page-head__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.page-head__row .lede { max-width: 46ch; }
.page-head__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.crumbs ol { display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.cat-switch ol { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.cat-switch a { display: flex; gap: .7rem; align-items: baseline; padding: .3rem 0; color: var(--muted); text-decoration: none; text-transform: lowercase; font-weight: 500; }
.cat-switch a .g-num { color: inherit; font-size: .78rem; }
.cat-switch a:hover { color: var(--ink); }
.cat-switch a[aria-current] { color: var(--ink); font-weight: 600; }
.cat-switch a[aria-current]::after { content: ""; flex: 0 0 1.5rem; height: 1px; margin-left: .25rem; align-self: center; background: currentColor; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .45rem 1rem; border: 1px solid rgba(18, 18, 18, .4); border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 859px) { .page-head__row { grid-template-columns: 1fr; } }

.gallery { padding-bottom: clamp(3rem, 6vw, 6rem); }
.next-cat a { display: block; padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--ink); text-decoration: none; }
.next-cat .eyebrow { margin-bottom: .75rem; }
.next-cat__name { display: block; transition: transform .6s var(--ease); }
.next-cat a:hover .next-cat__name { transform: translateX(.5rem); }

/* ---------- Work index ---------- */

.cat-list { margin: 0; padding-bottom: 1rem; list-style: none; }
.cat-row { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; align-items: start; padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 1px solid var(--line); }
.cat-row__num { padding-top: .7rem; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.cat-row__name { margin: 0 0 1rem; font-size: clamp(2rem, 1rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -.045em; text-transform: lowercase; }
.cat-row__link { text-decoration: none; }
.cat-row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat-row__intro { max-width: 48ch; margin: 0 0 1.25rem; color: var(--ink-2); }
.cat-row__imgs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .6rem; align-items: start; }
.cat-row__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.cat-row__img picture, .cat-row__img img { width: 100%; height: 100%; }
.cat-row__img img { object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-row:hover .cat-row__img img { transform: scale(1.04); }
.cat-row:hover .link-line { background-size: 35% 1px; }
.cat-row:focus-within { outline: 2px solid var(--ink); outline-offset: 6px; }
.cat-row__link:focus-visible { outline: none; }
@media (max-width: 859px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-row__num { padding: 0; }
}

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem); }
.service { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.service__img { aspect-ratio: 4 / 5; overflow: hidden; margin: 0 0 1.5rem; background: var(--paper-2); }
.service__img picture, .service__img img { width: 100%; height: 100%; }
.service__img img { object-fit: cover; }
.service .point__num { margin-bottom: .75rem; }
.service__title { margin: 0 0 .75rem; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); letter-spacing: -.025em; line-height: 1.1; }
.service p { color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding-block: clamp(5rem, 10vw, 10rem); }
.split .display-m { margin-bottom: 1.75rem; }
.process, .for { padding-block: clamp(2rem, 5vw, 5rem); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.step .point__num { margin-bottom: 1.75rem; }
.for__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; margin: 2.5rem 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.for__list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 500; }
.for__quote { color: var(--muted); max-width: 60ch; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .services { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 859px) { .services { gap: 1.25rem; } .service__title { font-size: 1.2rem; } }
@media (max-width: 859px) {
  .split, .for__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step .point__num { margin-bottom: .75rem; }
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; padding-block: clamp(3rem, 7vw, 7rem) 0; }
.about__portrait { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait--empty { display: grid; place-items: center; color: var(--ink); }
.about__mark { display: block; width: 44%; }
.about__mark svg { display: block; width: 100%; height: auto; }
.about__text p:not(.lede):not(.eyebrow):not(.actions) { max-width: 60ch; color: var(--ink-2); }
.facts { margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
.facts__row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; }
@media (max-width: 859px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 30rem; }
  .facts__row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: .8rem 0;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; font-size: 1.0625rem; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field select {
  padding-right: 2rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") right .25rem center / 12px 8px no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field__hint { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.field__error { margin: .5rem 0 0; font-size: .875rem; font-weight: 600; color: var(--error); }
.field--error input, .field--error select, .field--error textarea { border-bottom-color: var(--error); border-bottom-width: 2px; }
.req { color: var(--error); }
.form__alert { margin: 0 0 2rem; padding: 1rem 1.25rem; border-left: 3px solid var(--error); background: #fff; }
.form__alert p { margin: 0; font-weight: 600; }
.form__alert ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.form__alert:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.form__privacy { max-width: 46ch; margin: 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 2rem); border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.contact__big { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact__big a { text-decoration: none; }
.contact__big a:hover { text-decoration: underline; }
.cf-turnstile { margin-top: 1.5rem; }
@media (max-width: 859px) {
  .contact { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Prose & misc ---------- */

.prose { max-width: 48rem; padding-block: clamp(3rem, 7vw, 7rem) 0; }
.prose .display { font-size: clamp(2.4rem, 1rem + 4vw, 4.75rem); }
.prose .meta { margin-bottom: 2rem; }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.2rem; letter-spacing: -.01em; }
.prose p { color: var(--ink-2); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* ---------- Lightbox ---------- */

.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--dark); color: var(--paper);
}
.lb::backdrop { background: var(--dark); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: lb-in .28s var(--ease); }
.lb :focus-visible { outline-color: var(--accent); }
.lb__top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: .5rem var(--gutter); font-size: .82rem; }
.lb__count { margin: 0; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
.lb__close { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .25rem; border: 0; background: none; font-weight: 600; cursor: pointer; }
.lb__close i { position: relative; width: 18px; height: 18px; }
.lb__close i::before, .lb__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lb__close i::after { transform: rotate(-45deg); }
.lb__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; margin: 0; padding: 0 clamp(16px, 7vw, 110px) 1.25rem; }
.lb__img { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; width: 100%; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb__img picture { display: contents; }
.lb__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); user-select: none; -webkit-user-drag: none; }
.lb__img img.is-loaded { opacity: 1; }
.lb__cap { max-width: 64ch; min-height: 2.6em; padding-top: .9rem; font-size: .85rem; line-height: 1.45; text-align: center; color: var(--on-dark-muted); }
.lb__cap strong { color: var(--paper); font-weight: 600; }
.lb__cap span { display: block; }
.lb__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: clamp(48px, 6vw, 88px); height: min(40vh, 320px); transform: translateY(-50%); border: 0; background: none; font-size: 1.5rem; cursor: pointer; opacity: .65; transition: opacity .2s; }
.lb__nav:hover { opacity: 1; }
.lb__nav--prev { left: 0; }
.lb__nav--next { right: 0; }
html.lb-open { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 759px) {
  .lb__stage { padding: 0 8px 72px; }
  .lb__nav { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); height: 56px; width: 64px; transform: none; opacity: .85; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .lb, .filters { display: none !important; }
  body { background: #fff; }
}
