:root {
  --forest: #26321f;
  --forest-2: #34402a;
  --earth: #71482f;
  --terracotta: #a7462d;
  --ochre: #c48e3f;
  --stone: #9b9890;
  --charcoal: #262624;
  --cream: #f4f0e6;
  --paper: #faf8f2;
  --line: rgba(38, 38, 36, .17);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --page-pad: clamp(1.25rem, 5.5vw, 7rem);
  --header-h: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--charcoal);
  color: #fff;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-width: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    max(.55rem, env(safe-area-inset-top))
    max(var(--page-pad), env(safe-area-inset-right))
    .55rem
    max(var(--page-pad), env(safe-area-inset-left));
  color: var(--cream);
  transition: background .3s ease, color .3s ease, height .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(250, 248, 242, .94);
  color: var(--charcoal);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand-mini {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  font: 700 .79rem/1.04 var(--serif);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.brand-mini img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.brand-mini span { white-space: nowrap; }
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.status-dot {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  white-space: nowrap;
}
.status-dot i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 4px rgba(196,142,63,.16);
}
.lang-switcher { display: flex; align-items: center; gap: .05rem; }
.lang-switcher button {
  min-width: 36px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .58;
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .07em;
  padding: .35rem .35rem;
  border-radius: 4px;
}
.lang-switcher button:hover,
.lang-switcher button:focus-visible,
.lang-switcher button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr);
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -15% 35% 0 -10%;
  opacity: .13;
  background:
    radial-gradient(55% 18% at 20% 36%, transparent 66%, #d5c8a9 67% 68%, transparent 69%),
    radial-gradient(60% 21% at 24% 49%, transparent 66%, #d5c8a9 67% 68%, transparent 69%),
    radial-gradient(68% 24% at 26% 63%, transparent 66%, #d5c8a9 67% 68%, transparent 69%),
    radial-gradient(75% 27% at 31% 77%, transparent 66%, #d5c8a9 67% 68%, transparent 69%);
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
  align-self: center;
  padding: calc(var(--header-h) + 4.5rem) var(--page-pad) 5.5rem;
  max-width: 1040px;
}
.eyebrow {
  margin: 0 0 1.35rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 650;
}
.main-logo {
  width: clamp(210px, 24vw, 330px);
  max-width: 100%;
  background: var(--paper);
  padding: 1rem 1rem .78rem;
  margin: 0 0 clamp(1.8rem, 3vw, 2.5rem);
  border-radius: 2px;
}
.hero h1,
.manifesto h2,
.coming h2 {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero h1 {
  margin: 0;
  max-width: 810px;
  font-size: clamp(3rem, 5.6vw, 6.2rem);
  line-height: .97;
}
.hero-text {
  max-width: 680px;
  margin: 1.8rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.68;
  color: rgba(244,240,230,.78);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .75rem;
  margin-top: 1.8rem;
  font-size: .71rem;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244,240,230,.7);
}
.territory-card {
  min-width: 0;
  margin: 0;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #1e2119;
}
.territory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.04);
}
.territory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38,50,31,.2), transparent 32%),
    linear-gradient(0deg, rgba(0,0,0,.42), transparent 38%);
}
.territory-card figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  font: 400 clamp(1rem, 1.8vw, 1.3rem)/1.2 var(--serif);
  max-width: 170px;
}
.scroll-hint {
  position: absolute;
  z-index: 3;
  left: var(--page-pad);
  bottom: 2.1rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244,240,230,.35);
  border-radius: 50%;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: 15px;
  background: var(--cream);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%,100% { transform: translate(-50%,0); opacity:.25; }
  50% { transform: translate(-50%,8px); opacity:1; }
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  padding: clamp(5.5rem, 10vw, 10rem) var(--page-pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.manifesto > * { min-width: 0; }
.manifesto h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 5.25rem);
  line-height: .99;
}
.manifesto-copy {
  align-self: end;
  max-width: 590px;
}
.manifesto-copy p {
  margin: 0;
  font: 400 clamp(1.2rem,2vw,1.85rem)/1.52 var(--serif);
  color: #504b43;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 var(--page-pad);
  background: var(--paper);
}
.pillar {
  min-width: 0;
  min-height: 300px;
  padding: 3rem clamp(1.5rem, 3vw, 3rem) 3.4rem 0;
  border-right: 1px solid var(--line);
}
.pillar + .pillar { padding-left: clamp(1.5rem, 3vw, 3rem); }
.pillar:last-child { border-right: 0; }
.pillar span { font-size: .68rem; letter-spacing: .16em; color: #8a857d; }
.pillar h3 {
  margin: 2.8rem 0 .85rem;
  font: 400 clamp(1.9rem,3vw,3rem)/1 var(--serif);
}
.pillar p {
  max-width: 290px;
  margin: 0;
  color: #6f695f;
  line-height: 1.7;
}

.coming {
  min-height: 70svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(5.5rem, 9vw, 8rem) var(--page-pad);
  background: #ded6c5;
  position: relative;
  overflow: hidden;
}
.coming > *:not(.topo-lines) { position: relative; z-index: 2; }
.coming .eyebrow { margin-bottom: 1.8rem; }
.coming h2 {
  margin: 0 auto;
  max-width: 1200px;
  font-size: clamp(3rem, 6.7vw, 7rem);
  line-height: .95;
}
.coming p:not(.eyebrow) {
  margin: 1.8rem 0 0;
  color: #625c52;
  font-size: 1.05rem;
}
.languages {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .66rem;
  line-height: 1.8;
}
.topo-lines {
  position: absolute;
  inset: -40%;
  opacity: .26;
  transform: rotate(-12deg);
  background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 38px, rgba(38,50,31,.22) 39px 40px, transparent 41px 74px);
}

