/* =====================================================
   MEET EVERETT: MAKE IT HERE
   Brand palette (sampled from MeetEverett_VisualIdentity_R1):
     Shipyard Steel  #00374B
     Signal Flare    #F04823
     Puget Current   #00ADEF
     Milltown Mist   #F4F6F3
   ===================================================== */

:root {
  --steel: #00374B;
  --steel-deep: #002535;
  --flare: #F04823;
  --flare-dark: #D23A17;
  --current: #00ADEF;
  --mist: #F4F6F3;
  --ink: #1B2A31;
  --white: #FFFFFF;

  --radius-bubble: 14px;
  --wrap: 1120px;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
}

img, video, iframe { max-width: 100%; display: block; }
a { color: var(--flare); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--current);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Grain texture (weathered, not glossy) ---------- */
.hero::after, .getting-here::before, .inquiry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius-bubble);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-flare { background: var(--flare); color: var(--white); }
.btn-flare:hover { background: var(--flare-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-steel { background: var(--steel); color: var(--white); }
.btn-steel:hover { background: var(--steel-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--steel);
  border-bottom: 3px solid var(--flare);
}
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--current); }
.site-nav .nav-cta {
  background: var(--flare);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.site-nav .nav-cta:hover { background: var(--flare-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--steel);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 25% center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-photo.is-active { opacity: 1; }
.hero-logo {
  display: block;
  background: transparent;
  width: min(480px, 82vw);
  height: auto;
  margin: 0 0 8px;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(0, 37, 53, 0.85) 8%, rgba(0, 37, 53, 0.45) 55%, rgba(0, 37, 53, 0.1) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-content-col { max-width: 520px; }
.hero-sub {
  max-width: 480px;
  color: var(--mist);
  font-size: 1.2rem;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Film ---------- */
.film { padding: 88px 0; background: var(--mist); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin: 0 0 16px;
}
.eyebrow-flare { color: var(--flare); }
.lede {
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 40px;
  color: var(--steel);
}
.film-frame {
  border-radius: var(--radius-bubble);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 55, 75, 0.25);
}
.film-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--steel);
  margin: 0 0 20px;
  max-width: 800px;
}
.section-title.light { color: var(--white); }
.script-accent {
  font-family: var(--font-script);
  font-size: 1.15em;
  color: var(--flare);
}
.script-accent.flare { color: var(--flare); }
.rotate-word {
  display: inline-block;
  min-width: 3.2ch;
  color: var(--flare);
  border-bottom: 4px solid var(--current);
  line-height: 1.05;
}
.rotate-word.is-swapping { animation: swap 0.45s ease; }
@keyframes swap {
  0% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0; transform: translateY(0.35em); }
  55% { opacity: 0; transform: translateY(-0.35em); }
  100% { opacity: 1; transform: translateY(0); }
}

.section-intro {
  max-width: 720px;
  font-size: 1.15rem;
  margin: 0 0 48px;
  color: var(--ink);
}
.section-intro.light { color: var(--mist); }

/* ---------- Makers ---------- */
.makers { padding: 96px 0 110px; background: var(--white); }
.maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.maker-card {
  background: var(--mist);
  border-radius: var(--radius-bubble);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.maker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 55, 75, 0.18);
}
.maker-photo { position: relative; }
.maker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.maker-photo img.pos-top { object-position: center 18%; }
.maker-photo {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, rgba(0, 173, 239, 0.35), transparent 60%),
    var(--steel);
}
.maker-card:nth-child(even) .maker-photo {
  background:
    linear-gradient(200deg, rgba(240, 72, 35, 0.4), transparent 60%),
    var(--steel);
}
.maker-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.maker-body .maker-kicker {
  flex: 0 0 auto;
  width: fit-content;
  margin: 0 0 12px;
  padding: 0 2px 9px 0;
  border-bottom: 3px solid var(--current);
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--flare);
}
.maker-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--steel);
  text-wrap: balance;
}
.maker-body p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; }
.maker-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--flare);
  margin-top: auto;
}
.maker-link::after { content: " \2192"; }
.maker-link:hover { color: var(--flare-dark); text-decoration: underline; }
.maker-link.soon { color: var(--steel); opacity: 0.75; }
.maker-link.soon::after { content: " \2192 follow along"; font-size: 0.72rem; letter-spacing: 0.04em; }
.maker-link.soon:hover { color: var(--steel); opacity: 1; }

