/* ==========================================================================
   Ori — AI consumer technology studio
   Dark, cinematic landing page. Palette: black / white / dark red / magenta.
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Halyard Display — self-hosted (regular weight; heavier weights synthesize) */
@font-face {
  font-family: "Halyard Display";
  src: url("fonts/halyard-display-regular.woff") format("woff"),
       url("fonts/halyard-display-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --color-black: #030305;
  --color-black-soft: #08070a;
  --color-surface: #10080d;
  --color-surface-glass: rgba(24, 8, 17, 0.72);

  --color-white: #f7f6f4;
  --color-white-soft: #d7d3d5;
  --color-muted: #a49ca1;
  --color-muted-dark: #766e73;

  --color-pink: #f21c63;
  --color-pink-bright: #ff276f;
  --color-pink-soft: #ff5b93;
  --color-magenta: #ba124d;
  --color-red-glow: #7b0d30;

  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-pink: rgba(242, 28, 99, 0.28);

  --shadow-pink:
    0 0 24px rgba(242, 28, 99, 0.25),
    0 0 70px rgba(151, 10, 55, 0.18);

  --max-width: 1440px;

  --font-sans: "Halyard Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-inline: clamp(24px, 5vw, 80px);
  --header-height: 92px;

  --ease-reveal: cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul[role="list"] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Sections get room under the sticky header when navigated to */
section[id] {
  scroll-margin-top: calc(var(--header-height) - 16px);
}

/* ---------- Accessibility helpers ---------- */
.sr-only,
.stat-label-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-pink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-64px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--color-pink-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  width: 100%;
}

.accent {
  color: var(--color-pink);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 22px;
}

/* Display face: titles, numerals and other headline moments use Manrope */
.hero-title,
.section-title,
.principle-title,
.app-name,
.stat-number,
.hero-statement,
.footer-heading,
.office-city,
.btn {
  font-family: var(--font-display);
}

.section-title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.section-copy {
  margin-top: 26px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--color-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 8px 8px 8px 28px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  transition: transform 250ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translate(3px, -3px);
}

/* Primary: dark glass pill with a bright metallic rim; the highlight
   sweeps around the border on hover. Magenta circular arrow on the right. */
@property --btn-angle {
  syntax: "<angle>";
  initial-value: 115deg;
  inherits: false;
}

.btn-primary {
  position: relative;
  isolation: isolate;
  background: rgba(24, 8, 17, 0.5);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #fff;
  box-shadow:
    0 12px 40px rgba(3, 3, 5, 0.5),
    0 4px 24px rgba(242, 28, 99, 0.16);
}

/* Metallic rim: a conic gradient painted only on a 1.5px border ring */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--btn-angle),
    rgba(255, 255, 255, 0.95),
    rgba(255, 200, 218, 0.4) 12%,
    rgba(255, 255, 255, 0.1) 28%,
    rgba(214, 208, 214, 0.55) 44%,
    rgba(255, 255, 255, 0.92) 52%,
    rgba(255, 190, 212, 0.28) 66%,
    rgba(255, 255, 255, 0.08) 82%,
    rgba(255, 255, 255, 0.95)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: filter 250ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow:
    0 16px 52px rgba(3, 3, 5, 0.55),
    0 6px 30px rgba(242, 28, 99, 0.28);
}

/* The metallic light travels around the rim while hovered/focused */
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  filter: brightness(1.25);
  animation: btn-rim-sweep 2.6s linear infinite;
}

@keyframes btn-rim-sweep {
  to {
    --btn-angle: 475deg;
  }
}

.btn-arrow-white {
  background: linear-gradient(135deg, #f21c63, #ff3f79);
  color: #fff;
  box-shadow: 0 4px 18px rgba(242, 28, 99, 0.45);
}

/* Light: white pill, magenta circular arrow (header contact) */
.btn-light {
  background: var(--color-white);
  color: #0b0a0c;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.btn-light:hover,
.btn-light:focus-visible {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(242, 28, 99, 0.22);
}

.btn-arrow-pink {
  background: var(--color-pink);
  color: #fff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color 350ms ease, height 350ms ease;
}

/* Blur/background live on a pseudo-element: putting backdrop-filter on the
   header itself would make it the containing block for the fixed-position
   mobile nav overlay, collapsing the overlay into the header bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(3, 3, 5, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 350ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 76px;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  height: 100%;
  padding-inline: clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Wordmark: supplied "ORI" logotype with a magenta dot above the I */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  height: 17px;
  width: auto;
}

.site-footer .brand-logo {
  height: 20px;
}

.brand-dot {
  position: absolute;
  top: -10px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-pink-bright);
  box-shadow: 0 0 10px rgba(255, 39, 111, 0.9);
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white-soft);
  padding: 8px 2px;
  position: relative;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--color-pink-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Contact pill (header, right) */
