/* ============================================================
   Elara Voss® — Portfolio
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0e10;
  --bg-deep: #0a0a0c;
  --surface: #17171b;
  --ink: #ecece8;
  --muted: #8f8f97;
  --accent: #d4ff3f;
  --accent-ink: #0f1403;
  --line: rgba(236, 236, 232, 0.14);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
sup { font-size: 0.4em; vertical-align: super; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Visible to screen readers and crawlers, not on screen */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2b2b31; border-radius: 99px; }

.container {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(5.5rem, 11vw, 11rem); }

/* ---------- Grain overlay ---------- */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 300;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}
.cursor__dot {
  position: absolute;
  top: -5px; left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.cursor__label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(0);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease-out);
}
.cursor--hover .cursor__label { transform: translate(-50%, -50%) scale(1); }
.cursor--hover .cursor__dot { transform: scale(0); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preloader__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--accent);
  margin-top: 0.5rem;
}
.preloader__num::after { content: "%"; font-size: 0.35em; vertical-align: super; margin-left: 0.05em; }
.preloader__bar {
  width: min(280px, 60vw);
  height: 2px;
  margin: 2rem auto 0;
  background: rgba(236, 236, 232, 0.12);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
}
.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav--hidden { transform: translateY(-110%); }
.nav--menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.nav__logo sup { color: var(--accent); }
.nav__links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  padding-block: 0.25rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  z-index: 120;
}
.burger span {
  position: absolute;
  left: 8px;
  width: 28px; height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--pad);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8.6vw, 4.5rem);
  line-height: 1.25;
  text-transform: uppercase;
  padding-block: 0.2rem;
}
.menu__idx {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.menu__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: clip;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding-top: 6rem;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 13.5vw, 13.5rem);
  /* cap by viewport height too, so the hero always fits above the fold */
  font-size: clamp(2.5rem, min(13.5vw, 52svh - 200px), 13.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}
