@font-face {
  font-family: "Kelson Sans";
  src: url("assets/kelson-light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Kelson Sans";
  src: url("assets/kelson-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kelson Sans";
  src: url("assets/kelson-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --warm-white: #f5f4f0;
  --oak: #cfb994;
  --stone: #c4c2be;
  --taupe: #b8b0a8;
  --anthracite: #3b4042;
  --glass: #b0bec2;
  --sage: #8c9386;
  --clay: #b28468;
  --action-green: #596650;
  --ink: var(--anthracite);
  --line: rgba(59, 64, 66, 0.23);
  --page-gutter: clamp(24px, 6vw, 92px);
  --section-space: clamp(72px, 8vw, 112px);
  --panel-space: clamp(28px, 3.6vw, 56px);
  --heading-size: clamp(40px, 4.5vw, 68px);
  --radius: 4px;
  --shadow: 0 18px 45px rgba(59, 64, 66, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--warm-white);
  color: var(--ink);
  font-family: "Kelson Sans";
  font-weight: 300;
}

body, button, input, select, textarea { font-family: "Kelson Sans"; }
button, input, select, textarea { font: inherit; }
code { font-family: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--action-green); outline-offset: 4px; }

.section {
  padding: var(--section-space) max(var(--page-gutter), calc((100vw - 1360px) / 2));
}

section[id] { scroll-margin-top: 24px; }
.section-heading { margin-bottom: 36px; }

.section-label,
.eyebrow,
.image-caption {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label { display: flex; align-items: center; gap: 12px; }
.section-label span { padding-bottom: 3px; border-bottom: 2px solid var(--sage); }
.eyebrow { margin: 0 0 24px; }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--sage);
}

h2,
.vision blockquote {
  margin: 0 0 28px;
  font-size: var(--heading-size);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 em,
h2 em,
.vision blockquote em {
  color: var(--action-green);
  font-family: "Kelson Sans";
  font-weight: 300;
  font-style: italic;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 13px 19px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--action-green);
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.button:hover { background: var(--anthracite); }

.site-header .header-contact:hover {
  transform: translateY(-50%);
}

.text-action {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 13px 19px 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(245, 244, 240, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.text-action:hover {
  border-color: var(--warm-white);
  background: var(--warm-white);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.hero__image,
.hero__veil,
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  animation: reveal-image 1s ease-out both;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(38, 42, 44, 0.65), rgba(45, 49, 51, 0.35) 48%, rgba(45, 49, 51, 0.1)),
    linear-gradient(0deg, rgba(38, 42, 44, 0.3), transparent 70%)
}

.grain {
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 1544px);
  min-height: 112px;
  margin: 0 auto;
  padding: 24px var(--page-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { width: 176px; flex: 0 1 auto; }
.brand img { width: 100%; }
.header-contact { flex: 0 0 auto; }

.site-header .header-contact {
  position: absolute;
  top: 50%;
  right: var(--page-gutter);
  transform: translateY(-50%);
}

.hero__content {
  width: min(100%, 1544px);
  margin: auto;
  padding: 72px var(--page-gutter) 96px;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em { color: var(--oak); }

.hero__intro {
  max-width: 465px;
  margin: 30px 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.58;
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__foot { display: none; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--oak); }

/* Concept */
.vision { padding-bottom: 0; }

.vision__scene {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.vision__image-wrap {
  position: relative;
  grid-column: 1 / 9;
  grid-row: 1;
  height: 600px;
  overflow: hidden;
  border-radius: var(--radius);
}

.vision__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
}

.image-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 24px 22px;
  background: linear-gradient(transparent, rgba(38, 42, 44, 0.76));
  color: #fff;
}

.vision__content {
  position: relative;
  z-index: 1;
  grid-column: 8 / -1;
  grid-row: 1;
  padding: var(--panel-space);
  border: 1px solid var(--taupe);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: var(--warm-white);
  box-shadow: var(--shadow);
}

.vision__content .eyebrow { color: var(--ink); }

.vision blockquote {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
}

.vision__content > p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

/* Project */
.project__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.project__story p {
  max-width: 500px;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
}

.project__story .button { margin-top: 12px; }

.project__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--taupe);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: var(--stone);
}

.project__facts > div {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--warm-white);
}

.project__facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.project__facts > div:nth-last-child(-n + 2) { border-bottom: 0; }

.project__facts dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project__facts dd {
  margin: 24px 0 0;
  color: var(--action-green);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project__facts dd small {
  display: block;
  margin: -13px 0 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.project__facts .project__detail {
  margin-top: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Location */
.location { padding-top: 0; }

.location__scene {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.location__card {
  position: relative;
  z-index: 1;
  grid-column: 1 / 6;
  grid-row: 1;
  padding: var(--panel-space);
  border: 1px solid var(--taupe);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: var(--warm-white);
  box-shadow: var(--shadow);
}

.location__card h2 { margin-top: 24px; margin-bottom: 16px; }

.location__promise {
  margin: 0 0 32px;
  color: var(--action-green);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.2;
}

.location__address {
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.location__address small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location__address strong { font-size: 18px; font-weight: 400; }

.location__compass {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--taupe);
  border-radius: 50%;
}

.location__compass span {
  position: absolute;
  top: -7px;
  padding: 0 4px;
  background: var(--warm-white);
  font-size: 10px;
}

.location__compass i {
  width: 8px;
  height: 24px;
  transform: rotate(25deg);
  background: linear-gradient(var(--action-green) 50%, var(--oak) 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.location__map-wrap {
  grid-column: 5 / -1;
  grid-row: 1;
  min-width: 0;
}

.location__map {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  border-radius: var(--radius);
  background: var(--stone);
}

/* Contact */
.register {
  position: relative;
  overflow: hidden;
  background: var(--glass);
}

.register__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.register__content h2 { margin: 0; }

.register__action {
  padding-left: clamp(28px, 4vw, 56px);
}

.register__action p {
  max-width: 410px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
}

.map-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
}

.map-lines i {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.map-lines i:nth-child(1) { top: 130px; left: -150px; width: 680px; height: 680px; }
.map-lines i:nth-child(2) { top: -230px; right: -115px; width: 630px; height: 630px; }
.map-lines i:nth-child(3) { right: 12%; bottom: -230px; width: 450px; height: 450px; }
.map-lines i:nth-child(4) { top: 30px; left: 28%; width: 360px; height: 360px; }

/* Footer */
.site-footer {
  padding: clamp(56px, 7vw, 88px) max(var(--page-gutter), calc((100vw - 1360px) / 2)) 32px;
  background: var(--anthracite);
  color: var(--warm-white);
}

.site-footer__inner { max-width: 1360px; margin: 0 auto; }

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 2.25fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.site-footer__brand > a {
  display: block;
  width: 176px;
}

.site-footer__brand img { width: 100%; height: auto; }

.site-footer__brand p {
  max-width: 240px;
  margin: 22px 0 0;
  color: rgba(245, 244, 240, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer__contacts {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.45fr 0.7fr;
  gap: clamp(24px, 3vw, 52px);
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.site-footer__contacts li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__contacts span {
  margin-bottom: 12px;
  color: var(--oak);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__contacts a {
  color: var(--warm-white);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.site-footer__contacts a:hover { color: var(--oak); }

.site-footer__contacts .button {
  min-width: 112px;
  color: #fff;
  font-size: 14px;
}

.site-footer__contacts .button:hover { border-color: rgba(245, 244, 240, 0.45); }

.site-footer__bottom {
  display: flex;
  margin-top: clamp(48px, 6vw, 76px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__bottom p,
.site-footer__bottom a {
  margin: 0;
  color: rgba(245, 244, 240, 0.68);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-footer__bottom a { transition: color 0.2s ease; }
.site-footer__bottom a:hover { color: var(--warm-white); }

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.site-footer__privacy-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 244, 240, 0.68);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-footer__privacy-button:hover { color: var(--warm-white); }

/* Legal page */
.legal-header {
  padding: 24px max(var(--page-gutter), calc((100vw - 1360px) / 2));
  background: var(--anthracite);
  color: var(--warm-white);
}

.legal-header__inner {
  display: flex;
  max-width: 1360px;
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__brand { display: block; width: 164px; }
.legal-header__brand img { width: 100%; height: auto; }

.legal-header__back {
  color: var(--warm-white);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-header__back:hover { color: var(--oak); }

.legal-page { background: var(--warm-white); }

.legal-hero {
  padding: clamp(72px, 9vw, 124px) max(var(--page-gutter), calc((100vw - 1360px) / 2)) clamp(52px, 6vw, 80px);
  background: var(--stone);
}

.legal-hero__inner { max-width: 1360px; margin: 0 auto; }

.legal-hero h1 {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal-hero p {
  max-width: 660px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) max(var(--page-gutter), calc((100vw - 1360px) / 2));
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 2fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 32px;
}

.legal-nav p {
  margin: 0 0 18px;
  color: var(--action-green);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav ol { margin: 0; padding: 0; list-style: none; }
.legal-nav li + li { margin-top: 10px; }

.legal-nav a {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-nav a:hover { color: var(--action-green); }

.legal-content { max-width: 820px; }

.legal-content section + section {
  margin-top: clamp(52px, 6vw, 76px);
}

.legal-content h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 30px 0 12px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.72;
}

.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0; padding-left: 20px; }
.legal-content li + li { margin-top: 8px; }

.legal-content a {
  color: var(--action-green);
  text-underline-offset: 3px;
}

.legal-contact-card {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--taupe);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: #fff;
}

.legal-contact-card p:last-child { margin-bottom: 0; }

.consent a {
  color: var(--action-green);
  text-underline-offset: 2px;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  display: grid;
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: var(--anthracite);
  color: var(--warm-white);
  box-shadow: 0 18px 50px rgba(24, 27, 28, 0.26);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cookie-banner p {
  max-width: 650px;
  margin: 0;
  color: rgba(245, 244, 240, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner a { color: var(--warm-white); text-underline-offset: 3px; }

.cookie-banner__actions,
.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-secondary,
.cookie-text-button {
  min-height: 44px;
  padding: 13px 18px 11px;
  border: 1px solid rgba(245, 244, 240, 0.55);
  border-radius: var(--radius);
  background: transparent;
  color: var(--warm-white);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-secondary:hover {
  background: var(--warm-white);
  color: var(--ink);
}

.cookie-text-button { padding-right: 4px; padding-left: 4px; border-color: transparent; }
.cookie-text-button:hover { color: var(--oak); }

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
}

.cookie-settings.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cookie-settings__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(59, 64, 66, 0.68);
  transition: opacity 0.25s ease;
}

.cookie-settings.is-open .cookie-settings__backdrop { opacity: 1; }

.cookie-settings__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(calc(100% - 32px), 620px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: clamp(36px, 5vw, 56px);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  background: var(--warm-white);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-settings.is-open .cookie-settings__panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.cookie-settings__panel h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cookie-settings__panel > p:not(.eyebrow) {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-options { margin-bottom: 28px; border-top: 1px solid var(--line); }

.cookie-options label {
  display: flex;
  padding: 18px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.cookie-options span { display: flex; flex-direction: column; gap: 4px; }
.cookie-options strong { font-size: 15px; font-weight: 400; }
.cookie-options small { font-size: 12px; line-height: 1.45; }
.cookie-options input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--action-green); }

.cookie-secondary--dark { border-color: var(--line); color: var(--ink); }
.cookie-secondary--dark:hover { background: var(--stone); }

/* Contact modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  transition: visibility 0s 0.35s;
}

.modal.is-open { visibility: visible; transition-delay: 0s; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(59, 64, 66, 0.68);
  transition: opacity 0.35s;
}

.modal__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 580px);
  overflow-y: auto;
  padding: 30px var(--panel-space) 48px;
  border-top: 3px solid var(--sage);
  background: var(--warm-white);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: translateX(0); }
.modal__brand { width: 164px; margin-bottom: 36px; }
.modal h2 { font-size: clamp(40px, 4.5vw, 60px); }

.modal__intro {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.58;
}

.modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal__close:hover {
  transform: rotate(90deg);
  border-color: var(--anthracite);
  background: var(--stone);
}

form { display: grid; gap: 20px; }

form label {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

form label small { letter-spacing: 0; text-transform: none; }

form input:not([type="checkbox"]),
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--sage);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

form select { cursor: pointer; }
form textarea { min-height: 78px; resize: vertical; }

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--action-green);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.consent input { margin: 2px 0 0; accent-color: var(--action-green); }
form .button { justify-self: start; }

.turnstile-field {
  display: grid;
  width: 100%;
  min-height: 72px;
  gap: 8px;
  align-items: start;
}

.turnstile-field > div { max-width: 100%; }

.turnstile-field p {
  margin: 0;
  color: rgba(59, 64, 66, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

form .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--clay);
  background: rgba(178, 132, 104, 0.12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.form-success { padding: 48px 0; text-align: center; }

.form-success > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--action-green);
  font-size: 26px;
}

.form-success h3 { margin: 0 0 16px; font-size: 40px; font-weight: 300; }
.form-success p { font-size: 17px; line-height: 1.6; }

/* Motion */
.reveal { animation: rise 0.7s both; }
.hero h1.reveal { animation-delay: 0.15s; }
.hero__intro.reveal { animation-delay: 0.25s; }
.hero__cta.reveal { animation-delay: 0.35s; }

@keyframes reveal-image {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1000px) {
  .vision__image-wrap { grid-column: 1 / 8; }
  .vision__content { grid-column: 7 / -1; }
  .project__layout { gap: 44px; }
}

@media (max-width: 760px) {
  :root { --section-space: 64px; }
  .section-heading { margin-bottom: 28px; }
  .site-header { min-height: 88px; gap: 16px; }
  .brand { width: 132px; }

  .header-contact {
    min-height: 40px;
    padding: 12px 15px 10px;
    font-size: 12px;
  }

  .hero__content { padding-top: 64px; padding-bottom: 68px; }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(42px, 11.2vw, 56px);
    line-height: 1.02;
  }

  .hero__intro { max-width: 340px; font-size: 16px; }
  .hero__cta { align-items: flex-start; }

  .hero__foot {
    display: block;
    padding: 0 var(--page-gutter) 24px;
  }

  .scroll-cue {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.025em;
  }

  .scroll-cue span { width: 24px; height: 1px; background: var(--sage); }

  .vision__scene,
  .project__layout,
  .location__scene {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .vision__image-wrap {
    height: 380px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .vision__content {
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: none;
  }

  .project__layout { gap: 36px; }
  .project__facts > div { padding: 24px 18px; }
  .project__facts dd { font-size: 44px; }

  .location__card {
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: none;
  }

  .location__map {
    height: 380px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .register__content { grid-template-columns: 1fr; gap: 28px; }

  .register__action {
    padding: 24px 0 0;
  }

  .site-footer__main { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__brand > a { width: 148px; }
  .site-footer__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .site-footer__bottom { align-items: flex-start; }
  .site-footer__bottom p > span:not(#year) { display: block; }
  .legal-header__brand { width: 144px; }
  .legal-layout { grid-template-columns: 1fr; gap: 44px; }
  .legal-nav { position: static; }
  .legal-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
  .legal-nav li + li { margin-top: 0; }
  .cookie-banner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .hero__cta { gap: 10px 14px; }
  .button, .text-action { font-size: 13px; }
  .project__facts > div { padding: 22px 12px; }
  .project__facts dd { font-size: 38px; }
  .project__facts .project__detail { font-size: 12px; }
  .location__address strong { font-size: 16px; }
  .site-footer__contacts { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; gap: 12px; }
  .site-footer__bottom-links { justify-content: flex-start; }
  .legal-nav ol { grid-template-columns: 1fr; }
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 20px; }
  .cookie-banner__actions, .cookie-settings__actions { align-items: stretch; flex-direction: column; }
  .cookie-banner__actions > *, .cookie-settings__actions > * { width: 100%; }
  .cookie-settings__panel { width: calc(100% - 24px); padding: 52px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
