/* ============================================================
   ByteForge Studio — style.css

   1  Tokens            8  Services
   2  Base & focus      9  Projects
   3  Page backdrop    10  Stack
   4  Header & nav     11  About
   5  Page flow        12  Contact
   6  Buttons          13  Footer
   7  Hero             14  Reveal · Responsive · Reduced motion
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --mist: #e7ebe8;
  --mist-2: #dfe5e1;
  --graphite: #151817;
  --graphite-2: #202625;
  --ink: #101312;
  --muted: #58635f;
  --line: rgba(18, 24, 23, 0.12);
  --line-strong: rgba(18, 24, 23, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #00a7a5;
  --teal-dark: #007a78;
  --teal-ink: #006b69;
  --lime: #b6f23a;
  --lime-soft: rgba(182, 242, 58, 0.22);
  --shadow: 0 24px 80px rgba(17, 24, 23, 0.16);

  /* radius scale: pills are 999px, everything else uses one of these */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* layout */
  --page: 1120px;
  --edge: clamp(16px, 4vw, 32px);
  --gutter: max(var(--edge), calc((100% - var(--page)) / 2));
  --section-y: clamp(64px, 8vw, 112px);
  --focus: var(--teal-dark);
}

/* ---------- 2. Base & focus ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(60rem 32rem at 6% -6%, rgba(0, 167, 165, 0.16), transparent 70%),
    radial-gradient(44rem 28rem at 94% 2%, rgba(182, 242, 58, 0.14), transparent 70%),
    var(--mist);
  background-repeat: no-repeat;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* dark surfaces get a lime focus ring */
.contact,
.site-footer,
.site-header.is-scrolled,
.dark-card {
  --focus: var(--lime);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  color: #fff;
  background: var(--graphite);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- 3. Page backdrop ---------- */
/* The blueprint grid belongs to the hero and dissolves into the page below it. */
.site-grid {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -2;
  height: min(1000px, 120vh);
  background-image:
    linear-gradient(rgba(18, 24, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 23, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 167, 165, 0.28), transparent 68%);
  transform: translate(calc(var(--gx, -999px) - 50%), calc(var(--gy, -999px) - 50%));
  transition: opacity 0.5s ease;
}

.cursor-glow.is-on {
  opacity: 0.3;
}

/* ---------- 4. Header & nav ---------- */
.site-header {
  /* theme tokens: the header flips between a light and a dark glass */
  --hd-fg: var(--ink);
  --hd-fg-2: rgba(16, 19, 18, 0.66);
  --hd-line: rgba(17, 24, 23, 0.1);
  --hd-chip: rgba(255, 255, 255, 0.42);
  --hd-ind: #fff;
  --hd-ind-hover: rgba(255, 255, 255, 0.62);
  --hd-menu: rgba(238, 241, 238, 0.985);
  --hd-cta-bg: var(--graphite);
  --hd-cta-fg: #f8fafc;
  --hd-cta-hover: var(--teal-dark);
  --hd-cta-dot: var(--lime);

  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--page), calc(100% - 2 * var(--edge)));
  padding: 10px 10px 10px 14px;
  isolation: isolate;
  color: var(--hd-fg);
  border: 1px solid var(--hd-line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(236, 240, 237, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 40px rgba(17, 24, 23, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transform: translateX(-50%);
  transition: top 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  --hd-fg: #f3f6f4;
  --hd-fg-2: rgba(243, 246, 244, 0.66);
  --hd-line: rgba(255, 255, 255, 0.1);
  --hd-chip: rgba(255, 255, 255, 0.05);
  --hd-ind: rgba(255, 255, 255, 0.14);
  --hd-ind-hover: rgba(255, 255, 255, 0.08);
  --hd-menu: rgba(24, 28, 27, 0.98);
  --hd-cta-bg: var(--lime);
  --hd-cta-fg: var(--ink);
  --hd-cta-hover: #cdf86a;
  --hd-cta-dot: var(--graphite);

  top: 10px;
  padding-block: 7px;
  box-shadow: 0 18px 50px rgba(10, 14, 13, 0.3);
}

/* dark glass layer fades in over the light one */
.site-header::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(36, 42, 41, 0.9), rgba(21, 24, 23, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

/* scroll progress */
.site-header::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  opacity: 0;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--r-sm);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  transition: transform 0.5s var(--ease);
}

.brand-mark:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-mark span {
  display: grid;
  line-height: 1;
}

.brand-mark strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.brand-mark small {
  color: var(--hd-fg-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--hd-line);
  border-radius: 999px;
  background: var(--hd-chip);
}

.nav-track a {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--hd-fg-2);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-track a:hover,
.nav-track a.is-active,
.nav-track a:focus-visible {
  color: var(--hd-fg);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: 0;
  width: var(--ind-w, 0);
  border-radius: 999px;
  background: var(--hd-ind);
  box-shadow: 0 2px 10px rgba(17, 24, 23, 0.1), 0 0 0 1px rgba(17, 24, 23, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--ind-x, 0));
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    opacity 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled .nav-indicator {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-indicator.is-visible {
  opacity: 1;
}

.nav-indicator.is-hover {
  background: var(--hd-ind-hover);
  box-shadow: none;
}

.nav-indicator.no-anim {
  transition: none;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  color: var(--hd-cta-fg);
  background: var(--hd-cta-bg);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd-cta-dot);
  box-shadow: 0 0 0 0 var(--hd-cta-dot);
  animation: cta-pulse 2.6s ease-out infinite;
}

.nav-cta:hover {
  background: var(--hd-cta-hover);
  box-shadow: 0 10px 26px rgba(0, 122, 120, 0.28);
  transform: translateY(-2px);
}

.site-header.is-scrolled .nav-cta:hover {
  box-shadow: 0 10px 26px rgba(182, 242, 58, 0.24);
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--hd-cta-dot) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hd-line);
  border-radius: var(--r-sm);
  background: var(--hd-chip);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 999px;
  background: var(--hd-fg);
  transition: transform 0.35s var(--ease);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-4px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: rotate(-45deg);
}

/* ---------- 5. Page flow ---------- */
/* Sections are full-width bands that share one page. Content is held to the
   page width by --gutter, so there are no per-section boxes. */
.section-shell {
  width: 100%;
  padding-inline: var(--gutter);
}

main > section[id] {
  scroll-margin-top: 40px;
}

.services,
.projects,
.skills,
.about {
  position: relative;
  padding-block: var(--section-y);
}

/* tonal bands: each one is lit at its top edge and settles into the page */
.services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 75%, rgba(255, 255, 255, 0));
}

.projects {
  background: linear-gradient(180deg, rgba(204, 214, 208, 0.42), rgba(204, 214, 208, 0.14) 75%, rgba(204, 214, 208, 0));
}

.skills {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 75%, rgba(255, 255, 255, 0));
}

.about {
  background: linear-gradient(180deg, rgba(204, 214, 208, 0.42), rgba(204, 214, 208, 0.12));
}

/* divider: hairline across the content width with a short accent at its start */
.services::before,
.projects::before,
.skills::before,
.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
  transition: transform 1s var(--ease);
}

.services::after,
.projects::after,
.skills::after,
.about::after {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.25s;
}

.js :is(.services, .projects, .skills, .about):not(.is-inview)::before,
.js :is(.services, .projects, .skills, .about):not(.is-inview)::after {
  transform: scaleX(0);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.services-head h2,
.projects-head h2,
.stack-head h2,
.about-card h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 6. Buttons ---------- */
.btn {
  --mx: 0px;
  --my: 0px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translate(var(--mx), calc(var(--my) - 3px));
}

.btn-primary {
  color: #f8fafc;
  background: var(--graphite);
  box-shadow: 0 16px 40px rgba(17, 24, 23, 0.22);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  overflow-x: clip;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 96px;
}

/* soft teal light behind the status panel */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) - 90px);
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 167, 165, 0.12), transparent 64%);
  pointer-events: none;
  transform: translateY(-50%);
}

/* entrance: each piece of the copy rises in, one after another */
.hero-copy > * {
  animation: hero-rise 0.95s var(--ease) both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.14s; }
.hero-copy > :nth-child(3) { animation-delay: 0.26s; }
.hero-copy > :nth-child(4) { animation-delay: 0.36s; }
.hero-copy > :nth-child(5) { animation-delay: 0.46s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero .eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 5.7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

/* marker highlight that draws itself under the key words */
.hero h1 .mark {
  margin: 0 -0.08em;
  padding: 0 0.08em;
  background: linear-gradient(100deg, rgba(182, 242, 58, 0.9), rgba(182, 242, 58, 0.5)) no-repeat 0 90% / 0% 0.34em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: mark-draw 0.9s var(--ease) 0.8s forwards;
}

@keyframes mark-draw {
  to {
    background-size: 100% 0.34em;
  }
}

.hero-text {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* availability dot on the middle chip */
.signal-strip span:nth-child(2)::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 167, 165, 0.5);
  animation: status-ping 2.6s ease-out infinite;
}

