/* ══════════════════════════════════════════
   Glassdart — styles.css
   ══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Fonts: self-hosted (no third-party request, no DNS/redirect chain) ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-latin-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --accent:   #1E3FBF;
  --accent-2: #EDF0FB;
  --r:    8px;
  --r-lg: 14px;
  --max-w: 1200px;
  --nav-h: 64px;
}

[data-theme="light"] {
  --bg:        #F3F4F8;
  --bg-2:      #E8E9F2;
  --card:      #FFFFFF;
  --card-2:    #F0F1F7;
  --text:      #0C0D18;
  --text-2:    #3A3D58;
  /* Was #686B88 (~3.8:1 on --bg, below WCAG AA 4.5:1 for normal text). Darkened to pass. */
  --text-3:    #555770;
  --border:    #DFE1EE;
  --border-h:  #C6C9DE;
  --nav-bg:    rgba(243,244,248,.92);
  --sh:        0 1px 3px rgba(12,13,40,.07), 0 0 0 1px rgba(12,13,40,.05);
  --sh-lg:     0 6px 24px rgba(12,13,40,.10);
  --focus:     0 0 0 3px rgba(30,63,191,.20);
  --accent-fg: #FFFFFF;
  --ok:        #1E7A50;
}

[data-theme="dark"] {
  --bg:        #0A0B12;
  --bg-2:      #10111E;
  --card:      #13141F;
  --card-2:    #191A2A;
  --text:      #E0E3F0;
  --text-2:    #767AA6;
  --text-3:    #444768;
  --border:    #1D1F32;
  --border-h:  #282B44;
  --nav-bg:    rgba(10,11,18,.93);
  --sh:        0 1px 4px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
  --sh-lg:     0 6px 28px rgba(0,0,0,.55);
  --focus:     0 0 0 3px rgba(77,112,255,.32);
  --accent-fg: #FFFFFF;
  --ok:        #3FB87A;
  --accent:    #4D70FF;
  --accent-2:  rgba(77,112,255,.10);
}

/* ── Base ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .22s, color .22s;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r); }

@media (min-width: 640px)  { .wrap { padding: 0 2rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2.5rem; } }

/* ── Skip link ── */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg);
  padding: .5rem 1.1rem; border-radius: 0 0 var(--r) var(--r);
  z-index: 200; font-size: .84rem; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 0; }


/* ══ FOUNDING BANNER ══ */
.founding-banner {
  background: var(--accent);
  color: var(--accent-fg);
  padding: .55rem 0;
  position: relative;
  z-index: 61;
}
.founding-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.founding-banner-text {
  font-size: .78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  line-height: 1.5;
  opacity: .95;
}
.founding-banner-text svg { flex-shrink: 0; opacity: .8; }
.founding-banner-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: .9;
  white-space: nowrap;
  transition: opacity .12s;
}
.founding-banner-link:hover { opacity: 1; }
.founding-banner-close {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none; cursor: pointer;
  color: var(--accent-fg);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .12s;
}
.founding-banner-close:hover { background: rgba(255,255,255,.25); }


/* ══ NAV ══ */
#nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  transition: background .22s, border-color .22s;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 640px)  { .nav-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 2.5rem; } }

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: var(--text);
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: .5rem;
}
.nav-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #6080FF, #1E3FBF, #3A9EBF);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(30,63,191,.35);
}

.nav-right { display: flex; align-items: center; gap: .65rem; }

.nav-link {
  font-size: .82rem; font-weight: 500; color: var(--text-2);
  padding: .35rem .7rem; border-radius: var(--r);
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--bg-2); color: var(--text); }
.nav-link--hide { display: none; }
@media (min-width: 600px) { .nav-link--hide { display: inline; } }

.nav-cta {
  font-size: .82rem; font-weight: 700;
  background: var(--accent); color: var(--accent-fg);
  padding: .38rem .9rem; border-radius: var(--r);
  transition: opacity .12s;
}
.nav-cta:hover { opacity: .88; }

.theme-btn-nav {
  width: 32px; height: 32px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  display: grid; place-items: center;
  transition: border-color .13s, color .13s, background .13s;
  flex-shrink: 0;
}
.theme-btn-nav:hover { border-color: var(--border-h); color: var(--text-2); background: var(--bg-2); }

.burger-btn {
  width: 34px; height: 34px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: transparent; cursor: pointer; color: var(--text-3);
  display: grid; place-items: center;
  transition: border-color .13s, color .13s;
  flex-shrink: 0;
}
.burger-btn:hover { border-color: var(--border-h); color: var(--text-2); }
@media (min-width: 600px) { .burger-btn { display: none; } }