.header-contact {
  min-height: 50px;
  font-size: 15px;
  gap: 16px;
  padding-left: 24px;
}

.header-contact .btn-arrow {
  width: 36px;
  height: 36px;
}

/* Contact link inside the drawer is hidden on desktop */
.nav-contact {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(3, 3, 5, 0.4);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform 250ms ease, opacity 250ms ease;
}

.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(760px, 94vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Photo layer — separate element so it can be zoomed / parallaxed */
.hero-bg {
  position: absolute;
  inset: -3.5%;
  z-index: -4;
  background-image: url("images/hero-portal.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  animation: hero-zoom 36s ease-in-out infinite alternate;
  will-change: transform;
}

.no-webp .hero-bg {
  background-image: url("images/hero-portal.png");
}

@keyframes hero-zoom {
  from { scale: 1.02; }
  to   { scale: 1.06; }
}

/* Pulsing magenta glow centred on the portal */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(
    42% 52% at 52% 46%,
    rgba(242, 28, 99, 0.20),
    rgba(123, 13, 48, 0.10) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
  animation: glow-pulse 7s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Very subtle vertical light shimmer over the beam */
.hero-shimmer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 42%,
    transparent 68%
  );
  background-size: 100% 220%;
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: shimmer 12s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0 120%; }
  to   { background-position: 0 -120%; }
}

/* Readability overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.96) 0%,
      rgba(3, 3, 5, 0.76) 26%,
      rgba(3, 3, 5, 0.12) 52%,
      rgba(3, 3, 5, 0.25) 72%,
      rgba(3, 3, 5, 0.82) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.4) 0%,
      rgba(3, 3, 5, 0) 42%,
      rgba(3, 3, 5, 0.86) 100%
    );
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.5fr);
  align-items: center;
  gap: 48px;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: clamp(56px, 9vh, 110px);
}

.hero-title {
  font-size: clamp(56px, 7.4vw, 106px);
  line-height: 0.92;
  font-weight: 720;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 60px rgba(3, 3, 5, 0.6);
}

.hero-title .accent {
  text-shadow: 0 0 34px rgba(242, 28, 99, 0.55);
}

.hero-copy {
  margin-top: 34px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--color-white-soft);
  max-width: 46ch;
}

.hero-left .btn {
  margin-top: 40px;
}

/* Right-side statement, floating mid-height beside the portal */
.hero-right {
  justify-self: end;
  text-align: left;
}

.hero-sparkle {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 20px;
  color: var(--color-pink-bright);
  filter: drop-shadow(0 0 8px rgba(255, 39, 111, 0.85));
}

.hero-sparkle svg {
  width: 100%;
  height: 100%;
}

.hero-statement {
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-statement-sub {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(247, 246, 244, 0.6));
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.55); opacity: 0.35; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 0.9; transform-origin: top; }
}

/* ==========================================================================
   SECTION BACKGROUNDS (lazy-loaded via [data-lazy-bg] → .bg-in)
   Overlays always paint first so text never sits on a bright image.
   ========================================================================== */
#ideals,
#apps,
#about,
#careers,
.site-footer {
  background-color: var(--color-black);
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* -- Ideals: canyon with magenta mist -- */
#ideals.bg-in,
.no-js #ideals {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.55) 0%,
      rgba(3, 3, 5, 0.38) 45%,
      rgba(3, 3, 5, 0.84) 100%
    ),
    url("images/magenta-mist-canyon.webp");
  background-position: center;
}

.no-webp #ideals.bg-in {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.55) 0%,
      rgba(3, 3, 5, 0.38) 45%,
      rgba(3, 3, 5, 0.84) 100%
    ),
    url("images/magenta-mist-canyon.png");
}

/* -- Apps: alien landscape, heavy overlay for card readability -- */
#apps.bg-in,
.no-js #apps {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.96) 0%,
      rgba(3, 3, 5, 0.72) 40%,
      rgba(3, 3, 5, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.5) 0%,
      rgba(3, 3, 5, 0.82) 100%
    ),
    url("images/alien-landscape-magenta.webp");
  background-position: center;
}

.no-webp #apps.bg-in {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.96) 0%,
      rgba(3, 3, 5, 0.72) 40%,
      rgba(3, 3, 5, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.5) 0%,
      rgba(3, 3, 5, 0.82) 100%
    ),
    url("images/alien-landscape-magenta.png");
}

