/* The university page.
   Same family as the main site (green, gold, Archivo), dressed for an interview.
   The surface is what I've done. Past the plunge is who I am. */

.uni main { display: block; position: relative; z-index: 1; }
.uni .top-nav a { white-space: nowrap; }
.uni .top { z-index: 50; }

/* A thin gold line under the top bar: how far through the page you are. */
.readbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.readbar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.u-chapter { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-well); margin-bottom: 14px; }
[data-theme="dark"] .u-chapter, .below .u-chapter, .u-record .u-chapter { color: var(--gold); }
/* Headings come up word by word. */
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-w > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---------- The hook ---------- */
.u-hero { position: relative; min-height: calc(100svh - var(--top-h)); display: grid; align-content: start; padding-top: clamp(40px, 7vh, 96px); overflow: hidden; }
.u-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: center; }
.u-hero-copy { grid-column: 1 / span 7; position: relative; }
.u-for { display: inline-block; margin-bottom: 20px; padding: 6px 14px; background: var(--gold); color: var(--ink-green); font-weight: 700; font-size: var(--step-small); letter-spacing: 0.04em; }
.u-for[hidden] { display: none; }
.u-stamp { display: none; }
.js .u-stamp { display: grid; position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
.u-stamp span { grid-area: 1 / 1; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 1.5rem + 7vw, 8rem); line-height: 0.9; letter-spacing: -0.045em; color: var(--ink); opacity: 0; }
.u-stamp span:nth-child(4) { color: var(--gold-well); }
[data-theme="dark"] .u-stamp span:nth-child(4) { color: var(--gold); }
.u-hero h1 { font-size: clamp(2.8rem, 1.6rem + 5.4vw, 6.4rem); letter-spacing: -0.04em; line-height: 0.92; }
.u-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; font-weight: 500; max-width: 27em; color: var(--muted); }
.u-promise { margin-top: 22px; font-size: 1.0625rem; color: var(--muted); }
.u-promise b { color: var(--ink); font-weight: 700; }
.u-hero .hello { grid-column: 8 / -1; }
.u-hero .hello-ring { width: min(100%, 440px, 54svh); }
.skyfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 0; }
.h-drone { position: absolute; z-index: 1; right: 9%; bottom: 28%; width: clamp(110px, 12vw, 180px); height: auto; overflow: visible; }
.h-bob { transform-origin: 160px 60px; }
.h-prop { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .h-bob { animation: hover 4s ease-in-out infinite; }
  .h-prop { animation: blade 0.12s linear infinite; }
  @keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
  @keyframes blade { to { transform: scaleX(-1); } }
}
.u-dive-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: rgba(235, 236, 229, 0.92); color: var(--ink-green); font-weight: 700; text-decoration: none; border-radius: 22px; }
.u-dive-cue .ico { fill: none; width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .u-dive-cue .ico { animation: nudge 1.6s ease-in-out infinite; } @keyframes nudge { 50% { transform: translateY(4px); } } }

/* ---------- Depth 1 and 2 ---------- */
.u-numbers { padding-block: clamp(80px, 10vw, 150px) clamp(40px, 5vw, 80px); }
.u-stats { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) 32px; }
.u-stats li { display: grid; gap: 6px; padding-top: 18px; border-top: 3px solid var(--surface); position: relative; }
.u-stats li::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--gold); transform: scaleX(var(--line, 0)); transform-origin: left; }
.u-stats b { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--gold-well); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .u-stats b { color: var(--gold); }
.u-stats span { color: var(--muted); max-width: 22em; }

.u-why { padding-block: clamp(56px, 7vw, 110px); }
.u-why-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: start; }
.u-why-grid > div:first-child { grid-column: 1 / span 5; }
.u-why-body { grid-column: 7 / -1; display: grid; gap: 18px; font-size: var(--step-lead); line-height: 1.4; }
.u-why-body[hidden] { display: none; }
.u-why b { font-weight: 700; }
.u-why-tag { font-size: var(--step-small) !important; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-well); }
[data-theme="dark"] .u-why-tag { color: var(--gold); }

