/* ==========================================================================
   Damián Rodríguez — site styles
   Built on top of Bootstrap 5 (grid, spacing utilities, offcanvas menu).

   1. Design tokens (colours, fonts)   6. Home: hero slideshow
   2. Base & texture                   7. Home: sections
   3. Typography helpers               8. Gallery & work cards
   4. Header, menu, footer             9. Sculpture page
   5. Buttons, cursor, reveals        10. About · 11. Contact · 12. Motion prefs
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------
   Colours taken from La Gomera: basalt, whitewash, red earth (almagre),
   laurel forest, Atlantic haze and dry-grass ochre. */
:root {
  --basalt: #1e1b18;
  --basalt-2: #292521;
  --basalt-3: #36312b;
  --sand: #e6dccb;         /* light alternate sections */
  --cal: #efe8dc;          /* whitewashed wall */
  --cal-2: #e4dac8;
  --bone: #f7f2ea;
  --ink: #1b1814;
  --ink-soft: #5d544a;
  --almagre: #8a3b24;      /* red earth */
  --ochre: #c39a5b;        /* dry grass, tabaiba */
  --laurel: #3a4a30;       /* laurisilva */
  --atlantic: #2e4454;
  --line-dark: rgba(247, 242, 234, 0.14);
  --line-light: rgba(27, 24, 20, 0.14);

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cal);
  --bs-link-color-rgb: 27, 24, 20;
  --bs-link-hover-color-rgb: 138, 59, 36;
}