/* -- About: distant vertical beam on water -- */
#about.bg-in,
.no-js #about {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.92) 0%,
      rgba(3, 3, 5, 0.58) 42%,
      rgba(3, 3, 5, 0.24) 68%,
      rgba(3, 3, 5, 0.45) 100%
    ),
    url("images/light-beam-horizon.webp");
  background-position: center 62%;
}

.no-webp #about.bg-in {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.92) 0%,
      rgba(3, 3, 5, 0.58) 42%,
      rgba(3, 3, 5, 0.24) 68%,
      rgba(3, 3, 5, 0.45) 100%
    ),
    url("images/light-beam-horizon.png");
}

/* -- Careers: crew and Ori flag on the cliff -- */
#careers.bg-in,
.no-js #careers {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.96) 0%,
      rgba(3, 3, 5, 0.76) 34%,
      rgba(3, 3, 5, 0.18) 66%,
      rgba(3, 3, 5, 0.3) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.14) 0%,
      rgba(3, 3, 5, 0.62) 100%
    ),
    url("images/crew-flag-shore.webp");
  background-position: center right;
}

.no-webp #careers.bg-in {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.96) 0%,
      rgba(3, 3, 5, 0.76) 34%,
      rgba(3, 3, 5, 0.18) 66%,
      rgba(3, 3, 5, 0.3) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.14) 0%,
      rgba(3, 3, 5, 0.62) 100%
    ),
    url("images/crew-flag-shore.png");
}

/* -- Footer: faint glow, nearly black -- */
.site-footer.bg-in,
.no-js .site-footer {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.82) 0%,
      rgba(3, 3, 5, 0.98) 70%
    ),
    url("images/faint-glow-horizon.webp");
  background-position: center bottom;
}

.no-webp .site-footer.bg-in {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.82) 0%,
      rgba(3, 3, 5, 0.98) 70%
    ),
    url("images/faint-glow-horizon.png");
}

/* ==========================================================================
   IDEALS
   ========================================================================== */
.ideals {
  padding-block: clamp(88px, 11vw, 150px);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.section-intro {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.principles {
  margin-top: clamp(64px, 7vw, 104px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  text-align: center;
}

/* Glowing icon renders — shipped on black canvases, screen-blended away */
.principle-icon {
  display: inline-flex;
  width: clamp(96px, 9.5vw, 140px);
  transition: filter 300ms ease, transform 300ms ease;
}

.principle-icon img {
  width: 100%;
  height: auto;
}

.principle:hover .principle-icon {
  filter: brightness(1.4);
  transform: translateY(-4px);
}

.principle-title {
  margin-top: 26px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.principle-copy {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ==========================================================================
   APPS
   ========================================================================== */
.apps {
  padding-block: clamp(88px, 10vw, 140px);
  min-height: 640px;
  display: flex;
  align-items: center;
}

.apps-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 2.5fr);
  gap: clamp(40px, 4.5vw, 80px);
  align-items: center;
}

.apps-left .btn {
  margin-top: 40px;
}

/* One row of four; becomes a scrollable carousel when they don't all fit */
.app-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
  min-width: 0; /* let the row shrink to its grid column and scroll inside it */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-block: 8px; /* room for the hover lift */
}

.app-cards::-webkit-scrollbar {
  display: none;
}

.app-card {
  scroll-snap-align: start;
}

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: clamp(300px, 30vw, 366px);
  padding: clamp(30px, 2.4vw, 40px) clamp(18px, 1.6vw, 26px) clamp(22px, 2vw, 30px);
  background: linear-gradient(
    180deg,
    rgba(38, 12, 25, 0.62),
    rgba(14, 6, 11, 0.72)
  );
  border: 1px solid rgba(242, 28, 99, 0.16);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

/* Sheen that sweeps across on hover */
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 91, 147, 0.09) 48%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 68%
  );
  transform: translateX(-110%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 28, 99, 0.55);
  box-shadow: var(--shadow-pink);
}

.app-card:hover::after {
  transform: translateX(110%);
}

.app-icon {
  display: inline-flex;
  width: clamp(104px, 9.5vw, 140px);
  margin-top: clamp(2px, 0.6vw, 10px);
  transition: filter 300ms ease, transform 300ms ease;
}

.app-icon img {
  width: 100%;
  height: auto;
}

.app-card:hover .app-icon {
  transform: translateY(-2px);
  filter: brightness(1.4);
}

