/* ============================================================
   style.css — Veronica Lee · RE Data & AI Consulting
   ------------------------------------------------------------
   QUICK EDITS:
   · Colors/fonts → ":root" variables just below.
   · Light mode colors → [data-theme="light"] block.
   · Accent color → --accent (used for CTAs, hovers, underlines)
   · Palette: Dean & Brooks (Wix template 2527) — white / sage
     #aeb6ad / green-charcoal #222929. No red. JSON spec in README.
   ============================================================ */

:root {
  /* ---- Dark theme (default) — Dean & Brooks (Wix 2527) palette ---- */
  --bg: #1e2423;
  --bg-alt: #222929;          /* template's dark green-charcoal */
  --bg-card: #2a3130;
  --border: #3a4341;
  --text: #e6e8e3;
  --text-muted: #a7b0aa;
  --heading: #f1f0ea;         /* cream, like "Stay Connected" headline */
  --accent: #aeb6ad;          /* template sage — CTAs, hovers (no red) */
  --accent-contrast: #1e2423; /* text color on accent-filled buttons */
  --accent-soft: rgba(174, 182, 173, 0.12);
  --nav-bg: rgba(30, 36, 35, 0.85);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --grid-line: rgba(230, 232, 227, 0.05);

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --font-body: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --maxw: 1120px;
  --nav-h: 72px;
}

[data-theme="light"] {
  /* ---- Light theme — Dean & Brooks (Wix 2527): white + sage ---- */
  --bg: #ffffff;
  --bg-alt: #e7eae4;          /* soft tint of template sage #aeb6ad */
  --bg-card: #ffffff;
  --border: #d5dad2;
  --text: #2a302d;
  --text-muted: #5f6a64;
  --heading: #171b1a;
  --accent: #5c6b59;          /* deep sage — readable on white (no red) */
  --accent-contrast: #ffffff;
  --accent-soft: rgba(92, 107, 89, 0.09);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 30px rgba(30, 36, 35, 0.08);
  --grid-line: rgba(23, 27, 26, 0.05);
}

/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--heading); font-weight: 500; line-height: 1.15; }
h4, h5 { color: var(--heading); }

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
section:nth-of-type(even) { background: var(--bg-alt); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); max-width: 640px; margin-bottom: 48px; font-size: 1.05rem; }

/* ============ Sticky Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: height 0.3s ease, border-color 0.3s ease;
}
/* Blur/background lives on a pseudo-element, NOT on .nav itself:
   backdrop-filter on .nav would make it the containing block for the
   position:fixed mobile drawer, clipping the menu to the 72px header. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s ease;
}
.nav.scrolled { height: 58px; border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 calc(24px + env(safe-area-inset-right, 0px)) 0 calc(24px + env(safe-area-inset-left, 0px));
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; }
.brand img, .brand svg { width: 36px; height: 36px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }

.nav-links a.nav-link {
  display: inline-block; padding: 8px 14px; color: var(--text); font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.25s ease;
}
/* animated underline on hover */
.nav-links a.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--accent); }
.nav-links a.nav-link:hover::after, .nav-links a.nav-link.active::after { transform: scaleX(1); }

/* dropdown */
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; }
.nav-links li:hover > .dropdown, .nav-links li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 0.88rem; transition: background 0.2s, color 0.2s; }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.ctrl-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer;
  font-family: var(--font-body); transition: border-color 0.25s, color 0.25s, transform 0.2s;
  white-space: nowrap; flex: none;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* hamburger (mobile) */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--heading); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; padding: calc(var(--nav-h) + 40px) 0 80px;
  background: var(--bg);
  overflow: hidden;
}
/* Background video: sits under the grid overlay and content.
   opacity keeps text readable over the B&W footage. */
.hero-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  opacity: 0.35;
}
[data-theme="light"] .hero-video { opacity: 0.22; }

