/* BryceAlexThomas.com: a quiet link page that turns into each brand when a link is tapped.
   At rest it follows SOAR's look (Jost, widely tracked capitals, hairlines). Theme colours come from links.js. */

:root {
  --page-bg: #fafaf8;
  --page-ink: #1b2230;
  --page-muted: #6b7384;
  --page-rule: rgba(27, 34, 48, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--page-bg); transition: background-color .6s var(--ease); }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--page-bg);
  color: var(--page-ink);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
button { font: inherit; }

/* ---------- At rest ---------- */
.home {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(56px + var(--st)) calc(5vmin + 12px + var(--sr)) calc(64px + var(--sb)) calc(5vmin + 12px + var(--sl));
  text-align: center;
}
.intro { margin-bottom: clamp(30px, 6vh, 52px); }
/* The name is underlined by a pen stroke: heavier where the pen lands, thinning to a flick at the end,
   drawn left to right just after the page loads. */
.name-text { position: relative; display: inline-block; }
.underline {
  position: absolute; left: -.15em; top: calc(100% + 1px); width: calc(100% + .1em); height: 16px;
  display: block; overflow: visible; fill: currentColor; opacity: .88;
  clip-path: inset(-20% 100% -20% 0); -webkit-clip-path: inset(-20% 100% -20% 0);
  animation: pen 1s cubic-bezier(.4, .05, .6, .95) 2.85s forwards;   /* after the links; steady pull, quick flick off the end */
}
@keyframes pen { to { clip-path: inset(-20% -2% -20% 0); -webkit-clip-path: inset(-20% -2% -20% 0); } }
.intro { padding-bottom: 12px; }
.name {
  margin: 0;
  font-weight: 500; font-size: clamp(16px, 4.6vw, 21px); line-height: 1.5;
  letter-spacing: .34em; padding-left: .34em; text-transform: uppercase;
}

.links { display: flex; flex-direction: column; align-items: center; }
.link {
  position: relative; display: block;
  padding: 20px 0 20px .3em;
  font-weight: 500; font-size: 14px; line-height: 1.25; letter-spacing: .3em; text-transform: uppercase;
  color: var(--page-ink); text-decoration: none;
  transition: color .6s var(--ease), opacity .45s var(--ease), transform .6s var(--ease), filter .45s var(--ease);
  outline: none;
}
.link .label { position: relative; display: inline-block; padding-bottom: 6px; }
.link .label::after {
  content: ""; position: absolute; left: 0; right: .3em; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform .5s var(--ease);
}
.link .brand {
  position: absolute; left: 0; right: 0; top: calc(100% - 15px);
  font-weight: 400; font-size: 11px; letter-spacing: .26em; padding-left: .26em; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.link:focus-visible .label::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .link:hover .label::after { transform: scaleX(1); }
  .link:hover .brand { opacity: .8; transform: none; }
  .link.glow-ink { text-shadow: 0 0 18px rgba(160, 190, 255, .55); }
}

/* ---------- Desktop: no links, just a note (heart, "Love you.", a nudge to use a phone, Instagram) ---------- */
.desk-note { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .links { display: none; }
  /* Bigger on a computer: the name and its brush stroke lead, everything else scales with them. */
  /* The name sits dead centre; the note hangs below it. */
  html { --nm: clamp(34px, 3.4vw, 56px); }
  html .name { font-size: var(--nm); }
  html .underline { height: .62em; top: calc(100% + .08em); }
  html .intro { margin-bottom: 0; padding-bottom: 0; position: relative; z-index: 2; }
  html .home { padding-top: 60px; padding-bottom: 60px; }
  .desk-note {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; left: 0; right: 0; top: calc(50% + var(--nm) * 2.2);
  }
  .heart { width: 44px; height: 44px; fill: var(--page-ink); transition: fill .6s var(--ease); transform-origin: 50% 60%; }
  /* Computers: frame, name, underline, then the heart, "Love you.", the mobile line and Instagram one by one. */
  html .underline { animation-delay: 2.35s; }
  .heart { animation: rise .8s var(--ease) 3.4s backwards, beat 1.1s ease-in-out 5s 2; }
  .love { animation: rise .8s var(--ease) 3.55s backwards; }
  .better { animation: rise .8s var(--ease) 3.7s backwards; }
  .ig { animation: rise .8s var(--ease) 3.85s backwards; }
  .love {
    margin: 30px 0 0; font-weight: 500; font-size: 21px; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase;
    color: var(--page-ink); transition: color .6s var(--ease);
  }
  .better { margin: 14px 0 0; font-weight: 400; font-size: 18px; letter-spacing: .04em; color: var(--page-muted); transition: color .6s var(--ease); }
  .ig { margin-top: 40px; padding: 10px; color: var(--page-ink); line-height: 0; transition: transform .35s var(--ease); }
  .ig svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .ig .dot { fill: currentColor; stroke: none; }
  .ig:hover, .ig:focus-visible { transform: translateY(-2px) scale(1.06); outline: none; }
  html.flipping .heart { transition: fill .45s ease .78s; }
  html.flipping .love, html.flipping .better, html.flipping .ig { transition: color .45s ease .78s; }
}
/* ---------- Graffiti wall (computers): hovering the Instagram icon turns the page into a New York street wall.
   The picture covers the screen (cropped, never stretched). It starts as the wall with years of old paint; each piece
   of the mural then sprays on (a soft mask wipes across it while it comes into focus); the finished picture settles
   in last so every edge is exact. ---------- */
