/* ============================================================
   Muhammed Döşer — Fizik Özel Ders
   Academic / classic palette: cream, navy, warm gold
   ============================================================ */

:root {
  /* default palette: "Klasik" — cream + navy + warm gold */
  --bg: #faf8f3;
  --bg-soft: #f3efe5;
  --bg-card: #ffffff;
  --ink: #16213a;
  --ink-soft: #4a5573;
  --ink-mute: #7b8299;
  --line: #e6dfd0;
  --line-soft: #efe9da;
  --accent: #b9853f;
  --accent-soft: #d4a574;
  --accent-ink: #6b4a1d;
  --navy: #1f3a5f;
  --navy-deep: #16213a;

  /* type */
  --serif: "Cormorant Garamond", "Newsreader", Georgia, serif;
  --sans: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
}

/* ---------- palette: Lacivert (deep navy primary) ---------- */
:root[data-palette="lacivert"] {
  --bg: #f7f6f2;
  --bg-soft: #ecebe4;
  --bg-card: #ffffff;
  --ink: #0b1d3a;
  --ink-soft: #3d4a66;
  --ink-mute: #6c748a;
  --line: #dcdacf;
  --line-soft: #ebe9df;
  --accent: #c9a96a;
  --accent-soft: #e3c891;
  --accent-ink: #6a5226;
  --navy: #0b1d3a;
  --navy-deep: #050f24;
}

/* ---------- palette: Kömür (charcoal academic) ---------- */
:root[data-palette="komur"] {
  --bg: #f4f2ec;
  --bg-soft: #e8e4d8;
  --bg-card: #ffffff;
  --ink: #1a1814;
  --ink-soft: #45403a;
  --ink-mute: #777166;
  --line: #d9d3c2;
  --line-soft: #e8e2d2;
  --accent: #a0531e;
  --accent-soft: #c97a3f;
  --accent-ink: #5a2e10;
  --navy: #1a1814;
  --navy-deep: #0c0a08;
}

/* ---------- palette: Yeşil (bottle green) ---------- */
:root[data-palette="yesil"] {
  --bg: #f6f5ed;
  --bg-soft: #ece9d8;
  --bg-card: #ffffff;
  --ink: #0e2a22;
  --ink-soft: #36493f;
  --ink-mute: #6f7b72;
  --line: #d7d4c0;
  --line-soft: #e7e3cf;
  --accent: #b9853f;
  --accent-soft: #d4a574;
  --accent-ink: #6b4a1d;
  --navy: #0e2a22;
  --navy-deep: #061812;
}

/* ---------- dark mode ---------- */
:root[data-mode="dark"] {
  --bg: #0e1626;
  --bg-soft: #15203a;
  --bg-card: #182542;
  --ink: #f0ece1;
  --ink-soft: #c4c1b3;
  --ink-mute: #8d8a7c;
  --line: #2a3957;
  --line-soft: #1f2c47;
  --accent: #d4a574;
  --accent-soft: #e3c891;
  --accent-ink: #f3dcb3;
  --navy: #f0ece1;
  --navy-deep: #ffffff;
}

