:root {
  --bg: #070806;
  --bg-soft: #10120f;
  --paper: #e8e0cf;
  --paper-muted: #b9ae99;
  --ink: #f3ede0;
  --muted: #a8a092;
  --line: rgba(232, 224, 207, 0.18);
  --signal: #d8ff62;
  --danger: #ff4d38;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 255, 98, 0.08), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(255, 77, 56, 0.1), transparent 30rem),
    linear-gradient(180deg, #050604 0%, var(--bg) 55%, #14110d 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.72);
  backdrop-filter: blur(18px);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand {
  color: var(--signal);
  font-weight: 700;
}

.nav__links {
  display: flex;
  min-width: 0;
  gap: clamp(0.75rem, 2vw, 2rem);
  color: var(--muted);
  font-size: 0.78rem;
}

.nav__links a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  gap: 0.18rem;
  padding: 0.18rem;
  border: 1px solid rgba(216, 255, 98, 0.35);
  background:
    linear-gradient(135deg, rgba(216, 255, 98, 0.12), transparent 55%),
    rgba(7, 8, 6, 0.82);
}

.language-switch__button {
  min-width: 0;
  min-height: 2rem;
  padding: 0.46rem 0.68rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-switch__button:hover,
.language-switch__button:focus-visible {
  color: var(--ink);
}

.language-switch__button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.language-switch__button.is-active {
  background: var(--signal);
  color: #111406;
}

.hero {
  min-height: 100svh;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: calc(100svh - 51px);
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 2rem) clamp(1rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem);
}

.hero__copy {
  width: min(100%, 76rem);
  min-width: 0;
  padding-top: 0;
}

.eyebrow,
.section__label,
.zone__number,
.closing p {
  max-width: 100%;
  margin: 0 0 1rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.32;
}

.hero-title {
  max-width: min(100%, 88rem);
  color: rgba(243, 237, 224, 0.86);
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.hero-title__line {
  display: block;
  margin: 0 0 0.12em;
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.hero-title__line:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 4rem);
  line-height: 1.32;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

h3 {
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  line-height: 1.32;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead,
.thesis p,
.zones__intro p,
.ethics p {
  color: var(--paper-muted);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.55;
}

.lead {
  max-width: 42rem;
  margin: 1.6rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: #111406;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.hero__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__media::after,
.zone__image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5));
}

.hero__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 1fr);
  overflow: hidden;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.thesis__content {
  min-width: 0;
  max-width: 58rem;
}

.thesis p {
  max-width: 58rem;
}

.thesis {
  min-height: 100svh;
  align-items: center;
}

.thesis h2 {
  max-width: min(100%, 72rem);
  font-size: clamp(3.4rem, 8.2vw, 8.5rem);
  line-height: 1.18;
}

.arc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.arc span {
  min-height: 8rem;
  display: flex;
  align-items: end;
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  letter-spacing: 0.1em;
}

.arc span:last-child {
  border-right: 0;
  color: var(--signal);
}

.zones {
  display: block;
  overflow: hidden;
  padding: 0;
}

.zones .section__label,
.zones__intro {
  max-width: 72rem;
}

.zones__screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.zones__screen--intro {
  grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 1fr);
  grid-template-areas:
    "label intro"
    "zone zone";
  align-content: center;
  row-gap: clamp(2rem, 4vw, 4rem);
}

.zones__screen--intro > .section__label {
  grid-area: label;
}

.zones__screen--intro > .zones__intro {
  grid-area: intro;
}

.zones__screen--intro > .zone {
  grid-area: zone;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
}

.zones__screen--intro .zone__image img {
  aspect-ratio: 21 / 9;
}