/* Per-sculpture title fonts (chosen in sculpture.json → "title_font") */
.font-anton { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.font-playfair { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 800; letter-spacing: -0.02em; }
.font-cinzel { font-family: "Cinzel", "Trajan Pro", serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* 2. Base & texture ------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--cal);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything: gives the "hand-made, stone and paper" feel. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}
img { max-width: 100%; }
img.is-broken { visibility: hidden; }   /* see layout.js: never show a broken-image icon */
a { color: inherit; text-decoration: none; }
::selection { background: var(--almagre); color: var(--bone); }
.theme-dark { background: var(--basalt); color: var(--bone); }
.section--sand { background: var(--sand); }
.theme-dark ::selection { background: var(--ochre); color: var(--basalt); }
main { display: block; }
[id] { scroll-margin-top: var(--header-h); }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.container-xxl { padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 10000; background: var(--bone); color: var(--ink); padding: 0.5rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* 3. Typography helpers --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  opacity: 0.75;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.display-serif em { font-style: italic; color: var(--almagre); }
.theme-dark .display-serif em { color: var(--ochre); }
.lead-serif { font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; font-weight: 400; }
.text-soft { color: var(--ink-soft); }
.theme-dark .text-soft { color: rgba(247, 242, 234, 0.66); }
.numeral { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; opacity: 0.7; }

/* 4. Header, menu, footer ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  color: var(--ink);
  transition: background-color 0.5s var(--ease-out), color 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
}
body[data-header="dark"] .site-header:not(.is-scrolled) { color: var(--bone); }
.site-header.is-scrolled {
  background: rgba(239, 232, 220, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__mark svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.brand__mark .brand__island { stroke-width: 1.1; }
.brand:hover .brand__island { fill: currentColor; }  /* the island fills in on hover */
.brand__island { transition: fill 0.4s var(--ease-out); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }

.site-nav { align-items: center; gap: 2.5rem; }
.site-nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-link-line { position: relative; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.4rem 0; }
.nav-link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav-link-line:hover::after, .nav-link-line.is-active::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: inline-flex; gap: 0.2rem; border: 1px solid currentColor; border-radius: 99px; padding: 3px; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.lang-btn {
  background: none; border: 0; color: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.3rem 0.65rem; border-radius: 99px; opacity: 0.6; transition: opacity 0.3s, background-color 0.3s, color 0.3s;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.is-active { opacity: 1; background: currentColor; }
.lang-btn.is-active { color: var(--cal); background: var(--ink); }
body[data-header="dark"] .site-header:not(.is-scrolled) .lang-btn.is-active,
.theme-dark .lang-btn.is-active, .mobile-menu .lang-btn.is-active { background: var(--bone); color: var(--basalt); }

.menu-toggle { display: flex; align-items: center; gap: 0.8rem; background: none; border: 0; color: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.5rem 0; }
.menu-toggle__lines { display: grid; gap: 6px; width: 26px; }
.menu-toggle__lines i { display: block; height: 1.5px; background: currentColor; }
.menu-toggle__lines i:last-child { width: 65%; justify-self: end; }

.mobile-menu { --bs-offcanvas-width: 100vw; background: var(--basalt); color: var(--bone); }
.mobile-menu .offcanvas-header { height: var(--header-h); padding-inline: var(--gutter); }
.mobile-menu__close { background: none; border: 0; color: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.mobile-menu .offcanvas-body { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem var(--gutter) 2.5rem; }
.mobile-menu__links { list-style: none; padding: 0; margin: 0; counter-reset: menu; }
.mobile-menu__links li { counter-increment: menu; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__links a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--font-serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.25; padding: 0.35rem 0; }
.mobile-menu__links a::before { content: "0" counter(menu); font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; opacity: 0.5; }
.mobile-menu__coords { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin: 1.5rem 0 0; }
.lang-switch--big .lang-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

.site-footer { background: var(--basalt); color: var(--bone); padding: clamp(64px, 9vw, 120px) 0 2rem; position: relative; overflow: hidden; }
.site-footer__top { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 1px solid var(--line-dark); padding-bottom: 3rem; margin-bottom: 3rem; }
.site-footer__statement { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); opacity: 0.8; margin: 0; }
.site-footer__wordmark { font-family: var(--font-serif); font-weight: 500; font-size: clamp(3rem, 11vw, 10.5rem); line-height: 0.9; letter-spacing: -0.03em; transition: color 0.4s; }
.site-footer__wordmark:hover { color: var(--ochre); }
.site-footer__press { border-bottom: 1px solid var(--line-dark); padding-bottom: 2.5rem; margin-bottom: 3rem; }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list a { display: grid; grid-template-columns: 4rem 11rem 1fr auto; gap: 0.4rem 1.5rem; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var(--line-dark); transition: color 0.3s, padding-left 0.4s var(--ease-out); }
.press-list li:first-child a { border-top: 0; }
.press-list a:hover { color: var(--ochre); padding-left: 0.5rem; }
.press-list__year { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; opacity: 0.7; }
.press-list__type { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.press-list__title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; }
.press-list__source { font-size: 0.74rem; letter-spacing: 0.08em; opacity: 0.6; white-space: nowrap; }
@media (max-width: 767.98px) {
  .press-list a { grid-template-columns: 3.2rem 1fr; }
  .press-list__title, .press-list__source { grid-column: 2; }
}
/* long email addresses wrap instead of running off the screen */
.site-footer a, .site-footer__bottom span, .legal-section li, .legal-section p, .credits-list li { overflow-wrap: anywhere; }
.site-footer__cols a { opacity: 0.75; transition: opacity 0.3s; }
.site-footer__cols a:hover { opacity: 1; }
.site-footer__cols li { margin-bottom: 0.4rem; }
.site-footer__coords { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.78rem; opacity: 0.6; }
.site-footer__bottom a:hover { opacity: 1; text-decoration: underline; }

/* 5. Buttons, cursor, reveals --------------------------------------------- */
.btn-line {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05rem 1.6rem; border: 1px solid currentColor; border-radius: 99px;
  color: inherit; background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.btn-line::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn-line:hover { color: var(--bone); }
.btn-line:hover::before { transform: translateY(0); }
.theme-dark .btn-line:hover, .btn-line--light:hover { color: var(--basalt); }
.theme-dark .btn-line::before, .btn-line--light::before { background: var(--bone); }
.btn-line--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-line--solid::before { background: var(--almagre); }
.btn-line--solid:hover { color: var(--bone); border-color: var(--almagre); }
.arrow { display: inline-block; width: 22px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease-out); }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn-line:hover .arrow, .link-arrow:hover .arrow { width: 34px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 0.35rem; border-bottom: 1px solid currentColor; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 0; height: 0; opacity: 0; transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ochre); transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.cursor.is-link::before { transform: scale(3.2); background: rgba(195, 154, 91, 0.35); }
.cursor.is-label::before { transform: scale(10); background: rgba(247, 242, 234, 0.8); }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--basalt);
  white-space: nowrap; transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

body { opacity: 0; transition: opacity 0.6s var(--ease-out); }
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: 0.35s; }

/* 6. Home: hero slideshow ------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--basalt);
  color: var(--bone);
  --mx: 0; --my: 0;               /* pointer position, -1…1, set by home.js */
  --slide-ms: 5000ms;
  touch-action: pan-y;
}
.hero__slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { visibility: hidden; pointer-events: none; }
.hero-slide.is-active { visibility: visible; pointer-events: auto; }
.hero-slide.is-leaving { visibility: visible; }

