﻿/* ============ KTS THÁI ĐỨC — PROFILE LANDING ============ */
:root {
  --bg: #0e0e10;
  --bg2: #151518;
  --card: #1a1a1e;
  --line: #2a2a30;
  --gold: #d4a24a;
  --gold-soft: #e8c98a;
  --text: #e9e6e1;
  --muted: #9b9891;
  --font-head: "Comfortaa", "Arial", sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
  color: var(--gold); font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 14px;
}
.sec-title { font-size: 34px; line-height: 1.25; margin-bottom: 40px; }
.sec-title em { font-style: normal; color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- NAV ---------- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(14,14,16,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo { font-family: var(--font-head); font-size: 17px; color: var(--text); letter-spacing: 1px; }
nav .logo b { color: var(--gold); font-weight: 400; }
nav ul { display: flex; gap: 28px; list-style: none; }
nav ul a { color: var(--muted); font-size: 13.5px; letter-spacing: .5px; transition: color .2s; }
nav ul a:hover { color: var(--gold); }
nav .mobile-academy, nav .mobile-account { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-head); font-size: 14px;
  letter-spacing: 2px; border-radius: 2px; transition: all .25s;
}
.btn:hover { background: var(--gold); color: #0e0e10; }
.btn.solid { background: var(--gold); color: #0e0e10; }
.btn.solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- SPLIT (về tôi / triết lý) ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.split img { border-radius: 2px; }
.split .quote {
  border-left: 2px solid var(--gold); padding-left: 22px; margin: 22px 0;
  color: var(--gold-soft); font-style: italic;
}

/* ---------- FACTS / CREDENTIALS ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 26px 24px;
}
.fact h4 { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 14px; }
.cert-list { list-style: none; margin-top: 36px; display: grid; gap: 10px; }
.cert-list li { color: var(--muted); font-size: 14.5px; padding-left: 22px; position: relative; }
.cert-list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 6px; }
.cert-list li b { color: var(--text); font-weight: normal; }

/* ---------- CHAPTERS (Vindy: mỗi chương 1 hình — so le trái/phải) ---------- */
.chap {
  display: grid; grid-template-columns: 6fr 5fr; gap: 64px;
  align-items: start; padding: 56px 0;
}
.chap + .chap { border-top: 1px solid var(--line); }
.chap .no {
  font-family: var(--font-head); color: var(--gold); font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
}
.chap h3 { font-size: 26px; line-height: 1.35; margin-bottom: 16px; }
.chap h3 em { font-style: normal; color: var(--gold); }
.chap p { color: var(--muted); }
.chap p + p { margin-top: 12px; }
.chap-img img { border-radius: 2px; }
.chap-img figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 1px; }
/* so le: chương thường — chữ trên trái, ảnh lệch xuống dưới phải */
.chap > figure { margin-top: 84px; }
/* chương flip — ảnh bên trái cao, chữ lệch xuống dưới phải */
.chap.flip > figure { order: 0; margin-top: 0; }
.chap.flip > div { order: 1; margin-top: 84px; }

/* ---------- PHOTO CHAPTERS: full-width image, caption below, original scroll motion ---------- */

.chap-shot {
  display: block;
  opacity: 0; transform: translateY(52px);
  transition: opacity .9s ease, transform 1s ease;
}
.chap-shot + .chap-shot { margin-top: 64px; }
.chap-shot.in { opacity: 1; transform: none; }
.chap-shot img {
  width: 100%; max-width: 100%; height: auto; max-height: none; margin-inline: auto; object-fit: contain;
  border-radius: 2px; display: block; background: #0a0a0c;
}
.chap-shot figcaption { padding: 18px 0 0; }
.chap-shot h3 { font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.8; color: var(--muted); }
.chap-shot h3 strong { color: var(--gold); font-weight: 600; }

/* reveal cuối chuỗi chương: câu chốt "lập dị" chỉ xuất hiện khi đọc hết */
.reveal-end { text-align: center; padding: 90px 0 30px; }
.reveal-end .r-top { color: var(--muted); font-size: 14px; letter-spacing: 2px; margin-bottom: 22px; }
.reveal-end h3 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); line-height: 1.45; }
.reveal-end h3 em { font-style: normal; color: var(--gold); }
.reveal-end .r-sub { color: var(--gold); margin-top: 20px; font-family: var(--font-head); font-size: 14px; letter-spacing: 2px; }

