/* K Steps — design tokens + styles. Mobile first. */
:root {
  --bg: #0e0f11;
  --bg-2: #16181b;
  --bg-3: #1f2226;
  --line: #2c3036;
  --text: #f2f3f5;
  --muted: #a9afb8;
  --accent: #c8f542;
  --accent-ink: #0e0f11;
  --danger: #ff7a6b;
  --ok: #7ee2a8;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --gutter: 20px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.35rem); color: var(--muted); max-width: 38ch; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--font-head);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,15,17,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 700 1.25rem/1 var(--font-head); color: var(--text); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo__mark { width: 26px; height: 26px; }
.nav-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; height: 40px; padding: 0 16px; font: 600 .95rem var(--font-body); cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 14px 0; color: var(--text); text-decoration: none; font: 600 1.15rem var(--font-head); border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-top: 16px; width: 100%; border-bottom: 2px solid var(--accent); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 28px; }
  .nav ul { display: flex; gap: 28px; }
  .nav a { padding: 6px 0; border: 0; font-size: 1rem; }
  .nav a:hover { color: var(--accent); }
  .nav .btn { margin: 0; width: auto; padding: 0 20px; min-height: 42px; }
}

/* Hero */
.hero { padding: 72px 0 80px; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 2rem; }
@media (min-width: 860px) { .hero { padding: 120px 0 128px; } }

/* Cards / grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid { gap: 20px; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.benefit__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.benefit__icon svg { width: 22px; height: 22px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Project cards */
.project-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: border-color .15s ease, transform .15s ease; }
.project-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.project-card__img { aspect-ratio: 16 / 10; background: var(--bg-3); position: relative; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card h3 { margin: 0; }
.project-card h3 a { color: var(--text); text-decoration: none; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card p { margin: 0; color: var(--muted); }
.project-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.live-link { position: relative; z-index: 2; font-weight: 600; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }
.badge { display: inline-block; font: 700 .72rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.badge--soft { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.project-card .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* Placeholder "screenshot" when no image yet */
.shot-ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(120% 80% at 0% 0%, rgba(200,245,66,.18), transparent 60%), var(--bg-3); }
.shot-ph span { font: 700 clamp(1.6rem, 6vw, 2.4rem) var(--font-head); color: var(--text); letter-spacing: -0.03em; opacity: .9; }

/* Project page */
.project-hero { padding: 56px 0 32px; }
.project-hero .tags { margin: 16px 0 24px; }
.project-hero h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--text); }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 1.6em; }
.prose { max-width: 68ch; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.gallery { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16/10; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.package { display: flex; flex-direction: column; }
.package .price { font: 700 2rem/1 var(--font-head); margin: 8px 0 4px; letter-spacing: -0.02em; }
.package .price small { font: 500 .95rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.package .for { color: var(--muted); margin-bottom: 18px; }
.package ul { margin: 0 0 24px; }
.package .btn { margin-top: auto; }
.package--feature { border-color: var(--accent); }
@media (min-width: 700px) { .grid--packages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--packages { grid-template-columns: repeat(4, 1fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 1.15rem var(--font-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 64ch; padding-bottom: 12px; }

/* About */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 6fr; gap: 64px; } }
.photo-ph { aspect-ratio: 4/5; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--bg-2); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; max-width: 420px; }
.photo-ph svg { width: 56px; height: 56px; margin: 0 auto 12px; opacity: .7; }

/* CTA band */
.cta { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 48px 28px; }
.cta h2 { margin-bottom: .3em; }
.cta p { font-size: 1.15rem; max-width: 44ch; }
.cta .btn { background: var(--accent-ink); color: var(--text); border-color: var(--accent-ink); }
@media (min-width: 860px) { .cta { padding: 72px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; } .cta p { margin: 0; } }

/* Forms */
.form { display: grid; gap: 18px; }
@media (min-width: 700px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 1rem;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,245,66,.25); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .92rem; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); background: var(--bg-2); }
.notice--ok { border-color: var(--ok); }
.notice--err { border-color: var(--danger); }
.notice:empty { display: none; }
.contact-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 4fr 7fr; gap: 72px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 72px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--text); margin-bottom: .8em; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-big { font: 700 1.6rem/1.15 var(--font-head); color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.nav .btn, .nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--accent-ink); }
#project-view { min-height: 100vh; }
.nav a.btn { display: flex; padding: 0 20px; }
@media (min-width: 860px) { .nav a.btn { display: inline-flex; } }
.home-lede { margin-bottom: 32px; }
#services, #about, #work, #quote { scroll-margin-top: 72px; }
.section .about { align-items: center; }
.section .photo-ph { max-width: 360px; }
.shot-ph { padding: 16px; text-align: center; }
