/* Evera's Figtree font and CSS-only design tokens. */
@font-face {
  font-family: 'Figtree';
  src: url('/assets/figtree-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --surface: #fbfaf6;
  --paper-deep: #e8e9df;
  --ink: #202b24;
  --muted: #667168;
  --green: #345441;
  --green-deep: #243b2e;
  --sage: #dfe4d7;
  --moss: #a8b596;
  --rule: #d5dbd2;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Noto Sans SC', 'Segoe UI', Arial, sans-serif;
  --content: 1280px;
  --gutter: clamp(24px, 6vw, 88px);
  --section-space: clamp(76px, 9vw, 128px);
  --header-height: 96px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 110; top: 12px; left: 16px; max-width: calc(100% - 32px); padding: 12px 16px; transform: translateY(-150%); color: var(--ink); background: var(--surface); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; display: flex; min-height: var(--header-height); align-items: center; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); background: var(--paper); }
.brand { display: block; width: 190px; flex: 0 0 auto; }
.brand img, .footer-brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2vw, 32px); margin-left: auto; }
.desktop-nav a, .header-link { font-size: 16px; }
.desktop-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); white-space: nowrap; transition: color 140ms ease-out; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--green); }
.desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-underline-offset: 7px; }
.header-link { display: inline-flex; min-height: 42px; align-items: center; gap: 10px; border-bottom: 1px solid var(--green); white-space: nowrap; }
.header-link span { font-size: 16px; }
.menu-toggle, .mobile-nav { display: none; }