/* ---------- Depth 3: the timeline on the board ---------- */
.u-record { margin-top: clamp(32px, 4vw, 64px); }
.u-record .traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* The board is the same green in both themes, so the trace lines get one colour that shows on it in both. */
.u-record { --trace-line: #2b6249; }
.anim .u-timeline li { opacity: 0.5; }
.anim .u-timeline li.on { opacity: 1; }

/* Saturn: small, in the hero's top corner. After 10 s it gets a gold outline and asks to be noticed. */
.saturn { position: absolute; z-index: 3; right: clamp(16px, 2.4vw, 36px); top: clamp(10px, 2vh, 22px); width: 58px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: transform 200ms var(--ease-out); }
.saturn svg { width: 50px; height: 32px; overflow: visible; }
.saturn:active { transform: scale(0.94); }
.saturn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; transform: scale(0.8); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.saturn.nudge::before { opacity: 1; transform: none; }
.saturn-tag { position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%; white-space: nowrap; padding: 6px 12px; background: var(--gold); color: var(--ink-green); font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 0.875rem; opacity: 0; transform: translateX(8px); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: none; }
.saturn-tag::after { content: ""; position: absolute; left: 100%; top: 50%; translate: 0 -50%; border: 6px solid transparent; border-left-color: var(--gold); }
.saturn.nudge .saturn-tag { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .saturn:hover { transform: rotate(-8deg) scale(1.08); } }
@media (prefers-reduced-motion: no-preference) {
  .saturn svg { animation: saturn-bob 6s ease-in-out infinite; }
  @keyframes saturn-bob { 50% { transform: translateY(-4px) rotate(4deg); } }
  .saturn.nudge::before { animation: saturn-ping 1.6s ease-out infinite; }
  @keyframes saturn-ping { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
  .saturn.nudge .saturn-tag { animation: saturn-tag 1.6s ease-in-out infinite; }
  @keyframes saturn-tag { 50% { transform: translateX(-4px); } }
}
.saturn-egg { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050f0b; color: #ebece5; overflow: hidden; }
.saturn-egg::backdrop { background: #050f0b; }
.egg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.egg-say { position: absolute; left: var(--m); right: var(--m); bottom: clamp(48px, 9vh, 96px); display: grid; justify-items: center; gap: 14px; text-align: center; }
.egg-big { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--gold); }
.egg-line { max-width: 30em; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; font-weight: 500; text-wrap: balance; }
.egg-x { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(235, 236, 229, 0.12); color: #ebece5; }
.egg-x .ico { width: 20px; height: 20px; }
@media (max-width: 720px) { .saturn { width: 48px; height: 38px; } .saturn svg { width: 40px; height: 26px; } }
.u-timeline li::before { box-shadow: 0 0 0 0 rgba(227, 180, 60, 0.5); }
.u-timeline li.on::before { animation: solder 900ms var(--ease-out) 1; }
@keyframes solder { 0% { box-shadow: 0 0 0 0 rgba(227, 180, 60, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(227, 180, 60, 0); } }

/* ---------- The plunge ---------- */
.plunge { position: relative; height: 200vh; }
.plunge-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.plunge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plunge-ready { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); letter-spacing: -0.03em; color: var(--ink); }
.plunge-under { position: absolute; left: var(--m); right: var(--m); top: 36%; color: #ebece5; opacity: 0; }
.dive-kicker { font-size: var(--step-lead); color: #a8c2b4; }
.plunge-under h2 { margin-top: 8px; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); }
.plunge-under h2 > span { color: var(--gold); }

/* ---------- Below the surface ---------- */
.abyss, .bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 500ms ease; }
.abyss.on, .bubbles.on { opacity: 1; }
.below {
  --bg: transparent; --ink: #ebece5; --muted: #a8c2b4; --surface: rgba(235, 236, 229, 0.08); --gold-well: var(--gold); --focus: var(--gold);
  position: relative; color: #ebece5;
  background: linear-gradient(#174a38, #0f3628 22%, #0a2419 55%, #05120c);
}
.has-gl .below { background: transparent; }
.below h2 > span { color: var(--gold); }
.below > section { position: relative; z-index: 1; }

/* A dive-computer depth gauge, only while you are under water. A small pill in the corner, out of the way of the words. */
.depth {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: baseline; gap: 8px; padding: 8px 14px;
  background: rgba(5, 18, 12, 0.78); color: var(--gold); border-radius: 18px;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.05rem;
  opacity: 0; pointer-events: none; transition: opacity 400ms ease;
}
.depth::before { content: "Depth"; font-family: var(--text); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a8c2b4; }
.depth b { white-space: nowrap; }
.depth.on { opacity: 1; }

.u-who { padding-block: clamp(72px, 10vw, 150px); }
.u-who-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: center; }
.u-photo-wrap { grid-column: 1 / span 4; position: relative; aspect-ratio: 1; }
.u-photo { position: absolute; inset: 0; border-radius: 50%; background: rgba(235, 236, 229, 0.08); display: grid; place-items: center; text-align: center; padding: 24px; font-size: 0.95rem; box-shadow: 0 0 0 6px rgba(227, 180, 60, 0.35); overflow: hidden; } /* taste-skill-ignore: gold rim, like the hello ring */
.u-photo img { width: 100%; height: 100%; object-fit: cover; }
.u-photo:has(img) { padding: 0; }
.u-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(227, 180, 60, 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .u-ripple { animation: ripple 3.6s ease-out infinite; }
  .u-ripple.r2 { animation-delay: 1.8s; }
  @keyframes ripple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
}
.u-who-grid > div:last-child { grid-column: 6 / -1; }
.u-who-text p { margin-top: 18px; font-size: var(--step-lead); line-height: 1.45; max-width: 30em; }
.u-toward { margin-top: 36px; padding: clamp(20px, 2.4vw, 30px); background: rgba(235, 236, 229, 0.08); max-width: 34em; }
.u-toward h3 { font-size: var(--step-lead); font-stretch: 110%; letter-spacing: -0.02em; color: var(--gold); }
.u-toward ul { margin-top: 14px; display: grid; gap: 12px; }
.u-toward li { position: relative; padding-left: 24px; font-size: var(--step-body); }
.u-toward li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.u-say { padding-block: clamp(80px, 10vw, 150px) clamp(40px, 5vw, 80px); }
.u-who-text p:first-child { margin-top: 24px; }

.u-love { padding-top: clamp(40px, 6vw, 96px); }
.c-water { --c-bg: #2f6f62; --c-ink: #ebece5; }
.c-fly { --c-bg: #e3b43c; --c-ink: #17382b; }
.c-music { --c-bg: #c3cbb2; --c-ink: #17382b; }
.c-food { --c-bg: #c98b4a; --c-ink: #17382b; }
.c-lead { --c-bg: #ebece5; --c-ink: #17382b; }
.c-game { --c-bg: #4d8a6a; --c-ink: #ebece5; }
.below .clock-head p { color: #a8c2b4; }
.below .cart[aria-pressed="true"] { outline-color: var(--gold); }
/* The Takeoff cartridge asks to be pressed. */
.fly-slot { position: relative; }
.fly-tag { position: absolute; left: 50%; top: -14px; z-index: 2; transform: translateX(-50%); padding: 4px 10px; border-radius: 12px; background: #ebece5; color: #17382b; font-weight: 700; font-family: var(--display); font-stretch: 108%; font-size: 0.85rem; white-space: nowrap; pointer-events: none; }
.fly-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #ebece5; transform: rotate(45deg); }
.fly-slot.flown .fly-tag { display: none; }
.fly-slot::before { content: ""; position: absolute; inset: -5px; border: 2px dashed rgba(227, 180, 60, 0.75); pointer-events: none; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
@media (prefers-reduced-motion: no-preference) {
  .fly-slot:not(.flown) .cart { animation: beacon 1.8s ease-out infinite; }
  .fly-slot:not(.flown) .fly-tag { animation: bob 1.4s ease-in-out infinite; }
  @keyframes beacon { 0% { filter: drop-shadow(0 0 0 rgba(227, 180, 60, 0.9)); } 70% { filter: drop-shadow(0 0 14px rgba(227, 180, 60, 0)); } 100% { filter: none; } }
  @keyframes bob { 50% { transform: translate(-50%, -5px); } }
}

.hh-eq { display: flex; align-items: end; gap: 4%; height: 64px; }
.hh-eq i { flex: 1; height: 30%; background: var(--gold); transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .hh-eq i { animation: eq 900ms ease-in-out infinite alternate; }
  .hh-eq i:nth-child(3n) { animation-duration: 700ms; } .hh-eq i:nth-child(3n+1) { animation-duration: 1100ms; animation-delay: -300ms; } .hh-eq i:nth-child(4n) { animation-delay: -500ms; }
  @keyframes eq { to { height: 100%; } }
  .hh-roll { animation: spinroll 12s linear infinite; }
  @keyframes spinroll { to { transform: rotate(360deg); } }
}
.hh-roll { width: 74px; height: 74px; }

.u-build { padding-block: clamp(56px, 8vw, 120px); }
.u-projects { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.u-projects li { display: grid; gap: 8px; align-content: start; padding: 22px; background: rgba(5, 18, 12, 0.35); border-top: 3px solid var(--gold); }
.u-projects b { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; }
.u-projects span { color: #c2d2c6; }
.u-full { margin-top: 36px; }

/* Extra room at the bottom so the closing line can light up fully, with the seaweed growing in the space. */
.u-seabed { padding-block: clamp(96px, 14vw, 200px) max(34vh, 220px); }
.below::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 0; pointer-events: none; background: linear-gradient(rgba(120, 100, 60, 0), rgba(120, 100, 60, 0.2)); }
.u-seabed-line { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.u-seabed-line .w { transition: opacity 300ms ease, color 300ms ease; }
.js .u-seabed-line .w { opacity: 0.18; }
.js .u-seabed-line .w.on { opacity: 1; }
.u-seabed-line .w.key { color: var(--gold); }
.u-contact { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.u-big-ico { height: 68px; padding: 0 24px 0 18px; display: inline-flex; flex-direction: row; align-items: center; gap: 14px; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.25rem; line-height: 1; text-decoration: none; white-space: nowrap; background: rgba(235, 236, 229, 0.1); color: #ebece5; transition: background-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out); }
.u-big-ico .ico { width: 36px; height: 36px; }
@media (max-width: 520px) { .u-big-ico { height: 60px; padding: 0 18px 0 14px; gap: 10px; font-size: 1.125rem; } .u-big-ico .ico { width: 32px; height: 32px; } }
@media (hover: hover) and (pointer: fine) { .u-big-ico:hover { background: var(--gold); color: var(--ink-green); transform: translateY(-3px); } }
.u-surface { gap: 10px; min-height: 56px; padding: 0 22px; font-weight: 700; background: var(--gold); color: var(--ink-green); }
.u-surface .ico { fill: none; }
/* From the main site's letter: the signature, and the way to reach me. */
.u-sign { margin-top: 28px; display: grid; }
.below .sign span { color: #a8c2b4; }
.u-reach { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; color: #c2d2c6; max-width: 30em; }
.u-imprint { margin-top: clamp(72px, 9vw, 128px); padding-top: 32px; border-top: 2px solid rgba(235, 236, 229, 0.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.u-made { display: grid; gap: 6px; font-size: var(--step-body); line-height: 1.4; color: #c2d2c6; }
.u-made b { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.125rem; color: #ebece5; letter-spacing: -0.01em; }
.u-more { display: flex; flex-wrap: wrap; gap: 10px; }
.u-more a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; background: rgba(235, 236, 229, 0.08); color: #ebece5; font-weight: 600; font-size: 1.0625rem; text-decoration: none; transition: background-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out); }
.u-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .u-more a:hover { background: var(--gold); color: var(--ink-green); } .u-more a:hover svg { transform: translateX(3px); } .u-more a:last-child:hover svg { transform: translateY(-2px); } }
.u-more a:active { transform: scale(0.97); }
@media (max-width: 520px) { .u-more { width: 100%; } .u-more a { flex: 1 1 auto; justify-content: space-between; } }

/* ---------- The trip ---------- */
.flight { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a1a13; color: #ebece5; overflow: hidden; --focus: var(--gold); }
.flight[open] { display: block; }
.flight::backdrop { background: #0a1a13; }
.f-bars { position: absolute; z-index: 5; left: 16px; right: 72px; top: 18px; display: flex; gap: 6px; }
.f-bars span { flex: 1; height: 4px; border-radius: 2px; background: rgba(235, 236, 229, 0.22); overflow: hidden; }
.f-bars i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.f-close { position: absolute; z-index: 6; right: 12px; top: 6px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(235, 236, 229, 0.12); }
.f-close .ico { fill: none; }
.f-stage { position: absolute; inset: 0; }
.f-scene { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; padding: 70px var(--m) 60px; opacity: 0; visibility: hidden; transform: scale(0.97); text-align: center; overflow: hidden; transition: opacity 380ms ease, transform 520ms var(--ease-out), visibility 0s 380ms; }
.f-scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity 380ms ease, transform 520ms var(--ease-out), visibility 0s; }
.f-cap { position: relative; z-index: 3; max-width: 26em; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.f-tap { position: absolute; z-index: 4; top: 64px; bottom: 0; background: transparent; }
.f-prev { left: 0; width: 30%; } .f-next { right: 0; width: 70%; }
.f-tap:focus-visible { outline: none; }
.f-hint { position: absolute; z-index: 5; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 0.85rem; color: rgba(235, 236, 229, 0.55); pointer-events: none; }
.f-land .btn { position: relative; z-index: 5; }

/* 1. The boarding pass */
.pass { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto; width: min(640px, 92vw); background: #ebece5; color: #17382b; text-align: left; border-radius: 16px; overflow: hidden; }
.pass-main { padding: 22px 26px; display: grid; gap: 16px; }
.pass-air { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1b4a36; }
.pass-air .ico { width: 18px; height: 18px; transform: rotate(90deg); }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-route p { display: grid; }
.pass-route p:last-child { text-align: right; }
.pass-route b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.pass-route span { font-size: 0.85rem; color: #44584c; }
.pass-plane { width: 32px; height: 32px; fill: #e3b43c; transform: rotate(90deg); }
.pass-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.pass-grid p { display: grid; gap: 2px; }
.pass-grid span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #44584c; }
.pass-grid b { font-weight: 700; font-size: 1rem; }
.pass-stub { position: relative; width: 120px; padding: 22px 16px; background: #e3b43c; display: grid; align-content: space-between; justify-items: center; border-left: 3px dashed #17382b; }
.pass-stub p { font-weight: 700; font-size: 0.85rem; writing-mode: vertical-rl; }
.barcode { width: 70px; height: 70px; background: repeating-linear-gradient(90deg, #17382b 0 2px, transparent 2px 4px, #17382b 4px 5px, transparent 5px 8px, #17382b 8px 11px, transparent 11px 13px); }
@media (max-width: 560px) { .pass { grid-template-columns: 1fr; } .pass-stub { width: auto; border-left: 0; border-top: 3px dashed #17382b; display: flex; justify-content: space-between; align-items: center; } .pass-stub p { writing-mode: horizontal-tb; } .pass-grid { grid-template-columns: 1fr 1fr; } }

/* 2. Takeoff */
.f-takeoff .f-sky { position: absolute; inset: 0; background: linear-gradient(#050f0b, #0d261b 55%, #1b4a36); }
.f-mw { position: absolute; left: 0; top: 0; width: 100%; height: 80%; pointer-events: none; }
/* Arrival: the destination fills the screen, the words sit at the bottom over a dark scrim. */
.f-arrive { align-content: end; padding-bottom: clamp(80px, 13vh, 130px); gap: 16px; }
.f-place { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transform-origin: 50% 40%; }
.f-arrive::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 1; pointer-events: none; background: linear-gradient(rgba(5,15,11,0), rgba(5,15,11,0.88)); } /* taste-skill-ignore: scrim under text on a picture */
.f-arrive-name { position: relative; z-index: 3; display: grid; justify-items: center; gap: 6px; }
.f-arrive-name span { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); color: var(--gold); }
.f-arrive-name b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 2rem + 6vw, 7rem); letter-spacing: -0.04em; line-height: 0.95; color: #ebece5; }
.f-arrive .f-cap { color: #ebece5; }
.f-moon { position: absolute; right: 16%; top: 14%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, rgba(168,194,180,.55) 0 9%, transparent 10%), radial-gradient(circle at 62% 58%, rgba(168,194,180,.5) 0 7%, transparent 8%), radial-gradient(circle at 44% 72%, rgba(168,194,180,.4) 0 5%, transparent 6%), #ebece5; box-shadow: 0 0 40px 10px rgba(235,236,229,.18), 0 0 120px 40px rgba(235,236,229,.08); } /* taste-skill-ignore: moonlight */
.f-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.f-city { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(transparent 55%, #0b1912 55%), repeating-linear-gradient(90deg, transparent 0 7px, rgba(227,180,60,.75) 7px 9px, transparent 9px 23px, rgba(235,236,229,.55) 23px 24px, transparent 24px 41px); background-size: 100% 100%, 100% 30%; background-repeat: no-repeat; background-position: 0 0, 0 70%; }
.f-takeoff .stars { position: absolute; inset: 0 0 40% 0; animation: twinkle 2.6s ease-in-out infinite alternate; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #ebece5 50%, transparent), radial-gradient(1px 1px at 60% 20%, #ebece5 50%, transparent), radial-gradient(1.5px 1.5px at 80% 40%, #e3b43c 50%, transparent), radial-gradient(1px 1px at 35% 12%, #ebece5 50%, transparent), radial-gradient(1px 1px at 90% 15%, #ebece5 50%, transparent); opacity: 0.7; }
.f-takeoff .stars.s2 { transform: translate(7%, 9%) scale(-1, 1); animation-delay: -1.3s; }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
.runway { position: absolute; left: -10%; right: -10%; bottom: 0; height: 82%; background: #0d1d16; overflow: hidden; }
.runway .centre { position: absolute; left: 0; right: 0; top: 46%; height: 6px; background: repeating-linear-gradient(90deg, #ebece5 0 60px, transparent 60px 120px); }
.runway .lights { position: absolute; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, #e3b43c 0 6px, transparent 6px 46px); }
.runway .lights.l { top: 14%; } .runway .lights.r { bottom: 14%; }
.jet-wrap { position: absolute; z-index: 2; left: 6%; bottom: 25%; width: min(46vw, 420px); transform-origin: 70% 70%; will-change: transform; }
.jet { display: block; width: 100%; height: auto; }
.jet-trail { position: absolute; right: 92%; top: 46%; width: 70%; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(240,86,58,0), rgba(240,86,58,.25) 50%, rgba(244,207,106,.7)); filter: blur(3px); opacity: 0; }
.jet-glow { animation: engine 0.18s ease-in-out infinite alternate; }
@keyframes engine { to { opacity: 0.45; } }
.f-takeoff .f-cap { position: absolute; top: 18%; left: 0; right: 0; margin: auto; }

/* 3. The window */
.window { position: relative; z-index: 2; width: min(320px, 62vw); aspect-ratio: 3 / 4; border-radius: 46% / 36%; background: #d7d9cf; padding: 22px; box-shadow: inset 0 0 0 10px #c3c6ba; } /* taste-skill-ignore: the window frame */
.window-view { position: relative; width: 100%; height: 100%; border-radius: 44% / 34%; overflow: hidden; background: linear-gradient(#5d8fb0, #b9d3df 70%, #ebece5); }
.window-shade { position: absolute; left: 22px; right: 22px; top: 22px; height: 18%; border-radius: 44% 44% 0 0 / 60% 60% 0 0; background: #c3c6ba; }
.cloud { position: absolute; height: 18%; border-radius: 50px; background: #fff; opacity: 0.9; filter: blur(1px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 50%; height: 140%; left: 15%; top: -60%; } .cloud::after { width: 40%; height: 120%; right: 12%; top: -40%; }
.c1 { width: 60%; top: 55%; left: 10%; } .c2 { width: 45%; top: 72%; left: 60%; } .c3 { width: 70%; top: 40%; left: 80%; } .c4 { width: 50%; top: 82%; left: -20%; }
.f-window.on .cloud { animation: drift 5s linear infinite; }
.f-window.on .window { animation: cabin 3s ease-in-out infinite; }
@keyframes cabin { 50% { transform: translateY(-6px) rotate(-0.6deg); } }
.f-window.on .c2 { animation-duration: 3.6s; } .f-window.on .c3 { animation-duration: 6.4s; } .f-window.on .c4 { animation-duration: 4.4s; }
@keyframes drift { from { transform: translateX(60%); } to { transform: translateX(-160%); } }
.wing { position: absolute; left: -10%; bottom: 8%; width: 90%; height: 14%; background: linear-gradient(#ebece5, #b9bcb0); clip-path: polygon(0 40%, 100% 0, 100% 30%, 0 100%); }

/* 4. The announcement */
.chime { display: flex; gap: 10px; }
.chime i { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.f-announce.on .chime i { animation: ding 1s ease-out 2; }
.f-announce.on .chime i:nth-child(2) { animation-delay: 0.25s; }
@keyframes ding { 0% { transform: scale(0.6); opacity: 0.4; } 30% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); } }
.announce { display: grid; gap: 14px; }
.announce li { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 1rem + 3vw, 3.2rem); letter-spacing: -0.02em; }
.announce li[lang="ar"] { font-family: "Noto Sans Arabic", var(--text); font-weight: 700; letter-spacing: 0; }
.announce span { font-family: var(--text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; padding: 4px 8px; border-radius: 6px; background: rgba(227, 180, 60, 0.18); color: var(--gold); }

/* 5. The departures board */
.flipboard { width: min(700px, 94vw); background: #050c09; padding: 18px 20px 22px; border-radius: 10px; box-shadow: inset 0 0 0 2px #1c3329; } /* taste-skill-ignore: board bezel */
.fb-head { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #a8c2b4; margin-bottom: 12px; }
.fb-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.fb-time, .fb-gate { font-family: var(--display); font-stretch: 112%; font-weight: 700; color: #a8c2b4; font-size: 1.1rem; }
.fb-dest { display: flex; gap: 4px; justify-content: center; }
.fb-dest b { display: grid; place-items: center; width: clamp(20px, 5vw, 40px); height: clamp(30px, 7vw, 56px); background: #12211a; color: var(--gold); font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.1rem, 0.7rem + 2vw, 2.1rem); border-radius: 4px; position: relative; overflow: hidden; }
.fb-dest b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #050c09; }

/* 6. Landing */
.land-plane { width: 46px; height: 46px; fill: var(--gold); transform: rotate(135deg); }
.f-land-big { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 2rem + 6vw, 7rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--gold); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1023px) {
  .u-hero-copy, .u-hero .hello { grid-column: 1 / -1; }
  .u-hero .hello { justify-self: start; }
  .u-hero { padding-bottom: 32vh; }
  .u-why-grid > div:first-child, .u-why-body { grid-column: 1 / -1; }
  .u-stats { grid-template-columns: 1fr 1fr; }
  .u-photo-wrap { grid-column: 1 / span 5; }
  .u-who-grid > div:last-child { grid-column: 6 / -1; }
}
@media (max-width: 720px) {
  .u-stats, .u-projects { grid-template-columns: 1fr; }
  .u-photo-wrap { grid-column: 1 / -1; width: min(70vw, 280px); }
  .u-who-grid > div:last-child { grid-column: 1 / -1; }
  .u-hero .hello-ring { width: min(80vw, 330px); }
  .sea { height: 26%; }
  .h-drone { right: 6%; bottom: 20%; }
  .u-dive-cue { bottom: 10px; }
  .depth { bottom: 12px; right: 12px; padding: 6px 12px; font-size: 0.9rem; }
  .plunge { height: 175vh; }
}
