/* frost.zeropvp.xyz: Frostyh's portfolio. Theme "frost": night ink, glacier blue, frost white,
   one lavender accent (#A98BFF, the ZeroBot/ZeroPvP brand). Motion is transform and opacity only. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 600; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/bricolage-grotesque.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/figtree.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/caveat.woff2) format("woff2"); }

:root {
  --ink: #060a12;
  --ink-2: #0a1120;
  --ink-3: #0f1a2e;
  --frost: #eef6ff;
  --ice: #cfe6ff;
  --glacier: #86ccff;
  --glacier-deep: #3a9be0;
  --mist: #aebfd6;
  --dim: #8396b2;
  --lav: #a98bff;
  --lav-hi: #bba3ff;
  --lav-ink: #12082c;
  --line: rgba(196, 226, 255, .15);
  --line-hi: rgba(226, 242, 255, .34);
  --glass: rgba(170, 210, 255, .065);
  --glass-hi: rgba(200, 228, 255, .12);
  --r-card: 22px;
  --r-row: 14px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mark-arm: var(--glacier);
  --mark-disc: var(--ink-2);
  --mark-f: var(--frost);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lav); color: var(--lav-ink); }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: 10px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--frost); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- liquid glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass) 60%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 18px rgba(190, 225, 255, .06),
    0 18px 40px -18px rgba(0, 0, 0, .7);
  isolation: isolate;
}
/* Specular rim: a lit top-left edge fading out, drawn as a masked border. */
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(170, 215, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: 1;
}
/* Frost: fine ice grain that thickens toward the edges and corners. */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  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.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.94 0 0 0 0 1 0 0 0 2.4 -1.35'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5;
  -webkit-mask: radial-gradient(130% 120% at 50% 45%, transparent 52%, #000 100%);
  mask: radial-gradient(130% 120% at 50% 45%, transparent 52%, #000 100%);
}
[data-lite] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #13203a, #0d1729 70%); }

/* ---------- pills and buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .2s, color .2s;
}
.pill svg { width: 1.1em; height: 1.1em; flex: none; }
.pill-main {
  background: var(--lav); color: var(--lav-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(40, 10, 110, .25), 0 10px 26px -10px rgba(169, 139, 255, .65);
}
.pill-main:hover { background: var(--lav-hi); transform: translateY(-2px) scale(1.03); }
.pill-main:active { transform: translateY(1px) scale(.98); }
.pill-main svg { transition: transform .35s var(--spring); }
.pill-main:hover svg { transform: translate(2px, -2px); }
.pill-glass {
  background: rgba(200, 228, 255, .1); border: 1px solid var(--line-hi); color: var(--frost);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.pill-glass:hover { background: rgba(200, 228, 255, .18); transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(210, 235, 255, .12);
  color: var(--frost); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .3s var(--spring), background-color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: rgba(210, 235, 255, .2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ice); }
.btn-ghost:hover { background: rgba(210, 235, 255, .08); }

/* ---------- hero: one 1440x1080 frame, everything in frame units ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  container-type: size;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(134, 204, 255, .13), transparent 70%),
    radial-gradient(40% 30% at 50% 108%, rgba(134, 204, 255, .07), transparent 70%),
    var(--ink);
}
.frame {
  --u: min(100cqw / 1440, 100cqh / 1080);
  position: absolute; left: 50%; top: 50%;
  width: calc(1440 * var(--u)); height: calc(1080 * var(--u));
  margin-left: calc(-720 * var(--u)); margin-top: calc(-540 * var(--u));
}
.frame > * { position: absolute; }

.topbar {
  left: calc(40 * var(--u)); right: calc(40 * var(--u)); top: calc(26 * var(--u)); height: calc(64 * var(--u));
  display: flex; align-items: center; justify-content: space-between; z-index: 5;
}
.logo { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); text-decoration: none; font: 600 calc(26 * var(--u))/1 var(--display); letter-spacing: -.01em; }
.logo-mark { width: calc(40 * var(--u)); height: calc(40 * var(--u)); transition: transform .8s var(--spring); }
.logo:hover .logo-mark { transform: rotate(60deg); }
.nav {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; gap: calc(4 * var(--u)); padding: calc(6 * var(--u)); border-radius: 999px;
}
.nav a {
  padding: calc(10 * var(--u)) calc(18 * var(--u)); border-radius: 999px; text-decoration: none;
  font-size: calc(16 * var(--u)); font-weight: 500; color: var(--ice); transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(210, 235, 255, .12); color: var(--frost); }
.top-cta { height: calc(46 * var(--u)); padding: 0 calc(22 * var(--u)); font-size: calc(16 * var(--u)); }

.badge {
  top: calc(118 * var(--u)); left: 0; right: 0; margin: 0 auto; width: max-content;
  display: flex; align-items: center; gap: calc(10 * var(--u));
  height: calc(40 * var(--u)); padding: 0 calc(18 * var(--u)) 0 calc(14 * var(--u)); border-radius: 999px;
  font-size: calc(15.5 * var(--u)); font-weight: 500; color: var(--ice); letter-spacing: .01em;
}
.badge svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--glacier); }

.headline {
  top: calc(176 * var(--u)); left: 0; right: 0; margin: 0; text-align: center;
  font: 600 calc(72 * var(--u))/1.06 var(--display); letter-spacing: -.016em; color: var(--frost);
  font-optical-sizing: auto;
}
.headline .line { display: block; }

.subline {
  top: calc(348 * var(--u)); left: 0; right: 0; margin: 0; text-align: center;
  font-size: calc(19 * var(--u)); line-height: 1.52; color: var(--mist);
}
.subline span { display: block; }

/* handwritten notes and their arrows */
.note {
  margin: 0; font: 600 calc(31 * var(--u))/1 var(--hand); color: var(--ice); white-space: nowrap; z-index: 4;
}
.note-cards { left: calc(150 * var(--u)); top: calc(414 * var(--u)); rotate: -7deg; }
.note-cta { left: calc(958 * var(--u)); top: calc(430 * var(--u)); rotate: 5deg; }
.doodles { inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke: var(--ice); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.doodles .doodle path { stroke-width: max(1.6px, calc(2.6 * var(--u))); }
.doodle-m { display: none; }

/* main CTA inside a dashed ring */
.cta-wrap {
  top: calc(456 * var(--u)); left: 0; right: 0; margin: 0 auto; width: calc(232 * var(--u)); height: calc(72 * var(--u));
  display: grid; place-items: center; z-index: 4;
}
.cta-ring {
  position: absolute; inset: 0; border-radius: 999px; border: max(1.5px, calc(2 * var(--u))) dashed rgba(207, 230, 255, .55);
  pointer-events: none;
}
.pill-main { font-size: calc(18 * var(--u)); }
.cta-wrap .pill-main { height: calc(56 * var(--u)); padding: 0 calc(28 * var(--u)); }

/* the reel */
.reel { left: calc(-400 * var(--u)); top: 0; width: calc(2240 * var(--u)); height: 100%; z-index: 2; }
/* soft ends, only ever seen on very wide screens (a static overlay, not a mask: a mask re-composites
   the whole moving reel every frame) */
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(180 * var(--u)); z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage.grabbing { cursor: grabbing; }
.card { position: absolute; left: 0; top: 0; width: 1px; height: 1px; will-change: transform; contain: layout style; }
.card .tile { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; overflow: hidden; background: var(--ink-3); }
.card .poster { position: absolute; left: 0; top: 0; width: 500%; height: 200%; background: url(/assets/media/reel-poster.webp) 0 0 / 100% 100% no-repeat; }
.card canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.card canvas.ready { opacity: 1; }
.card .play {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(235, 246, 255, .42), rgba(170, 205, 240, .16) 60%, rgba(8, 14, 26, .28));
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -6px 12px rgba(6, 12, 24, .25);
  color: #fff; will-change: transform;
}
.card .play svg { width: 46%; height: 46%; margin-left: 8%; }
.reel-src { position: absolute; left: 0; bottom: 0; width: 4px; height: 4px; opacity: .01; pointer-events: none; }

.socials {
  top: calc(948 * var(--u)); left: 0; right: 0; margin: 0 auto; width: max-content; padding: 0; list-style: none;
  display: flex; gap: calc(10 * var(--u)); z-index: 4;
}
.chip {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(42 * var(--u)); padding: 0 calc(16 * var(--u));
  border-radius: 999px; text-decoration: none; font-size: calc(15 * var(--u)); font-weight: 500; color: var(--ice);
  transition: transform .3s var(--spring), color .2s;
}
.chip svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--glacier); }
.chip:hover { transform: translateY(-2px); color: var(--frost); }

