/* ==========================================================================
   Jacqueline Schipani — Portfolio
   Palette: cream #FAF5EC · ink #2E2418 · rust #BF5B3B · teal #1E5C57 · gold #A87B2F
   ========================================================================== */

:root {
  --cream: #FAF5EC;
  --cream-card: #FBF7EE;
  --cream-sheet: #FFFDF8;
  --sand: #F1E7D2;
  --sand-deep: #EFE4CD;
  --ink: #2E2418;
  --ink-soft: #3D3223;
  --muted: #6E5F4A;
  --faint: #8A7A63;
  --rust: #BF5B3B;
  --rust-dark: #A54A2E;
  --rust-darker: #96411F;
  --teal: #1E5C57;
  --teal-dark: #174A46;
  --gold: #A87B2F;
  --line: #E5D8BE;
  --line-input: #DCCBA8;
  --track: #EDE1C8;
  --error: #A5341B;
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-darker); }
input, textarea, button { font-family: 'Karla', sans-serif; }
::placeholder { color: #A8977E; }

/* The `hidden` attribute must always win, even over class rules that set
   `display` (e.g. .auth-screen{display:flex}). Author styles otherwise beat
   the UA [hidden] rule, which caused sign-in/denied/panel to show at once. */
[hidden] { display: none !important; }
.view[hidden] { display: none; }

/* ---------- Shared bits ---------- */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.kicker--teal { color: var(--teal); }
.kicker--rust { color: var(--rust); }
.kicker--cream { color: #D9C79A; margin-bottom: 22px; }

.section-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.section-title--tight { font-size: 32px; margin: 0 0 16px; }
.section-title--big { font-size: 36px; margin: 0 0 16px; }

.section-copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.section-copy--narrow { max-width: 44ch; }

.btn {
  border: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--rust);
  color: var(--cream);
  padding: 14px 26px;
}
.btn--primary:hover { background: var(--rust-dark); }
.btn--outline {
  background: none;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 13px 25px;
}
.btn--outline:hover { background: var(--teal); color: var(--cream); }
.btn--teal {
  background: var(--teal);
  color: var(--cream);
  padding: 14px;
  border-radius: 10px;
}
.btn--teal:hover { background: var(--teal-dark); }
.btn--teal:disabled { opacity: 0.6; cursor: default; }
.btn--small {
  font-size: 13px;
  padding: 9px 18px;
  white-space: nowrap;
}
.btn--block { width: 100%; padding: 13px; border-radius: 10px; }

.pill--current {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: relative;
}

.brand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Marcellus', serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.tabs { display: flex; gap: 6px; }

.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 22px 14px 20px;
  border-bottom: 2px solid transparent;
  color: var(--faint);
}
.tab.is-active {
  border-bottom-color: var(--rust);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 64px;
  align-items: center;
}

.hero-copy .kicker { margin-bottom: 20px; }

.hero-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 54ch;
  text-wrap: pretty;
}

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

