:root {
  --accent: #C8FF4D;
  --on-accent: #0A0A0B;
  --bg: #08090A;
  --surface: rgba(255, 255, 255, 0.028);
  --line: rgba(255, 255, 255, 0.10);
  --text: #F0EEEA;
  --muted: #8C8A85;
  --radius: 14px;
  --sec-y: 132px;
  --maxw: 1180px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --grain-op: 0.15;
  --blob-op: 0.55;
  --grid-op: 0.55;
  --play: running;
  --dur: 38s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

a:hover {
  color: var(--text);
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
}

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

/* ---------- Decorative background layers ---------- */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: var(--play);
  opacity: var(--blob-op);
}

.bg-blob--1 {
  top: -25%;
  left: -12%;
  width: 72vw;
  height: 72vw;
  filter: blur(90px);
  background: radial-gradient(circle at 40% 40%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 62%);
  animation-name: drift1;
  animation-duration: var(--dur);
}

.bg-blob--2 {
  top: 18%;
  right: -22%;
  width: 62vw;
  height: 62vw;
  filter: blur(100px);
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 30%, #4B3BFF), transparent 60%);
  animation-name: drift2;
  animation-duration: var(--dur);
  animation-delay: calc(var(--dur) * -0.33);
}

.bg-blob--3 {
  bottom: -30%;
  left: 22%;
  width: 66vw;
  height: 66vw;
  filter: blur(110px);
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 24%, #0EA5A5), transparent 62%);
  animation-name: drift3;
  animation-duration: var(--dur);
  animation-delay: calc(var(--dur) * -0.66);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grid-op);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(100% 70% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000, transparent 78%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 3;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sec-y) 28px;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}

.section-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--split .section-head__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  max-width: 20ch;
}

.section-head__desc {
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  flex: none;
}

.spacer {
  flex: 1 1 0%;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.lang-toggle:hover {
  border-color: color-mix(in oklab, var(--text) 30%, transparent);
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease, background .18s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-weight: 500;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: color-mix(in oklab, var(--text) 30%, transparent);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  transform: none;
}

.btn--nav {
  padding: 10px 19px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.btn--hero-primary {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn--hero-secondary {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn--cv {
  padding: 15px 18px;
  font-size: 15.5px;
}

.btn--cv-icon {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
}

.btn--contact {
  padding: 16px 28px;
  font-size: 16px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 124px) 28px calc(var(--sec-y) * .72);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: rise .7s ease both;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
  animation-play-state: var(--play);
  flex: none;
}

.hero h1 {
  font-size: clamp(42px, 7.4vw, 102px);
  max-width: 15ch;
}

.hero h1 .accent-dot {
  color: var(--accent);
}

.hero h1 .muted-line {
  color: var(--muted);
}

.hero__lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.stats {
  margin-top: clamp(52px, 7vw, 92px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: color-mix(in oklab, var(--bg) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stat__value {
  font-family: var(--head);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.stat__label {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--surface);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 34s linear infinite;
  animation-play-state: var(--play);
}

.marquee__item {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 26px;
  white-space: nowrap;
}

/* ---------- Stack / skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px 56px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.skill__name {
  font-size: 17px;
  font-weight: 500;
}

.skill__level {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.skill__bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.skill__bar-fill {
  height: 100%;
  background: var(--accent);
}

.skill__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
}

.method-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 226px;
  transition: border-color .2s;
}

.method-card:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
}

.method-card__num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.method-card h3 {
  font-size: 21px;
  line-height: 1.18;
}

.method-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Services ---------- */

.services-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
  padding: 36px 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:hover {
  background: color-mix(in oklab, var(--surface) 40%, rgba(255, 255, 255, 0.045));
}

.service-row__key {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 40px;
  padding-top: 8px;
}

.service-row__body {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-row__body h3 {
  font-size: 25px;
}

.service-row__body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.service-row__meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  white-space: nowrap;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, transform .2s;
}

.project-card:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  color: var(--text);
}

.project-card__shot {
  aspect-ratio: 16 / 10;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.043) 0px, rgba(255, 255, 255, 0.043) 2px, transparent 2px, transparent 9px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
}

.project-card__shot span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.project-card__logo {
  max-width: 46%;
  max-height: 46%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-card__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1 1 0%;
}

.project-card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-card__title h3 {
  font-size: 22px;
}

.project-card__arrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
}

.project-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1 1 0%;
}

.project-card__stack {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 4px;
}

/* ---------- Contact ---------- */

.contact {
  padding: var(--sec-y) 28px calc(var(--sec-y) * .6);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.contact h2 {
  font-size: clamp(38px, 6.2vw, 84px);
  max-width: 16ch;
}

.contact__lede {
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Keyframes ---------- */

@keyframes drift1 {
  0%   { transform: translate3d(-6vw, -4vh, 0) scale(1); }
  50%  { transform: translate3d(10vw, 7vh, 0) scale(1.22); }
  100% { transform: translate3d(-6vw, -4vh, 0) scale(1); }
}

@keyframes drift2 {
  0%   { transform: translate3d(8vw, 3vh, 0) scale(1.1); }
  50%  { transform: translate3d(-12vw, -8vh, 0) scale(.9); }
  100% { transform: translate3d(8vw, 3vh, 0) scale(1.1); }
}

@keyframes drift3 {
  0%   { transform: translate3d(0, 8vh, 0) scale(.95); }
  50%  { transform: translate3d(7vw, -10vh, 0) scale(1.28); }
  100% { transform: translate3d(0, 8vh, 0) scale(.95); }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 640px) {
  .site-header nav {
    padding: 13px 20px;
    gap: 12px;
  }

  .btn--nav {
    padding: 9px 14px;
    font-size: 13.5px;
  }

  .section,
  .hero,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }
}