/* layer 1: La Gomera landscape */
.hero-slide__bg { position: absolute; inset: -3%; opacity: 0; will-change: transform; backface-visibility: hidden; transition: opacity 1.4s var(--ease-in-out); transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0); }
.hero-slide__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.62) contrast(1.04);
  transform: scale(1.14);
  transition: transform 8s linear;
}
.hero-slide.is-active .hero-slide__bg { opacity: 1; }
.hero-slide.is-active .hero-slide__bg img { transform: scale(1.04); }
.hero-slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 50% 55%, transparent 0%, rgba(30, 27, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(30, 27, 24, 0.45) 0%, transparent 22%, transparent 65%, rgba(30, 27, 24, 0.7) 100%);
}

/* layer 2: diagonal colour band (the slide's accent colour) */
.hero-slide__band {
  position: absolute; inset: 0;
  /* A plain see-through colour. (A blend mode here made Chrome flash thin lines while things moved.) */
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 92%, white 8%), var(--accent));
  opacity: 0;
  clip-path: polygon(50% 0, 56% 0, 36% 100%, 30% 100%);
  transition: clip-path 1.3s var(--ease-out), opacity 0.9s var(--ease-out);
}
.hero-slide.is-active .hero-slide__band { opacity: 0.62; clip-path: polygon(44% 0, 70% 0, 50% 100%, 24% 100%); }
.hero-slide.is-leaving .hero-slide__band { opacity: 0; clip-path: polygon(64% 0, 70% 0, 50% 100%, 44% 100%); transition-duration: 0.8s; }

