/* =========================================================
   Kukkik Tyler Monk — Tribute Site
   Palette: deep teal, soft cream, Thai gold, rose blush
   ========================================================= */

:root {
  --teal-950: #0a2a2b;
  --teal-900: #0f3d3e;
  --teal-800: #145255;
  --teal-700: #1a6a6d;
  --teal-100: #e6f3f3;
  --cream: #faf6ef;
  --cream-dark: #f0e8d8;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-dark: #9a7a2e;
  --rose: #c4787a;
  --rose-soft: #f5e6e6;
  --ink: #1a2424;
  --ink-soft: #3d4f4f;
  --muted: #5c6e6e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 61, 62, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 61, 62, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --narrow: 760px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", "Noto Sans Thai", system-ui, sans-serif;
  --font-thai: "Noto Sans Thai", "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-dark);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-nav.scrolled {
  border-bottom-color: rgba(15, 61, 62, 0.08);
  box-shadow: 0 4px 20px rgba(15, 61, 62, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal-900);
}

.nav-cta {
  background: var(--teal-900) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--teal-800) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 61, 62, 0.15);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(201, 168, 76, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(15, 61, 62, 0.1), transparent 50%),
    linear-gradient(165deg, #faf6ef 0%, #f3ebe0 45%, #e8f0f0 100%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--teal-950);
}

.hero-thai {
  font-family: var(--font-thai);
  font-size: 1.05rem;
  color: var(--rose);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15, 61, 62, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-900);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(15, 61, 62, 0.25);
}

.btn-primary:hover {
  background: var(--teal-800);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border: 1.5px solid rgba(15, 61, 62, 0.25);
}

.btn-ghost:hover {
  border-color: var(--teal-900);
  background: rgba(15, 61, 62, 0.04);
  color: var(--teal-900);
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portrait-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--teal-900);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, var(--teal-800), var(--teal-950));
  color: var(--gold-light);
  text-align: center;
  padding: 2rem;
}

.portrait-initial {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.portrait-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
  color: var(--cream);
}

.portrait-placeholder code {
  font-size: 0.78rem;
  color: var(--gold-light);
}

.portrait-badge {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.portrait-badge strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-900);
}

.portrait-badge span {
  font-size: 0.82rem;
  color: var(--muted);
}

.portrait-caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 280px;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--teal-900);
  color: var(--cream);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stats-grid.stats-five {
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.88rem;
  opacity: 0.88;
  line-height: 1.4;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f3ebe0 0%, var(--cream) 100%);
}

.section-intro {
  margin-bottom: 2rem;
}

.section-intro.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto  auto;
  margin-bottom: 2.75rem;
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.65rem;
}

.eyebrow.light {
  color: var(--gold-light);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal-950);
  margin: 0 0 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

.section-lead.light {
  color: rgba(250, 246, 239, 0.85);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

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

.pullquote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--teal-900);
  line-height: 1.4;
}

.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Context banners ---------- */
.context-banner {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-800));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.context-banner p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(250, 246, 239, 0.95);
}

.context-banner strong {
  color: var(--gold-light);
}

.context-banner.soft {
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid rgba(15, 61, 62, 0.08);
  border-left: 4px solid var(--gold);
}

.context-banner.soft p {
  color: var(--ink-soft);
}

.context-banner.soft strong {
  color: var(--teal-900);
}

.sub-h {
  display: block;
  font-family: var(--font-thai);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.timeline .time small {
  display: block;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* ---------- Experience ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
}

.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(15, 61, 62, 0.07);
  box-shadow: var(--shadow-sm);
}

.exp-card.featured {
  grid-row: span 2;
  background: linear-gradient(165deg, var(--teal-900), var(--teal-800));
  color: var(--cream);
  border: none;
}

.exp-card.featured h3,
.exp-card.featured p,
.exp-card.featured li {
  color: var(--cream);
}

.exp-card.featured .exp-org {
  color: var(--gold);
}

.exp-card.featured .exp-dates {
  color: rgba(250, 246, 239, 0.75);
}

.exp-card.featured .check-list li::before {
  color: var(--gold);
}

.exp-org {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.5rem;
}

.exp-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--teal-900);
  line-height: 1.2;
}

.exp-dates {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}

.exp-card p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.exp-quote {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 246, 239, 0.2);
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-style: italic;
  line-height: 1.4;
}

.exp-card.featured .exp-quote {
  border-top-color: rgba(201, 168, 76, 0.35);
}

.exp-sign {
  font-size: 0.85rem !important;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0 !important;
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (min-width: 961px) {
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(15, 61, 62, 0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--gold);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cert-abbr {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-900);
  background: var(--teal-100);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--teal-900);
}

.cert-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.meta-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.meta-list li {
  font-size: 0.95rem;
  color: rgba(250, 246, 239, 0.9);
  padding-left: 0;
}

.meta-list strong {
  color: var(--gold-light);
  font-weight: 600;
  margin-right: 0.25rem;
}

.edu-grid.edu-main {
  grid-template-columns: 1.35fr 1fr;
}

.edu-card.wide {
  /* featured already spans nicely */
}

.check-list.light li {
  color: rgba(250, 246, 239, 0.92);
}

.check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 61, 62, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  color: var(--teal-900);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.callout {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--rose-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 120, 122, 0.2);
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--teal-900);
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.25rem;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(15, 61, 62, 0.07);
  box-shadow: var(--shadow-sm);
}

.edu-card.featured {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-800));
  color: var(--cream);
  border: none;
}

