:root {
  --paper: #f5f7f4;
  --paper-2: #eef2ec;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --ink: #131a15;
  --ink-soft: #4a554e;
  --ink-faint: #8a938c;
  --line: #dce3da;

  --green: #0e7a4d;
  --green-soft: #e1f2e8;
  --blue: #2563eb;
  --blue-soft: #e5edfd;
  --purple: #7c3aed;
  --purple-soft: #efe8fd;
  --cyan: #0891b2;
  --cyan-soft: #e0f4f8;
  --amber: #c2710c;
  --amber-soft: #fbefd9;
  --pink: #db2777;
  --pink-soft: #fce7f1;

  --term-bg: #11160f;
  --t-comment: #6f8174;
  --t-key: #7fb3ff;
  --t-val: #ffcb6b;
  --t-accent: #5bd49a;
  --t-purple: #c792ea;
  --t-pink: #ff6e9c;

  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --disp: "Bricolage Grotesque", var(--sans);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: #fff;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(14, 122, 77, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(14, 122, 77, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 0%,
    #000 0%,
    transparent 75%
  );
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 600px) scale(0.5);
  }

  100% {
    transform: translate(400px, 600px) scale(0.5);
  }
}

.bg-blob {
  position: fixed;
  z-index: -1;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.3;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}

.bg-blob.b1 {
  background: var(--green);
  top: -180px;
  left: -140px;
}

.bg-blob.b2 {
  background: var(--blue);
  top: 30%;
  right: -200px;
  animation-delay: -8s;
}

.bg-blob.b3 {
  background: var(--purple);
  bottom: -200px;
  left: 20%;
  animation-delay: -16s;
}

.bg-blob.b4 {
  background: var(--amber);
  top: 60%;
  left: -120px;
  width: 400px;
  height: 400px;
  animation-delay: -4s;
  opacity: 0.2;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ---------- custom cursor ---------- */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
}

.cur-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.cur-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(14, 122, 77, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, background 0.18s, border-color 0.18s;
}

.cur-ring.hot {
  width: 54px;
  height: 54px;
  background: rgba(14, 122, 77, 0.08);
  border-color: var(--green);
}

body.cursor-on {
  cursor: none;
}

body.cursor-on a,
body.cursor-on button {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  .cur-dot,
  .cur-ring {
    display: none;
  }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
}

/* ---------- comet scroll trail ---------- */
.scroll-track {
  position: fixed;
  right: 20px;
  top: 80px;
  bottom: 80px;
  width: 2px;
  z-index: 54;
  pointer-events: none;
  border-radius: 2px;
  background: rgba(14, 122, 77, 0.12);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s;
}

.scroll-track.show {
  opacity: 1;
}

.scroll-track-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green), rgba(14, 122, 77, 0.35));
  transition: height 0.1s linear;
}

.scroll-orb {
  position: fixed;
  right: 16px;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  z-index: 56;
  pointer-events: none;
  background: var(--green);
  box-shadow: 0 0 14px rgba(14, 122, 77, 0.55), 0 0 36px rgba(14, 122, 77, 0.25);
  opacity: 0;
  transition: opacity 0.5s;
}

.scroll-orb.show {
  opacity: 0.85;
}

.orb-trail {
  position: fixed;
  right: 19px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  z-index: 55;
  pointer-events: none;
  background: var(--green);
  opacity: 0;
}