/* Mobile nav: CSS-driven slide-in instead of display toggle */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  z-index: 59;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  /* slide-in via max-height + opacity */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height .26s ease, opacity .22s ease, padding .22s ease;
}
.nav-mobile.open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
  padding: .75rem 1.25rem 1rem;
}
@media (min-width: 600px) { .nav-mobile { display: none; } }

.nav-mobile-link {
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  padding: .65rem .75rem; border-radius: var(--r);
  transition: background .12s, color .12s;
}
.nav-mobile-link:hover { background: var(--bg-2); color: var(--text); }
.nav-mobile-link--cta {
  margin-top: .35rem;
  font-weight: 700; color: var(--accent);
}


/* ══ HERO ══ */
#hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 92% 5%,
      rgba(80, 120, 255, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 5%  92%,
      rgba(0,  185, 220, 0.040) 0%, transparent 60%);
}

#hero .wrap { position: relative; z-index: 1; }

.hero-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.08; color: var(--text);
  margin-bottom: 1.1rem;
  max-width: 16ch; letter-spacing: -.02em;
}
.hero-h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 48ch; line-height: 1.7;
  margin-bottom: 2rem; font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.hero-proof {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-proof-solo {
  font-size: .82rem; color: var(--text-2); font-weight: 300;
  max-width: 52ch; line-height: 1.6;
  display: flex; align-items: flex-start; gap: .4rem;
}
.hero-proof-solo svg { flex-shrink: 0; margin-top: .1rem; color: var(--accent); }

.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--r);
  font-weight: 700; font-size: .92rem;
  background: var(--accent); color: var(--accent-fg);
  border: 2px solid var(--accent);
  transition: opacity .13s, transform .1s; cursor: pointer;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--r);
  font-weight: 600; font-size: .92rem;
  background: transparent; color: var(--text-2);
  border: 2px solid var(--border);
  transition: border-color .13s, color .13s, transform .1s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--border-h); color: var(--text); transform: translateY(-1px); }


/* ── Hero Visual: Desktop browser mockup ── */
.hero-visual {
  position: relative;
  display: none;
}
@media (min-width: 900px) { .hero-visual { display: block; } }

.mockup-glow {
  position: absolute;
  width: 320px; height: 220px;
  background: radial-gradient(ellipse at center,
    rgba(30,63,191,.10) 0%,
    rgba(77,112,255,.06) 40%,
    transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  filter: blur(28px);
}

.mockup-browser {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.mockup-browser:hover {
  transform: perspective(900px) rotateY(-1deg) rotateX(0deg);
  box-shadow: 0 20px 50px rgba(0,0,0,.12), 0 0 0 1px var(--border);
}

.mockup-bar {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .75rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-url {
  flex: 1; margin: 0 .4rem;
  height: 18px; background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; padding: 0 .5rem;
  font-size: .52rem; color: var(--text-3); font-weight: 500;
}

.mockup-body { padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }

.mockup-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border); margin-bottom: .1rem;
}
.mockup-logo-pill { width: 60px; height: 9px; background: var(--accent); border-radius: 3px; opacity: .55; }
.mockup-nav-links { display: flex; align-items: center; gap: .35rem; }
.mockup-link { width: 28px; height: 7px; background: var(--border); border-radius: 2px; }
.mockup-cta-btn { width: 38px; height: 14px; background: var(--accent); border-radius: 3px; opacity: .7; }

.mockup-hero-block { display: flex; flex-direction: column; gap: .35rem; padding: .4rem 0; }
.mockup-h1-line { height: 12px; background: var(--text); border-radius: 3px; opacity: .15; }
.mockup-h1-line--1 { width: 85%; }
.mockup-h1-line--2 { width: 65%; }
.mockup-text-line { height: 7px; background: var(--border); border-radius: 2px; margin-top: .1rem; }
.mockup-text-line--1 { width: 92%; }
.mockup-text-line--2 { width: 88%; }
.mockup-text-line--3 { width: 70%; }
.mockup-btn-row { display: flex; gap: .4rem; margin-top: .35rem; }
.mockup-primary-btn { width: 60px; height: 16px; background: var(--accent); border-radius: 4px; opacity: .75; }
.mockup-ghost-btn { width: 50px; height: 16px; background: transparent; border: 1.5px solid var(--border); border-radius: 4px; }

.mockup-cards-row { display: flex; gap: .4rem; }
.mockup-card {
  flex: 1; height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-left: 2px solid var(--accent);
}


/* ── Hero Mobile Visual (pill strip, shown below 900px) ── */
.hero-mobile-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding-top: .25rem;
}
@media (min-width: 900px) { .hero-mobile-visual { display: none; } }