@keyframes status-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 167, 165, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(0, 167, 165, 0);
  }
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  color: #f3f6f4;
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 242, 58, 0.14), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--graphite);
  box-shadow:
    0 30px 80px rgba(17, 24, 23, 0.2),
    0 50px 120px -40px rgba(0, 167, 165, 0.22);
  animation:
    panel-in 1.1s var(--ease) 0.25s both,
    panel-float 8s ease-in-out 1.6s infinite;
}

/* thin gradient edge */
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(182, 242, 58, 0.55), transparent 32%, transparent 68%, rgba(0, 167, 165, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
}

.panel-top span:nth-child(2) {
  background: var(--teal);
}

.panel-top span:nth-child(3) {
  background: #6c7cff;
}

.panel-top p {
  margin: 0 0 0 8px;
  color: rgba(243, 246, 244, 0.62);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* lines sit in the middle of the window, so there is never a dead gap at the bottom */
.terminal-window {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 290px;
  padding: 28px 26px;
  font-family: var(--mono);
}

.terminal-window p {
  margin: 0 0 16px;
  color: rgba(243, 246, 244, 0.72);
  animation: line-in 0.6s var(--ease) both;
}

.terminal-window p:last-child {
  margin-bottom: 0;
}

.terminal-window p:nth-child(1) { animation-delay: 0.7s; }
.terminal-window p:nth-child(2) { animation-delay: 0.85s; }
.terminal-window p:nth-child(3) { animation-delay: 1s; }
.terminal-window p:nth-child(4) { animation-delay: 1.15s; }
.terminal-window p:nth-child(5) { animation-delay: 1.3s; }

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.terminal-window span {
  color: var(--lime);
  font-weight: 800;
}

.typing-line b::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 5px;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.panel-metrics div {
  padding: 18px;
  border-right: 1px solid var(--line-dark);
}

.panel-metrics div:last-child {
  border-right: 0;
}

.panel-metrics strong,
.panel-metrics small {
  display: block;
}

.panel-metrics strong {
  color: var(--lime);
  font-size: 1.7rem;
}

.panel-metrics small {
  color: rgba(243, 246, 244, 0.58);
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* scroll cue: a thin track with a light that runs down it */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 60px;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 2px;
  height: 46px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), var(--lime));
  animation: cue-run 2.2s var(--ease) infinite;
}

@keyframes cue-run {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(260%);
  }
}

.site-header.is-scrolled ~ main .scroll-cue {
  opacity: 0;
  pointer-events: none;
}

/* ---------- 8. Services ---------- */
/* Heading: big statement on the left, the supporting line on the right,
   both sitting on the same baseline and closed by a hairline. */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.services-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  letter-spacing: -0.065em;
}

.services-head h2 .line {
  display: block;
}

.services-aside p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  padding-block: 15px 9px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  background:
    linear-gradient(var(--teal), var(--teal)) left calc(100% - 5px) / 0% 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left calc(100% - 5px) / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.25s ease;
}

.text-link:hover {
  color: var(--teal-ink);
  background-size: 100% 2px, 100% 1px;
}

.service-board {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 16px;
}

/* Every card shares a frame but has its own colour, layout and illustration. */
.service-tile {
  --spot: rgba(0, 167, 165, 0.14);
  --pulse: rgba(17, 24, 23, 0.32);

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 45px rgba(17, 24, 23, 0.07);
  transition: transform 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.5s var(--ease);
}

/* light that follows the cursor across the card */
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 0%), var(--spot), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.service-tile:hover {
  border-color: rgba(0, 122, 120, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 30px 64px rgba(17, 24, 23, 0.12);
  transform: translateY(-5px);
}

.service-tile:hover::after {
  opacity: 1;
}

.svc-art,
.svc-body {
  position: relative;
  z-index: 1;
}

/* illustration fills the top, text sits at the bottom: same rhythm in every tall card */
.svc-art {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 130px;
  margin-bottom: 22px;
}

.svc-body {
  margin-top: auto;
}

.svc-body h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.svc-body p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* wide cards: text and illustration side by side */
.service-tile.wide {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 260px;
  grid-column: span 2;
}

.service-tile.wide .svc-body {
  flex: 0 1 42%;
  margin-top: 0;
}

.service-tile.wide .svc-art {
  flex: 1 1 58%;
  align-self: stretch;
  margin-bottom: 0;
  min-height: 0;
}

.service-tile.svc-office {
  flex-direction: row-reverse;
}

.service-tile.tall {
  grid-row: span 2;
}

/* --- Business: dark feature card with a site wireframe --- */
.svc-business {
  --spot: rgba(182, 242, 58, 0.16);

  color: #f3f6f4;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 88% 6%, rgba(182, 242, 58, 0.2), transparent 15rem),
    radial-gradient(circle at 0% 100%, rgba(0, 167, 165, 0.2), transparent 16rem),
    linear-gradient(160deg, #222a28, #151817);
  box-shadow: 0 26px 60px rgba(17, 24, 23, 0.26);
}

.svc-business:hover {
  border-color: rgba(182, 242, 58, 0.4);
  box-shadow: 0 34px 72px rgba(17, 24, 23, 0.34);
}

.svc-business .svc-body h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.svc-business .svc-body p {
  color: rgba(243, 246, 244, 0.7);
}

.art-browser {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  width: 100%;
  place-items: stretch;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
}

.ab-bar {
  display: flex;
  gap: 6px;
}

.ab-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.ab-bar i:first-child {
  background: var(--lime);
}

.ab-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-nav b {
  width: 22px;
  height: 7px;
  margin-right: auto;
  border-radius: 4px;
  background: var(--lime);
}

.ab-nav u {
  width: 30px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.ab-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(0, 167, 165, 0.3), rgba(182, 242, 58, 0.12));
}

.ab-hero span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.ab-hero .l1 {
  width: 74%;
}

.ab-hero .l2 {
  width: 50%;
}

.ab-hero .l3 {
  width: 62%;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.ab-btn {
  --pulse: rgba(182, 242, 58, 0.5);

  display: block;
  width: 70px;
  height: 22px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--lime);
  animation: soft-pulse 2.8s ease-out infinite;
}

.ab-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ab-cols span {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.55s var(--ease), background 0.4s ease;
}

.svc-business:hover .ab-cols span {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-7px);
}

.svc-business:hover .ab-cols span:nth-child(2) {
  transition-delay: 0.06s;
}

.svc-business:hover .ab-cols span:nth-child(3) {
  transition-delay: 0.12s;
}

@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--pulse);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

/* --- Portfolio: profile + work grid --- */
.art-profile {
  align-content: center;
  gap: 22px;
  width: 100%;
  place-items: stretch;
}

.ap-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  box-shadow: 0 0 0 5px rgba(0, 167, 165, 0.12);
  transition: box-shadow 0.55s var(--ease), transform 0.55s var(--ease);
}

.ap-lines {
  display: grid;
  flex: 1;
  gap: 7px;
}

.ap-lines i {
  display: block;
  height: 8px;
  border-radius: 5px;
  background: rgba(17, 24, 23, 0.14);
}

.ap-lines i:first-child {
  width: 62%;
  background: rgba(17, 24, 23, 0.78);
}