.feature-film { position: relative; height: clamp(360px, 46vw, 640px); margin: 0; overflow: hidden; background: #302f26; }
.feature-film-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

.hero { display: grid; max-width: 1440px; min-height: 620px; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(44px, 7vw, 100px); margin: 0 auto; padding: 54px var(--gutter) 68px; }
.hero-copy { max-width: 600px; padding: 26px 0; }
.eyebrow { margin: 0; color: var(--green); font-size: 14px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-mark { display: inline-block; width: 18px; height: 1px; margin: 0 9px 3px 0; background: var(--moss); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 600px; margin: 27px 0 20px; color: var(--green-deep); font-size: clamp(54px, 6.2vw, 82px); font-weight: 600; letter-spacing: -.048em; line-height: .98; }
h1 em, h2 em { font-family: inherit; font-style: normal; font-weight: inherit; }
.hero-intro { max-width: 470px; margin-bottom: 27px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 25px; }
.button { display: inline-flex; max-width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 26px; padding: 12px 17px; border: 1px solid transparent; border-radius: var(--radius); font-size: 16px; line-height: 1.5; transition: transform 140ms ease-out, color 140ms ease-out, background-color 140ms ease-out; touch-action: manipulation; }
.button:active { transform: scale(.97); }
.button-dark { color: var(--surface); background: var(--green-deep); }
.button-dark:hover { background: var(--green); }
.button-light { color: var(--green-deep); background: var(--surface); }
.button-light:hover { background: var(--sage); }
.button span { font-size: 16px; }
.text-link { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; border-bottom: 1px solid var(--moss); color: var(--green-deep); font-size: 16px; }
.text-link span { font-size: 16px; }
.hero-note { max-width: 440px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-visual { align-self: stretch; min-width: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-visual img { width: 100%; height: min(43vw, 540px); min-height: 390px; object-fit: cover; object-position: 50% 56%; }

.page-intro { display: grid; max-width: 1440px; min-height: 570px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(44px, 6vw, 96px); margin: 0 auto; padding: clamp(62px, 7vw, 100px) var(--gutter); }
.page-intro-copy { min-width: 0; max-width: 610px; }
.page-title { margin: 25px 0 23px; color: var(--green-deep); font-size: clamp(48px, 6vw, 78px); font-weight: 600; letter-spacing: -.048em; line-height: 1.02; }
.page-lede { max-width: 475px; margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.page-intro-media { align-self: stretch; display: flex; min-width: 0; flex-direction: column; justify-content: center; margin: 0; }
.page-intro-media img { width: 100%; height: clamp(360px, 34vw, 490px); object-fit: cover; }
.page-intro-media figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 13px; color: var(--muted); font-size: 14px; letter-spacing: .08em; line-height: 1.5; }
.page-jump-links { display: flex; max-width: var(--content); flex-wrap: wrap; gap: 12px 32px; margin: 0 auto; padding: 0 var(--gutter) 45px; }
.page-intro.page-intro-compact { display: block; min-height: 0; padding-top: 54px; padding-bottom: 48px; }
.page-intro-compact .page-intro-copy { max-width: 860px; }
.page-intro-compact .page-lede { max-width: 640px; }
.enquiry.contact-enquiry h2 { font-size: clamp(36px, 4vw, 52px); }

.section { max-width: var(--content); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.section-heading { max-width: 500px; }
h2 { margin: 20px 0 0; color: var(--green-deep); font-size: clamp(38px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
.section-lede { max-width: 390px; margin: 21px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.application-section { padding: var(--section-space) var(--gutter); background: var(--sage); }
.application-heading, .application-list { max-width: var(--content); margin-right: auto; margin-left: auto; }
.application-heading { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 40px; margin-bottom: 52px; }
.application-heading h2 { margin: 0; }
.application-heading .eyebrow { align-self: start; }
.application-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(36, 59, 46, .22); }
.application-row { min-height: 208px; padding: 25px clamp(18px, 3vw, 42px) 10px 0; }
.application-row + .application-row { padding-left: clamp(18px, 3vw, 42px); border-left: 1px solid rgba(36, 59, 46, .22); }
.row-number { display: block; margin-bottom: 21px; color: var(--green); font-size: 14px; letter-spacing: .1em; }
.application-row h3, .support-row h3, .process-list h3 { margin: 0 0 9px; color: var(--green-deep); font-size: 20px; font-weight: 500; line-height: 1.4; }
.application-row p, .support-row p, .process-list p { max-width: 330px; margin: 0; color: #536057; font-size: 18px; line-height: 1.75; }

.partnership { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(50px, 9vw, 132px); }
.partnership-list { border-top: 1px solid var(--rule); }
.partnership-row { display: grid; min-height: 148px; grid-template-columns: 26px minmax(145px, .85fr) 1.15fr; align-items: start; gap: 17px; padding: 25px 0; border-bottom: 1px solid var(--rule); }
.partnership-row .row-number { margin: 3px 0 0; }
.row-title h3 { margin: 0 0 6px; color: var(--green-deep); font-size: 20px; font-weight: 500; line-height: 1.4; }
.row-title p, .row-detail { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.row-detail { max-width: 330px; }
.terms-note { max-width: 480px; margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.support { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(52px, 9vw, 128px); padding: var(--section-space) var(--gutter); background: var(--surface); }
.support-intro { max-width: 460px; }
.support-intro > p:not(.eyebrow) { max-width: 370px; margin: 21px 0 17px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.support-list { align-self: center; border-top: 1px solid var(--rule); }
.support-row { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--rule); }
.support-row .row-number { margin: 3px 0 0; }
.support-row p { max-width: 430px; }
.story-section { background: var(--paper-deep); }
.story-copy { max-width: 620px; align-self: center; }
.story-copy p { margin: 0 0 22px; color: var(--ink); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.8; }

.process { display: grid; grid-template-columns: minmax(250px, .72fr) 1.28fr; gap: clamp(50px, 9vw, 132px); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.process-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.process-list .row-number { margin: 3px 0 0; }

.enquiry { padding: 32px var(--gutter) 76px; color: var(--paper); background: var(--green-deep); }
.enquiry-top { display: flex; max-width: var(--content); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding-bottom: 22px; border-bottom: 1px solid rgba(245, 244, 237, .25); }
.enquiry-top .eyebrow { color: #d9e0d1; }
.enquiry-top > span { color: rgba(245, 244, 237, .68); font-size: 14px; letter-spacing: .08em; }
.enquiry-main { display: grid; max-width: var(--content); grid-template-columns: 1.1fr .9fr; align-items: end; gap: 50px; margin: 0 auto; padding: 58px 0 44px; }
.enquiry h2 { margin: 0; color: var(--paper); font-size: clamp(48px, 6vw, 76px); }
.enquiry-note { max-width: 420px; }
.enquiry-note p { margin-bottom: 13px; color: rgba(245, 244, 237, .8); font-size: 18px; line-height: 1.8; }
.enquiry-note .setup-note { margin: 0; color: #d4ddcf; font-size: 16px; }
.enquiry .text-link { color: var(--paper); border-bottom-color: var(--moss); }
.registration-form { max-width: var(--content); margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 30px; }
.form-field { display: grid; gap: 9px; color: var(--paper); font-size: 16px; }
.form-field > span { letter-spacing: .02em; }
.form-field i, .form-consent i { color: #d2ddaf; font-style: normal; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid rgba(245, 244, 237, .38); border-radius: var(--radius); color: var(--paper); background: rgba(245, 244, 237, .06); font-family: inherit; font-size: 16px; }
.form-field select { color-scheme: dark; }
.form-field select option { color: var(--ink); background: var(--surface); }
.form-field textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245, 244, 237, .55); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline-color: #d2ddaf; }
.form-field-wide { grid-column: 1 / -1; }
.form-consent { margin-top: 26px; }
.form-consent label { display: flex; align-items: flex-start; gap: 11px; color: var(--paper); font-size: 16px; line-height: 1.7; }
.form-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #d2ddaf; }
.form-consent p { margin: 7px 0 0 29px; color: rgba(245, 244, 237, .68); font-size: 16px; line-height: 1.65; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 23px; }
.form-actions button { cursor: pointer; }
.form-actions .button-light { color: var(--green-deep); }
.form-actions button:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 1.5em; margin: 0; color: #e0e8c0; font-size: 16px; line-height: 1.6; }
.form-status[data-state="error"] { color: #ffd4c8; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); align-items: start; gap: clamp(56px, 8vw, 140px); padding: 58px var(--gutter) 52px; }
.footer-identity { display: flex; align-items: flex-start; flex-direction: column; }
.footer-brand { width: 133px; }
.footer-statement { max-width: 420px; margin: 14px 0 20px; color: var(--muted); font-size: 10.667px; line-height: 1.55; }
.site-footer .social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer .social-link { display: inline-flex; width: 38px; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--green-deep); transition: color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out; }
.site-footer .social-link:hover { border-color: var(--green-deep); color: var(--paper); background: var(--green-deep); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }
.footer-meta { display: flex; align-self: stretch; align-items: flex-end; justify-content: flex-end; flex-direction: column; text-align: right; }
.footer-meta small { color: var(--muted); font-size: 10.667px; line-height: 1.55; letter-spacing: .01em; }

@media (max-width: 1100px) {
  :root { --header-height: 80px; }
  .site-header { justify-content: space-between; gap: 20px; }
  .brand { width: 160px; }
  .desktop-nav, .header-link { display: none; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex: 0 0 auto; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
  .menu-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform 140ms ease-out; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav:not([hidden]) { position: absolute; top: 100%; right: 0; left: 0; display: flex; max-height: calc(100dvh - var(--header-height)); flex-direction: column; padding: 10px var(--gutter) 17px; overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .mobile-nav a { min-width: 0; min-height: 48px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
  .mobile-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 960px) {
  .page-intro { gap: 32px; }
  .hero { min-height: 550px; gap: 42px; }
  .hero-visual img { height: 43vw; min-height: 360px; }
  .partnership, .support, .process { gap: 48px; }
  .partnership-row { grid-template-columns: 26px minmax(0, 1fr); gap: 8px 12px; }
  .partnership-row .row-number { grid-row: 1 / span 2; }
  .partnership-row .row-detail { grid-column: 2; }
}

@media (max-width: 740px) {
  .site-header { padding: 0 22px; }
  .mobile-nav:not([hidden]) { padding-right: 22px; padding-left: 22px; }
  .feature-film { height: auto; aspect-ratio: auto; margin: 0; padding: 0 22px; background: linear-gradient(to bottom, var(--sage), var(--paper-deep)); }
  .feature-film-image { height: auto; aspect-ratio: 1.16 / 1; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 46px 22px 34px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin: 22px 0 16px; font-size: clamp(49px, 13vw, 65px); }
  .hero-intro { max-width: 470px; margin-bottom: 21px; font-size: 16px; line-height: 1.75; }
  .hero-actions { align-items: flex-start; gap: 12px 18px; }
  .hero-note { margin-top: 13px; }
  .hero-visual img { height: auto; min-height: 0; aspect-ratio: 1.16 / 1; }
  .page-intro { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 32px; padding: 54px 22px 64px; }
  .page-title { margin: 21px 0 18px; font-size: clamp(46px, 12vw, 62px); }
  .page-lede { margin-bottom: 23px; font-size: 16px; line-height: 1.75; }
  .page-intro-media img { height: auto; aspect-ratio: 1.16 / 1; }
  .page-jump-links { gap: 4px 22px; padding: 0 22px 35px; }
  .page-jump-links .text-link { min-height: 42px; }
  .section { padding: 76px 22px; }
  .application-section { padding: 74px 22px 70px; }
  .application-heading { display: block; margin-bottom: 34px; }
  .application-heading h2 { margin-top: 18px; font-size: clamp(38px, 10vw, 50px); }
  .application-list { display: block; }
  .application-row, .application-row + .application-row { min-height: 0; padding: 19px 0 21px; border-left: 0; border-bottom: 1px solid rgba(36, 59, 46, .22); }
  .application-row .row-number { margin-bottom: 11px; }
  .application-row h3, .row-title h3 { font-size: 18px; }
  h2 { margin-top: 18px; font-size: clamp(38px, 10vw, 52px); }
  .section-lede, .application-row p, .row-title p, .row-detail, .support-intro > p:not(.eyebrow), .story-copy p { font-size: 16px; }
  .partnership { display: block; }
  .partnership .section-heading { margin-bottom: 36px; }
  .partnership-row { min-height: 0; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 12px; padding: 20px 0; }
  .partnership-row .row-number { grid-row: 1 / span 2; }
  .partnership-row .row-title { grid-column: 2; }
  .partnership-row .row-detail { grid-column: 2; max-width: none; padding-top: 4px; }
  .support { display: block; padding: 76px 22px; }
  .support-intro { margin-bottom: 35px; }
  .support-row { grid-template-columns: 29px 1fr; gap: 10px; padding: 17px 0; }
  .support-row h3, .process-list h3 { font-size: 18px; }
  .support-row p, .process-list p { font-size: 16px; }
  .process { display: block; }
  .process-heading { margin-bottom: 32px; }
  .process-list li { grid-template-columns: 29px 1fr; gap: 10px; }
  .enquiry { padding: 24px 22px 52px; }
  .enquiry-top { flex-wrap: wrap; align-items: flex-start; padding-bottom: 17px; }
  .enquiry-top > span { padding-top: 2px; }
  .enquiry-main { display: block; padding: 39px 0 28px; }
  .enquiry h2 { margin-bottom: 19px; font-size: clamp(46px, 12vw, 62px); }
  .enquiry-note p { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .form-field-wide { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer { grid-template-columns: 1fr; gap: 34px; padding: 38px 22px 28px; }
  .footer-identity { gap: 0; }
  .footer-brand { width: 119px; }
  .site-footer .social-links { gap: 9px; }
  .footer-statement { margin: 12px 0 18px; }
  .footer-meta { align-items: flex-end; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--rule); text-align: right; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 47px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .enquiry h2 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
