/* ==========================================================================
   Jamie's Websites — demo redesign
   Single stylesheet, no build step. Mobile-first, progressively enhanced.
   ========================================================================== */

/* ── Fonts (self-hosted, variable weight 400–800) ─────────────────────── */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --navy:      #002858;   /* brand navy from the logo */
  --navy-deep: #061a36;
  --navy-ink:  #0d2445;
  --orange:    #f26a00;   /* brand orange from the logo, deepened for contrast on cream */
  --orange-hi: #ff8a2b;   /* orange on dark backgrounds */
  --orange-dk: #d45c00;
  --cream:     #faf7f1;
  --cream-2:   #f2ede4;
  --white:     #ffffff;
  --ink:       #101a2b;
  --muted:     #566274;
  --line:      #e4ddd1;
  --green:     #0f9d76;
  --green-bg:  #e6f7f1;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 43, .06), 0 2px 8px rgba(16, 26, 43, .05);
  --shadow-md: 0 10px 30px -10px rgba(16, 26, 43, .18), 0 2px 6px rgba(16, 26, 43, .06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 26, 54, .35), 0 10px 20px -10px rgba(6, 26, 54, .15);

  --max: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  color-scheme: light;
}

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--navy-ink);
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(242, 106, 0, .22); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  z-index: 1000; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.lead strong, .h2 em { color: var(--orange); font-style: normal; }
.head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head--center { text-align: center; justify-items: center; }
.head--center .lead { margin-inline: auto; }
.head--row { align-items: end; }
@media (min-width: 820px) {
  .head--row { grid-template-columns: 1fr auto; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(242, 106, 0, .7), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn--primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(242, 106, 0, .75); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-ink); background: #fff; }
.btn--light { background: #fff; color: var(--navy-ink); }
.btn--light:hover { background: var(--cream-2); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-deep); color: rgba(255, 255, 255, .88);
  font-size: .86rem; text-align: center; padding: .5rem var(--gutter);
}
.topbar strong { color: var(--orange-hi); font-weight: 600; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.topbar a:hover { text-decoration-color: #fff; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(6, 26, 54, .4); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--navy-ink); }
.brand img { width: 44px; height: auto; }
.nav__links { display: none; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .95rem; color: var(--navy-ink); }
.nav__links a:not(.btn) { position: relative; padding: .3rem 0; opacity: .85; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .2s; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-ink); border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 99; background: var(--cream);
  padding: 6rem var(--gutter) 2rem; display: none; flex-direction: column; gap: .25rem;
}
.sheet.is-open { display: flex; }
.sheet a:not(.btn) {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em;
  padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--navy-ink);
}
.sheet .btn { margin-top: 1.5rem; }
.sheet__note { margin-top: auto; color: var(--muted); font-size: .95rem; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__toggle, .sheet { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(242, 106, 0, .22), transparent 65%); }
.hero::after { width: 480px; height: 480px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(0, 40, 88, .14), transparent 65%); }
.hero__in { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.hero__copy { display: grid; gap: 1.4rem; max-width: 40rem; }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); font-weight: 800; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--orange); }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -.15em; width: 100%; height: .35em; color: var(--orange); opacity: .55; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__ctas .hint { flex-basis: 100%; font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.hero__ctas .hint svg { width: 1rem; height: 1rem; color: var(--green); }
.ticks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; font-weight: 600; color: var(--navy-ink); }
.ticks li { display: inline-flex; align-items: center; gap: .45rem; }
.ticks svg { width: 1.15rem; height: 1.15rem; color: var(--green); flex: none; }