.ap-lines i:last-child {
  width: 40%;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ap-grid span {
  height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform 0.55s var(--ease);
}

.ap-grid span:nth-child(1) {
  background: linear-gradient(135deg, rgba(0, 167, 165, 0.34), rgba(0, 167, 165, 0.08));
}

.ap-grid span:nth-child(2) {
  background: linear-gradient(135deg, rgba(182, 242, 58, 0.5), rgba(182, 242, 58, 0.14));
}

.ap-grid span:nth-child(3) {
  border-color: transparent;
  background: linear-gradient(135deg, #2c332f, #151817);
}

.svc-portfolio:hover .ap-avatar {
  box-shadow: 0 0 0 10px rgba(0, 167, 165, 0.16);
  transform: scale(1.06);
}

.svc-portfolio:hover .ap-grid span {
  transform: translateY(-5px);
}

.svc-portfolio:hover .ap-grid span:nth-child(2) {
  transition-delay: 0.06s;
}

.svc-portfolio:hover .ap-grid span:nth-child(3) {
  transition-delay: 0.12s;
}

/* --- Landing: lime card with a single focused page --- */
.svc-landing {
  --spot: rgba(255, 255, 255, 0.55);

  border-color: rgba(120, 160, 20, 0.22);
  background: linear-gradient(155deg, rgba(204, 247, 96, 0.6), rgba(182, 242, 58, 0.16) 70%, rgba(255, 255, 255, 0.5));
}

.svc-landing:hover {
  border-color: rgba(90, 130, 0, 0.4);
}

.svc-landing .svc-body p {
  color: #4a5a3b;
}

.al-page {
  display: grid;
  justify-items: start;
  gap: 9px;
  width: min(80%, 230px);
  padding: 18px;
  border: 1px solid rgba(17, 24, 23, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(17, 24, 23, 0.1);
  transition: transform 0.55s var(--ease);
}

.al-h {
  display: block;
  width: 90%;
  height: 12px;
  border-radius: 6px;
  background: var(--ink);
}

.al-h.short {
  width: 62%;
}

.al-p {
  display: block;
  width: 80%;
  height: 5px;
  border-radius: 3px;
  background: rgba(17, 24, 23, 0.2);
}

.al-cta {
  display: block;
  width: 84px;
  height: 24px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--graphite);
  animation: soft-pulse 2.8s ease-out infinite;
  transition: width 0.5s var(--ease);
}

.al-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.al-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(17, 24, 23, 0.2);
}

.al-dots i:first-child {
  background: var(--teal);
}

.svc-landing:hover .al-page {
  transform: translateY(-6px) rotate(-1.5deg);
}

.svc-landing:hover .al-cta {
  width: 108px;
}

/* --- Systems: query + table --- */
.svc-systems {
  background: linear-gradient(135deg, rgba(0, 167, 165, 0.16), rgba(255, 255, 255, 0.78) 70%);
}

.art-db {
  display: block;
  align-self: center;
  place-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: #151817;
  box-shadow: 0 22px 50px rgba(17, 24, 23, 0.22);
}

.ad-query {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(243, 246, 244, 0.75);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.ad-query b {
  color: var(--lime);
  font-weight: 700;
}

.ad-query::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 6px;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 0.9s steps(2, start) infinite;
}

.ad-row {
  display: grid;
  grid-template-columns: 26px 1fr 46px;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease;
}

.ad-row:last-child {
  border-bottom: 0;
}

.ad-row i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.ad-row i:first-child {
  width: 18px;
  background: rgba(255, 255, 255, 0.3);
}

.ad-row.head i {
  height: 5px;
  background: rgba(255, 255, 255, 0.34);
}

.ad-row:nth-child(3) i:nth-child(2) {
  width: 72%;
}

.ad-row:nth-child(4) i:nth-child(2) {
  width: 54%;
}

.ad-row:nth-child(5) i:nth-child(2) {
  width: 64%;
}

.ad-row em {
  justify-self: end;
  width: 44px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.5s ease;
}

.ad-row em.ok {
  background: var(--lime);
}

.ad-row em.wait {
  background: var(--teal);
}

.svc-systems:hover .ad-row:not(.head) {
  background: rgba(255, 255, 255, 0.05);
}

.svc-systems:hover .ad-row:nth-child(4) {
  transition-delay: 0.08s;
}

.svc-systems:hover .ad-row:nth-child(5) {
  transition-delay: 0.16s;
}

.svc-systems:hover .ad-row em.wait,
.svc-systems:hover .ad-row em.off {
  background: var(--lime);
  transition-delay: 0.2s;
}

/* --- WordPress: blocks + toggle --- */
.svc-wordpress {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(0, 167, 165, 0.1));
}

.art-cms {
  align-content: center;
  gap: 16px;
}

.ac-blocks {
  display: grid;
  grid-template-columns: repeat(2, 76px);
  grid-auto-rows: 54px;
  gap: 10px;
}

.ac-blocks span {
  position: relative;
  border: 1px solid rgba(17, 24, 23, 0.1);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.6s var(--ease), background 0.4s ease, border-color 0.4s ease;
}

.ac-blocks .a {
  background: linear-gradient(135deg, rgba(0, 167, 165, 0.38), rgba(0, 167, 165, 0.1));
}

.ac-blocks .b {
  background: linear-gradient(135deg, rgba(182, 242, 58, 0.55), rgba(182, 242, 58, 0.16));
}

.ac-blocks .d {
  border: 1.5px dashed rgba(17, 24, 23, 0.28);
  background: transparent;
}

.ac-blocks .d::before,
.ac-blocks .d::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: rgba(17, 24, 23, 0.45);
  transition: background 0.4s ease;
}

.ac-blocks .d::after {
  transform: rotate(90deg);
}

.svc-wordpress:hover .ac-blocks .a {
  transform: translateX(86px);
}

.svc-wordpress:hover .ac-blocks .b {
  transform: translateX(-86px);
}

.svc-wordpress:hover .ac-blocks .d {
  border-style: solid;
  border-color: transparent;
  background: var(--graphite);
}

.svc-wordpress:hover .ac-blocks .d::before,
.svc-wordpress:hover .ac-blocks .d::after {
  background: var(--lime);
}

.ac-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(17, 24, 23, 0.16);
  transition: background 0.4s ease;
}

.ac-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 24, 23, 0.25);
  transition: transform 0.5s var(--ease);
}

.svc-wordpress:hover .ac-toggle {
  background: var(--teal);
}

.svc-wordpress:hover .ac-toggle i {
  transform: translateX(20px);
}

/* --- Office: three documents that fan out --- */
.svc-office {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 221, 216, 0.7));
}

.art-docs {
  position: relative;
  display: block;
}

.adoc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 150px;
  margin: -75px 0 0 -59px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 23, 0.1);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 23, 0.14);
  transition: transform 0.65s var(--ease);
}

.doc-word {
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  transform: translateX(-62px) rotate(-8deg);
}

.doc-word i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(17, 24, 23, 0.16);
}

.doc-word i:first-child {
  width: 55%;
  height: 8px;
  margin-bottom: 6px;
  background: rgba(17, 24, 23, 0.75);
}

.doc-word i:nth-child(4) {
  width: 80%;
}

.doc-word i:nth-child(5) {
  width: 60%;
}

.doc-sheet {
  z-index: 3;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(17, 24, 23, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 23, 0.09) 1px, transparent 1px);
  background-size: 100% 21px, 30px 100%;
  transform: translateY(-4px);
}

.doc-sheet span {
  position: absolute;
  top: 42px;
  left: 30px;
  width: 30px;
  height: 21px;
  background: rgba(182, 242, 58, 0.7);
  box-shadow: 0 0 0 1.5px var(--teal-dark);
}

.doc-slide {
  z-index: 2;
  width: 142px;
  height: 100px;
  margin: -50px 0 0 -71px;
  transform: translateX(64px) rotate(8deg);
}

.doc-slide b {
  display: block;
  width: 58%;
  height: 8px;
  border-radius: 4px;
  background: var(--graphite);
}

.doc-slide u {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 62%, var(--lime) 62% 100%);
}

.svc-office:hover .doc-word {
  transform: translateX(-86px) rotate(-13deg);
}

.svc-office:hover .doc-sheet {
  transform: translateY(-14px);
}

.svc-office:hover .doc-slide {
  transform: translateX(88px) rotate(13deg);
}

/* ---------- 9. Projects ---------- */
/* An editorial showcase: one full-width case study, then two staggered pairs.
   Each project is a "stage" holding a cropped mock of the real site, with its
   text set directly on the page instead of inside a card. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.projects-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.projects-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  letter-spacing: -0.065em;
}

.projects-head h2 .line {
  display: block;
}

.projects-aside p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.proj-list {
  display: grid;
  gap: clamp(56px, 7vw, 100px);
}

.proj-row {
  display: grid;
  gap: 48px clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.row-a {
  grid-template-columns: 1.15fr 0.85fr;
}

.row-b {
  grid-template-columns: 0.85fr 1.15fr;
}

/* the stagger: one project in each pair sits lower */
.row-a > .proj:nth-child(2),
.row-b > .proj:nth-child(1) {
  margin-top: clamp(0px, 7vw, 96px);
}

/* ----- text ----- */
.proj-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.proj-feature h3 {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.proj-feature-copy p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.proj-info {
  padding: 26px 4px 0;
}

/* the title picks up a lime underline when its project is hovered */
.proj-info h3 {
  display: inline;
  margin: 0;
  padding-bottom: 0.04em;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  background: linear-gradient(var(--lime), var(--lime)) left 94% / 0% 0.24em no-repeat;
  transition: background-size 0.7s var(--ease);
}

.proj:hover .proj-info h3 {
  background-size: 100% 0.24em;
}

.proj-info p {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.proj-tags li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 0.9em;
  background: var(--line-strong);
  vertical-align: -0.12em;
}

.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.proj-link .ico {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.proj-link:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
  transform: translateY(-2px);
}

.proj-link:hover .ico.ext {
  transform: translate(2px, -2px);
}

.proj-links .proj-link:first-child {
  border-color: var(--graphite);
  color: #f8fafc;
  background: var(--graphite);
}

.proj-links .proj-link:first-child:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

/* ----- stage ----- */
.proj-stage {
  --px: 0;
  --py: 0;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 23, 0.08),
    0 30px 70px -34px rgba(17, 24, 23, 0.4);
  transition: box-shadow 0.6s var(--ease);
}