/* ---------- reveal: direction-aware fly in / fly out ---------- */
.reveal {
  opacity: 0;
  transform: translateY(70px) scale(0.86);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* coming back from far away when scrolling up */
.reveal.from-top {
  transform: translateY(-90px) scale(0.8) rotate(-1.5deg);
}

.reveal.in {
  opacity: 1;
  transform: none;
  translate: 0 calc(var(--parallax, 0) * 1px);
  filter: blur(0);
}

.reveal.d1 {
  transition-delay: 0.06s;
}

.reveal.d2 {
  transition-delay: 0.13s;
}

.reveal.d3 {
  transition-delay: 0.2s;
}

.reveal.d4 {
  transition-delay: 0.27s;
}

/* fly-away exit triggered BEFORE the card hides behind the navbar, so it stays visible */
.reveal.out {
  opacity: 0;
  filter: blur(8px);
  transform: translate(var(--exit-x, 0), var(--exit-y, 60px)) scale(0.78)
    rotate(var(--exit-r, 3deg));
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.out.float {
  animation: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }

  75% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

.reveal.in.float {
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.6s;
}

.svccard.reveal.in,
.solvecard.reveal.in,
.stat.reveal.in {
  background-image: radial-gradient(
    circle at 30% 20%,
    rgba(14, 122, 77, 0.03) 0%,
    transparent 50%
  );
}

/* ---------- drag state ---------- */
.dragging {
  transition: none !important;
  z-index: 100;
  cursor: grabbing !important;
  box-shadow: 0 40px 80px -20px rgba(14, 30, 18, 0.35) !important;
  border-color: var(--green) !important;
}

/* ---------- status / log motif ---------- */
.loglabel {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.loglabel .ok {
  color: var(--green);
  background: var(--green-soft);
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.loglabel.info .ok {
  color: var(--blue);
  background: var(--blue-soft);
}

.loglabel.warn .ok {
  color: var(--amber);
  background: var(--amber-soft);
}

.loglabel.run .ok {
  color: var(--purple);
  background: var(--purple-soft);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex: none;
}

.dot.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 122, 77, 0.35);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(14, 122, 77, 0);
  }
}

/* ---------- nav: liquid glass on scroll ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 244, 0.6);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(220, 227, 218, 0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 100%
  );
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  top: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(250, 252, 249, 0.3);
  backdrop-filter: blur(10px) saturate(2.2) brightness(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(2.2) brightness(1.1);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(14, 30, 18, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

nav.scrolled::before {
  opacity: 0.1;
}

.navin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: relative;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .navin {
  height: 48px;
}

.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: letter-spacing 0.3s;
  margin-right: 10px;
}

.brand:hover {
  letter-spacing: 0.03em;
}

.navlinks {
  display: flex;
  gap: 4px;
  list-style: none;
  position: relative;
}

.navlinks .pill {
  position: absolute;
  top: 2px;
  left: var(--pill-left, 0px);
  width: var(--pill-width, 0px);
  height: calc(100% - 4px);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  border-radius: 8px;
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .navlinks .pill {
  background: var(--green-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--blue-soft);
}

.navlinks li {
  position: relative;
  z-index: 1;
}

.navlinks a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 14px;
  display: block;
  border-radius: 7px;
  transition: color 0.25s;
}

.navlinks a:hover {
  color: var(--ink);
}

.navlinks a.active {
  color: var(--green);
  font-weight: 600;
}

.navcta {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 9px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.12s, box-shadow 0.25s;
}

.navcta::after {
  display: none;
}

.navcta:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(14, 122, 77, 0.5);
}

@media (max-width: 760px) {
  .navlinks li:not(:last-child) {
    display: none;
  }

  nav.scrolled {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(250, 252, 249, 0.1);
    backdrop-filter: blur(36px) saturate(2) brightness(1.06);
    -webkit-backdrop-filter: blur(36px) saturate(2) brightness(1.06);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
      0 -1px 0 rgba(255, 255, 255, 0.25) inset,
      0 14px 38px -18px rgba(14, 30, 18, 0.22);
  }
}

/* ---------- hero ---------- */
header {
  padding: 86px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: 54px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

h1 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 47ch;
  margin-bottom: 30px;
}

.heroctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.12s ease, background 0.2s, color 0.2s,
    border-color 0.2s, box-shadow 0.25s;
  display: inline-block;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.primary:hover {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 28px -10px rgba(14, 122, 77, 0.55);
}

.btn.ghost:hover {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 10px 24px -12px rgba(14, 30, 18, 0.25);
}

/* ---------- terminal card (draggable + mac buttons) ---------- */
.config {
  user-select: none;
  background: var(--term-bg);
  color: #d7e2da;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  box-shadow: 0 30px 70px -30px rgba(14, 30, 18, 0.55);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s,
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
}

.config:active {
  cursor: grabbing;
}

.config.dragging {
  transition: none !important;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55) !important;
}

.configbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #93a39a;
}

.configbar .dots {
  display: flex;
  gap: 6px;
}

.configbar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  transition: filter 0.2s, transform 0.15s;
  cursor: pointer;
  position: relative;
}

.configbar .dots i:hover {
  transform: scale(1.3);
  filter: brightness(1.35);
}

.configbar .dots i:active {
  transform: scale(0.8);
}

.config.minimized .configbody,
.config.collapsed .configbody {
  max-height: 0;
  padding: 0 22px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s,
    opacity 0.25s;
}

.config.maximized {
  position: fixed;
  top: 74px;
  left: 24px;
  right: 24px;
  z-index: 49;
  max-height: calc(100vh - 96px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55);
}

.configbar .live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--t-accent);
}

.configbody {
  padding: 20px 22px 24px;
  overflow-x: auto;
  white-space: pre-wrap;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s,
    opacity 0.25s;
}

.config .c {
  color: var(--t-comment);
}

.config .k {
  color: var(--t-key);
}

.config .v {
  color: var(--t-val);
}

.config .b {
  color: var(--t-accent);
}

.config .p {
  color: var(--t-purple);
}

.caret {
  display: inline-block;
  width: 8px;
  background: var(--t-accent);
  animation: blink 1.1s steps(1) infinite;
}

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

.confignote {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

/* ---------- sections ---------- */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.012em;
  margin-bottom: 14px;
}

.secintro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 44px;
}

/* glow overlay */
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(14, 122, 77, 0.07),
    transparent 40%
  );
}

.glow:hover::after {
  opacity: 1;
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 4px;
}

@media (max-width: 680px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s,
    border-color 0.3s;
}

.stat:hover {
  background: var(--glass);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(14, 30, 18, 0.22);
  border-color: rgba(14, 122, 77, 0.25);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transition: width 0.3s;
}

.stat:hover::before {
  width: 6px;
}

.stat:nth-child(2)::before {
  background: var(--blue);
}

.stat:nth-child(3)::before {
  background: var(--purple);
}

.stat:nth-child(4)::before {
  background: var(--amber);
}

.stat .num {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat:nth-child(1) .num {
  color: var(--green);
}

.stat:nth-child(2) .num {
  color: var(--blue);
}

.stat:nth-child(3) .num {
  color: var(--purple);
}

.stat:nth-child(4) .num {
  color: var(--amber);
}

.stat .lbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* services */
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 840px) {
  .svc {
    grid-template-columns: 1fr;
  }
}

.svccard {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s,
    border-color 0.3s;
  will-change: transform;
  border-color: var(--green);
  box-shadow: 0 24px 48px -20px rgba(14, 30, 18, 0.3),
    0 4px 12px rgba(14, 122, 77, 0.06);
}

.svccard:hover {
  background: var(--glass);
  border-color: var(--green);
  box-shadow: 0 24px 48px -20px rgba(14, 30, 18, 0.3),
    0 4px 12px rgba(14, 122, 77, 0.06);
}

.svcicon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svccard:hover .svcicon {
  transform: rotate(-8deg) scale(1.12);
}

.svccard:nth-child(1) .svcicon {
  background: var(--green);
}

.svccard:nth-child(2) .svcicon {
  background: var(--blue);
}

.svccard:nth-child(3) .svcicon {
  background: var(--purple);
}

.svctag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.svccard:nth-child(1) .svctag {
  color: var(--green);
}

.svccard:nth-child(2) .svctag {
  color: var(--blue);
}

.svccard:nth-child(3) .svctag {
  color: var(--purple);
}

.svccard h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  transition: color 0.25s;
}

