:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --ink: #14201d;
  --muted: #61706b;
  --line: #e2ded5;
  --accent: #355f61;
  --accent-soft: #edf4f2;
  --warm: #b98553;
  --shadow-soft: 0 18px 58px rgba(20, 32, 29, 0.045);
  --focus-ring: 0 0 0 4px rgba(53, 95, 97, 0.12);
  --type-fine: 0.9rem;
  --type-small: 0.94rem;
  --type-body: 1.08rem;
  --type-copy: 1.16rem;
  --weight-quiet: 400;
  --weight-medium: 540;
  --weight-strong: 620;
  --font-ui: "Inter", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(53, 95, 97, 0.08), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 56%, #f6f3eb 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis-weight: none;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - 1040px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--weight-strong);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-nav a,
.secondary-link,
.primary-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: #34433f;
  font-size: var(--type-small);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--accent-soft);
  outline: 0;
}

.intro {
  display: grid;
  min-height: calc(100vh - 68px - 78px);
  min-height: calc(100svh - 68px - 78px);
  align-items: center;
  padding: clamp(34px, 6vh, 72px) 0 clamp(28px, 5vh, 60px);
}

.intro-inner {
  display: grid;
  align-items: center;
  max-width: 900px;
  min-height: min(560px, calc(100vh - 190px));
  min-height: min(560px, calc(100svh - 190px));
  position: relative;
}

.hero-panel {
  grid-area: 1 / 1;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0ms linear 0ms;
}

.hero-panel.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition:
    opacity 360ms ease,
    transform 420ms ease,
    visibility 0ms linear 420ms;
}

.hero-panel--message {
  max-width: 900px;
}

.hero-panel--contact {
  width: min(1040px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: #496461;
  font-family: var(--font-display);
  font-size: var(--type-small);
  font-weight: var(--weight-medium);
  line-height: 1.42;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  min-height: 22rem;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: var(--weight-medium);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.message-line {
  display: block;
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform, filter;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.message-line.is-out {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

.intro-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: var(--type-copy);
  font-weight: var(--weight-quiet);
  line-height: 1.66;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fffdf8;
  cursor: pointer;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  min-height: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: var(--type-small);
}

.primary-button {
  width: 100%;
  min-height: 48px;
}

.secondary-link:hover,
.secondary-link:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background: #294f51;
  color: #fffdf8;
  outline: 0;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-bottom-color: currentColor;
  background: transparent;
  color: #243f41;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--weight-medium);
  line-height: 1.08;
  letter-spacing: 0;
}

.contact-grid p {
  max-width: 620px;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--weight-quiet);
  line-height: 1.66;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #25332f;
  font-size: var(--type-small);
  font-weight: var(--weight-medium);
}

.contact-form label > span {
  color: #34433f;
  line-height: 1.35;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.contact-form input {
  min-height: 46px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7a8581;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: var(--type-fine);
  font-weight: var(--weight-quiet);
  line-height: 1.5;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.consent a {
  color: var(--accent);
  font-weight: var(--weight-strong);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: var(--type-fine);
  line-height: 1.45;
}

.site-footer {
  flex: 0 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: #53615d;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  font-size: var(--type-small);
}

.footer-copy {
  display: grid;
  gap: 5px;
}

.footer-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--weight-strong);
}

.site-footer > .shell:not(.footer-inner) {
  color: #53615d;
  font-size: var(--type-small);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  max-width: 620px;
}

.footer-links a,
.policy-nav a {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #3c4945;
  font-size: var(--type-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.policy-nav a:hover,
.policy-nav a:focus-visible {
  border-bottom-color: currentColor;
  background: transparent;
  color: var(--accent);
  outline: 0;
}

.policy-page {
  min-height: calc(100vh - 68px);
  padding: clamp(54px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
}

.policy-card {
  max-width: 780px;
}

.policy-card .eyebrow {
  margin-bottom: 14px;
  color: #60706c;
}

.policy-card h1 {
  min-height: auto;
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 3.65rem;
  font-weight: var(--weight-medium);
  line-height: 1.04;
}

.policy-card h2 {
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 222, 213, 0.9);
  font-size: 1.36rem;
  font-weight: var(--weight-medium);
  line-height: 1.28;
}

.policy-card h2:first-of-type {
  margin-top: 34px;
}

.policy-card h1 + p {
  color: #6a7672;
  font-size: var(--type-small);
  line-height: 1.55;
}

.policy-card p,
.policy-card li {
  color: #3f4d49;
  font-size: var(--type-body);
  font-weight: var(--weight-quiet);
  line-height: 1.74;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 1.05rem;
}

.policy-card li + li {
  margin-top: 8px;
}

.policy-card strong {
  color: #1f2c28;
  font-weight: var(--weight-strong);
}

.policy-card a {
  color: var(--accent);
  font-weight: var(--weight-strong);
  text-decoration-color: rgba(53, 95, 97, 0.35);
  text-underline-offset: 3px;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent-inner {
  display: flex;
  width: min(820px, 100%);
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 64px rgba(20, 32, 29, 0.12);
  pointer-events: auto;
}

.cookie-consent-text {
  margin: 0;
  color: #3f4d49;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.secondary-button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #33423e;
  cursor: pointer;
  font-weight: var(--weight-medium);
}

@media (max-width: 780px) {
  .site-header,
  .footer-inner,
  .cookie-consent-inner {
    align-items: stretch;
    flex-direction: column;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  h1 {
    min-height: 18rem;
    font-size: 4.35rem;
  }

  .intro-inner {
    min-height: 620px;
  }

  .policy-card h1 {
    font-size: 3.4rem;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1040px);
  }

  .intro {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .intro-inner {
    min-height: 660px;
  }

  h1 {
    min-height: 15rem;
    font-size: 3.15rem;
  }

  .policy-card h1 {
    font-size: 2.6rem;
  }

  .contact-form {
    padding: 18px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