/* snow: CSS-only fall, paused when the hero is off screen */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.flake {
  position: absolute; top: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(220, 238, 255, .4) 55%, transparent 72%);
  opacity: var(--o);
  animation: fall var(--d) linear var(--delay) infinite;
}
.flake.crystal { background: none; border-radius: 0; color: rgba(225, 242, 255, .85); }
.flake.crystal svg { width: 100%; height: 100%; animation: spin calc(var(--d) * .6) linear infinite; }
@keyframes fall {
  from { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--sway), calc(var(--fall) * .5), 0); }
  to { transform: translate3d(0, var(--fall), 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero.off .flake, .hero.off .flake svg { animation-play-state: paused; }
[data-lite] .snow { display: none; }

/* before the entrance starts (one frame at most; a timer clears it) */
.intro [data-in], .intro .card, .intro .doodle path { opacity: 0; }

/* ---------- phones: stacked copy, the same reel in a 250px band ---------- */
@media (max-width: 820px) {
  .hero { height: auto; min-height: 0; container-type: normal; padding-bottom: 40px; }
  .frame {
    position: relative; left: auto; top: auto; width: auto; height: auto; margin: 0;
    padding: 0 16px; display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .frame > * { position: relative; }
  .topbar { left: auto; right: auto; top: auto; width: 100%; height: 64px; margin-top: 8px; }
  .logo { gap: 10px; font-size: 22px; }
  .logo-mark { width: 34px; height: 34px; }
  .nav { display: none; }
  .top-cta { height: 40px; padding: 0 16px; font-size: 15px; }
  .badge { top: auto; margin-top: 26px; height: auto; min-height: 34px; width: auto; max-width: 100%; padding: 7px 14px 7px 12px; gap: 8px; font-size: 13.5px; line-height: 1.3; text-align: left; }
  .badge svg { width: 16px; height: 16px; flex: none; }
  .headline { top: auto; margin-top: 18px; font-size: clamp(38px, 10.6vw, 56px); line-height: 1.04; }
  .headline .line + .line { margin-top: .12em; }
  .subline { top: auto; margin-top: 16px; font-size: 16px; line-height: 1.55; max-width: 34em; }
  .subline span { display: inline; }
  .subline span::after { content: " "; }
  .note-cards, .doodles { display: none; }
  .reel { left: auto; top: auto; width: 100vw; height: 250px; margin: 26px 0 0; }
  .reel::before, .reel::after { display: none; }
  .cta-wrap { top: auto; margin-top: 22px; width: 220px; height: 68px; }
  .cta-ring { border-width: 1.5px; }
  .pill-main { font-size: 17px; }
  .cta-wrap .pill-main { height: 52px; padding: 0 26px; }
  .note-cta { left: auto; top: auto; margin-top: 18px; font-size: 27px; rotate: -3deg; translate: 46px 0; }
  .doodle-m { display: block; position: absolute; left: -64px; top: -12px; width: 100px; height: 50px; pointer-events: none; overflow: visible; }
  .doodle-m .doodle path { stroke-width: 2.2; }
  .socials { top: auto; margin-top: 26px; width: auto; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .chip { height: 40px; padding: 0 14px; gap: 7px; font-size: 14.5px; }
  .chip svg { width: 17px; height: 17px; }
}

/* ---------- sections ---------- */
main { position: relative; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; position: relative; }
.section { position: relative; padding: 120px 0 40px; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.kicker { margin: 0 0 4px; font: 600 28px/1 var(--hand); color: var(--glacier); rotate: -2deg; width: max-content; }
h2 { margin: 0; font: 600 clamp(40px, 5.4vw, 64px)/1.02 var(--display); letter-spacing: -.018em; }
h3 { margin: 0; font: 600 26px/1.15 var(--display); letter-spacing: -.015em; }
.sec-lead { margin: 14px 0 0; font-size: 19px; color: var(--mist); }
.squiggle { width: 200px; height: 14px; margin-top: 8px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--glacier); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .squiggle path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.5, 0, .3, 1) .35s; }
.js .is-in .squiggle path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js .squiggle path { stroke-dashoffset: 0; transition: none; } }

/* frozen shards behind the glass so it has something to bend */
.shards { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shards i {
  position: absolute; display: block; width: 520px; height: 520px; opacity: .55;
  background: linear-gradient(160deg, rgba(134, 204, 255, .22), rgba(134, 204, 255, 0) 70%);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 16% 88%, 0 30%);
  filter: blur(2px);
}
.shards i:nth-child(1) { left: -140px; top: 220px; rotate: 18deg; }
.shards i:nth-child(2) { right: -160px; top: 80px; rotate: -24deg; width: 440px; height: 440px; }
.shards i:nth-child(3) { right: 18%; bottom: -80px; rotate: 40deg; width: 300px; height: 300px; background: linear-gradient(160deg, rgba(169, 139, 255, .2), rgba(169, 139, 255, 0) 70%); }
.shards-b i:nth-child(1) { left: auto; right: -120px; top: 40px; }
.shards-b i:nth-child(2) { left: -100px; right: auto; top: 50%; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; transition: transform .5s var(--spring); }
.project:hover { transform: translateY(-4px); }
.shot { display: block; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -40px 50px -30px rgba(6, 10, 18, .6); pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .shot img { transform: scale(1.04); }
.project-body { padding: 20px 12px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body p { margin: 0; color: var(--mist); }
.project-body .tag {
  width: max-content; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--glacier);
}
.links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { border-radius: var(--r-card); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--spring); }
.service:hover { transform: translateY(-4px) rotate(-.4deg); }
.service p { margin: 0; color: var(--mist); }
.s-icon { width: 40px; height: 40px; color: var(--glacier); margin-bottom: 6px; transition: transform .6s var(--spring); }
.service:hover .s-icon { transform: rotate(-8deg) scale(1.08); }
.service .proof { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--dim); }
.proof a { color: var(--ice); text-decoration-color: rgba(207, 230, 255, .4); text-underline-offset: 3px; }
.proof a:hover { color: var(--frost); text-decoration-color: currentColor; }
.service-ask .s-icon { color: var(--lav); }

.contact { border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy p:not(.kicker) { color: var(--mist); font-size: 18px; margin: 18px 0 0; max-width: 30em; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.pill.big { height: 58px; font-size: 18px; margin-bottom: 6px; }
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  border-radius: var(--r-row); border: 1px solid var(--line); background: rgba(200, 228, 255, .05);
  text-decoration: none; transition: background-color .2s, transform .3s var(--spring), border-color .2s;
}
.row-link span { display: flex; flex-direction: column; }
.row-link b { font-weight: 600; }
.row-link small { color: var(--dim); font-size: 14.5px; }
.row-link svg { width: 18px; height: 18px; color: var(--glacier); flex: none; transition: transform .3s var(--spring); }
.row-link:hover { background: rgba(200, 228, 255, .1); border-color: var(--line-hi); transform: translateX(3px); }
.row-link:hover svg { transform: translate(2px, -2px); }
.row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.foot { padding: 80px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.logo.small { font-size: 20px; gap: 9px; }
.logo.small .logo-mark { width: 28px; height: 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.foot-nav a { color: var(--mist); text-decoration: none; }
.foot-nav a:hover { color: var(--frost); text-decoration: underline; text-underline-offset: 3px; }
.copy { margin: 0 0 0 auto; color: var(--dim); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; margin: 0; padding: 10px 18px; border-radius: 12px;
  background: var(--frost); color: var(--ink); font-weight: 600; font-size: 15px;
  translate: -50% 20px; opacity: 0; pointer-events: none; transition: translate .4s var(--spring), opacity .25s;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* scroll reveal: transform and opacity only */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .project:hover, .service:hover, .row-link:hover, .pill:hover, .btn:hover, .chip:hover { transform: none; }
}

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 84px 0 24px; }
  .sec-head { margin-bottom: 30px; }
  .sec-lead { font-size: 17px; }
  .projects, .services { grid-template-columns: 1fr; gap: 16px; }
  .project-body { padding: 16px 8px 8px; }
  h3 { font-size: 24px; }
  .contact { padding: 26px 18px; border-radius: 22px; }
  .row-pair { grid-template-columns: 1fr; }
  .copy { margin-left: 0; }
  .shards i { width: 300px; height: 300px; }
}