.graffiti {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; background: #2a2622;
  opacity: 0; transition: opacity .35s var(--ease);
  --mx: 0; --my: 0;
}
.graffiti.on { opacity: 1; }
.scene {
  position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100vh * var(--ar))); height: auto;
  transform: translate(-50%, -50%);
  translate: calc(var(--mx) * -10px) calc(var(--my) * -6px); transition: translate .6s ease-out;
}
.graffiti.on .scene { animation: settle 4.5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: translate(-50%, -50%) scale(1.04); } to { transform: translate(-50%, -50%) scale(1); } }
.scene img { position: absolute; display: block; user-select: none; }
.s-old, .s-final { left: 0; top: 0; width: 100%; height: 100%; }
.s-final { opacity: 0; }
.graffiti.on .s-final { animation: wallFade .5s ease var(--d) forwards; }
@keyframes wallFade { to { opacity: 1; } }
.scene::after {   /* film grain, so the photo reads as a photo on big screens */
  content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* One piece of the mural: a soft-edged mask sweeps across it on a slight diagonal while it sharpens. */
.gl {
  opacity: 0;
  -webkit-mask-image: linear-gradient(105deg, #000 40%, transparent 60%); mask-image: linear-gradient(105deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.graffiti.on .gl { animation: sprayOn var(--sp) cubic-bezier(.45, 0, .3, 1) var(--d) forwards; }
@keyframes sprayOn {
  0% { opacity: 0; filter: blur(5px) saturate(.6); -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  20% { opacity: 1; }
  100% { opacity: 1; filter: none; -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* The colour washes and splatter between pieces: a haze that blooms in. */
.gl.wash { -webkit-mask-image: none; mask-image: none; }
.graffiti.on .gl.wash { animation: bloom calc(var(--sp) * 1.6) ease-out var(--d) forwards; }
@keyframes bloom { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: none; } }

/* The middle steps aside: the real name and the note fade out under the painted name; Instagram becomes a sticker. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .name-text, .heart, .love, .better { transition: opacity .35s var(--ease), filter .35s var(--ease); }
  html.walled .name-text, html.walled .heart, html.walled .love, html.walled .better { opacity: 0; filter: blur(4px); }
  .ig { position: relative; z-index: 3; border-radius: 50%; transition: transform .35s var(--ease), background-color .3s, box-shadow .3s, color .3s; }
  html.walled .ig {
    background: #f6f3ec; color: #1b2230;
    box-shadow: 0 0 0 6px #f6f3ec, 0 4px 6px 6px rgba(0, 0, 0, .35), 0 14px 24px 6px rgba(0, 0, 0, .25);
  }
  html.walled .frame { opacity: 0; transition: opacity .3s; }
}

@media (prefers-reduced-motion: reduce) {
  .graffiti.on .scene { animation: none; }
  .graffiti.on .gl, .graffiti.on .gl.wash { animation: wallFade .4s ease var(--d) forwards; -webkit-mask-image: none; mask-image: none; }
  .scene { translate: none !important; }
}

/* Shorter laptop screens: keep everything under the name inside the frame. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) and (max-height: 820px) {
  .desk-note { top: calc(50% + var(--nm) * 1.9); }
  .heart { width: 34px; height: 34px; }
  .love { margin-top: 18px; }
  .better { margin-top: 8px; }
  .ig { margin-top: 18px; }
}

@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 40% { transform: scale(.96); } 60% { transform: scale(1.1); } }

/* A soft arrival on first load (no hint of what a tap does). */
/* Opening order: the frame draws first (0.15–1.85s), then the name (1.85s), then the links one by one, then the brush underline.
   (On computers: name, underline, then the note's pieces one by one; see the desktop section.) */
.intro { animation: rise .9s var(--ease) 1.85s backwards; }
.links > * { animation: rise .8s var(--ease) backwards; animation-delay: calc(2s + var(--i, 0) * 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Leaving the list: everything but the tapped link drifts away. */
body.open .intro { opacity: 0; transform: translateY(-14px); filter: blur(4px); transition: opacity .45s var(--ease), transform .7s var(--ease), filter .45s var(--ease); }
body.open .intro, body.open .link:not(.active) { pointer-events: none; }
body.open .link:not(.active) { opacity: 0; filter: blur(4px); }
body.open .above { transform: translateY(-16px); }
body.open .below { transform: translateY(16px); }
.intro { transition: opacity .6s var(--ease) .15s, transform .8s var(--ease) .15s, filter .6s var(--ease) .15s; }
.link.active { color: var(--t-ink); transition: color .8s var(--ease) .2s; }
.link.active .label::after { transform: scaleX(0); }

/* Opening inverted: the page first draws itself black with white lettering (frame, name, brush underline, links;
   all done by about 2s), then the background fades from black to paper over two seconds while
   the lettering switches from white to ink quickly at the midpoint, so it stays readable the whole way. */
html.inverse-intro { --page-bg: #000; --page-ink: #fff; --page-muted: #c3c6cc; --page-rule: rgba(255, 255, 255, .32); }
html.flipping, html.flipping body { transition: background-color 2s cubic-bezier(.45, 0, .55, 1), color .45s ease .78s; }
html.flipping .link { transition: color .45s ease .78s; }
html.flipping .frame { transition: border-color .45s ease .78s, opacity .6s var(--ease) .2s; }

/* The frame: a hairline border set in from the edges, shown only on the home screen. */
.frame {
  position: fixed; z-index: 2; pointer-events: none;
  top: calc(5vmin + var(--st)); right: calc(5vmin + var(--sr)); bottom: calc(5vmin + var(--sb)); left: calc(5vmin + var(--sl));
  border: 2px solid var(--page-ink); opacity: .7;
  transition: opacity .6s var(--ease) .2s, border-color .6s var(--ease);
  animation: frameIn 1.6s var(--ease) .1s backwards;
}
body.open .frame { opacity: 0; transition: opacity .35s var(--ease), border-color .6s var(--ease); }
@keyframes frameIn { from { opacity: 0; transform: scale(1.012); } }
/* Where the browser can, the frame draws itself clockwise from the top, like a pen going round the edge. */
@property --fp { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.can-draw .frame {
  -webkit-mask: conic-gradient(from 0deg, #000 var(--fp), transparent 0);
  mask: conic-gradient(from 0deg, #000 var(--fp), transparent 0);
  animation: frameDraw 1.7s cubic-bezier(.55, 0, .3, 1) .15s both;
}
.can-draw .frame.drawn { -webkit-mask: none; mask: none; }      /* no seam where the line meets itself */
@keyframes frameDraw { from { --fp: 0deg; } to { --fp: 360deg; } }

/* ---------- The opened brand ---------- */
/* Phone edges. iPhone Safari (iOS 26+) ignores theme-color and tints its status-bar and toolbar areas from the solid
   background-color of the frontmost fixed element touching each screen edge; it skips anything 10px tall or less and
   doesn't always notice a colour change, so these samplers are 11px, painted invisibly (background-clip: text with
   no text), kept on top of everything, and nudged to 12px for a frame after each change (see refreshEdges in app.js).
   Android Chrome uses the theme-color meta instead. */
.edge {
  position: fixed; left: 0; right: 0; height: 0; z-index: 2147483647; pointer-events: none;
  border: 0; outline: 0; box-shadow: none; transition: none;
  background-clip: text; -webkit-background-clip: text;
}
.edge.top { top: 0; background-color: var(--edge-top, var(--page-bg)); }
.edge.bottom { bottom: 0; background-color: var(--edge-bottom, var(--page-bg)); }
@supports (-webkit-touch-callout: none) {
  .edge { height: 11px; }
  html[data-edge-refresh] .edge { height: 12px; }
}

.theme-bg {
  position: fixed; inset: 0; z-index: 1; overflow: hidden;
  background: var(--t-bg, #000);
  background-color: var(--t-edge, transparent);
  visibility: hidden; pointer-events: none;
}
.theme-bg.on { visibility: visible; }
/* Each brand page fades into its exact edge colours at the top and bottom, so the phone's tinted bars read as part of
   the page rather than two bands. */
.theme-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--t-edge-top, transparent) 0, transparent var(--t-fade, 12vh)),
    linear-gradient(to top, var(--t-edge-bottom, transparent) 0, transparent var(--t-fade, 12vh));
}

.stage {
  position: fixed; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--st)) calc(20px + var(--sr)) calc(24px + var(--sb)) calc(20px + var(--sl));
  text-align: center; color: var(--t-ink);
  visibility: hidden; pointer-events: none;
}
.stage.on { visibility: visible; }
.stage.on.in { pointer-events: auto; }
.stage-inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 520px; }
.stage-inner > * { opacity: 0; }

.mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.stage-eyebrow {
  margin: 0 0 18px; font-family: var(--t-line-font); font-style: var(--t-line-style); font-weight: var(--t-line-weight);
  font-size: var(--t-line-size); line-height: 1.25; color: var(--t-line-color, var(--t-ink));
}
.logo-box { position: relative; width: var(--logo-w, 200px); line-height: 0; }
.logo-box img { display: block; width: 100%; height: auto; }
.logo-box .invert { filter: invert(1) drop-shadow(0 2px 12px rgba(60, 130, 160, .22)); }

.stage-line {
  margin: 26px 0 0; max-width: 28ch;
  font-family: var(--t-line-font); font-style: var(--t-line-style); font-weight: var(--t-line-weight);
  font-size: var(--t-line-size); line-height: 1.35; letter-spacing: .01em;
  color: var(--t-line-color, var(--t-ink));
}
/* A line made of separate words, split by hairlines (196 Global). Wraps into two even rows when it won't fit. */
.stage-list { max-width: none; }
.stage-list .row { display: block; white-space: nowrap; }
.stage-list .row + .row { margin-top: .35em; }
.stage-list .sep {
  display: inline-block; width: 1px; height: .95em; margin: 0 .75em; vertical-align: -.12em;
  background: currentColor; opacity: .55;
}
.stage-list.fit { white-space: nowrap; }

.stage-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: 50px; margin-top: 32px; padding: 15px 28px 15px calc(28px + var(--t-btn-track));
  border: 1px solid var(--t-btn-border, var(--t-accent)); border-radius: 2px;
  background: transparent; color: var(--t-ink); cursor: pointer;
  font-family: var(--t-btn-font); font-weight: var(--t-btn-weight); font-size: var(--t-btn-size, 12px);
  letter-spacing: var(--t-btn-track); text-transform: uppercase; text-decoration: none; line-height: 1;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.stage-action .arr { letter-spacing: 0; transition: transform .35s var(--ease); }
.stage-action:hover, .stage-action:focus-visible, .stage-action:active {
  background: var(--t-accent); border-color: var(--t-accent); color: var(--t-accent-ink); outline: none;
}
.stage-action:hover .arr, .stage-action:focus-visible .arr { transform: translateX(4px); }
/* Gold foil (BLEU): a metallic gold with a light that keeps travelling across it while it's highlighted. */
.stage-action.foil { position: relative; overflow: hidden; isolation: isolate; }
.stage-action.foil::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 250, 230, .85) 46%, rgba(255, 255, 255, 0) 60%) 0 0 / 250% 100% no-repeat,
    linear-gradient(100deg, #8c6a2c 0%, #c9a45a 14%, #f7e5b5 28%, #d2ae66 40%, #a17d3c 54%, #e8cf96 68%, #f9ecc6 76%, #b8924c 90%, #8c6a2c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, .7), inset 0 -1px 0 rgba(90, 60, 20, .45);
  transition: opacity .45s var(--ease);
}
.stage-action.foil:hover, .stage-action.foil:focus-visible, .stage-action.foil:active {
  background: transparent; border-color: #e3c98c; color: #0f2742;
  box-shadow: 0 8px 28px rgba(196, 160, 90, .35), 0 0 0 1px rgba(240, 215, 164, .35);
  text-shadow: 0 1px 0 rgba(255, 245, 215, .55);
}
.stage-action.foil:hover::before, .stage-action.foil:focus-visible::before, .stage-action.foil:active::before {
  opacity: 1; animation: foil 2.6s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes foil { from { background-position: 130% 0, 0 0; } to { background-position: -130% 0, 0 0; } }

.stage-note {
  margin: 12px 0 0; font: 500 12px/1.4 "Jost", system-ui, sans-serif; letter-spacing: .08em; color: var(--t-muted);
}
.stage-note.flash { animation: flash .9s var(--ease); }
/* A message that waits for a tap (coffee): space is kept so nothing jumps when it appears. */
.stage-note.waiting, .stage-note.shown { min-height: 4.2em; margin-top: 16px; }   /* room for 3 lines on small phones */
.stage.in .stage-note.shown { opacity: 1; animation: up .6s var(--ease) both; }
.stage.in .stage-note.shown.flash { animation: flash .9s var(--ease); }
@keyframes flash { 30% { transform: scale(1.06); color: var(--t-ink); } }
.stage-back {
  margin-top: 26px; padding: 12px 10px; border: 0; background: none; cursor: pointer;
  font: 500 12px/1 "Jost", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase;
  color: var(--t-muted); outline: none;
}
.stage-back span { position: relative; display: inline-block; padding-bottom: 5px; }
.stage-back span::after { content: ""; position: absolute; left: 0; right: .3em; bottom: 0; height: 1px; background: currentColor; opacity: .5; }
.stage-back:hover, .stage-back:focus-visible { color: var(--t-ink); }

/* A link's footer (BLEU only): pinned to the bottom of its opened page, quiet until needed. */
.stage-foot {
  position: absolute; left: 0; right: 0; bottom: calc(5vmin + 14px + var(--sb));
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font: 500 11px/1.25 "Jost", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-muted); opacity: 0;
}
.foot-eho { display: inline-flex; align-items: center; gap: 9px; text-align: left; font-size: 9px; letter-spacing: .16em; }
.foot-eho .eho { width: 26px; height: 26px; fill: currentColor; flex: none; }
.foot-phone { color: inherit; text-decoration: none; padding: 10px 0; letter-spacing: .12em; font-size: 12px; }
.foot-phone:hover, .foot-phone:focus-visible { color: var(--t-ink); }
.stage.in .stage-foot { animation: up .9s var(--ease) 1.85s both; }
.stage.in.out .stage-foot { animation: out .35s var(--ease) both; }

/* Entrance, timed to land just after the tapped link reaches the middle. */
.stage.in .stage-eyebrow { animation: up .9s var(--ease) .9s both; }
.stage.in .mark { animation: markIn 1.15s var(--ease) .78s both; }
.stage.in .stage-line { animation: up .9s var(--ease) 1.3s both; }
.stage.in .stage-action { animation: up .9s var(--ease) 1.45s both; }
.stage.in .stage-note { animation: up .9s var(--ease) 1.55s both; }
.stage.in .stage-back { animation: up .9s var(--ease) 1.7s both; }
.stage.in.out .stage-inner > * { animation: out .35s var(--ease) both; }
@keyframes markIn { from { opacity: 0; transform: scale(.9); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes out { from { opacity: 1; } to { opacity: 0; transform: scale(.98); } }

/* ---------- BLEU: navy, gold hairlines, a gold light across the logo, slow rising gold dust ---------- */
.gold-rule {
  width: min(220px, 58vw); height: 1px;
  background: linear-gradient(90deg, transparent, #c4a05a 30%, #f0d7a4 50%, #c4a05a 70%, transparent);
  transform: scaleX(0);
}
.gold-rule.top { margin-bottom: 26px; }
.gold-rule.bottom { margin-top: 26px; }
.stage.in .gold-rule { animation: draw 1.4s cubic-bezier(.7, 0, .2, 1) 1.05s forwards; }
@keyframes draw { to { transform: scaleX(1); } }
.sheen {
  position: absolute; inset: 0;
  -webkit-mask: var(--logo-url) center / 100% 100% no-repeat; mask: var(--logo-url) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(240, 215, 164, .95) 50%, transparent 62%) 0 0 / 300% 100% no-repeat;
  background-position: 100% 0;
}
.stage.in .sheen { animation: sheen 6s ease-in-out 1.9s infinite; }
@keyframes sheen { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
.dust {
  position: absolute; bottom: -8px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: #f0d7a4; box-shadow: 0 0 6px rgba(240, 215, 164, .8); opacity: 0;
  animation: dust var(--d) linear var(--delay) infinite;
}
@keyframes dust { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: var(--o); } 80% { opacity: var(--o); } 100% { opacity: 0; transform: translate(var(--sway), -105vh); } }

/* ---------- SOAR (Ink & Sand): its clouds at golden hour, warmed toward sand, the Ink wordmark writing itself in ---------- */
.gc-sky {   /* a still frame of the live clouds (already graded to golden hour): the fallback, and what shows while they load */
  position: absolute; inset: -6%;
  background: url("media/soar-clouds-still.webp") center / cover no-repeat;
  animation: gcDrift 40s ease-in-out infinite alternate;
}
.gc-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.gc-gl.on { opacity: 1; }
.gc-wash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 250, 242, .35) 0%, rgba(255, 250, 242, 0) 55%), rgba(250, 245, 236, .12);
}
@keyframes gcDrift { from { transform: scale(1.04) translate3d(-1.5%, 0, 0); } to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }
.write { clip-path: inset(-10% 100% -10% 0); -webkit-clip-path: inset(-10% 100% -10% 0); }
.stage.in .write { animation: write 2s cubic-bezier(.55, .1, .3, 1) .95s forwards; }
@keyframes write { to { clip-path: inset(-10% -2% -10% 0); -webkit-clip-path: inset(-10% -2% -10% 0); } }

/* A call to action as SOAR does it: plain capitals with a thin sand underline, never a box or pill. */
.stage-action.textlink { border: 0; padding: 14px 6px 12px calc(6px + var(--t-btn-track)); min-height: 48px; }
.stage-action.textlink .tl { position: relative; padding-bottom: 7px; }
.stage-action.textlink .tl::after {
  content: ""; position: absolute; left: 0; right: var(--t-btn-track); bottom: 0; height: 1.5px; background: var(--t-accent);
  transform: scaleX(0); transform-origin: 50% 50%;
}
.stage.in .stage-action.textlink .tl::after { animation: draw .9s cubic-bezier(.6, 0, .3, 1) 1.9s forwards; }
.stage-action.textlink:hover, .stage-action.textlink:focus-visible, .stage-action.textlink:active { background: none; color: var(--t-ink); }
.stage-action.textlink:hover .tl::after, .stage-action.textlink:active .tl::after { height: 2px; }

/* ---------- 196 Global: black, drifting stars, slow aura ---------- */
.aura { position: absolute; left: 50%; top: 46%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; pointer-events: none; }
.aura.a { background: radial-gradient(circle, rgba(96, 36, 170, .5) 0%, rgba(52, 14, 96, .22) 22%, rgba(0, 0, 0, 0) 46%); animation: auraA 15s ease-in-out infinite alternate; }
.aura.b { background: radial-gradient(circle, rgba(20, 130, 160, .38) 0%, rgba(8, 52, 64, .18) 20%, rgba(0, 0, 0, 0) 42%); animation: auraB 19s ease-in-out infinite alternate; }
@keyframes auraA { from { transform: translate(-14vw, -10vh) scale(.9); } to { transform: translate(10vw, 6vh) scale(1.12); } }
@keyframes auraB { from { transform: translate(16vw, 12vh) scale(1.05); } to { transform: translate(-8vw, -6vh) scale(.88); } }
.nebula, .stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .4) 100%); }
.glow img { filter: drop-shadow(0 0 14px rgba(200, 220, 255, .28)); }
.glow::before {
  content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 150, 255, .22) 0%, rgba(70, 40, 160, .1) 35%, rgba(0, 0, 0, 0) 65%);
  animation: breathe 5s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }

