/* =========================================================================
   Everest Guides International - "new website coming soon" page
   One screen, no scrolling: the mockup's dusk hero is the whole page, with
   the message, launch progress and contact details laid over it.
   Same tokens and type as the approved mockup (../assets/css/main.css).
   Accents keep their jobs: gold = summits and primary actions,
   teal = routes, progress and active states.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* The page is always the night hero, so there is no separate light theme. */
:root {
  --night: #0B1D2E;
  --ice: #A9BFD1;
  --snow: #EEF2F5;
  --gold: #C9954A;
  --gold-hi: #D9A85F;
  --teal: #399892;
  --teal-hi: #4FB3AC;
  --glass: rgba(8, 16, 30, .46);
  --glass-line: rgba(255, 255, 255, .14);

  --radius: 16px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: #fff; background: #241d3c;
  -webkit-font-smoothing: antialiased;
}
h1, p, ol, address { margin: 0; padding: 0; }
ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1em; height: 1em; flex: none; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- page: exactly one screen ---------- */
.page {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
}

/* ---------- scene (the mockup hero) ---------- */
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__frame {
  position: absolute; left: 50%; top: 52%;
  width: max(100%, 150svh, 960px);
  aspect-ratio: 3 / 2;
  translate: -50% -58%;
  container-type: inline-size;
  transform-origin: 44% 42%;
  animation: pushin 28s ease-in-out infinite alternate;
}
@keyframes pushin { from { scale: 1; } to { scale: 1.05; } }
.hero__layer { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.hero__sky { z-index: 0; object-fit: cover; scale: 1.06; }
.hero__stars { z-index: 1; height: 50%; opacity: .9; }
.hero__number {
  z-index: 2;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 19%;
  pointer-events: none;
}
.hero__number > span {
  font-size: min(11.5cqw, 8.8vw);
  font-weight: 800; font-stretch: 125%;
  letter-spacing: -.02em; line-height: .8;
  text-transform: uppercase;
  /* overlay lets the dusk sky show through the letters instead of a flat grey fill */
  color: rgba(255, 255, 255, .62);
  mix-blend-mode: overlay;
  white-space: nowrap;
}
.hero__ridge { z-index: 3; object-fit: cover; scale: 1.06; }
.hero__glow {
  z-index: 4;
  background: radial-gradient(closest-side, rgba(255, 128, 72, .55), rgba(255, 96, 48, .18) 45%, transparent 75%);
  width: 12%; height: 18%; inset: auto; left: 37.8%; top: 35.5%;
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
.hero__mist { z-index: 5; pointer-events: none; overflow: hidden; }
.hero__mist i {
  position: absolute; left: -20%; width: 140%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 222, 255, .16), transparent 70%);
  filter: blur(10px);
}
.hero__mist i:nth-child(1) { top: 53%; animation: drift 46s ease-in-out infinite alternate; }
.hero__mist i:nth-child(2) { top: 61%; height: 12%; animation: drift 64s ease-in-out -20s infinite alternate-reverse; opacity: .8; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.scene__shade {
  position: absolute; inset: 0; z-index: 6;
  background:
    linear-gradient(to bottom, rgba(10, 12, 28, .55), transparent 20%),
    linear-gradient(to top, rgba(8, 11, 22, .95) 0%, rgba(8, 11, 22, .72) 34%, rgba(8, 11, 22, .2) 56%, transparent 66%);
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: max(18px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__badge { width: 46px; height: 46px; border-radius: 50%; }
.brand__name { display: grid; font-size: 13.5px; line-height: 1.05; font-weight: 760; font-stretch: 118%; letter-spacing: .05em; text-transform: uppercase; }
.brand__name span { font-size: 10px; font-weight: 600; letter-spacing: .26em; opacity: .78; margin-top: 3px; }
.top__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- main ---------- */
.main {
  align-self: end;
  display: grid; gap: clamp(18px, 3.2vh, 32px);
  padding-bottom: clamp(14px, 2.4vh, 24px);
}
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: end; gap: clamp(32px, 5vw, 80px); }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 2vh, 18px);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; border-radius: 2px; background: currentColor; }
.title {
  font-size: clamp(2.2rem, min(4.6vw, 8.4vh), 4.6rem);
  font-stretch: 112%; font-weight: 720;
  line-height: 1; letter-spacing: -.03em;
  max-width: 12.6em; text-wrap: balance;
}
.sub { margin-top: clamp(12px, 2.2vh, 20px); max-width: 48ch; font-size: clamp(1rem, 1.9vh, 1.1rem); color: rgba(255, 255, 255, .82); }

/* intro: CSS-driven, triggered when the photo has loaded */
.js [data-fade] { opacity: 0; transform: translateY(18px); }
.js .hero__number > span { opacity: 0; letter-spacing: .08em; translate: 0 18%; }
.is-ready [data-fade] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero__number > span { opacity: 1; letter-spacing: -.02em; translate: 0 0; transition: opacity 2.4s var(--ease), letter-spacing 2.6s var(--ease), translate 2.4s var(--ease); }

