/* Brody Builds Studio: dark, glowing, one stylesheet for every page */

:root {
  --bg: #0a0c10;
  --bg-2: #0d1016;
  --card: #12151c;
  --card-2: #171b24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9edf4;
  --muted: #9aa4b5;
  --dim: #6c7588;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #818cf8;
  --orange: #f97316;
  --amber: #fbbf24;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #3b82f6, #22d3ee);
  --grad-text: linear-gradient(90deg, #60a5fa, #22d3ee 45%, #fb923c);
  --accent: var(--cyan);
  --accent-rgb: 34, 211, 238;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, .foot-col p a { color: var(--cyan); text-decoration-color: rgba(34, 211, 238, .4); text-underline-offset: 3px; }
p a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 700; }
::selection { background: rgba(34, 211, 238, .3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: #04121a; padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .i { transition: transform .2s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-glow {
  background: var(--grad); color: #04121a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 28px -6px rgba(34, 211, 238, .55);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 40px -6px rgba(34, 211, 238, .75); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, .55);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 12, 16, .82); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 10px; box-shadow: 0 0 22px -4px rgba(34, 211, 238, .55); }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted);
  font-size: 15px; font-weight: 500; transition: color .2s ease, background .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.page-web [data-nav="web"], .page-code [data-nav="code"], .page-3d [data-nav="3d"] { color: var(--text) !important; background: rgba(255, 255, 255, .06); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 12, 16, .97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .nav-links .btn { margin: 10px 0 0; padding: 14px; }
  .nav { background: rgba(10, 12, 16, .9); }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
.grid-lines {
  position: absolute; inset: -56px 0 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 25%, transparent 75%);
  animation: grid-drift 14s linear infinite;
}
@keyframes grid-drift { to { transform: translateY(56px); } }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-blue { width: 560px; height: 560px; background: radial-gradient(circle, #2563eb, transparent 65%); top: -160px; right: 4%; animation: drift-a 18s ease-in-out infinite alternate; }
.glow-orange { width: 420px; height: 420px; background: radial-gradient(circle, #ea580c, transparent 65%); bottom: -120px; left: -80px; opacity: .35; animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-120px, 90px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(140px, -60px) scale(1.15); } }

.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; aspect-ratio: 1 / .92; perspective: 1200px; }
.float {
  position: absolute; margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3);
  transform: translate3d(calc(var(--px, 0) * var(--depth, 10px)), calc(var(--py, 0) * var(--depth, 10px)), 0) rotate(var(--rot, 0deg));
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.float img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.f-browser { width: 74%; top: 2%; left: 0; --rot: -2deg; --depth: 8px; z-index: 1; }
.f-game { width: 54%; top: 33%; right: 0; --rot: 3deg; --depth: 18px; z-index: 2; }
.f-render { width: 46%; bottom: 0; left: 2%; --rot: -1.5deg; --depth: 26px; z-index: 3; }
.f-browser, .f-game, .f-render { animation: bob 7s ease-in-out infinite; }
.f-game { animation-delay: -2.3s; }
.f-render { animation-delay: -4.6s; }
@keyframes bob { 50% { margin-top: -10px; } }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #0f1218; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a303b; }
.browser-bar i:first-child { background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 10px; font-size: 11px; color: var(--dim); }
.tag {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(10, 12, 16, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
}
.tag .i { width: 14px; height: 14px; }
.f-game .tag { left: auto; right: 10px; bottom: auto; top: 10px; }
.tag-web { color: var(--cyan); }
.tag-code { color: var(--violet); }
.tag-3d { color: var(--orange); }

.stats {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(18, 21, 28, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stats li { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font: 700 clamp(2rem, 3.4vw, 2.6rem)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14px; line-height: 1.4; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .stats li { padding: 18px 16px; }
  .tag { font-size: 11px; padding: 4px 8px; left: 6px; bottom: 6px; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(64px, 8vw, 100px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018) 15%, rgba(255, 255, 255, .018) 85%, transparent); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .about h2, .contact h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-head p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  color: var(--accent); font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* cards that glow where the mouse is */
.glow-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  isolation: isolate;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .12), transparent 60%);
  transition: opacity .3s ease;
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover { border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 20px 50px -24px rgba(var(--accent-rgb), .45); }

.svc-web, .chip-web { --accent: var(--cyan); --accent-rgb: 34, 211, 238; }
.svc-code, .chip-code { --accent: var(--violet); --accent-rgb: 129, 140, 248; }
.svc-3d, .chip-3d { --accent: var(--orange); --accent-rgb: 249, 115, 22; }
.page-web { --accent: var(--cyan); --accent-rgb: 34, 211, 238; }
.page-code { --accent: var(--violet); --accent-rgb: 129, 140, 248; }
.page-3d { --accent: var(--orange); --accent-rgb: 249, 115, 22; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 30px 28px; display: flex; flex-direction: column; }
.svc:hover { transform: translateY(-4px); }
.svc-icon, .step-icon, .offer-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25);
  box-shadow: 0 0 30px -8px rgba(var(--accent-rgb), .6);
}
.svc-icon .i, .step-icon .i, .offer-icon .i { width: 24px; height: 24px; }
.svc h3 { font-size: 1.45rem; margin: 22px 0 10px; }
.svc > p { color: var(--muted); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks .i { color: var(--accent); margin-top: 4px; width: 16px; height: 16px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.more .i { transition: transform .2s ease; }
.more:hover .i { transform: translateX(4px); }

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

/* work */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; transition: all .2s ease;
}
.tab:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); }
.tab.is-on { color: #04121a; background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px -6px rgba(34, 211, 238, .6); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { overflow: hidden; display: flex; flex-direction: column; }
.work[data-cats~="web"] { --accent-rgb: 34, 211, 238; }
.work[data-cats~="code"] { --accent-rgb: 129, 140, 248; }
.work[data-cats~="3d"] { --accent-rgb: 249, 115, 22; }
.work:hover { transform: translateY(-4px); }
.work.is-hidden { display: none; }
.work.is-shown { animation: pop .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.work-img { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.work-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work:hover .work-img img { transform: scale(1.05); }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.work h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.work-body > p:not(.chips):not(.stack-tags) { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip {
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25);
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.stack-tags span {
  font: 500 12px/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted);
  padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.work-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); }
.work-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.work-link .i { width: 16px; height: 16px; color: rgb(var(--accent-rgb)); transition: transform .2s ease; }
.work:hover .work-link .i { transform: translate(2px, -2px); }
.center-link { text-align: center; margin: 40px 0 0; }

@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(129, 140, 248, .5), rgba(249, 115, 22, .5), transparent);
}
.step { position: relative; padding: 0 6px; }
.step-n {
  position: absolute; top: -8px; left: 44px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 700 12px/1 var(--display); color: var(--muted);
}
.step-icon { background: var(--card); position: relative; }
.step h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; }
.about-copy h2 { margin-bottom: 4px; }
.why { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why li { display: flex; gap: 14px; align-items: flex-start; }
.why .i { width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.why strong { display: block; font-weight: 600; margin-bottom: 2px; }
.why span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.toolbox { padding: 28px; }
.toolbox h3 { font-size: 1.25rem; margin-bottom: 18px; }
.tool-group + .tool-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tool-group h4 { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: var(--muted); margin-bottom: 12px; letter-spacing: 0; }
.tool-group h4 .i { color: var(--cyan); }
.tool-group .stack-tags { margin: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-points .i { width: 20px; height: 20px; color: var(--cyan); }
.contact-email {
  display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 16px 18px; max-width: 420px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025);
  text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.contact-email:hover { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .05); }
.contact-email .i { width: 24px; height: 24px; color: var(--cyan); }
.contact-email span { display: block; color: var(--muted); font-size: 14px; }
.contact-email strong { font-weight: 600; overflow-wrap: anywhere; }
.quote-form { padding: clamp(22px, 4vw, 34px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field em { font-style: normal; color: var(--dim); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 400 16px/1.4 var(--font);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: var(--dim); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.field.bad input, .field.bad textarea { border-color: #f87171; }
.choice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 100%;
  padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 13.5px; font-weight: 600; text-align: center; color: var(--muted); transition: all .2s ease;
}
.choice span .i { width: 22px; height: 22px; }
.choice:hover span { border-color: rgba(255, 255, 255, .28); color: var(--text); }
.choice input:checked + span { color: var(--text); border-color: var(--cyan); background: rgba(34, 211, 238, .08); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.choice input:checked + span .i { color: var(--cyan); }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1px; }
.form-status:empty { display: none; }
.form-status.ok, .form-status.err, .form-status.info { padding: 14px 16px; border-radius: 12px; }
.form-status.ok { color: #bbf7d0; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); }
.form-status.err { color: #fecaca; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); }
.form-status.info { color: #bae6fd; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); }
.form-done { text-align: center; padding: 28px 8px; }
.form-done .i { width: 54px; height: 54px; color: var(--green); padding: 12px; border-radius: 50%; background: rgba(34, 197, 94, .12); box-shadow: 0 0 40px -6px rgba(34, 197, 94, .6); }
.form-done h3 { font-size: 1.6rem; margin: 18px 0 8px; }
.form-done p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- service pages */

.page-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero .glow-blue { background: radial-gradient(circle, rgba(var(--accent-rgb), .9), transparent 65%); opacity: .35; right: -10%; }
.page-hero .glow-orange { opacity: .18; }
.page-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 22px; color: var(--dim); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); letter-spacing: -.035em; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.page-hero h1 .svc-icon { width: 60px; height: 60px; border-radius: 16px; }
.page-hero h1 .svc-icon .i { width: 28px; height: 28px; }
.accent-text { color: var(--accent); text-shadow: 0 0 40px rgba(var(--accent-rgb), .5); }
.page-hero .btn-glow, .cta-band .btn-glow {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent-rgb), .75));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 8px 28px -6px rgba(var(--accent-rgb), .6);
}
.page-3d .btn-glow { color: #1a0a00; }
.page-code .btn-glow { color: #0b0d24; }
.hero-shot { position: relative; }
.hero-shot img { border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(var(--accent-rgb), .6); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts .i { color: var(--accent); width: 17px; height: 17px; }
@media (max-width: 900px) { .page-hero-in { grid-template-columns: 1fr; } }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer { padding: 24px; }
.offer h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.offer p { color: var(--muted); margin: 0; font-size: 15px; }
.offer-icon { width: 46px; height: 46px; border-radius: 12px; }
.offer-icon .i { width: 22px; height: 22px; }
.offer:hover { transform: translateY(-3px); }
@media (max-width: 960px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .offer-grid { grid-template-columns: 1fr; } }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }
.included li {
  display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
}
.included .i { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }
.included strong { display: block; margin-bottom: 2px; }
.included span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.examples { display: grid; gap: clamp(48px, 7vw, 88px); }
.ex { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.ex:nth-child(even) { grid-template-columns: .9fr 1.1fr; }
.ex:nth-child(even) .ex-media { order: 2; }
.ex-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
.ex-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .25s ease; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  flex: 0 1 120px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: none; opacity: .55; transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.thumb:hover { opacity: .85; }
.thumb.is-on { opacity: 1; border-color: var(--accent); }
.ex-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 12px 0 12px; }
.ex-copy > p:not(.chips):not(.stack-tags) { color: var(--muted); margin: 0 0 16px; }
.ex-copy .checks { margin-bottom: 20px; }
.ex-copy .stack-tags { margin-bottom: 22px; }
.ex-links { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 13px; color: var(--dim); margin: 10px 0 0; }
@media (max-width: 900px) {
  .ex { grid-template-columns: 1fr; }
  .ex:nth-child(even) .ex-media { order: 0; }
}

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.game .more .i { width: 16px; height: 16px; }
.game img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .5s ease; }
.game:hover img { transform: scale(1.05); }
.game div { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.game h3 { font-size: 1.05rem; margin-bottom: 6px; }
.game p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.game:hover { transform: translateY(-3px); }
@media (max-width: 1000px) { .games { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .games { grid-template-columns: 1fr; } }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.spec div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.spec dt { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 6px; }
.spec dd { margin: 0; font: 600 1.15rem/1.35 var(--display); }

.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(var(--accent-rgb), .35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 600 1.05rem/1.4 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 72px) var(--gutter);
  border-radius: 28px; border: 1px solid rgba(var(--accent-rgb), .3);
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .2), transparent 65%), var(--card);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: var(--muted); font-size: 1.08rem; margin: 14px auto 28px; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand p { color: var(--muted); margin: 16px 0 14px; }
.foot-mail { display: flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 20px; color: var(--text); text-decoration: none; font-size: 15px; }
.foot-mail .i { width: 17px; height: 17px; color: var(--cyan); }
.foot-mail:hover { color: var(--cyan); }
.foot-col h3 { font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-col p { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.foot-col .ext { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); }
.foot-col .ext .i { width: 15px; height: 15px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-base a { color: var(--muted); text-decoration: none; }
.foot-base a:hover { color: var(--text); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost h1 { font-size: clamp(4rem, 14vw, 9rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost p { color: var(--muted); font-size: 1.1rem; margin: 10px 0 28px; }
.lost .hero-cta { justify-content: center; }

/* ---------------------------------------------------------------- reveal on scroll */

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .work[data-reveal].in, .js .svc[data-reveal].in, .js .offer[data-reveal].in, .js .game[data-reveal].in {
  transition: opacity .7s ease var(--delay, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s), border-color .3s ease, box-shadow .3s ease;
}
.js .work[data-reveal].in:hover, .js .svc[data-reveal].in:hover, .js .game[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0s; }
.js .offer[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