/* layer 3: big title behind the sculpture, and layer 5: its outline in front */
.hero-title {
  position: absolute; inset: 0; margin: 0; pointer-events: none;
  font-size: clamp(4.2rem, 13.5vw, 15rem);
  line-height: 0.86;
  color: var(--bone);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 8px), 0);
}
.hero-title.font-playfair, .hero-title.font-cinzel { font-size: clamp(3.6rem, 11vw, 12.5rem); }
.hero-title__line { position: absolute; white-space: nowrap; display: block; }
.hero-title__line:nth-child(1) { left: 7vw; top: 27%; }
.hero-title__line:nth-child(2) { right: 7vw; top: 50%; }
.hero-title__char { display: inline-block; opacity: 0; transform: translateY(0.35em) rotate(4deg); filter: blur(8px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 250ms); }
.hero-title__char.is-space { width: 0.28em; }
.hero-slide.is-active .hero-title__char { opacity: 1; transform: none; filter: none; }
.hero-slide.is-leaving .hero-title__char { opacity: 0; transform: translateY(-0.2em); filter: blur(6px); transition-duration: 0.5s; transition-delay: calc(var(--i) * 15ms); }
.hero-title--solid { text-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.hero-title--outline { color: transparent; -webkit-text-stroke: 1px rgba(247, 242, 234, 0.55); z-index: 3; }

/* layer 4: the floating sculpture (a link to its page) */
.hero-sculpture {
  position: absolute; left: 50%; bottom: 5vh; z-index: 2;
  /* --ratio = width / height of the cut-out (set by home.js). Tall figures are limited by
     the screen height, wide ones (like the fish) by the screen width. */
  height: min(84vh, 1100px, calc(64vw / var(--ratio, 0.5)));
  transform: translateX(-50%);
  display: block; outline-offset: 12px;
}
.hero-sculpture__parallax { height: 100%; will-change: transform; transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 16px), 0); }
.hero-sculpture__float { height: 100%; animation: float 7s ease-in-out infinite; }
.hero-sculpture__pop { height: 100%; position: relative; transition: transform 0.8s var(--ease-out); transform-origin: 50% 90%; }
.hero-sculpture__pop::before {           /* soft light behind the sculpture */
  content: ""; position: absolute; inset: 8% 0 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(247, 225, 190, 0.2), transparent 92%);
  opacity: 0.6; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.hero-sculpture img {
  height: 100%; width: auto; max-width: none; display: block;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  opacity: 0; transform: translateY(9%) scale(0.94);
  transition: opacity 1.1s var(--ease-out) 0.15s, transform 1.4s var(--ease-out) 0.15s, filter 0.8s var(--ease-out);
}
.hero-slide.is-active .hero-sculpture img { opacity: 1; transform: none; }
.hero-slide.is-leaving .hero-sculpture img { opacity: 0; transform: translateY(-4%) scale(1.02); transition-duration: 0.6s; transition-delay: 0s; }
.hero-sculpture:hover .hero-sculpture__pop, .hero-sculpture.is-pressed .hero-sculpture__pop { transform: scale(1.05) translateY(-1.5%); }
.hero-sculpture:hover .hero-sculpture__pop::before, .hero-sculpture.is-pressed .hero-sculpture__pop::before { opacity: 1; }
.hero-sculpture:hover img, .hero-sculpture.is-pressed img { filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.32)) brightness(1.06) saturate(1.08); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* hero interface */
.hero__ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.hero__coords {
  position: absolute; left: calc(var(--gutter) * 0.55); top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg) translateY(50%); transform-origin: center;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.55; white-space: nowrap;
}
.hero__meta { position: absolute; left: var(--gutter); bottom: clamp(28px, 5vh, 56px); max-width: 320px; }
.hero__count { font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 0.7rem; display: flex; align-items: baseline; gap: 0.5rem; }
.hero__count strong { font-size: 2.6rem; font-weight: 500; line-height: 1; }
.hero__count span { opacity: 0.55; }
.hero__material { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; margin-bottom: 1.3rem; }
.hero__meta .btn-line { border-color: rgba(247, 242, 234, 0.5); }
.hero__meta-swap { transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.hero__meta-swap.is-changing { opacity: 0; transform: translateY(8px); }

.hero__progress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.hero__progress button {
  display: flex; align-items: center; gap: 0.9rem; background: none; border: 0; color: var(--bone); padding: 0.35rem 0;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.45; transition: opacity 0.3s;
}
.hero__progress button:hover, .hero__progress button.is-active { opacity: 1; }
.hero__progress .track { position: relative; width: 2px; height: 56px; background: rgba(247, 242, 234, 0.2); overflow: hidden; }
.hero__progress .num { min-width: 1.6em; text-align: right; }
/* a new group of numbers (08–14 …) fades in */
.hero__progress.is-new-page li { animation: page-in 0.6s var(--ease-out) both; }
.hero__progress.is-new-page li:nth-child(2) { animation-delay: 0.04s; } .hero__progress.is-new-page li:nth-child(3) { animation-delay: 0.08s; } .hero__progress.is-new-page li:nth-child(4) { animation-delay: 0.12s; } .hero__progress.is-new-page li:nth-child(5) { animation-delay: 0.16s; } .hero__progress.is-new-page li:nth-child(6) { animation-delay: 0.2s; } .hero__progress.is-new-page li:nth-child(7) { animation-delay: 0.24s; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero__progress .fill { position: absolute; inset: 0; background: var(--bone); transform: scaleY(0); transform-origin: top; }

.hero__arrows { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); display: flex; gap: 0.6rem; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, 0.4); background: rgba(19, 17, 15, 0.2);
  color: var(--bone); display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.round-btn:hover { background: var(--bone); color: var(--basalt); border-color: var(--bone); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

@keyframes spin { to { transform: rotate(360deg); } }


/* Hero on tablets & phones */
@media (max-width: 991.98px) {
  .hero__coords { display: none; }
  /* numbers across the bottom (each at least 44 px to tap), the text sits just above them */
  .hero__progress { top: auto; bottom: 4px; left: var(--gutter); right: var(--gutter); transform: none; flex-direction: row; gap: 0.5rem; }
  .hero__progress li { flex: 0 1 44px; min-width: 0; }
  .hero__progress button { flex-direction: column-reverse; align-items: flex-start; justify-content: center; gap: 0.4rem; width: 100%; min-height: 44px; }
  .hero__progress .track { width: 100%; height: 2px; }
  .hero__meta { bottom: 60px; }
  .hero__progress .fill { transform: scaleX(0); transform-origin: left; }
  .hero__arrows { display: none; }
}
@media (max-width: 767.98px) {
  .hero { min-height: 560px; }
  .hero-title, .hero-title.font-playfair, .hero-title.font-cinzel { font-size: clamp(3.2rem, 17vw, 7rem); }
  .hero-title__line:nth-child(1) { left: var(--gutter); top: calc(var(--header-h) + 3vh); }
  .hero-title__line:nth-child(2) { right: var(--gutter); top: calc(var(--header-h) + 3vh + 0.9em); }
  .hero-sculpture { height: min(52svh, calc(92vw / var(--ratio, 0.5))); bottom: 25svh; }
  .hero-slide.is-active .hero-slide__band { clip-path: polygon(38% 0, 86% 0, 62% 100%, 14% 100%); }
  .hero__meta { max-width: 55%; }
  .hero__count strong { font-size: 2rem; }
  .hero__meta .btn-line { padding: 0.8rem 1.1rem; font-size: 0.68rem; }
}

/* 7. Home: sections ------------------------------------------------------- */
.manifesto__title { max-width: 14ch; }

/* Timeline (home page) */
.timeline-wrap { position: relative; }
.timeline-wrap .timeline { position: relative; z-index: 1; }
/* Three sculptures standing faded between the steps, like a gallery behind the text */
.timeline-figures { position: absolute; inset: -18% 0 0; pointer-events: none; z-index: 0; }
.timeline-figures__item { position: absolute; bottom: 0; transform: translateX(-50%); height: var(--h); }
.timeline-figures__item img { height: 100%; width: auto; display: block; opacity: 0.2; filter: saturate(0.85); }
.timeline-figures__item--1 { left: 20%; --h: 88%; }
.timeline-figures__item--2 { left: 50%; --h: 115%; }
.timeline-figures__item--3 { left: 80%; --h: 105%; }
@media (max-width: 991.98px) {
  .timeline-figures { inset: 0; }
  .timeline-figures__item--1, .timeline-figures__item--2 { display: none; }
  .timeline-figures__item--3 { left: auto; right: -4%; transform: none; --h: 70%; bottom: 8%; }
  .timeline-figures__item img { opacity: 0.14; }
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 2.35rem; height: 1px; background: var(--line-light); }
.timeline__item { position: relative; padding: 0 1.4rem 0 0; }
.timeline__year { display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--almagre); line-height: 1; height: 1.6rem; }
.timeline__dot { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--cal); border: 1.5px solid var(--almagre); margin: 0.55rem 0 1.3rem; position: relative; z-index: 1; transition: background-color 0.3s, transform 0.4s var(--ease-out); }
.timeline__item:hover .timeline__dot { background: var(--almagre); transform: scale(1.3); }
.section--sand .timeline__dot { background: var(--sand); }
.timeline__item:last-child .timeline__dot { background: var(--almagre); }
.timeline__item h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; margin: 0 0 0.6rem; }
.timeline__item p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.timeline__source { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.timeline__source:hover { opacity: 1; color: var(--almagre); }
@media (max-width: 991.98px) {
  .timeline { grid-template-columns: 1fr; padding-left: 1.6rem; }
  .timeline::before { left: 5px; right: auto; top: 0.4rem; bottom: 0.4rem; width: 1px; height: auto; }
  .timeline__item { padding: 0 0 2.2rem; }
  .timeline__dot { position: absolute; left: -1.6rem; top: 0.35rem; margin: 0; }
  .timeline__year { height: auto; margin-bottom: 0.5rem; }
}

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head .display-serif { margin: 0; }
.section-head p { max-width: 38ch; margin: 0; }

.artist-teaser__image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.artist-teaser__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.artist-teaser__image.is-visible img { transform: scale(1); }
.artist-teaser__caption { position: absolute; left: 1.2rem; bottom: 1rem; color: var(--bone); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }


.cta-block { text-align: center; }
.cta-block .display-serif { margin-inline: auto; max-width: 16ch; }

/* 8. Gallery & work cards ------------------------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(4rem, 15vw, 13rem); line-height: 0.85; letter-spacing: -0.04em; margin: 0; }
.page-head__title sup { font-size: 0.18em; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.1em; vertical-align: top; top: 1.4em; margin-left: 0.4em; opacity: 0.6; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: transparent; border: 1px solid var(--line-light); color: var(--ink); border-radius: 99px; padding: 0.55rem 1.1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: all 0.3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cal); border-color: var(--ink); }

.work-card { display: block; position: relative; color: var(--bone); padding-top: 18%; }
.work-card__stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: visible;
  background:
    radial-gradient(ellipse 70% 55% at 50% 70%, color-mix(in srgb, var(--accent) 60%, white 22%), transparent 70%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 85%, black 10%), color-mix(in srgb, var(--accent) 70%, black 45%));
}
.work-card__stage::before {  /* stone-like texture inside the card */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.work-card__ghost { position: absolute; left: 0; right: 0; top: 8%; text-align: center; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.9; opacity: 0.16; white-space: nowrap; overflow: hidden; }
.work-card__img {
  position: absolute; left: 50%; bottom: 7%; height: 108%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom;
  transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.work-card:hover .work-card__img, .work-card:focus-visible .work-card__img { transform: translateX(-50%) translateY(-6%) scale(1.06); filter: drop-shadow(0 44px 34px rgba(0, 0, 0, 0.5)); }
.work-card__collection { position: absolute; left: 1.2rem; top: 2.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.work-card__num { position: absolute; left: 1.2rem; top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1rem; opacity: 0.85; }
.work-card__status { position: absolute; right: 1.2rem; top: 1.1rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; display: flex; align-items: center; gap: 0.45rem; }
.work-card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9dc28a; }
.work-card__status[data-status="sold"]::before, .work-card__status[data-status="private"]::before { background: #c9614a; }
.work-card__status[data-status="reserved"]::before { background: var(--ochre); }
.work-card__info { color: var(--ink); padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.theme-dark .work-card__info { color: var(--bone); }
.work-card__title { font-size: 1.7rem; line-height: 1.05; margin: 0 0 0.35rem; }
.work-card__title.font-anton { font-size: 1.9rem; }
.work-card__title.font-cinzel { font-size: 1.45rem; }
.work-card__sub { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.work-card__go { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: 0.5; transition: all 0.4s var(--ease-out); }
.work-card__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.work-card:hover .work-card__go { opacity: 1; background: var(--ink); color: var(--cal); transform: rotate(-45deg); }
.theme-dark .work-card:hover .work-card__go { background: var(--bone); color: var(--basalt); }

.collection-intro { max-width: 60ch; margin: 0 0 3rem; padding-left: 1rem; border-left: 2px solid var(--almagre); }
.works-empty { padding: 4rem 0; text-align: center; font-family: var(--font-serif); font-size: 1.5rem; }

/* 9. Sculpture page ------------------------------------------------------- */
.work-hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--basalt); color: var(--bone); padding-top: var(--header-h); --mx: 0; --my: 0; }
/* Very slight parallax (about a third of the home page's): background one way, sculpture the other */
.work-hero__bg { position: absolute; inset: -2%; will-change: transform; backface-visibility: hidden; transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -4px), 0); }
.work-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.55); }
.work-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(30, 27, 24, 0.55) 100%); }
.work-hero__band { position: absolute; inset: 0; transform: translate3d(calc(var(--mx) * -3px), 0, 0); background: var(--accent); opacity: 0.58; clip-path: polygon(22% 0, 48% 0, 34% 100%, 8% 100%); }
.work-hero__stage { position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; }
.work-hero__move { position: absolute; inset: 0; will-change: transform; transform: translate3d(calc(var(--mx) * 9px), calc(var(--my) * 6px), 0); }
.work-hero__float { position: absolute; inset: 0; animation: float-soft 8s ease-in-out infinite; }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.work-hero__img { position: absolute; left: 50%; bottom: 4%; height: 84%; width: auto; max-width: 96%; object-fit: contain; object-position: bottom; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45)); animation: rise 1.4s var(--ease-out) both 0.1s; }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(8%) scale(0.95); } to { opacity: 1; transform: translateX(-50%); } }
.work-hero__panel { position: relative; z-index: 3; padding-block: 2rem 3rem; }
.work-hero__panel h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 0.95; margin: 0.4rem 0 1.4rem; }
.work-hero__desc { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; opacity: 0.9; }
.work-hero__made { font-size: 0.78rem; letter-spacing: 0.06em; opacity: 0.65; border-left: 2px solid var(--ochre); padding-left: 0.9rem; margin: 1.6rem 0 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { border: 1px solid rgba(247, 242, 234, 0.3); border-radius: 99px; padding: 0.35rem 0.85rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tag--accent { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
@media (min-width: 992px) {
  .work-hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; min-height: calc(100svh - var(--header-h)); }
  .work-hero__stage { height: calc(100svh - var(--header-h)); }
  .work-hero__panel { padding: 0 0 0 1rem; }
}

.photo-grid { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.photo-grid.is-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.photo-tile { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--cal-2); }
.photo-tile img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease-out); }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile__zoom { position: absolute; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(247, 242, 234, 0.9); color: var(--ink); display: grid; place-items: center; transition: transform 0.4s var(--ease-out); }
.photo-tile__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.photo-tile:hover .photo-tile__zoom { transform: scale(1.12); }

