/* =============================================================
   PUDSZUHN — Architecture Portfolio
   Design system / global stylesheet
   -------------------------------------------------------------
   Concept:  a digital architectural monograph.
   Signature: hairline "construction lines" + monospace dimension
              annotations (year / area / coordinates), the way a
              plan drawing is annotated.
   Edit colors & type in the :root block below.
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette — warm architectural neutrals */
  --paper:   #F4F1EA;   /* background — warm off-white paper   */
  --sand:    #EAE4D8;   /* alternate surface — soft stone      */
  --sand-2:  #E1DACB;   /* deeper stone for placeholders       */
  --ink:     #1C1A16;   /* near-black text                     */
  --muted:   #6E675B;   /* secondary text                      */
  --line:    #CEC6B6;   /* hairline / construction line        */
  --line-2:  #DED7C8;   /* faint hairline                      */
  --bronze:  #7B6A4C;   /* accent — muted bronze / taupe       */
  --bronze-d:#5E5138;   /* accent, deeper                      */
  --night:   #16150F;   /* optional dark section               */
  --night-2: #22201A;   /* dark surface                        */
  --paper-on-night:#EDE8DC;
  --ghost:   #C6BCA8;   /* faded half of the PUDSZUHN wordmark  */

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Scale (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --hero:    clamp(2.5rem, 1.3rem + 4.6vw, 5.6rem);

  /* Layout */
  --mx: clamp(1.25rem, 5vw, 6rem);       /* page gutter        */
  --maxw: 1500px;
  --gap: clamp(1.25rem, 2.4vw, 2.75rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

::selection { background: var(--bronze); color: var(--paper); }

/* Focus — visible, restrained */
:focus-visible {
  outline: 1.5px solid var(--bronze);
  outline-offset: 3px;
}

/* ---------- 3. Typographic roles ---------- */
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 500; }

p { max-width: 62ch; }

/* Eyebrow / metadata label — the small tracked caps */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {          /* construction tick */
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--bronze);
  opacity: 0.7;
}

/* Monospace dimension annotation (year / m² / coords) */
.dim {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--muted);
  font-weight: 400;
}

.lead {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 34ch;
}

.muted { color: var(--muted); }

/* ---------- 4. Layout primitives ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--mx);
}
.section { padding-block: clamp(4rem, 9vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.rule { height: 1px; background: var(--line); border: 0; }
.rule--faint { background: var(--line-2); }

/* Section header block */
.s-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.s-head .title { max-width: 20ch; }

/* Two-column editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--label { grid-template-columns: minmax(0,3fr) minmax(0,9fr); }
}

/* ---------- 5. Placeholder images (clearly marked, easy to swap) ----------
   Replace <div class="ph ..."> blocks with <img> when real photos exist. */
.ph {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand-2);
  isolation: isolate;
}
.ph::before {                       /* light-study gradient */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 42%),
    linear-gradient(300deg, rgba(28,26,22,0.14), rgba(28,26,22,0) 55%),
    linear-gradient(180deg, #ECE6D9, #DCD4C3);
  z-index: -1;
}
.ph::after {                        /* dimension label */
  content: "◺ " attr(data-label);
  position: absolute; left: 0.9rem; bottom: 0.8rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em;
  color: var(--muted); background: rgba(244,241,234,0.72);
  padding: 0.25rem 0.5rem; backdrop-filter: blur(2px);
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--sq   { aspect-ratio: 1 / 1; }
.ph--hero { aspect-ratio: auto; height: 100%; min-height: 60vh; }
/* fine plan-grid overlay variant */
.ph--plan::before {
  background:
    repeating-linear-gradient(0deg, rgba(28,26,22,0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(28,26,22,0.05) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, #ECE6D9, #E0D8C7);
}
.ph--night { background: var(--night-2); }
.ph--night::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #26241C, #16150F);
}
.ph--night::after { color: #9a9384; background: rgba(22,21,15,0.6); }

/* ---------- 6. Header / navigation ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-solid {
  background: rgba(244,241,234,0.82);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav {
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.15rem var(--mx);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.6rem; line-height: 1;
}
.logo-word {
  font-family: var(--sans); font-weight: 600;
  font-size: 1.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; padding-left: 0.14em;
}
.logo-word .a { color: var(--bronze); }
.logo-word .z { color: var(--ghost); }
.brand:hover .logo-word .z { color: var(--muted); }
.logo-word .a, .logo-word .z { transition: color var(--dur) var(--ease); }
.brand-sub {
  font-family: var(--mono); font-size: 0.87rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
  align-self: center;
}
/* Wordmark on dark surfaces */
.on-night .logo-word .a { color: var(--paper-on-night); }
.on-night .logo-word .z { color: #6b6455; }
.on-night .brand-sub { color: #9a9384; }
/* Larger logo for the login page */
.logo-word--lg { font-size: 2.5rem; letter-spacing: 0.3em; }
@media (max-width: 540px) { .brand-sub { display: none; } .logo-word { font-size: 1.35rem; letter-spacing: 0.24em; } }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav-links a {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 500; color: var(--ink); position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--bronze); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--bronze-d); }

.nav-cta {
  font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; border: 1px solid var(--ink);
  padding: 0.6rem 1.1rem; transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; }

/* Mobile menu */
@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 120;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 110; background: var(--paper);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--mx); gap: 0.4rem;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease);
    pointer-events: none;
  }
  body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .mobile-menu a {
    font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.25; color: var(--ink); border-bottom: 1px solid var(--line-2);
    padding: 0.5rem 0; display: flex; justify-content: space-between; align-items: baseline;
  }
  .mobile-menu a span { font-family: var(--mono); font-size: 0.75rem; color: var(--bronze); }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 74svh; display: flex; align-items: flex-end;
  padding-top: 5.5rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .ph { height: 100%; aspect-ratio: auto; }