.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, black 30%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.kicker {
  display: inline-block; font-size: clamp(0.95rem, 1.6vw, 1.15rem); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom: 26px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text); max-width: 640px; margin-bottom: 18px; }
.hero .lead em { font-style: italic; color: var(--heading); }
.hero .sub { color: var(--text-muted); max-width: 620px; margin-bottom: 40px; font-size: 0.98rem; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--accent); cursor: pointer; font-family: var(--font-body);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(92, 107, 89, 0.35); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 1.4rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ Cards (clients) ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; font-weight: 600;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* ============ Services accordion ============ */
.tier-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 44px 0 16px; }
.tier-label:first-of-type { margin-top: 0; }

.svc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s ease;
}
.svc:hover { border-color: var(--accent); }
.svc.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.svc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); color: var(--text);
}
.svc-head .svc-titles h3 { font-size: 1.15rem; margin-bottom: 4px; }
.svc-head .svc-price { color: var(--accent); font-size: 0.86rem; font-weight: 600; }
.svc-head .chev { flex: none; width: 22px; height: 22px; color: var(--text-muted); transition: transform 0.3s ease; }
.svc.open .chev { transform: rotate(180deg); }

.svc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.svc-body-inner { padding: 0 26px 26px; border-top: 1px dashed var(--border); }
.svc-body-inner .svc-summary { padding-top: 18px; color: var(--text); font-size: 0.97rem; margin-bottom: 14px; }
.svc-body-inner .deliver-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.svc-body-inner ul { list-style: none; margin-bottom: 18px; }
.svc-body-inner ul li { padding: 6px 0 6px 22px; position: relative; color: var(--text-muted); font-size: 0.92rem; }
.svc-body-inner ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.svc-tagline { font-size: 0.85rem; color: var(--accent); margin-bottom: 14px; font-weight: 500; }

