/* ══════════════════════════════════════════════
   styles.css — Glass Portrait Hero
   ══════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────── */
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ── Variables & Base ─────────────────────────── */
:root {
  --paper: #edf5ff;
  --ink: #0c1824;
  --grid: rgba(73, 115, 153, 0.17);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

html { background: var(--paper); }

/* ── Glass Hero Container ─────────────────────── */
.glass-hero {
  --reveal-x: -999px;
  --reveal-y: -999px;
  --reveal-radius: 0px;
  position: relative;
  isolation: isolate;
  min-width: 320px;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  background: var(--paper);
}

/* ── Portrait Layers ──────────────────────────── */
.portrait-layer {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portrait-base {
  background-image: url("images/Base_image_desktop.png");
  animation: portrait-in 1.1s var(--ease-out) both;
}

.portrait-reveal {
  z-index: -2;
  background-image: url("images/Reveal_image_desktop.png");
  mask-image: radial-gradient(
    circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y),
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.94) 62%,
    rgba(255, 255, 255, 0.72) 76%,
    rgba(255, 255, 255, 0.28) 90%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y),
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.94) 62%,
    rgba(255, 255, 255, 0.72) 76%,
    rgba(255, 255, 255, 0.28) 90%,
    transparent 100%
  );
}

/* ── Technical Overlay (Grid + Circle) ────────── */
.technical-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.technical-grid {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border-top: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.technical-grid span {
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.technical-grid-desktop {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.technical-grid-mobile { display: none; }

.technical-circle {
  position: absolute;
  width: min(78vw, 72rem);
  aspect-ratio: 1;
  left: 8%;
  top: -36%;
  border: 1px solid rgba(73, 115, 153, 0.24);
  border-radius: 50%;
}

/* ── Navigation ───────────────────────────────── */
.hero-nav {
  position: absolute;
  z-index: 2;
  top: max(2.5rem, env(safe-area-inset-top));
  right: max(5.6vw, 2rem);
  left: max(5.6vw, 2rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  animation: nav-in 700ms var(--ease-out) 100ms both;
}

.brand,
.nav-links { display: inline-flex; align-items: center; }

.brand {
  width: fit-content;
  min-height: 44px;
  gap: .625rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.brand h2 {
  color: #0c1824;
  font-family: "Stack Sans Notch", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.monogram-svg { width: 2.3rem; height: 2.3rem; }

.nav-links {
  gap: 1.5rem;
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }

.talk-link {
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 1.05rem;
  border: 1px solid rgba(12, 24, 36, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: transform 250ms var(--ease-out), background-color 250ms var(--ease-out);
}

.talk-link:hover { transform: translateY(-2px); background: #fff; }

/* ── Hero Heading ─────────────────────────────── */
.hero-heading {
  position: absolute;
  font-family: "Albert Sans", sans-serif;
  z-index: 1;
  top: 33.7%;
  left: max(5.6vw, 2rem);

}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(5.4rem, 6.2vw, 6.8rem);
  font-weight: 450;
  line-height: .93;
  letter-spacing: -.085em;
}

.hero-heading h1 span {
  display: block;
  animation: heading-in 850ms var(--ease-out) both;
}

.hero-heading h1 span:nth-child(1) { animation-delay: 240ms; }
.hero-heading h1 span:nth-child(2) { animation-delay: 340ms; }
.hero-heading h1 span:nth-child(3) { animation-delay: 440ms; }

/* ── Hero Footer ──────────────────────────────── */
.hero-footer {
  position: absolute;
  z-index: 1;
  right: max(5.6vw, 2rem);
  bottom: max(2.5rem, env(safe-area-inset-bottom));
  left: max(5.6vw, 2rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.intro-block {
  max-width: 25rem;
  animation: copy-in 800ms var(--ease-out) 630ms both;
}

.intro-block p {
  margin: 0;
  font-size: clamp(.88rem, 1vw, 1rem);
  line-height: 1.4;
  letter-spacing: -.025em;
}

/* ── Social Links ─────────────────────────────── */
.social-links { display: flex; gap: .55rem; margin-top: 1rem; }

.social-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #101c28;
  color: #f6f9fc;
  transition: transform 250ms var(--ease-out), background-color 250ms var(--ease-out);
}

.social-link:hover { transform: translateY(-3px); background: #203448; }
.social-link svg { width: 1.15rem; height: 1.15rem; }

/* ── Tagline ──────────────────────────────────── */
.tagline {
  margin: 0;
  text-align: right;
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .64rem;
  line-height: 1.55;
  letter-spacing: .08em;
  animation: copy-in 800ms var(--ease-out) 710ms both;
}

/* ── Focus States ─────────────────────────────── */
.brand:focus-visible,
.nav-links a:focus-visible,
.talk-link:focus-visible,
.social-link:focus-visible {
  outline: 2px solid #0d6fba;
  outline-offset: 4px;
}

/* ── Animations ───────────────────────────────── */
@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-.85rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heading-in {
  from { opacity: 0; transform: translateY(1.1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile (Portrait ≤ 767px) ────────────────── */
@media (max-width: 767px) and (orientation: portrait) {
  .glass-hero { min-height: 42rem; }

  .portrait-base  { background-image: url("images/Base_image_mobile.png"); }
  .portrait-reveal { background-image: url("images/Reveal_image_mobile.png"); }

  .technical-grid-desktop { display: none; }
  .technical-grid-mobile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    opacity: .58;
  }

  .technical-circle { width: 150vw; left: -76%; top: -8%; border-color: rgba(73, 115, 153, .18); }

  .hero-nav {
    top: max(1.25rem, env(safe-area-inset-top));
    right: max(1.25rem, env(safe-area-inset-right));
    left: max(1.25rem, env(safe-area-inset-left));
    grid-template-columns: 1fr auto;
  }

  .nav-links { display: none; }
  .brand { color: #f8fcff; text-shadow: 0 1px 12px rgba(10, 24, 37, .24); }
  .talk-link { padding: 0 .92rem; }

  .hero-heading {
    top: 15%;
    left: max(1.25rem, env(safe-area-inset-left));
    width: 62%;
    color: #0c1824;
  }

  .hero-heading h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.8rem);
    line-height: .87;
    letter-spacing: -.08em;
    overflow-wrap: anywhere;
  }

  .hero-footer { display: contents; }

  .intro-block {
    font-family: "Albert Sans", sans-serif;
    position: absolute;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: calc(env(safe-area-inset-bottom) + 2rem);
    left: max(1.25rem, env(safe-area-inset-left));
    max-width: 18rem;
    color: #f9fcff;
    text-shadow: 0 1px 14px rgba(5, 14, 24, .4);
  }

  .intro-block p { font-size: .9rem; }
  .social-links { width: max-content; gap: .125rem; flex-wrap: nowrap; }
  .social-link { width: 2.75rem; height: 2.75rem; }

  .tagline {
    position: absolute;

    top: 64%;
    right: max(1.25rem, env(safe-area-inset-right));
    margin: 0;
    color: #eff8ff;
    text-shadow: 0 1px 14px rgba(5, 14, 24, .38);
  }
}

/* ── Extra Small (≤ 350px Portrait) ───────────── */
@media (max-width: 350px) and (orientation: portrait) {
  .hero-heading { width: 64%; }
  .hero-heading h1 { font-size: 2.7rem; }
  .social-links { gap: .125rem; }
  .tagline { font-size: .56rem; }
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* .v-badge {
 background-image: url("images/tick.svg");
  height: 1.2rem;
  width: 1.2rem;
  background-size: cover;
  background-image: contain;
  background-repeat: no-repeat;
  margin-left: -0.5rem;
  margin-top: 0.1rem;
} */