/* ---------- Coffee: late night. Deep maroon dark, a hanging lamp that flickers on and keeps flickering over the cup ---------- */
.lamp-glow {
  position: absolute; left: 50%; top: 36%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 125, .26) 0%, rgba(150, 40, 35, .12) 16%, rgba(70, 10, 14, .06) 28%, rgba(0, 0, 0, 0) 42%);
  opacity: 0; animation: lampOn 1.4s linear .95s forwards, flicker 6.5s linear 2.4s infinite;
}
.grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cup-art { width: min(188px, 50vw); color: var(--t-ink); }
.cup-line { display: block; width: 100%; height: auto; overflow: visible; }
.cup-line .cord { stroke: currentColor; stroke-width: 1.2; opacity: .55; }
.cup-line .shade { fill: #1a0508; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cup-line .bulb { fill: #ffe2b0; }
.lamp-light, .cup-line .bulb { opacity: 0; }
.stage.in .lamp-light, .stage.in .cup-line .bulb { animation: lampOn 1.4s linear .95s forwards, flicker 6.5s linear 2.4s infinite; }
/* The bulb catches, stutters, then settles, and every few seconds it wavers like an old lamp late at night. */
@keyframes lampOn { 0% { opacity: 0; } 12% { opacity: .8; } 18% { opacity: .1; } 30% { opacity: .9; } 36% { opacity: .35; } 52% { opacity: 1; } 100% { opacity: 1; } }
@keyframes flicker {
  0%, 100% { opacity: 1; } 8% { opacity: .82; } 9% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: .55; } 43% { opacity: .95; }
  44.5% { opacity: .68; } 46% { opacity: 1; } 77% { opacity: 1; } 78% { opacity: .86; } 80% { opacity: 1; }
}
.cup-lines { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cup-line .surface { fill: currentColor; opacity: .18; }
.stage.in .cup-lines .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLn 1.5s cubic-bezier(.5, 0, .3, 1) .8s forwards; }
.stage.in .cup-lines .ln:nth-child(3) { animation-delay: 1.25s; }
.stage.in .cup-lines .ln:nth-child(4), .stage.in .cup-lines .ln:nth-child(5) { animation-delay: 1.05s; }
@keyframes drawLn { to { stroke-dashoffset: 0; } }
.steam { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .55; animation: sway 6s ease-in-out infinite alternate; }
.wisp { stroke-dasharray: .3 .7; stroke-dashoffset: .3; animation: wispRise 3.8s linear 1.6s infinite both; }
.wisp.w2 { animation-delay: 2.6s; animation-duration: 4.3s; }
.wisp.w3 { animation-delay: 3.3s; animation-duration: 4s; }
@keyframes wispRise { from { stroke-dashoffset: .3; } to { stroke-dashoffset: -1; } }
@keyframes sway { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }

/* ---------- Larger screens: a touch more presence ---------- */
@media (min-width: 900px) {
  .name { font-size: 24px; }
  .link { font-size: 15px; padding: 21px 0 21px .3em; }
  .logo-box { width: calc(var(--logo-w, 200px) * 1.25); }
  .cup-art { width: 210px; }
  .stage-line { font-size: calc(var(--t-line-size) * 1.12); }
}

/* ---------- Reduced motion: a plain fade, nothing walking or drifting ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .links > *, .frame, .desk-note, .heart, .love, .better, .ig { animation: none; }
  .underline { animation: none; clip-path: none; -webkit-clip-path: none; }
  .can-draw .frame { animation: none; -webkit-mask: none; mask: none; }
  body.open .above, body.open .below, body.open .intro { transform: none; }
  body.open .intro, body.open .link:not(.active) { filter: none; }
  .stage.in .stage-inner > * { animation: fade .45s ease .15s both; }
  .stage.in.out .stage-inner > * { animation: out .25s ease both; }
  .stage.in .stage-foot { animation: fade .45s ease .15s both; }
  .stage.in.out .stage-foot { animation: out .25s ease both; }
  .gold-rule { transform: none; }
  .write { clip-path: none; -webkit-clip-path: none; }
  .theme-bg *, .theme-bg *::before, .mark *, .mark *::before { animation: none !important; }
  .stage-action.foil::before { animation: none !important; }
  .stage-action.textlink .tl::after { animation: none; transform: none; }
  .dust { opacity: var(--o); transform: translateY(calc(-1 * var(--ry))); }
  .cup-lines .ln { stroke-dasharray: none; }
  .wisp { stroke-dasharray: none; opacity: .45; }
  .lamp-light, .cup-line .bulb, .lamp-glow { opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* No JavaScript: a plain list of the links */
.links-plain { list-style: none; margin: 0; padding: 0; line-height: 2.4; font-size: 15px; letter-spacing: .06em; }
.links-plain a { color: inherit; }