/* ---------- PROJECTS (caption có mô tả) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid figure {
  position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4/3;
  background: var(--card);
}
.grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grid figure:hover img { transform: scale(1.05); }
.grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 12px;
  background: linear-gradient(transparent, rgba(10,10,12,.92));
  font-size: 12.5px; color: #ddd; letter-spacing: .5px;
}
.grid figcaption span { display: block; color: var(--gold); font-family: var(--font-head); font-size: 11px; letter-spacing: 2px; }
.grid figcaption em.d {
  display: block; font-style: normal; color: #b7b3ac; font-size: 11.5px;
  line-height: 1.5; margin-top: 3px;
}

/* phiến dự án bản B: thumbnail + mô tả */.ep { grid-template-columns: 74px 150px 1fr; }
.ep .thumb { width: 150px; height: 86px; border-radius: 2px; overflow: hidden; background: var(--card); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .txt h4 { font-size: 18px; }
.ep .txt .desc { color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 560px; }

/* ---------- LIGHTBOX (xem ảnh toàn màn hình) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8,8,10,.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 40px 20px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 80vh;
  object-fit: contain; border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.lightbox .lb-cap { margin-top: 18px; text-align: center; max-width: 720px; }
.lightbox .lb-cap h4 { font-family: var(--font-head); color: var(--gold); font-size: 18px; letter-spacing: 1px; }
.lightbox .lb-cap p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; font-size: 30px; color: var(--muted);
  cursor: pointer; transition: color .2s; font-family: var(--font-head);
}
.lightbox .lb-close:hover { color: var(--gold); }
.grid figure, .ep { cursor: pointer; }
@media (max-width: 900px) {
  .chap-shot + .chap-shot { margin-top: 44px; }
  .chap { padding: 36px 0; gap: 22px; }
  .chap h3 { font-size: 22px; }
  .ep { grid-template-columns: 1fr; }
  .ep .thumb { width: 100%; height: 150px; }
}

/* ---------- TESTIMONIALS (cảm nhận học viên) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .25s ease, transform .25s ease;
}
.testi:hover { border-color: #3a342a; transform: translateY(-4px); }
.testi .q-mark {
  font-family: var(--font-head); font-size: 34px; color: var(--gold);
  line-height: .6; height: 16px;
}
.testi blockquote {
  font-size: 13.8px; line-height: 1.75; color: #c9c5bd; font-style: italic;
  flex: 1;
}
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #2a251c, #141317) center / cover no-repeat;
  border: 1px solid #3a342a;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 15px; overflow: hidden;
}
.testi .avatar.av1 { background-image: url("../_images/avatar-1.jpg"); }
.testi .avatar.av2 { background-image: url("../_images/avatar-2.jpg"); }
.testi .avatar.av3 { background-image: url("../_images/avatar-3.jpg"); }
.testi .who h4 { font-size: 14.5px; }
.testi .who span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- PRINCIPLES (cards) — nổi bật hơn ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, #201d17 0%, var(--card) 65%);
  border: 1px solid #3a342a; border-top: 2px solid var(--gold);
  border-radius: 2px; padding: 28px 20px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(212,162,74,.25);
}
.card .no {
  font-family: var(--font-head); color: var(--gold); font-size: 22px;
  letter-spacing: 2px;
}
.card h3 { font-size: 16.5px; margin: 12px 0 10px; line-height: 1.4; color: var(--gold-soft); }
.card p { font-size: 13.5px; color: #b8b4ac; line-height: 1.65; }

/* ---------- PROCESS timeline — nổi bật hơn ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 90px 250px 1fr 170px; gap: 20px;
  padding: 26px 18px; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background .25s ease, border-color .25s ease;
}
.step:hover { background: rgba(212,162,74,.06); border-bottom-color: #3a342a; }
.step .n { font-family: var(--font-head); font-size: 32px; color: var(--gold); }
.step h3 { font-size: 17px; color: var(--gold-soft); }
.step p { color: #b8b4ac; font-size: 14px; }
.step .pay {
  background: rgba(212,162,74,.12); border: 1px solid rgba(212,162,74,.45); border-radius: 2px;
  color: var(--gold); font-size: 13px; letter-spacing: 1px; text-align: center;
  padding: 8px 10px;
}

/* ---------- SCROLL REVEAL kiểu Vindy (trượt dọc + fade, không đè cột) ---------- */
.chap > div, .chap > figure, .reveal-end, .grid figure, .ep, .card, .step, .acc-item {
  opacity: 0; transition: opacity .8s ease, transform .9s ease; will-change: transform;
}
.chap > div { transform: translateY(48px); }
.chap > figure { transform: translateY(66px); }
.chap.in > div, .chap.in > figure { opacity: 1; transform: none; }
.reveal-end { transform: translateY(56px); }
.reveal-end.in { opacity: 1; transform: none; }
.grid figure, .ep, .card, .step, .acc-item { transform: translateY(40px); }
.grid figure.in, .ep.in, .card.in, .step.in, .acc-item.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .chap > div, .chap > figure, .reveal-end, .grid figure, .ep, .card, .step, .acc-item { opacity: 1; transform: none; transition: none; }
}

