  :root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --text: #15141a;
    --muted: #5d5b66;
    --line: #e7e4dd;
    --brand: #4b3cff;
    --brand-ink: #ffffff;
    --brand-soft: #ecebff;
    --accent: #ff6b3d;
    --radius: 18px;
    --max: 1120px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #111015; --surface: #1a1920; --text: #f2f1f6; --muted: #a6a3b3; --line: #2b2933;
      --brand: #8f85ff; --brand-ink: #111015; --brand-soft: #241f4d; --accent: #ff8a63;
    }
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Inter", system-ui, sans-serif; }
  a { color: inherit; }
  h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
  h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
  section { padding: 88px 0; }
  .eyebrow { font-family: "Space Grotesk", sans-serif; font-weight: 500; color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin: 0 0 12px; }
  .lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 8px; }

  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); transition: transform .15s, box-shadow .15s; cursor: pointer; font-size: 1rem; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(75,60,255,.18); }
  .btn-primary { background: var(--brand); color: var(--brand-ink); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }

  /* Nav */
  .nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
  .logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
  .logo span { color: var(--brand); }
  .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
  .nav ul a { text-decoration: none; color: var(--muted); font-weight: 500; }
  .nav ul a:hover { color: var(--text); }
  .nav .btn { padding: 9px 18px; font-size: .9rem; }

  /* Hero */
  .hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
  .hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); z-index: -1; }
  .status { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; margin-bottom: 26px; }
  .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
  .hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); max-width: 15ch; }
  .hero h1 em { font-style: normal; color: var(--brand); }
  .hero .lede { font-size: 1.2rem; margin-bottom: 32px; }
  .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
  .stats b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; }
  .stats span { color: var(--muted); font-size: .92rem; }

  /* Work */
  .work { background: var(--surface); border-block: 1px solid var(--line); }
  .projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
  .project { text-decoration: none; display: block; }
  .project:first-child { grid-column: span 2; }
  .live .project:first-child { grid-column: auto; }
  .live .project:first-child .shot { aspect-ratio: 16 / 10; }
  .group { font-size: 1.1rem; margin: 48px 0 0; color: var(--muted); font-weight: 600; }
  .group + .projects { margin-top: 20px; }
  .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
  .live .shot::after { content: "Visit live site ↗"; }
  .shot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
  .project:first-child .shot { aspect-ratio: 21 / 9; }
  .shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 1280px; border: 0; transform-origin: 0 0; pointer-events: none; }
  .shot::after { content: "View live demo →"; position: absolute; inset: auto 16px 16px auto; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .2s; }
  .project:hover .shot::after, .project:focus-visible .shot::after { opacity: 1; transform: none; }
  .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
  .meta h3 { font-size: 1.35rem; margin: 0; }
  .meta span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
  .project p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
  .tags li { font-size: .78rem; background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 999px; font-weight: 500; }
  .work-note { color: var(--muted); font-size: .9rem; margin-top: 32px; }

  /* Services */
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
  .service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
  .service.best { border: 2px solid var(--brand); }
  .service h3 { font-size: 1.3rem; margin: 0; }
  .service .price { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; margin: 8px 0 4px; }
  .service .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
  .service ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
  .service li { margin-bottom: 4px; }
  .addon { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 28px; }
  .addon h3 { font-size: 1.3rem; margin: 0; }
  .addon .price { font-family: "Space Grotesk", sans-serif; font-size: 2.2rem; font-weight: 700; margin: 6px 0; }
  .addon p { color: var(--muted); margin: 0 0 18px; }
  .addon .eyebrow { margin-bottom: 6px; }
  .addon ul { margin: 0; padding-left: 18px; color: var(--muted); }
  .addon li { margin-bottom: 6px; }
  .project.wide { grid-column: span 2; }
  .project.wide .shot { aspect-ratio: 21 / 9; }
  .care { margin-top: 20px; background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

  /* Process */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
  .step { border-top: 2px solid var(--text); padding-top: 18px; }
  .step::before { counter-increment: step; content: "0" counter(step); font-family: "Space Grotesk", sans-serif; color: var(--brand); font-weight: 700; }
  .step h3 { font-size: 1.15rem; margin: 8px 0 6px; }
  .step p { color: var(--muted); margin: 0; font-size: .95rem; }

  /* About */
  .about { background: var(--surface); border-block: 1px solid var(--line); }
  .about .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
  .skills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0 0; }
  .skills li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; background: var(--bg); }
  .hire { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .hire h3 { font-size: 1.3rem; }
  .hire p { color: var(--muted); margin: 0 0 18px; }

  /* Contact */
  .contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .methods { display: grid; gap: 12px; margin-top: 28px; }
  .method { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; transition: border-color .15s; }
  .method:hover { border-color: var(--brand); }
  .method i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; flex: none; }
  .method small { display: block; color: var(--muted); }
  form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  label { font-size: .9rem; font-weight: 500; display: grid; gap: 6px; }
  input, select, textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
  textarea { min-height: 120px; resize: vertical; }
  form .btn { justify-self: start; }
  .send { display: flex; flex-wrap: wrap; gap: 10px; }

  footer { padding: 32px 0; color: var(--muted); font-size: .9rem; }
  footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

  @media (max-width: 860px) {
    .nav ul { display: none; }
    section { padding: 64px 0; }
    .hero { padding: 64px 0 56px; }
    .projects, .services, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
    .project:first-child, .project.wide { grid-column: auto; }
    .project.wide .shot { aspect-ratio: 16 / 10; }
    .addon { grid-template-columns: 1fr; gap: 20px; }
    .project:first-child .shot { aspect-ratio: 16 / 10; }
    .steps { grid-template-columns: 1fr 1fr; }
    .stats { gap: 28px; }
  }
  @media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

  /* Top menu: dropdowns on laptops, a Menu button on phones */
  .nav-links { align-items: center; }
  .nav-end { display: flex; align-items: center; gap: 10px; }
  .dd { position: relative; }
  .dd summary, .mnav summary { list-style: none; cursor: pointer; }
  .dd summary::-webkit-details-marker, .mnav summary::-webkit-details-marker { display: none; }
  .dd summary { color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
  .dd summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .dd[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .dd summary:hover, .dd[open] summary { color: var(--text); }
  .nav .dd ul { position: absolute; top: calc(100% + 14px); left: -16px; display: grid; gap: 2px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(20,20,40,.12); }
  .nav .dd ul a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text); }
  .nav .dd ul a:hover { background: var(--brand-soft); color: var(--brand); }
  .mnav { display: none; }
  .mnav summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
  .mnav[open] summary { border-color: var(--brand); color: var(--brand); }
  .mnav-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgba(20,20,40,.12); padding: 12px 20px 24px; display: grid; }
  .mnav-panel a { text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mnav-panel p { margin: 18px 4px 4px; font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
  @media (max-width: 860px) {
    .mnav { display: block; }
    .nav .btn { padding: 9px 14px; }
  }
  @media (max-width: 360px) {
    .nav-end .btn-primary { display: none; }
  }

  /* Launch offer (nav.js adds .offer-ended to <html> from 1 Feb 2027) */
  .normal-only { display: none; }
  .offer-ended .offer-only { display: none !important; }
  .offer-ended .normal-only { display: revert; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .promo-bar { background: #15141a; text-align: center; padding: 10px 16px; font-size: .9rem; }
  .promo-bar a { color: #ffffff; text-decoration: none; }
  .promo-bar a:hover { text-decoration: underline; }
  .promo-bar b { color: #ffb199; }
  .was { text-decoration: line-through; color: var(--muted); font-size: .5em; font-weight: 500; margin-left: 6px; vertical-align: middle; }
  .offer-note { display: inline-block; background: #fff0ea; color: #8a2d0b; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem; margin: 4px 0 0; }
  .offer-note a { color: inherit; }
  .offer { padding: 0 0 72px; }
  .offer-card { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 20px 50px rgba(255,107,61,.12); }
  .offer-card .eyebrow { color: #c2410c; }
  .offer-card h2 { max-width: 22ch; }
  .offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
  .offer-item { background: #fff7f3; border-radius: 14px; padding: 18px; }
  .offer-item small { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
  .offer-item b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; line-height: 1.15; margin: 4px 0; color: #15141a; }
  .offer-item span { color: var(--muted); font-size: .9rem; }
  .offer-terms { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }
  .offer-terms b { color: var(--text); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .offer-item { background: #2a1d18; }
    :root:not([data-theme="light"]) .offer-item b { color: var(--text); }
    :root:not([data-theme="light"]) .offer-note { background: #3a1f14; color: #ffb199; }
  }
  @media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } .offer { padding-bottom: 56px; } }

  /* Logo */
  .logo { display: inline-flex; align-items: center; gap: 10px; }
  .logo img { width: 30px; height: 30px; border-radius: 8px; }

  /* "Who I build for" cards on the homepage */
  .types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
  .type { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
  .type:hover { border-color: var(--brand); transform: translateY(-2px); }
  .type h3 { font-size: 1.15rem; margin: 0 0 6px; }
  .type p { color: var(--muted); font-size: .92rem; margin: 0; }
  .type span { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: .9rem; }

  /* Areas block (replaces the old hiring box on the homepage) */
  .areas { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .areas h3 { font-size: 1.3rem; }
  .areas p { color: var(--muted); margin: 0 0 14px; }
  .areas ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
  .areas li a, .areas li span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; background: var(--surface); text-decoration: none; }
  .areas li a { border-color: var(--brand); color: var(--brand); font-weight: 600; }

  /* Inner pages */
  .crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
  .crumbs a { color: var(--muted); }
  .page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
  .page-hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); z-index: -1; }
  .page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 18ch; }
  .page-hero h1 em { font-style: normal; color: var(--brand); }
  .page-hero .lede { font-size: 1.15rem; margin-bottom: 28px; }
  .band { background: var(--surface); border-block: 1px solid var(--line); }
  .prose { max-width: 70ch; }
  .prose p, .prose li { color: var(--muted); }
  .prose h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 1.4em; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: 1.2rem; margin-top: 1.4em; color: var(--text); }
  .prose strong { color: var(--text); }
  .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
  .ticks li { position: relative; padding-left: 30px; }
  .ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .card h3 { font-size: 1.2rem; margin: 0 0 8px; }
  .card p { color: var(--muted); margin: 0 0 14px; }
  .price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
  .price-row .card .price { font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; margin: 4px 0; }
  .faq { display: grid; gap: 12px; margin-top: 24px; max-width: 760px; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
  .faq summary { cursor: pointer; font-weight: 600; }
  .faq details p { color: var(--muted); margin: 10px 0 0; }
  .cta-band { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .cta-band h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
  .cta-band p { margin: 0; opacity: .9; }
  .cta-band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
  .cta-band .btn-ghost { background: transparent; color: var(--brand-ink); border-color: currentColor; }
  .shot-link { display: block; text-decoration: none; }
  .split > .project { grid-column: auto; }
  .split > .project .shot { aspect-ratio: 16 / 10; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
  .facts div { border-top: 2px solid var(--text); padding-top: 12px; }
  .facts b { display: block; font-family: "Space Grotesk", sans-serif; }
  .facts span { color: var(--muted); font-size: .92rem; }

  /* Footer */
  .foot-grid, .foot-base { max-width: var(--max); margin: 0 auto; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 28px; border-top: 1px solid var(--line); }
  .foot-grid h4 { font-family: "Space Grotesk", sans-serif; font-size: .95rem; margin: 0 0 10px; color: var(--text); }
  .foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .foot-grid a { text-decoration: none; color: var(--muted); }
  .foot-grid a:hover { color: var(--text); text-decoration: underline; }
  .foot-grid p { margin: 0 0 6px; }
  .foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 20px; }

  @media (max-width: 860px) {
    .types { grid-template-columns: 1fr 1fr; }
    .split, .price-row, .facts { grid-template-columns: 1fr; }
    .page-hero { padding: 48px 0 40px; }
    .cta-band { padding: 28px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) { .types, .foot-grid { grid-template-columns: 1fr; } }