.case-box { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 18px; }
.case-box .case-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.case-box p { font-size: 0.9rem; color: var(--text); }
.case-box .case-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* ============ Process ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin-bottom: 56px; }
.step { position: relative; padding: 26px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.28s ease, border-color 0.28s ease; }
.step:hover { transform: translateY(-5px); border-color: var(--accent); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2rem; color: var(--accent); display: block; margin-bottom: 10px;
}
.step h4 { margin-bottom: 8px; font-size: 1.02rem; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

.rules-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.rules-box, .dont-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.rules-box h3, .dont-box h3 { font-size: 1.15rem; margin-bottom: 16px; }
.rules-box ul, .dont-box ul { list-style: none; }
.rules-box li, .dont-box li { padding: 7px 0 7px 24px; position: relative; color: var(--text-muted); font-size: 0.92rem; }
.rules-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.dont-box li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============ Data & stack ============ */
.data-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.data-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.data-col h4 { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.data-col p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; }

/* ============ About ============ */
.about-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
/* Frameless round portrait: the image itself is a transparent-background
   circle, so no border, no card, no crop — it floats on the section bg. */
.about-photo { width: min(260px, 70vw); }
.about-photo img { width: 100%; height: auto; display: block; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
/* Structured career/education lists (used by the Korean bio) */
.about-text .about-label {
  display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 20px 0 8px;
}
.about-text ul { list-style: none; margin: 0 0 4px; }
.about-text ul li { padding: 5px 0 5px 20px; position: relative; color: var(--text-muted); font-size: 0.95rem; }
.about-text ul li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Keyword highlights (About bio) — DISABLED. The <mark> tags are still
   in js/i18n.js; to bring the yellow marker effect back, uncomment the
   block below and delete the neutralizing rule. */
mark { background: none; color: inherit; }
/*
mark {
  color: inherit; padding: 0 2px; border-radius: 2px; cursor: default;
  background: linear-gradient(to top, rgba(255, 213, 79, 0.4) 38%, transparent 38%);
  transition: background 0.25s ease;
}
mark:hover { background: linear-gradient(to top, rgba(255, 213, 79, 0.65) 100%, transparent 0%); }
[data-theme="light"] mark { background: linear-gradient(to top, rgba(255, 213, 79, 0.55) 38%, transparent 38%); }
[data-theme="light"] mark:hover { background: linear-gradient(to top, rgba(255, 213, 79, 0.85) 100%, transparent 0%); }
*/

/* ============ Testimonials ============ */
.testi-note {
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 34px; text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto; font-size: 0.95rem;
}
.testi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.testi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testi-card .quote { font-family: var(--font-display); font-size: 1.02rem; color: var(--heading); margin-bottom: 18px; }
.testi-card .who { color: var(--text-muted); font-size: 0.84rem; }

/* ============ Pricing ============ */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 16px 20px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.pricing-table th { background: var(--accent-soft); color: var(--heading); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }
.pricing-table tbody tr { transition: background 0.2s; }
.pricing-table tbody tr:hover { background: var(--accent-soft); }
.pricing-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 18px; max-width: 680px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 22px 40px 22px 0; font-size: 1.05rem; color: var(--heading); font-family: var(--font-display);
  position: relative; transition: color 0.25s;
}
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:hover { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { color: var(--text-muted); font-size: 0.94rem; padding-bottom: 22px; max-width: 720px; }

/* ============ More (Tools & Tips / Projects) ============ */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ============ Contact footer (Klein PE style) ============ */
.footer-contact { background: #222929; color: #e8e6e1; padding: 90px 0 40px; }
[data-theme="light"] .footer-contact { background: #222929; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }

.footer-info .brand { margin-bottom: 30px; font-size: 1.8rem; color: #f5f3ef; align-items: flex-start; }
.footer-info .brand img { width: 42px; height: 42px; margin-top: 4px; }
/* tagline sits directly under the "Veronica Lee" text (not under the logo) */
.footer-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand .brand-tagline {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.14em; color: #a7b0aa; margin-top: 7px;
}
.footer-info address { font-style: normal; color: #b7beb8; line-height: 1.9; margin-bottom: 26px; font-size: 0.95rem; }
.footer-info a { color: #b7beb8; transition: color 0.25s; }
.footer-info a:hover { color: var(--accent); }
.socials { display: flex; gap: 16px; margin-top: 8px; }
.socials a { color: #dee3dd; font-size: 1.1rem; transition: color 0.25s, transform 0.25s; display: inline-flex; }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.footer-form h3 { color: #f5f3ef; font-size: 1.15rem; margin-bottom: 26px; font-family: var(--font-body); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; color: #ced4cf; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 1px solid #4a5450; color: #f0eee9;
  padding: 12px 14px; border-radius: 3px; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aeb6ad' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field select option { background: #222929; color: #f0eee9; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(174, 182, 173, 0.2); }
.field textarea { min-height: 120px; resize: vertical; }
.submit-btn {
  width: 100%; background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 14px; border-radius: 3px; font-size: 1rem; cursor: pointer; font-family: var(--font-body);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.submit-btn:hover { background: var(--accent); color: #222929; transform: translateY(-1px); }
.form-status { margin-top: 14px; font-size: 0.9rem; color: var(--accent); min-height: 1.4em; }

.footer-bottom { border-top: 1px solid #333c3a; margin-top: 64px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8d958f; font-size: 0.82rem; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; } .reveal-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-grid { animation: none; }
  .hero-video { display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards-3, .testi-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rules-grid, .data-strip, .more-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 68px 0; }
  /* Video hidden on phones to save mobile data; the grid still shows.
     To ENABLE video on phones too: delete the .hero-video line below. */
  .hero-video { display: none; }
  /* Compact nav so brand + 한국어 + theme + hamburger fit on one line
     on every phone width (tested down to 360px) */
  .nav-inner { padding: 0 calc(14px + env(safe-area-inset-right, 0px)) 0 calc(14px + env(safe-area-inset-left, 0px)); gap: 8px; }
  .brand { font-size: 1.1rem; gap: 7px; }
  .brand img, .brand svg { width: 28px; height: 28px; }
  .nav-controls { gap: 5px; }
  .ctrl-btn { padding: 5px 9px; font-size: 0.72rem; }
  .hamburger { display: block; padding: 6px 4px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 2px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.scrolled .nav-links { top: 58px; }
  .nav-links.open { transform: translateX(0); }
  body.menu-open { overflow: hidden; } /* lock page scroll while drawer is open */
  .nav-links > li { width: 100%; }
  .nav-links a.nav-link { display: block; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links a.nav-link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; background: transparent; padding: 0 0 0 18px; }
  .dropdown a { font-size: 0.95rem; padding: 10px 8px; color: var(--text-muted); }
  .nav-cta-li { margin-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

/* ============================================================
   RESOURCES & BLOG (added with the Astro migration)
   Subpage layout, tier badges, gate blocks, filters, prose.
   ============================================================ */
.page-head { padding: calc(var(--nav-h) + 70px) 0 10px; }
.page-body { padding: 30px 0 90px; }
.container-narrow { max-width: 760px; }

/* --- blog list --- */
.post-list { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.post-item { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; }
.post-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-item h2 { font-family: var(--font-display); color: var(--heading); font-size: 1.35rem; margin: 10px 0 8px; }
.post-item p { color: var(--text-muted); font-size: 0.93rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 0.8rem; margin: 14px 0; }
.tag-pill { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 0.72rem; color: var(--text-muted); }
.read-more { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.crumb { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.crumb:hover { color: var(--accent); }
.post-title { font-family: var(--font-display); color: var(--heading); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 6px 0 4px; }

/* --- markdown prose --- */
.prose { margin: 26px 0 10px; }
.prose h2 { font-family: var(--font-display); color: var(--heading); font-size: 1.35rem; margin: 34px 0 12px; }
.prose h3 { color: var(--heading); font-size: 1.1rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); font-size: 0.97rem; line-height: 1.75; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 18px; margin: 18px 0; color: var(--text-muted); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.prose a { color: var(--accent); }
.prose code { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 0.85em; }

/* --- tier badges --- */
.badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-free { background: var(--accent); color: var(--accent-contrast); }
.badge-email { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.badge-client { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.badge-client::before { content: "🔒 "; font-size: 0.7rem; }

/* --- resources hub --- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.filter-chip { background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); padding: 7px 16px; font-size: 0.82rem; cursor: pointer; transition: all .2s; font-family: var(--font-body); }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.res-grid { margin-top: 26px; }
.res-card { display: flex; flex-direction: column; text-decoration: none; }
.res-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.res-format { color: var(--text-muted); font-size: 0.75rem; }
.res-card h3 { margin-bottom: 10px; }
.res-card .res-audience { margin-top: auto; padding-top: 14px; color: var(--text-muted); font-size: 0.75rem; }
.res-card.tier-client { opacity: 0.9; }

/* --- gates & asides --- */
.gate, .paid-note, .related-resource, .newsletter { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 30px 0; }
.gate h3, .paid-note h3, .related-resource h3, .newsletter h3 { font-family: var(--font-display); color: var(--heading); font-size: 1.2rem; margin-bottom: 8px; }
.gate p, .paid-note p, .related-resource p, .newsletter p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.gate-free { border-color: var(--accent); }
.gate-client { border-style: dashed; }
.gate-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gate form .field { margin-bottom: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.paid-note { border-left: 3px solid var(--accent); }
.related-resource h3 a { color: var(--heading); text-decoration: none; }
.related-resource h3 a:hover { color: var(--accent); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type="email"] { flex: 1; min-width: 220px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 12px 14px; font-family: var(--font-body); }
.inline-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

@media (max-width: 760px) {
  .post-item { padding: 20px; }
  .gate, .paid-note, .related-resource, .newsletter { padding: 20px; }
}
