/* ==========================================================================
   AWeblo — Custom Websites. Endless Possibilities. Built for You.
   Design system + page styles. No build step, no dependencies.
   ========================================================================== */

/* ---------- 1. Tokens ----------------------------------------------------
   One purple brand on a deep neutral base. Surfaces are near-black and the
   contrast between them is deliberately small — the borders do the dividing,
   not glows or gradients.
   ------------------------------------------------------------------------ */
:root {
  /* Surfaces
     The page sits on a moving starfield, so every panel is a tinted pane of
     glass rather than a solid black box: the galaxy shows through, and the
     blur behind it (--panel-blur) smears the stars out so body copy keeps
     its contrast. Change the alpha values below to make the whole site more
     or less see-through — the blur is what keeps text readable, so lower the
     alpha before you lower the blur. */
  --bg: #050507;
  --bg-elev: rgba(10, 10, 16, 0.46);
  --card: rgba(9, 8, 18, 0.42);
  --card-hover: rgba(22, 18, 40, 0.54);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);

  /* The frosting applied to every translucent panel. */
  --panel-blur: blur(14px) saturate(118%);

  /* Ink — the dim tone runs a touch brighter than it would on flat black,
     to hold its contrast over the backdrop. */
  --text: #eceef2;
  --text-dim: #a6a5b6;
  --text-faint: #6f6f83;

  /* Brand */
  --brand: #7c4dff;
  --brand-bright: #9d7bff;
  --brand-soft: rgba(124, 77, 255, 0.12);
  --brand-line: rgba(124, 77, 255, 0.34);

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", ui-serif, Georgia, serif;

  /* Space */
  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7vw, 5.75rem);
  --radius: 10px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.2s;
}

/* Without backdrop-filter there is nothing smearing the stars out behind the
   panels, so the panes go back to tinting most of the sky out instead. Text
   contrast is the point — better a darker box than an unreadable one. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --bg-elev: rgba(10, 10, 16, 0.86);
    --card: rgba(9, 8, 18, 0.82);
    --card-hover: rgba(22, 18, 40, 0.88);
  }
  .btn--ghost { background: rgba(14, 12, 26, 0.82); }
  .site-header.is-stuck { background: rgba(5, 5, 7, 0.95); }
  .mobile-nav { background: rgba(5, 5, 7, 0.98); }
  .to-top { background: rgba(10, 10, 14, 0.92); }
}

/* ---------- 2. Reset ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

::selection { background: rgba(124, 77, 255, 0.35); color: #fff; }

/* ---------- 2b. Galaxy backdrop -----------------------------------------
   Three stacked layers behind everything: the animated canvas, a static CSS
   sky that covers it when JavaScript never runs, and a veil that darkens the
   sky under the content so type keeps its contrast.

   The wrapper is positioned with a z-index, so it makes its own stacking
   context — its children order among themselves and the whole thing stays
   behind the page.
   ---------------------------------------------------------------------- */
.galaxy {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  /* Pinned to the *large* viewport: the height a phone has once the address
     bar has slid away. Sized in vh the layer would resize as the bar comes
     and goes, and the sky would reshuffle mid-scroll. */
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.galaxy__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.galaxy__canvas.is-ready { opacity: 1; }

/* No-JS sky: a still nebula with a scatter of stars. It fades out the moment
   the canvas takes over. */
.galaxy__fallback {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 34%, rgba(214, 196, 255, 0.5) 0%, rgba(157, 123, 255, 0.22) 12%, transparent 46%),
    radial-gradient(ellipse 62% 30% at 50% 34%, rgba(124, 77, 255, 0.3), transparent 70%),
    radial-gradient(ellipse 40% 22% at 26% 44%, rgba(178, 96, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 44% 20% at 74% 26%, rgba(96, 52, 214, 0.2), transparent 72%),
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.4px 1.4px at 78% 12%, rgba(226, 214, 255, 0.8), transparent),
    radial-gradient(1.8px 1.8px at 62% 62%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 30% 74%, rgba(196, 170, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 88% 68%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 8% 56%, rgba(214, 196, 255, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 44% 8%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.1px 1.1px at 20% 38%, rgba(226, 214, 255, 0.6), transparent),
    radial-gradient(1.6px 1.6px at 92% 34%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 54% 88%, rgba(214, 196, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 70% 46%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.1px 1.1px at 36% 22%, rgba(196, 170, 255, 0.55), transparent),
    radial-gradient(1.3px 1.3px at 84% 82%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 16% 90%, rgba(226, 214, 255, 0.5), transparent);
  transition: opacity 1.2s var(--ease);
}
.galaxy__canvas.is-ready ~ .galaxy__fallback { opacity: 0; }

/* Readability veil: darkest right under the hero headline and along the
   bottom where the content gets dense, open through the middle band so the
   arms still show. */
.galaxy__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 38% at 50% 32%, rgba(5, 5, 7, 0.5), rgba(5, 5, 7, 0.16) 62%, transparent 80%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.6) 0%, rgba(5, 5, 7, 0.2) 28%, rgba(5, 5, 7, 0.34) 62%, rgba(5, 5, 7, 0.66) 100%),
    radial-gradient(farthest-corner at 50% 50%, transparent 42%, rgba(2, 2, 4, 0.72) 100%);
}

