:root {
  --bg: #f8fff9;
  --bg-soft: #effbf2;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #07130d;
  --muted: #607169;
  --muted-2: #8a9a92;
  --line: rgba(14, 72, 39, 0.12);
  --line-strong: rgba(16, 142, 69, 0.28);
  --green: #12c965;
  --green-bright: #20e87a;
  --green-dark: #068944;
  --shadow: 0 30px 90px rgba(6, 74, 34, 0.14);
  --shadow-soft: 0 18px 54px rgba(7, 35, 18, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 232, 122, 0.18), transparent 32vw),
    radial-gradient(circle at 86% 18%, rgba(18, 201, 101, 0.12), transparent 34vw),
    linear-gradient(180deg, #fbfffc 0%, #f5fff7 52%, #ffffff 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(9, 124, 58, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 124, 58, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 220px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(248, 255, 249, .98), transparent);
}

::selection {
  background: rgba(18, 201, 101, .24);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.cursor-ring,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, width .22s ease, height .22s ease, border-color .22s ease, background .22s ease;
}

.cursor-ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid rgba(18, 201, 101, .45);
  border-radius: 999px;
  backdrop-filter: blur(1px);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(18, 201, 101, .5);
}

body.has-cursor .cursor-ring,
body.has-cursor .cursor-dot {
  opacity: 1;
}

.cursor-ring.is-hovering {
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-color: rgba(18, 201, 101, .86);
  background: rgba(18, 201, 101, .08);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: rgba(18, 201, 101, .08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-bright));
  box-shadow: 0 0 18px rgba(18, 201, 101, .45);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: #fbfffc;
  transition: opacity .7s cubic-bezier(.16,1,.3,1), visibility .7s;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark {
  position: relative;
  width: 98px;
  height: 98px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 16px rgba(18, 201, 101, .055), 0 22px 70px rgba(18, 201, 101, .16);
}

.preloader-mark span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  height: 2px;
  background: var(--green);
  transform-origin: left center;
  animation: clockTick 1.5s linear infinite;
}

.preloader-mark span:nth-child(2) {
  width: 34%;
  animation-duration: 5s;
  background: var(--green-dark);
}

.preloader-mark span:nth-child(3) {
  width: 28%;
  animation-duration: 18s;
  opacity: .72;
}

.preloader p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
}

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 16px 50px rgba(7, 35, 18, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
}

.brand-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at center, white 0 25%, rgba(18, 201, 101, .18) 26% 48%, transparent 49%), linear-gradient(145deg, #0a9e4e, #28e980);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 12px 28px rgba(18, 201, 101, .24);
}

.brand-icon::before,
.brand-icon::after,
.brand-icon i {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform-origin: left center;
}

.brand-icon::before { transform: rotate(-135deg); }
.brand-icon::after { transform: rotate(-45deg); opacity: .5; width: 33%; }
.brand-icon i { transform: rotate(-92deg); width: 28%; opacity: .7; }

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

.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(7, 19, 13, .03);
}

.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color .22s ease, background .22s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px rgba(7, 35, 18, .06);
}

.header-mail {
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 12px 30px rgba(7, 19, 13, .14);
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 38px));
  margin: 0 auto;
  padding: 118px 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, .9fr);
  align-items: center;
  gap: 56px;
  padding-top: 128px;
  padding-bottom: 56px;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.speed {
  position: absolute;
  height: 1px;
  width: 42vw;
  background: linear-gradient(90deg, transparent, rgba(18, 201, 101, .4), transparent);
  transform: rotate(-18deg);
  animation: speedLine 7s linear infinite;
}

.speed-a { top: 22%; left: -40%; animation-delay: 0s; }
.speed-b { top: 46%; left: -50%; animation-delay: -2.2s; width: 56vw; }
.speed-c { bottom: 24%; left: -46%; animation-delay: -4.8s; width: 36vw; }

.green-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  border: 1px solid rgba(18, 201, 101, .18);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-a {
  right: 5%;
  top: 16%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(32,232,122,.18), transparent 62%);
}

.orb-b {
  left: 34%;
  bottom: 13%;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(18,201,101,.14), transparent 64%);
  animation-delay: -3s;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(72px, 12.6vw, 184px);
  line-height: .78;
  letter-spacing: -.095em;
  text-transform: uppercase;
}

.title-line {
  display: block;
  transform-origin: left bottom;
  animation: titleRise 1s cubic-bezier(.16,1,.3,1) both;
}

.title-line:nth-child(2) { animation-delay: .1s; }
.title-line:nth-child(3) { animation-delay: .2s; }

.title-line.accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  text-shadow: 0 16px 56px rgba(18, 201, 101, .2);
}

.hero-lead {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.48;
  letter-spacing: -.035em;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65), transparent 65%);
  transform: translateX(-70%) rotate(8deg);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}

.button:hover::after {
  transform: translateX(70%) rotate(8deg);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 18px 44px rgba(18, 201, 101, .26);
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.clock-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.clock-card {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: .88;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 42px;
  background: linear-gradient(150deg, rgba(255,255,255,.86), rgba(238, 255, 243, .62));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.clock-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(18, 201, 101, .13);
  border-radius: 32px;
  pointer-events: none;
}

.clock-card::after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -28%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 201, 101, .14), transparent 66%);
  animation: clockGlow 6s ease-in-out infinite;
}

