:root {
  --bg: #f6f1e8;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #fffdf9;
  --line: rgba(120, 102, 74, 0.16);
  --text: #2b241d;
  --muted: #675a4b;
  --accent: #a89a74;
  --accent-deep: #8f7e55;
  --shadow: 0 24px 70px rgba(73, 57, 28, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f3ea 0%, #f3ede3 100%);
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(215, 201, 171, 0.25), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, #f5efe6 50%, #f2ebdf 100%);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(250, 245, 236, 0.84);
  border-bottom: 1px solid rgba(120, 102, 74, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  width: 140px;
  height: auto;
}

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

.nav-link,
.nav-link-button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-link::after,
.nav-link-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link-button:hover,
.nav-link-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link-button:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: 14px;
  display: grid;
  gap: 6px;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dropdown-link:hover {
  background: rgba(168, 154, 116, 0.12);
  color: var(--text);
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  box-shadow: 0 14px 36px rgba(143, 126, 85, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(143, 126, 85, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.header-cta {
  margin-left: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 38px;
  padding: 48px 0 24px;
  align-items: center;
}

.hero-copy,
.hero-media,
.info-card,
.media-card,
.cta-panel,
.contact-panel,
.form-panel,
.legal-card,
.cookie-modal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
}

.hero-media {
  overflow: hidden;
  border-radius: 36px;
}

.hero-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

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

h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.9rem, 4vw, 4.7rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.hero-lead,
.section-copy,
.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-stats {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 28px;
  align-items: stretch;
}

.split-copy {
  padding: 28px 0;
}

.feature-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 5px rgba(168, 154, 116, 0.12);
}

.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.card-grid,
.glossary-grid,
.leadership-grid,
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.leadership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.glossary-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 241, 0.9));
  box-shadow: var(--shadow);
}

.process-index,
.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(168, 154, 116, 0.16);
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: 30px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
}

.contact-panel,
.form-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.team-strip {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.team-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 102, 74, 0.24);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 154, 116, 0.14);
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.form-note {
  min-height: 24px;
  color: var(--accent-deep);
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 26px;
  border-radius: 24px;
}

.site-footer {
  padding: 24px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.8fr 0.75fr;
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.footer-brand img {
  width: 150px;
  margin-bottom: 12px;
}

.footer-legal {
  font-weight: 700;
}

.footer-links a,
.footer-cookie-button {
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover,
.footer-cookie-button:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-cookie-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
}

.language-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(168, 154, 116, 0.1);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.language-switcher button.is-active {
  background: white;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(73, 57, 28, 0.08);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(520px, calc(100vw - 24px));
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(43, 36, 29, 0.28);
}

.cookie-modal-card {
  position: relative;
  width: min(680px, 100%);
  padding: 30px;
  border-radius: 28px;
}

.cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: rgba(168, 154, 116, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

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

.cookie-state {
  color: var(--accent-deep);
  font-weight: 600;
}

.toggle-row input {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .split-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .glossary-grid,
  .process-list,
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 10px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-link,
  .nav-link-button,
  .header-cta {
    width: 100%;
    text-align: left;
  }

  .hero-copy,
  .contact-panel,
  .form-panel,
  .cookie-modal-card {
    padding: 24px;
  }

  .hero-media img {
    min-height: 360px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .card-grid,
  .glossary-grid,
  .leadership-grid,
  .process-list,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
  }
}