.greetings {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.greeting-word {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--rust);
}
/* Non-Latin scripts (Korean, Thai, Arabic) — Marcellus has no glyphs for these */
.greeting-word--script {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
}
.greeting-lang {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Portrait + badges */

.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.photo-frame {
  position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1.5px solid var(--rust);
  border-radius: 220px 220px 20px 20px;
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 20px 20px;
  overflow: hidden;
  background: var(--sand-deep);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
  line-height: 1.6;
}
.portrait.no-photo .portrait-img { display: none; }
.portrait.no-photo .portrait-placeholder { display: flex; }

.badge {
  position: absolute;
  border-radius: 50%;
  background: rgba(250, 245, 236, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}
.badge-city { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.badge-years { font-size: 10px; font-weight: 600; color: var(--faint); }

.badge--bangkok {
  top: -16px; left: -34px;
  width: 104px; height: 104px;
  border: 2px dashed var(--teal);
  transform: rotate(-8deg);
}
.badge--bangkok .badge-city { color: var(--teal); }

.badge--seoul {
  bottom: 120px; left: -52px;
  width: 96px; height: 96px;
  border: 2px dashed var(--gold);
  transform: rotate(6deg);
}
.badge--seoul .badge-city { color: var(--gold); }

.badge--tangier {
  bottom: -26px; right: -14px;
  width: 112px; height: 112px;
  border: 2px dashed var(--rust);
  transform: rotate(-5deg);
}
.badge--tangier .badge-city { color: var(--rust); }

/* ---------- Bands (full-width tinted sections) ---------- */

.band--sand { background: var(--sand); }
.band--teal { background: var(--teal); }

.band-footnote {
  font-size: 13px;
  color: var(--faint);
  margin: 22px 0 0;
}

.band-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 68px 32px 76px;
}
.band--sand:last-of-type .band-inner { padding: 72px 32px 80px; }

/* ---------- Cards (taught / testimonials) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-head .card-years { margin-bottom: 0; }

.card-years {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.card-years--teal { color: var(--teal); }
.card-years--gold { color: var(--gold); }
.card-years--rust { color: var(--rust); }

.card-city {
  font-family: 'Marcellus', serif;
  font-size: 24px;
  margin-bottom: 6px;
}
.card-role {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.card-copy {
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* Testimonials */

.quote-mark {
  font-family: 'Marcellus', serif;
  font-size: 44px;
  line-height: 0.6;
  color: var(--rust);
  margin-bottom: 16px;
}
.quote-copy {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.quote-name { font-size: 14px; font-weight: 700; }
.quote-role { font-size: 12.5px; color: var(--faint); }

.card--quote { padding: 28px; }

.quote-byline { display: flex; align-items: center; gap: 12px; }
.quote-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

/* ---------- Home highlights (stats / specialties / availability) ---------- */

.home-highlights {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 30px 32px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Marcellus', serif;
  font-size: 32px;
  line-height: 1.05;
  color: var(--teal);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Specialties chips */
.specialties { text-align: center; }
.specialties-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}
.specialties-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
}

/* Availability banner */
.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 32px;
  background: var(--teal);
  border-radius: 18px;
  color: var(--cream);
}
.availability-copy { flex: 1 1 260px; }
.availability-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 20px;
}
.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7FD1A6;
  box-shadow: 0 0 0 4px rgba(127, 209, 166, 0.25);
  flex: 0 0 auto;
}
.availability-detail {
  font-size: 14px;
  color: #D9C79A;
  margin-top: 8px;
}
.availability-cta {
  flex: 0 0 auto;
  background: var(--cream);
  color: var(--teal);
  text-decoration: none;
}
.availability-cta:hover { background: #fff; color: var(--teal-dark); }

/* Intro video */
.intro-video {
  max-width: 1140px;
  margin: 40px auto 0;
  padding: 0 32px;
}
.intro-video-frame {
  aspect-ratio: 16 / 9;
  background: #141210;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(94, 72, 40, 0.12);
}
.intro-video-frame iframe,
.intro-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.intro-video-caption {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-align: center;
  margin-top: 12px;
}

/* Sample lesson-plan download */
.lesson-plan { margin-top: 22px; }
.lesson-plan-link { display: inline-block; text-decoration: none; }

/* ---------- Split sections (languages / credentials / contact) ---------- */

.split {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 56px;
  align-items: start;
}
.split--languages {
  padding: 76px 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.split--credentials {
  padding: 76px 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.split--contact {
  padding: 80px 32px 88px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Languages */

.lang-list { display: flex; flex-direction: column; gap: 22px; }
.lang-items { display: flex; flex-direction: column; gap: 22px; }

.lang-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lang-name { font-size: 15px; font-weight: 700; }
.lang-native { font-weight: 500; color: var(--faint); }
.lang-level {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
}
.lang-track {
  height: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}
.lang-footnote { font-size: 13px; color: var(--faint); }

/* Philosophy */

.philosophy {
  max-width: 840px;
  margin: 0 auto;
  padding: 88px 32px;
  text-align: center;
}
.philosophy-quote {
  font-family: 'Marcellus', serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.4;
  color: var(--cream);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.philosophy-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(250, 245, 236, 0.72);
  margin: 0;
  text-wrap: pretty;
}

/* Credential stamps */

.stamps {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stamp {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px dashed;
  border-color: inherit;
  border-radius: 50%;
  opacity: 0.55;
}
.stamp-title { font-family: 'Marcellus', serif; font-size: 24px; }
.stamp-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.stamp--rust { border-color: var(--rust); }
.stamp--rust .stamp-title { color: var(--rust); }
.stamp--teal { border-color: var(--teal); }
.stamp--teal .stamp-title { color: var(--teal); }
.stamp--gold { border-color: var(--gold); }
.stamp--gold .stamp-title { color: var(--gold); }

/* ---------- Gallery (rendered from Firestore, hidden when empty) ---------- */

.gallery-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 32px 72px;
}
.gallery-section[hidden] { display: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  font-size: 12.5px;
  color: var(--faint);
  padding: 10px 14px;
}
.gallery-item figcaption:empty { display: none; }

/* ---------- Contact ---------- */

.contact-email {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  position: relative;
  display: inline-block;
  margin-top: 12px;
}
.contact-meta { font-size: 13px; color: var(--faint); margin-top: 10px; }

.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--cream-sheet);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }

.form-note {
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}
.form-status {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--error); }
.form-status:empty { display: none; }

/* ---------- Résumé ---------- */

.resume-wrap {
  background: var(--sand-deep);
  padding: 48px 32px 96px;
}
.resume-inner { max-width: 880px; margin: 0 auto; }

.resume-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.sheet {
  background: var(--cream-sheet);
  border: 1px solid #E0D2B4;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(94, 72, 40, 0.10);
  padding: 64px 68px;
}

.sheet-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.sheet-name {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 40px;
  margin: 0 0 8px;
}
.sheet-tagline {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 10px;
}
.sheet-contact { font-size: 13px; color: var(--muted); }

.sheet-section { margin-bottom: 28px; }
.sheet-section--last { margin-bottom: 0; }

.sheet-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.sheet-section:has(.job) .sheet-heading { margin-bottom: 14px; }

.sheet-copy {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.job { margin-bottom: 20px; }
.job--last { margin-bottom: 0; }
.sheet-section .job:last-child { margin-bottom: 0; }

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.job-title { font-size: 15.5px; font-weight: 700; }
.job-dates {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.job-org {
  font-size: 13.5px;
  color: var(--faint);
  margin: 2px 0 8px;
}
.job-points {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.edu-degree { font-size: 14.5px; }
.edu-dates { font-size: 12px; font-weight: 700; color: var(--teal); }

.sheet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Certifications ---------- */

.certifications-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.certifications-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 12px;
}
.certifications-lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 60ch;
  text-wrap: pretty;
}

.cert-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 10px;
}
.cert-title {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  margin-bottom: 4px;
}
.cert-issuer {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.cert-verify {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 12px;
}

/* ---------- Videos ---------- */

.videos-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.videos-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 12px;
}
.videos-lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* Lock card */

.lock-card {
  max-width: 440px;
  margin: 24px auto 40px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
}
.lock-shackle {
  width: 26px;
  height: 20px;
  border: 3px solid var(--teal);
  border-bottom: none;
  border-radius: 13px 13px 0 0;
  margin: 0 auto;
}
.lock-body {
  width: 44px;
  height: 34px;
  background: var(--teal);
  border-radius: 8px;
  margin: -2px auto 20px;
}
.lock-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lock-sub { font-size: 13.5px; color: var(--faint); margin-bottom: 22px; }

.lock-card input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--cream-sheet);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  text-align: center;
  margin-bottom: 12px;
}
.lock-card input:focus { border-color: var(--teal); }