.work-details { position: sticky; top: calc(var(--header-h) + 2rem); }
.work-details__title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; margin: 0 0 1.6rem; overflow-wrap: anywhere; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
.facts dt, .facts .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.facts .v { font-family: var(--font-serif); font-size: 1.25rem; text-align: right; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.pager a { display: flex; align-items: center; gap: 1.2rem; padding: 2.5rem var(--gutter); min-height: 180px; position: relative; overflow: hidden; transition: background-color 0.5s; }
.pager a + a { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line-light); }
.pager a:hover { background: var(--sand); }
.pager img { height: 130px; width: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.3)); transition: transform 0.7s var(--ease-out); }
.pager a:hover img { transform: translateY(-6px) scale(1.06); }
.pager small { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.3rem; }
.pager strong { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 400; line-height: 1; }
@media (max-width: 575.98px) {
  .pager img { height: 80px; }
  .pager a { flex-direction: column; align-items: flex-start; padding: 1.6rem 1rem; }
  .pager a + a { align-items: flex-end; }
}

.pswp { --pswp-bg: #13110f; }

/* 10. About --------------------------------------------------------------- */
.about-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px)); }
.about-hero__name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(3.6rem, 12vw, 11rem); line-height: 0.86; letter-spacing: -0.035em; margin: 0; }
.about-hero__name span { display: block; padding-left: 12vw; font-style: italic; color: var(--almagre); }
.about-hero { padding-bottom: clamp(60px, 8vw, 120px); }
.about-hero__figure { position: relative; margin: 0; }

