/* Steloro — one full-screen landing page. Colours come from the logo: navy
   stele, slate stone, silver highlights and olive gold. */

:root {
  --navy: #11273b;
  --navy-deep: #0a1826;
  --silver: #c9d3db;
  --gold-light: #d2c55a;
  --gold-glow: 199, 184, 52;
  color-scheme: dark;
}
html, body { background: var(--navy-deep); }
body { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(var(--gold-glow), .35); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 14.5px; line-height: 1; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-130%); transition: transform 1s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(130%); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-white { background: #f4f6f8; color: var(--navy); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55); }
.btn-white:hover { background: #fff; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .65); }
.btn-dark { background: var(--navy); color: #fff; }

/* ── The scene: edge to edge, the whole screen ───────────────────────── */
.scene { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: var(--navy-deep); }
.scene.no-gl { background: radial-gradient(70% 60% at 60% 70%, rgba(var(--gold-glow), .16), transparent 60%), linear-gradient(180deg, #0a1826 0%, #1d3346 55%, #52677a 72%, #0c1a26 100%); }
canvas#sky { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.scene.ready canvas#sky { opacity: 1; }

.world { position: absolute; inset: 0; transition: transform 1.2s var(--ease); pointer-events: none; }
.world svg.road { position: absolute; inset: 0; width: 100%; height: 100%; }
.halo { position: absolute; left: 59.6%; bottom: 31%; width: 34%; aspect-ratio: 1.6; translate: -50% 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--gold-glow), .30), rgba(201, 211, 219, .10) 45%, transparent 72%); filter: blur(10px); mix-blend-mode: screen; animation: breathe 6s ease-in-out infinite; }
.stele { position: absolute; left: 59.6%; bottom: 28.6%; height: 13.5%; aspect-ratio: 280 / 355; translate: -50% 0; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 34%); mask-image: linear-gradient(to top, transparent 0%, #000 34%); }
.stele svg { width: 100%; height: 100%; overflow: visible; }
.stele .stripe { filter: drop-shadow(0 0 5px rgba(var(--gold-glow), .95)) drop-shadow(0 0 18px rgba(var(--gold-glow), .6)); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 4px rgba(var(--gold-glow), .8)) drop-shadow(0 0 12px rgba(var(--gold-glow), .35)); } }
@keyframes breathe { 50% { opacity: .72; } }
.spark { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 9px; background: #f1e9b4; box-shadow: 0 0 10px 3px rgba(var(--gold-glow), .7); opacity: 0; animation: travel var(--dur, 7s) var(--delay, 0s) cubic-bezier(.15, .55, .3, 1) infinite; }
@keyframes travel {
  0% { left: var(--x0); top: 104%; transform: scale(1.7); opacity: 0; }
  8% { opacity: 1; }
  80% { opacity: .9; }
  100% { left: 59.6%; top: 70.5%; transform: scale(.18); opacity: 0; }
}

/* The opening: a percentage while a line traces the frame. */
.frame { position: absolute; inset: 22px 24px; pointer-events: none; }
.frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.frame rect { fill: none; stroke: rgba(201, 211, 219, .4); stroke-width: 1.5; }
.count { position: absolute; left: 64px; bottom: 56px; font: 300 clamp(56px, 7vw, 104px)/1 "Jakarta"; letter-spacing: -.04em; color: rgba(225, 231, 236, .8); font-variant-numeric: tabular-nums; transition: opacity .6s ease, transform .8s var(--ease), filter .6s; }
.scene.loaded .count { opacity: 0; transform: translateY(-10px); filter: blur(8px); }

/* ── What sits inside the frame ──────────────────────────────────────── */
.ui { position: absolute; inset: 22px 24px; padding: clamp(20px, 2.6vw, 38px) clamp(22px, 3vw, 48px); display: grid; grid-template-rows: auto 1fr auto; }
.ui > * { opacity: 0; }
.scene.loaded .ui > * { animation: in 1.1s var(--ease) forwards; }
.scene.loaded .ui > :nth-child(2) { animation-delay: .1s; }
.scene.loaded .ui > :nth-child(4) { animation-delay: .3s; }
@keyframes in { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav .brand img { height: 26px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: rgba(225, 231, 236, .82); }
.nav .mail { position: relative; transition: color .3s; }
.nav .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--gold-light); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav .mail:hover { color: #fff; }
.nav .mail:hover::after { transform: scaleX(1); transform-origin: left; }

h1 { align-self: center; margin: 0; font-weight: 400; font-size: clamp(54px, 7.4vw, 118px); line-height: .98; letter-spacing: -.045em; color: #f4f6f8; text-shadow: 0 2px 40px rgba(5, 14, 22, .25); }
h1 span { display: block; }
h1 .dim { color: rgba(201, 211, 219, .52); }
.gold { background: linear-gradient(95deg, #e2d77c, #c4b737 55%, #a9a514); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene.loaded h1 span { animation: line 1.2s var(--ease) both; }
.scene.loaded h1 span:nth-child(2) { animation-delay: .12s; }
.scene.loaded h1 span:nth-child(3) { animation-delay: .24s; }
@keyframes line { from { opacity: 0; transform: translateY(40px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

.spacer { display: none; }

.bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.aside { max-width: 320px; }
.about { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(225, 231, 236, .82); }
.about b { color: #fff; font-weight: 600; white-space: nowrap; }
.legal { margin: 14px 0 0; font-size: 12px; color: rgba(201, 211, 219, .55); }

.glass { background: rgba(17, 39, 59, .48); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); box-shadow: inset 0 0 0 1px rgba(201, 211, 219, .18), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.card { width: min(100%, 380px); padding: 20px; border-radius: 22px; }
.label { margin: 2px 4px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(201, 211, 219, .6); }
.proj { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-radius: 14px; transition: background .3s, box-shadow .3s; }
.proj + .proj { margin-top: 6px; }
a.proj { background: rgba(201, 211, 219, .08); box-shadow: inset 0 0 0 1px rgba(201, 211, 219, .14); }
a.proj:hover { background: rgba(201, 211, 219, .13); box-shadow: inset 0 0 0 1px rgba(var(--gold-glow), .45); }
.pi b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.pi small { display: block; margin-top: 1px; font-size: 12.5px; color: rgba(201, 211, 219, .65); }
.proj.soon .pi b { color: rgba(225, 231, 236, .78); }
.tag { flex: none; padding: 5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: rgba(201, 211, 219, .7); box-shadow: inset 0 0 0 1px rgba(201, 211, 219, .24); }
.tag.live { display: inline-flex; align-items: center; gap: 6px; color: #e6dc94; background: rgba(var(--gold-glow), .16); box-shadow: none; }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 9px; background: var(--gold-light); box-shadow: 0 0 8px rgba(var(--gold-glow), .9); }
a.tag.dl { color: var(--navy); background: #f4f6f8; box-shadow: none; }
.card .btn-block { margin-top: 14px; }

/* ── Phones ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .scene { height: auto; min-height: 100svh; }
  .frame { inset: 10px; }
  .ui { position: relative; inset: auto; min-height: 100svh; display: flex; flex-direction: column; padding: 22px 22px 20px; }
  .nav .mail { display: none; }
  h1 { margin-top: 4svh; font-size: clamp(44px, 13.5vw, 64px); }
  .spacer { display: block; flex: 1; min-height: 22svh; }
  .bottom { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .card { width: 100%; padding: 14px; }
  .label { margin-bottom: 8px; }
  .proj { padding: 10px 12px; }
  .proj + .proj { margin-top: 4px; }
  .pi b { font-size: 15px; }
  .pi small { font-size: 12px; }
  .card .btn-block { margin-top: 10px; padding: 13px; }
  .aside { max-width: none; }
  .legal { margin-top: 8px; }
  /* Keep the road in proportion: the marker shows between the headline and the projects. */
  .world { inset: auto; left: 50%; top: 17svh; height: 44svh; aspect-ratio: 1.45; translate: -59.6% 0; }
  .count { left: 30px; bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) { .spark { display: none; } }