.pw-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  margin-top: 12px;
}

/* Unlocked state */

.videos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.unlocked-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
}
.btn-lock {
  background: none;
  border: 1px solid var(--line-input);
  color: var(--faint);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
}
.btn-lock:hover { border-color: var(--rust); color: var(--rust); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.video-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
}
.btn-replace {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  padding: 2px 4px;
}
.btn-replace:hover { color: var(--rust-darker); }

.video-embed {
  aspect-ratio: 16 / 9;
  background: #141210;
  border-radius: 12px;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-caption {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--faint);
  margin-top: 10px;
  padding: 6px 8px;
  outline: none;
}
.video-caption:hover { border-color: var(--line); }
.video-caption:focus { border-color: var(--teal); background: var(--cream-sheet); color: var(--ink); }

.video-empty {
  aspect-ratio: 16 / 9;
  border: 2px dashed #D8C7A6;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #F7F0DF 0 10px, #F1E7D2 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.video-empty-hint {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12px;
  color: var(--faint);
}

.video-add-row { display: flex; gap: 10px; }
.video-add-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--cream-sheet);
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.video-add-row input:focus { border-color: var(--teal); }
.btn-add {
  background: var(--teal);
  color: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
}
.btn-add:hover { background: var(--teal-dark); }

.video-bad-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--error);
  margin-top: 8px;
}

.videos-footnote { font-size: 13px; color: var(--faint); margin-top: 24px; }

.videos-empty {
  border: 2px dashed #D8C7A6;
  border-radius: 14px;
  background: var(--cream-card);
  padding: 48px 24px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--faint);
}

.video-caption-text {
  font-size: 13px;
  color: var(--faint);
  margin-top: 10px;
}

/* ---------- Admin draft preview banner ---------- */

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--gold);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--faint); }
.footer-route {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.footer-email { font-size: 13px; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-top: 56px;
  }
  .hero-photo {
    justify-self: center;
    max-width: 340px;
  }
  .badge--bangkok { left: -16px; }
  .badge--seoul { left: -24px; }
  .stamps { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding-top: 14px;
    gap: 0;
  }
  .tab { padding: 12px 12px 14px; }
  .sheet { padding: 40px 28px; }
  .skills-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */

@media print {
  [data-print-hide] { display: none !important; }
  body { background: #fff; }
  .resume-wrap { background: #fff; padding: 0; }
  [data-print-sheet] {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
  }
  .job, .sheet-section { break-inside: avoid; }
}

/* Contact-form spam trap — kept off-screen rather than display:none so naive bots still fill it. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