.hero-media::after {                 /* legibility scrim */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,241,234,0.15) 0%, rgba(244,241,234,0) 30%, rgba(244,241,234,0.62) 100%);
}
.hero-inner { width: 100%; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero h1 {
  font-size: var(--hero); font-weight: 600; line-height: 0.98;
  letter-spacing: -0.015em; max-width: 22ch;
}
.hero .lead { margin-top: 1.2rem; max-width: 54ch; }
.hero-meta {
  margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Vertical dimension annotation on hero side */
.hero-dim {
  position: absolute; right: var(--mx); top: 0; bottom: 0;
  display: none; align-items: center;
}
@media (min-width: 1100px) { .hero-dim { display: flex; } }
.hero-dim span {
  writing-mode: vertical-rl; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  padding-block: 1.5rem; position: relative;
}
.hero-dim span::before, .hero-dim span::after {
  content: ""; position: absolute; left: 50%; width: 1px; height: 1.2rem;
  background: var(--line); transform: translateX(-50%);
}
.hero-dim span::before { top: 0; } .hero-dim span::after { bottom: 0; }

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0.9rem 1.5rem; border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--bronze-d); border-color: var(--bronze-d); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem; transition: color 0.3s, border-color 0.3s;
}
.link-arrow .arrow { transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--bronze-d); border-color: var(--bronze); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- 9. Selected works (editorial, asymmetric) ---------- */
.works { display: grid; gap: clamp(3rem, 7vw, 6.5rem); }
.work {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: end;
}
@media (min-width: 780px) {
  .work { grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: clamp(2rem,4vw,4rem); }
  .work--flip { grid-template-columns: minmax(0,4fr) minmax(0,7fr); }
  .work--flip .work-media { order: 2; }
}
.work-media { position: relative; }
.work-media .ph { transition: transform 1.1s var(--ease); }
.work:hover .work-media .ph { transform: scale(1.03); }
.work-media .ph { clip-path: inset(0); }
.work-media .frame { overflow: hidden; }
.work-body { display: grid; gap: 0.9rem; padding-bottom: 0.5rem; }
.work-title { font-size: var(--step-2); }
.work-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.work-meta .dim { display: inline-flex; gap: 0.5rem; }
.work-index {
  font-family: var(--mono); font-size: 0.72rem; color: var(--bronze);
  letter-spacing: 0.1em;
}

/* ---------- 10. Portfolio grid + filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; align-items: center;
  margin-bottom: 2.5rem;
}
.filters .flabel {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-right: 0.6rem;
}
.chip {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500; padding: 0.5rem 0.95rem; border: 1px solid var(--line);
  border-radius: 100px; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid-works {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 600px) { .grid-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; gap: 1rem; min-width: 0; }
.card a { display: grid; gap: 1rem; }
.card .frame { overflow: hidden; }
.card .ph { transition: transform 1s var(--ease); }
.card:hover .ph { transform: scale(1.04); }
.card-title { font-size: var(--step-1); font-weight: 500; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.card-desc { color: var(--muted); font-size: var(--step--1); max-width: 46ch; }
.card[hidden] { display: none; }
.card-status {
  font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--bronze); border: 1px solid var(--line);
  padding: 0.12rem 0.5rem; align-self: start; justify-self: start;
}

/* ---------- 11. Feature / dark band ---------- */
.band-dark {
  background: var(--night); color: var(--paper-on-night);
}
.band-dark h2, .band-dark h3, .band-dark .display { color: var(--paper-on-night); }
.band-dark .muted { color: #9a9384; }
.band-dark .eyebrow { color: #b8a582; }
.band-dark .eyebrow::before { background: #b8a582; }
.band-dark .rule { background: rgba(255,255,255,0.12); }
.band-dark .dim { color: #9a9384; }
.band-dark .btn { border-color: var(--paper-on-night); color: var(--paper-on-night); }
.band-dark .btn:hover { background: var(--paper-on-night); color: var(--night); }

/* ---------- 12. Expertise / list columns ---------- */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 720px) { .exp-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem,5vw,5rem); } }
.exp-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid var(--line-2);
}
.exp-item .n { font-family: var(--mono); font-size: 0.72rem; color: var(--bronze); }
.exp-item h3 { font-size: var(--step-1); }
.exp-item p { color: var(--muted); font-size: var(--step--1); margin-top: 0.4rem; }

/* ---------- 13. Method steps ---------- */
.method { display: grid; gap: 0; }
.method-row {
  display: grid; grid-template-columns: 1fr; gap: 0.6rem;
  padding: clamp(1.6rem,3vw,2.4rem) 0; border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .method-row { grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: clamp(2rem,5vw,5rem); align-items: baseline; }
}
.method-row .k { display: flex; align-items: baseline; gap: 1rem; }
.method-row .k .n { font-family: var(--mono); color: var(--bronze); font-size: 0.8rem; }
.method-row h3 { font-size: var(--step-2); }
.method-row p { color: var(--muted); }

/* ---------- 14. CV / timeline ---------- */
.cv-block { display: grid; gap: 1.4rem; }
.cv-row {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line-2);
}
@media (min-width: 720px) {
  .cv-row { grid-template-columns: minmax(0,2.4fr) minmax(0,7fr) minmax(0,2fr); gap: 2rem; align-items: baseline; }
  .cv-row .cv-when { text-align: left; }
  .cv-row .cv-where { text-align: right; }
}
.cv-when { font-family: var(--mono); font-size: var(--step--1); color: var(--bronze); }
.cv-what h3 { font-size: var(--step-1); font-weight: 500; }
.cv-what p { color: var(--muted); font-size: var(--step--1); margin-top: 0.25rem; }
.cv-where { font-size: var(--step--1); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--line); padding: 0.28rem 0.7rem;
}