:root[data-mode="dark"][data-palette="lacivert"] { --bg: #050f24; --bg-soft: #0b1d3a; --bg-card: #102346; }
:root[data-mode="dark"][data-palette="komur"]    { --bg: #100e0a; --bg-soft: #1a1814; --bg-card: #211e18; --accent: #c97a3f; }
:root[data-mode="dark"][data-palette="yesil"]    { --bg: #061812; --bg-soft: #0e2a22; --bg-card: #15362c; }

/* ---------- font set: Modern ---------- */
:root[data-font="modern"] {
  --serif: "Newsreader", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}
/* ---------- font set: Mono-twist ---------- */
:root[data-font="mono"] {
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

/* ============================================================
   base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

/* ============================================================
   nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform .15s, background .15s;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============================================================
   hero — layout A (default: split, portrait right)
   ============================================================ */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero h1 .accent::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  background: var(--accent);
  margin-top: 18px;
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 32px 0 36px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-whatsapp { background: #128C7E; color: #fff; border-color: #128C7E; font-weight: 700; }
.btn-whatsapp:hover { background: #0e6b60; border-color: #0e6b60; transform: translateY(-1px); }

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-meta div { padding-right: 16px; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-meta .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
.hero-meta .num em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-meta .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  display: block;
}

/* portrait frame */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  transform: translate(14px, 14px);
  opacity: 0.65;
}
.hero-portrait-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(11, 23, 50, 0.85), rgba(11, 23, 50, 0));
  color: #fff;
}
.hero-portrait-caption .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-portrait-caption .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 4px;
}

/* hero layout B — centered, portrait below */
:root[data-hero="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
:root[data-hero="centered"] .hero h1 .accent::after { margin-inline: auto; }
:root[data-hero="centered"] .hero-lede { margin-inline: auto; }
:root[data-hero="centered"] .hero-portrait {
  width: min(420px, 100%);
  margin-top: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
:root[data-hero="centered"] .hero-portrait::before { border-radius: 50%; }
:root[data-hero="centered"] .hero-portrait-caption { display: none; }
:root[data-hero="centered"] .hero-meta { max-width: 640px; margin-left: auto; margin-right: auto; }

/* hero layout C — full-bleed portrait left, content right (mirror) */
:root[data-hero="mirror"] .hero-grid { grid-template-columns: 1fr 1.15fr; }
:root[data-hero="mirror"] .hero-portrait { order: -1; aspect-ratio: 3 / 4; }

@media (max-width: 820px) {
  .hero-grid, :root[data-hero="mirror"] .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 360px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta .num { font-size: 26px; }
}

/* ============================================================
   section scaffolds
   ============================================================ */
section { padding: clamp(60px, 9vw, 120px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head p { font-size: 17px; max-width: 50ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   about
   ============================================================ */
.about { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}
.about-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
}
.about-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin: 24px 0 0;
  font-style: italic;
  font-weight: 400;
}
.about-cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-cv-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.about-cv-list li:last-child { border-bottom: none; }
.cv-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 500;
}
.cv-body strong { font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }
.cv-body span { font-size: 14px; color: var(--ink-mute); }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   dersler grid
   ============================================================ */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lesson {
  background: var(--bg);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: start;
  transition: background .2s;
}
.lesson:hover { background: var(--bg-soft); }
.lesson-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  padding-top: 4px;
}
.lesson h3 { margin-bottom: 10px; }
.lesson-desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; max-width: 38ch; }
.lesson-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lesson-topics span {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-card);
}
.lesson-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.lesson:hover .lesson-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .lessons-grid { grid-template-columns: 1fr; }
  .lesson { padding: 28px 22px; gap: 18px; }
}

/* ============================================================
   method / how it works
   ============================================================ */
.method { background: var(--navy); color: var(--bg); position: relative; overflow: hidden; }
.method::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border: 1px solid color-mix(in srgb, var(--bg) 10%, transparent);
  border-radius: 50%;
}
.method::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid color-mix(in srgb, var(--bg) 8%, transparent);
  border-radius: 50%;
}
.method h2, .method p { color: var(--bg); }
.method .eyebrow { color: var(--accent-soft); }
.method .eyebrow::before { background: var(--accent-soft); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.method-step {
  padding: 32px 28px 32px 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  padding-top: 28px;
  position: relative;
}
.method-step + .method-step { padding-left: 32px; }
.method-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent-soft);
}
.method-step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.method-step h3 {
  color: var(--bg);
  font-size: 22px;
  margin-bottom: 12px;
}
.method-step p {
  font-size: 14.5px;
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  margin: 0;
}
@media (max-width: 820px) {
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-step { padding-left: 0 !important; padding-right: 0; padding-bottom: 28px; }
}