/* ---------- 3. Layout primitives ---------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 6.5vw, 5rem); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: translate 0.2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

/* ---------- 4. Type ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.section-head { max-width: 62ch; margin-bottom: clamp(1.9rem, 3.5vw, 2.75rem); }
.section-head--center { max-width: min(100%, 820px); margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.16;
  margin-top: 0.85rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-dim);
  font-size: clamp(0.96rem, 1.2vw, 1.03rem);
  margin-top: 0.85rem;
  max-width: 58ch;
}
.section-head--center .section-sub { margin-inline: auto; }

.accent { color: var(--brand-bright); }
.serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: #6b3ff0; border-color: #6b3ff0; }
.btn--primary:active { background: #5d33e0; border-color: #5d33e0; }

.btn--ghost {
  background: rgba(14, 12, 26, 0.34);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(26, 22, 44, 0.48); border-color: var(--line-strong); }

.btn--block { width: 100%; }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 0.96rem; }

/* ---------- 6. Header ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1rem;
  border-bottom: 1px solid transparent;
  transition: padding var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.site-header.is-stuck {
  padding-block: 0.65rem;
  background: rgba(5, 5, 7, 0.66);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
  background: #000;
  transition: border-color var(--dur) var(--ease);
}
.brand:hover .brand__mark { border-color: var(--line-strong); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* a flat underline marks the section you're in — no floating dot */
.nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 1px;
  background: var(--brand);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  /* align-content, not just align-items: auto rows would otherwise stretch to
     fill the button and space the bars too far apart for the X to close up */
  place-content: center;
  justify-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 0.15s linear;
}
.nav-toggle span + span { margin-top: 4.5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 6rem var(--gutter) 3rem;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
/* direct children only — the contact links in the foot get their own size */
.mobile-nav > a {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--text); }
.mobile-nav__foot {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 13vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 860px;
}

.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  line-height: 1.1;
  margin-top: 1.2rem;
  text-wrap: balance;
}
.hero__title .line { display: block; }

.hero__lede {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--text-dim);
  max-width: 54ch;
}

.hero__cta {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

/* ---------- 9. Cards / services ------------------------------------------ */
.card {
  position: relative;
  padding: clamp(1.35rem, 2vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.grid { display: grid; gap: clamp(0.9rem, 1.4vw, 1.15rem); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-bright);
  margin-bottom: 1rem;
}
.service__icon svg { width: 19px; height: 19px; }

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* ---------- 10. Portfolio ------------------------------------------------ */
.work-list { display: grid; gap: 0.7rem; max-width: 840px; margin-inline: auto; }

.work-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.work-item[open], .work-item:hover { border-color: var(--line-strong); background: var(--card-hover); }

.work-item__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
}
.work-item__summary::-webkit-details-marker { display: none; }

.work-item__index {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  flex: none;
}

.work-item__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work-item__chevron {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: rotate var(--dur) var(--ease);
}
.work-item__chevron::before, .work-item__chevron::after {
  content: "";
  position: absolute;
  inset: 50% 1px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text-dim);
  translate: 0 -50%;
}
.work-item__chevron::after { rotate: 90deg; transition: opacity 0.15s var(--ease); }
.work-item[open] .work-item__chevron::before { background: var(--brand-bright); }
.work-item[open] .work-item__chevron::after { opacity: 0; }