/* ---------- 15. Press ---------- */
.press-list { display: grid; gap: 0; }
.press-row {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
@media (min-width: 720px) {
  .press-row { grid-template-columns: auto 1fr auto; gap: 2rem; align-items: baseline; }
}
.press-row:hover { padding-left: 0.6rem; }
.press-src { font-family: var(--mono); font-size: var(--step--1); color: var(--bronze); }
.press-title { font-family: var(--serif); font-size: var(--step-1); }
.press-year { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }

/* ---------- 16. Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,3rem); }
@media (min-width: 780px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { display: grid; gap: 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quote blockquote {
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.4;
  letter-spacing: -0.005em; color: var(--ink);
}
.quote cite { font-style: normal; display: grid; gap: 0.15rem; }
.quote cite b { font-weight: 600; font-size: 0.9rem; }
.quote cite span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

/* ---------- 17. Contact form ---------- */
.contact-hero { padding-top: clamp(3.5rem, 6vw, 5rem); }
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 7rem);
}
.contact-hero-copy { max-width: 70ch; }
.contact-visual {
  position: relative;
  justify-self: stretch;
  max-width: 680px;
  width: 100%;
  margin-left: auto;
  padding: clamp(0.72rem, 1.4vw, 1.05rem);
  border: 1px solid rgba(123,106,76,0.28);
  background: rgba(244,241,234,0.5);
  box-shadow: 0 28px 80px -58px rgba(28,26,22,0.5);
  transform-style: preserve-3d;
  transition: box-shadow 0.55s var(--ease), border-color 0.55s var(--ease), background 0.55s var(--ease);
  will-change: box-shadow;
}
.contact-visual:hover {
  border-color: rgba(123,106,76,0.4);
  background: rgba(244,241,234,0.58);
  box-shadow: 0 34px 90px -54px rgba(28,26,22,0.56);
}
.contact-visual::before,
.contact-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-color: rgba(123,106,76,0.42);
  border-style: solid;
}
.contact-visual::before { left: -0.75rem; top: 18%; width: 1.5rem; height: 1px; border-width: 1px 0 0; }
.contact-visual::after { right: 16%; bottom: -0.75rem; width: 1px; height: 1.5rem; border-width: 0 1px 0 0; }
.contact-visual-frame {
  position: relative;
  min-height: clamp(330px, 35vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(28,26,22,0.09);
  background:
    linear-gradient(180deg, rgba(244,241,234,0.8), rgba(226,218,202,0.76)),
    repeating-linear-gradient(0deg, rgba(28,26,22,0.048) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(90deg, rgba(28,26,22,0.043) 0 1px, transparent 1px 58px);
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}
.contact-visual-frame::after {
  content: "";
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,0.18) 48%, transparent 60%);
  transform: translateX(-42%) rotate(0.001deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.85s var(--ease);
}
.contact-visual:hover .contact-visual-frame {
  filter: contrast(1.015) saturate(1.02);
}
.contact-visual:hover .contact-visual-frame::after {
  opacity: 1;
  transform: translateX(42%) rotate(0.001deg);
}
.contact-paper {
  position: absolute;
  inset: clamp(1rem, 2vw, 1.55rem);
  border: 1px solid rgba(123,106,76,0.22);
}
.contact-paper::before {
  content: "";
  position: absolute;
  inset: 9% 8% 15% 10%;
  border-top: 1px solid rgba(123,106,76,0.34);
  border-left: 1px solid rgba(123,106,76,0.16);
}
.contact-paper-tag,
.contact-paper-meta,
.contact-visual-caption,
.contact-visual-measure {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-d);
  background: rgba(244,241,234,0.84);
  border: 1px solid rgba(206,198,182,0.72);
  backdrop-filter: blur(6px);
}
.contact-paper-tag { left: 1rem; top: 0.75rem; padding: 0.48rem 0.7rem; }
.contact-paper-meta { right: 1rem; bottom: 0.75rem; padding: 0.42rem 0.62rem; color: var(--muted); }
.contact-paper-line {
  position: absolute;
  height: 1px;
  background: rgba(123,106,76,0.32);
}
.contact-paper-line--a { left: -7%; right: 18%; top: 34%; }
.contact-paper-line--b { left: 18%; right: -8%; bottom: 24%; }
.contact-paper-pin {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(123,106,76,0.48);
  background: rgba(244,241,234,0.68);
}
.contact-paper-pin--a { left: 14%; top: 32%; }
.contact-paper-pin--b { right: 18%; bottom: 22%; }
.contact-visual-caption { left: clamp(1.15rem, 2vw, 1.6rem); top: clamp(1.15rem, 2vw, 1.6rem); padding: 0.45rem 0.65rem; }
.contact-visual-measure { right: clamp(1.15rem, 2vw, 1.6rem); bottom: clamp(1.15rem, 2vw, 1.6rem); padding: 0.42rem 0.6rem; color: var(--muted); }
@media (max-width: 980px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(2rem, 6vw, 3.5rem);
  }
  .contact-visual {
    max-width: 720px;
    margin-left: 0;
  }
  .contact-visual-frame {
    min-height: clamp(280px, 52vw, 420px);
  }
}
@media (max-width: 640px) {
  .contact-hero { padding-top: clamp(2.5rem, 10vw, 3.6rem); }
  .contact-hero-grid { gap: 2rem; }
  .contact-visual { padding: 0.65rem; }
  .contact-visual::before,
  .contact-visual::after { display: none; }
  .contact-visual-frame { min-height: clamp(220px, 68vw, 320px); }
  .contact-paper { inset: 0.75rem; }
  .contact-paper-tag,
  .contact-paper-meta,
  .contact-visual-caption,
  .contact-visual-measure {
    font-size: 0.58rem;
    line-height: 1.35;
    letter-spacing: 0.09em;
  }
  .contact-paper-tag,
  .contact-paper-meta {
    max-width: calc(100% - 2rem);
  }
  .contact-visual-measure { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-visual,
  .contact-visual-frame,
  .contact-visual-frame::after {
    transition: none !important;
    transform: none !important;
  }
}

.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,5vw,5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0,4fr) minmax(0,7fr); } }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.info-item { display: grid; gap: 0.3rem; }
.info-item .k { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bronze); }
.info-item a, .info-item p { font-size: var(--step-0); }

.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 620px) { .field.row2 { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; color: var(--muted);
}
.field label .req { color: var(--bronze); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; transition: border-color 0.3s;
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--bronze);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select { appearance: none; cursor: pointer; text-overflow: ellipsis; }
.field .file {
  border: 1px dashed var(--line); padding: 0.9rem; font-size: var(--step--1);
  color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 0.6rem;
}
.consent { display: flex; gap: 0.7rem; align-items: flex-start; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--bronze-d); }
.consent label { font-size: var(--step--1); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; max-width: 52ch; }
.form-note { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.form-status { font-family: var(--mono); font-size: 0.8rem; color: var(--bronze-d); }

/* ---------- 18. Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted);
  padding-top: 6.5rem;
}
.crumbs a:hover { color: var(--bronze-d); }
.crumbs .sep { opacity: 0.5; }

/* ---------- 19. Project detail ---------- */
.project-hero { padding-top: 1.5rem; }
.project-hero .ph { aspect-ratio: 16/9; }
.project-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem;
  padding: clamp(2rem,4vw,3rem) 0; border-block: 1px solid var(--line);
}
@media (min-width: 720px) { .project-facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: grid; gap: 0.35rem; }
.fact .k { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bronze); }
.fact .v { font-size: var(--step-0); }
.narrative { display: grid; gap: 1.6rem; max-width: 66ch; }
.narrative p { max-width: none; }
.gallery { display: grid; grid-template-columns: 1fr; gap: clamp(1rem,2vw,1.75rem); }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery .full { grid-column: 1 / -1; }
.next-project {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem,5vw,4rem) 0; border-top: 1px solid var(--line);
}
.next-project .np-title { font-family: var(--serif); font-size: var(--step-2); }