/* ---------- FORM ĐẶT LỊCH ---------- */
.book { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; margin: 18px 0 6px; font-size: 13px; letter-spacing: 1px; color: var(--muted); }
form input, form textarea, form select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: 13px 14px; font-family: var(--font-body);
  font-size: 15px; border-radius: 2px; outline: none; transition: border .2s;
}
form input:focus, form textarea:focus { border-color: var(--gold); }
form textarea { min-height: 110px; resize: vertical; }
#form-status { margin-top: 14px; font-size: 14px; min-height: 22px; }
#form-status.ok { color: #7fce8f; }
#form-status.err { color: #e07b6a; }

/* ---------- CONTACT gọn (1 khối giữa trang) ---------- */
.contact { max-width: 620px; margin: 0 auto; text-align: center; }
.contact .big { font-size: clamp(46px, 8vw, 84px); letter-spacing: 1px; margin-bottom: 14px; }
.contact .hotline { color: var(--muted); font-size: 15px; letter-spacing: .5px; margin-bottom: 46px; }
.contact .hotline a { color: var(--gold); }
.contact form { text-align: left; }
.contact label {
  display: block; font-size: 13px; color: var(--muted);
  margin: 0 2px 8px; letter-spacing: 1px;
}
.contact input, .contact textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  color: var(--text); padding: 14px 15px; font-family: var(--font-body);
  font-size: 15px; border-radius: 2px; outline: none; margin-bottom: 20px;
  transition: border .2s;
}
.contact input:focus, .contact textarea:focus { border-color: var(--gold); }
.contact textarea { min-height: 120px; resize: vertical; }
.contact .btn { margin-top: 2px; }
.contact #form-status { text-align: center; }