.app-name {
  margin-top: clamp(26px, 2.4vw, 40px);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app-copy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Learn more sits at the bottom, left-aligned like the reference */
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-white-soft);
  transition: color 200ms ease, gap 200ms ease;
}
.app-link svg { color: var(--color-pink-bright); }

/* Carousel "next" affordance peeking off the right edge (as in the reference) */
.apps-next {
  position: absolute;
  right: clamp(30px, 3vw, 46px);
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--color-magenta), var(--color-pink-bright));
  box-shadow: 0 10px 34px rgba(242, 28, 99, 0.45);
  transition: transform 250ms ease, box-shadow 250ms ease;
  z-index: 4;
}
.apps-next:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 14px 40px rgba(255, 46, 99, 0.6); }
.apps-next svg { width: 20px; height: 20px; }

.app-link:hover,
.app-link:focus-visible {
  color: var(--color-pink-bright);
  gap: 11px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  padding-block: clamp(80px, 9vw, 130px) clamp(120px, 16vw, 240px);
  min-height: 660px;
  display: flex;
  align-items: flex-start;
}

/* Zigzag rhythm: apps text sits left, about text sits right, careers left */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start; /* stats row sits at the top, aligned with the heading */
}

.about-left {
  order: 2;
}

.about-grid .stats {
  order: 1;
}

.about-left .btn {
  margin-top: 40px;
}

/* Stats laid out horizontally across the top, over the landscape + beam */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  justify-items: start;
  align-items: start;
  padding-top: 6px;
}

.stat-number {
  font-size: clamp(52px, 5.4vw, 84px);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-shadow: 0 0 44px rgba(242, 28, 99, 0.25);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  color: var(--color-white);
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.careers {
  position: relative;
  padding-block: clamp(96px, 11vw, 150px);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.careers .container {
  position: relative;
  z-index: 1;
}

.careers-left {
  max-width: 560px;
}

.careers-title {
  font-size: clamp(38px, 4.8vw, 64px);
}

.careers-left .btn {
  margin-top: 40px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.footer-desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-muted);
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white-soft);
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 15px;
  color: var(--color-muted);
  transition: color 200ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-pink-soft);
}

/* Circular social buttons (X / LinkedIn / Instagram) */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-white-soft);
  transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-pink-soft);
  border-color: var(--color-border-pink);
  box-shadow: 0 0 18px rgba(242, 28, 99, 0.22);
}

/* Global offices */
.footer-offices {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.office-city {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white-soft);
  margin-bottom: 14px;
}

.office-addr {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-muted);
}

.footer-newsletter-copy {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.newsletter-form:focus-within {
  border-color: var(--color-border-pink);
  box-shadow: 0 0 24px rgba(242, 28, 99, 0.14);
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: 15px;
  padding-block: 10px;
}

.newsletter-input::placeholder {
  color: var(--color-muted-dark);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f21c63, #ff3f79);
  color: #fff;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.newsletter-submit:hover,
.newsletter-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242, 28, 99, 0.4);
}

.newsletter-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--color-pink-soft);
  min-height: 1.2em;
}