/* ============================================================
   testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-rating { color: var(--accent); letter-spacing: 4px; margin-bottom: 18px; font-size: 14px; }
.testimonial-quote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  flex: 1;
  margin-bottom: 24px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
}
.testimonial-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.testimonial-detail { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   blog preview
   ============================================================ */
.blog { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-thumb svg { width: 100%; height: 100%; display: block; }
.post-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.post-excerpt { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.blog-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
@media (max-width: 820px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   contact form
   ============================================================ */
.contact { background: var(--navy-deep); color: var(--bg); }
.contact h2, .contact p { color: var(--bg); }
.contact .eyebrow { color: var(--accent-soft); }
.contact .eyebrow::before { background: var(--accent-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 38ch; font-size: 17px; }
.contact-links { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  text-decoration: none;
  color: var(--bg);
  transition: background .15s, border-color .15s;
  border-radius: var(--radius);
}
.contact-link:hover { background: color-mix(in srgb, var(--bg) 6%, transparent); border-color: var(--accent-soft); }
.contact-link .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-link strong { display: block; font-weight: 600; font-size: 16px; }
.contact-link span { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-top: 2px; }

.form {
  background: color-mix(in srgb, var(--bg) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  padding: 36px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 18px; }
.form-row.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  color: var(--bg);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: var(--radius);
  transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { width: 100%; justify-content: center; padding: 18px; }
.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  text-align: center;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.cols { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

/* ============================================================
   footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--accent); }

/* ============================================================
   floating WhatsApp
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #128C7E;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.4), 0 4px 8px rgba(0,0,0,.08);
  transition: transform .2s;
  color: #fff;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #128C7E;
  opacity: .6;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   utilities
   ============================================================ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   blog page specifics
   ============================================================ */
.blog-hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 16px; }
.blog-hero p { font-size: 19px; max-width: 56ch; color: var(--ink-soft); }
.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.blog-tag {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.blog-tag.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: clamp(48px, 7vw, 80px) 0;
}
@media (max-width: 820px) { .blog-list { grid-template-columns: 1fr; } }

/* article page */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--pad) 80px;
}
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }
.article h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 24px; line-height: 1.05; }
.article-lede { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink-soft); font-weight: 400; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 32px; margin: 48px 0 16px; }
.article h3 { font-size: 22px; margin: 32px 0 12px; }
.article p { font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 18px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article ul li, .article ol li { margin-bottom: 8px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.article blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
}
.article .formula {
  font-family: var(--mono);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 18px 22px;
  text-align: center;
  font-size: 17px;
  margin: 24px 0;
  border-radius: var(--radius);
  color: var(--ink);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.article-back:hover { color: var(--accent); }
.article-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { margin-bottom: 20px; }

/* ============================================================
   animations — academic-subtle, pure CSS + IntersectionObserver
   ============================================================ */

/* smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* easing */
:root {
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* scroll-reveal — fade-up on first intersection */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-soft),
              transform 0.8s var(--ease-out-soft);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* hero entrance on load — staggered children */
.hero .hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s var(--ease-out-soft) forwards;
}
.hero .hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero .hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero .hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero .hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero .hero-content > *:nth-child(5) { animation-delay: 0.58s; }

.hero-portrait {
  opacity: 0;
  transform: scale(0.985);
  animation: heroPortraitIn 1.1s var(--ease-out-soft) 0.35s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroPortraitIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* subtle hover lift on lesson cards */
.lesson { transition: background .25s ease, transform .25s var(--ease-out-soft); }
.lesson:hover { transform: translateY(-2px); }

/* eyebrow accent line — start at 0 width, grow when revealed */
.reveal .eyebrow::before { width: 0; transition: width 0.6s var(--ease-out-soft) 0.25s; }
.reveal.in-view .eyebrow::before { width: 28px; }

/* accessibility — honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero .hero-content > *,
  .hero-portrait,
  .lesson {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal .eyebrow::before { width: 28px !important; transition: none !important; }
}

/* ============================================================
   tweaks panel positioning (handled by tweaks-panel.jsx)
   ============================================================ */