.zones__intro {
  min-width: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.zones__intro h2 {
  max-width: min(100%, 78rem);
  font-size: clamp(3.1rem, 7.4vw, 7.7rem);
  line-height: 1.28;
}

.zone {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.zone--reverse {
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
}

.zone--reverse .zone__image {
  order: 2;
}

.zone__image {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.zone__image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.zone__body {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.zone__body h3 {
  max-width: min(100%, 44rem);
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  line-height: 1.3;
}

.zone__body p:not(.zone__number),
.zone__body li {
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.zone__body ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.zone__body li {
  position: relative;
  padding-left: 1.2rem;
}

.zone__body li::before {
  position: absolute;
  left: 0;
  color: var(--danger);
  content: ">";
  font-family: var(--font-mono);
}

.ethics {
  min-height: 100svh;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(232, 224, 207, 0.08), transparent),
    rgba(232, 224, 207, 0.03);
}

.ethics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.56fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: start;
}

.ethics__grid > :first-child {
  grid-row: 1 / span 2;
  max-width: 58rem;
}

.ethics__card {
  grid-column: 2;
  min-height: 0;
  padding: clamp(1.2rem, 2vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.ethics__card h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.5rem);
}

.ethics__card p {
  font-size: 1rem;
}

.closing {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  background: var(--paper);
  color: #15110c;
}

.closing p {
  color: #4f4a3d;
}

blockquote {
  max-width: 15ch;
  font-size: clamp(3.6rem, 8.2vw, 8.5rem);
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .hero__grid,
  .section,
  .zones__screen,
  .zone,
  .zone--reverse,
  .ethics__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    align-items: center;
    min-height: calc(100svh - 51px);
    padding-top: 0;
  }

  .zone--reverse .zone__image {
    order: 0;
  }

  .zones__intro {
    margin-left: 0;
  }

  .arc {
    grid-template-columns: 1fr;
  }

  .arc span {
    min-height: 4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ethics__card {
    min-height: auto;
  }

  .ethics {
    min-height: 100svh;
    align-content: center;
  }

  .ethics__grid > :first-child,
  .ethics__card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  }

  .nav {
    position: relative;
    inline-size: 100vw;
    max-inline-size: 100vw;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.85rem 1rem;
  }

  .nav__links {
    display: none;
  }

  .brand {
    font-size: 0.82rem;
  }

  .language-switch {
    width: min(100%, 22.4rem);
    margin-top: 0.75rem;
  }

  .language-switch__button {
    flex: 1;
    min-height: 2.35rem;
    padding-inline: 0.45rem;
    font-size: 0.6rem;
  }

  .eyebrow,
  .section__label,
  .zone__number,
  .closing p {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .eyebrow {
    max-width: 28ch;
    line-height: 1.25;
    margin-bottom: 0.65rem;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-title__line {
    margin-bottom: 0.1em;
    font-size: clamp(3.05rem, 12.95vw, 4.05rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    white-space: normal;
  }

  .hero-title__line:first-child {
    font-size: clamp(2.5rem, 10.6vw, 3.35rem);
    max-width: 8.6ch;
  }

  html[lang="ca"] .hero-title__line:nth-child(2) {
    max-width: 7.1ch;
  }

  .lead {
    margin-top: 1.1rem;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    line-height: 1.36;
    letter-spacing: 0;
  }

  h3 {
    font-size: clamp(1.45rem, 6.2vw, 1.95rem);
    line-height: 1.36;
    letter-spacing: 0;
  }

  .lead,
  .thesis p,
  .zones__intro p,
  .ethics p {
    max-width: 34ch;
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.5;
  }

  .hero__grid {
    gap: 1.75rem;
    min-height: calc(100svh - 43.19px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero__grid,
  .section,
  .closing {
    padding-inline: 1rem;
  }

  .hero__grid {
    padding-inline: 0.75rem;
  }

  .thesis {
    min-height: 100svh;
    align-content: center;
  }

  .thesis h2 {
    font-size: clamp(2.2rem, 11vw, 3.75rem);
    line-height: 1.24;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.4rem;
  }

  .button {
    width: 100%;
    min-height: 3.25rem;
  }

  .zone__image {
    width: 100%;
    margin-inline: auto;
  }

  .zone__image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .zone__image img {
    object-position: center;
  }

  figcaption {
    left: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.66rem;
  }

  .section {
    gap: 1.25rem;
    padding-block: 3.5rem;
  }

  .section__label {
    margin-bottom: 0;
  }

  .arc span {
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.68rem;
  }

  .zones {
    padding: 0;
  }

  .zones__screen {
    min-height: auto;
    gap: 1.25rem;
    padding: 0 1rem;
    align-content: center;
  }

  .zones__screen--intro {
    padding-top: 3.5rem;
  }

  .zones__screen--intro .zones__intro {
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding-bottom: 3rem;
  }

  .zones__screen--intro {
    grid-template-areas:
      "label"
      "intro"
      "zone";
    row-gap: 1.5rem;
  }

  .zones__screen--intro > .zone {
    grid-template-columns: 1fr;
  }

  .zones__screen--intro .zone__image img {
    aspect-ratio: 4 / 3;
  }

  .zones__intro {
    margin-bottom: 0;
  }

  .zones__intro h2 {
    font-size: clamp(2rem, 8.8vw, 3.05rem);
    line-height: 1.34;
  }

  .zone {
    gap: 1rem;
    min-height: 100svh;
    margin-top: 0;
    border-top: 0;
    padding: 3rem 0;
    align-content: center;
  }

  .zone:first-of-type {
    border-top: 0;
  }

  .zone__body {
    padding: 0.25rem 0 0;
  }

  .zone__body h3 {
    font-size: clamp(1.95rem, 8.5vw, 2.85rem);
    line-height: 1.34;
  }

  .zone__body p:not(.zone__number),
  .zone__body li {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .zone__body ul {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .ethics__grid {
    gap: 0.8rem;
  }

  .ethics__card {
    padding: 1rem;
  }

  blockquote {
    max-width: 12ch;
    font-size: clamp(2.35rem, 10.8vw, 3.45rem);
    letter-spacing: 0;
    line-height: 1.26;
  }
}

@media (max-width: 390px) {
  .hero-title {
    max-width: 100%;
  }

  .hero-title__line {
    font-size: clamp(2.58rem, 11vw, 3.18rem);
    line-height: 1.08;
  }

  .hero-title__line:first-child {
    font-size: clamp(2.15rem, 9.15vw, 2.72rem);
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.2rem, 4.8vw, 1.4rem);
    line-height: 1.4;
  }

  .thesis h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.28;
  }

  .zones__intro h2 {
    font-size: clamp(1.72rem, 7.6vw, 2.3rem);
    line-height: 1.38;
  }

  .zone__body h3 {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    line-height: 1.38;
  }

  .zone__image img {
    aspect-ratio: 1 / 0.9;
  }
}