.footer-bottom {
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: var(--color-muted-dark);
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease,
    transform 700ms var(--ease-reveal);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(58px, 8.6vw, 82px);
  }

  .apps-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Single column: copy reads first again, stats follow */
  .about-left,
  .about-grid .stats {
    order: 0;
  }

  /* 4-across only fits on desktop; 2-up on tablet, hide the peeking arrow */
  .app-cards {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
  .apps-next {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
    max-width: 460px;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE NAV (≤ 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .header-contact {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Full-screen dark menu */
  .main-nav {
    position: fixed;
    inset: 0;
    transform: none;
    left: 0;
    background: rgba(3, 3, 5, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: -1;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-link {
    font-size: 26px;
    font-weight: 600;
  }

  .nav-contact {
    display: inline-flex;
  }

  body.nav-locked {
    overflow: hidden;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .hero {
    min-height: max(820px, 100vh);
  }

  /* Keep the portal visible: bias the image toward its bright centre */
  .hero-bg {
    background-position: 58% center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: end;
    gap: 44px;
    padding-bottom: 88px;
  }

  .hero-title {
    font-size: clamp(52px, 15vw, 64px);
  }

  .hero-right {
    justify-self: start;
  }

  .section-title {
    font-size: clamp(32px, 9vw, 42px);
  }

  .careers-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .principles {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .app-cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Careers copy sits above the crew image: pull image to the bottom */
  .careers {
    align-items: flex-start;
    padding-bottom: 320px;
  }

  #careers.bg-in,
  .no-js #careers {
    background-position: right bottom;
    background-size: auto 62%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-offices {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-newsletter {
    max-width: none;
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg {
    animation: none;
    transform: none;
  }

  .hero-glow,
  .hero-shimmer {
    animation: none;
  }

  .particles,
  .hero-scroll-hint {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   POSITIONS PAGE (positions.html)
   ========================================================================== */
.positions-hero {
  position: relative;
  min-height: max(520px, 64vh);
  display: flex;
  align-items: flex-end;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.95) 0%,
      rgba(3, 3, 5, 0.72) 38%,
      rgba(3, 3, 5, 0.28) 68%,
      rgba(3, 3, 5, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.5) 0%,
      rgba(3, 3, 5, 0.2) 45%,
      rgba(3, 3, 5, 0.92) 100%
    ),
    url("images/crew-flag-shore.webp");
}

.no-webp .positions-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 5, 0.95) 0%,
      rgba(3, 3, 5, 0.72) 38%,
      rgba(3, 3, 5, 0.28) 68%,
      rgba(3, 3, 5, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.5) 0%,
      rgba(3, 3, 5, 0.2) 45%,
      rgba(3, 3, 5, 0.92) 100%
    ),
    url("images/crew-flag-shore.png");
}

.positions-hero .container {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: clamp(48px, 7vh, 84px);
}

.positions-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.96;
  font-weight: 720;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.positions-copy {
  margin-top: 26px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--color-white-soft);
  max-width: 52ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(3, 3, 5, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white-soft);
}

.meta-pill svg {
  width: 15px;
  height: 15px;
  color: var(--color-pink-bright);
  flex: none;
}

/* ---------- Open roles ---------- */
.roles {
  padding-block: clamp(88px, 10vw, 140px);
}

.roles-intro {
  max-width: 720px;
}

.role-cards {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.role-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 46px);
  background: linear-gradient(
    180deg,
    rgba(38, 12, 25, 0.62),
    rgba(14, 6, 11, 0.72)
  );
  border: 1px solid rgba(242, 28, 99, 0.16);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 28, 99, 0.45);
  box-shadow: var(--shadow-pink);
}

.role-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 680;
  letter-spacing: -0.015em;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.role-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 6px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.role-tag-pink {
  color: var(--color-pink-soft);
  border-color: var(--color-border-pink);
}

.role-desc {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 62ch;
}

.role-list {
  margin-top: 18px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.role-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-white-soft);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-pink-bright);
  box-shadow: 0 0 8px rgba(255, 39, 111, 0.7);
}

.role-card .btn {
  justify-self: end;
}

/* ---------- Perks ---------- */
.perks {
  padding-block: clamp(88px, 10vw, 140px);
}

#perks.bg-in,
.no-js #perks {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.72) 0%,
      rgba(3, 3, 5, 0.55) 45%,
      rgba(3, 3, 5, 0.9) 100%
    ),
    url("images/magenta-mist-canyon.webp");
  background-position: center;
}

.no-webp #perks.bg-in {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 3, 5, 0.72) 0%,
      rgba(3, 3, 5, 0.55) 45%,
      rgba(3, 3, 5, 0.9) 100%
    ),
    url("images/magenta-mist-canyon.png");
}

.perks-grid {
  margin-top: clamp(48px, 5.6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4.4vw, 64px) clamp(28px, 3.6vw, 56px);
}

.perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border-pink);
  color: var(--color-pink-bright);
  background: rgba(24, 8, 17, 0.5);
  box-shadow: 0 0 22px rgba(242, 28, 99, 0.18);
}

.perk-icon svg {
  width: 21px;
  height: 21px;
}

.perk-title {
  font-family: var(--font-display);
  margin-top: 18px;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.perk-copy {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ---------- Apply band ---------- */
.apply-band {
  padding-block: clamp(96px, 11vw, 150px);
  text-align: center;
}

.apply-band .section-copy {
  margin-inline: auto;
  max-width: 56ch;
}

.apply-band .btn {
  margin-top: 40px;
}

.apply-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--color-muted-dark);
}

.apply-note a {
  color: var(--color-pink-soft);
}

.apply-note a:hover,
.apply-note a:focus-visible {
  color: var(--color-pink-bright);
}

/* ---------- Positions page responsive ---------- */
@media (max-width: 1024px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .role-card {
    grid-template-columns: 1fr;
  }

  .role-card .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .positions-hero {
    background-position: 72% bottom;
  }

  .perks-grid {
    grid-template-columns: 1fr;
  }
}
