/* ============================================================
   ONE ATLANTEK — private design concept
   Light, airy, ocean. The product is the water, so photography
   leads and the interface stays out of its way. Self-hosted,
   no CDN, no framework, one appearance for everyone.
   ============================================================ */
/* Hanken Grotesk, the approved open-source alternative to Bilo.
   One self-hosted variable file covers every upright weight used on the site. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/font/hanken-grotesk-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Their real palette, from the brand guidelines: grey 3c3c3b, orange f28f47,
   white. The orange is only 2.4:1 on white, so it can fill and it can sit
   behind dark ink, but it can never BE text — orange-ink is the same hue
   taken down to 5.0:1 for anywhere words need it. */
:root {
  color-scheme: light;
  --ink: #3c3c3b;            /* brand grey, 11:1 on white */
  --ink-soft: #6b6b69;
  --paper: #ffffff;          /* brand white */
  --shell: #f4f2ef;          /* warm grey band, derived from the brand grey */
  --line: #e5e2dd;
  --orange: #f28f47;         /* brand orange. Fills and rules only, never text */
  --orange-ink: #b3541c;     /* the same hue at 5.0:1, for words */
  --orange-soft: #fbe3cf;
  --sea: #0a7a7f;            /* supporting only — the water comes from photos */
  --sea-bright: #12a8ae;
  --sea-pale: #d6efee;
  --sea-deep: #084a52;
  --sand: #f5b53d;
  --sand-soft: #fbe08a;
  --max: 1180px;
  /* Two corners only, per the client's "clean straight lines": a soft
     edge for photographs and panels, a tighter one for every control. */
  --radius: 10px;
  --radius-sm: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* presses and arrivals */
  --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
/* No grey tap flash: buttons draw their own press state. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
/* width/height attributes reserve space; without this, any image given
   width: 100% keeps its pixel height (1200-1800px) and ignores its crop. */
img { height: auto; }
/* The surfaces the browser draws for us still belong to the design. */
::selection { background: var(--orange-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0; font-family: var(--display);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  text-wrap: balance; font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); max-width: 20ch; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); max-width: 24ch; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.shell { width: min(100% - 2.6rem, var(--max)); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-ink);
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 16px; background: #fff; border-radius: var(--radius-sm);
  transform: translateY(-160%); font-weight: 700;
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sea); outline-offset: 3px;
}


/* ============================================================
   THE HERO — full-bleed photography, copy laid over it
   The image is 3840px wide at source, so it can drift slowly
   without ever softening. The scrim is a gradient rather than a
   flat wash so the sea keeps its light.
   ============================================================ */
/* Full bleed, edge to edge, full screen. The inset rounded card that used to
   frame this read as a designed object sitting on a page — which is exactly
   the corporate feeling we're trying to lose. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  color: #fff;
}
/* everything after the hero sits on white again */
main, .site-foot { background: var(--paper); }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0c1b23; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
/* A still needs our drift to feel alive. The footage has a camera move of
   its own, so adding ours on top would fight it and crop the frame. */
.hero-media img {
  filter: brightness(1.05) saturate(1.06);
  transform-origin: 42% 60%;
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-media video { filter: saturate(1.32) contrast(1.06) brightness(1.06); }
@keyframes drift {
  from { transform: scale(1.10) translate3d(4.5%, 1.5%, 0); }
  to   { transform: scale(1.24) translate3d(-5.5%, -2.5%, 0); }
}
/* Phones play the lighter 1080p loop unless a still fallback is needed.
   The copy runs the full width there and lands on lit turquoise, so the scrim
   has to be heavier and more even than the desktop one. */
@media (max-width: 640px) {
  .hero-scrim {
    background: linear-gradient(to top,
      rgba(6, 24, 34, .90) 0%,
      rgba(6, 24, 34, .74) 45%,
      rgba(6, 24, 34, .58) 78%,
      rgba(6, 24, 34, .48) 100%);
  }
}
/* The turquoise IS the product — a full-frame wash greys it out and throws
   away the reason we used this clip. So the heavy lifting is done by a narrow
   left-hand column behind the copy, and the right two thirds stay open water. */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right,
      rgba(4, 26, 30, .82) 0%,
      rgba(4, 26, 30, .62) 26%,
      rgba(4, 26, 30, .28) 48%,
      rgba(4, 26, 30, 0) 68%),
    linear-gradient(to top,
      rgba(4, 26, 30, .44) 0%,
      rgba(4, 26, 30, .08) 30%,
      rgba(4, 26, 30, 0) 58%,
      rgba(4, 26, 30, .26) 100%);
}