/* The name on the home page: same style as the artist page title; an underline on hover shows it is a link */
.artist-name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.88; letter-spacing: -0.03em; margin: 0 0 2rem; }
.artist-name span { display: block; padding-left: 0.9em; font-style: italic; color: var(--almagre); }
.artist-name a, .artist-name a:hover, .artist-name a:active { color: inherit; }
.artist-name a { display: inline-block; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: 0.12em; transition: text-decoration-color 0.4s, color 0.4s; }
.artist-name a:hover, .artist-name a:focus-visible { text-decoration-color: currentColor; }
@media (min-width: 992px) { .about-hero__figure { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.about-story { margin-top: 2.5rem; }
.about-story__item { border-top: 1px solid var(--line-light); padding: 1.5rem 0 0.4rem; }
.about-story__item h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 600; margin: 0 0 0.5rem; }
.about-story__item p { color: var(--ink-soft); margin: 0 0 1rem; }
.about-hero__figure img { width: 100%; height: auto; display: block; border-radius: 2px; }  /* whole photo, not cropped */
.about-hero__subtitle { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--almagre); line-height: 1.1; margin: 0 0 1.2rem; }
.about-hero__figure figcaption { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.8rem; }

.quote-block { text-align: center; }
.quote-block blockquote { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.08; max-width: 18ch; margin: 0 auto 1.6rem; }
.quote-block cite { font-style: normal; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; }

