:root {
  --color-page: #f4f1e8;
  --color-surface: #d8dce0;
  --color-text: #111315;
  --color-accent: #413226;
  --color-accent-hover: var(--color-text);
  --color-heading: var(--color-accent);
  --color-rule: var(--color-accent);
  --color-footer: #7e858b;
  --color-footer-text: var(--color-page);
  --color-focus: var(--color-accent);
  --font-sans: "Geologica", Arial, sans-serif;
  --container: 1140px;
  --gutter: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --rule-width: 2px;
  --footer-rule-width: 6px;
  --radius-card: 16px;
  --radius-button: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote, figcaption { overflow-wrap: anywhere; }
h3 { color: var(--color-text); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.container { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { z-index: 10; top: 16px; left: 16px; padding: 8px 16px; color: var(--color-text); background: var(--color-page); border-radius: var(--radius-button); }

.site-header { position: relative; z-index: 2; min-height: 64px; background: var(--color-page); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--space-5); }
.site-nav { min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 32px; padding: 0; margin: 0; color: var(--color-text); list-style: none; font-size: 17px; font-weight: 600; line-height: 1.2; }
.nav-list a { text-decoration: none; }
.nav-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-toggle, .menu-button { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 24px;
  color: var(--color-page); background: var(--color-accent); border-radius: var(--radius-button); font-size: 18px; font-weight: 600;
  line-height: 1.2; text-decoration: none; transition: background-color 180ms ease-out, transform 180ms ease-out;
}
.button:hover { background: var(--color-accent-hover); }
.button:active { transform: translateY(1px); }
.hero { margin: 0; background: var(--color-surface); }
.hero img { width: 100%; height: auto; aspect-ratio: 2560 / 1319; object-fit: cover; }
.page-content { padding-top: 78px; padding-bottom: 72px; }
.card { padding: var(--space-7); background: var(--color-surface); border-radius: var(--radius-card); }
.card h1, .card h2, .partners-section h2 { margin: 0; color: var(--color-heading); font-size: 48px; font-weight: 700; line-height: 1.15; }
.card p, .partners-section p { margin: 0; }
.intro-card { min-height: 588px; padding-top: 32px; }
.intro-card h1 { max-width: none; font-size: 36px; }
.intro-copy { max-width: 100%; margin-top: var(--space-5); font-size: 24px; line-height: 1.45; }
.intro-copy p + p { margin-top: var(--space-3); }
.card .intro-lead { max-width: none; padding-top: var(--space-6); padding-bottom: var(--space-5); margin-top: 30px; border-bottom: var(--rule-width) solid var(--color-rule); font-size: 32px; font-weight: 500; line-height: 1.4; }
.hours-statement { padding: 80px 0; }
.hours-statement img { width: 100%; height: auto; }
.video-section { margin-bottom: 80px; }
.video-embed { width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: var(--color-text); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.scenarios-card { display: flex; flex-direction: column; padding-bottom: var(--space-6); margin-bottom: 80px; }
.card-heading p { max-width: 1000px; margin-top: var(--space-6); font-size: 24px; line-height: 1.45; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); padding: 40px 0 36px; border-bottom: var(--rule-width) solid var(--color-rule); }
.scenario { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scenario h3 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; }
.scenario img { width: 108px; height: 108px; margin: var(--space-4) auto var(--space-3); object-fit: contain; }
.scenario p { max-width: 270px; font-size: 19px; line-height: 1.4; }
.quote-block { display: grid; grid-template-columns: minmax(0, 1fr) 361px; gap: 44px; padding-top: 76px; }
.quote-content { position: relative; padding-left: 76px; }
.quote-mark { position: absolute; top: 0; left: 0; width: 61px; height: 46px; }
blockquote { max-width: 650px; padding: 0; margin: 0; font-size: 32px; font-weight: 500; line-height: 1.25; }
.quote-person { margin: 0; }
.quote-author { max-width: 361px; margin-top: var(--space-3); font-size: 15px; line-height: 1.35; }
.quote-author strong { font-weight: 600; }
.quote-portrait { width: 100%; aspect-ratio: 361 / 395; object-fit: cover; }
.quote-block--reverse { grid-template-columns: 361px minmax(0, 1fr); align-items: start; padding-top: 47px; }
.quote-block--reverse .quote-person { grid-column: 1; grid-row: 1; }
.quote-block--reverse .quote-content { grid-column: 2; grid-row: 1; }
.quote-block--reverse .quote-portrait { aspect-ratio: 362 / 304; }
.quote-block--reverse .quote-content { margin-top: 4px; }
.quote-block--final { padding-top: 47px; padding-bottom: var(--space-7); border-bottom: var(--rule-width) solid var(--color-rule); }
.rules-card { margin-bottom: 80px; }
.rules-copy { padding-bottom: var(--space-5); margin-top: var(--space-6); border-bottom: var(--rule-width) solid var(--color-rule); font-size: 24px; line-height: 1.35; }
.rules-copy p + p { margin-top: var(--space-3); }
.rules-copy ul { margin: var(--space-3) 0 var(--space-4); padding-left: 40px; }
.rules-copy h3 { margin: var(--space-3) 0 var(--space-2); font-size: 36px; line-height: 1.2; }
.media-card { display: flex; min-height: 1188px; flex-direction: column; margin-bottom: 80px; }
.media-photo { width: 100%; height: auto; aspect-ratio: 1060 / 666; margin-top: var(--space-7); object-fit: cover; }
.media-copy { max-width: 1020px; padding-top: var(--space-6); margin-top: auto; font-size: 24px; line-height: 1.45; }
.media-copy p + p { margin-top: var(--space-4); }
.steps-card { display: flex; min-height: 610px; flex-direction: column; margin-bottom: 80px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-7); align-items: start; flex: 1; padding: 40px 0 36px; margin: 0; list-style: none; border-bottom: var(--rule-width) solid var(--color-rule); }
.step { text-align: center; }
.step-number { display: block; color: var(--color-footer); font-size: 77px; font-weight: 600; line-height: 1; }
.step h3 { margin: 16px 0 20px; font-size: 29px; font-weight: 700; line-height: 1.2; }
.step p { max-width: 220px; margin-inline: auto; font-size: 19px; line-height: 1.4; }
.partners-section { min-height: 229px; padding-top: 0; margin-bottom: 0; }
.partners-section h2 { margin-bottom: 28px; }
.partners-list { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 0; margin: 0; list-style: none; }
.partners-list li, .partners-list a { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.partners-list img { width: auto; max-width: 100%; height: auto; max-height: 64px; object-fit: contain; }

.site-footer { position: relative; min-height: 564px; overflow: hidden; color: var(--color-footer-text); background: var(--color-footer); }
.footer-inner { position: relative; min-height: 564px; padding-top: 72px; padding-bottom: 36px; }
.footer-links { max-width: 300px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-column a { color: var(--color-footer-text); font-size: 19px; line-height: 1.35; text-decoration: none; }
.footer-column a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-social { position: absolute; top: 72px; right: -6px; display: grid; grid-template-columns: repeat(3, 60px); column-gap: 43px; row-gap: 28px; align-items: center; justify-items: center; }
.footer-social a { display: grid; place-items: center; }
.footer-social a:not(.footer-logo), .footer-social a:not(.footer-logo) img { width: 60px; height: 60px; }
.footer-logo { grid-column: 1 / -1; justify-self: center; width: 217px; height: auto; margin-top: 4px; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-bottom { position: absolute; top: 399px; right: -3px; left: -5px; display: grid; grid-template-columns: 368px 121px 304px 87px 231px; padding-top: 29px; padding-left: 5px; border-top: var(--footer-rule-width) solid var(--color-footer-text); font-size: 14px; font-weight: 400; line-height: 1.25; }
.footer-bottom p:nth-child(2) { grid-column: 5; }
.footer-bottom p { margin: 0; white-space: nowrap; }
.footer-cat { position: absolute; bottom: 159px; left: -5px; width: 184px; height: auto; }

@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .nav-list { gap: 22px; font-size: 16px; }
  .card h1, .card h2, .partners-section h2 { font-size: 45px; }
  .card { padding: var(--space-6); }
  .intro-card { min-height: auto; }
  .scenarios-card, .media-card, .steps-card, .partners-section { min-height: 0; }
  .quote-block { grid-template-columns: minmax(0, 1fr) 250px; }
  .quote-block--reverse { grid-template-columns: 250px minmax(0, 1fr); }
  .quote-block { padding-top: var(--space-7); }
  blockquote { font-size: 22px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { top: auto; right: 0; bottom: 30px; left: 0; grid-template-columns: 1.3fr 1.2fr; gap: var(--space-7); padding-top: 16px; padding-left: 0; }
  .footer-bottom p:nth-child(2) { grid-column: auto; }
  .footer-bottom p { white-space: normal; }
  .footer-cat { bottom: 220px; left: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { min-width: 320px; font-size: 16px; }
  .site-header, .header-inner { min-height: 64px; }
  .header-inner { gap: var(--space-3); }
  .site-nav { flex: 1; }
  .menu-toggle { position: absolute; display: block; width: 1px; height: 1px; opacity: 0; }
  .menu-button { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
  .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--color-focus); outline-offset: 3px; }
  .menu-icon { display: grid; gap: 4px; width: 20px; }
  .menu-icon i { display: block; height: 2px; background: currentColor; }
  .nav-list { position: absolute; top: 64px; right: 16px; left: 16px; display: none; padding: 8px 16px 16px; background: var(--color-page); border-top: 1px solid var(--color-surface); }
  .nav-list li + li { margin-top: 4px; }
  .nav-list a { display: block; min-height: 44px; padding: 12px 0; }
  .menu-toggle:checked ~ .nav-list { display: block; }
  .button--header { min-height: 40px; padding: 8px 16px; font-size: 12px; }
  .hero img { aspect-ratio: 3 / 2; object-position: center; }
  .page-content { padding-top: 48px; padding-bottom: 48px; }
  .card { padding: 20px; border-radius: 12px; }
  .card h1, .card h2, .partners-section h2, .intro-card h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
  .intro-card h1 br { display: none; }
  .intro-copy, .media-copy, .card-heading p { margin-top: 24px; font-size: 16px; line-height: 1.45; }
  .intro-copy p + p, .media-copy p + p { margin-top: 12px; }
  .card .intro-lead { padding-top: 20px; padding-bottom: 16px; margin-top: 24px; font-size: 20px; }
  .hours-statement { padding: 36px 0 40px; }
  .video-section, .scenarios-card, .media-card, .steps-card { margin-bottom: 48px; }
  .scenarios-card, .media-card, .steps-card { display: block; }
  .media-copy { margin-top: 0; }
  .scenario-grid, .steps-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 24px; }
  .scenario { display: grid; grid-template-columns: minmax(0, 1fr) 76px; grid-template-areas: "title icon" "copy icon"; column-gap: 16px; align-items: center; text-align: left; }
  .scenario h3 { grid-area: title; font-size: 20px; }
  .scenario img { grid-area: icon; width: 76px; height: 76px; margin: 0 auto; }
  .scenario p { grid-area: copy; max-width: none; margin-top: 8px; font-size: 13px; line-height: 1.4; }
  .quote-block { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .quote-block--reverse { grid-template-columns: 1fr; }
  .quote-block--reverse .quote-content, .quote-block--reverse .quote-person { grid-column: 1; grid-row: auto; }
  .quote-content { padding-left: 0; padding-top: 52px; }
  .quote-mark { top: 0; left: 0; }
  blockquote { font-size: 20px; }
  .quote-person .quote-author { margin-top: 20px; font-size: 12px; }
  .quote-person { width: min(100%, 230px); justify-self: start; }
  .quote-block--reverse .quote-person { justify-self: start; }
  .quote-portrait { width: 100%; }
  .media-photo { margin-top: 24px; }
  .rules-copy { margin-top: 24px; font-size: 16px; }
  .rules-copy ul { padding-left: 24px; }
  .rules-copy h3 { font-size: 22px; }
  .steps-grid { gap: 28px; }
  .step-number { font-size: 52px; }
  .step h3 { margin-block: 10px 12px; font-size: 20px; }
  .step p { max-width: 280px; font-size: 13px; }
  .partners-section { margin-bottom: 16px; }
  .partners-section h2 { margin-bottom: 20px; }
  .partners-list { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
  .partners-list li { flex: 1 1 120px; min-width: 120px; }
  .partners-list img { max-width: 150px; max-height: 48px; }
  .site-footer, .footer-inner { min-height: 0; }
  .footer-inner { display: flex; flex-direction: column; padding-top: 40px; padding-bottom: 28px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 16px; max-width: none; padding-right: 8px; }
  .footer-column { gap: 8px; }
  .footer-column a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .footer-social { position: static; order: 2; width: 100%; margin-top: 30px; grid-template-columns: repeat(3, 44px) minmax(0, 1fr); gap: 8px; }
  .footer-social a:not(.footer-logo), .footer-social a:not(.footer-logo) img { width: 44px; height: 44px; }
  .footer-logo { width: 190px; }
  .footer-cat { position: static; order: 3; align-self: flex-start; width: 140px; margin-top: 62px; }
  .footer-bottom { position: static; order: 4; grid-template-columns: 1fr; gap: 12px; padding-top: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
