/* ==========================================================
   Easy Ops LLC — portfolio
   ========================================================== */

:root {
  --bg: #0b0c0e;
  --bg-alt: #0f1013;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ecebe6;
  --muted: #9a9ca3;
  --faint: #6b6e76;
  --accent: #c6f36b;
  --accent-ink: #0b0c0e;
  --accent-soft: rgba(198, 243, 107, 0.12);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

/* subtle film grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 12px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 8px 30px -6px rgba(198, 243, 107, 0.45); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--large { height: 58px; padding: 0 28px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand__mark { width: 32px; height: 32px; display: block; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { font-weight: 700; }
.brand__ops { color: #FF8A4C; }
.brand__llc { margin-left: 6px; font: 500 10px/1 var(--font-mono); color: #9CC4B2; letter-spacing: 0.08em; vertical-align: 2px; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  background: rgba(11, 12, 14, 0.96); border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 150px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__glow {
  position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; pointer-events: none;
  background: radial-gradient(circle, rgba(198, 243, 107, 0.16), transparent 62%);
  filter: blur(20px);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center;
}
.hero__grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 13px/1 var(--font-mono); color: var(--muted); background: rgba(255, 255, 255, 0.02);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 243, 107, 0.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(198, 243, 107, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(198, 243, 107, 0); } }

.hero__title {
  margin-top: 28px;
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.95;
}
.hero__title em { color: var(--accent); letter-spacing: -0.02em; padding-right: 0.05em; }
/* line-by-line rise on load (CSS only, so it also runs without JS) */
.hero__title .line { display: block; overflow: hidden; padding: 0 0.12em 0.1em 0; margin-bottom: -0.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) 0.1s forwards; }
.hero__title .line + .line > span { animation-delay: 0.22s; }
@keyframes rise { to { transform: none; } }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #ffd700);
}
.hero__lede { margin-top: 28px; max-width: 540px; font-size: 19px; color: var(--muted); }
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { margin: 48px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__facts div { border-left: 1px solid var(--line-strong); padding-left: 14px; }
.hero__facts dt { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.hero__facts dd { margin: 8px 0 0; font-size: 15px; }

/* ---------- Console (signature element) ---------- */
.console {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  font-family: var(--font-mono); font-size: 13px;
  overflow: hidden;
}
.console::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(198, 243, 107, 0.35), transparent 35%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border: 1px solid transparent;
}
.console__bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.console__lights { display: flex; gap: 6px; }
.console__lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.console__log {
  list-style: none; margin: 0; padding: 18px; min-height: 266px;
  display: flex; flex-direction: column; gap: 10px;
}
.console__log li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  opacity: 0; transform: translateY(6px);
  animation: logIn 0.45s var(--ease) forwards;
}
.console__log .t { color: var(--faint); }
.console__log .msg { color: var(--text); }
.console__log .msg b { color: var(--muted); font-weight: 400; }
.console__log .ok { color: var(--accent); }
.console__log .wait { color: var(--faint); }
.console__log li.done { grid-template-columns: 1fr; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-strong); color: var(--accent); }
@keyframes logIn { to { opacity: 1; transform: none; } }

.console__foot {
  position: relative; display: flex; gap: 32px; padding: 16px 18px 20px;
  border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.18);
}
.console__foot .label, .label {
  display: block; font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.console__foot .value { display: block; margin-top: 8px; font: 500 22px/1 var(--font-sans); color: var(--text); letter-spacing: -0.02em; }
.console__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.console__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; margin-top: 110px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  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__track span {
  padding: 0 28px; font-size: 15px; color: var(--muted); white-space: nowrap; position: relative;
}
.marquee__track span::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--line-strong);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 12vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 64px; }
.kicker { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin-top: 18px; font-size: clamp(38px, 5.2vw, 68px); letter-spacing: -0.035em; }
.section__sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }

/* ---------- Cards / Services ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 243, 107, 0.09), transparent 45%);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { padding: 36px; }
.service__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(198, 243, 107, 0.2);
}
.service__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 28px; font-size: 26px; letter-spacing: -0.025em; }
.service p { margin-top: 12px; color: var(--muted); }

.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  font: 500 12px/1.2 var(--font-mono); color: var(--muted);
}

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project--wide { grid-column: span 2; flex-direction: row; }
.project--wide .project__visual { flex: 1.25; min-height: 320px; }
.project--wide .project__body { flex: 1; align-self: center; }

.project__visual {
  position: relative; min-height: 240px; overflow: hidden;
  display: grid; place-items: center; padding: 32px;
  background: radial-gradient(circle at 30% 20%, rgba(198, 243, 107, 0.08), transparent 55%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.project--wide .project__visual { border-bottom: 0; border-right: 1px solid var(--line); }
.project__visual > * { transition: transform 0.6s var(--ease); }
.project:hover .project__visual > * { transform: scale(1.03); }

.project__body { padding: 32px 36px 36px; }
.project__meta { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.project h3 { margin-top: 14px; font-size: 30px; letter-spacing: -0.03em; }
.project__body > p:not(.project__meta) { margin-top: 12px; color: var(--muted); }

.link {
  display: inline-flex; gap: 6px; margin-top: 24px; font-size: 15px; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s, color 0.3s;
}
.link:hover { color: var(--accent); border-color: var(--accent); }
.soon {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
}
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--faint); }

/* cursor spotlight on project cards (same effect as .card) */
.project { position: relative; isolation: isolate; }
.project::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 243, 107, 0.07), transparent 45%);
}
.project:hover::before { opacity: 1; }

/* ---------- Featured case study ----------
   --brand (an "r, g, b" triplet, set inline per project) tints the glow, border and title accent
   with the client's own brand color. */
.project--feature {
  --brand: 198, 243, 107;
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(ellipse 55% 70% at 85% 10%, rgba(var(--brand), 0.10), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(198, 243, 107, 0.06), transparent 70%),
    var(--surface);
  border-color: var(--line-strong);
}
.project--feature::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(var(--brand), 0.45), transparent 30%, transparent 70%, rgba(198, 243, 107, 0.35)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border: 1px solid transparent;
}
.feature__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(198, 243, 107, 0.25);
}
/* not launched yet: amber instead of lime, slower pulse */
.live--dev { color: #f2c46d; background: rgba(242, 196, 109, 0.1); border-color: rgba(242, 196, 109, 0.25); }
.live--dev .pulse { animation-duration: 2.4s; }
.feature__actions .soon { margin-top: 0; }
.project--feature h3 { margin-top: 18px; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -0.035em; }
.project--feature h3 em { color: rgb(var(--brand)); }
.feature__copy > p:not(.project__meta) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.feature__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.feature__list li { display: flex; gap: 10px; }
.feature__list span { color: var(--accent); font-family: var(--font-mono); }
.feature__actions { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feature__url { font: 400 13px/1 var(--font-mono); color: var(--faint); }

/* device mockups */
.feature__stage { position: relative; padding: 0 0 56px 72px; }
.shot { margin: 0; }
.shot--browser {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #111214; border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}
.project--feature:hover .shot--browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.shot__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.shot__url {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 280px; margin: 0 auto;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04);
  font: 400 11px/1 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden;
}
.shot__url svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.shot__view { position: relative; overflow: hidden; background: #0f0f0f; }
.shot--browser .shot__view { aspect-ratio: 16 / 10; }
/* Hover pans the full-page screenshot: top moves 0 → 100% while translateY moves 0 → -100%,
   so the image's bottom edge lands exactly on the frame's bottom edge. */
.shot--browser img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  transition: top 1.4s var(--ease), transform 1.4s var(--ease);
}
.shot__hint {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(11, 12, 14, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); font: 500 11px/1 var(--font-mono); color: var(--muted);
  transition: opacity 0.4s;
}
@media (hover: hover) {
  .project--feature:hover .shot--browser img {
    top: 100%; transform: translateY(-100%);
    transition-duration: 9s; transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  .project--feature:hover .shot__hint { opacity: 0; }
}
@media (hover: none) {
  .shot__hint { display: none; }
  .project--feature.is-visible .shot--browser img { animation: pan 18s cubic-bezier(0.45, 0, 0.55, 1) 1.5s infinite alternate; }
}
@keyframes pan {
  0%, 10% { top: 0; transform: none; }
  90%, 100% { top: 100%; transform: translateY(-100%); }
}

.shot--phone {
  position: absolute; left: 0; bottom: 0; width: clamp(112px, 25%, 176px);
  padding: 6px; border-radius: 30px; background: #050506;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotate(-4deg);
  transition: transform 0.8s var(--ease);
}
.project--feature:hover .shot--phone { transform: rotate(0) translateY(-8px); }
.shot--phone .shot__view { border-radius: 24px; padding-top: 14px; background: #000; }

/* mirrored feature: screenshots on the left, phone on the right */
.project--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.project--flip::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand), 0.08), transparent 45%); }
.project--flip .feature__stage { order: -1; padding: 0 72px 56px 0; }
.project--flip .shot--browser { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); }
.project--flip .shot--phone { left: auto; right: 0; transform: rotate(4deg); }
.project--flip:hover .shot--browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.project--flip:hover .shot--phone { transform: rotate(0) translateY(-8px); }
.shot--phone .shot__view::before {
  content: ""; position: absolute; top: 5px; left: 50%; width: 34%; height: 9px; margin-left: -17%;
  border-radius: 999px; background: #111; z-index: 1;
}
.shot--phone img { width: 100%; height: auto; }