.step { position: relative; padding: 2rem 0 0; }
.step__num { font-family: var(--font-display); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--almagre); display: block; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; }



.credits-list { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.credits-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line-light); }
.credits-list a { text-decoration: underline; text-underline-offset: 3px; }

/* 11. Contact ------------------------------------------------------------- */
.contact-page { min-height: 100vh; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px)); padding-bottom: clamp(60px, 8vw, 120px); }
.field { position: relative; margin-bottom: 1.6rem; }
.field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  padding: 0.7rem 0; font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); transition: border-color 0.3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--almagre); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b3412a; }
.field__error { display: none; font-size: 0.78rem; color: #b3412a; margin-top: 0.3rem; }
.field.is-invalid .field__error { display: block; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1rem; }
.form-sent { display: none; margin-top: 1.5rem; padding: 1.2rem 1.4rem; border-left: 2px solid var(--almagre); background: var(--cal-2); }
.form-sent.is-visible { display: block; }
/* Contact page layout: one column on phones (email before the form), two columns on computers */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "direct" "form" "aside"; }
.contact-layout__intro { grid-area: intro; max-width: 40ch; }
.contact-layout__direct { grid-area: direct; }
.contact-layout__form { grid-area: form; }
.contact-layout__aside { grid-area: aside; }
@media (min-width: 992px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 8%; row-gap: 3rem;
    grid-template-areas: "intro direct" "form direct" "form aside"; align-items: start; }
}
.contact-direct { list-style: none; padding: 0; margin: 0; }
.contact-direct li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line-light); }
.contact-direct .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.contact-direct .v { font-family: var(--font-serif); font-size: 1.3rem; text-align: right; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .contact-direct li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .contact-direct .v { text-align: left; font-size: 1.35rem; }
  .contact-aside__credit { font-size: 0.66rem; }
}
.contact-direct a.v:hover { color: var(--almagre); }
.contact-aside { position: relative; border-radius: 2px; overflow: hidden; background: var(--laurel); color: var(--bone); padding: 2rem; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.contact-aside img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.7); }
.contact-aside img.cut { position: absolute; z-index: 1; right: 6%; bottom: 0; height: 88%; width: auto; max-width: 70%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5)); }
.contact-aside { transition: opacity 0.25s; }
.contact-aside.is-changing { opacity: 0; }
.contact-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 27, 24, 0.6)); pointer-events: none; }
.contact-aside__text { position: relative; z-index: 1; max-width: 55%; }
.contact-aside__title { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1; margin: 0.5rem 0 0; }
.contact-aside__title.font-anton { font-family: "Anton", Impact, sans-serif; font-size: 1.7rem; }
.contact-aside__credit { position: absolute; right: 0.8rem; top: 0.6rem; z-index: 1; font-size: 0.6rem; opacity: 0.7; }