/* ---------- 20. Footer ---------- */
.site-foot { background: var(--night); color: var(--paper-on-night); padding-block: clamp(3.5rem,7vw,6rem) 2.5rem; }
.foot-top { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4rem); }
@media (min-width: 820px) { .foot-top { grid-template-columns: minmax(0,5fr) minmax(0,7fr); align-items: start; } }
.foot-cta h2 { font-family: var(--serif); font-weight: 300; font-size: var(--step-3); line-height: 1; max-width: 14ch; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
@media (min-width: 560px) { .foot-nav { grid-template-columns: repeat(3, 1fr); } }
.foot-col { display: grid; gap: 0.85rem; align-content: start; }
.foot-col .h { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: #b8a582; }
.foot-col a { font-size: 0.9rem; color: var(--paper-on-night); opacity: 0.82; transition: opacity 0.3s; }
.foot-col a:hover { opacity: 1; }
.foot-bottom {
  margin-top: clamp(3rem,6vw,5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.foot-bottom, .foot-bottom a { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: #9a9384; }

/* ---------- 21. Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .work-media .ph, .card .ph { transition: none !important; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--bronze);
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- 22. Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3rem; }
.stack-s { display: grid; gap: 0.6rem; } .stack { display: grid; gap: 1.2rem; } .stack-l { display: grid; gap: 2rem; }
.flex { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.pill-note {
  display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em;
  color: var(--bronze-d); background: var(--sand); border: 1px solid var(--line);
  padding: 0.3rem 0.7rem; border-radius: 100px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem; font-size: 0.8rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- 23. Login / client access ---------- */
.login-page {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--sand) 0%, var(--paper) 55%);
}
.login-head { padding: clamp(1.5rem,4vw,2.5rem) var(--mx); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 2rem var(--mx) 4rem; }
.login-card {
  width: 100%; max-width: 430px; min-width: 0; box-sizing: border-box;
  border: 1px solid var(--line); background: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  padding: clamp(1.5rem,5vw,3rem); border-radius: 2px;
}
.login-card .eyebrow { margin-bottom: 0.5rem; }
.login-card h1 {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-2);
  line-height: 1.05; margin-bottom: 0.5rem;
}
.login-card .intro { color: var(--muted); font-size: var(--step--1); margin-bottom: 2rem; }
.login-card .form { gap: 1.4rem; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.remember { display: flex; align-items: center; gap: 0.5rem; }
.remember input { width: 1rem; height: 1rem; accent-color: var(--bronze-d); }
.remember label {
  font-size: var(--step--1); color: var(--muted); text-transform: none;
  letter-spacing: 0; font-weight: 400;
}
.login-forgot { font-family: var(--mono); font-size: 0.72rem; color: var(--bronze-d); }
.login-forgot:hover { text-decoration: underline; }
.login-card .btn--solid { width: 100%; justify-content: center; }
.login-foot {
  padding: 1.5rem var(--mx) 2.5rem; text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted);
  line-height: 2;
}
.login-foot .sep-dot { color: var(--line); margin: 0 0.35rem; }
.login-foot a { color: var(--bronze-d); }
.login-foot a:hover { text-decoration: underline; }
.login-notice {
  margin-top: 1.5rem; padding: 0.9rem 1rem; border: 1px dashed var(--line);
  background: var(--sand); font-size: var(--step--1); color: var(--muted); line-height: 1.5;
}
.login-back { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- 24. Language selector ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); font-weight: 500;
  border: 1px solid var(--line); padding: 0.5rem 0.7rem; background: transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-caret { font-size: 0.6rem; transition: transform var(--dur) var(--ease); }
.lang[data-open="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 224px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(28,26,22,0.45);
  padding: 0.4rem; z-index: 200; display: none; list-style: none;
}
.lang[data-open="true"] .lang-menu { display: block; }
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink);
  padding: 0.55rem 0.7rem; cursor: pointer; transition: background var(--dur) var(--ease);
}
.lang-menu li:hover { background: var(--sand); }
.lang-menu li[aria-selected="true"] { color: var(--bronze-d); font-weight: 600; }
.lang-menu .lang-code {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted);
  white-space: nowrap;
}
.lang-menu li[data-soon] .lang-code::after { content: " · soon"; color: var(--muted); opacity: 0.7; white-space: nowrap; }
.lang-note {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(1rem);
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 0.82rem;
  padding: 0.7rem 1.1rem; border-radius: 2px; z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lang-note.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* selector on dark headers keeps contrast via .on-night if needed */

/* ---------- 25. Social buttons ---------- */
.social-row { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(237,232,220,0.28);
  color: var(--paper-on-night); opacity: 0.85;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-btn:hover { opacity: 1; border-color: var(--paper-on-night); background: rgba(237,232,220,0.08); }
.social-btn svg { width: 18px; height: 18px; display: block; }
/* social buttons on light surfaces (e.g. contact page) */
.social-row--light .social-btn { border-color: var(--line); color: var(--ink); opacity: 0.75; }
.social-row--light .social-btn:hover { opacity: 1; border-color: var(--ink); background: transparent; }
.foot-login { margin-top: 1.4rem; }
.foot-col .btn { justify-self: start; margin-top: 1.1rem; opacity: 1; color: var(--paper-on-night); }
.foot-col .btn:hover { color: var(--paper); }

/* ---------- 26. Cookie / privacy bar ---------- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
  background: rgba(22,21,15,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(237,232,220,0.14);
  color: var(--paper-on-night);
  transform: translateY(110%); transition: transform 0.5s var(--ease);
}
.cookiebar.show { transform: translateY(0); }
.cookiebar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem; flex-wrap: wrap;
}
.cookiebar-text { font-size: var(--step--1); max-width: 70ch; color: var(--paper-on-night); opacity: 0.9; margin: 0; }
.cookiebar-text a { color: #d8c9a6; text-decoration: underline; }
.cookiebar-actions { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; }
.cookiebar .btn { padding: 0.6rem 1.2rem; }
.cookiebar .btn--ghost { border-color: rgba(237,232,220,0.4); color: var(--paper-on-night); }
.cookiebar .btn--ghost:hover { border-color: var(--paper-on-night); background: rgba(237,232,220,0.08); }
.cookiebar .btn--solid { background: var(--paper-on-night); color: var(--ink); border-color: var(--paper-on-night); }
.cookiebar .btn--solid:hover { background: #fff; }

/* ---------- 27. Legal pages ---------- */
.legal-wrap { max-width: 780px; margin-inline: auto; }
.legal-head { padding-top: clamp(7rem,12vw,10rem); }
.legal-body h2 {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-1);
  margin-top: 2.6rem; margin-bottom: 0.6rem;
}
.legal-body h3 { font-size: var(--step-0); font-weight: 600; margin-top: 1.6rem; margin-bottom: 0.4rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.7; font-size: var(--step-0); }
.legal-body ul { padding-left: 1.1rem; display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.legal-body a { color: var(--bronze-d); text-decoration: underline; }
.legal-body .rule { margin-block: 2.4rem; }


/* ---------- 28. Home refinement pass: hero, footer, responsive fluidity ---------- */
.hero--home {
  display: block;
  min-height: clamp(680px, 92svh, 920px);
  padding: clamp(6.4rem, 9vw, 8.2rem) 0 clamp(3.2rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(244,241,234,0.98) 0%, rgba(244,241,234,0.94) 52%, rgba(234,228,216,0.82) 100%),
    repeating-linear-gradient(0deg, rgba(28,26,22,0.045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(28,26,22,0.04) 0 1px, transparent 1px 56px);
  overflow: hidden;
  isolation: isolate;
}
.hero--home::before {
  content: "";
  position: absolute;
  inset: 5.5rem var(--mx) 2rem var(--mx);
  border-top: 1px solid rgba(123,106,76,0.24);
  border-bottom: 1px solid rgba(206,198,182,0.52);
  pointer-events: none;
  z-index: -1;
}
.hero--home .hero-inner { padding-bottom: 0; position: relative; z-index: 1; }
.hero-layout {
  min-height: clamp(560px, 68svh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.hero-copy { max-width: 820px; padding-top: clamp(0.8rem, 2vw, 2rem); }
.hero-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.62rem + 0.22vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-d);
  margin-bottom: clamp(1rem, 2vw, 1.45rem);
}
.hero-signature::before {
  content: "";
  width: clamp(1.7rem, 4vw, 3.6rem);
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}
.hero--home h1 {
  max-width: 14.8ch;
  font-size: clamp(3rem, 5.55vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero--home .lead {
  max-width: 50ch;
  margin-top: clamp(1.15rem, 2.4vw, 1.75rem);
  font-size: clamp(1.14rem, 0.98rem + 0.55vw, 1.55rem);
  line-height: 1.42;
}
.hero--home .hero-actions {
  margin-top: clamp(1.5rem, 3vw, 2.35rem);
  gap: 0.8rem;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  padding-top: clamp(0.9rem, 1.7vw, 1.2rem);
  border-top: 1px solid rgba(123,106,76,0.28);
  max-width: 58ch;
}
.hero-notes span {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.64rem + 0.16vw, 0.78rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  justify-self: stretch;
  align-self: center;
  min-width: 0;
  padding: clamp(0.75rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(123,106,76,0.28);
  background: rgba(244,241,234,0.46);
  box-shadow: 0 28px 80px -54px rgba(28,26,22,0.48);
  transform-style: preserve-3d;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 48vw, 620px);
  transition: transform 0.55s var(--ease);
}
.hero-frame .ph {
  min-height: inherit;
  height: 100%;
  border: 1px solid rgba(28,26,22,0.08);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-color: rgba(123,106,76,0.45);
  border-style: solid;
}
.hero-visual::before { left: -0.75rem; top: 12%; width: 1.5rem; height: 1px; border-width: 1px 0 0; }
.hero-visual::after { right: 12%; bottom: -0.75rem; width: 1px; height: 1.5rem; border-width: 0 1px 0 0; }
.hero-caption,
.hero-measure {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-d);
  background: rgba(244,241,234,0.82);
  border: 1px solid rgba(206,198,182,0.75);
  backdrop-filter: blur(6px);
}
.hero-caption { left: clamp(1.1rem, 2vw, 1.6rem); top: clamp(1.1rem, 2vw, 1.6rem); padding: 0.45rem 0.65rem; }
.hero-measure { right: clamp(1.1rem, 2vw, 1.6rem); bottom: clamp(1.1rem, 2vw, 1.6rem); padding: 0.42rem 0.6rem; color: var(--muted); }
.hero--home .hero-dim { right: max(1.2rem, calc(var(--mx) * 0.45)); top: 5.75rem; bottom: 2.5rem; }

.site-foot {
  background:
    linear-gradient(135deg, #16150F 0%, #1D1B14 56%, #242117 100%);
  padding-block: clamp(4.2rem, 8vw, 7.2rem) 2.1rem;
  position: relative;
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(237,232,220,0.045) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(237,232,220,0.06), transparent 42%);
  pointer-events: none;
}
.site-foot .wrap { position: relative; z-index: 1; }
.foot-top {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.18fr);
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: stretch;
}
.foot-cta {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding-top: 0.25rem;
}
.foot-cta h2 {
  max-width: 11ch;
  font-size: clamp(2.45rem, 4.7vw, 5.1rem);
  line-height: 0.94;
  text-wrap: balance;
}
.foot-copy {
  max-width: 38ch;
  color: #b9b09f;
  font-size: clamp(0.98rem, 0.92rem + 0.18vw, 1.08rem);
  line-height: 1.65;
}
.foot-login { margin-top: 0.2rem; }
.foot-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(237,232,220,0.16);
  border-bottom: 1px solid rgba(237,232,220,0.12);
}
.foot-col {
  gap: 0.75rem;
  min-width: 0;
  padding: clamp(1.15rem, 2.2vw, 1.7rem) clamp(1rem, 2vw, 1.45rem);
  border-left: 1px solid rgba(237,232,220,0.12);
}
.foot-col:first-child { border-left: 0; padding-left: 0; }
.foot-col .h { margin-bottom: 0.35rem; color: #d0bd90; }
.foot-col a,
.foot-col span.dim {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.foot-col a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}
.foot-col a:not(.btn):hover { color: #fff7e8; }
.social-row { flex-wrap: wrap; gap: 0.55rem; margin-top: 0.25rem; }
.social-btn {
  width: 42px;
  height: 42px;
  border-color: rgba(237,232,220,0.22);
  background: rgba(237,232,220,0.03);
}
.social-btn:hover { transform: translateY(-2px); }
.foot-bottom {
  align-items: center;
  margin-top: clamp(2.4rem, 5vw, 4rem);
}

@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.78fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero--home h1 { font-size: clamp(2.8rem, 5.2vw, 5rem); max-width: 15.5ch; }
  .hero-frame { min-height: clamp(340px, 42vw, 520px); }
}
@media (max-width: 960px) {
  .hero--home { min-height: auto; padding-top: clamp(6rem, 14vw, 7rem); }
  .hero--home::before { inset: 5rem var(--mx) 1.4rem var(--mx); }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; gap: clamp(2rem, 6vw, 3.5rem); }
  .hero-copy { max-width: 760px; }
  .hero--home h1 { max-width: 13.6ch; font-size: clamp(3rem, 9.4vw, 5.4rem); }
  .hero-visual { max-width: 680px; width: 100%; }
  .hero-frame { min-height: clamp(280px, 54vw, 430px); }
  .hero-caption, .hero-measure { font-size: 0.62rem; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cta h2 { max-width: 12ch; }
  .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hero--home { padding-top: 5.8rem; padding-bottom: 3rem; }
  .hero--home::before { inset-inline: 1rem; }
  .hero-signature { letter-spacing: 0.13em; gap: 0.65rem; }
  .hero-signature::before { width: 1.4rem; }
  .hero--home h1 { max-width: 11.5ch; font-size: clamp(2.55rem, 13.5vw, 4.25rem); line-height: 0.98; }
  .hero--home .lead { max-width: 100%; font-size: clamp(1.04rem, 4.4vw, 1.22rem); }
  .hero--home .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero--home .btn { width: 100%; justify-content: center; padding-inline: 1rem; }
  .hero-notes { display: grid; gap: 0.45rem; }
  .hero-visual { padding: 0.65rem; }
  .hero-frame { min-height: clamp(230px, 66vw, 340px); }
  .hero-caption { max-width: calc(100% - 2rem); line-height: 1.4; }
  .hero-measure { display: none; }
  .foot-nav { grid-template-columns: 1fr; }
  .foot-col { border-left: 0; border-top: 1px solid rgba(237,232,220,0.12); padding-inline: 0; }
  .foot-col:first-child { border-top: 0; }
  .foot-bottom { display: grid; justify-content: stretch; }
  .cookiebar-inner { align-items: stretch; }
  .cookiebar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cookiebar .btn { justify-content: center; padding-inline: 0.85rem; }
}
@media (max-width: 390px) {
  .hero--home h1 { font-size: clamp(2.25rem, 13.2vw, 3.45rem); }
  .logo-word { font-size: 1.18rem; letter-spacing: 0.19em; }
  .nav { gap: 0.55rem; }
  .lang-btn { padding-inline: 0.55rem; }
  .cookiebar-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-frame, .social-btn { transition: none !important; transform: none !important; }
}


/* ---------- 29. Hero scale tuning after viewport QA ---------- */
.hero--home {
  min-height: clamp(640px, 86svh, 820px);
  padding-top: clamp(5.8rem, 7.2vw, 7rem);
  padding-bottom: clamp(2.6rem, 4.5vw, 4rem);
}
.hero-layout {
  min-height: clamp(470px, 62svh, 620px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(2.2rem, 5vw, 5.8rem);
}
.hero--home h1 {
  max-width: 19.2ch;
  font-size: clamp(2.85rem, 4.6vw, 5.35rem);
  line-height: 0.98;
}
.hero--home .lead {
  max-width: 48ch;
  margin-top: clamp(0.95rem, 1.8vw, 1.45rem);
}
.hero--home .hero-actions { margin-top: clamp(1.15rem, 2.2vw, 1.8rem); }
.hero-notes { margin-top: clamp(0.8rem, 1.5vw, 1.1rem); padding-top: clamp(0.7rem, 1.2vw, 0.95rem); }
.hero-frame { min-height: clamp(300px, 34vw, 500px); }
.hero-visual { align-self: center; }
@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr); }
  .hero--home h1 { max-width: 18.5ch; font-size: clamp(2.65rem, 4.7vw, 4.85rem); }
  .hero-frame { min-height: clamp(280px, 33vw, 440px); }
}
@media (max-width: 960px) {
  .hero--home { padding-top: clamp(5.8rem, 13vw, 6.8rem); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero--home h1 { max-width: 13.8ch; font-size: clamp(2.8rem, 8.4vw, 5rem); }
  .hero-frame { min-height: clamp(260px, 50vw, 400px); }
}
@media (max-width: 680px) {
  .hero--home h1 { max-width: 12.3ch; font-size: clamp(2.35rem, 12.5vw, 3.75rem); }
  .hero-frame { min-height: clamp(215px, 62vw, 315px); }
}


/* ---------- 30. Mobile first-fold typography tuning ---------- */
@media (max-width: 680px) {
  .hero--home h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10.8vw, 3.25rem);
    line-height: 1.01;
  }
  .hero--home .lead { margin-top: 1rem; }
  .hero--home .hero-actions { margin-top: 1.1rem; }
}
@media (max-width: 390px) {
  .hero--home h1 { font-size: clamp(2rem, 10.4vw, 3rem); }
}