.edu-card.featured h3,
.edu-card.featured p {
  color: var(--cream);
}

.edu-card.featured .edu-code {
  color: var(--gold);
}

.edu-card.featured .thai-note {
  color: var(--gold-light);
}

.edu-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.75rem;
}

.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.65rem;
  line-height: 1.2;
  color: var(--teal-900);
}

.edu-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.thai-note {
  font-family: var(--font-thai);
  font-size: 0.92rem;
  margin: 0 0 1rem !important;
  opacity: 0.9;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal-700));
  opacity: 0.45;
}

.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: calc(7.5rem - 5px);
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.4);
}

.time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.03em;
  padding-top: 0.2rem;
  text-align: right;
}

.event h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--teal-950);
}

.event p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Names ---------- */
.names-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.name-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(15, 61, 62, 0.07);
  box-shadow: var(--shadow-sm);
}

.name-lang {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.5rem;
}

.name-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: var(--teal-900);
}

.name-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.thai-inline {
  font-family: var(--font-thai);
  color: var(--rose) !important;
  font-weight: 500;
  margin-bottom: 0.4rem !important;
}

/* ---------- Values ---------- */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--teal-900);
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Connect ---------- */
.section-connect {
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(201, 168, 76, 0.15), transparent 50%),
    linear-gradient(160deg, var(--teal-950), var(--teal-800));
  color: var(--cream);
  text-align: center;
}

.section-connect h2 {
  color: var(--cream);
}

.center {
  text-align: center;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.1);
  border: 1px solid rgba(250, 246, 239, 0.25);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-950);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-950);
  color: rgba(250, 246, 239, 0.75);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.footer-inner p {
  margin: 0.15rem 0;
}

.footer-thai {
  font-family: var(--font-thai);
  color: var(--gold-light);
  font-size: 0.88rem;
}

.footer-note {
  max-width: 320px;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-portrait {
    order: -1;
  }

  .portrait-frame {
    width: min(100%, 300px);
  }

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

  .card-grid.three,
  .card-grid.four,
  .edu-grid,
  .edu-grid.edu-main,
  .exp-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .exp-card.featured {
    grid-row: auto;
  }

  .names-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0.35rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-left: 1.75rem;
  }

  .timeline li::after {
    left: 0;
  }

  .time {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 61, 62, 0.1);
    box-shadow: var(--shadow);
    gap: 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(15, 61, 62, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .stats-grid,
  .stats-grid.stats-five {
    gap: 1.25rem;
  }
}

@media (max-width: 1100px) {
  .stats-grid.stats-five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-tags {
    gap: 0.4rem;
  }

  .tag {
    font-size: 0.75rem;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(201, 168, 76, 0.16), transparent 55%),
    linear-gradient(165deg, #faf6ef 0%, #f3ebe0 50%, #e8f0f0 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--teal-950);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.page-hero-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-700);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

/* ---------- Nursing preview (home) ---------- */
.nursing-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.nursing-preview-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  text-decoration: none;
  aspect-ratio: 4 / 3;
  position: relative;
}

.nursing-preview-grid a:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 280px;
}

.nursing-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.nursing-preview-grid a:hover img {
  transform: scale(1.04);
}

.nursing-preview-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--teal-900) !important;
  color: var(--cream);
  font-weight: 600;
  aspect-ratio: 4 / 3;
}

.nursing-preview-more strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.nursing-preview-more span {
  font-size: 0.88rem;
  opacity: 0.9;
}

.nursing-preview-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Full gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item.tall {
  aspect-ratio: 3 / 4;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.05);
}

.gallery-open:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gallery-privacy {
  margin: 2rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 42, 43, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-figure figcaption {
  color: rgba(250, 246, 239, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 36rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 246, 239, 0.12);
  color: var(--cream);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(250, 246, 239, 0.22);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 246, 239, 0.12);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(250, 246, 239, 0.22);
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .nursing-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nursing-preview-grid a:first-child {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 560px) {
  .nursing-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .lightbox {
    padding: 3rem 0.75rem;
  }

  .lightbox-nav.prev {
    left: 0.35rem;
  }

  .lightbox-nav.next {
    right: 0.35rem;
  }
}

/* ---------- Certificates / credentials page ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cred-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 61, 62, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-card.diploma-card {
  max-width: 820px;
  margin-inline: auto;
}

.cred-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cred-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--teal-950);
  line-height: 1.2;
}

.cred-sub {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.cred-abbr {
  flex-shrink: 0;
  min-width: 3.4rem;
  height: 3.4rem;
  padding: 0 0.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: var(--teal-900);
}

.cred-abbr.bls { background: #1e4d8c; }
.cred-abbr.acls { background: #a63d3d; }
.cred-abbr.pals { background: #4a3d8c; }
.cred-abbr.nrp { background: #2d6b4f; }
.cred-abbr.code { background: var(--gold-dark); color: var(--cream); }

.cred-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.cred-meta dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.cred-meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.cred-blurb {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.cred-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cred-photos.single {
  grid-template-columns: 1fr;
}

.cred-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(15, 61, 62, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}

.cred-photo.diploma {
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
}

.cred-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cred-photo:hover img,
.cred-photo:focus-visible img {
  transform: scale(1.03);
}

.cred-photo:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.cred-photo-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 42, 43, 0.72);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 900px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cred-photos {
    grid-template-columns: 1fr;
  }

  .cred-card {
    padding: 1.15rem;
  }
}