/* Legal pages */
.legal-page { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px)); padding-bottom: clamp(60px, 8vw, 120px); }
.legal-content { margin-top: 2.5rem; }
.legal-section { border-top: 1px solid var(--line-light); padding: 1.6rem 0 0.6rem; }
.legal-section h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.6rem; }
.legal-section p, .legal-section li { color: var(--ink-soft); }
.legal-section ul { padding-left: 1.1rem; }
.legal-pending { background: #f3d9cf; color: var(--almagre); padding: 0 0.3em; border-radius: 2px; font-weight: 700; }
.legal-updated { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2rem; }

/* 404 page: "4 [stone head] 4" */
.nf-page { min-height: 100vh; padding: calc(var(--header-h) + clamp(30px, 6vw, 80px)) 0 clamp(60px, 8vw, 120px); }
.nf-digits { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 2vw, 2rem); line-height: 1; }
.nf-digit { font-family: var(--font-display); font-size: clamp(8rem, 26vw, 20rem); color: var(--ink); }
.nf-zero { background: none; border: 0; padding: 0; height: clamp(9rem, 28vw, 21rem); cursor: pointer; animation: float 6s ease-in-out infinite; }
.nf-zero img { height: 100%; width: auto; display: block; filter: drop-shadow(0 22px 22px rgba(30, 27, 24, 0.3)); transition: transform 0.3s var(--ease-out); }
.nf-zero:hover img { transform: scale(1.04) rotate(-2deg); }
.nf-zero.is-hit img { animation: nf-hit 0.45s var(--ease-out); }
@keyframes nf-hit { 0% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(0.97); } 55% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
.nf-hint { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--almagre); margin: 0.6rem 0 2rem; transition: opacity 0.5s; }
.nf-hint.is-hidden { opacity: 0; }
.nf-title { margin-inline: auto; max-width: 18ch; }
.nf-chip { position: fixed; z-index: 9995; width: 9px; height: 6px; border-radius: 2px 5px 3px 6px; pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--s)); animation: nf-chip 1.05s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes nf-chip {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(var(--s)) rotate(0); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 140px)) scale(var(--s)) rotate(var(--r)); }
}
.nf-suggest__card { max-width: 340px; margin: 0 auto; text-align: left; }

/* Home page works: 3 on phones, 4 on tablets (two rows of two), 6 on computers.
   The "see all works" button below leads to the rest. */
@media (max-width: 575.98px) { #home-works > :nth-child(n + 4) { display: none; } }
@media (min-width: 576px) and (max-width: 991.98px) { #home-works > :nth-child(n + 5) { display: none; } }

/* Phones & touch screens -------------------------------------------------
   Tap targets of at least 44 px (Apple / Google; WCAG 2.2 asks at least 24 px),
   text never below ~11 px, no hover effects that "stick" after a tap. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* no text inflation in landscape (iOS) */
a, button { -webkit-tap-highlight-color: transparent; }             /* our own tap feedback instead of a grey flash */

@media (max-width: 767.98px) {
  :root { --header-h: 68px; }
  .brand__mark svg { width: 34px; height: 34px; }
  .brand__name { font-size: 1.15rem; }
  .brand__tag, .work-card__collection, .work-card__status, .tag, .pager small, .press-list__type,
  .hero__meta .btn-line, .artist-teaser__caption { font-size: 0.7rem; }
}

@media (pointer: coarse) {
  .lang-btn { min-width: 44px; min-height: 44px; }
  .menu-toggle, .mobile-menu__close { min-height: 44px; }
  .chip { min-height: 44px; }
  .site-footer__cols a, .site-footer__bottom a, .timeline__source, .contact-direct a.v { display: inline-block; padding-block: 0.6rem; }
  .btn-line:active::before { transform: translateY(0); }            /* the fill shows while the finger is down */
}

/* On touch screens a tap leaves ":hover" switched on; undo the lift effects there */
@media (hover: none) {
  body::after { animation: none; }                                   /* still grain: saves battery */
  .work-card:hover .work-card__img { transform: translateX(-50%); filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.45)); }
  .work-card:hover .work-card__go, .theme-dark .work-card:hover .work-card__go { opacity: 0.5; background: none; color: inherit; transform: none; }
  .photo-tile:hover img, .photo-tile:hover .photo-tile__zoom { transform: none; }
  .pager a:hover { background: none; }
  .pager a:hover img { transform: none; }
  .nf-zero:hover img { transform: none; }
  .hero-sculpture:not(.is-pressed):hover .hero-sculpture__pop { transform: none; }
  .hero-sculpture:not(.is-pressed):hover img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
  .press-list a:hover { color: inherit; padding-left: 0; }
  .btn-line:hover::before { transform: translateY(101%); }
  .btn-line:not(.btn-line--solid):hover { color: inherit; }
  .btn-line:hover .arrow, .link-arrow:hover .arrow { width: 22px; }
}

/* 12. Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
}
@media (hover: none) {
  .cursor { display: none; }
}