.hero-mobile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.hmp {
  display: inline-flex; align-items: center;
  font-size: .73rem; font-weight: 600;
  padding: .32rem .7rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  box-shadow: var(--sh);
  white-space: nowrap;
}
.hmp--1 { border-left: 2px solid var(--accent); }
.hmp--2 { border-left: 2px solid var(--accent); }
.hmp--3 { border-left: 2px solid var(--accent); }
.hmp--4 { border-left: 2px solid var(--accent); }

.hero-mobile-note {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .04em;
}


/* ══ SHARED SECTION STYLES ══ */
.sec-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.sec-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text); margin-bottom: .4rem;
  line-height: 1.15; letter-spacing: -.02em;
}
.sec-sub {
  font-size: .9rem; color: var(--text-2);
  max-width: 52ch; margin-bottom: 2.5rem; font-weight: 300;
}


/* ══ SCROLL REVEAL ══ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ══ SERVICES ══ */
#services { padding: 72px 0 88px; border-top: 1px solid var(--border); }

.founding-note {
  display: flex; align-items: flex-start; gap: .5rem;
  background: var(--accent-2);
  border: 1px solid rgba(30,63,191,.14);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .82rem; color: var(--text-2); line-height: 1.6;
}
[data-theme="dark"] .founding-note {
  background: rgba(77,112,255,.07);
  border-color: rgba(77,112,255,.18);
}
.founding-note svg { flex-shrink: 0; margin-top: .15rem; color: var(--accent); }
.founding-note strong { color: var(--text); }
.founding-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.services-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 1.25rem;
  box-shadow: var(--sh);
  transition: transform .15s, box-shadow .15s;
  opacity: 0; transform: translateY(16px);
  position: relative;
}
.svc-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, box-shadow .15s;
}
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

.svc-card--featured {
  border-color: rgba(30,63,191,.22);
  border-left: 3px solid var(--accent);
  box-shadow: var(--sh), 0 0 0 1px rgba(30,63,191,.10);
}
.svc-card--featured::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r);
  background: linear-gradient(145deg,
    rgba(80, 120, 255, 0.035) 0%,
    rgba(0,  185, 220, 0.025) 50%,
    transparent 100%);
  pointer-events: none;
}

.svc-badge {
  display: inline-block;
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-fg); background: var(--accent);
  padding: .18rem .5rem; border-radius: 4px;
  margin-bottom: .5rem; width: fit-content;
}

.svc-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem; }
.svc-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.svc-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.svc-price { font-size: 1.05rem; font-weight: 800; color: var(--accent); margin-bottom: .5rem; letter-spacing: -.02em; }
.svc-desc { font-size: .84rem; color: var(--text-2); line-height: 1.7; font-weight: 300; }


/* ══ PROCESS ══ */
#process {
  padding: 72px 0 88px; border-top: 1px solid var(--border); background: var(--bg-2);
  /* defer offscreen paint work — saves initial render cost */
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.process-steps { display: grid; gap: 1rem; }
@media (min-width: 640px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem;
  box-shadow: var(--sh);
}
.process-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem; line-height: 1;
  color: var(--accent); letter-spacing: -.04em;
  margin-bottom: .4rem; display: block; opacity: .30;
}
.process-name { font-weight: 700; font-size: .92rem; color: var(--text); margin-bottom: .3rem; }
.process-desc { font-size: .78rem; color: var(--text-2); line-height: 1.65; font-weight: 300; }


/* ══ ABOUT ══ */
#about {
  padding: 72px 0 88px; border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.about-grid {
  display: grid; gap: 3.5rem; grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1.5fr; align-items: center; }
}

.about-visual { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.about-avatar { position: relative; width: 140px; height: 140px; }
.about-avatar-inner {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.about-avatar-svg { width: 78px; height: 78px; }
.about-avatar-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px dashed var(--border);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-content .sec-title { max-width: 22ch; margin-bottom: 1rem; }
.about-content p { font-size: .9rem; color: var(--text-2); line-height: 1.78; font-weight: 300; margin-bottom: .85rem; }
.about-cta { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) { .about-avatar-ring { animation: none; } }


/* ══ EXAMPLES ══ */
#examples {
  padding: 72px 0 88px; border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.work-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-h); }

.work-thumb { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; flex-shrink: 0; }