.work-item__body {
  padding: 0 1.3rem 1.25rem;
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}
.work-item__body p { color: var(--text-dim); font-size: 0.93rem; max-width: 62ch; }

.work-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.work-item__link:hover { background: rgba(124, 77, 255, 0.2); border-color: var(--brand); }
.work-item__link svg { width: 14px; height: 14px; }

/* Single dropdown housing every project card. Cards are numbered by a CSS
   counter, so pasting another <article> in renumbers the list on its own. */
.work-panel__body {
  padding: 0 1.3rem 1.3rem;
  display: grid;
  gap: 0.7rem;
  counter-reset: project;
}

.project-card {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.project-card:hover { border-color: var(--line-strong); background: var(--card-hover); }

.project-card::before {
  counter-increment: project;
  content: counter(project, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
}
.project-card .work-item__link { margin-top: 0.5rem; }

/* ---------- 11. Process -------------------------------------------------- */
.steps {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.step:hover { border-color: var(--line-strong); background: var(--card-hover); }

.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-bright);
}
.step h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }

/* ---------- 12. Pricing -------------------------------------------------- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  transition: border-color var(--dur) var(--ease);
}
.price-card:hover { border-color: var(--line-strong); }

.price-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
  margin-bottom: 1.2rem;
}
.price-card__icon svg { width: 19px; height: 19px; }

.price-card h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.price-card__note { color: var(--text-dim); font-size: 0.93rem; }

.price {
  margin: 1.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-faint);
}

.price-card__deposit {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--brand-bright);
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.feature-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--brand-bright); }

.price-card .btn { margin-top: auto; }

/* ---------- 13. Contact -------------------------------------------------- */
.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3.5vw, 2.9rem);
  background: var(--bg-elev);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.25rem);
}

.quick-actions { display: grid; gap: 0.7rem; margin-top: 1.9rem; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* only the link cards highlight on hover — the others hold still so the
   buttons inside them stay easy to hit */
a.quick-action:hover {
  border-color: var(--brand-line);
  background: rgba(255, 255, 255, 0.045);
}
.quick-action__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-bright);
}
.quick-action__icon svg { width: 18px; height: 18px; }
/* the text column must be allowed to shrink, or long values push past the card */
.quick-action > div { min-width: 0; }
.quick-action span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.quick-action strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.quick-action__arrow { flex: none; margin-left: auto; color: var(--text-faint); transition: color var(--dur) var(--ease); }
.quick-action:hover .quick-action__arrow { color: var(--brand-bright); }

a.quick-action { -webkit-tap-highlight-color: rgba(124, 77, 255, 0.2); }
a.quick-action:active { background: rgba(255, 255, 255, 0.06); }

.quick-action--split { flex-wrap: wrap; }
/* the label column fills the first row beside the icon rather than being
   pushed below it by a long address */
.quick-action--split > div:not(.quick-action__actions) { flex: 1 1 0; }
/* the buttons always take their own full-width row under the label, so a long
   address is never squeezed and both cards line up the same way */
.quick-action__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.7rem;
}
.quick-action__btn { flex: 1; justify-content: center; }
.quick-action__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(124, 77, 255, 0.25);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quick-action__btn:hover { background: rgba(124, 77, 255, 0.22); border-color: var(--brand); }
.quick-action__btn svg { width: 13px; height: 13px; flex: none; }

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.contact-note svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--brand-bright); }
.contact-note strong { color: var(--text); font-weight: 600; }

/* Form */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 15px;
  padding-right: 2.6rem;
}
.field select option { background: #0f0f14; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.45);
}
/* Autofill: the browser paints its own pale background and near-black text
   into any field it fills, which on a dark form lands as a white slab. There
   is no way to simply turn that background off — it arrives from the browser's
   own stylesheet and outranks ours — so it gets covered instead, with an inset
   shadow big enough to fill the field in the colour the field already renders
   at over the panel. -webkit-text-fill-color carries the typed text back to
   normal ink, since plain `color` is overridden too, and caret-color keeps the
   cursor visible.

   The border has to be opaque here. An inset shadow stops at the padding edge,
   so it never reaches under the border, and the usual translucent white line
   would sit directly over the browser's pale fill and read as a bright outline.
   #3c3b41 is what that line already composites to on a field that was typed
   into, so the two match. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field select:-webkit-autofill,
.field select:-webkit-autofill:hover,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: #3c3b41;
  -webkit-box-shadow: 0 0 0 40rem #121119 inset;
  box-shadow: 0 0 0 40rem #121119 inset;
}
/* Focused, the field lightens and takes the brand ring — the ring is a real
   box-shadow, so it has to be re-stated alongside the fill or one replaces the
   other, and the brand border likewise. */