.svccard:hover h3 {
  color: var(--green);
}

.svccard:nth-child(2):hover h3 {
  color: var(--blue);
}

.svccard:nth-child(3):hover h3 {
  color: var(--purple);
}

.svccard p {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.svccard ul {
  list-style: none;
  margin-top: 4px;
}

.svccard li {
  color: var(--ink-soft);
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: padding-left 0.25s, color 0.25s;
}

.svccard li i {
  font-size: 18px;
  flex: none;
}

.svccard li:hover {
  padding-left: 8px;
  color: var(--ink);
}

/* work */
.work {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proj {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: 1fr 262px;
  gap: 30px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s,
    box-shadow 0.3s;
  border-color: var(--green);
}

.proj:hover {
  background: var(--glass);
  border-color: var(--blue);
  box-shadow: 0 24px 48px -20px rgba(14, 30, 18, 0.25);
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .proj {
    grid-template-columns: 1fr;
  }
}

.proj h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 8px;
  transition: color 0.25s;
}

.proj:hover h3 {
  color: var(--blue);
}

.proj .role {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 500;
}

.proj p {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.projmeta {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

@media (max-width: 760px) {
  .projmeta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}

.projmeta dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 14px;
}

.projmeta dt:first-child {
  margin-top: 0;
}

.projmeta dd {
  font-size: 14px;
  margin-top: 3px;
}

.techpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.techpills i {
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.techpills i:hover {
  transform: translateY(-5px) scale(1.25) rotate(8deg);
}

.proj:hover .techpills i {
  animation: jump 1.2s infinite;
}

.proj:hover .techpills i:nth-child(1) {
  animation-delay: 0s;
}

.proj:hover .techpills i:nth-child(2) {
  animation-delay: 0.1s;
}

.proj:hover .techpills i:nth-child(3) {
  animation-delay: 0.2s;
}

.proj:hover .techpills i:nth-child(4) {
  animation-delay: 0.3s;
}

.proj:hover .techpills i:nth-child(5) {
  animation-delay: 0.4s;
}

.proj:hover .techpills i:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes jump {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }
}

/* problems solved */
.solved {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .solved {
    grid-template-columns: 1fr;
  }
}

.solvecard {
  background: var(--paper);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 24px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s,
    box-shadow 0.3s;
}

.solvecard:hover {
  background: var(--glass);

  border-color: var(--cyan);
  box-shadow: 0 20px 40px -18px rgba(14, 30, 18, 0.25);
}

.solvecard .metric {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.solvecard:hover .metric {
  transform: scale(1.24) rotate(-20deg);
}

.solvecard:nth-child(1) .metric {
  color: var(--pink);
}

.solvecard:nth-child(2) .metric {
  color: var(--blue);
}

.solvecard:nth-child(3) .metric {
  color: var(--amber);
}

.solvecard:nth-child(4) .metric {
  color: var(--purple);
}

.solvecard h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 18px;
  margin: 14px 0 8px;
}

.solvecard p {
  font-size: 15px;
  color: var(--ink-soft);
}

.solvecard .how {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 760px) {
  .process {
    grid-template-columns: 1fr;
  }
}

.pstep {
  padding: 24px 22px;
  border-left: 2px solid var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s,
    border-color 0.3s;
}

.pstep:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.5);
  border-left-color: var(--green);
}

.pstep:nth-child(2):hover {
  border-left-color: var(--blue);
}

.pstep:nth-child(3):hover {
  border-left-color: var(--purple);
}

.pstep:nth-child(4):hover {
  border-left-color: var(--amber);
}

.pstep .pn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
}

.pstep:nth-child(2) .pn {
  color: var(--blue);
}

.pstep:nth-child(3) .pn {
  color: var(--purple);
}

.pstep:nth-child(4) .pn {
  color: var(--amber);
}

.pstep h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 6px;
}

.pstep p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* skills */
.skillgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}

@media (max-width: 760px) {
  .skillgrid {
    grid-template-columns: 1fr;
  }
}