/* nav sits on the photograph, frosted so the water shows through */
.hero-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.3rem;
}
/* The wordmark is hairline artwork, so it needs a shadow of its own to hold
   up over water — the strokes are far thinner than any text on this page. */
.brand { display: block; }
.brand img {
  width: auto; height: 26px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
}
@media (max-width: 640px) { .brand img { height: 21px; } }
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.9);
  transition: color .16s ease;
}
@media (hover: hover) { .nav-links a:hover { color: #fff; } }
.nav-call {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  color: #fff; font-weight: 600; font-size: .92rem;
  transition: background .18s ease, transform .16s var(--ease-out);
}
@media (hover: hover) { .nav-call:hover { background: rgba(255,255,255,.26); } }


/* One disclosure menu for both shells: the homepage hero nav and the inner
   pages' site nav. It used to be defined twice, in two stylesheets that load
   together, at two different breakpoints — so between 861 and 900px the
   homepage still showed desktop links while every other page had collapsed. */
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px);
  color: #fff; font-weight: 600; font-size: .92rem;
  transition: transform .16s var(--ease-out);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
  position: absolute; right: 0; top: calc(100% + .7rem); z-index: 5;
  width: min(78vw, 280px); padding: .6rem;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  /* Solid: at .96 the hero headline showed through behind the links. */
  background: rgb(7,31,36); box-shadow: 0 20px 60px rgba(0,0,0,.32);
}
.mobile-nav-panel a {
  display: block; padding: .78rem .85rem; border-radius: var(--radius-sm);
  color: #fff; font-weight: 600;
}
@media (hover: hover) { .mobile-nav-panel a:hover { background: rgba(255,255,255,.1); } }
.mobile-nav-panel a:active { background: rgba(255,255,255,.1); }
/* The panel opens out of the Menu button, quickly. Closing is instant:
   nobody wants to watch a menu leave. */
.mobile-nav[open] .mobile-nav-panel { transform-origin: top right; animation: panel-in .2s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
/* An absolutely positioned panel escapes the browser's default way of hiding
   closed <details> content, which varies by engine. Say it explicitly. */
.mobile-nav:not([open]) .mobile-nav-panel { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-call { display: none; }
  .mobile-nav { display: block; }
}

.hero-body { position: relative; z-index: 1; margin-top: auto; padding-bottom: clamp(2.4rem, 5vw, 4rem); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px);
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.hero h1 { margin-top: 1.4rem; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.45); }
.hero-lede {
  margin-top: 1.1rem; max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn-sand {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.7rem; border-radius: var(--radius-sm);
  background: var(--orange); color: #2a2a29; font-weight: 650;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
  transition: transform .16s var(--ease-out), box-shadow .18s ease;
}
@media (hover: hover) { .btn-sand:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(0,0,0,.38); } }
.btn-glass {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px);
  color: #fff; font-weight: 600;
  transition: background .18s ease, transform .16s var(--ease-out);
}
@media (hover: hover) { .btn-glass:hover { background: rgba(255,255,255,.26); } }
/* Every pill button gives a little under the thumb. .button-dark has the
   same press in site-pages.css, after its hover. */
:is(.nav-call, .mobile-nav summary, .btn-sand, .btn-glass):active { transform: scale(.97); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .4rem 1.7rem;
  margin-top: 1.8rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.26);
  font-size: .92rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}

/* staggered entrance */
[data-in] { opacity: 0; transform: translateY(18px); animation: rise .75s ease forwards; }
[data-in="1"] { animation-delay: .06s; }
[data-in="2"] { animation-delay: .18s; }
[data-in="3"] { animation-delay: .30s; }
[data-in="4"] { animation-delay: .42s; }
[data-in="5"] { animation-delay: .54s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: scale(1.03); }
  [data-in] { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Page to page ------------------------------------------------------
   Pages cross-fade rather than blink white. Tapping a charter is the one
   authored moment: site.js hands the tapped card's photo and name to the
   next page, where they become its hero and headline. Browsers without
   cross-page transitions simply load the page as before. */
@view-transition { navigation: auto; }
/* Must come after the rule above: the later @view-transition wins. */
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Charter pages name their hero and headline as the landing spot. Arriving
   from anything but a charter link, there is nothing to morph from and the
   hero simply fades in with the page. */
.charter-page .inner-hero { view-transition-name: page-photo; }
.charter-page .inner-hero-copy h1 { view-transition-name: page-title; }
::view-transition-group(root) { animation-duration: .22s; }
::view-transition-group(page-photo),
::view-transition-group(page-title) { animation-duration: .42s; animation-timing-function: var(--ease-out); }
/* Card and hero are different shapes: crop, don't squash. */
::view-transition-old(page-photo),
::view-transition-new(page-photo) { height: 100%; object-fit: cover; }
