/* TAA hub styles. Tokens match taa-brand-tokens.css from the TAA kit.
   Hub only: never load this file inside a client site. */
:root {
  --ink: #0b1512;
  --ink-soft: #17241f;
  --ink-deep: #07100d;
  --paper: #f0eee8;
  --paper-deep: #e3dfd5;
  --signal: #d8ff78;
  --text: #292f2c;
  --muted: #68716c;
  --line: rgba(15, 27, 23, 0.18);
  --line-light: rgba(240, 238, 232, 0.17);
  --shell: 1340px;
  --display: Georgia, "Times New Roman", serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--body); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.sites a:focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #f7f4eb; background: var(--ink); }
.hero-photo {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,15,.97) 0%, rgba(7,17,15,.88) 45%, rgba(7,17,15,.3) 100%),
    linear-gradient(0deg, rgba(7,17,15,.95) 0%, rgba(7,17,15,0) 55%),
    url("img/alaska-hero.jpg") 60% 35% / cover no-repeat;
  filter: saturate(.67) contrast(1.08);
  transform: scale(1.02);
  animation: settle 1.4s cubic-bezier(.22,1,.36,1) both;
}
.grain {
  position: absolute; inset: 0; opacity: .13; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
@keyframes settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }

.nav { position: relative; z-index: 5; height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-light); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; }

.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid currentColor; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button span[aria-hidden] { font-size: 18px; font-weight: 400; }
.button-signal { color: var(--ink); border-color: var(--signal); background: var(--signal); }
.button-signal:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(216,255,120,.16); }
.button-dark { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.button-dark:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(11,21,18,.18); }
.button-outline { color: var(--ink); border-color: rgba(11,21,18,.42); background: transparent; cursor: pointer; }
.button-outline:hover { border-color: var(--ink); background: var(--paper); transform: translate(-2px, -2px); }

.hero-content { position: relative; z-index: 2; padding: 92px 0 104px; }
.eyebrow, .section-label { margin: 0; color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 860px; margin: 24px 0 26px; font-size: clamp(56px, 7vw, 100px); font-weight: 800; line-height: .91; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero-lede { max-width: 620px; margin: 0; color: rgba(247,244,235,.78); font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.text-link { position: relative; display: inline-block; padding: 8px 0; color: inherit; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.text-link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transition: right 180ms ease; }
.text-link:hover::after { right: 36%; }

/* Sites */
.sites { padding: 110px 0 120px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading .section-label { margin-bottom: 18px; color: var(--muted); }
.section-heading h2, .cta h2 { margin: 0; font-family: var(--display); font-size: clamp(44px, 5.6vw, 80px); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.section-heading > p { margin: 0 0 5px; padding-left: 22px; color: var(--muted); border-left: 2px solid #91a079; font-size: 14px; line-height: 1.7; }

.site-list { display: grid; gap: 28px; }
.site-msg { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-card { display: grid; grid-template-columns: 1.35fr 1fr; border: 1px solid var(--line); background: #f6f4ef; animation: rise 600ms cubic-bezier(.22,1,.36,1) both; }
.site-card:nth-child(2) { animation-delay: 80ms; }
.site-card:nth-child(3) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.site-shot { display: block; overflow: hidden; border-right: 1px solid var(--line); background: var(--paper-deep); }
.site-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; aspect-ratio: 3 / 2; transition: transform 240ms ease; }
.site-card:hover .site-shot img { transform: scale(1.02); }
.site-body { padding: 32px 34px 34px; display: flex; flex-direction: column; }
.site-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.site-num { color: #7d944d; font-family: var(--display); font-size: 24px; }
.site-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(16,24,20,.28); color: #48534c; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-status.is-live { color: var(--ink); border-color: var(--ink); background: var(--signal); }
.site-status.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.site-title { display: flex; align-items: center; gap: 14px; margin: 54px 0 16px; }
.site-logo { width: 44px; height: 44px; flex: none; }
.site-title h3 { margin: 0; font-family: var(--display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.site-body > p { margin: 0 0 30px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.site-actions { margin-top: auto; display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.site-actions .button { align-self: flex-start; }

/* Owner file request */
.request-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--text); border: 1px solid rgba(216,255,120,.5); background: #f6f4ef; box-shadow: 0 28px 90px rgba(0,0,0,.46); }
.request-dialog::backdrop { background: rgba(7,16,13,.82); backdrop-filter: blur(4px); }
.request-form { padding: 38px; }
.request-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.request-head .section-label { margin-bottom: 14px; color: #617044; }
.request-head h2 { max-width: 520px; margin: 0; font-family: var(--display); font-size: clamp(36px, 6vw, 56px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.dialog-close { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: 28px; line-height: 1; }
.dialog-close:hover { background: var(--paper-deep); }
.request-intro { margin: 24px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.form-grid { display: grid; gap: 18px; }
.form-grid label { display: grid; gap: 8px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-grid input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid rgba(11,21,18,.28); border-radius: 0; color: var(--ink); background: #fff; font: 16px/1.3 var(--body); }
.form-grid input:focus { outline: 2px solid #7f964b; outline-offset: 2px; }
.request-actions { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.request-actions p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* CTA + footer */
.section-dark { padding: 120px 0; color: #f3f1e9; background: var(--ink); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; }
.cta h2 { margin-top: 24px; }
.cta-copy { padding-left: 24px; border-left: 1px solid var(--line-light); }
.cta-copy p { max-width: 510px; margin: 0 0 27px; color: rgba(243,241,233,.62); font-size: 15px; line-height: 1.7; }

.footer { color: rgba(243,241,233,.52); background: var(--ink-deep); }
.footer-grid { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.footer .brand { color: #f3f1e9; }
.footer .brand img { width: 34px; height: 34px; }
.footer p { margin: 0; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { padding: 8px 0; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: var(--signal); }

@media (max-width: 1000px) {
  .section-heading, .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-card { grid-template-columns: 1fr; }
  .site-shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-title { margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .nav { height: 80px; }
  .brand { font-size: 11px; gap: 11px; }
  .brand img { width: 34px; height: 34px; }
  .nav-cta { min-height: 42px; padding: 0 14px; gap: 10px; }
  .hero-photo { background:
    linear-gradient(90deg, rgba(7,17,15,.95), rgba(7,17,15,.6)),
    linear-gradient(0deg, rgba(7,17,15,.97), rgba(7,17,15,.1)),
    url("img/alaska-hero.jpg") 55% center / cover no-repeat; }
  .hero-content { padding: 64px 0 72px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sites, .section-dark { padding: 76px 0; }
  .section-heading h2, .cta h2 { font-size: 44px; }
  .section-heading > p { padding-left: 16px; }
  .site-body { padding: 24px 20px 26px; }
  .site-actions, .site-actions .button, .cta-copy .button { width: 100%; }
  .cta-copy { padding: 0; border-left: 0; }
  .cta-copy .button { padding-inline: 12px; font-size: 10px; }
  .request-form { padding: 26px 20px; }
  .request-actions { grid-template-columns: 1fr; }
  .request-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .nav-cta { display: none; }
}

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