.proj:hover .proj-stage {
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 23, 0.1),
    0 44px 90px -34px rgba(17, 24, 23, 0.5);
}

.stage-zs {
  aspect-ratio: 16 / 8.6;
  background:
    radial-gradient(circle at 82% 8%, rgba(182, 242, 58, 0.32), transparent 24rem),
    radial-gradient(circle at 8% 96%, rgba(0, 167, 165, 0.3), transparent 24rem),
    linear-gradient(135deg, #151817, #2b332f);
}

.stage-paarees {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 85% 10%, rgba(200, 164, 92, 0.38), transparent 20rem),
    linear-gradient(135deg, #f3eadb, #dfcfb1);
}

.stage-jobix {
  aspect-ratio: 1 / 0.84;
  background:
    radial-gradient(circle at 90% 8%, rgba(182, 242, 58, 0.34), transparent 16rem),
    linear-gradient(135deg, #c9ece8, #e7f6f2);
}

.stage-aurora {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 167, 165, 0.4), transparent 18rem),
    linear-gradient(160deg, #0a0f1e, #12262c);
}

.stage-shop {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, 0.8), transparent 16rem),
    linear-gradient(135deg, #e3f7a8, #f4fadb);
}

/* the mock sits slightly off-centre and bleeds off the edge, like a cropped screenshot */
.mock-wrap {
  position: absolute;
  top: var(--t);
  left: var(--l);
  z-index: 1;
  width: var(--w);
  translate: 0 0;
  transform: translate3d(calc(var(--px) * -1.4%), calc(var(--py) * -1.4%), 0);
  transition: transform 0.7s var(--ease), translate 1s var(--ease), scale 0.8s var(--ease);
}

.proj:hover .mock-wrap {
  scale: 1.015;
}

:where(.js .proj:not(.is-visible)) .mock-wrap {
  translate: 0 9%;
}

.stage-float {
  position: absolute;
  z-index: 3;
  translate: 0 0;
  transform: translate3d(calc(var(--px) * -3.2%), calc(var(--py) * -3.2%), 0);
  transition: transform 0.7s var(--ease), translate 1.1s var(--ease) 0.15s;
}

:where(.js .proj:not(.is-visible)) .stage-float {
  translate: 0 14%;
}

.zs-phone-wrap {
  right: 3.2%;
  bottom: -15%;
  width: 17%;
}

/* link over the whole stage, with a pill that follows the cursor */
.stage-link {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.stage-cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 11px 19px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  translate: var(--cx, 50%) var(--cy, 50%);
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.4s var(--ease), translate 0.12s linear;
}

.stage-link:hover .stage-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .stage-link {
    display: none;
  }
}

/* ============ mock internals: 1em = 1% of the mock's width ============ */
.mock {
  width: 100%;
  container-type: inline-size;
}

.mk {
  color: var(--ink);
  font-family: var(--font);
  font-size: 9px;
  font-size: 1cqw;
  line-height: 1.3;
}

.mk * {
  box-sizing: border-box;
}

.mk b,
.mk i,
.mk em,
.mk small,
.mk u {
  font-style: normal;
}

.mk u {
  display: block;
  width: 80%;
  height: 1.1em;
  border-radius: 0.6em;
  background: rgba(17, 24, 23, 0.12);
  text-decoration: none;
}

.mk u.s {
  width: 52%;
}

.mk h4,
.mk h5 {
  margin: 0;
}

.mk-browser {
  position: relative;
  overflow: hidden;
  border-radius: 1.8em 1.8em 0 0;
  background: #fff;
  box-shadow:
    0 3.4em 8em -1.4em rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mk-bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 4.6em;
  padding: 0 1.8em;
  border-bottom: 1px solid rgba(17, 24, 23, 0.08);
  background: #eef1ef;
}

.mk-bar i {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #c9d0cc;
}

.mk-url {
  flex: 0 1 46%;
  margin-left: 2.2em;
  padding: 0.75em 1.6em;
  overflow: hidden;
  border-radius: 2em;
  color: #5e6966;
  background: #fff;
  font-family: var(--mono);
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-page {
  position: relative;
}

/* if a real screenshot exists it covers the built page; if not, it hides itself */
.mk-shot {
  position: absolute;
  top: 4.6em;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: calc(100% - 4.6em);
  object-fit: cover;
  object-position: top;
  background: #111;
}

.mk-shot.is-missing {
  display: none;
}

/* ----- Z&S ----- */
.zs-page {
  min-height: 62em;
  background: #f4f6f3;
}

.zs-nav {
  display: flex;
  align-items: center;
  height: 7.4em;
  padding: 0 3.6em;
  border-bottom: 1px solid rgba(17, 24, 23, 0.07);
  background: #fff;
}

.zs-nav b {
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.zs-nav nav {
  display: flex;
  gap: 3.2em;
  margin-left: auto;
  margin-right: 3em;
  color: #5e6966;
  font-size: 1.5em;
  font-weight: 600;
}

.zs-cta {
  padding: 1em 2em;
  border-radius: 2em;
  color: #fff;
  background: var(--graphite);
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1;
}

.zs-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2em;
  align-items: center;
  padding: 4.2em 3.6em 3em;
  background:
    radial-gradient(circle at 86% 18%, rgba(182, 242, 58, 0.3), transparent 32em),
    linear-gradient(120deg, #f7f9f6, #e4eae6);
}

.zs-copy {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  align-items: flex-start;
}

.zs-copy small {
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zs-copy h4 {
  font-size: 6.2em;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.zs-copy p {
  max-width: 21em;
  margin: 0;
  color: #5e6966;
  font-size: 1.65em;
  line-height: 1.5;
}

.zs-actions {
  display: flex;
  gap: 1.2em;
  margin-top: 0.6em;
}

.zs-actions span {
  padding: 1.1em 2em;
  border: 1px solid rgba(17, 24, 23, 0.2);
  border-radius: 2em;
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1;
}

.zs-actions .solid {
  border-color: var(--graphite);
  color: #fff;
  background: var(--graphite);
}

.zs-art svg,
.ph-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.6em 1.6em rgba(17, 24, 23, 0.16));
  transition: transform 0.9s var(--ease);
}

.proj:hover .zs-art svg {
  transform: translateY(-1.4em) rotate(-1.5deg);
}

.zs-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  padding: 0 3.6em 3.6em;
}

.zs-cat {
  display: flex;
  gap: 1.8em;
  align-items: center;
  padding: 2.2em;
  border: 1px solid rgba(17, 24, 23, 0.07);
  border-radius: 1.8em;
  background: #fff;
  box-shadow: 0 1.4em 3em -1.8em rgba(17, 24, 23, 0.25);
}

.zs-cat i,
.ph-list i {
  flex: none;
  width: 5em;
  height: 5em;
  border-radius: 1.4em;
}

.c1 {
  background: linear-gradient(135deg, #e6c892, #b78a4e);
}

.c2 {
  background: linear-gradient(135deg, #454f4b, #151817);
}

.c3 {
  background: linear-gradient(135deg, #46d0cc, #00817f);
}

.zs-cat div {
  display: grid;
  flex: 1;
  gap: 0.9em;
}

.zs-cat strong {
  font-size: 1.8em;
  letter-spacing: -0.03em;
}

/* phone */
.mk-phone {
  width: 100%;
  aspect-ratio: 9 / 18.4;
  padding: 3.4em;
  border-radius: 15em;
  background: #0e1211;
  box-shadow:
    0 4em 8em -2em rgba(0, 0, 0, 0.6),
    inset 0 0 0 0.6em #2c3432;
}

.ph-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12em;
  background: #f4f6f3;
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9em 7em 3em;
}

.ph-top b {
  font-size: 9em;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.ph-burger {
  display: grid;
  gap: 2em;
}

.ph-burger i {
  display: block;
  width: 10em;
  height: 1.6em;
  border-radius: 2em;
  background: var(--ink);
}

.ph-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4em;
  padding: 2em 7em 4em;
  background: radial-gradient(circle at 90% 20%, rgba(182, 242, 58, 0.3), transparent 60em);
}

.ph-hero small {
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 5.2em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ph-hero h5 {
  font-size: 13em;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ph-btn {
  padding: 0.85em 1.5em;
  border-radius: 99em;
  color: #fff;
  background: var(--graphite);
  font-size: 5.6em;
  font-weight: 800;
  line-height: 1;
}

.ph-art {
  width: 100%;
}

.ph-list {
  display: grid;
  gap: 3em;
  padding: 2em 7em;
}

.ph-list div {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0.8em;
  border-radius: 0.8em;
  background: #fff;
  font-size: 6em;
  font-weight: 800;
  line-height: 1;
}

.ph-list .c1,
.ph-list .c2,
.ph-list .c3 {
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.45em;
}

/* ----- Paarees ----- */
.pa-page {
  min-height: 64em;
  color: #f3e8d4;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 74% 30%, rgba(200, 164, 92, 0.3), transparent 40em),
    linear-gradient(160deg, #271c16, #0f0b09);
}

.pa-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 8em;
  padding: 0 4em;
  border-bottom: 1px solid rgba(200, 164, 92, 0.22);
}

.pa-nav nav {
  display: flex;
  gap: 2.4em;
  color: rgba(243, 232, 212, 0.72);
  font-size: 1.5em;
  letter-spacing: 0.06em;
}

.pa-nav nav.r {
  justify-content: flex-end;
}

.pa-nav b {
  color: #e3c88a;
  font-size: 2.5em;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.pa-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2em;
  align-items: center;
  padding: 3em 4em 1em;
}

.pa-copy {
  display: flex;
  flex-direction: column;
  gap: 2.6em;
  align-items: flex-start;
}

.pa-copy h4 {
  font-size: 6.2em;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

.pa-copy h4 em {
  color: #e3c88a;
  font-style: italic;
}

.pa-btn {
  padding: 1.2em 2.2em;
  border: 1px solid #c8a45c;
  color: #e3c88a;
  font-family: var(--font);
  font-size: 1.3em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pa-bottles svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2em 3em rgba(0, 0, 0, 0.5));
}

.pa-bottles use {
  transition: transform 0.9s var(--ease);
}

.proj:hover .pa-bottles use:nth-of-type(1) {
  transform: translate(-7px, 0);
}

.proj:hover .pa-bottles use:nth-of-type(2) {
  transform: translate(7px, 0);
}

.proj:hover .pa-bottles use:nth-of-type(3) {
  transform: translate(0, -9px);
}

.pa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4em;
  padding: 2.4em 4em 4em;
}

.pa-tile {
  display: grid;
  justify-items: center;
  gap: 1.2em;
  padding: 2em;
  border: 1px solid rgba(200, 164, 92, 0.22);
  border-radius: 1.4em;
  background: rgba(255, 255, 255, 0.04);
}

.pa-tile svg {
  width: 8em;
  height: 12.8em;
}

.pa-tile u {
  width: 62%;
  background: rgba(227, 200, 138, 0.34);
}

.pa-tile u.s {
  width: 38%;
}

/* ----- Jobix ----- */
.jx {
  display: grid;
  grid-template-columns: 15em 1fr;
  min-height: 82em;
  background: #f3f6f4;
}

.jx-side {
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 3em 2em;
  color: #f3f6f4;
  background: var(--graphite);
}

.jx-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.jx-logo i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 0.22em;
  background: var(--lime);
}

.jx-side ul {
  display: grid;
  gap: 0.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.6em;
  font-weight: 600;
}

.jx-side li {
  padding: 0.8em 0.9em;
  border-radius: 0.8em;
  color: rgba(243, 246, 244, 0.62);
}

.jx-side li.on {
  color: var(--lime);
  background: rgba(182, 242, 58, 0.15);
}

.jx-user {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: auto;
  color: rgba(243, 246, 244, 0.6);
  font-size: 1.4em;
  white-space: nowrap;
}

.jx-user i {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lime));
}

.jx-main {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
  padding: 2.8em 3em;
}

.jx-tabs {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.4em;
  border-radius: 2em;
  background: #e1e8e5;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1;
}

.jx-tabs span {
  padding: 0.85em 1.6em;
  border-radius: 2em;
  color: #5e6966;
}

.jx-tabs .t1 {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0.4em 1em rgba(17, 24, 23, 0.1);
}

.jx-views {
  position: relative;
  flex: 1;
}

.jx-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  opacity: 0;
  visibility: hidden;
}