/* ---------- 31. Footer contrast polish ---------- */
.site-foot h2,
.site-foot h3,
.site-foot .display {
  color: var(--paper-on-night);
}
.foot-cta h2 {
  color: var(--paper-on-night);
  opacity: 0.96;
}


/* ---------- 32. Temporary site access gate ---------- */
.access-page {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(90% 70% at 26% 18%, rgba(234,228,216,0.82) 0%, rgba(244,241,234,0.68) 46%, rgba(244,241,234,0) 72%),
    repeating-linear-gradient(0deg, rgba(28,26,22,0.04) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(28,26,22,0.035) 0 1px, transparent 1px 54px),
    var(--paper);
}
.access-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: clamp(1.2rem, 3vw, 2.1rem) var(--mx);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(206,198,182,0.58);
  background: linear-gradient(180deg, rgba(244,241,234,0.92), rgba(244,241,234,0.68));
  backdrop-filter: blur(10px) saturate(1.06);
}
.access-main {
  min-height: 100svh;
  display: grid;
  align-items: stretch;
}
.access-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(7rem, 10vw, 9rem) var(--mx) clamp(2.4rem, 5vw, 4rem);
  isolation: isolate;
}
.access-stage::before,
.access-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.access-stage::before {
  left: var(--mx);
  right: var(--mx);
  top: clamp(6.2rem, 9vw, 8rem);
  bottom: clamp(1.4rem, 4vw, 3rem);
  border-top: 1px solid rgba(123,106,76,0.22);
  border-bottom: 1px solid rgba(206,198,182,0.52);
}
.access-stage::after {
  width: 1px;
  top: 18%;
  bottom: 14%;
  left: min(58vw, 850px);
  background: rgba(206,198,182,0.62);
}
.access-portrait {
  position: absolute;
  left: max(-5rem, calc(var(--mx) - 9rem));
  bottom: 0;
  width: min(58vw, 760px);
  height: min(82svh, 880px);
  z-index: -1;
  opacity: 0.72;
  overflow: hidden;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.92) 43%, rgba(0,0,0,0.24) 78%, transparent 100%), linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.access-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
  filter: grayscale(1) contrast(1.05) sepia(0.08);
}
.access-copy {
  align-self: end;
  padding-bottom: clamp(2rem, 7vw, 5rem);
}
.access-copy span {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-d);
}
.access-copy span::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}
.access-card {
  justify-self: end;
  width: min(100%, 430px);
  border: 1px solid rgba(206,198,182,0.92);
  background: rgba(244,241,234,0.74);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 34px 95px -62px rgba(28,26,22,0.66);
  padding: clamp(1.45rem, 4vw, 2.65rem);
}
.access-card h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 0.96;
}
.access-card .intro {
  margin-top: 0.85rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.65;
}
.access-form .btn--solid {
  width: 100%;
  justify-content: center;
  margin-top: 0.15rem;
}
.access-form .form-status {
  min-height: 1.2rem;
}
.access-form [type="submit"]:disabled {
  opacity: 0.68;
  cursor: progress;
}
@media (max-width: 900px) {
  .access-stage {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 1.5rem;
  }
  .access-stage::after { display: none; }
  .access-portrait {
    width: min(90vw, 620px);
    height: min(58svh, 620px);
    left: -8rem;
    opacity: 0.42;
  }
  .access-copy { align-self: start; padding: 0; }
  .access-card { justify-self: stretch; margin-left: auto; max-width: 460px; }
}
@media (max-width: 560px) {
  .access-head { padding-block: 1.05rem; }
  .access-stage {
    padding-top: 6rem;
    padding-bottom: 1.4rem;
  }
  .access-portrait {
    left: -7.5rem;
    width: 120vw;
    height: 46svh;
    opacity: 0.32;
  }
  .access-copy { display: none; }
  .access-card {
    align-self: end;
    width: 100%;
    padding: 1.35rem;
  }
  .access-card h1 { font-size: clamp(2rem, 12vw, 3rem); }
}