/* project visuals */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 440px; }
.kanban__col {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.kanban__col span { font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.kanban__col i { display: block; height: 30px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-strong); }
.kanban__col i.ok { background: var(--accent-soft); border-color: rgba(198, 243, 107, 0.3); }

.browser { width: 100%; max-width: 300px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.browser__bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.browser__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.browser__body b { height: 16px; width: 70%; border-radius: 4px; background: var(--text); opacity: 0.85; margin-bottom: 6px; }
.browser__body span { height: 7px; border-radius: 4px; background: var(--line-strong); }
.browser__body span.short { width: 40%; background: var(--accent); opacity: 0.8; height: 22px; border-radius: 999px; margin-top: 8px; }

.project__visual--kpi { place-items: stretch; align-content: end; gap: 18px; }
.project__visual--kpi svg { width: 100%; height: 180px; }
.project__visual--kpi .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; }
.project__visual--kpi .area { fill: rgba(198, 243, 107, 0.08); }
.reveal.is-visible .project__visual--kpi .line { animation: draw 2.2s var(--ease) forwards 0.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kpi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kpi-chips span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font: 500 12px/1 var(--font-mono); color: var(--muted); }

/* ---------- Process ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.process__step { position: relative; padding: 36px 28px 0 0; }
.process__step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.process__num { font: 500 13px/1 var(--font-mono); color: var(--faint); }
.process__step h3 { margin-top: 18px; font-size: 30px; letter-spacing: -0.03em; }
.process__step p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.about__portrait { position: relative; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(198, 243, 107, 0.22), transparent 50%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
}
.portrait span { font-family: var(--font-serif); font-style: italic; font-size: clamp(140px, 18vw, 220px); line-height: 1; color: var(--text); opacity: 0.9; }
.about__portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.about__badge {
  position: absolute; right: -20px; bottom: 32px; padding: 14px 18px; border-radius: 14px;
  background: rgba(20, 22, 26, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); font-weight: 500;
}
.about__badge .label { margin-bottom: 6px; }
.about__copy h2 { margin-bottom: 28px; }
.about__copy > p:not(.kicker) { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 580px; }
.about__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.about__list li { display: flex; gap: 12px; font-size: 16px; }
.about__list span { color: var(--accent); font-family: var(--font-mono); }

/* ---------- Contact ---------- */
.contact__card {
  position: relative; text-align: center; padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 80px);
  border-radius: 28px; border: 1px solid var(--line-strong); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(198, 243, 107, 0.14), transparent 70%),
    var(--surface);
}
.contact__card h2 { font-size: clamp(36px, 5.6vw, 72px); }
.contact__card .section__sub { margin-left: auto; margin-right: auto; }
.contact__actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.socials { list-style: none; padding: 0; margin: 36px 0 0; display: flex; justify-content: center; gap: 28px; }
.socials a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.socials a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }
.footer__tag { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .console { max-width: 560px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__portrait { max-width: 380px; }
  .project--feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature__stage { max-width: 640px; }
  .project--flip .feature__stage { order: 0; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: rgba(11, 12, 14, 0.96); }
  .services, .work { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; flex-direction: column; }
  .project--wide .project__visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero__lede { font-size: 17px; }
  .hero__facts { gap: 14px; flex-wrap: nowrap; }
  .hero__facts div { padding-left: 10px; }
  .hero__facts dd { font-size: 14px; }
  .marquee { margin-top: 72px; }
  .hero__actions .btn { flex: 1; }
  .service { padding: 28px; }
  .project__body { padding: 26px; }
  .process { grid-template-columns: 1fr; }
  .console__log { padding: 16px 14px; min-height: 250px; }
  .console__log li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; font-size: 12px; }
  .console__foot { gap: 20px; }
  .about__badge { right: 12px; }
  .contact__actions .btn { width: 100%; }
  .feature__stage { padding: 0 0 40px 40px; }
  .project--flip .feature__stage { padding: 0 40px 40px 0; }
  .shot--browser, .project--flip .shot--browser { transform: none; }
  .btn--large { font-size: 15px; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; animation: none; }
  .shot--browser img { top: 0 !important; transform: none !important; animation: none !important; }
  .shot__hint { display: none; }
}
