/* Theme: the page turns dark and light as sections pass the middle of the window ------------- */
@property --paper { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #eef3ff; }
@property --ink   { syntax: "<color>"; inherits: true; initial-value: #0a1a4f; }
@property --soft  { syntax: "<color>"; inherits: true; initial-value: #4a5a8c; }
@property --rule  { syntax: "<color>"; inherits: true; initial-value: #d3ddf7; }
@property --mark  { syntax: "<color>"; inherits: true; initial-value: #1f4bff; }
@property --bar   { syntax: "<color>"; inherits: true; initial-value: #a9bbf0; }
@property --hl    { syntax: "<color>"; inherits: true; initial-value: #cfdbff; }
@property --l0    { syntax: "<color>"; inherits: true; initial-value: #e4ebfc; }
@property --l1    { syntax: "<color>"; inherits: true; initial-value: #b5c6ff; }
@property --l2    { syntax: "<color>"; inherits: true; initial-value: #7f9bff; }
@property --l3    { syntax: "<color>"; inherits: true; initial-value: #4a6dff; }
@property --l4    { syntax: "<color>"; inherits: true; initial-value: #1f4bff; }

body {
  transition: --paper 0.9s ease, --panel 0.9s ease, --ink 0.9s ease, --soft 0.9s ease, --rule 0.9s ease, --mark 0.9s ease,
    --bar 0.9s ease, --hl 0.9s ease, --l0 0.9s ease, --l1 0.9s ease, --l2 0.9s ease, --l3 0.9s ease, --l4 0.9s ease;
  overflow-x: clip;
}
body[data-theme="dark"] {
  --paper: #060912; --panel: #0d1430; --ink: #eef2ff; --soft: #9aa7d1; --rule: #1b2650; --mark: #5b7dff; --bar: #34457f; --hl: #1c2b66;
  --l0: #121a3a; --l1: #243a8a; --l2: #3556d8; --l3: #5f80ff; --l4: #a3b6ff;
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Cursor: a blue dot with a soft ring that trails it ------------------------------------------ */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.25s; }
.cur-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #1f4bff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(31, 75, 255, 0.45); }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(31, 75, 255, 0.55); transition: opacity 0.25s, width 0.2s, height 0.2s, margin 0.2s, background-color 0.2s; }
body[data-theme="dark"] .cur-dot { background: #6f8dff; box-shadow: 0 0 0 2px rgba(6, 9, 18, 0.9), 0 2px 10px rgba(111, 141, 255, 0.5); }
body[data-theme="dark"] .cur-ring { border-color: rgba(143, 168, 255, 0.6); }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
.cur-ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(31, 75, 255, 0.12); }
.cur-ring.is-drag { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(31, 75, 255, 0.18); }
.cur-ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* Superwired: a Mac with a browser window you can drag around -------------------------------- */
.sw { background: transparent; padding: clamp(4rem, 9vw, 7rem) 16px clamp(5rem, 9vw, 8rem); display: grid; justify-items: center; }
.mac { width: min(100%, 92vw, 84rem); display: grid; justify-items: center; transform-origin: 50% 30%; will-change: transform; }
.mac-screen { width: 100%; padding: clamp(6px, 1vw, 16px); background: #0e1426; border-radius: clamp(12px, 1.8vw, 26px); box-shadow: 0 40px 90px rgba(10, 26, 79, 0.2); }
.mac-display {
  position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: clamp(5px, 0.8vw, 12px); color: #fff; touch-action: pan-y;
  background:
    radial-gradient(70% 90% at 12% 105%, #0a2490 0%, transparent 60%),
    radial-gradient(60% 80% at 95% -10%, #9ab6ff 0%, transparent 58%),
    radial-gradient(40% 50% at 55% 55%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(155deg, #1b49dd 0%, #3f6cf5 38%, #7ea0ff 62%, #1535b0 100%);
}
.mac-display::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 120% 60% at 30% 130%, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px); pointer-events: none; }
.mac-bar {
  position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.4rem);
  padding: clamp(0.3rem, 0.7vw, 0.5rem) clamp(0.7rem, 1.6vw, 1.2rem); background: rgba(8, 20, 70, 0.34); backdrop-filter: blur(14px);
  font-size: clamp(0.58rem, 0.95vw, 0.8rem); color: #fff;
}
.mac-apple { width: 1.15em; height: 1.15em; }
.mac-menu { display: flex; gap: 1.1em; } .mac-menu b { font-weight: 700; }
.mac-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.mac-dots { display: flex; gap: 0.45em; } .mac-dots i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; } .mac-dots i:nth-child(3) { background: #28c840; }
.mac-neck { width: 16%; height: clamp(22px, 5vw, 70px); background: linear-gradient(#cfd5e3, #e6eaf3); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.mac-foot { width: 30%; height: clamp(5px, 0.8vw, 10px); background: #d5dbe8; border-radius: 0 0 8px 8px; }

.win {
  --x: 0px; --y: 0px; position: absolute; z-index: 2; left: 50%; top: 52%; width: min(66%, 46rem);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); border-radius: clamp(8px, 1.1vw, 14px); overflow: hidden;
  background: #0b1f6b; box-shadow: 0 30px 70px rgba(2, 10, 50, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2); transition: box-shadow 0.2s;
}
.win.is-dragging { box-shadow: 0 44px 90px rgba(2, 10, 50, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.3); }
.win-bar { display: flex; align-items: center; gap: 0.9em; padding: clamp(0.4rem, 0.8vw, 0.65rem) clamp(0.6rem, 1.2vw, 0.9rem); background: #f2f4fa; color: #3a4668; font-size: clamp(0.58rem, 0.95vw, 0.8rem); cursor: grab; touch-action: none; user-select: none; }
.win.is-dragging .win-bar { cursor: grabbing; }
.win-url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5em; max-width: 24em; margin-inline: auto; padding: 0.3em 0.8em; background: #fff; border-radius: 6px; color: #3a4668; }
.win-url svg { width: 0.95em; height: 0.95em; color: #6b7699; }
.win-body {
  display: grid; justify-items: center; gap: clamp(0.7rem, 1.8vw, 1.5rem); padding: clamp(1.4rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.5rem);
  background: radial-gradient(90% 120% at 50% 110%, #2664ff 0%, transparent 70%), linear-gradient(180deg, #0b1f6b, #0a1850); text-align: center;
}
.sw-lockup { display: flex; align-items: center; justify-content: center; gap: clamp(0.6rem, 1.6vw, 1.4rem); flex-wrap: wrap; }
.sw-founder { font-family: var(--font); font-weight: 850; font-variation-settings: "wdth" 112; font-size: clamp(1.5rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.sw-logo { display: block; }
.sw-logo img { display: block; width: clamp(8.5rem, 26vw, 22rem); height: auto; }
.sw-cap { margin: 0; font-size: clamp(0.82rem, 1.5vw, 1.2rem); font-weight: 560; color: #c9d6ff; }
.sw-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.4rem, 1vw, 0.8rem); }
.pill { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1.1em; border-radius: 999px; background: #fff; color: #0a1a4f; font-weight: 560; font-size: clamp(0.72rem, 1.2vw, 0.95rem); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pill svg { width: 1.05em; height: 1.05em; flex: none; }
.pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(5, 20, 80, 0.35); text-decoration: none; }

.mac-dock {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(0.35rem, 1vw, 0.8rem); transform: translateX(-50%); display: flex; align-items: flex-end; gap: clamp(0.3rem, 0.8vw, 0.6rem);
  padding: clamp(0.25rem, 0.6vw, 0.45rem) clamp(0.4rem, 1vw, 0.7rem); border-radius: clamp(0.6rem, 1.3vw, 1rem);
  background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255, 255, 255, 0.35);
}
.md { --s: 1; position: relative; display: block; flex: none; width: calc(clamp(1.1rem, 3.1vw, 2.5rem) * var(--s)); aspect-ratio: 1; border-radius: 22%; transition: width 0.16s ease-out; }
.mac-dock.is-tracking .md { transition: none; }
.md svg, .md img { display: block; width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 2px 6px rgba(0, 20, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.md img { object-fit: cover; }
.md.is-open::after { content: ""; position: absolute; left: 50%; bottom: -0.38em; width: 0.28em; aspect-ratio: 1; margin-left: -0.14em; border-radius: 50%; background: #fff; }
.md-sep { align-self: stretch; width: 1px; background: rgba(255, 255, 255, 0.4); }

@media (max-width: 40rem) {
  .mac { width: 100%; }
  .mac-display { aspect-ratio: 3 / 3.8; }
  .mac-menu span { display: none; }
  .win { width: 90%; }
}

/* Worth opening: the heading sits on top, the pinned section beneath it ---------------------- */
@property --t0 { syntax: "<color>"; inherits: true; initial-value: #0b1f6b; }
@property --t1 { syntax: "<color>"; inherits: true; initial-value: #4f74f0; }
.wheel-section { position: relative; isolation: isolate; transition: --t0 1s ease, --t1 1s ease; --t0: #0b1f6b; --t1: #4f74f0; }
.wheel-section[data-tint="green"] { --t0: #08432a; --t1: #3fb27a; }
.wheel-section[data-tint="orange"] { --t0: #6f2e0c; --t1: #ee9650; }
.work-head { background: linear-gradient(#060912, var(--t0) 55%); text-align: center; padding: clamp(5.5rem, 11vw, 9rem) var(--gutter) clamp(0.5rem, 2vw, 1.5rem); }
.work-title { margin: 0; font-family: "Great Vibes", cursive; font-weight: 400; color: #fff; font-size: clamp(3.8rem, 11vw, 10rem); line-height: 1.05; letter-spacing: 0; text-shadow: 0 6px 40px rgba(0, 10, 60, 0.35); }
.wheel-pin { position: relative; padding-block: 1.5rem 3rem; }
.tint { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--t0) 0%, var(--t1) 8%, #fff 22%); }
.work-grid { padding-inline: clamp(1rem, 2.4vw, 2.2rem); display: grid; gap: 3rem; }
.wheel, .wheel-hint { display: none; }

.widget-logo { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 27%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); }
.widget-logo img { width: 100%; height: 100%; object-fit: cover; }
.widget-text { display: grid; gap: 0.1rem; min-width: 0; }
.widget-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 108; line-height: 1.15; letter-spacing: -0.01em; }
.widget-text span { font-size: var(--step--1); color: var(--soft); }
.tag { margin-left: 0; }

.panel { display: grid; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.panel-info { display: grid; gap: 1.4rem; align-content: start; }
.panel-head { display: flex; align-items: center; gap: 0.9rem; }
.piece-lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.35; font-weight: 520; text-wrap: balance; max-width: 30ch; color: var(--ink); }

/* a simple chain: each step is a box, an arrow points to the next, the key step is solid blue */
.flow { display: grid; gap: 1.5rem; }
.flow li {
  position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; column-gap: 0.9rem;
  padding: 0.85rem 1.1rem; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(10, 26, 79, 0.06);
}
.flow-n { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--mark); font-weight: 750; font-variant-numeric: tabular-nums; }
.flow-body { display: grid; gap: 0.1rem; min-width: 0; }
.flow b { font-size: 1.15rem; font-weight: 720; font-variation-settings: "wdth" 104; line-height: 1.2; letter-spacing: -0.01em; }
.flow-sub { color: var(--soft); font-size: 0.95rem; line-height: 1.3; }
.flow li.is-key { background: var(--mark); border-color: var(--mark); color: #fff; box-shadow: 0 10px 28px rgba(31, 75, 255, 0.28); }
.flow li.is-key .flow-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.flow li.is-key .flow-sub { color: rgba(255, 255, 255, 0.85); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 1.95rem; top: 100%; width: 2px; height: 1.5rem; background: var(--soft); opacity: 0.45; }
.flow li:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.95rem - 3px); top: calc(100% + 1.5rem - 8px); width: 8px; height: 8px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); opacity: 0.6; z-index: 1;
}

.links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; height: 3rem; padding: 0 1.3rem; border-radius: 12px; font-weight: 640; font-size: 0.98rem;
  background: var(--ink); color: var(--paper); text-decoration: none; border: 1.5px solid var(--ink); transition: transform 0.15s ease, background-color 0.2s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; background: var(--mark); border-color: var(--mark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-white { background: #fff; color: #09090b; border-color: #fff; height: 3.4rem; padding-inline: 1.7rem; font-size: 1.02rem; }
.btn-white:hover { background: #dfe6ff; border-color: #dfe6ff; color: #09090b; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); height: 3.4rem; padding-inline: 1.5rem; }
.btn-line:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.closed { font-size: 0.9rem; color: var(--soft); padding: 0.4rem 0.8rem; border: 1px dashed var(--rule); border-radius: 999px; }

.shots { position: relative; display: grid; gap: 0.9rem; }
.shots img { width: 100%; border-radius: 12px; border: 1px solid rgba(10, 26, 79, 0.14); box-shadow: 0 14px 40px rgba(10, 26, 79, 0.18); background: #fff; }
.shots-phones { grid-template-columns: 1fr 1fr; align-items: start; }
.shots-phones img { border-radius: 22px; }

@media (min-width: 64rem) and (min-height: 38rem) {
  .wheel-track { height: 300vh; }
  .wheel-pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding: 0 0 5.5rem; }
  .tint { background: linear-gradient(var(--t0) 0%, var(--t1) 52%, #fff 100%); }
  .piece-lede { color: #fff; }
  .work-grid { grid-template-columns: clamp(17rem, 19vw, 20.5rem) minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; min-height: 0; }
  .wheel-side { display: block; }
  .wheel { display: block; position: relative; height: 26rem; perspective: 1000px; }
  .wheel li { position: absolute; left: 0; right: 0; top: 50%; transform-origin: 50% 50% -230px; will-change: transform, filter, opacity; }
  .widget {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.15rem; text-decoration: none; background: #fff; border: 1.5px solid var(--rule);
    border-radius: 22px; box-shadow: 0 6px 22px rgba(10, 26, 79, 0.08); transform: translateY(-50%);
  }
  .wheel li.is-active .widget { border-color: var(--mark); box-shadow: 0 10px 34px rgba(31, 75, 255, 0.2); }
  .wheel .widget-logo { width: 3.6rem; height: 3.6rem; }
  .wheel .widget-text b { font-size: 1.3rem; }
  .wheel .widget-text span { font-size: 0.92rem; }
  .widget, .widget-text, .widget-text b { color: #0a1a4f; }
  .widget-text span { color: #4a5a8c; }

  .panels { position: relative; height: 100%; max-height: 44rem; min-height: 0; }
  .panel {
    position: absolute; inset: 0; margin: 0; padding: 0; border: 0; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
    opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  }
  .panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .panel-head { display: none; }
  .panel-info { gap: 1.3rem; }
  .flow { gap: 1.25rem; }
  .flow li:not(:last-child)::after { height: 1.25rem; }
  .flow li:not(:last-child)::before { top: calc(100% + 1.25rem - 8px); }

  .shots { display: block; height: 100%; align-self: stretch; }
  .shots img { position: absolute; transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .shots img:hover { z-index: 5; transform: translateY(-8px) scale(1.025); box-shadow: 0 28px 60px rgba(10, 26, 79, 0.3); }
  .shots-3 img { width: 74%; left: calc(var(--k) * 13%); top: calc(var(--k) * 24%); }
  .shots-2 img { width: 78%; left: calc(var(--k) * 22%); top: calc(var(--k) * 38%); }
  .shots-phones img { width: auto; height: 86%; aspect-ratio: 780 / 1688; left: calc(8% + var(--k) * 34%); top: calc(10% - var(--k) * 8%); }
}
@media (min-width: 64rem) and (min-height: 38rem) and (prefers-reduced-motion: reduce) { .panel, .shots img { transition: none; } }
@media (max-width: 63.99rem), (max-height: 37.99rem) {
  .panels { display: grid; }
  .piece-lede { max-width: 40ch; }
  .shots-phones img { max-width: 100%; }
}

/* My other works: a dock of everything else ----------------------------------------------- */
.others {
  position: relative; overflow: hidden; padding-block: clamp(5rem, 9vw, 8rem) clamp(6rem, 11vw, 9rem); color: #eef2ff;
  background:
    radial-gradient(70% 55% at 50% 0%, #12266f 0%, transparent 70%),
    radial-gradient(55% 40% at 88% 62%, rgba(13, 42, 143, 0.7) 0%, transparent 70%),
    linear-gradient(#050a22 0%, #060d2c 50%, #060912 92%);
}
.others::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(circle, rgba(140, 168, 255, 0.5) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 20%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 45%, #000 20%, transparent 100%);
}
.others-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.others-in { position: relative; z-index: 1; text-align: center; }
.others h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; }
.others-sub { margin: 1rem auto 0; max-width: 46ch; color: #9fb0e4; }
.shelves { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: clamp(1.4rem, 2.4vw, 2rem); justify-items: center; }
.shelf {
  --size: clamp(2.9rem, 4.6vw, 4.2rem); display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.5rem, 0.9vw, 0.8rem); flex-wrap: nowrap;
  height: calc(var(--size) + 1.3rem); padding: 0.65rem 0.9rem; border-radius: 1.5rem; max-width: 100%;
  background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(160, 185, 255, 0.22); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.app { --s: 1; position: relative; flex: none; width: calc(var(--size) * var(--s)); height: calc(var(--size) * var(--s)); transition: width 0.16s ease-out, height 0.16s ease-out; }
.shelf.is-tracking .app { transition: none; }
.app-main { display: block; text-decoration: none; width: 100%; height: 100%; border-radius: 27%; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.app-main img { width: 100%; height: 100%; object-fit: cover; }
.app-main .mono { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: calc(var(--size) * var(--s) * 0.42); font-variation-settings: "wdth" 110; background: linear-gradient(145deg, #2b57ff, #0c1f6b); }
.app-tip {
  position: absolute; left: 50%; bottom: calc(100% + 0.65rem); transform: translateX(-50%); z-index: 4; white-space: nowrap; pointer-events: none;
  background: #fff; color: #0a1a4f; font-size: 0.78rem; font-weight: 600; line-height: 1; padding: 0.45rem 0.65rem; border-radius: 0.5rem; opacity: 0; transition: opacity 0.1s;
}
.app-tip i { font-style: normal; font-weight: 450; color: #5a678f; margin-left: 0.4rem; }
.app:hover .app-tip, .app:focus-within .app-tip { opacity: 1; }
.app-gh {
  position: absolute; z-index: 5; top: -0.9rem; right: -0.9rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #0a1a4f; border: 2px solid #1f4bff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1), background-color 0.15s, color 0.15s;
}
.app-gh svg { width: 1.45rem; height: 1.45rem; }
.app-gh:hover { background: #1f4bff; color: #fff; transform: scale(1.12); text-decoration: none; }
@media (max-width: 52rem) { .shelf { flex-wrap: wrap; height: auto; justify-content: center; } .app, .app-main .mono { transition: none; } }
@media (hover: none) { .app-gh { opacity: 1; transform: scale(0.85); } }

/* The record: dark, with the tools wall beside it ------------------------------------------- */
.layout { background: transparent; }
.rest .timeline { color: var(--ink); }
.chart { border-top-color: var(--ink); }
.row-bar { background: var(--bar); }
.row.is-key .row-bar, .row a:hover .row-bar, .row a:focus-visible .row-bar { background: var(--mark); }
.wall-row img { background: #0f1a46; border: 1px solid var(--rule); }
.hero-next #days { box-shadow: inset 0 -0.42em 0 var(--hl); }
.intro h1, .intro .hero-next, .intro .hero-about { color: var(--ink); }
.intro .graph { background: var(--panel); border-color: var(--rule); }
.clock, .intro-text .clock { color: var(--ink); }
code { background: var(--panel); }

/* Contact and footer, in the style of the Draftex close: a rounded panel, a centred line, a glow at the bottom -- */
.contact { position: relative; padding: clamp(4rem, 8vw, 6rem) 16px 0; color: #fff; background: transparent; }
.closer {
  position: relative; overflow: hidden; border-radius: clamp(1.4rem, 2.6vw, 2rem); border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(60% 55% at 50% 112%, rgba(63, 108, 245, 0.55), transparent 72%), #04060d;
}
.closer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle, rgba(170, 190, 255, 0.55) 1px, transparent 1.4px); background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 55%, #000 10%, transparent 90%); mask-image: radial-gradient(70% 80% at 50% 55%, #000 10%, transparent 90%);
}
.closer-in { position: relative; display: grid; justify-items: center; gap: clamp(1.4rem, 2.4vw, 2rem); text-align: center; padding: clamp(5rem, 11vw, 9rem) var(--gutter) clamp(5rem, 10vw, 8rem); }
.contact-me { display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 2.4vw, 1.8rem); }
.pfp { width: clamp(5rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 6px rgba(91, 125, 255, 0.14), 0 14px 40px rgba(0, 0, 0, 0.5); }
.delusional { margin: 0; font-family: "Caveat", cursive; font-weight: 600; color: #7a96ff; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; transform: rotate(-7deg); }
.contact h2 {
  max-width: 14ch; font-size: clamp(3.2rem, 11vw, 10rem); line-height: 0.98; font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -0.05em;
  background: linear-gradient(#fff 30%, rgba(255, 255, 255, 0.42)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closer .links { justify-content: center; gap: 0.8rem; }
.pillbtn { display: inline-flex; align-items: center; gap: 0.9rem; height: 3.4rem; padding: 0 0.6rem 0 1.5rem; border-radius: 999px; font-weight: 620; font-size: 1rem; text-decoration: none; transition: transform 0.18s ease, background-color 0.2s; }
.pillbtn:hover { transform: translateY(-2px); text-decoration: none; }
.pillbtn-white { background: #f3f4f8; color: #0b0d14; box-shadow: 0 0 40px rgba(120, 150, 255, 0.35); }
.pillbtn-glass { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.pillbtn-glass:hover { background: rgba(255, 255, 255, 0.12); }
.pb-dot { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #0b0d14; color: #fff; }
.pillbtn-glass .pb-dot { background: rgba(255, 255, 255, 0.12); }
.pb-dot svg { width: 1rem; height: 1rem; }
.contact-note { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; }
.contact-note a, .contact-note .copy { color: rgba(255, 255, 255, 0.85); font: inherit; background: none; border: 0; padding: 0; cursor: copy; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.contact .copy-note { color: rgba(255, 255, 255, 0.5); }
.foot { padding: clamp(2rem, 4vw, 3rem) 16px 0; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; overflow: hidden; background: transparent; }
.foot-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem 2rem; }
.foot-name { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 680; font-size: 1.2rem; letter-spacing: -0.02em; }
.foot-name img { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; }
.foot-mid { text-align: center; }
.foot-links { display: flex; justify-content: flex-end; gap: 1.5rem; }
.foot a { color: inherit; text-decoration: none; transition: color 0.15s; }
.foot a:hover { color: #fff; text-decoration: none; }
.giant {
  margin: clamp(1rem, 3vw, 2.5rem) 0 0; text-align: center; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.06em; line-height: 0.82; white-space: nowrap;
  font-size: clamp(5rem, 25vw, 24rem); height: 0.62em; overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.dither-bottom { display: none; }
@media (max-width: 46rem) { .foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .foot-links { justify-content: center; } }

/* Smooth scroll (Lenis) and reveal-on-scroll ------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.lenis { scroll-behavior: auto; }
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