.jx-view.v1 {
  opacity: 1;
  visibility: visible;
}

/* hovering the project cycles Admin, Candidate, Company */
.jx-view,
.jx-tabs span {
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  animation-timing-function: linear;
}

.jx-view {
  animation-name: jx-view;
}

.jx-view.v2 {
  animation-delay: -6s;
}

.jx-view.v3 {
  animation-delay: -3s;
}

.jx-tabs span {
  animation-name: jx-tab;
}

.jx-tabs .t2 {
  animation-delay: -6s;
}

.jx-tabs .t3 {
  animation-delay: -3s;
}

.proj:hover .jx-view,
.proj:hover .jx-tabs span {
  animation-play-state: running;
}

@keyframes jx-view {
  0%,
  29% {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  33%,
  100% {
    opacity: 0;
    visibility: hidden;
    translate: 0 1.2em;
  }
}

@keyframes jx-tab {
  0%,
  31% {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 0.4em 1em rgba(17, 24, 23, 0.1);
  }
  34%,
  100% {
    color: #5e6966;
    background: transparent;
    box-shadow: none;
  }
}

.jx-view h5 {
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.jx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6em;
}

.jx-stats > div {
  display: grid;
  gap: 1.5em;
  padding: 1.8em;
  border: 1px solid rgba(17, 24, 23, 0.07);
  border-radius: 1.4em;
  background: #fff;
}

.jx-stats small {
  color: #5e6966;
  font-family: var(--mono);
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  height: 5.4em;
}

.bars i {
  flex: 1;
  border-radius: 0.5em;
  background: linear-gradient(180deg, var(--teal), rgba(0, 167, 165, 0.35));
}

.jx-stats > div:nth-child(2) .bars i {
  background: linear-gradient(180deg, #9fd62a, rgba(182, 242, 58, 0.4));
}

.jx-stats > div:nth-child(3) .bars i {
  background: linear-gradient(180deg, #454f4b, rgba(69, 79, 75, 0.35));
}

.bars i:nth-child(1) { height: 42%; }
.bars i:nth-child(2) { height: 68%; }
.bars i:nth-child(3) { height: 52%; }
.bars i:nth-child(4) { height: 92%; }
.bars i:nth-child(5) { height: 70%; }

.jx-table {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 23, 0.07);
  border-radius: 1.4em;
  background: #fff;
}

.jx-table .r {
  display: grid;
  grid-template-columns: 1.2fr 9.6em 0.9fr;
  gap: 1.6em;
  align-items: center;
  padding: 1.7em 2em;
  border-bottom: 1px solid rgba(17, 24, 23, 0.06);
}

.jx-table .r:last-child {
  border-bottom: 0;
}

.jx-table .h span {
  color: #8a9490;
  font-family: var(--mono);
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jx em {
  justify-self: start;
  padding: 0.55em 1.2em;
  border-radius: 2em;
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1;
}

.jx em.ok {
  color: #3d5a00;
  background: rgba(182, 242, 58, 0.5);
}

.jx em.rv {
  color: #006b69;
  background: rgba(0, 167, 165, 0.16);
}

.jx em.cl {
  color: #5e6966;
  background: #e3e7e5;
}

.jx-job,
.jx-app {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6em;
  align-items: center;
  padding: 1.7em;
  border: 1px solid rgba(17, 24, 23, 0.07);
  border-radius: 1.4em;
  background: #fff;
}

.jx-job > div,
.jx-app > div {
  display: grid;
  gap: 0.8em;
}

.av {
  width: 4.8em;
  height: 4.8em;
  border-radius: 1.2em;
}

.av.r {
  border-radius: 50%;
}

.av.a1 {
  background: linear-gradient(135deg, var(--teal), #7fe0dc);
}

.av.a2 {
  background: linear-gradient(135deg, #9fd62a, var(--lime));
}

.av.a3 {
  background: linear-gradient(135deg, #454f4b, #151817);
}

.jx-apply {
  padding: 0.95em 1.9em;
  border-radius: 2em;
  color: #fff;
  background: var(--graphite);
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1;
}

/* ----- Aurora ----- */
.au-page {
  height: 93em;
  overflow: hidden;
  color: #eaf6f3;
  background: linear-gradient(180deg, #050813 0%, #0a1424 48%, #0d2327 100%);
}

.au-stars {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 12% 14%, #fff 0 0.14em, transparent 0.24em),
    radial-gradient(circle at 28% 32%, #fff 0 0.1em, transparent 0.2em),
    radial-gradient(circle at 44% 10%, #fff 0 0.12em, transparent 0.22em),
    radial-gradient(circle at 61% 24%, #fff 0 0.16em, transparent 0.26em),
    radial-gradient(circle at 77% 12%, #fff 0 0.1em, transparent 0.2em),
    radial-gradient(circle at 90% 30%, #fff 0 0.13em, transparent 0.23em),
    radial-gradient(circle at 8% 44%, #fff 0 0.1em, transparent 0.2em),
    radial-gradient(circle at 36% 50%, #fff 0 0.12em, transparent 0.22em),
    radial-gradient(circle at 70% 46%, #fff 0 0.1em, transparent 0.2em),
    radial-gradient(circle at 94% 56%, #fff 0 0.12em, transparent 0.22em);
}

.au-rib {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 26em;
  border-radius: 50%;
  filter: blur(2.4em);
  mix-blend-mode: screen;
  opacity: 0.88;
  animation: au-drift 14s ease-in-out infinite alternate;
}

.au-rib.r1 {
  top: 9em;
  background: linear-gradient(90deg, transparent 5%, rgba(0, 230, 190, 0.85) 35%, rgba(182, 242, 58, 0.72) 62%, transparent 92%);
  transform: rotate(-11deg);
}

.au-rib.r2 {
  top: 24em;
  height: 20em;
  background: linear-gradient(90deg, transparent 8%, rgba(130, 112, 255, 0.7) 40%, rgba(0, 200, 220, 0.62) 70%, transparent 95%);
  transform: rotate(-6deg);
  animation-delay: -5s;
}

.au-rib.r3 {
  top: 2em;
  height: 16em;
  background: linear-gradient(90deg, transparent, rgba(182, 242, 58, 0.55) 50%, transparent);
  transform: rotate(-16deg);
  animation-delay: -9s;
}

.proj:hover .au-rib {
  animation-duration: 6s;
}

@keyframes au-drift {
  from {
    translate: -5% 0;
    scale: 1 1;
  }
  to {
    translate: 6% 3em;
    scale: 1.06 1.16;
  }
}

.au-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3em 4em;
}

.au-nav b {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.au-dots {
  display: flex;
  gap: 0.9em;
}

.au-dots i {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.au-title {
  position: absolute;
  top: 27em;
  right: 0;
  left: 0;
  z-index: 3;
  text-align: center;
}

.au-title h4 {
  font-size: 11em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-shadow: 0 0 0.4em rgba(0, 255, 210, 0.4);
}

.au-title p {
  margin: 1.2em 0 0;
  color: rgba(234, 246, 243, 0.72);
  font-size: 1.8em;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.au-ridge {
  position: absolute;
  right: 0;
  bottom: 9em;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 22em;
}

.au-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 9em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(234, 246, 243, 0.6);
  background: #04090e;
  font-family: var(--mono);
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ----- Shopping ----- */
.sh-page {
  min-height: 70em;
  background: #f6f8f4;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: 3em;
  height: 7.4em;
  padding: 0 3.4em;
  border-bottom: 1px solid rgba(17, 24, 23, 0.07);
  background: #fff;
}

.sh-nav b {
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.sh-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1em;
  padding: 1.2em 1.8em;
  border-radius: 2em;
  color: #8a9490;
  background: #eef2ee;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1;
}

.sh-search i {
  width: 1em;
  height: 1em;
  border: 0.2em solid #8a9490;
  border-radius: 50%;
}

.sh-bag {
  position: relative;
  width: 3.8em;
  height: 3.8em;
}

.sh-bag svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-bag em {
  position: absolute;
  top: -0.5em;
  right: -0.7em;
  min-width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.25em;
  font-weight: 900;
  line-height: 1.9;
  text-align: center;
}

.sh-body {
  display: grid;
  grid-template-columns: 1fr 27em;
  gap: 3em;
  padding: 3em 3.4em;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  align-content: start;
}

.sh-card {
  display: grid;
  gap: 1.2em;
  padding: 1.4em;
  border: 1px solid rgba(17, 24, 23, 0.07);
  border-radius: 1.8em;
  background: #fff;
  transition: transform 0.6s var(--ease);
}

.proj:hover .sh-card:nth-child(1) {
  transform: translateY(-0.8em);
}

.sh-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.92;
  border-radius: 1.2em;
}

.sh-img svg,
.sh-item i svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t1 {
  color: #006b69;
  background: #d6f1ee;
}

.t2 {
  color: #476a00;
  background: #ebf8c1;
}

.t3 {
  color: #2f3835;
  background: #e5eae7;
}

.sh-card u {
  width: 76%;
}

.sh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sh-row u {
  width: 38%;
}

.sh-add {
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  color: #fff;
  background: var(--graphite);
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
}

.sh-cart {
  position: relative;
  display: grid;
  align-self: start;
  align-content: start;
  gap: 1.7em;
  padding: 2.4em;
  border: 1px solid rgba(17, 24, 23, 0.08);
  border-radius: 2em;
  background: #fff;
  box-shadow: 0 2em 4em -2em rgba(17, 24, 23, 0.26);
}

.sh-cart strong {
  font-size: 2.2em;
  letter-spacing: -0.04em;
}

.sh-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4em;
  align-items: center;
}

.sh-item i {
  display: grid;
  place-items: center;
  width: 5.2em;
  height: 5.2em;
  border-radius: 1.2em;
}

.sh-item > div {
  display: grid;
  gap: 0.8em;
}

.qty {
  padding: 0.6em 0.9em;
  border-radius: 0.8em;
  background: #eef2ee;
  font-family: var(--mono);
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1;
}

/* hovering adds a third item to the cart */
.sh-new {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-1em);
  transition: max-height 0.7s var(--ease), opacity 0.5s ease 0.15s, transform 0.7s var(--ease) 0.15s;
}

.proj:hover .sh-new {
  max-height: 6em;
  opacity: 1;
  transform: none;
}

.sh-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6em;
  border-top: 1px solid rgba(17, 24, 23, 0.08);
  color: #5e6966;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
}

.sh-total u {
  width: 4.4em;
  background: rgba(17, 24, 23, 0.28);
}

.sh-checkout {
  padding: 1.4em;
  border-radius: 1.2em;
  color: #fff;
  background: var(--graphite);
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: background 0.4s ease;
}

.proj:hover .sh-checkout {
  background: var(--teal-dark);
}

.sh-toast {
  position: absolute;
  top: -1.8em;
  left: 50%;
  z-index: 2;
  padding: 0.9em 1.6em;
  border-radius: 2em;
  background: var(--lime);
  box-shadow: 0 1em 2.4em rgba(17, 24, 23, 0.22);
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  translate: -50% 0;
  transform: translateY(1.2em) scale(0.9);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}

.proj:hover .sh-toast {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

/* ---------- 10. Stack ---------- */
/* A skill map: ByteForge in the middle, four colour-coded quadrants around it.
   Every node is placed by coordinates (not by flow), so nothing can drift or
   collide. The written list beside it is the real content; the map is the picture. */
.stack-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.stack-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  letter-spacing: -0.065em;
}

.stack-head h2 .line {
  display: block;
}

.stack-aside p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.stack-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.orbit-wrap {
  container-type: inline-size;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

/* 1em = 1% of the map's width, so the whole thing scales as one piece */
.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  overflow: clip;
  color: var(--ink);
  font-size: 9px;
  font-size: 1cqw;
}

.orbit * {
  box-sizing: border-box;
}

.axis {
  position: absolute;
  pointer-events: none;
}

.ax-h {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 16%, var(--line-strong) 84%, transparent);
}

.ax-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 16%, var(--line-strong) 84%, transparent);
}

/* quadrant glow, shown when its group is active */
.sector {
  position: absolute;
  width: 49em;
  height: 49em;
  background: radial-gradient(circle at var(--ox) var(--oy), color-mix(in srgb, var(--c) 26%, transparent), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.sector.is-on {
  opacity: 1;
}

.s-fe {
  --ox: 0%;
  --oy: 100%;
  bottom: 50%;
  left: 50%;
  border-radius: 0 100% 0 0;
}

.s-be {
  --ox: 0%;
  --oy: 0%;
  top: 50%;
  left: 50%;
  border-radius: 0 0 100% 0;
}

.s-wf {
  --ox: 100%;
  --oy: 0%;
  top: 50%;
  right: 50%;
  border-radius: 0 0 0 100%;
}

.s-doc {
  --ox: 100%;
  --oy: 100%;
  right: 50%;
  bottom: 50%;
  border-radius: 100% 0 0 0;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--r) * 2em);
  height: calc(var(--r) * 2em);
  margin: calc(var(--r) * -1em) 0 0 calc(var(--r) * -1em);
  border: 1px solid rgba(17, 24, 23, 0.15);
  border-radius: 50%;
  animation: ring-spin var(--t, 40s) linear infinite;
}

.ring.dash {
  border-style: dashed;
  border-color: rgba(17, 24, 23, 0.14);
}

.ring-edge {
  border-color: rgba(17, 24, 23, 0.09);
  animation: none;
}

.ring-b {
  animation-direction: reverse;
}

/* a small light travelling along each ring */
.sat {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5em;
  height: 1.5em;
  margin: -0.75em 0 0 -0.75em;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 0.55em color-mix(in srgb, var(--c) 18%, transparent);
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  width: 31em;
  height: 31em;
  margin: -15.5em 0 0 -15.5em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff, #eef3f0);
  box-shadow:
    0 0 0 1px rgba(17, 24, 23, 0.08),
    0 3em 6em -2em rgba(17, 24, 23, 0.34),
    inset 0 0 0 1.1em rgba(255, 255, 255, 0.75);
}

.orbit-hub::before {
  content: "";
  position: absolute;
  inset: -2em;
  border: 1px solid rgba(0, 167, 165, 0.35);
  border-radius: 50%;
  animation: hub-pulse 3.6s ease-out infinite;
}

@keyframes hub-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.orbit-hub img {
  width: 11em;
  height: 11em;
  border-radius: 2.6em;
}

.orbit-hub strong {
  font-size: 2.9em;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.orbit-hub small {
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 1.45em;
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1;
  text-indent: 0.3em;
  text-transform: uppercase;
}

/* nodes: positioned from the centre by --x / --y (in map units) */
.node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translate(calc(var(--x) * 1em), calc(var(--y) * 1em));
}

.node span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.4em 0.8em 1.1em;
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  border-radius: 99em;
  background: #fff;
  box-shadow: 0 0.8em 1.8em -1em rgba(17, 24, 23, 0.3);
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.55s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.node span::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--c);
}

.node.is-on span {
  border-color: var(--c);
  box-shadow:
    0 1em 2.4em -0.8em color-mix(in srgb, var(--c) 55%, transparent),
    0 0 0 0.25em color-mix(in srgb, var(--c) 14%, transparent);
  transform: translate(-50%, -50%) scale(1.07);
}

.node.is-dim span {
  opacity: 0.38;
}

/* group names sit in the corners, in a fixed grid */
.q-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.7em;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.q-label i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--c);
}

.q-fe {
  top: 0;
  right: 0;
}

.q-be {
  right: 0;
  bottom: 0;
}

.q-wf {
  bottom: 0;
  left: 0;
}

.q-doc {
  top: 0;
  left: 0;
}

.stack-lab [data-g="frontend"] {
  --ct: #006b69;
}

.stack-lab [data-g="backend"] {
  --ct: #437000;
}

.stack-lab [data-g="workflow"] {
  --ct: #2c332f;
}

.stack-lab [data-g="documents"] {
  --ct: #4b59dd;
}

.q-label.is-on {
  color: var(--ct, var(--c));
}

.q-label.is-dim {
  opacity: 0.45;
}

/* on a small screen the map keeps its structure and drops the words;
   the list below it carries the names */
@container (max-width: 480px) {
  .node span {
    width: 3.2cqw;
    height: 3.2cqw;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 0.7cqw color-mix(in srgb, var(--c) 16%, transparent);
    font-size: 0;
  }

  .node.is-on span {
    box-shadow:
      0 0 0 0.9cqw color-mix(in srgb, var(--c) 28%, transparent),
      0 0 3cqw color-mix(in srgb, var(--c) 55%, transparent);
  }

  .node span::before {
    display: none;
  }

  .q-label {
    display: none;
  }

  .orbit-hub small {
    display: none;
  }

  .orbit-hub strong {
    font-size: 3.4em;
  }
}

/* the written list */
.stack-groups {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-group {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s ease, translate 0.9s var(--ease);
}

.stack-group:last-child {
  border-bottom: 1px solid var(--line);
}

/* coloured line draws across the top of the active group */
.stack-group::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}

.stack-group.is-on::before {
  transform: scaleX(1);
}

.stack-group.is-dim {
  opacity: 0.7;
}

.sg-key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 2px solid var(--c);
  border-radius: 50%;
}

.sg-key::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  transition: transform 0.45s var(--ease);
}

.stack-group.is-on .sg-key::after {
  transform: scale(1.6);
}

.sg-body h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  transition: color 0.35s ease;
}

.stack-group.is-on h3 {
  color: var(--ct, var(--c));
}

.sg-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sg-tools {
  display: flex;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.sg-tools li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 0.9em;
  background: var(--line-strong);
  vertical-align: -0.12em;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .stack-lab {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 32px;
  }
}

/* ---------- 11. About ---------- */
.about-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.about-card h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.about-body {
  padding-left: clamp(0px, 3.6vw, 48px);
  border-left: 1px solid var(--line-strong);
}

.about-body p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.about-body .about-lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.about-body .about-lead strong {
  font-weight: 800;
}

.about-body p + p {
  margin-top: 20px;
}

/* three areas of work, marked on one line; colours match the Stack map */
.about-focus {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 560px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.about-focus::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00a7a5, #5f9a00 50%, #6c7cff);
  transform-origin: left center;
  transition: transform 1.3s var(--ease) 0.35s;
}

.js .about-card:not(.is-visible) .about-focus::before {
  transform: scaleX(0);
}

.about-focus li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
}

.about-focus li::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent);
}

.about-focus li:nth-child(1) {
  --c: #00a7a5;
}

.about-focus li:nth-child(2) {
  --c: #5f9a00;
}

.about-focus li:nth-child(3) {
  --c: #6c7cff;
}

.about-focus strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-focus span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- 12. Contact ---------- */
/* The closing band: the page darkens once, here, and runs straight into the footer. */
.contact {
  position: relative;
  padding-block: clamp(72px, 9vw, 112px) clamp(56px, 7vw, 88px);
  overflow-x: clip;
  color: #f3f6f4;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(182, 242, 58, 0.26), transparent 26rem),
    radial-gradient(circle at 0% 38%, rgba(0, 167, 165, 0.18), transparent 14rem),
    var(--graphite);
}

/* quiet orbit rings on the right echo the Stack map and fill the empty side */
.contact::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) - 150px);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 56px, rgba(255, 255, 255, 0.075) 56px 57px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 70%);
  mask-image: radial-gradient(circle, #000 18%, transparent 70%);
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-panel {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel h2 {
  color: #f3f6f4;
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  letter-spacing: -0.065em;
}

.contact-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(243, 246, 244, 0.7);
  font-size: 1.02rem;
  line-height: 1.82;
}

.contact-panel p.contact-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  color: rgba(243, 246, 244, 0.8);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
}