/* ---------- 33. Access page small-screen containment ---------- */
.access-stage,
.access-card,
.access-form,
.access-card .field,
.access-card input,
.access-card .btn {
  min-width: 0;
  max-width: 100%;
}
.access-card { box-sizing: border-box; }
@media (max-width: 560px) {
  .access-stage {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.25rem;
    overflow: hidden;
  }
  .access-card {
    justify-self: stretch;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }
  .access-card .intro {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}


/* ---------- 34. Access mobile hard viewport width ---------- */
@media (max-width: 560px) {
  .access-stage {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .access-card {
    justify-self: start;
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
  }
  .access-card .btn {
    width: 100%;
    max-width: 100%;
  }
}


/* ---------- 35. Access mobile overflow lock ---------- */
@media (max-width: 560px) {
  html, body.access-page { overflow-x: hidden; }
  .access-stage {
    max-width: 100vw !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .access-card {
    width: calc(100vw - 2.5rem) !important;
    max-width: calc(100vw - 2.5rem) !important;
    margin: 0 !important;
  }
  .access-card .btn,
  .access-form .btn--solid {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ---------- 36. Access mobile narrow card polish ---------- */
@media (max-width: 560px) {
  .access-stage { padding-inline: 1.5rem !important; }
  .access-card {
    width: calc(100vw - 5rem) !important;
    max-width: 21rem !important;
  }
  .access-card .intro {
    font-size: 0.88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
}


/* ---------- 37. Access social icons and centered composition ---------- */
.access-stage {
  max-width: min(1320px, calc(100vw - 2rem));
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 440px);
  gap: clamp(2rem, 4.6vw, 5.75rem);
}
.access-stage::after { left: min(55vw, 790px); }
.access-portrait {
  left: max(-3rem, calc(var(--mx) - 7rem));
  width: min(54vw, 710px);
}
.access-card { justify-self: center; }
.access-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
}
.access-social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.access-social-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze-d);
  border: 1px solid rgba(123,106,76,0.28);
  background: rgba(244,241,234,0.42);
  backdrop-filter: blur(8px);
  opacity: 0.9;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.access-social-btn:hover {
  color: var(--ink);
  border-color: rgba(28,26,22,0.42);
  background: rgba(244,241,234,0.72);
  transform: translateY(-2px);
}
.access-social-btn svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 900px) {
  .access-stage {
    max-width: 760px;
    margin-inline: auto;
  }
  .access-copy { gap: 0.85rem; }
  .access-social-btn { width: 42px; height: 42px; }
}
@media (max-width: 560px) {
  .access-copy {
    display: grid;
    align-self: start;
    padding-top: 0.6rem;
    gap: 0.7rem;
  }
  .access-copy span { font-size: 0.62rem; letter-spacing: 0.14em; }
  .access-copy span::before { width: 1.4rem; }
  .access-social { gap: 0.45rem; }
  .access-social-btn { width: 38px; height: 38px; }
  .access-social-btn svg { width: 16px; height: 16px; }
}


/* ---------- 38. Access social mobile row refinement ---------- */
@media (max-width: 560px) {
  .access-copy {
    width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    justify-self: start;
  }
  .access-copy span { white-space: nowrap; }
  .access-social {
    flex-wrap: nowrap;
    gap: 0.42rem;
  }
  .access-social-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
}


/* ---------- 39. Cookie bar mobile button containment ---------- */
@media (max-width: 480px) {
  .cookiebar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookiebar .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    text-align: center;
  }
}


/* ---------- 40. Cookie bar tablet/mobile action stack ---------- */
@media (max-width: 760px) {
  .cookiebar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr !important;
  }
  .cookiebar .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    white-space: normal;
  }
}