.clock-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.clock-meta b,
.clock-meta strong {
  color: var(--text);
  letter-spacing: -.03em;
}

.clock-meta.bottom {
  margin-top: 18px;
  align-items: flex-end;
}

.clock-meta.bottom strong {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: .9;
  font-family: var(--font-display);
  color: var(--green-dark);
}

.clock-meta.bottom span {
  width: 180px;
  text-align: right;
  line-height: 1.45;
}

.signature-clock {
  position: relative;
  z-index: 1;
  width: min(430px, 82vw);
  aspect-ratio: 1;
  margin: 20px auto 0;
  color: var(--green);
  border-radius: 50%;
  transform: translateZ(28px);
}

.clock-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 54px rgba(7, 35, 18, .12));
}

.outer-halo {
  fill: rgba(255,255,255,.7);
  stroke: rgba(18, 201, 101, .16);
  stroke-width: 1;
}

.outer-ring,
.middle-ring,
.inner-ring {
  fill: none;
  stroke: rgba(18, 201, 101, .22);
}

.outer-ring { stroke-width: 1.2; }
.middle-ring { stroke-width: 1; stroke-dasharray: 5 14; }
.inner-ring { stroke-width: 1.4; }

.dial-ring {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.dial-ring text {
  font-family: var(--font-mono);
  fill: var(--text);
  paint-order: stroke;
  stroke: rgba(255,255,255,.95);
  stroke-width: 3px;
  stroke-linejoin: round;
  letter-spacing: -.06em;
}

.dial-ring line {
  stroke-linecap: round;
}

.seconds-ring line {
  opacity: .75;
}

.clock-crosshair path {
  fill: none;
  stroke: rgba(6, 137, 68, .42);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.center-disc {
  fill: #fff;
  stroke: rgba(18, 201, 101, .42);
  stroke-width: 1.4;
}

.center-dot {
  fill: var(--green);
  filter: drop-shadow(0 0 12px rgba(18, 201, 101, .9));
}

.clock-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 53%;
  height: 2px;
  transform: rotate(-135deg);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent 0 9%, rgba(6, 137, 68, .28) 10%, var(--green-dark) 38%, var(--green) 100%);
  box-shadow: 0 0 22px rgba(18, 201, 101, .45);
}

.clock-pointer::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(18, 201, 101, .75);
}

.clock-pointer::after {
  content: "UTC+8";
  position: absolute;
  right: 0;
  bottom: 12px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  transform: rotate(180deg);
  transform-origin: center;
}

.clock-pulse {
  position: absolute;
  inset: 11%;
  z-index: 0;
  border: 1px solid rgba(18, 201, 101, .24);
  border-radius: 50%;
  animation: pulseRing 2.8s cubic-bezier(.16,1,.3,1) infinite;
}

.clock-center-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(18, 201, 101, .22);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(7, 35, 18, .08);
  text-align: center;
}

.clock-center-label strong {
  display: block;
  margin-bottom: -8px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.05em;
}

.clock-center-label span {
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stat {
  position: relative;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-soft);
}

.mini-stat::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(18, 201, 101, .18);
  background: radial-gradient(circle, rgba(18, 201, 101, .18), transparent 68%);
}

.mini-stat b {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
  line-height: .9;
  letter-spacing: -.07em;
}

.mini-stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.58);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 12vw;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  padding: 24px 26px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 137, 68, .34);
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.07em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--green);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .52fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.split-heading h2,
.lane h2,
.project-feature h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 94px);
  line-height: .92;
  letter-spacing: -.075em;
}

.split-heading h2 span {
  display: block;
}

.split-heading p,
.lane p,
.project-feature p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -.02em;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 18px;
}

.profile-card,
.stack-card,
.project-card,
.machine-card,
.lane,
.project-feature,
.contact-panel,
.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-style: preserve-3d;
}

.profile-card::before,
.stack-card::before,
.project-card::before,
.machine-card::before,
.lane::before,
.project-feature::before,
.contact-panel::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(18,201,101,.12), transparent 36%);
  opacity: 0;
  transition: opacity .26s ease;
}

.profile-card:hover::before,
.stack-card:hover::before,
.project-card:hover::before,
.machine-card:hover::before,
.lane:hover::before,
.project-feature:hover::before,
.contact-panel:hover::before,
.timeline-item:hover::before {
  opacity: 1;
}

.profile-card {
  min-height: 280px;
  padding: 30px;
}

.profile-main {
  grid-row: span 2;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 70% 20%, rgba(18,201,101,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(239,251,242,.86));
}

.profile-main::after {
  content: "NKX";
  position: absolute;
  top: 28px;
  left: 30px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 137, 68, .22);
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 210px);
  font-weight: 700;
  line-height: .76;
  letter-spacing: -.1em;
  animation: floatText 7s ease-in-out infinite;
}

