@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --navy: #16324f;
  --navy-2: #0d253b;
  --emerald: #1fa06a;
  --emerald-dark: #167b52;
  --ink: #243443;
  --muted: #667482;
  --sand: #f4f2ec;
  --mist: #f3f7f6;
  --line: #dbe3e2;
  --white: #fff;
  --max: 1220px;
  --shadow: 0 24px 70px rgba(13, 37, 59, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font-family: 'Helvetica Neue', 'Archivo', Arial, sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: white; background: var(--emerald); }

.container { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--navy { color: white; background: var(--navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--emerald); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 2px; content: ''; background: currentColor; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.3vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.23rem; letter-spacing: -.018em; }
p { margin: 0 0 1.2rem; }
.section--navy h2, .section--navy h3 { color: white; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.25rem); }
.section--navy .lead { color: #c5d0d8; }
.section-head { max-width: 790px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 13px; padding: 12px 24px; border: 1px solid transparent; border-radius: 3px; color: white; background: var(--emerald); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .25s; }
.btn::after { content: '↗'; font-size: 1rem; }
.btn:hover { background: var(--emerald-dark); box-shadow: 0 15px 36px rgba(31,160,106,.23); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.45); background: transparent; }
.btn--outline:hover { border-color: var(--emerald); background: var(--emerald); }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--emerald); font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link::after { content: '→'; transition: transform .2s; }
.text-link:hover::after { transform: translateX(5px); }