/* device stage */
.stage { position: relative; margin-inline: auto; width: min(100%, 620px); padding-bottom: 3.5rem; }
.browser {
  background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(6, 26, 54, .08);
}
.browser__bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: #f4f1ea; border-bottom: 1px solid #e8e2d6; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c5; }
.browser__bar i:nth-child(1) { background: #f27a6a; } .browser__bar i:nth-child(2) { background: #f5c451; } .browser__bar i:nth-child(3) { background: #64d08c; }
.browser__url {
  margin-left: .5rem; flex: 1; min-width: 0; background: #fff; border-radius: 6px; padding: .22rem .6rem;
  font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser__url svg { width: .8rem; height: .8rem; color: var(--green); flex: none; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; left: -4%; bottom: 0; width: 32%; max-width: 200px;
  background: #0c1220; border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.35);
}
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 9px; background: #0c1220; border-radius: 999px; z-index: 2; }
.phone img { width: 100%; aspect-ratio: 480 / 1039; object-fit: cover; object-position: top; border-radius: 22px; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px; padding: .5rem .85rem .5rem .6rem;
  box-shadow: var(--shadow-md); font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--navy-ink);
  border: 1px solid rgba(6, 26, 54, .06);
}
.chip i { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.chip i svg { width: 1rem; height: 1rem; }
.chip--a { right: -2%; top: -1.2rem; }
.chip--b { right: 6%; bottom: 1.5rem; }
.chip--b i { background: #fff0e3; color: var(--orange); }
@media (min-width: 980px) {
  .hero__in { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .stage { margin-right: 0; }
}
@media (max-width: 560px) {
  .stage { padding-bottom: 2.5rem; }
  .phone { width: 36%; left: -3%; }
  .chip { font-size: .8rem; }
  .chip--a { top: -.9rem; right: 0; }
}

/* ── Proof strip ──────────────────────────────────────────────────────── */
.proof { background: var(--navy-deep); color: #fff; padding: 1.4rem 0; }
.proof ul { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.proof li { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.proof b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--orange-hi); }
.proof span { color: rgba(255, 255, 255, .78); font-size: .88rem; line-height: 1.3; }
@media (min-width: 820px) {
  .proof ul { grid-template-columns: repeat(4, 1fr); }
  .proof li { justify-content: center; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--navy-deep); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .78); }
.section--dark .eyebrow { color: var(--orange-hi); }

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem 1.6rem 1.8rem; display: grid; gap: .8rem; box-shadow: var(--shadow-sm);
}
.step__n {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); }
.step__tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: .3rem .7rem; width: max-content; }
.step__tag svg { width: .95rem; height: .95rem; }
.step--go { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; }
.step--go h3 { color: #fff; }
.step--go p { color: rgba(255, 255, 255, .78); }
.step--go .step__n { background: var(--orange); }
.step--go .step__tag { background: rgba(255, 138, 43, .15); color: var(--orange-hi); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .step:not(:last-child)::after {
    content: ''; position: absolute; right: -1.5rem; top: 2.9rem; width: 1.5rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
  }
}

/* ── Recent work ──────────────────────────────────────────────────────── */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; gap: .25rem; }
.seg button {
  border: 0; background: transparent; border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  font-weight: 700; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; transition: background .2s, color .2s;
}
.seg button svg { width: 1rem; height: 1rem; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.work { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.site {
  display: grid; gap: 0; background: #fff; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.site:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.site__shot { position: relative; background: #eee; }
.site__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.site__shot img.site__mobile { display: none; }
.site__go { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 26, 54, .0); transition: background .25s; }
.site__go span {
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
  background: #fff; color: var(--navy-ink); font-weight: 700; font-size: .9rem; padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--shadow-md);
}
.site:hover .site__go { background: rgba(6, 26, 54, .28); }
.site:hover .site__go span { opacity: 1; transform: none; }
.site__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .2rem; }
.site h3 { font-size: 1.12rem; }
.site__meta { color: var(--muted); font-size: .9rem; }
.site__url { margin-top: .45rem; font-size: .82rem; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: .3rem; }
.site__url svg { width: .85rem; height: .85rem; }
/* phone view */
.work.is-mobile { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1.2rem; }
.work.is-mobile .site__shot { background: #0c1220; padding: 6px; border-radius: 22px 22px 0 0; }
.work.is-mobile .site__shot img { display: none; }
.work.is-mobile .site__shot img.site__mobile { display: block; aspect-ratio: 480 / 1039; object-fit: cover; object-position: top; border-radius: 16px 16px 6px 6px; }
.work.is-mobile .site__go { inset: 6px 6px 0; }
.work.is-mobile .site__body { padding: .8rem .85rem .95rem; }
.work.is-mobile .site h3 { font-size: .98rem; }
.work.is-mobile .site__meta { font-size: .82rem; }
.work.is-mobile .site__url { display: none; }
.work__foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.work__foot p { color: var(--muted); max-width: 52ch; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing { display: grid; gap: 1.5rem; }
.price-card {
  background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid; gap: 1.2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.price-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); }
.cur { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: .25rem; gap: .25rem; width: max-content; }
.cur button { border: 0; background: transparent; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--muted); }
.cur button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: clamp(3.4rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy-ink); }
.price span { font-weight: 600; color: var(--muted); }
.price small { flex-basis: 100%; color: var(--muted); font-size: .92rem; }
.price-card h3 { font-size: 1.5rem; }
.price-card .btn { margin-top: .3rem; }
.price-card .fine { font-size: .9rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.price-card .fine svg { width: 1rem; height: 1rem; flex: none; color: var(--green); margin-top: .2rem; }
.includes { display: grid; gap: .8rem; }
.includes h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.includes li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.includes li b { color: #fff; }
.includes li svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--orange-hi); margin-top: .1rem; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .includes ul { display: grid; gap: .8rem; }
}
.compare { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: .8rem; }
.compare > p { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .1); vertical-align: top; }
.compare th { font-family: var(--display); font-weight: 700; color: #fff; }
.compare td { color: rgba(255, 255, 255, .78); }
.compare thead th { color: rgba(255, 255, 255, .6); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.compare .you { background: rgba(242, 106, 0, .12); color: #fff; }
.compare thead .you { color: var(--orange-hi); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody .you { font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .1); }

/* ── About ────────────────────────────────────────────────────────────── */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__photo { position: relative; width: min(100%, 360px); margin-inline: auto; }
.about__photo::before { content: ''; position: absolute; inset: 8% 4% 0; border-radius: 50% 50% var(--r-lg) var(--r-lg); background: linear-gradient(160deg, #ffd9b8, #ffb26e); }
.about__photo img { position: relative; width: 100%; height: auto; }
.about__copy { display: grid; gap: 1.1rem; }
.about__copy p { color: var(--muted); font-size: 1.05rem; }
.about__facts { display: grid; gap: .7rem; margin-top: .4rem; }
.about__facts li { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--navy-ink); }
.about__facts svg { width: 1.2rem; height: 1.2rem; color: var(--orange); flex: none; }
.places { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.places li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; color: var(--navy-ink); }
@media (min-width: 880px) {
  .about { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--navy-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cream-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2445' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 55%; background-position: center; background-repeat: no-repeat; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 1rem 1.3rem 1.3rem; color: var(--muted); }
.faq .a p + p { margin-top: .6rem; }
.faq .a a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact { display: grid; gap: 2rem; }
.form-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md); border: 1px solid var(--line); display: grid; gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy-ink); }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .8rem .95rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242, 106, 0, .14); }
.field textarea { resize: vertical; min-height: 7rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.form-note svg { width: 1rem; height: 1rem; flex: none; color: var(--green); margin-top: .2rem; }
.notice { border-radius: var(--r-sm); padding: .9rem 1rem; font-weight: 600; display: none; }
.notice.is-show { display: block; }
.notice--ok { background: var(--green-bg); color: #0b6b50; }
.notice--err { background: #fdecec; color: #9b1c1c; }
.contact__side { display: grid; gap: 1.5rem; align-content: start; }
.next { display: grid; gap: 1rem; }
.next li { display: flex; gap: .9rem; align-items: flex-start; }
.next li i { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-family: var(--display); font-weight: 800; font-size: .9rem; }
.next li b { display: block; color: var(--navy-ink); }
.next li span { color: var(--muted); font-size: .95rem; }
.contact__direct { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; display: grid; gap: .5rem; }
.contact__direct a { color: var(--orange); font-weight: 700; }
.contact__direct small { color: var(--muted); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer .brand { color: #fff; }
.footer .brand img { background: #fff; border-radius: 8px; padding: 3px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer ul { display: grid; gap: .5rem; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .86rem; color: rgba(255, 255, 255, .55); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ── Sticky mobile CTA ────────────────────────────────────────────────── */
.sticky {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .5rem .5rem 1.1rem;
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky.is-show { transform: none; }
.sticky b { font-family: var(--display); font-weight: 800; color: var(--navy-ink); font-size: .95rem; display: block; line-height: 1.1; }
.sticky small { color: var(--muted); font-size: .78rem; }
.sticky .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .92rem; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .site { transition: none; }
}
.no-js .rv { opacity: 1; transform: none; }

/* ==========================================================================
   Secondary pages — Portfolio & demo directory
   ========================================================================== */
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { right: 0; }

/* ── Page hero (dark) ─────────────────────────────────────────────────── */
.phero { position: relative; background: var(--navy-deep); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.phero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 106, 0, .28), transparent 65%); filter: blur(60px); pointer-events: none; }
.phero__in { position: relative; display: grid; gap: 1.2rem; max-width: 52rem; }
.phero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.phero h1 em { color: var(--orange-hi); font-style: normal; }
.phero .eyebrow { color: var(--orange-hi); }
.phero .lead { color: rgba(255, 255, 255, .8); max-width: 62ch; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.phero__stats { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin-top: .6rem; }
.phero__stats li { display: grid; gap: .1rem; }
.phero__stats b { font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--orange-hi); }
.phero__stats span { color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* ── Projects ─────────────────────────────────────────────────────────── */
.seg--wrap { flex-wrap: wrap; }
.projects { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.proj {
  --cat: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.6rem;
  display: grid; gap: .9rem; align-content: start; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.proj::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--cat); }
.proj:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proj.is-hidden { display: none; }
.proj__top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; font-size: .8rem; }
.proj__cat { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--cat) 12%, #fff); color: var(--cat); border-radius: 999px; padding: .28rem .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.proj__live { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-weight: 700; }
.proj__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.proj__date { color: var(--muted); font-weight: 600; margin-left: auto; }
.proj__title { font-size: 1.35rem; }
.proj__title a { display: inline-flex; align-items: center; gap: .35rem; }
.proj__title a:hover { color: var(--orange); }
.proj__title svg { width: .9em; height: .9em; color: var(--orange); }
.proj__body { color: var(--muted); font-size: .98rem; }
.proj__stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.proj__stats li { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; color: var(--navy-ink); background: var(--cream-2); border-radius: 10px; padding: .45rem .75rem; font-size: .95rem; }
.proj__skills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.proj__skills li { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; }
.projects__empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.cat--web        { --cat: #1c4fa8; }
.cat--ai         { --cat: #0b8f7a; }
.cat--automation { --cat: #d45c00; }
.cat--ecommerce  { --cat: #3f8f2f; }
.cat--games      { --cat: #7a3fc4; }
.cat--blockchain { --cat: #b8860b; }

/* ── Skills ───────────────────────────────────────────────────────────── */
.skills { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.skill { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem 1.4rem; display: grid; gap: .4rem; }
.skill h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .55rem; }
.skill h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); flex: none; }
.skill p { color: var(--muted); font-size: .95rem; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.band { display: grid; gap: 2rem; align-items: center; }
.band__copy { display: grid; gap: 1rem; }
.band__acts { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 900px) {
  .band { grid-template-columns: 1.4fr 1fr; }
  .band__acts { justify-content: flex-end; }
}

/* ── Demo directory ───────────────────────────────────────────────────── */
.finder { display: grid; gap: .6rem; max-width: 40rem; }
.finder input {
  width: 100%; border: 2px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .95rem 1.3rem .95rem 3rem;
  font: inherit; font-size: 1.05rem; color: var(--ink); background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566274' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 1.1rem center; background-size: 1.2rem;
}
.finder input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 0, .25); }
.finder small { color: rgba(255, 255, 255, .7); }
.demos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.demo {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem .95rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.demo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.demo.is-hidden { display: none; }
.demo__badge { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--cream-2); color: var(--navy-ink); font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.demo--live .demo__badge { background: var(--green-bg); color: var(--green); font-size: .7rem; }
.demo__body { min-width: 0; display: grid; gap: .1rem; }
.demo__body b { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--navy-ink); letter-spacing: -.01em; line-height: 1.2; }
.demo__body span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.demo__go { color: var(--orange); font-weight: 800; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.demo:hover .demo__go { transform: translateX(3px); }
.demo--live .demo__go { color: var(--green); }
.demos__letter { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--navy-ink); padding-top: 1.2rem; border-bottom: 2px solid var(--line); margin-bottom: .2rem; }
.demos__letter.is-hidden { display: none; }
.demos__count { color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.demos__none { display: none; text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.demos__none.is-show { display: block; }
.demos__none a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