.contact-status i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: contact-ping 2.6s ease-out infinite;
}

.contact-status span {
  padding-left: 16px;
  border-left: 1px solid var(--line-dark);
}

@keyframes contact-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 242, 58, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(182, 242, 58, 0);
  }
}

.contact-panel .contact-actions {
  align-items: center;
  margin-top: 22px;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-panel .btn-ghost {
  color: #f3f6f4;
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel .btn-ghost:hover {
  border-color: var(--lime);
}

.contact-panel .btn-primary {
  color: var(--ink);
  background: var(--lime);
}

.copy-email {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #f3f6f4;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.copy-email:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.copy-email svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-email .i-check {
  display: none;
}

.copy-email.is-copied {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.copy-email.is-copied .i-copy {
  display: none;
}

.copy-email.is-copied .i-check {
  display: block;
}

.copy-email::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--ink);
  background: #f3f6f4;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.copy-email:hover::after,
.copy-email:focus-visible::after,
.copy-email.is-copied::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 28px var(--gutter) 42px;
  color: rgba(243, 246, 244, 0.6);
  background:
    linear-gradient(var(--line-dark), var(--line-dark)) center top / min(var(--page), calc(100% - 2 * var(--edge))) 1px no-repeat,
    var(--graphite);
}

.site-footer p,
.site-footer span {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- 14. Reveal ---------- */
/* Hidden only when JS is running (the "js" class is set in <head>).
   The hidden state has zero specificity so component styles can still win. */
:where(.js .reveal:not(.is-visible)) {
  opacity: 0;
  transform: translateY(24px);
}

/* While entering. Once .is-revealed is set, the element's own hover transitions take over. */
.js .reveal:not(.is-revealed) {
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
}

.js .reveal.delay-1:not(.is-revealed) {
  transition-delay: 0.12s;
}

.js .reveal.delay-2:not(.is-revealed) {
  transition-delay: 0.22s;
}

/* ---------- Reveal variants ---------- */
/* Each kind of content enters in its own way, so the page never repeats one fade-up.
   Hidden states have zero specificity; without JS nothing here applies. */
:where(.js .reveal[data-anim="pop"]:not(.is-visible)) {
  opacity: 0;
  transform: translateY(18px) scale(0.9);
}

:where(.js .reveal[data-anim="rise"]:not(.is-visible)) {
  opacity: 0;
  transform: translateY(64px) scale(0.97);
}

:where(.js .reveal[data-anim="from-left"]:not(.is-visible)) {
  opacity: 0;
  transform: translateX(-56px);
}

:where(.js .reveal[data-anim="from-right"]:not(.is-visible)) {
  opacity: 0;
  transform: translateX(56px);
}

:where(.js .reveal[data-anim="soft"]:not(.is-visible)) {
  opacity: 0;
  transform: none;
}

/* these animate their children, so the container itself stays put */
:where(
  .js .reveal[data-anim="lines"]:not(.is-visible),
  .js .reveal[data-anim="orbit"]:not(.is-visible),
  .js .reveal[data-anim="split"]:not(.is-visible),
  .js .reveal[data-anim="stagger"]:not(.is-visible)
) {
  opacity: 1;
  transform: none;
}

/* section headings: each line wipes upward, the supporting text slides in from the side */
.js [data-anim="lines"] .line {
  clip-path: inset(-0.2em 0 -0.3em 0);
  transition: clip-path 1.05s var(--ease), translate 1.05s var(--ease);
}

.js [data-anim="lines"] .line + .line {
  transition-delay: 0.12s;
}

:where(.js [data-anim="lines"]:not(.is-visible)) .line {
  clip-path: inset(-0.2em 0 100% 0);
  translate: 0 55%;
}

.js [data-anim="lines"] .eyebrow {
  transition: opacity 0.8s ease, translate 0.9s var(--ease);
}

:where(.js [data-anim="lines"]:not(.is-visible)) .eyebrow {
  opacity: 0;
  translate: -18px 0;
}

.js [data-anim="lines"] :is(.services-aside, .projects-aside, .stack-aside) {
  transition: opacity 0.9s ease 0.25s, translate 1s var(--ease) 0.25s;
}

:where(.js [data-anim="lines"]:not(.is-visible)) :is(.services-aside, .projects-aside, .stack-aside) {
  opacity: 0;
  translate: 32px 0;
}

/* skill map: the map scales up, then the list slides in row by row */
.js [data-anim="orbit"] .orbit {
  transition: scale 1.3s var(--ease), opacity 1s ease;
}

:where(.js [data-anim="orbit"]:not(.is-visible)) .orbit {
  opacity: 0;
  scale: 0.86;
}

:where(.js [data-anim="orbit"]:not(.is-visible)) .stack-group {
  opacity: 0;
  translate: 40px 0;
}

.js [data-anim="orbit"]:not(.is-revealed) .stack-group:nth-child(1) { transition-delay: 0.25s; }
.js [data-anim="orbit"]:not(.is-revealed) .stack-group:nth-child(2) { transition-delay: 0.37s; }
.js [data-anim="orbit"]:not(.is-revealed) .stack-group:nth-child(3) { transition-delay: 0.49s; }
.js [data-anim="orbit"]:not(.is-revealed) .stack-group:nth-child(4) { transition-delay: 0.61s; }

/* about: heading and body arrive from opposite sides */
.js [data-anim="split"] > div:first-child,
.js [data-anim="split"] .about-body {
  transition: opacity 1s ease, translate 1.1s var(--ease);
}

:where(.js [data-anim="split"]:not(.is-visible)) > div:first-child {
  opacity: 0;
  translate: -44px 0;
}

:where(.js [data-anim="split"]:not(.is-visible)) .about-body {
  opacity: 0;
  translate: 44px 0;
}

.js [data-anim="split"]:not(.is-revealed) .about-body {
  transition-delay: 0.15s;
}

/* contact: each line steps in after the one before it */
.js [data-anim="stagger"] > * {
  transition: opacity 0.8s ease, translate 0.9s var(--ease);
}

:where(.js [data-anim="stagger"]:not(.is-visible)) > * {
  opacity: 0;
  translate: 0 28px;
}

.js [data-anim="stagger"]:not(.is-revealed) > :nth-child(2) { transition-delay: 0.08s; }
.js [data-anim="stagger"]:not(.is-revealed) > :nth-child(3) { transition-delay: 0.16s; }
.js [data-anim="stagger"]:not(.is-revealed) > :nth-child(4) { transition-delay: 0.24s; }
.js [data-anim="stagger"]:not(.is-revealed) > :nth-child(5) { transition-delay: 0.32s; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 900px) {
  .site-header {
    top: 12px;
  }

  .site-header.is-scrolled {
    top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--hd-line);
    border-radius: var(--r-lg);
    background: var(--hd-menu);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s;
  }

  .nav-track {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav-indicator {
    display: none;
  }

  .nav-track a {
    padding: 14px 16px;
    border-radius: var(--r-md);
    color: var(--hd-fg);
    font-size: 1rem;
  }

  .nav-track a:hover,
  .nav-track a:focus-visible {
    background: var(--hd-chip);
  }

  .nav-track a.is-active {
    color: var(--hd-fg);
    background: color-mix(in srgb, var(--teal) 14%, transparent);
    box-shadow: inset 3px 0 0 var(--teal);
  }

  .nav-cta {
    justify-content: center;
    min-height: 50px;
    font-size: 0.95rem;
  }

  /* links settle in one after another when the menu opens */
  .nav-track a,
  .nav-cta {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease 0s, transform 0.4s var(--ease) 0s, background 0.25s ease, color 0.25s ease;
  }

  .site-nav.is-open .nav-track a,
  .site-nav.is-open .nav-cta {
    opacity: 1;
    transform: none;
  }

  .site-nav.is-open .nav-track a:nth-of-type(1) { transition-delay: 0.04s, 0.04s, 0s, 0s; }
  .site-nav.is-open .nav-track a:nth-of-type(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
  .site-nav.is-open .nav-track a:nth-of-type(3) { transition-delay: 0.12s, 0.12s, 0s, 0s; }
  .site-nav.is-open .nav-track a:nth-of-type(4) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
  .site-nav.is-open .nav-track a:nth-of-type(5) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
  .site-nav.is-open .nav-cta { transition-delay: 0.24s, 0.24s, 0s, 0s; }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 110px;
    padding-bottom: 64px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 4.4rem);
  }

  .terminal-window {
    min-height: 250px;
  }

  .scroll-cue {
    display: none;
  }

  .services-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .services-head h2 {
    max-width: none;
  }

  .service-board {
    grid-template-columns: 1fr;
  }

  .service-tile.tall,
  .service-tile.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .service-tile.wide,
  .service-tile.svc-office {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 300px;
  }

  .service-tile.wide .svc-body {
    flex: none;
    margin-top: auto;
  }

  .service-tile.wide .svc-art {
    flex: 1;
    align-self: auto;
    min-height: 150px;
    margin-bottom: 22px;
  }

  .service-tile.tall .svc-art {
    min-height: 230px;
  }

  .svc-systems .svc-art {
    order: -1;
  }

  .art-docs {
    min-height: 170px;
  }

  .projects-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .proj-feature-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proj-row {
    gap: 56px;
  }

  .row-a,
  .row-b {
    grid-template-columns: 1fr;
  }

  .row-a > .proj:nth-child(2),
  .row-b > .proj:nth-child(1) {
    margin-top: 0;
  }

  .stage-zs {
    aspect-ratio: 4 / 2.7;
  }

  .stage-paarees,
  .stage-jobix,
  .stage-aurora,
  .stage-shop {
    aspect-ratio: 4 / 3.2;
  }

  .zs-phone-wrap {
    right: 3%;
    bottom: -10%;
    width: 23%;
  }

  .stack-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .stack-lab {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .orbit-wrap {
    max-width: 560px;
  }

  .about-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-body {
    padding-left: 0;
    border-left: 0;
  }

  .contact::after {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Short screens (e.g. phones in landscape): let the open mobile menu scroll so
   every link and the CTA stay reachable. Scoped to short heights so the CTA's
   hover glow is not clipped on taller screens, where the menu always fits. */
@media (max-width: 900px) and (max-height: 520px) {
  .site-nav {
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.9rem;
  }

  .service-tile {
    padding: 20px;
  }

  .ac-blocks {
    grid-template-columns: repeat(2, 68px);
    grid-auto-rows: 48px;
  }

  .svc-wordpress:hover .ac-blocks .a {
    transform: translateX(78px);
  }

  .svc-wordpress:hover .ac-blocks .b {
    transform: translateX(-78px);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .terminal-window {
    min-height: 250px;
    padding: 20px;
    font-size: 0.82rem;
  }

  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .panel-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .proj-link {
    padding: 10px 16px;
  }

  .zs-phone-wrap {
    width: 27%;
  }

  .contact-status span {
    padding-left: 0;
    border-left: 0;
  }

  .contact-email {
    width: 100%;
  }

  .contact-email .btn {
    flex: 1;
    min-width: 0;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .about-focus {
    max-width: none;
  }

  .stack-group {
    gap: 16px;
    padding: 20px 0;
  }

}

@media (max-width: 700px) {
  .about-focus {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-focus::before {
    display: none;
  }

  .about-focus li {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
  }

  .about-focus li::before {
    grid-row: 1 / span 2;
    margin: 2px 0 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