.card-index,
.stack-card span,
.project-card span,
.machine-card span,
.lane-tag,
.project-status,
.timeline-item time {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.profile-card h3,
.stack-card h3,
.project-card h3,
.machine-card h3,
.timeline-item h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -.06em;
}

.profile-card p,
.stack-card p,
.machine-card p,
.timeline-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.two-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lane {
  min-height: 520px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lane:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(18,201,101,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.72));
}

.lane:nth-child(2) {
  margin-top: 80px;
}

.lane h2 {
  max-width: 560px;
  margin-bottom: 18px;
}

.lane-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.lane-list span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255,255,255,.64);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stack-card {
  min-height: 360px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-card h3 {
  font-size: 30px;
}

.projects {
  padding-top: 92px;
}

.project-feature {
  min-height: 420px;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(circle at 86% 20%, rgba(18,201,101,.20), transparent 34%),
    linear-gradient(140deg, #fff, rgba(239,251,242,.74));
}

.project-feature p {
  width: min(660px, 100%);
  margin-top: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.project-card {
  min-height: 180px;
  padding: 24px;
}

.project-card h3 {
  margin-top: 44px;
  font-size: 24px;
}

.machine-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
}

.machine-card {
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.machine-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 82px;
  height: 82px;
  border-radius: 20px;
  border: 1px solid rgba(18,201,101,.18);
  background:
    linear-gradient(90deg, rgba(18,201,101,.18) 1px, transparent 1px),
    linear-gradient(rgba(18,201,101,.18) 1px, transparent 1px);
  background-size: 12px 12px;
  animation: chipFloat 5.4s ease-in-out infinite;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--green), rgba(18,201,101,.08));
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 32px;
  align-items: start;
}

.timeline-item time {
  position: relative;
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.timeline-item time::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(18,201,101,.12);
  transform: translate(-30px, -50%);
}

.timeline-item h3 {
  font-size: 28px;
}

.contact-panel {
  min-height: 460px;
  padding: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(circle at 12% 14%, rgba(18,201,101,.18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(239,251,242,.78));
}

.contact-panel h2 {
  max-width: 720px;
  margin-bottom: 18px;
}

.contact-panel p {
  max-width: 560px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  width: min(1180px, calc(100% - 38px));
  margin: 0 auto;
  padding: 30px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 1300;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: white;
  background: var(--text);
  box-shadow: 0 16px 44px rgba(7, 19, 13, .18);
  font-size: 13px;
  font-weight: 800;
  transform: translate(-50%, 20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .78s cubic-bezier(.16,1,.3,1), transform .78s cubic-bezier(.16,1,.3,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt {
  will-change: transform;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tilt:hover {
  border-color: rgba(18,201,101,.3);
  box-shadow: 0 28px 74px rgba(6, 74, 34, .14);
}

@keyframes clockTick {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

@keyframes titleRise {
  from { opacity: 0; transform: translateY(1em) skewY(6deg); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
}

@keyframes speedLine {
  from { transform: translateX(0) rotate(-18deg); opacity: 0; }
  12%, 74% { opacity: 1; }
  to { transform: translateX(170vw) rotate(-18deg); opacity: 0; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

@keyframes clockGlow {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes pulseRing {
  from { transform: scale(.72); opacity: .6; }
  to { transform: scale(1.18); opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatText {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(16px) rotate(1deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    grid-template-columns: auto auto;
    border-radius: 24px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .header-mail {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 156px;
  }

  .hero-title {
    font-size: clamp(66px, 21vw, 132px);
  }

  .clock-card {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .hero-stats,
  .profile-grid,
  .two-lanes,
  .stack-grid,
  .project-grid,
  .machine-rail {
    grid-template-columns: 1fr 1fr;
  }

  .profile-main {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .lane:nth-child(2) {
    margin-top: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-feature,
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.has-cursor .cursor-ring,
  body.has-cursor .cursor-dot {
    display: none;
  }

  .site-header {
    width: calc(100% - 18px);
    padding: 8px;
  }

  .brand-text small,
  .header-mail {
    display: none;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 12px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 138px;
    padding-bottom: 36px;
  }

  .eyebrow span {
    font-size: 10px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .clock-card {
    aspect-ratio: auto;
    padding: 18px;
    border-radius: 30px;
  }

  .signature-clock {
    width: min(330px, 84vw);
  }

  .clock-center-label {
    width: 78px;
    height: 78px;
  }

  .clock-center-label strong {
    font-size: 16px;
  }

  .clock-meta.bottom {
    display: grid;
    gap: 8px;
  }

  .clock-meta.bottom span {
    width: auto;
    text-align: left;
  }

  .hero-stats,
  .profile-grid,
  .two-lanes,
  .stack-grid,
  .project-grid,
  .machine-rail {
    grid-template-columns: 1fr;
  }

  .mini-stat {
    min-height: 112px;
  }

  .profile-card,
  .lane,
  .project-feature,
  .contact-panel {
    padding: 24px;
  }

  .profile-main {
    min-height: 360px;
  }

  .lane {
    min-height: 390px;
  }

  .stack-card,
  .machine-card {
    min-height: 260px;
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-item time::before {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
