/* ============================================
   FONTS — self-hosted
   ============================================ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/satoshi-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/satoshi-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/satoshi-bold.woff2') format('woff2');
}

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --bg:          #0B0F1A;
  --surface:     #0E1420;
  --border:      #1A2035;
  --text:        #E5E7EB;
  --muted:       #9CA3AF;
  --dim:         #4B5563;
  --blue:        #2563EB;
  --purple:      #7C3AED;
  --cyan:        #06B6D4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --header-h:    72px;
  --radius:      8px;
  --transition:  0.2s ease;
  --max-w:       1100px;
  --section-pad: 100px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1rem;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Italic emphasis within serif headlines */
h1 em, h2 em {
  font-style: italic;
  color: #C9CDD5;
  font-weight: 700;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; position: relative; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-g    { color: var(--cyan); }
.logo-main { color: var(--text); }
.logo-sub  {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-left: 7px;
  align-self: center;
  font-weight: 500;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-links a {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--cyan); }

.mobile-nav .btn-mobile {
  font-family: var(--font-body);
  margin-top: 16px;
  display: inline-flex;
  padding: 16px 44px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s;
}

.mobile-nav .btn-mobile:hover {
  background: #3b82f6;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* ============================================
   EYEBROW — refined text + underline (replaces pill badge)
   ============================================ */
.eyebrow { margin-bottom: 28px; }

.eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(37,99,235,0.5);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================
   HERO — index.html
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

/* Dot grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,32,53,0.65) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Subtle radial glow */
.hero-glow {
  position: absolute;
  top: 5%;
  left: 30%;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(37,99,235,0.06) 0%,
    rgba(124,58,237,0.03) 50%,
    transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* Decorative large G letterform (from Direction C) */
.deco-g {
  position: absolute;
  right: -60px;
  top: -40px;
  font-family: var(--font-display);
  font-size: clamp(16rem, 28vw, 26rem);
  color: rgba(37,99,235,0.032);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}

/* Two-column hero grid */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats block */
.stats-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  border-top: 2px solid var(--cyan);
  align-self: center;
}

.stat {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stat:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}

.stat-num.accent { color: var(--cyan); }

.stat-label {
  font-size: 0.65rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ============================================
   CREDIBILITY BAR
   ============================================ */
.credibility-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.credibility-bar::before,
.credibility-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.credibility-bar::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.credibility-bar::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.credibility-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.marquee-wrapper { overflow: hidden; }

.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.marquee-item span { transition: color 0.2s; }
.marquee-item span:hover { color: var(--text); }

.marquee-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-eyebrow { margin-bottom: 12px; }

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.8;
}

.section-header { margin-bottom: 56px; }

/* ============================================
   SERVICE LIST — homepage (replaces cards grid)
   ============================================ */
.svc-list { border-top: 1px solid var(--border); }

.svc-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 32px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, padding-left 0.2s ease;
  cursor: default;
}

.svc-item:hover { background: rgba(37,99,235,0.025); padding-left: 16px; }
.svc-item:hover .svc-num   { color: var(--cyan); }
.svc-item:hover .svc-arrow { opacity: 1; color: var(--cyan); }

.svc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.02em;
  transition: color 0.2s;
  line-height: 1;
}

.svc-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.svc-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.svc-arrow {
  font-size: 0.8rem;
  color: var(--dim);
  font-weight: 500;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { text-align: center; }

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 80px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   WHO I WORK WITH — index.html
   ============================================ */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================
   PAGE HERO — inner pages (about, services, contact)
   ============================================ */
.page-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,32,53,0.6) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 250px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES DETAIL PAGE
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail.reverse .service-content { order: 2; }
.service-detail.reverse .service-visual  { order: 1; }

.service-number {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.service-content h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 36px; }

.service-detail-item { margin-bottom: 28px; }

.service-detail-item h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.service-detail-item p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.8;
}

.service-visual {
  position: relative;
  height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,32,53,0.9) 1px, transparent 1px);
  background-size: 20px 20px;
}

.service-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.service-visual svg { width: 72px; height: 72px; opacity: 0.2; }

.service-visual-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.4;
}

.service-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bio-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 24px;
}
.bio-text p:last-child { margin-bottom: 0; }

/* Credentials grid — replaces photo placeholder */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

.bio-image-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.bio-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,32,53,0.8) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bio-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
}

.bio-placeholder-icon { position: relative; z-index: 1; opacity: 0.18; }
.bio-placeholder-icon svg { width: 80px; height: 80px; }

.bio-placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.4;
}

/* Focus areas */
.focus-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0;
  transition: opacity 0.25s;
}

.focus-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.3); }
.focus-card:hover::before { opacity: 1; }

.focus-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.focus-icon svg { width: 20px; height: 20px; }

.focus-card h3 { font-size: 1rem; margin-bottom: 10px; }

.focus-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