/* ---------- contact card ---------- */
.contact {
  display: grid;
  padding: clamp(18px, 2.8vh, 26px) clamp(20px, 2vw, 28px) clamp(8px, 1.4vh, 14px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.contact__person {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px;
  padding-bottom: clamp(12px, 2vh, 18px);
}
.contact__label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-hi);
}
.contact__label::before { content: ""; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; }
.contact__name { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 760; font-stretch: 118%; letter-spacing: .03em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
/* the teal role bar from the business card */
.contact__role { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; font-stretch: 106%; white-space: nowrap; }
.contact__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding-block: clamp(10px, 1.7vh, 15px);
  border-top: 1px solid var(--glass-line);
}
.contact__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(79, 179, 172, .14); color: var(--teal-hi); font-size: 20px;
}
.contact__body { display: grid; gap: 3px; min-width: 0; }
.contact__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.contact__value {
  justify-self: start; min-width: 0;
  font-size: clamp(1.08rem, 1.45vw, 1.3rem); font-weight: 650; font-stretch: 106%; line-height: 1.25;
  overflow-wrap: anywhere;
}
a.contact__value {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease);
}
a.contact__value:hover { background-size: 100% 1.5px; }
a.contact__value[href^="tel:"] { white-space: nowrap; }
.contact__value--addr { font-size: clamp(1rem, 1.2vw, 1.08rem); font-weight: 600; }
.contact__acts { display: flex; gap: 8px; }
.ibtn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .26); color: #fff; font-size: 18px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s;
}
.ibtn:hover { background: #fff; color: var(--night); border-color: #fff; }
.ibtn:active { transform: scale(.94); }
.ibtn.is-copied { border-color: var(--teal-hi); color: var(--teal-hi); background: transparent; }

/* ---------- footer line ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  font-size: 12px; color: rgba(169, 191, 209, .8);
}
.foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(169, 191, 209, .4); }
.foot a:hover { color: #fff; }

/* ---------- tablets: card goes under the headline ---------- */
@media (max-width: 1023px) {
  .lead { grid-template-columns: 1fr; gap: 22px; }
  .contact { max-width: 620px; }
}

/* ---------- phones and portrait tablets: the range sits up top ---------- */
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  /* lift the range into the top of the screen so the copy sits on the dark moraine */
  .hero__frame { width: max(100%, 190svh); top: 0; translate: -50% -27%; }
  .hero__number { padding-top: 23%; }
  .scene__shade { background: linear-gradient(to bottom, rgba(10, 12, 28, .5), transparent 14%), linear-gradient(to top, rgba(8, 11, 22, .97) 0%, rgba(8, 11, 22, .86) 52%, rgba(8, 11, 22, .3) 66%, transparent 74%); }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  /* the words stack so they can stay big on a narrow screen */
  .hero__number > span { display: flex; flex-direction: column; align-items: center; gap: .08em; font-size: 17vw; font-stretch: 118%; }
  .top__tag { display: none; }
  .brand__badge { width: 40px; height: 40px; }
  .brand__name { font-size: 11px; }
  .brand__name span { font-size: 9px; }
  .main { gap: 14px; padding-bottom: 10px; }
  .lead { gap: 14px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .14em; margin-bottom: 10px; }
  .title { font-size: clamp(1.9rem, min(9.4vw, 4.6vh), 2.6rem); line-height: 1; }
  .sub { font-size: .94rem; margin-top: 10px; color: rgba(255, 255, 255, .78); }
  .contact { padding: 14px 16px 4px; }
  .contact__person { gap: 6px 12px; padding-bottom: 12px; }
  .contact__label { font-size: 10.5px; }
  .contact__name { font-size: 1.15rem; }
  .contact__role { font-size: 12px; padding: 3px 10px; }
  .contact__item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding-block: 10px; }
  .contact__icon { width: 38px; height: 38px; font-size: 18px; }
  .contact__kind { font-size: 10px; }
  .contact__value { font-size: 1.06rem; }
  .contact__value--addr { font-size: .95rem; }
  .ibtn { width: 38px; height: 38px; font-size: 17px; }
  .foot { font-size: 11px; justify-content: center; text-align: center; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
/* phones: the paragraph goes so the peaks keep their space; every contact detail stays */
@media (max-width: 767px) and (max-height: 900px) {
  .sub { display: none; }
}
@media (max-width: 767px) and (max-height: 760px) {
  /* less sky on short phones: smaller words, set just under the header */
  .hero__number { padding-top: 23.4%; }
  .hero__number > span { font-size: 13.5vw; }
  .title { font-size: clamp(1.75rem, 8.6vw, 2.2rem); }
}
@media (max-width: 767px) and (max-height: 640px) {
  .contact__label { display: none; }
  .contact__item { padding-block: 8px; }
}

/* ---------- short laptop screens ---------- */
@media (min-width: 768px) and (max-height: 760px) {
  .sub { display: none; }
}

/* very small or landscape phones: let it scroll rather than clip anything */
@media (max-height: 520px), (max-width: 767px) and (max-height: 560px) {
  .page { height: auto; min-height: 100svh; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-fade], .js .hero__number > span { opacity: 1; transform: none; translate: none; letter-spacing: -.02em; }
  .hero__glow { opacity: .8; }
}
@media (prefers-reduced-transparency: reduce) {
  .contact { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 16, 30, .84); }
}