.example-grid .work-card:nth-child(1) .work-thumb { background: linear-gradient(135deg, #1A1A2E 0%, #6A0572 100%); }
.example-grid .work-card:nth-child(2) .work-thumb { background: linear-gradient(135deg, #2E1760 0%, #48287E 100%); }
.example-grid .work-card:nth-child(3) .work-thumb { background: linear-gradient(135deg, #1B2838 0%, #2A4858 100%); }

.work-thumb-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
}
.work-thumb-initials {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; letter-spacing: -.04em; line-height: 1;
  color: rgba(255,255,255,.65);
}
.work-thumb-url { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.work-thumb-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 28px; background: rgba(0,0,0,.25);
  display: flex; align-items: center; padding: 0 .6rem; gap: .3rem;
}
.work-thumb-dot { width: 8px; height: 8px; border-radius: 50%; }
.work-thumb-dot:nth-child(1) { background: #FF5F57; }
.work-thumb-dot:nth-child(2) { background: #FEBC2E; }
.work-thumb-dot:nth-child(3) { background: #28C840; }
.work-thumb-url-bar {
  flex: 1; margin: 0 .5rem;
  height: 14px; background: rgba(255,255,255,.12); border-radius: 3px;
  display: flex; align-items: center; padding: 0 .5rem;
  font-size: .5rem; color: rgba(255,255,255,.4); font-weight: 600;
}

.work-info { padding: .9rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.work-name { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: .25rem; }
.work-desc { font-size: .78rem; color: var(--text-2); line-height: 1.6; font-weight: 300; flex: 1; }

.example-badge {
  display: inline-block;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); background: var(--bg-2);
  border: 1px solid var(--border);
  padding: .12rem .45rem; border-radius: 4px;
  margin-bottom: .35rem; width: fit-content;
}


/* ══ FAQ ══ */
#faq {
  padding: 72px 0 88px; border-top: 1px solid var(--border); background: var(--bg-2);
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.faq-list { display: flex; flex-direction: column; gap: 6px; list-style: none; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh);
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--border-h);
}

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.1rem;
  background: none; border: none; text-align: left;
  font-size: .9rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: color .13s;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.faq-icon svg {
  width: 12px; height: 12px; stroke: var(--text-3);
  transition: transform .28s cubic-bezier(.4,0,.2,1), stroke .18s;
}
.faq-q[aria-expanded="true"] .faq-icon { background: var(--accent); }
.faq-q[aria-expanded="true"] .faq-icon svg { transform: rotate(180deg); stroke: var(--accent-fg); }

/* FAQ answer: animated via JS max-height; base styles here */
.faq-a {
  border-top: 1px solid var(--border);
  padding: 0 1.1rem;
}
.faq-a p { font-size: .86rem; color: var(--text-2); line-height: 1.75; font-weight: 300; }

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none !important; }
}


/* ══ CONTACT ══ */
#contact { padding: 72px 0 88px; border-top: 1px solid var(--border); }

.contact-grid {
  display: grid; gap: 3.5rem; grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.35fr; align-items: start; }
}

.contact-aside { padding-top: .25rem; }
.contact-aside .sec-title { margin-bottom: .75rem; }
.contact-aside p { font-size: .9rem; color: var(--text-2); line-height: 1.75; font-weight: 300; margin-bottom: 1.5rem; }
.contact-direct { font-size: .84rem; color: var(--text-3); line-height: 1.9; }
.contact-direct a { color: var(--text); font-weight: 600; transition: color .12s; }
.contact-direct a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: .85rem; }

.gotcha-field { display: none; }

.form-fields[hidden] { display: none; }
.form-fields { display: flex; flex-direction: column; gap: .85rem; }

.form-row { display: grid; gap: .85rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .65rem .9rem;
  font-size: .88rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  resize: vertical; appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,63,191,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group textarea { min-height: 130px; }
.form-group select { color: var(--text-2); cursor: pointer; }
.form-group select option { background: var(--card); color: var(--text); }

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.field-error { font-size: .72rem; color: #c0392b; font-weight: 500; margin-top: .1rem; }
.field-error[aria-hidden="true"] { display: none; }

.field-hint { font-size: .72rem; color: var(--text-3); font-weight: 500; margin-top: .1rem; }

.form-submit {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  padding: .7rem 1.5rem; border-radius: var(--r);
  font-weight: 700; font-size: .92rem;
  background: var(--accent); color: var(--accent-fg);
  border: 2px solid var(--accent);
  transition: opacity .13s, transform .1s; cursor: pointer;
}
.form-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }
.form-status { font-size: .82rem; line-height: 1.6; min-height: 1.2em; }

/* Confident, resolved success state — replaces the whole form on submit */
.form-success[hidden] { display: none; } /* must win over the rule below until JS removes [hidden] */
.form-success {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--sh);
}
.form-success-icon { color: var(--ok); }
.form-success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--text); letter-spacing: -.01em;
}
.form-success-text { font-size: .88rem; color: var(--text-2); line-height: 1.7; font-weight: 300; max-width: 44ch; }
.form-success-text a { color: var(--accent); font-weight: 600; }
.form-success-text a:hover { text-decoration: underline; }