/* ---------- FLOATING CONTACT (Zalo / Gmail) ---------- */
.float-contact {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-contact a {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.float-contact a:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.float-contact .fz { background: #0068ff; }
.float-contact .fg { background: #fff; }
.float-contact svg { width: 26px; height: 26px; }
.float-contact a::after {
  content: attr(data-tip);
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  background: #1a1a1e; border: 1px solid var(--line); color: var(--text);
  font-size: 12.5px; padding: 6px 12px; border-radius: 2px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.float-contact a:hover::after { opacity: 1; }
@media (max-width: 900px) { .float-contact { right: 14px; bottom: 16px; } }

/* ---------- FOOTER ---------- */
footer { padding: 56px 0 40px; }
footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
footer h4 { color: var(--text); margin-bottom: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .split, .book .wrap { grid-template-columns: 1fr; gap: 36px; }
  .facts, .grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 60px 1fr; }
  .step p, .step .pay { grid-column: 2; text-align: left; }

  nav ul { display: none; }
  nav .mobile-academy { display: inline-block; flex-shrink: 0; margin-left: 12px; color: var(--gold); font-size: 12px; }
  form .row { grid-template-columns: 1fr; }
}

@media(max-width:900px){nav .inner{flex-wrap:wrap;gap:10px}nav .mobile-account{display:inline-block;font-size:12px;color:var(--muted);margin-left:auto}nav .mobile-academy{margin-left:0}}

nav .logo{display:flex;align-items:center;flex-shrink:0}nav .logo img{width:170px;height:59px;object-fit:contain;background:transparent}@media(max-width:700px){nav .logo img{width:128px;height:45px}}

/* Mobile: keep the landscape profile artwork separate from readable copy. */
html { scroll-padding-top: 100px; }
@media (max-width: 900px) {





  nav .inner { flex-wrap: nowrap; gap: 12px; }
  nav .mobile-account, nav .mobile-academy { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  nav .logo { min-width: 0; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .step > *, .split > *, .book .wrap > * { min-width: 0; }
  .chap.flip > div { margin-top: 0; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 56px; }
  nav .inner { padding: 10px 20px; gap: 10px; }
  nav .logo img { width: 116px; height: 44px; }
  nav .mobile-account, nav .mobile-academy { font-size: 12px; letter-spacing: 0; }









  .sec-title { font-size: 27px; margin-bottom: 28px; line-height: 1.4; }
  .eyebrow { letter-spacing: 2.5px; }
  .facts, .grid, .cards, .chap { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 22px; }
  .grid figure { aspect-ratio: auto; }
  .grid figure img { height: auto; aspect-ratio: 4 / 3; }
  .grid figcaption { position: static; background: var(--card); padding: 16px; font-size: 14px; }
  .grid figcaption em.d { font-size: 13px; }
  .chap > figure, .chap.flip > div { margin-top: 0; }
  .chap.flip > figure, .chap.flip > div { order: initial; }
  .chap-shot + .chap-shot { margin-top: 36px; }
  .chap-shot .no { letter-spacing: 2px; font-size: 11px; }
  .chap-shot h3 { font-size: 15px; }
  .chap-shot em { font-size: 14px; }
  .reveal-end { padding: 48px 0 8px; }
  .card, .fact, .testi { padding: 24px 20px; }
  .step { padding: 22px 0; }
  .step .n { font-size: 27px; }
  .step h3 { font-size: 17px; }
  .step .pay { justify-self: start; max-width: 100%; letter-spacing: 0; }
  .contact .hotline { overflow-wrap: anywhere; font-size: 14px; margin-bottom: 30px; }
  .contact input, .contact textarea, form select { font-size: 16px; }
  .contact .btn { width: 100%; min-height: 48px; }
  footer .inner { padding-inline: 20px; gap: 26px; }
  footer .inner > div { max-width: 100%; overflow-wrap: anywhere; }
  .lightbox { padding: 70px 16px 24px; }
  .lightbox img { max-width: 100%; max-height: 65vh; }
}
@media (max-width: 359px) {
  nav .inner { padding-inline: 16px; gap: 8px; }
  nav .logo img { width: 102px; }
  nav .mobile-account, nav .mobile-academy { font-size: 11px; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chap-shot { opacity: 1; transform: none; transition: none; }
}

/* Public navigation: accounts are managed inside the admin dashboard. */
@media (max-width:900px) { nav .mobile-academy { margin-left:auto; } }

/* Shared navigation: a complete collapsible menu on phones and tablets. */
.menu-toggle { display: none; }
@media (max-width:900px) {
  .site-nav { background: #0e0e10; padding-top: env(safe-area-inset-top, 0px); }
  .site-nav .inner { position: relative; height: 72px; padding: 0 20px; flex-wrap: nowrap; gap: 16px; }
  .site-nav .logo { margin-right: auto; }
  .site-nav .logo img { width: 128px; height: 46px; }
  .site-nav .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 88px; min-height: 44px; padding: 10px 12px; border: 1px solid #444039; border-radius: 6px; color: var(--text); background: #19191c; font: 13px var(--font-body); cursor: pointer; }
  .menu-icon { position: relative; width: 18px; height: 14px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .menu-icon::before { content: ""; position: absolute; top: 5px; left: 0; width: 18px; border-top: 1.5px solid currentColor; }
  .menu-open .menu-icon { border-color: transparent; }
  .menu-open .menu-icon::before { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-icon::after { content: ""; position: absolute; top: 5px; left: 0; width: 18px; border-top: 1.5px solid currentColor; transform: rotate(-45deg); }
  .site-nav #main-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 20px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 73px - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 73px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; background: #111113; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #0005; }
  .site-nav.menu-open #main-menu { display: grid; gap: 0; }
  .site-nav #main-menu li { min-width: 0; }
  .site-nav #main-menu a { display: flex; align-items: center; min-height: 49px; padding: 12px 4px; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-nav #main-menu a.btn { justify-content: center; margin-top: 12px; padding: 12px 16px !important; color: #111; background: var(--gold); border: 1px solid var(--gold); letter-spacing: 1px; }
  .site-nav #main-menu a:hover { color: var(--gold-soft); }
  .site-nav #main-menu a.btn:hover { color: #111; background: var(--gold-soft); }
  html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }

}
.menu-toggle:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Navigation proportions: consistent controls with one clear booking action. */
.site-nav .inner { min-height: 88px; gap: 32px; padding-block: 12px; }
.site-nav #main-menu { align-items: center; gap: 6px; }
.site-nav #main-menu li { display: flex; align-items: center; }
.site-nav #main-menu a, .site-nav #main-menu .nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: #c4c0b9; font: 14px/1.4 var(--font-body);
  letter-spacing: .2px; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.site-nav #main-menu a:hover, .site-nav #main-menu .nav-link:hover {
  color: #f1e5ce; background: #d4a24a0e; border-color: #d4a24a26;
}
.site-nav #main-menu a.nav-book {
  min-height: 46px; padding: 11px 20px; margin-left: 14px; border-color: #d4a24a80;
  color: var(--gold-soft); background: #d4a24a0b; font-size: 13px; font-weight: 600; letter-spacing: .4px;
}
.site-nav #main-menu a.nav-book:hover { background: var(--gold); color: #121212; border-color: var(--gold); }
.site-nav #main-menu .nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (min-width: 901px) and (max-width: 1050px) {
  .site-nav .inner { gap: 18px; }
  .site-nav #main-menu { gap: 2px; }
  .site-nav #main-menu a, .site-nav #main-menu .nav-link { padding-inline: 11px; }
  .site-nav #main-menu a.nav-book { margin-left: 8px; padding-inline: 16px; }
  .site-nav .logo img { width: 150px; }
}
@media (max-width: 900px) {
  .site-nav .inner { height: 76px; min-height: 76px; padding-block: 0; gap: 16px; }
  .site-nav #main-menu { padding: 12px 16px 20px; border-top: 1px solid #252527; border-radius: 0 0 16px 16px; }
  .site-nav.menu-open #main-menu { gap: 4px; }
  .site-nav #main-menu li { display: block; }
  .site-nav #main-menu a, .site-nav #main-menu .nav-link { justify-content: flex-start; width: 100%; min-height: 48px; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid transparent; }
  .site-nav #main-menu a.nav-book { justify-content: space-between; margin: 8px 0 0; padding: 13px 16px; min-height: 48px; font-size: 14px; background: var(--gold); color: #141414; border-color: var(--gold); }
  .site-nav #main-menu a.nav-book:hover { background: var(--gold-soft); }

}
@media (prefers-reduced-motion: reduce) {
  .site-nav #main-menu a, .site-nav #main-menu .nav-link { transition: none; }
}




/* ---------- KTS PROFILE: real photos alongside readable HTML ---------- */
.hero { padding-top: calc(89px + env(safe-area-inset-top, 0px)); background: var(--bg); }
.hero .inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 32px; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(30px, 2.65vw, 40px); line-height: 1.35; margin: 12px 0 20px; text-wrap: balance; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 510px; margin-bottom: 24px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-portrait { width: min(100%, 420px); justify-self: end; margin: 0; }
.hero-cover { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 2px; }
.hero-portrait figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; font-size: 13px; color: var(--text); }
.hero-portrait figcaption span { color: var(--muted); font-size: 12px; }
.hero .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero .stats > div { min-width: 0; }
.hero .stats strong { display: block; color: var(--gold); font: 600 clamp(23px, 2.1vw, 29px)/1.5 var(--font-head); }
.hero .stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (min-width: 901px) and (max-height: 800px) {
  .hero .inner { padding-block: 28px; }
  .hero-portrait { max-width: 350px; }
  .hero h1 { font-size: 32px; margin-bottom: 16px; }
  .hero .stats { margin-top: 24px; padding-top: 20px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .hero { padding-top: calc(77px + env(safe-area-inset-top, 0px)); }
  .hero .inner { padding: 32px 24px; }
  .hero-main { gap: 28px; }
  .hero h1 { font-size: 29px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .hero .btn { padding: 13px 18px; letter-spacing: 1px; }
}
@media (max-width: 700px) {
  .hero { padding-top: calc(77px + env(safe-area-inset-top, 0px)); }
  .hero .inner { padding: 28px 20px 32px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-row: 1; margin: 0; font-size: 10px; letter-spacing: 2px; }
  .hero h1 { grid-row: 2; margin: -16px 0 0; font-size: clamp(27px, 7.2vw, 34px); line-height: 1.4; }
  .hero h1 br:first-of-type { display: none; }

  .hero-portrait { grid-row: 3; width: min(100%, 300px); justify-self: center; }
  .hero p { grid-row: 4; margin: 0; font-size: 15px; }
  .hero .btn { grid-row: 5; width: 100%; padding: 14px 18px; font-size: 13px; letter-spacing: 1px; text-align: center; }
  .hero .stats { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; }
  .hero .stats > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 18px; }
  .hero .stats strong { font-size: 22px; }
  .hero .stats span { margin-top: 0; font-size: 13px; }
}


/* Restore original sequential chapters: no alternating columns, no text over photos. */
/* Match the cover's 1180px outer / 1132px inner frame, rather than a 640px island.
   Native-resolution photos stay uncropped and are never scaled beyond their source. */
#about > .container { max-width: 1180px; }
#about .sec-title { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 48px; }
.profile-story { width: 100%; margin-inline: auto; padding: 0; border: 0; }
.profile-media { width: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.profile-media img { width: auto; max-width: 100%; height: auto; max-height: none; margin: 0; object-fit: contain; }
.profile-story + .profile-story { margin-top: 64px; }
@media (min-width: 601px) and (max-width: 900px) {
  .profile-story + .profile-story { margin-top: 44px; }
}
.profile-story figcaption { padding: 24px 0 0; line-height: 1.85; color: var(--muted); max-width: 100%; }
.profile-story figcaption h3 { display: inline; margin: 0; color: var(--gold); font: 600 20px/1.85 var(--font-body); }
.profile-story figcaption p { display: inline; color: var(--muted); font: 400 18px/1.85 var(--font-body); }
@media (max-width: 600px) {
  .profile-story + .profile-story { margin-top: 36px; }
  .profile-story figcaption { padding-top: 18px; }
  .profile-story figcaption h3 { font-size: 17px; }
  .profile-story figcaption p { font-size: 16px; }
  #about .sec-title { font-size: 29px; margin-bottom: 30px; }
}