.hero__line { display: block; overflow: hidden; padding-block: 0.04em; }
.hero__line--right { text-align: right; }
.hero__word { display: inline-block; will-change: transform; }
.hero__word--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero__word sup { -webkit-text-stroke: 1px var(--ink); }
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.hero__blurb {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.hero__badge {
  position: relative;
  width: clamp(96px, 10vw, 130px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}
.hero__badge-svg {
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
  overflow: visible;
}
.hero__badge-svg text {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__badge-arrow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.1rem, 2.2vw, 1.8rem);
  background: var(--bg-deep);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.marquee__item i {
  font-style: normal;
  color: var(--accent);
  margin-inline: 0.35em;
}

/* ---------- Section heads ---------- */
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section__sub {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
}
.project:nth-child(even) { transform: translateY(clamp(2rem, 6vw, 6rem)); }
.project__link { display: block; }
.project__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.4;
  background: var(--surface);
}
.cover {
  position: absolute;
  inset: -12% 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

/* -- Cover: ColdSnap (AI cold email / dark + yellow) -- */
.cover--coldsnap { background: linear-gradient(135deg, #131208 0%, #211d0d 55%, #332a10 100%); }
.cover--coldsnap .cover__orb {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  right: -12%;
  top: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(245, 197, 24, 0.5), rgba(245, 197, 24, 0.06) 60%, transparent 72%);
  filter: blur(24px);
}
.ui-window-dots { display: flex; gap: 6px; }
.ui-window-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.ui-window-dots i:first-child { background: rgba(245, 197, 24, 0.7); }
.ui-card__line.ui-card__line--bright { background: rgba(255, 255, 255, 0.6); }
.ui-send {
  padding: 7px 16px;
  border-radius: 99px;
  background: #f5c518;
  color: #241c02;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* -- Cover: TruckPay (trucking fintech / navy + orange, neo-brutalist) -- */
.cover--truckpay {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 34px),
    linear-gradient(150deg, #16223c 0%, #1a2740 60%, #20304e 100%);
}
.ui-card.ui-card--tp {
  background: #f5a623;
  border: 2px solid #101a2e;
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(6, 10, 20, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: rotate(2deg);
}
.project__link:hover .ui-card.ui-card--tp,
.project__link:focus-visible .ui-card.ui-card--tp { transform: rotate(0deg) translateY(-10px); }
.ui-tp-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #16223c;
}
.ui-tp-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  color: #16223c;
}
.ui-tp-line {
  height: 9px;
  border-radius: 99px;
  background: rgba(22, 34, 60, 0.45);
}
.ui-tp-line.w60 { width: 60%; }
.ui-tp-line.w25 { width: 25%; }
.ui-tp-progress {
  height: 8px;
  border: 1.5px solid #16223c;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}
.ui-tp-progress i { display: block; width: 72%; height: 100%; background: #16223c; }
.ui-pill--tp {
  background: #fff;
  color: #16223c;
  border: 2px solid #101a2e;
  box-shadow: 4px 4px 0 rgba(6, 10, 20, 0.55);
  top: 20%; right: 12%;
  transform: rotate(4deg);
  font-weight: 700;
}

/* -- Cover: AI Receptionists (voice AI / violet) -- */
.cover--reception { background: linear-gradient(150deg, #171231 0%, #241a4d 60%, #33246b 100%); }
.cover__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cover__rings i {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 181, 253, 0.28);
}
.cover__rings i:nth-child(1) { width: 46%; aspect-ratio: 1; }
.cover__rings i:nth-child(2) { width: 68%; aspect-ratio: 1; border-color: rgba(196, 181, 253, 0.16); }
.cover__rings i:nth-child(3) { width: 92%; aspect-ratio: 1; border-color: rgba(196, 181, 253, 0.08); }

/* -- Cover: Formino (premium stone / ivory marble + gold) -- */
.cover--formino { background: linear-gradient(150deg, #f0ebe2 0%, #e7dfd1 50%, #d8cdb9 100%); }
.cover__veins {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 30%, rgba(184, 141, 43, 0.45) 31%, transparent 34%),
    linear-gradient(105deg, transparent 55%, rgba(184, 141, 43, 0.32) 56%, transparent 58.5%),
    linear-gradient(130deg, transparent 71%, rgba(153, 120, 40, 0.38) 72.5%, transparent 75.5%),
    linear-gradient(95deg, transparent 12%, rgba(160, 130, 60, 0.22) 13%, transparent 16.5%);
  filter: blur(4px);
}
.ui-card.ui-card--crm {
  background: rgba(26, 24, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}
.ui-avatar.ui-avatar--gold { background: linear-gradient(135deg, #e8c95c, #b8862b); }
.ui-avatar.ui-avatar--stone { background: linear-gradient(135deg, #cfc8ba, #8f8677); }
.ui-status {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 99px;
  background: #c9a227;
  color: #241c02;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-status--dim {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

/* -- Reception cover pieces: call card + voice bars -- */
.ui-call-dot {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #7ce38b;
  box-shadow: 0 0 0 4px rgba(124, 227, 139, 0.22);
  animation: pulse 1.8s ease-in-out infinite;
}
.ui-bars.ui-bars--voice {
  align-items: center;
  height: 44px;
}
.ui-bars.ui-bars--voice i {
  border-radius: 99px;
  background: linear-gradient(to top, rgba(196, 181, 253, 0.45), rgba(196, 181, 253, 0.95));
}

/* -- Skeleton UI pieces -- */
.ui-card {
  position: relative;
  z-index: 2;
  width: min(300px, 62%);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-out);
}
.project__link:hover .ui-card,
.project__link:focus-visible .ui-card { transform: rotate(0deg) translateY(-10px); }
.ui-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-card__row--center { justify-content: center; gap: 22px; }
.ui-card__row > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ui-card__line {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}
.ui-card__line.w80 { width: 80%; } .ui-card__line.w70 { width: 70%; }
.ui-card__line.w60 { width: 60%; } .ui-card__line.w50 { width: 50%; }
.ui-card__line.w45 { width: 45%; } .ui-card__line.w40 { width: 40%; }
.ui-card__line.w25 { width: 25%; }
.ui-card__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}
.ui-card__big:empty {
  height: 26px;
  width: 55%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
}
.ui-card__big.w30 { width: auto; }
.ui-card__divider { height: 1px; background: rgba(255, 255, 255, 0.16); }
.ui-card__divider--dashed { background: none; border-top: 1.5px dashed rgba(255, 255, 255, 0.28); }
.ui-chip { width: 64px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.ui-chip--solid { flex: 0 0 auto; background: var(--accent); }
.ui-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); flex: 0 0 auto; }
.ui-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #b7a4f5, #6d4fd0);
}
.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 58px;
}
.ui-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(212, 255, 63, 0.35), rgba(212, 255, 63, 0.9));
}
.ui-pill {
  position: absolute;
  z-index: 3;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: transform 0.6s var(--ease-out);
}
.ui-pill--a { background: #f5c518; color: #241c02; top: 22%; left: 12%; transform: rotate(-6deg); }
.ui-pill--b { background: #c4b5fd; color: #1c1440; bottom: 20%; right: 10%; transform: rotate(4deg); }
.ui-pill--c { background: #c9a227; color: #241c02; top: 20%; right: 12%; transform: rotate(5deg); }
.project__link:hover .ui-pill { transform: rotate(0deg) scale(1.06); }

/* -- Project info row -- */
.project__info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "idx name arrow" "idx tags arrow";
  column-gap: 1.1rem;
  align-items: baseline;
  padding-top: 1.2rem;
}
.project__idx {
  grid-area: idx;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  align-self: start;
  padding-top: 0.35rem;
}
.project__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.3s;
}
.project__tags {
  grid-area: tags;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}
.project__arrow {
  grid-area: arrow;
  align-self: start;
  font-size: 1.4rem;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.project__link:hover .project__name { color: var(--accent); }
.project__link:hover .project__arrow { transform: translate(6px, -4px) rotate(-45deg); color: var(--accent); }

/* ---------- About ---------- */
.about__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.about__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  align-items: start;
}
.about__bio {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  max-width: 52ch;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3.5vw, 3.2rem) 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--accent);
}
.stat__num { display: inline; }
.stat .stat__plus { display: inline; }
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* number + plus on one line */
.stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.stat__label { flex-basis: 100%; }

/* ---------- Services ---------- */
.services__list { border-top: 0; }
.service {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.6rem, 3.2vw, 2.6rem);
  transition: opacity 0.4s;
}
@media (hover: hover) {
  .services__list:hover .service { opacity: 0.4; }
  .services__list:hover .service:hover { opacity: 1; }
}
.service__row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
}
.service__idx { font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.service__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-out);
}
.service:hover .service__name { transform: translateX(clamp(0.4rem, 1.5vw, 1.2rem)); }
.service__arrow {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--muted);
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.service:hover .service__arrow { transform: rotate(-45deg); color: var(--accent); }
.service__desc {
  margin-top: 0.9rem;
  margin-left: 4.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__details { position: relative; }

.faq__q {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: start;
  gap: 1rem;
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
  cursor: pointer;
  list-style: none;
}
/* hide the native disclosure triangle */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__idx {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.4em;
}
.faq__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  transition: color 0.3s;
}
.faq__details:hover .faq__text,
.faq__details[open] .faq__text { color: var(--accent); }

/* plus that rotates into a cross when open */
.faq__icon {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.5em;
  transition: transform 0.45s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__details[open] .faq__icon { transform: rotate(135deg); }

.faq__a { overflow: hidden; }
.faq__a p {
  max-width: 62ch;
  margin-left: 4.5rem;
  padding-right: 3rem;
  padding-bottom: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-bottom: 2.5rem;
}
.footer__kicker {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 14rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}
.footer__line { overflow: hidden; padding-block: 0.04em; }
.footer__word { display: inline-block; will-change: transform; }
.footer__word--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
}
.footer__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.footer__cta:hover { color: var(--accent-ink); border-color: var(--accent); }
.footer__cta:hover::before { transform: scaleY(1); }
.footer__cta { z-index: 0; }
.footer__cta-arrow { font-size: 1.2em; }

/* Call / email action stack */
.footer__actions {
  display: flex;
  flex-direction: column;
  /* stretch + max-content: both pills take the width of the widest one */
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__actions .footer__cta { justify-content: center; }
/* Primary (call) — lime fill, inverts to ink on hover */
.footer__cta--primary {
  gap: 0.75rem;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.footer__cta--primary::before { background: var(--ink); }
.footer__cta--primary:hover { color: var(--bg-deep); border-color: var(--ink); }
.footer__cta-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer__socials { display: flex; gap: 1.6rem; }
.footer__socials a {
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.3s;
}
.footer__socials a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.footer__socials a:hover { color: var(--ink); }
.footer__socials a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__time { font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__meta { display: none; }
  .burger { display: block; }

  .work__grid { grid-template-columns: 1fr; }
  .project:nth-child(even) { transform: none; }

  .about__cols { grid-template-columns: 1fr; }

  /* Text block centres in the viewport; the badge stays pinned bottom-right. */
  .hero__content { justify-content: center; padding-top: 6rem; padding-bottom: 6rem; }
  .hero__foot { flex-wrap: wrap; }
  .hero__badge {
    position: absolute;
    right: var(--pad);
    bottom: clamp(1.5rem, 4vh, 2.75rem);
    margin: 0;
  }
  .hero__scroll { display: none; }

  .service__row { grid-template-columns: 2.4rem 1fr auto; }
  .service__desc { margin-left: 3.4rem; }

  .faq__q { grid-template-columns: 2.4rem 1fr auto; }
  .faq__a p { margin-left: 3.4rem; padding-right: 0; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 13vw; }
  .hero__word--outline { -webkit-text-stroke-width: 1.5px; }
  .footer__word--outline { -webkit-text-stroke-width: 1.5px; }
  .hero__blurb br { display: none; }
  .project__media { aspect-ratio: 4 / 4.2; }
  .ui-card { width: min(280px, 78%); }
  .service__desc { margin-left: 0; }
  .faq__a p { margin-left: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .noise { animation: none; }
  .hero__badge-svg { animation: none; }
}