.skillrow {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s;
}

.skillrow:hover {
  padding-left: 8px;
}

@media (max-width: 420px) {
  .skillrow {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.skillrow .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.skillrow:nth-child(odd) .label {
  color: var(--green);
}

.skillrow:nth-child(even) .label {
  color: var(--blue);
}

.skillrow .tags {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* experience */
.xpitem {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s,
    background 0.3s;
}

.xpitem:first-child {
  border-top: none;
  padding-top: 0;
}

.xpitem:hover {
  background: var(--glass);
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 760px) {
  .xpitem {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.xpmeta .when {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  font-weight: 500;
}

.xpmeta .where {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.xpitem h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}

.xpitem .co {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.xpitem ul {
  list-style: none;
}

.xpitem li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 4px 0 4px 18px;
  position: relative;
}

.xpitem li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.xpitem li strong {
  color: var(--ink);
}

/* stack / tech icons */
.stackgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 840px) {
  .stackgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stackcol h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.stackcol:hover h4 {
  color: var(--blue);
}

.stackcol ul {
  list-style: none;
}

.stackcol li {
  font-size: 15px;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: padding-left 0.25s, transform 0.25s;
}

@keyframes stackFloatCombined {
  0% {
    transform: translateY(0) scale(1);
  }

  8% {
    transform: translateY(-6px) scale(1.15);
  }

  18% {
    transform: translateY(1px) scale(1.05);
  }

  25% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.06);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.stackcol:hover li {
  animation: stackFloatCombined 2.4s ease-in-out infinite;
}

.stackcol.in li:nth-child(2) {
  animation-delay: 0.15s;
}

.stackcol.in li:nth-child(3) {
  animation-delay: 0.3s;
}

.stackcol.in li:nth-child(4) {
  animation-delay: 0.45s;
}

.stackcol.in li:nth-child(5) {
  animation-delay: 0.6s;
}

.stackcol.out li {
  animation: none;
}

.stackcol li:hover {
  padding-left: 6px;
  transform: scale(1.1);
}

.stackcol li i {
  font-size: 22px;
  width: 24px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: grayscale(100%);
}

.stackcol:hover li i {
  filter: grayscale(0%);
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.about p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about p strong {
  color: var(--ink);
}

.factbox {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  align-self: start;
  position: relative;
  overflow: hidden;
}

.factbox div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  transition: padding-left 0.2s;
}

.factbox div:hover {
  padding-left: 6px;
}

.factbox div:last-child {
  border-bottom: none;
}

.factbox span:first-child {
  color: var(--ink-soft);
}

.factbox span:last-child {
  font-weight: 500;
  text-align: right;
}

/* contact + form */
.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .contactgrid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.contact h2 {
  font-size: clamp(28px, 4.2vw, 44px);
}

.bigmail {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 20px;
}

.bigmail:hover {
  color: var(--green);
}

.social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

form.cform {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.cform label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: -7px;
}

.cform input,
.cform textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cform input:focus,
.cform textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  outline: none;
  transform: translateY(-1px);
}

.cform textarea {
  resize: vertical;
  min-height: 120px;
}

.cform .hp {
  position: absolute;
  left: -9999px;
}

.cform button {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 9px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, box-shadow 0.25s;
  margin-top: 4px;
}

.cform button:hover {
  background: var(--green);
  box-shadow: 0 12px 28px -10px rgba(14, 122, 77, 0.55);
}

.cform button:active {
  transform: translateY(1px);
}

.cform button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.formnote {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 11px 14px;
  border-radius: 9px;
  display: none;
}

.formnote.show {
  display: block;
}

.formnote.ok {
  background: var(--green-soft);
  color: var(--green);
}

.formnote.err {
  background: var(--pink-soft);
  color: var(--pink);
}

footer {
  padding: 32px 0 46px;
}

.footin {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footin a {
  color: var(--ink-soft);
}

.footin a:hover {
  color: var(--ink);
}
