/* =========================================================
   Adrian Piwin — portfolio
   ========================================================= */

:root {
  --bg: #0a0f18;
  --bg-2: #0e1522;
  --surface: #121b2a;
  --surface-2: #172234;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf4;
  --muted: #9aa5b8;
  --faint: #6b778b;
  --accent: #fb9101;
  --accent-2: #ffb347;
  --accent-soft: rgba(251, 145, 1, 0.14);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #111; }

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

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.bg-glow--a {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(251, 145, 1, 0.55), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.bg-glow--b {
  width: 620px; height: 620px;
  top: 30vh; left: -260px;
  background: radial-gradient(circle, rgba(54, 65, 86, 0.9), transparent 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-120px, 140px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(160px, -80px) scale(0.9); } }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.btn span { transition: transform 0.35s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: #140c00;
  box-shadow: 0 8px 30px -10px rgba(251, 145, 1, 0.7);
}
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 12px 36px -10px rgba(251, 145, 1, 0.85); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
  font-family: inherit;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-icon { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff6a00);
  color: #140c00;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0;
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-family: var(--font-display); font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.nav.is-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  gap: 4px;
}
.mobile-menu a {
  font: 600 28px/1.2 var(--font-display);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.nav.is-open .mobile-menu a { opacity: 1; transform: none; }
.nav.is-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
.nav.is-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
.nav.is-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow .mono { color: var(--accent); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251, 145, 1, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(251, 145, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 145, 1, 0); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
    align-items: center;
  column-gap: 48px;
  padding-top: 120px;
  padding-bottom: 48px;
}
.hero-title {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 24px 0 24px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) .word { animation-delay: 0.12s; }
.hero-title .line--sub {
  font-size: 0.56em;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin-top: 0.2em;
  color: var(--muted);
}
@keyframes rise { to { transform: translateY(0); } }
.typed {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-lede {
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-social { display: flex; gap: 8px; margin-top: 32px; }
.hero-social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.35s var(--ease);
}
.hero-social a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-3px); }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.orbit {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.orbit-ring--1 { inset: 4%; animation: spin 60s linear infinite; }
.orbit-ring--2 { inset: 20%; border-style: solid; border-color: rgba(251, 145, 1, 0.18); animation: spin 40s linear infinite reverse; }
.orbit-ring--1::after,
.orbit-ring--2::after {
  content: "";
  position: absolute;
  top: 50%; left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.orbit-ring--2::after { left: auto; right: -4px; background: #fff; box-shadow: 0 0 12px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-card {
  position: relative;
  width: 56%;
  aspect-ratio: 0.8;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(251, 145, 1, 0.25), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-2);
  display: grid;
  place-items: end center;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font: 500 clamp(18px, 2.2vw, 26px)/1 var(--font-display);
  color: var(--faint);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after { content: "✦"; font-size: 0.55em; color: var(--accent); margin-right: -28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(88px, 12vw, 140px); }
.section--tight { padding-top: clamp(72px, 9vw, 110px); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title {
  margin-top: 16px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.link-arrow {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Feature (products) ---------- */
.feature {
  --brand: var(--accent);
  --brand-2: var(--accent-2);
  --brand-3: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.feature + .feature { margin-top: 28px; }
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
  transition: opacity 0.4s;
}
.feature--flip .feature-copy { order: 2; }
.feature-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon--hc { background: linear-gradient(135deg, #ff7a1a, #ff3d6e); color: #fff; border: 0; }
.feature-icon--ss { background: #0e1310; color: #46c295; }
.tag {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.feature-title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; }
.feature-tagline {
  margin-top: 10px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  color: color-mix(in srgb, var(--brand) 55%, #fff);
}
.feature-desc { margin-top: 16px; color: var(--muted); max-width: 520px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack li {
  font: 500 12.5px/1 var(--font-mono);
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.feature-visual {
  position: relative;
  border-radius: 22px;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 55%),
    radial-gradient(circle at 70% 15%, color-mix(in srgb, var(--brand-3) 18%, transparent), transparent 45%),
    #0b0f16;
  border: 1px solid var(--line);
}
.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 90%);
  pointer-events: none;
}

/* Phones */
.phones {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: absolute;
  margin: 0;
  width: 168px;
  aspect-ratio: 1170 / 2420;
  border-radius: 26px;
  padding: 5px;
  background: linear-gradient(160deg, #3a3f4a, #121418);
  box-shadow:
    0 40px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.9s var(--ease);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 21px;
}
.phone--c { z-index: 2; width: 188px; transform: translateY(var(--py, 0px)); }
.phone--l { transform: translate(-128px, calc(28px + var(--py, 0px) * 0.5)) rotate(-8deg); }
.phone--r { transform: translate(128px, calc(28px + var(--py, 0px) * 0.5)) rotate(8deg); }
.feature:hover .phone--l { transform: translate(-150px, calc(22px + var(--py, 0px) * 0.5)) rotate(-11deg); }
.feature:hover .phone--r { transform: translate(150px, calc(22px + var(--py, 0px) * 0.5)) rotate(11deg); }
.feature:hover .phone--c { transform: translateY(calc(-8px + var(--py, 0px))); }

/* Terminal / chart */
.terminal {
  position: relative;
  z-index: 1;
  width: min(92%, 480px);
  border-radius: 16px;
  background: rgba(14, 19, 16, 0.92);
  border: 1px solid #28332c;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(70, 194, 149, 0.08);
  overflow: hidden;
  transform: translateY(var(--py, 0px));
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #28332c;
  font-size: 12px;
  color: #9aa8a0;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 10px; height: 10px; border-radius: 50%; background: #28332c; }
.terminal-title em { font-style: normal; color: #e2a55f; }
.live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #46c295; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #46c295; animation: blink 1.4s steps(1) infinite; }
.chart { display: block; width: 100%; height: 240px; }
.chart .grid-line { stroke: rgba(154, 168, 160, 0.1); stroke-width: 1; }
.chart .wick { stroke-width: 1.2; }
.chart .candle { transform-box: fill-box; transform-origin: 50% 100%; }
.chart .up { fill: #46c295; stroke: #46c295; }
.chart .down { fill: #e07a76; stroke: #e07a76; }
.chart .ma {
  fill: none;
  stroke: #e2a55f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart .zone { fill: rgba(70, 194, 149, 0.1); stroke: rgba(70, 194, 149, 0.45); stroke-dasharray: 4 4; }
.chart .zone-label { fill: #46c295; font: 500 9px var(--font-mono); }
.terminal-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #28332c;
  font-size: 12px;
  color: #9aa8a0;
}
.rr { color: #46c295; font-weight: 500; }


/* ---------- Pixel sprites ---------- */
.sprite {
  position: relative;
  z-index: 1;
  aspect-ratio: 24 / 32;
  background-repeat: no-repeat;
  background-size: calc(var(--frames, 1) * 100%) 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.sprite--hero { width: 72%; margin-bottom: 10%; }
.sprite--about { width: 46%; margin-bottom: 24%; }
.sprite--sm { width: 80px; }
.sprite-shadow {
  position: absolute;
  left: 50%;
  width: 34%;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  filter: blur(2px);
}
.avatar-card .sprite-shadow { bottom: calc(10% - 4px); width: 42%; }
.about-card .sprite-shadow { bottom: calc(24% - 4px); }

.section-head--sprite { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sprite-perch { position: relative; flex: none; padding: 0 12px 6px; }
.sprite-perch .sprite-shadow,
.card-more-art .sprite-shadow,
.contact-sprite .sprite-shadow { bottom: 2px; width: 46px; height: 8px; }

.card--more {
  border-style: dashed;
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.015);
}
.card-more-art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: end center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-2);
  background:
    radial-gradient(circle at 50% 70%, rgba(251, 145, 1, 0.16), transparent 60%);
}
.card--more h3 { transition: color 0.2s; }
.card--more:hover h3 { color: var(--accent); }

.contact-sprite {
  position: relative;
  width: max-content;
  margin: 0 auto 18px;
  padding-bottom: 6px;
}

/* ---------- Kayletter garden ---------- */
.feature-visual--garden {
  background: linear-gradient(#7ec8e3 0%, #f9c784 62%, #f4a7b4 100%);
  border-color: rgba(255, 255, 255, 0.12);
}
.feature-visual--garden::after { display: none; }
.feature-icon--kl { background: #fdf3e3; border: 0; }
.feature-icon--kl img { width: 26px; }
.garden { position: absolute; inset: 0; overflow: hidden; }
.garden-sun {
  position: absolute;
  top: 16%; right: 16%;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #ffd93d;
  box-shadow: 0 0 0 10px rgba(255, 217, 61, 0.25), 0 0 60px 20px rgba(255, 217, 61, 0.35);
  animation: breathe 5s ease-in-out infinite;
}
.garden-cloud {
  position: absolute;
  height: 16px;
  background: #fffaf2;
  box-shadow: 8px -8px 0 0 #fffaf2, 24px -8px 0 0 #fffaf2, 16px -16px 0 0 #fffaf2;
  opacity: 0.9;
  animation: cloud 38s linear infinite;
}
.garden-cloud--1 { top: 22%; width: 64px; left: -20%; }
.garden-cloud--2 { top: 36%; width: 44px; left: -20%; animation-duration: 52s; animation-delay: -26s; opacity: 0.7; }
@keyframes cloud { to { transform: translateX(900px); } }
.garden-hill {
  position: absolute;
  bottom: 18%;
  border-radius: 50% 50% 0 0;
  background: #a9cf8c;
}
.garden-hill--1 { left: -10%; width: 70%; height: 30%; }
.garden-hill--2 { right: -15%; width: 80%; height: 24%; background: #97c47b; }
.garden-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(#7fb069 0 70%, #8a6647 70%);
  border-top: 4px solid #5d8a4a;
}
.garden-field {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(18% - 6px);
  height: 150px;
  overflow: hidden;
}
.garden-track {
  position: absolute;
  bottom: 0; left: 0;
  display: flex;
  align-items: flex-end;
  width: max-content;
  animation: garden-scroll 26s linear infinite;
}
.garden-track img { margin-right: 44px; image-rendering: pixelated; }
.fl--big { height: 130px; }
.fl--mid { height: 104px; }
.fl--sprout { height: 34px; }
.fl--sm { height: 64px; }
@keyframes garden-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.garden-pig {
  position: absolute;
  left: 50%;
  bottom: calc(18% - 8px);
  width: 118px;
  aspect-ratio: 104 / 110;
  transform: translateX(-50%);
  background: url("../assets/img/kayletter/pig-walk-letter.webp") 0 0 / 800% 100% no-repeat;
  animation: pig-walk 0.96s steps(8) infinite;
  z-index: 2;
}
@keyframes pig-walk { to { background-position: 114.2857% 0; } }
.garden-hearts { position: absolute; left: 50%; bottom: calc(18% + 90px); z-index: 2; }
.garden-hearts i {
  position: absolute;
  width: 14px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8788a' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  animation: heart 3.6s ease-out infinite;
}
.garden-hearts i:nth-child(2) { left: 18px; animation-delay: 1.2s; }
.garden-hearts i:nth-child(3) { left: -20px; animation-delay: 2.4s; }
@keyframes heart {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70px) scale(1.1); }
}
.garden-ui {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.garden-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: #fdf3e3;
  color: #4a3428;
  border: 2px solid #4a3428;
  border-radius: 6px;
  box-shadow: 0 3px 0 #4a3428;
  font: 500 12px/1 var(--font-mono);
}
.garden-chip img { height: 16px; width: auto; }

/* ---------- Cards (earlier work) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(18, 27, 42, 0.55);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-6px); background: rgba(23, 34, 52, 0.7); }
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141a26;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: saturate(0.85);
}
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1.05); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card-kind {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  white-space: nowrap;
}
.card-kind--award { color: var(--accent); }
.card-body > p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.card-body > .card-stack { font: 12.5px/1.4 var(--font-mono); color: var(--faint); margin-top: 14px; }
.card-links { display: flex; gap: 18px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; }
.card-links a { color: var(--text); transition: color 0.2s; }
.card-links a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2436, #0c121c);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.about-card-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 145, 1, 0.35), transparent 65%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }
.about-card-label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 15, 24, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
}
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.about-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 600px; }
.about-copy .section-title { margin-bottom: 8px; }
.about-copy > p:last-child { color: var(--text); }
/* ---------- Contact ---------- */
.contact {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(251, 145, 1, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.contact-title {
  margin-top: 20px;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.contact-lede { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 460px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.copy.is-copied { border-color: #3ddc84; color: #3ddc84; }
.contact-links { display: flex; justify-content: center; gap: 28px; margin-top: 32px; color: var(--muted); font-weight: 500; }
.contact-links a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 56px;
  padding-bottom: 40px;
  color: var(--faint);
  font-size: 14px;
}
.to-top:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature,
  .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.is-open { background: rgba(10, 15, 24, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav.is-open .mobile-menu { display: flex; }
  .mobile-menu { display: flex; max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height 0.5s var(--ease), padding 0.5s var(--ease); }
  .nav.is-open .mobile-menu { max-height: 420px; padding-top: 8px; padding-bottom: 24px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 104px;
    min-height: auto;
  }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .orbit { width: min(300px, 78vw); }
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 360px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-title { margin: 20px 0; }
  .hero-cta .btn { flex: 1 1 auto; }
  .grid { grid-template-columns: 1fr; }
  .feature { padding: 20px; border-radius: 22px; }
  .feature-visual { min-height: 360px; border-radius: 16px; }
  .phones { height: 360px; transform: scale(0.8); }
  .phone--l { transform: translate(-112px, calc(26px + var(--py, 0px) * 0.5)) rotate(-8deg); }
  .phone--r { transform: translate(112px, calc(26px + var(--py, 0px) * 0.5)) rotate(8deg); }
  .feature:hover .phone--l { transform: translate(-112px, calc(26px + var(--py, 0px) * 0.5)) rotate(-8deg); }
  .feature:hover .phone--r { transform: translate(112px, calc(26px + var(--py, 0px) * 0.5)) rotate(8deg); }
  .chart { height: 200px; }
  .garden-pig { width: 96px; }
  .garden-field { height: 120px; }
  .fl--big { height: 104px; }
  .fl--mid { height: 84px; }
  .fl--sm { height: 52px; }
  .garden-sun { width: 42px; height: 42px; }
  .sprite--sm { width: 60px; }
  .feature-links .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .btn--lg { font-size: 15px; }
  .footer { flex-direction: column; align-items: center; }
}

@media (hover: none) {
  .feature:hover .phone--c { transform: translateY(var(--py, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-title .word { transform: none; }
  .marquee-track { animation: none; }
}