.site-footer {
  min-height: 155px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem var(--page-pad);
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  background: var(--charcoal);
  color: var(--cream);
}
.site-footer div { display: grid; gap: .35rem; }
.site-footer strong {
  font: 400 1.35rem/1.15 var(--serif);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.site-footer span,
.site-footer p {
  margin: 0;
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244,240,230,.62);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Tablet / small desktop: switch the hero before the two-column layout becomes cramped. */
@media (max-width: 1100px) {
  :root { --header-h: 74px; }
  .status-dot > span { display: none; }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: min(760px, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) + 3.8rem);
    padding-bottom: 4.5rem;
  }
  .hero::before { inset: -10% 0 20% -30%; }
  .hero h1 { max-width: 850px; font-size: clamp(3.25rem, 8vw, 5.7rem); }
  .main-logo { width: clamp(220px, 32vw, 300px); }
  .territory-card {
    min-height: 0;
    height: clamp(380px, 58vw, 620px);
  }
  .territory-card img {
    object-position: center 42%;
  }
  .territory-card figcaption {
    max-width: none;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  }
  .scroll-hint { display: none; }
  .manifesto {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .manifesto-copy { max-width: 720px; }
}

/* Tablet portrait. */
@media (max-width: 760px) {
  :root { --page-pad: clamp(1.2rem, 5vw, 2.2rem); }
  .site-header {
    height: 68px;
    padding-top: max(.4rem, env(safe-area-inset-top));
    padding-bottom: .4rem;
  }
  .site-header.scrolled { height: 64px; }
  .brand-mini img { width: 36px; height: 36px; }
  .brand-mini span { font-size: .72rem; }
  .hero-copy {
    min-height: auto;
    padding-top: 8.1rem;
    padding-bottom: 4rem;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 10.5vw, 4.9rem);
    line-height: .98;
  }
  .hero-text {
    margin-top: 1.45rem;
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.62;
  }
  .hero-meta { margin-top: 1.55rem; }
  .main-logo { width: min(270px, 72vw); }
  .territory-card {
    height: min(72vw, 520px);
    min-height: 330px;
  }
  .territory-card img { object-position: center 43%; }
  .manifesto {
    gap: 2.6rem;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
  .manifesto h2 { font-size: clamp(2.5rem, 10vw, 4.6rem); }
  .manifesto-copy p { font-size: clamp(1.18rem, 4.6vw, 1.55rem); }
  .pillars { grid-template-columns: 1fr; }
  .pillar,
  .pillar + .pillar {
    min-height: 0;
    padding: 2.4rem 0 2.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pillar:last-child { border-bottom: 0; }
  .pillar h3 { margin-top: 1.35rem; }
  .coming {
    min-height: 0;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .coming h2 { font-size: clamp(2.75rem, 11vw, 5rem); }
  .site-footer {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.8rem;
  }
}

/* Phones. */
@media (max-width: 520px) {
  :root { --page-pad: 1.15rem; }
  .site-header { gap: .45rem; }
  .brand-mini { gap: .45rem; }
  .brand-mini span { display: none; }
  .header-actions { gap: .25rem; }
  .status-dot { margin-right: .2rem; }
  .lang-switcher button {
    min-width: 34px;
    min-height: 42px;
    padding-inline: .2rem;
  }
  .hero-copy {
    padding-top: 7.1rem;
    padding-bottom: 3.3rem;
  }
  .eyebrow {
    margin-bottom: 1.05rem;
    font-size: .66rem;
    line-height: 1.45;
    letter-spacing: .17em;
  }
  .main-logo {
    width: min(235px, 72vw);
    margin-bottom: 1.7rem;
    padding: .78rem .78rem .62rem;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 12.1vw, 3.5rem);
    line-height: 1.01;
    letter-spacing: -.03em;
  }
  .hero-text {
    margin-top: 1.25rem;
    font-size: .96rem;
    line-height: 1.58;
  }
  .hero-meta {
    margin-top: 1.35rem;
    font-size: .64rem;
    letter-spacing: .1em;
  }
  .territory-card {
    height: 82vw;
    min-height: 300px;
    max-height: 430px;
  }
  .territory-card img { object-position: center 40%; }
  .territory-card figcaption {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1.15rem;
    font-size: 1.08rem;
  }
  .manifesto {
    padding-top: 4.7rem;
    padding-bottom: 4.7rem;
    gap: 2.1rem;
  }
  .manifesto h2 {
    font-size: clamp(2.2rem, 11.8vw, 3.45rem);
    line-height: 1.01;
  }
  .manifesto-copy p {
    font-size: 1.14rem;
    line-height: 1.5;
  }
  .pillar,
  .pillar + .pillar { padding: 2.05rem 0 2.3rem; }
  .pillar h3 { font-size: 2.1rem; }
  .pillar p { font-size: .95rem; }
  .coming {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .coming .eyebrow { margin-bottom: 1.4rem; }
  .coming h2 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
    line-height: 1;
  }
  .coming p:not(.eyebrow) {
    margin-top: 1.4rem;
    font-size: .98rem;
  }
  .languages {
    margin-top: 2.5rem;
    font-size: .61rem;
    letter-spacing: .12em;
  }
  .site-footer { padding-top: 2.2rem; }
  .site-footer strong { font-size: 1.18rem; }
  .site-footer span,
  .site-footer p { font-size: .64rem; letter-spacing: .1em; }
}

/* Very narrow phones: avoid squeezing the language controls. */
@media (max-width: 360px) {
  .site-header { padding-left: .8rem; padding-right: .8rem; }
  .brand-mini img { width: 34px; height: 34px; }
  .status-dot { display: none; }
  .hero-copy { padding-left: 1rem; padding-right: 1rem; }
  .hero h1 { font-size: 2.3rem; }
  .manifesto,
  .pillars,
  .coming,
  .site-footer { padding-left: 1rem; padding-right: 1rem; }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 1100px) {
  .hero-copy {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }
  .main-logo { width: 200px; margin-bottom: 1.35rem; }
  .hero h1 { font-size: clamp(2.6rem, 6.8vw, 4.4rem); }
  .territory-card { height: 70vh; min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Header patch v4 — isolated mobile fix. Keeps the stable v2 layout intact. */
.brand-mini .brand-header-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  max-width: 42px;
  object-fit: cover;
  border-radius: 7px;
}
.brand-header-name {
  display: block;
  min-width: 0;
  white-space: nowrap;
  font: 700 .79rem/1.04 var(--serif);
  text-transform: uppercase;
  letter-spacing: .03em;
}

@media (max-width: 760px) {
  .brand-mini .brand-header-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
  }
  .brand-header-name { font-size: .72rem; }
}

@media (max-width: 520px) {
  .site-header {
    gap: .55rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .brand-mini {
    flex: 1 1 auto;
    min-width: 0;
    gap: .5rem;
  }
  .brand-mini .brand-header-logo {
    display: block !important;
    width: 40px;
    height: 40px;
    max-width: 40px;
  }
  .brand-header-name {
    display: block !important;
    font-size: .66rem;
    line-height: 1.04;
    letter-spacing: .018em;
  }
  .header-actions { flex: 0 0 auto; gap: .05rem; }
  .status-dot { display: none; }
  .lang-switcher button {
    min-width: 30px;
    padding-inline: .1rem;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-left: max(.72rem, env(safe-area-inset-left));
    padding-right: max(.72rem, env(safe-area-inset-right));
  }
  .brand-mini { gap: .4rem; }
  .brand-mini .brand-header-logo {
    width: 36px;
    height: 36px;
    max-width: 36px;
  }
  .brand-header-name {
    font-size: .58rem;
    letter-spacing: .008em;
  }
  .lang-switcher button {
    min-width: 27px;
    font-size: .64rem;
  }
}