.field input:-webkit-autofill:focus,
.field select:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  border-color: var(--brand);
  -webkit-box-shadow: 0 0 0 40rem #191821 inset, 0 0 0 2px rgba(124, 77, 255, 0.45);
  box-shadow: 0 0 0 40rem #191821 inset, 0 0 0 2px rgba(124, 77, 255, 0.45);
}

.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #f87171; }
.field__error { font-size: 0.78rem; color: #fca5a5; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.3rem; }
.form__note { font-size: 0.82rem; color: var(--text-faint); }

.form__status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 222, 128, 0.32);
  background: rgba(74, 222, 128, 0.07);
  font-size: 0.92rem;
}
.form__status.is-visible { display: flex; }
.form__status svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #4ade80; }

/* ---------- 14. Footer --------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.6) 55%);
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.site-footer p { color: var(--text-dim); font-size: 0.93rem; max-width: 40ch; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-dim); font-size: 0.94rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--brand-bright); }

.signoff {
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.signoff__tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.signoff small { color: var(--text-faint); font-size: 0.84rem; }

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 14, 0.58);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--brand); background: rgba(124, 77, 255, 0.16); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- 15. Scroll reveal -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- 17. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .grid--3, .contact__grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 80px; }
  .grid--4, .grid--2, .steps { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .quick-actions { margin-top: 1.5rem; }
  .quick-action { gap: 0.7rem; padding: 0.85rem 0.9rem; }
  .quick-action__icon { width: 34px; height: 34px; }
  .quick-action__icon svg { width: 16px; height: 16px; }
  .quick-action span { font-size: 0.66rem; letter-spacing: 0.1em; }
  .quick-action strong { font-size: 0.88rem; }
  .quick-action__arrow { display: none; }
  .quick-action__btn { padding: 0.6rem 0.9rem; font-size: 0.85rem; }
  .contact-note { font-size: 0.86rem; padding: 0.85rem 0.9rem; }
  .form__foot { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .form__note { text-align: center; }
  .btn--lg { padding: 0.95rem 1.2rem; font-size: 0.95rem; }
  .work-item__summary { padding: 1rem 1.05rem; gap: 0.8rem; }
  .work-item__title { font-size: 0.95rem; }
  .work-item__body { padding: 0 1.05rem 1.05rem; }
  .work-panel__body { padding: 0 0.8rem 0.9rem; }
  .project-card { padding: 1rem 1.05rem; }
  .signoff { justify-content: center; text-align: center; }
}

/* ---------- 18. Motion / print preferences ------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1; translate: none; }
}

@media (max-width: 720px) {
  /* On a phone the galaxy runs edge to edge behind everything, so the veil
     works the way it does on desktop — a pool of shade under the headline,
     heavier toward the bottom where the content gets dense — just gentler,
     since a phone shows far less of the page at once. */
  .galaxy__veil {
    background:
      radial-gradient(ellipse 78% 26% at 50% 22%, rgba(5, 5, 7, 0.52), rgba(5, 5, 7, 0.16) 64%, transparent 82%),
      linear-gradient(180deg, rgba(5, 5, 7, 0.44) 0%, rgba(5, 5, 7, 0.14) 26%, rgba(5, 5, 7, 0.3) 60%, rgba(5, 5, 7, 0.62) 100%),
      radial-gradient(farthest-corner at 50% 45%, transparent 50%, rgba(2, 2, 4, 0.66) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The galaxy still renders — the script paints one still frame and stops,
     so the backdrop is there without any drift, spin or twinkle. */
  .galaxy__canvas { opacity: 1; }
}

@media print {
  .galaxy { display: none; }
}