.card-icon-blue   { background: rgba(37,99,235,0.12);  color: var(--blue); }
.card-icon-purple { background: rgba(124,58,237,0.12); color: var(--purple); }
.card-icon-cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-details h2 { font-size: 1.4rem; margin-bottom: 36px; }

.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }

.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(37,99,235,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-item-icon svg { width: 18px; height: 18px; }

.contact-item-body { padding-top: 6px; }

.contact-item-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item-value { font-size: 0.9rem; color: var(--text); }
.contact-item-value a { color: var(--text); transition: color 0.2s; }
.contact-item-value a:hover { color: var(--cyan); }

.contact-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.contact-note p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.form-wrapper-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}
.form-wrapper-header h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.form-wrapper-header p  { font-size: 0.8rem; color: var(--muted); }

.form-wrapper iframe { display: block; border: none; width: 100%; background: var(--surface); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left { font-size: 0.825rem; color: var(--muted); }

.footer-right { display: flex; align-items: center; gap: 24px; }

.footer-right a { font-size: 0.825rem; color: var(--muted); transition: color 0.2s; }
.footer-right a:hover { color: var(--text); }

.footer-divider { width: 1px; height: 14px; background: var(--border); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   404
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  position: relative;
}

.error-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,32,53,0.6) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.error-content { position: relative; z-index: 1; }

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h2 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p  { color: var(--muted); margin-bottom: 40px; font-size: 1rem; }

/* ============================================
   BLOG INDEX
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Fully clickable card wrapper */
.post-card-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card-wrapper:hover .post-card { transform: translateY(-4px); border-color: rgba(37,99,235,0.3); }
.post-card-wrapper:hover .post-card::before { opacity: 1; }
.post-card-wrapper:hover .post-card-link { color: var(--cyan); }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s;
}

.post-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.3); }
.post-card:hover::before { opacity: 1; }

.post-card-date {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.post-card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  align-self: flex-start;
}

.post-card-link:hover { color: var(--cyan); }

/* ============================================
   BLOG POST
   ============================================ */
.post-article {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
}

.post-content {
  max-width: 680px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  margin-bottom: 48px;
}

.post-back:hover { color: var(--text); }

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.post-date {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.post-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
}

.post-prose p { margin-bottom: 1.5em; }
.post-prose p:last-child { margin-bottom: 0; }

.post-prose h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.post-prose h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.post-prose strong { color: var(--text); font-weight: 600; }

.post-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-prose a:hover { color: var(--cyan); }

.post-prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  color: var(--text);
  font-style: italic;
}

.post-prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.875em;
  color: var(--cyan);
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

.post-prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 2em 0;
}

.post-prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.post-prose ul,
.post-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.post-prose li { margin-bottom: 0.4em; }

/* ============================================
   CHECKLIST
   ============================================ */
.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.15s;
}

.checklist li:hover { background: rgba(37,99,235,0.06); }

.checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--dim);
  border-radius: 4px;
  margin-top: 3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.checklist input[type="checkbox"]:hover {
  border-color: var(--blue);
}

.checklist input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.checklist input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checklist label {
  cursor: pointer;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--muted);
  transition: color 0.15s;
}

.checklist input[type="checkbox"]:checked + label {
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--border);
}

/* Fully clickable card wrapper */
.post-card-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card-wrapper:hover .post-card { transform: translateY(-4px); border-color: rgba(37,99,235,0.3); }
.post-card-wrapper:hover .post-card::before { opacity: 1; }
.post-card-wrapper:hover .post-card-link { color: var(--cyan); }

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .hero-grid { grid-template-columns: 1fr 180px; gap: 40px; }

  .service-detail { gap: 48px; }
  .bio-grid { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; }

  .svc-item { grid-template-columns: 50px 1fr auto; gap: 24px; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  :root { --section-pad: 60px; --header-h: 64px; }

  .hamburger { display: flex; }
  .site-nav   { display: none; }

  /* Hero: stack columns */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: none; border-left: 2px solid var(--cyan); }
  .stat { border-bottom: none; border-right: 1px solid var(--border); padding: 16px; margin: 0; }
  .stat:last-child { border-right: none; }

  .deco-g { font-size: 14rem; right: -40px; top: 0; }

  /* Service list: hide arrow on mobile */
  .svc-item { grid-template-columns: 44px 1fr; }
  .svc-arrow { display: none; }

  .service-detail { display: flex; flex-direction: column; gap: 40px; }
  .service-detail.reverse .service-content,
  .service-detail.reverse .service-visual { order: unset; }
  .service-visual { height: 200px; }

  .bio-grid { grid-template-columns: 1fr; }
  .bio-image-placeholder { aspect-ratio: 16 / 9; max-height: 240px; }

  .focus-areas { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { padding: 48px 24px; }

  .who-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-grid { grid-template-columns: 1fr; }
  .post-article { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .stats-block { grid-template-columns: 1fr; border-left: none; border-top: 2px solid var(--cyan); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .footer-right { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-divider { display: none; }
}