/* Header */
.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(255,255,255,.15); transition: .3s; }
.site-header.scrolled, .site-header.inner { border-color: var(--line); background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(13,37,59,.07); backdrop-filter: blur(14px); }
.nav { display: flex; height: 84px; align-items: center; gap: 28px; }
.brand { position: relative; z-index: 102; width: 240px; }
.brand img { width: 100%; }
.nav-links { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.nav-links a { position: relative; color: white; font-size: .71rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.site-header.scrolled .nav-links a, .site-header.inner .nav-links a { color: var(--navy); }
.nav-links a::after { position: absolute; right: 0; bottom: -11px; left: 0; height: 2px; content: ''; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.lang { position: relative; z-index: 102; display: flex; gap: 2px; margin-left: 4px; padding: 3px; border: 1px solid rgba(255,255,255,.3); }
.site-header.scrolled .lang, .site-header.inner .lang { border-color: var(--line); }
.lang button { width: 36px; height: 30px; padding: 0; border: 0; color: rgba(255,255,255,.75); background: transparent; font-size: .65rem; font-weight: 700; }
.site-header.scrolled .lang button, .site-header.inner .lang button { color: var(--muted); }
.lang button.active { color: white !important; background: var(--navy); }
.menu-toggle { position: relative; z-index: 102; display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: white; transition: .25s; }
.site-header.scrolled .menu-toggle span, .site-header.inner .menu-toggle span { background: var(--navy); }

/* Hero */
.hero { position: relative; display: grid; min-height: 840px; align-items: end; overflow: hidden; color: white; background: var(--navy-2); }
.hero::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(8,28,45,.94) 0%, rgba(12,36,56,.78) 43%, rgba(10,29,45,.08) 74%), url('../images/autana-field-hero.webp') center/cover no-repeat; }
.hero::after { position: absolute; right: 8%; bottom: 0; width: 1px; height: 32%; content: ''; background: linear-gradient(transparent, rgba(255,255,255,.35)); box-shadow: 180px 0 rgba(255,255,255,.12), 360px 0 rgba(255,255,255,.07); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 210px 0 84px; }
.hero h1 { max-width: 880px; color: white; }
.hero .lead { max-width: 730px; margin: 28px 0 38px; color: #e0e7eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; margin-top: 85px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-point { padding: 26px 35px 0 0; }
.hero-point strong { display: block; color: white; font-size: .98rem; }
.hero-point span { color: #acbdc8; font-size: .75rem; }

.page-hero { position: relative; overflow: hidden; padding: 200px 0 96px; background: var(--mist); }
.page-hero::after { position: absolute; top: -70px; right: 4%; width: 300px; height: 300px; content: ''; opacity: .08; background: url('../images/Autana_Energy_Mark.svg') center/contain no-repeat; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1000px; }
.page-hero .lead { margin-top: 26px; }
.breadcrumbs { display: flex; gap: 10px; margin-top: 35px; color: var(--muted); font-size: .72rem; }
.breadcrumbs a { color: var(--emerald); }

/* Components */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; min-height: 330px; padding: 36px; border-top: 3px solid var(--navy); background: white; box-shadow: 0 15px 45px rgba(13,37,59,.07); transition: .3s; }
.card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-6px); }
.card-index { display: block; margin-bottom: 68px; color: var(--emerald); font-size: .68rem; font-weight: 700; letter-spacing: .16em; }
.card h3 { margin-bottom: 15px; }
.card p { margin: 0; color: var(--muted); font-size: .91rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(56px, 8vw, 120px); }
.split-copy p:not(.lead) { color: var(--muted); }
.image-frame { position: relative; }
.image-frame img { width: 100%; min-height: 530px; object-fit: cover; box-shadow: var(--shadow); }
.image-frame::before { position: absolute; z-index: 2; top: -18px; left: -18px; width: 64px; height: 64px; border-top: 4px solid var(--emerald); border-left: 4px solid var(--emerald); content: ''; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.stat { padding: 24px 22px 0 0; }
.stat strong { display: block; color: var(--navy); font-size: 1rem; }
.stat span { color: var(--muted); font-size: .73rem; }

.criteria { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(255,255,255,.16); }
.criterion { min-height: 205px; padding: 28px; border-right: 1px solid rgba(255,255,255,.16); }
.criterion:last-child { border: 0; }
.criterion span { color: var(--emerald); font-size: .68rem; font-weight: 700; }
.criterion h3 { margin-top: 54px; font-size: 1.05rem; }

.phase { display: grid; grid-template-columns: 150px 1fr 1.1fr; gap: 45px; padding: 55px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.phase-number { color: var(--emerald); font-size: 3.3rem; font-weight: 700; line-height: 1; }
.phase h2 { font-size: 2rem; }
.phase p { color: var(--muted); }
.phase-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.phase-tag { padding: 7px 10px; border: 1px solid var(--line); color: var(--navy); font-size: .67rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.region-card { position: relative; min-height: 390px; overflow: hidden; padding: 42px; color: white; background: var(--navy); }
.region-card::before { position: absolute; right: -55px; bottom: -45px; width: 230px; height: 230px; border: 40px solid rgba(31,160,106,.12); border-radius: 50%; content: ''; }
.region-card:nth-child(2) { background: #1d4567; }
.region-card:nth-child(3) { background: #294f61; }
.region-card:nth-child(4) { background: #305b55; }
.region-label { color: #9cdcc1; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.region-card h2 { max-width: 440px; margin: 65px 0 20px; color: white; font-size: 2.1rem; }
.region-card p { position: relative; z-index: 1; max-width: 520px; color: #d2dde1; }

.compliance-list { display: grid; gap: 0; margin-top: 36px; }
.compliance-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.check { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--emerald); font-size: .8rem; }
.compliance-item h3 { margin: 4px 0 6px; font-size: 1rem; }
.compliance-item p { color: var(--muted); font-size: .86rem; }

.nda-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 45px; padding: 52px; color: white; background: var(--navy); }
.nda-band h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.nda-band p { max-width: 760px; margin: 13px 0 0; color: #c3d0d8; }
.cta { position: relative; overflow: hidden; padding: 80px 0; color: white; background: var(--navy-2); }
.cta::after { position: absolute; top: -120px; right: 5%; width: 340px; height: 340px; content: ''; opacity: .12; background: url('../images/Autana_Energy_Mark_Reversed.svg') center/contain no-repeat; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cta h2 { max-width: 720px; color: white; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 100px); }
.contact-aside { padding: 42px; color: white; background: var(--navy); }
.contact-aside h2 { color: white; }
.contact-aside p { margin-top: 22px; color: #c8d3da; }
.contact-aside .mark { width: 95px; margin: 60px 0 25px; opacity: .9; }
.contact-form { padding: 46px; background: var(--mist); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: white; transition: .2s; }
.field input { height: 54px; padding: 0 16px; }
.field textarea { min-height: 165px; padding: 15px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,160,106,.1); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .73rem; }
.form-note a { color: var(--emerald-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-status { display: none; margin-top: 15px; padding: 12px 15px; color: #145d3e; background: #ddf3e9; font-size: .78rem; }

/* Footer */
.site-footer { color: #b9c7cf; background: #091d2f; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 70px; padding: 76px 0 55px; }
.footer-logo { width: 260px; }
.footer-copy { max-width: 480px; margin-top: 22px; font-size: .84rem; }
.footer-title { margin-bottom: 20px; color: white; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; font-size: .8rem; }
.footer-links a:hover { color: var(--emerald); }
.disclaimer { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); color: #8296a3; font-size: .67rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .66rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-legal a:hover { color: var(--emerald); }
.footer-context-link:hover { color: var(--emerald); }
.footer-top-button { padding: 7px 0; border: 0; color: white; background: transparent; font-size: .7rem; font-weight: 700; }
.footer-top-button:hover { color: var(--emerald); }
.footer-top-button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 5px; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 790px); justify-content: space-between; gap: clamp(50px, 8vw, 110px); }
.legal-nav { position: sticky; top: 125px; align-self: start; padding: 28px; border: 1px solid var(--line); background: var(--mist); }
.legal-nav strong { display: block; margin-bottom: 16px; color: var(--navy); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: .8rem; }
.legal-nav a:hover { color: var(--emerald); }
.legal-content { min-width: 0; }
.legal-meta { margin-bottom: 42px; color: var(--muted); font-size: .78rem; }
.legal-section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.legal-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-section h2 { margin-bottom: 20px; font-size: clamp(1.55rem, 3vw, 2rem); }
.legal-section h3 { margin: 28px 0 12px; font-size: 1.05rem; }
.legal-section p, .legal-section li { color: var(--muted); font-size: .92rem; }
.legal-section a { color: var(--emerald-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-list { padding-left: 1.25rem; margin: 14px 0 20px; }
.legal-list li { margin-bottom: 9px; padding-left: 5px; }
.legal-callout { padding: 24px 26px; margin: 24px 0; border-left: 4px solid var(--emerald); background: var(--mist); }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .82rem; }
.legal-table th, .legal-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--navy); background: var(--mist); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-table td { color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { color: var(--navy); font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .section { padding: 88px 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .nav-links { position: fixed; inset: 0; z-index: 101; display: flex; flex-direction: column; align-items: flex-start; min-height: 100vh; min-height: 100dvh; padding: 130px 42px 45px; background: var(--white); visibility: hidden; pointer-events: none; transform: translateY(-15px); transition: transform .25s, visibility 0s linear .25s; }
  .nav-links.open { visibility: visible; pointer-events: auto; transform: none; transition: transform .25s; }
  .menu-open .site-header { border-color: var(--line); background: var(--white); box-shadow: 0 8px 28px rgba(13,37,59,.07); }
  .menu-open .nav-links { background: var(--white); }
  .nav-links a, .site-header:not(.scrolled):not(.inner) .nav-links a { color: var(--navy); font-size: 1.45rem; }
  .menu-toggle { display: block; }
  .menu-open .menu-toggle span { background: var(--navy) !important; }
  .menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .lang { border-color: var(--line) !important; }
  .menu-open .lang button { color: var(--muted) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .criterion { border-bottom: 1px solid rgba(255,255,255,.16); }
  .criterion:nth-child(2n) { border-right: 0; }
  .criterion:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { height: 72px; }
  .brand { width: 185px; }
  .hero { min-height: 820px; }
  .hero::before { background: linear-gradient(90deg, rgba(8,28,45,.95), rgba(12,36,56,.65)), url('../images/autana-field-hero.webp') 67% center/cover no-repeat; }
  .hero-content { padding: 160px 0 62px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-foot { grid-template-columns: 1fr; margin-top: 55px; }
  .hero-point { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .page-hero { padding: 145px 0 68px; }
  .grid-3, .grid-4, .split, .region-grid, .contact-layout { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px; }
  .card-index { margin-bottom: 42px; }
  .image-frame img { min-height: 360px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .criteria { grid-template-columns: 1fr; }
  .criterion, .criterion:nth-child(2n), .criterion:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .phase { grid-template-columns: 62px 1fr; gap: 22px; padding: 42px 0; }
  .phase-number { font-size: 2.4rem; }
  .phase > div:last-child { grid-column: 2; }
  .region-card { min-height: 340px; padding: 30px; }
  .nda-band { grid-template-columns: 1fr; padding: 34px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .contact-form, .contact-aside { padding: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