/* ══ FOOTER ══ */
footer {
  background: var(--card);
  border-top: 3px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.ft-inner {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .ft-inner { grid-template-columns: 1.5fr 1fr 1fr; } }

.ft-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; color: var(--text);
  display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem;
}
.ft-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ft-tagline { font-size: .8rem; color: var(--text-3); font-weight: 300; margin-bottom: 1rem; }

.social-row { display: flex; gap: .4rem; }
.social-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--text-3); transition: border-color .12s, color .12s, background .12s;
}
.social-icon:hover { border-color: var(--border-h); color: var(--text); background: var(--bg-2); }

.ft-col-title { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .6rem; }
.ft-links { display: flex; flex-direction: column; gap: .4rem; }
.ft-links a { font-size: .82rem; color: var(--text-2); transition: color .12s; }
.ft-links a:hover { color: var(--text); }

.ft-email { font-size: .88rem; font-weight: 700; color: var(--text); display: block; margin-bottom: .5rem; transition: color .12s; }
.ft-email:hover { color: var(--accent); }
.ft-hours { font-size: .78rem; color: var(--text-3); line-height: 1.9; font-weight: 300; }
.ft-hours-note { margin-top: .3rem; display: block; opacity: .75; font-size: .72rem; }

.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ft-copy { font-size: .73rem; color: var(--text-3); }

.theme-btn-ft {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: var(--r);
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; color: var(--text-3);
  font-size: .72rem; font-weight: 600;
  transition: border-color .13s, color .13s, background .13s;
}
.theme-btn-ft:hover { border-color: var(--border-h); color: var(--text-2); background: var(--card-2); }

.theme-icon { display: block; flex-shrink: 0; }
.theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun  { display: none; }
[data-theme="dark"] .theme-icon--moon { display: block; }
.theme-label--dark { display: none; }
[data-theme="dark"] .theme-label--light { display: none; }
[data-theme="dark"] .theme-label--dark  { display: inline; }


/* ══ FLOATING MOBILE CTA ══ */
.floating-cta {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 1.5rem));
  z-index: 50;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.34,1.28,.64,1), opacity .25s ease;
  opacity: 0;
}
.floating-cta--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cta-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: 99px;
  font-weight: 700; font-size: .9rem;
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 4px 20px rgba(30,63,191,.35), 0 1px 4px rgba(0,0,0,.18);
  white-space: nowrap;
  transition: opacity .13s, transform .13s;
}
.floating-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
/* Global :focus-visible applies an 8px (--r) box-shadow radius; override to match
   this element's pill shape so the ring isn't visually clipped at the curve. */
.floating-cta-btn:focus-visible { border-radius: 99px; }

@media (min-width: 900px) { .floating-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .floating-cta { transition: opacity .2s ease; transform: translateX(-50%); }
  .floating-cta--visible { transform: translateX(-50%); }
}


/* ══ 404 PAGE ══ */
.nf-wrap {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.25rem;
}
.nf-code {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(4rem, 16vw, 7rem);
  color: var(--accent); opacity: .85; letter-spacing: -.02em; line-height: 1;
  margin-bottom: .5rem;
}
.nf-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text); margin-bottom: .75rem;
}
.nf-sub {
  font-size: .92rem; color: var(--text-2); max-width: 38ch; margin-bottom: 2rem; font-weight: 300; line-height: 1.7;
}
.nf-logo {
  font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--text-3);
  display: flex; align-items: center; gap: .4rem; margin-bottom: 2.5rem;
}
.nf-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }


/* ══ REDUCED MOTION: global override ══ */
@media (prefers-reduced-motion: reduce) {
  .svc-card          { opacity: 1; transform: none; }
  .mockup-browser    { transform: none; }
  .mockup-browser:hover { transform: none; }
  .about-avatar-ring { animation: none; }
}
.nav-logo, .ft-logo { display: inline-flex; align-items: center; gap: 8px; }
.nav-logo-mark, .ft-logo-mark { flex-shrink: 0; display: block; }