/* ---------- Follow the Stories ---------- */
.follow {
  padding: 72px 0;
  background: var(--current);
}
.follow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.follow .section-title { color: var(--steel-deep); margin-bottom: 10px; }
.follow .script-accent { color: var(--white); }
.follow-intro { color: var(--steel-deep); margin: 0; max-width: 560px; }
.follow-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.follow-btn { font-size: 0.9rem; }

/* ---------- Getting Here ---------- */
.gh-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.gh-map svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
  .gh-grid { grid-template-columns: 1fr; gap: 32px; }
  .gh-map { max-width: 280px; margin: 0 auto; }
}

.getting-here {
  position: relative;
  padding: 96px 0;
  background: var(--steel);
  overflow: hidden;
}
.routes-label {
  font-family: var(--font-display);
  color: var(--current);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.routes a {
  display: inline-block;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--current);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease;
}
.routes a:hover { background: var(--current); color: var(--steel-deep); }
.pae-link { color: var(--current); text-decoration: underline; text-underline-offset: 3px; }
.pae-link:hover { color: var(--white); }
.routes-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: rgba(244, 246, 243, 0.75);
  position: relative;
  z-index: 2;
}

/* ---------- Come See It ---------- */
.visit { padding: 96px 0 110px; background: var(--mist); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.visit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  background: var(--white);
  border-radius: var(--radius-bubble);
  text-decoration: none;
  color: var(--ink);
  border-top: 6px solid var(--current);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.visit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 55, 75, 0.16);
}
.visit-kicker {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--steel);
  line-height: 1.2;
}
.visit-copy { flex: 1; font-size: 0.98rem; }
.visit-btn { align-self: flex-start; font-size: 0.85rem; padding: 12px 20px; }

/* ---------- Inquiry ---------- */
.inquiry {
  position: relative;
  padding: 96px 0 110px;
  background: var(--steel-deep);
  overflow: hidden;
}
.inquiry-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-bubble);
  padding: 36px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; }
.form-row label, .form-row legend {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--current);
  padding: 0;
}
.optional { color: rgba(244, 246, 243, 0.5); text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.form-row input[type="text"],
.form-row input[type="email"] {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks label {
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checks input { width: 18px; height: 18px; accent-color: var(--flare); }
.btn-submit { align-self: flex-start; font-size: 1rem; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel);
  color: var(--mist);
  padding: 56px 0 48px;
  border-top: 4px solid var(--flare);
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--white);
}
.footer-partners { max-width: 640px; margin: 0 auto 12px; font-size: 0.92rem; color: rgba(244, 246, 243, 0.75); }
.footer-social { margin: 0 0 12px; font-size: 0.95rem; }
.footer-social a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-social a:hover { color: var(--current); text-decoration: underline; }
.footer-social span { color: rgba(244, 246, 243, 0.4); margin: 0 10px; }
.footer-contact { margin: 0; font-size: 0.92rem; }
.footer-contact a { color: var(--current); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* Header: compact single row, no tall sticky block */
  .site-header { padding: 10px 16px; gap: 10px; }
  .brand-logo { height: 36px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.82rem; }
  .site-nav .nav-cta { padding: 7px 12px; font-size: 0.72rem; }

  /* Hero: full-width content over a uniform dark scrim */
  .hero { min-height: 0; }
  .hero-inner {
    padding: 72px 20px 64px;
    align-items: stretch;
  }
  .hero-content-col { max-width: none; }
  .hero-photo { object-position: 50% 28%; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(0, 37, 53, 0.55) 0%, rgba(0, 37, 53, 0.88) 78%);
  }
  .hero-logo { width: min(340px, 88vw); margin: 0 auto 12px; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 24px; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Section rhythm */
  .film, .makers, .getting-here, .visit, .inquiry { padding-top: 64px; padding-bottom: 64px; }
  .follow { padding: 52px 0; }
  .section-intro { margin-bottom: 32px; }
  .lede { font-size: 1.12rem; }

  .maker-grid { gap: 20px; }
  .follow-actions { width: 100%; flex-direction: column; }
  .follow-btn { width: 100%; text-align: center; }
  .visit-grid { gap: 18px; }
  .visit-card { padding: 26px 22px; }

  .checks { grid-template-columns: 1fr; }
  .inquiry-form { padding: 24px 18px; }
  .btn-submit { align-self: stretch; text-align: center; }

  .footer-tagline { font-size: 1.2rem; }
  .site-footer { padding: 40px 0 36px; }
}
