/* fabyr.dev design system */

:root {
  --bg: #0a0b0f;
  --bg-2: #0d0f14;
  --panel: #12141b;
  --panel-2: #161924;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #e9ecf4;
  --text-2: #a7aec0;
  --muted: #6b7284;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-dim: rgba(110, 231, 255, 0.14);
  --good: #4ade80;
  --bad: #f87171;
  --font-d: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-m: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --nav-h: 72px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-d);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.032;
  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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #04121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #252a37; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #38415a; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: none; }
input, textarea, button { font-family: inherit; }

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

.mono { font-family: var(--font-m); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.grad {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #04121a;
  font-family: var(--font-m);
  font-size: 13px;
  border-radius: 8px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(110, 231, 255, 0.55);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), border-radius 0.25s var(--ease);
}
.cursor-ring.is-hover {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  background: rgba(110, 231, 255, 0.07);
  border-color: rgba(110, 231, 255, 0.9);
}
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ring.is-text {
  width: 3px; height: 26px; margin: -13px 0 0 -1.5px;
  border-radius: 2px;
  background: var(--accent);
  border-color: transparent;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js *, .js *::before, .js *::after { cursor: none !important; }
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-mark .lm {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.1s var(--ease) forwards;
}
.logo-mark .lm2 { animation-delay: 0.15s; }
.logo-mark .lm3 { animation-delay: 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.logo-text { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.nav-burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* mobile menu */
.m-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 10, 14, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.m-menu.open { opacity: 1; visibility: visible; }
.m-menu-links { display: flex; flex-direction: column; gap: 6px; }
.m-menu-links a {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.25s;
}
.m-menu.open .m-menu-links a { opacity: 1; transform: none; }
.m-menu-links a:nth-child(1) { transition-delay: 0.06s; }
.m-menu-links a:nth-child(2) { transition-delay: 0.12s; }
.m-menu-links a:nth-child(3) { transition-delay: 0.18s; }
.m-menu-links a:nth-child(4) { transition-delay: 0.24s; }
.m-menu-links a:nth-child(5) { transition-delay: 0.30s; }
.m-menu-links a:nth-child(6) { transition-delay: 0.36s; }
.m-menu-links a i { font-style: normal; font-family: var(--font-m); font-size: 13px; color: var(--accent); }
.m-menu-links a:hover { color: var(--accent); }
.m-menu-foot { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-m);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #7df0ff 0%, #59c8f2 55%, #7aa8ff 100%);
  color: #05121b;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(110, 231, 255, 0.28); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, 0.55);
  background: var(--accent-dim);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero-field { position: absolute; inset: 0; z-index: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 32%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 32%, #000 25%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: 1;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.hero-glow-a { width: 520px; height: 520px; top: -140px; left: -120px; background: rgba(110, 231, 255, 0.09); }
.hero-glow-b { width: 620px; height: 620px; bottom: -220px; right: -160px; background: rgba(167, 139, 250, 0.08); }

.glyph { position: absolute; z-index: 1; color: rgba(110, 231, 255, 0.16); pointer-events: none; }
.glyph-t { font-family: var(--font-m); font-size: 34px; fill: currentColor; }
.glyph-a { width: 40px; top: 22%; left: 6%; animation: float 9s ease-in-out infinite; }
.glyph-b { width: 40px; top: 60%; left: 12%; animation: float 11s ease-in-out infinite reverse; color: rgba(167, 139, 250, 0.15); }
.glyph-c { width: 60px; top: 26%; right: 7%; animation: float 13s ease-in-out infinite; color: rgba(167, 139, 250, 0.14); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.prompt-path { color: var(--accent-2); }
.prompt-dollar { color: var(--accent); }

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px 40px;
  width: fit-content;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-m);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label { font-family: var(--font-m); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }

/* terminal */
.hero-term { position: relative; }
.term {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(110, 231, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.term:hover {
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 40px rgba(110, 231, 255, 0.06);
  transform: translateY(-3px);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot-r { background: #f26d6d; }
.term-dot-y { background: #f2c46d; }
.term-dot-g { background: #67d38f; }
.term-title { margin-left: 10px; font-size: 12px; color: var(--muted); }

.term-body { padding: 22px 22px 26px; font-size: 13.5px; line-height: 1.9; min-height: 265px; }
.t-line { white-space: pre-wrap; word-break: break-word; opacity: 0; animation: tline 0.3s var(--ease) forwards; }
@keyframes tline { to { opacity: 1; } }
.t-prompt { color: var(--accent-2); }
.t-path { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-2); }
.t-ok { color: var(--good); }
.t-dim { color: var(--muted); }
.c-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-chip {
  position: absolute;
  left: -18px;
  bottom: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.chip-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  position: relative;
  flex: none;
}
.chip-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--good);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.scroll-hint:hover { color: var(--accent); }
.scroll-line { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDrop 1.8s var(--ease) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group svg { width: 7px; height: 7px; fill: var(--accent); opacity: 0.6; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 118px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head { margin-bottom: 56px; max-width: 640px; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.sec-tag::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sec-sub { color: var(--text-2); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.svc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(110, 231, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(110, 231, 255, 0.05);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-index { position: absolute; top: 26px; right: 28px; font-size: 13px; color: var(--muted); }

.svc-icon { width: 52px; height: 52px; margin-bottom: 24px; color: var(--accent); }
.svc-icon svg { width: 100%; height: 100%; }
.i-stroke {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.svc-card:hover .i-stroke { animation: redraw 1s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.i-fill { fill: var(--accent); opacity: 0.9; }
.i-fill.d1 { animation: dotBlink 2.6s ease-in-out infinite; }
.i-fill.d2 { animation: dotBlink 2.6s ease-in-out 0.5s infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }

.i-fill-soft { fill: var(--accent); opacity: 0.28; transition: opacity 0.4s var(--ease); }
.svc-card:hover .i-fill-soft { opacity: 0.65; }
.i-fill-soft.a1 { animation: appGlow 3s ease-in-out infinite; }
.i-fill-soft.a2 { animation: appGlow 3s ease-in-out 0.4s infinite; }
.i-fill-soft.a3 { animation: appGlow 3s ease-in-out 0.8s infinite; }
.i-fill-soft.a4 { animation: appGlow 3s ease-in-out 1.2s infinite; }
@keyframes appGlow { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }

.i-pulse { animation: chipPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes chipPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.12); }
}

.svc-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.svc-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 20px; }
.svc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.svc-list li {
  font-family: var(--font-m);
  font-size: 12.5px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.svc-list li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
}
.svc-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.svc-link:hover svg { transform: translateX(4px); }

/* ---------- work ---------- */
.work-featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(110, 231, 255, 0.05);
}
.work-featured .shot { border-radius: 0; border: none; border-right: 1px solid var(--line); min-height: 320px; }
.work-featured .work-info { padding: 38px 36px; display: flex; flex-direction: column; justify-content: center; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.work-grid .work-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-grid .work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}
.work-grid .work-info { padding: 24px 24px 26px; }

.shot {
  position: relative;
  background: linear-gradient(160deg,
    hsl(var(--shot-h) 45% 16%),
    hsl(var(--shot-h) 40% 9%) 70%);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.shot-url {
  margin-left: 8px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 12px;
  border-radius: 999px;
  flex: 1;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }

.s-nav { display: flex; align-items: center; gap: 8px; }
.s-nav i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); width: 22px; }
.s-nav .s-logo { width: 30px; background: hsl(var(--shot-h) 80% 62% / 0.8); }
.s-nav .s-btn { margin-left: auto; width: 34px; background: hsl(var(--shot-h) 80% 62% / 0.55); }

.s-hero { display: flex; gap: 14px; align-items: stretch; }
.s-hero.center { justify-content: center; }
.s-hero-txt { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.s-hero-txt i { border-radius: 3px; background: rgba(255, 255, 255, 0.14); height: 7px; width: 88%; }
.s-h1 { height: 13px !important; background: rgba(255, 255, 255, 0.32) !important; width: 70% !important; }
.s-h1.wide { width: 55% !important; margin: 0 auto; }
.s-p.short { width: 55% !important; }
.s-cta { width: 42px !important; height: 14px !important; border-radius: 7px !important; background: hsl(var(--shot-h) 85% 62% / 0.85) !important; margin-top: 4px; }
.center .s-hero-txt { align-items: center; width: 100%; }
.s-hero-img {
  flex: 0.8;
  min-height: 74px;
  border-radius: 8px;
  background: linear-gradient(140deg, hsl(var(--shot-h) 70% 55% / 0.5), hsl(var(--shot-h) 70% 40% / 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.s-cards { display: flex; gap: 10px; }
.s-cards i { flex: 1; height: 44px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.07); }
.s-cards.four i { height: 34px; }

.shot-dash { flex-direction: row; padding: 14px; gap: 12px; min-height: 190px; }
.s-side { display: flex; flex-direction: column; gap: 9px; width: 44px; }
.s-side i { height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.s-side i.on { background: hsl(var(--shot-h) 80% 60% / 0.8); }
.s-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.s-kpis { display: flex; gap: 10px; }
.s-kpis i { flex: 1; height: 34px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.07); }
.s-chart {
  flex: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px;
  display: flex;
  align-items: flex-end;
}
.s-chart svg { width: 100%; height: 100%; }
.s-chart polyline {
  fill: none;
  stroke: hsl(var(--shot-h) 85% 62%);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.work-card:hover .s-chart polyline { animation: chartDraw 1.4s var(--ease) forwards; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }

.shot-app { align-items: center; justify-content: center; min-height: 190px; }
.s-phone {
  width: 88px;
  height: 168px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  padding: 14px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .s-phone { transform: translateY(-5px) rotate(-2deg); }
.s-notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.s-map {
  flex: 1;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--shot-h) 75% 60% / 0.55) 0 5px, transparent 6px),
    linear-gradient(150deg, hsl(var(--shot-h) 45% 30% / 0.7), hsl(var(--shot-h) 45% 16% / 0.7));
}
.s-card-float {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-card-float i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); width: 80%; }
.s-card-float i.short { width: 50%; }
.s-tabbar { display: flex; justify-content: space-around; }
.s-tabbar i { width: 12px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); }
.s-tabbar i.on { background: hsl(var(--shot-h) 85% 65% / 0.9); }

.shot-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.work-card:hover .shot-shine { transform: translateX(130%); }

.work-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 12px; }
.work-live { display: inline-flex; align-items: center; gap: 7px; color: var(--good); }
.work-info h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.work-info p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags li {
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 12px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover .work-tags li { border-color: rgba(110, 231, 255, 0.35); color: var(--accent); }

.work-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--accent);
}
.work-visit svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.work-featured:hover .work-visit svg { transform: translate(3px, -3px); }

.work-note { margin-top: 34px; font-size: 12.5px; color: var(--muted); }

/* ---------- process ---------- */
.process { position: relative; display: flex; flex-direction: column; max-width: 720px; }
.process::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease) 0.2s;
}
.process.in::before { transform: scaleY(1); }

.step { display: flex; gap: 30px; padding: 26px 0; position: relative; }
.step-node {
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  position: relative;
  z-index: 1;
  margin-top: 6px;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.step.in .step-node { border-color: var(--accent); background: var(--accent-dim); }
.step.in .step-node::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: nodeIn 0.6s var(--ease) both;
}
@keyframes nodeIn { from { transform: scale(0); } to { transform: scale(1); } }

.step-num { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.step-body h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-body p { color: var(--text-2); font-size: 15px; max-width: 520px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--text-2); margin-bottom: 18px; }
.about-copy .sec-head { margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 7px 15px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chips li:hover { color: var(--accent); border-color: rgba(110, 231, 255, 0.45); transform: translateY(-2px); }

.code-body { padding: 24px 24px 28px; font-size: 13.5px; line-height: 2; overflow-x: auto; }
.c-kw { color: var(--accent-2); }
.c-var { color: var(--accent); }
.c-str { color: #86e3b1; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-plus { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p { color: var(--text-2); font-size: 15px; padding: 0 4px 26px; max-width: 640px; }

/* ---------- quote ---------- */
.section-quote { background: var(--bg-2); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.section-quote::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -200px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.07), transparent 65%);
  pointer-events: none;
}
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; position: relative; }
.quote-copy > p { color: var(--text-2); margin-bottom: 30px; }
.quote-copy .sec-head { margin-bottom: 26px; }

.contact-lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.contact-lines li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.contact-lines li:last-child { border-bottom: none; }
.contact-lines li:hover { background: rgba(110, 231, 255, 0.04); }
.cl-k { color: var(--muted); width: 56px; flex: none; }
.contact-lines a { color: var(--accent); position: relative; }
.contact-lines a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.contact-lines a:hover::after { transform: scaleX(1); transform-origin: left; }
.cl-v { color: var(--text-2); }
.quote-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

.term-quote .term-body { min-height: 0; }
.q-cmd { font-size: 13.5px; margin-bottom: 22px; color: var(--text-2); }
.q-row { margin-bottom: 20px; border: none; }
.q-label { display: block; font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.q-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  caret-color: var(--accent);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.q-input::placeholder { color: var(--muted); }
.q-input:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12);
  background: rgba(110, 231, 255, 0.04);
}
textarea.q-input { resize: vertical; min-height: 96px; line-height: 1.7; }
.q-input.invalid { border-color: rgba(248, 113, 113, 0.65); }
.q-err { font-size: 11.5px; color: var(--bad); margin-top: 6px; }
.q-err:empty { display: none; }

.q-chips legend { display: block; font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip span:hover { border-color: rgba(110, 231, 255, 0.5); color: var(--text); transform: translateY(-1px); }
.chip input:checked + span {
  color: #05121b;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.q-submit { width: 100%; justify-content: center; margin-top: 6px; }
.q-submit[disabled] { opacity: 0.65; pointer-events: none; }
.q-hint { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }

.q-success { padding: 8px 0 4px; }
.ok-line { font-size: 14px; color: var(--text-2); margin-bottom: 12px; opacity: 0; transform: translateY(8px); animation: tline2 0.4s var(--ease) forwards; }
.ok-line:nth-child(2) { animation-delay: 0.35s; }
.ok-line:nth-child(3) { animation-delay: 0.7s; }
@keyframes tline2 { to { opacity: 1; transform: none; } }
.ok-mark { color: var(--good); margin-right: 8px; }
.q-success-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 260px; }
.footer-col h4 { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; margin-bottom: 18px; font-weight: 500; }
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 14.5px;
  padding: 5px 0;
  width: fit-content;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.footer-built { margin-left: auto; }
.to-top {
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.to-top svg { width: 17px; height: 17px; }
.to-top:hover { color: #05121b; background: var(--accent); border-color: var(--accent); transform: translateY(-4px); }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-term { max-width: 560px; }
  .svc-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .work-featured { grid-template-columns: 1fr; }
  .work-featured .shot { border-right: none; border-bottom: 1px solid var(--line); min-height: 240px; }
  .about-grid, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav .btn { display: none; }
  .nav-burger { display: block; }
  .section { padding: 84px 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 32px; }
  .svc-grid, .work-grid { grid-template-columns: 1fr; }
  .term-chip { left: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-built { margin-left: 0; width: 100%; order: 3; }
  .scroll-hint { display: none; }
  .step { gap: 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