/* ---------- 41. Cookie bar mobile text wrapping ---------- */
@media (max-width: 760px) {
  .cookiebar-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookiebar-text {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}


/* ---------- 42. Access social desktop baseline alignment ---------- */
@media (min-width: 901px) {
  .access-copy {
    align-self: end;
    padding-bottom: clamp(0.35rem, 1.2vw, 1rem);
    transform: translateY(clamp(1.15rem, 1.65vw, 1.5rem));
  }
}


/* ---------- 43. Access page mobile de-overlap layout ---------- */
@media (max-width: 760px) {
  body.access-page {
    min-height: 100svh;
    overflow-x: hidden;
  }
  .access-main {
    min-height: 100svh;
    align-items: start;
  }
  .access-stage {
    min-height: 100svh;
    width: 100%;
    max-width: 100vw !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "copy"
      "card";
    align-content: start;
    gap: clamp(0.85rem, 3.8vw, 1.25rem);
    padding: clamp(5.9rem, 18vw, 6.8rem) 1.25rem 1.25rem !important;
    overflow: hidden;
  }
  .access-stage::before {
    inset: 5.45rem 1rem 1rem 1rem;
  }
  .access-portrait {
    grid-area: portrait;
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 0;
    width: min(100%, 25rem);
    height: clamp(11.5rem, 38svh, 18.5rem);
    justify-self: center;
    opacity: 0.36;
    margin: 0;
    pointer-events: none;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 18%, #000 76%, transparent 100%),
      linear-gradient(0deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .access-portrait img {
    object-position: 50% 38%;
  }
  .access-copy {
    grid-area: copy;
    display: grid !important;
    align-self: start;
    justify-self: center;
    justify-items: center;
    width: min(100%, 25rem) !important;
    max-width: min(100%, 25rem) !important;
    gap: 0.72rem;
    padding: 0 !important;
    transform: none !important;
  }
  .access-copy span {
    justify-content: center;
    white-space: normal;
    text-align: center;
    font-size: clamp(0.58rem, 2.2vw, 0.66rem);
    letter-spacing: 0.12em;
    line-height: 1.45;
  }
  .access-copy span::before {
    width: clamp(1.25rem, 7vw, 2rem);
  }
  .access-social {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.38rem, 2.1vw, 0.52rem);
  }
  .access-social-btn {
    width: clamp(2.18rem, 9.4vw, 2.45rem);
    height: clamp(2.18rem, 9.4vw, 2.45rem);
    flex: 0 0 clamp(2.18rem, 9.4vw, 2.45rem);
  }
  .access-card {
    grid-area: card;
    align-self: start;
    justify-self: center;
    width: min(100%, 25rem) !important;
    max-width: min(100%, 25rem) !important;
    margin: 0 auto !important;
    padding: clamp(1.12rem, 4.2vw, 1.45rem);
  }
  .access-card h1 {
    font-size: clamp(2.1rem, 11.5vw, 3.1rem);
  }
}

@media (max-width: 380px) {
  .access-stage {
    padding-inline: 1rem !important;
  }
  .access-card,
  .access-copy,
  .access-portrait {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ---------- 44. Access page tablet/mobile final containment ---------- */
@media (max-width: 900px) {
  body.access-page {
    overflow-x: hidden;
  }
  .access-main,
  .access-stage,
  .access-card,
  .access-copy,
  .access-portrait {
    box-sizing: border-box;
  }
  .access-main {
    min-height: 100svh;
    align-items: start;
  }
  .access-stage {
    width: 100%;
    max-width: 100vw !important;
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "copy"
      "card";
    align-content: start;
    gap: clamp(0.85rem, 3vw, 1.35rem);
    padding: clamp(5.35rem, 12vw, 6.7rem) clamp(1rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2rem) !important;
    overflow: hidden;
  }
  .access-stage::before {
    inset: clamp(4.95rem, 11vw, 6.1rem) clamp(0.8rem, 3vw, 1.8rem) clamp(0.8rem, 3vw, 1.8rem);
  }
  .access-portrait {
    grid-area: portrait;
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 0;
    justify-self: center;
    width: min(100%, 27rem);
    height: clamp(11.25rem, 32svh, 19rem);
    margin: 0;
    opacity: 0.34;
    pointer-events: none;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 18%, #000 76%, transparent 100%),
      linear-gradient(0deg, transparent 0%, #000 20%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .access-portrait img {
    object-position: 50% 38%;
  }
  .access-copy {
    grid-area: copy;
    display: grid !important;
    width: min(100%, 27rem) !important;
    max-width: min(100%, 27rem) !important;
    justify-self: center;
    justify-items: center;
    align-self: start;
    gap: clamp(0.62rem, 2vw, 0.8rem);
    padding: 0 !important;
    transform: none !important;
  }
  .access-copy span {
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: clamp(0.58rem, 1.8vw, 0.66rem);
    letter-spacing: 0.12em;
    line-height: 1.45;
  }
  .access-copy span::before {
    width: clamp(1.25rem, 6vw, 2rem);
  }
  .access-social {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.38rem, 1.7vw, 0.55rem);
  }
  .access-social-btn {
    width: clamp(2.18rem, 8vw, 2.55rem);
    height: clamp(2.18rem, 8vw, 2.55rem);
    flex: 0 0 clamp(2.18rem, 8vw, 2.55rem);
  }
  .access-card {
    grid-area: card;
    justify-self: center;
    align-self: start;
    width: min(100%, 27rem) !important;
    max-width: min(100%, 27rem) !important;
    margin: 0 auto !important;
    padding: clamp(1.12rem, 4vw, 1.65rem);
  }
  .access-card h1 {
    font-size: clamp(2.1rem, 9vw, 3.25rem);
  }
}

@media (max-width: 420px) {
  .access-stage {
    padding-inline: 1rem !important;
  }
  .access-social {
    gap: 0.34rem;
  }
  .access-social-btn {
    width: clamp(2.05rem, 9.4vw, 2.26rem);
    height: clamp(2.05rem, 9.4vw, 2.26rem);
    flex-basis: clamp(2.05rem, 9.4vw, 2.26rem);
  }
}


/* ---------- 45. Access page narrow viewport hard clamp ---------- */
@media (max-width: 900px) {
  .access-card,
  .access-copy,
  .access-portrait {
    width: 100% !important;
    max-width: 27rem !important;
    min-width: 0 !important;
  }
  .access-card {
    justify-self: stretch;
    overflow: hidden;
  }
  .access-card .intro,
  .access-card h1,
  .access-card label,
  .access-card input,
  .access-card .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .access-card,
  .access-copy,
  .access-portrait {
    max-width: 100% !important;
  }
  .access-card {
    padding-inline: clamp(1rem, 5vw, 1.18rem);
  }
}

@media (max-width: 340px) {
  .access-stage {
    gap: 0.72rem;
    padding-top: 5.1rem !important;
  }
  .access-portrait {
    height: clamp(10rem, 28svh, 12.5rem);
  }
  .access-copy {
    gap: 0.55rem;
  }
  .access-copy span {
    max-width: 14rem;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }
  .access-copy span::before {
    width: 1.15rem;
  }
  .access-social {
    max-width: 12.6rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .access-social-btn {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
  }
  .access-card h1 {
    font-size: clamp(2rem, 13vw, 2.55rem);
  }
}


/* ---------- 46. Site-wide mobile reading and overflow polish ---------- */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  main,
  section,
  .container,
  .hero-inner,
  .hero-layout,
  .hero-copy,
  .page-head,
  .split,
  .grid-works,
  .work,
  .card,
  .contact-intro,
  .footer-inner,
  .cookiebar-inner {
    min-width: 0;
    max-width: 100%;
  }
  h1,
  h2,
  h3,
  p,
  .lead,
  .display,
  .muted,
  .card-desc,
  .work-title,
  .card-title,
  .cookiebar-text {
    overflow-wrap: anywhere;
  }
  .hero--home .lead,
  .page-head .lead,
  .contact-intro p {
    max-width: 100%;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.55rem;
  }
  .filters .flabel {
    grid-column: 1 / -1;
    margin: 0 0 0.15rem;
  }
  .chip {
    width: 100%;
    min-width: 0;
    padding-inline: 0.65rem;
    text-align: center;
    white-space: normal;
  }
  .cookiebar {
    max-width: 100vw;
  }
  .cookiebar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    padding-block: 1rem;
  }
  .cookiebar-text {
    max-width: 100%;
    line-height: 1.55;
  }
  .cookiebar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }
  .cookiebar .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }
}


/* ---------- 47. Long labels on small screens ---------- */
@media (max-width: 560px) {
  .crumbs {
    gap: 0.32rem 0.45rem;
    line-height: 1.65;
  }
  .crumbs > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .crumbs span[aria-current="page"] {
    flex-basis: 100%;
  }
  .login-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.65rem;
  }
  .login-forgot {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .login-card select,
  .login-card input {
    min-width: 0;
  }
}


/* ---------- 48. Localized mobile typography safeguards ---------- */
@media (max-width: 760px) {
  html[lang="de"] .hero--home h1,
  html[lang="fr"] .hero--home h1,
  html[lang="pt"] .hero--home h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 10.8vw, 3.25rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  html[lang="de"] .page-head h1,
  html[lang="fr"] .page-head h1,
  html[lang="pt"] .page-head h1,
  html[lang="de"] .section--tight h1,
  html[lang="fr"] .section--tight h1,
  html[lang="pt"] .section--tight h1 {
    hyphens: auto;
  }
}

@media (max-width: 390px) {
  html[lang="de"] .hero--home h1,
  html[lang="fr"] .hero--home h1,
  html[lang="pt"] .hero--home h1 {
    max-width: 11.4ch;
    font-size: clamp(1.9rem, 10.2vw, 2.9rem);
  }
}
