/* =========================================================
   CMU FINE ARTS — Creative Photography
   ========================================================= */
:root {
  --ink: #0e0e10;
  --ink-2: #1a1a1f;
  --ink-3: #232329;
  --paper: #f5f5f3;
  --paper-2: #efeeea;
  --line: #e7e6e2;
  --line-dark: #2a2a31;
  --muted: #8c8c93;
  --muted-2: #b6b6bc;
  --accent: #ed1c24;
  --accent-2: #f56b71;
  --accent-soft: #fde8ea;
  --accent-bg: #fdebec;
  --text-light: #f5f5f3;
  --text-light-2: #c8c8cf;
  --green: #22c55e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11";
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ── Thai typography: reset letter-spacing on all content elements ──────────
   letter-spacing > 0 breaks Thai script (gaps appear between linked chars).
   Keep it ONLY on all-caps English UI (nav, eyebrows, stat labels, buttons).
   ─────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
p, li, td, th, blockquote, figcaption,
.proj-section-h,
.proj-desc-body,
.proj-title,
.proj-subtitle,
.proj-author-name,
.proj-author-th,
.ab-section-h,
.ab-h,
.ab-p,
.kicker-h,
.feat-t,
.feat-sub,
.tl-title,
.tl-place,
.work-inner h2,
.news-card h3,
.news-card p,
.exh-info h3,
.exh-info p,
.exh-loc,
.section-title,
.footer-blurb,
.footer-contact li,
.site-search-label,
.hero-thai,
.hero-desc,
.sc-hero-title,
.sc-hero-sub,
.sc-artist-name,
.sc-artist-name-th,
.sc-card-title,
.sc-card-author,
.port-meta h3,
.user-menu-email,
.site-drawer-user-email,
.step-h h2,
.step-h p,
.field label,
.fp-ok-t,
.fp-ok-s {
  letter-spacing: 0 !important;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.app { width: 100%; min-width: 0; }

/* top tab bar (prototype nav) */
.top-tab {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; gap: 4px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}
.top-tab button {
  border: 0; background: transparent; padding: 6px 14px; font-size: 11px;
  letter-spacing: .12em; font-weight: 600; color: #555; border-radius: 999px;
}
.top-tab button.is-active { background: var(--ink); color: white; }

/* ===================================================================
   HEADER — sticky, transparent-over-hero → solid-on-scroll
   =================================================================== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;

  /* Default: fully transparent — text is always white for readability */
  background: transparent;
  color: #fff;

  /* Smooth transitions for every property we animate */
  transition:
    background   .35s ease,
    box-shadow   .35s ease,
    padding      .25s ease,
    backdrop-filter .35s ease;
}

/* Dark vignette gradient so white text stays sharp over any hero image.
   Fades out on scroll when the solid bar takes over. */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* ── Scrolled state: solid opaque bar ── */
.site-header.is-scrolled {
  padding: 14px 56px;
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 6px 28px rgba(0,0,0,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* Kill the gradient vignette once we have a solid bar */
.site-header.is-scrolled::before { opacity: 0; }

/* Light theme scrolled: white bar, dark ink */
.site-header.is-light.is-scrolled {
  background: rgba(255,255,255,.97);
  color: var(--ink, #111);
}
/* Dark theme scrolled: near-black bar, white text */
.site-header.is-dark.is-scrolled {
  background: rgba(8,8,8,.97);
  color: #fff;
}

/* ── Logo ── */
.logo { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; flex-shrink: 0; }
/* .logo-img sizing is enforced via inline style in logo.php so it is always applied
   regardless of CSS cache. This rule is a fallback only. */
.logo-img { display: block !important; height: 38px !important; width: auto !important;
            max-width: 200px !important; object-fit: contain !important; flex-shrink: 0; }
.logo-mark { line-height: 1.05; font-weight: 800; letter-spacing: .02em; }
.logo-cmu { font-size: 14px; }
.logo-fa { font-size: 14px; }
.logo-divider { width: 1px; height: 28px; background: currentColor; opacity: .35; }
.logo-sub { font-size: 11px; line-height: 1.25; opacity: .7; font-weight: 500; }

/* ── Nav links ── */
.site-nav { display: flex; gap: 38px; }
.site-nav-link {
  font-size: 12px; letter-spacing: .18em; font-weight: 600; text-decoration: none;
  color: #fff; opacity: .85; padding: 8px 0; position: relative; cursor: pointer;
  transition: color .2s, opacity .2s;
}
.site-nav-link:hover { opacity: 1; }

/* Active — transparent state: white underline */
.site-nav-link.is-active {
  opacity: 1; color: #fff;
}
.site-nav-link.is-active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: #fff; border-radius: 1px;
}

/* Active — scrolled light: accent red */
.is-light.is-scrolled .site-nav-link { color: var(--ink, #111); }
.is-light.is-scrolled .site-nav-link:hover { opacity: 1; color: var(--accent, #ed1c24); }
.is-light.is-scrolled .site-nav-link.is-active { color: var(--accent, #ed1c24); }
.is-light.is-scrolled .site-nav-link.is-active::after { background: var(--accent, #ed1c24); }

/* Active — scrolled dark: white */
.is-dark.is-scrolled .site-nav-link { color: rgba(255,255,255,.8); }
.is-dark.is-scrolled .site-nav-link.is-active { color: #fff; }
.is-dark.is-scrolled .site-nav-link.is-active::after { background: var(--accent-2, #fff); }

/* ── Tool icons ── */
.site-tools { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: 0; color: currentColor; opacity: .85; border-radius: 50%;
  transition: opacity .2s, background .2s;
  cursor: pointer;
}
.icon-btn:hover { opacity: 1; background: rgba(255,255,255,.14); }
.is-light.is-scrolled .icon-btn:hover { background: rgba(0,0,0,.06); }

/* ===== HOME ===== */
.page-home { background: var(--ink); color: var(--text-light); }

.hero {
  position: relative; height: 620px; overflow: hidden;
  background: #050505;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.65) 45%, rgba(5,5,5,.2) 75%, transparent 100%);
}
.hero-content {
  position: relative; padding: 180px 56px 0; max-width: 800px;
}
.hero-thai { font-size: 14px; opacity: .85; margin-bottom: 18px; font-weight: 300; }
.hero-title {
  font-size: 76px; line-height: 1.02; font-weight: 800; letter-spacing: -.01em;
  margin: 0 0 28px; display: flex; flex-direction: column; gap: 2px;
}
.hero-accent {
  background: linear-gradient(90deg, #f56b71, #ed1c24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  font-size: 14px; line-height: 1.7; opacity: .8; max-width: 480px; margin: 0 0 32px;
  font-weight: 300;
}
.btn-dark {
  background: var(--ink); color: white; border: 1px solid rgba(255,255,255,.12);
  padding: 14px 22px; font-size: 11px; letter-spacing: .18em; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px; border-radius: 2px;
}
.btn-dark:hover { background: var(--ink-2); }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-accent {
  background: var(--accent, #ed1c24); color: #fff; border: 1px solid transparent;
  padding: 14px 22px; font-size: 11px; letter-spacing: .18em; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px; border-radius: 2px;
  text-decoration: none; transition: background .15s;
}
.btn-accent:hover { background: #c4151c; }
.btn-header-cta {
  background: var(--accent, #ed1c24); color: #fff;
  padding: 9px 16px; font-size: 11px; letter-spacing: .16em; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; border-radius: 2px;
  text-decoration: none; transition: background .15s; text-transform: uppercase;
}
.btn-header-cta:hover { background: #c4151c; }
/* CTA is always red — stands out on both transparent and solid states */
.btn-header-cta { box-shadow: 0 2px 8px rgba(237,28,36,.25); }

.hero-rail {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: white;
}
.rail-label { font-size: 10px; letter-spacing: .2em; opacity: .8; font-weight: 600; }
.rail-icons { display: flex; flex-direction: column; gap: 14px; }
.rail-icons.dark { color: var(--ink); }
.rail-icons a { color: currentColor; opacity: .85; cursor: pointer; }
.rail-icons a:hover { opacity: 1; }
.rail-line { width: 1px; height: 60px; background: rgba(255,255,255,.5); margin: 8px 0; }
.rail-line.dark { background: rgba(0,0,0,.3); }
.rail-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .2em; opacity: .6;
  color: inherit; text-decoration: none; cursor: pointer;
  transition: opacity .2s;
}
.rail-scroll:hover { opacity: 1; }
.rail-label.dark { color: var(--ink); opacity: .8; }

/* stats */
.stats {
  background: var(--ink); padding: 36px 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.stats::before, .stats::after {
  content: ""; position: absolute; top: 18px; bottom: 18px;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 14px; bottom: 14px;
  width: 1px; background: rgba(255,255,255,.08);
}
.stat-n { font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.stat-l { font-size: 11px; letter-spacing: .22em; opacity: .65; margin-top: 6px; font-weight: 500; }

/* section heads */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 56px 56px 24px;
}
.section-head.light { padding: 64px 56px 28px; align-items: flex-end; }
.eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.section-title {
  font-size: 30px; font-weight: 800; letter-spacing: -.005em; margin: 0; color: white;
}
.section-title.dark { color: var(--ink); }
.view-all {
  font-size: 11px; letter-spacing: .18em; font-weight: 600; color: #b6b6bc;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.view-all.dark { color: var(--ink); }
.view-all:hover { color: var(--accent-2); }

/* exhibitions */
.exhibitions { padding-bottom: 56px; }
.exh-rail-wrap { position: relative; padding: 0 56px; }
.exh-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.exh-card {
  background: var(--ink-2); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line-dark);
}
.exh-img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.exh-body { padding: 18px 18px 20px; display: flex; gap: 14px; }
.exh-date {
  display: flex; flex-direction: column; gap: 6px; min-width: 44px;
  border-right: 1px solid rgba(255,255,255,.15); padding-right: 14px;
}
.exh-date-row { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.exh-m { font-size: 10px; letter-spacing: .15em; opacity: .65; font-weight: 600; color: #fff; }
.exh-d { font-size: 22px; font-weight: 700; color: #fff; }
.exh-date-sep { width: 14px; height: 1px; background: rgba(255,255,255,.2); margin: 2px 0; }
.exh-year { font-size: 10px; opacity: .55; margin-top: 4px; color: #fff; }
.exh-info h3 { font-size: 14px; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; line-height: 1.25; color: #fff; }
.exh-info p { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.65); margin: 0 0 8px; font-weight: 300; }
.exh-loc { font-size: 10px; color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.exh-arrow {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: white; display: grid; place-items: center;
}

/* ================================================================
   Latest Projects — dark editorial grid
   ================================================================ */
.latest-projects {
  background: #0d0d0d;
  color: #fff;
  padding-bottom: 0;
}

/* Section head overrides for dark bg */
.latest-projects .section-head { padding-bottom: 20px; }
.latest-projects .eyebrow { color: var(--accent, #ed1c24); }
.latest-projects .section-title.dark { color: #fff; }
.latest-projects .view-all.dark {
  color: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 2px;
  letter-spacing: .16em;
}
.latest-projects .view-all.dark:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* Filter pills — dark themed */
.filter-pills { display: flex; gap: 8px; padding: 0 56px 28px; flex-wrap: wrap; }
.pill {
  padding: 7px 18px; font-size: 11px; letter-spacing: .18em; font-weight: 600;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: transparent;
  color: rgba(255,255,255,.45); cursor: pointer; font-family: inherit;
  transition: background .18s, color .18s, border-color .18s;
}
.pill.is-active {
  background: var(--accent, #ed1c24);
  color: #fff;
  border-color: transparent;
}
.pill:hover:not(.is-active) { background: rgba(255,255,255,.08); color: #fff; }

/* Grid — edge-to-edge, tight gap */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0;
}

/* Tile wrapper — clip the zoom */
.proj-tile-wrap { overflow: hidden; display: block; }

/* Tile — portrait ratio, scale-zoom hover */
.project-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.project-tile:hover { transform: scale(1.06); }

/* Info overlay — always visible at bottom */
.project-tile-hover {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.28) 38%,
    transparent 62%
  );
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 14px;
  opacity: 1;
  transition: background .3s;
}
.project-tile:hover .project-tile-hover {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.4) 45%,
    transparent 70%
  );
}
.project-tile-title {
  display: block; color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; line-height: 1.25; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-tile-author {
  display: block; color: rgba(255,255,255,.65); font-size: 10.5px;
  letter-spacing: .08em; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Bottom CTA strip */
.latest-projects-cta {
  text-align: center;
  padding: 36px 0 56px;
}
.latest-projects-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  padding: 14px 32px; border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.latest-projects-cta a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

/* news */
.news { background: var(--ink); padding-bottom: 64px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 56px; }
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; border-radius: 2px; }
.news-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.news-date { font-size: 11px; color: var(--text-light-2); margin-bottom: 12px; }
.news-body p { font-size: 12px; color: var(--text-light-2); line-height: 1.7; margin: 0 0 14px; font-weight: 300; }
.read-more { font-size: 11px; letter-spacing: .18em; font-weight: 600; color: white; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* home footer */
.footer-home {
  position: relative; background: var(--ink); padding: 64px 56px 28px; color: var(--text-light);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}
.footer-home-bg {
  position: absolute; left: 0; top: 0; bottom: 0; width: 22%;
  background-size: cover; background-position: center; opacity: .25;
}
.footer-home-inner {
  position: relative; display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 48px;
}
.footer-col h4 { font-size: 12px; letter-spacing: .18em; margin: 18px 0 18px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 12px; color: var(--text-light-2); cursor: pointer; }
.footer-col ul li:hover { color: white; }
/* Footer brand name (text-only, replaces logo image) */
.footer-brand-name { margin-bottom: 14px; }
.footer-brand-name .footer-brand-main {
  font-size: 15px; font-weight: 900; letter-spacing: .12em;
  color: #fff; text-transform: uppercase; line-height: 1.1;
}
.footer-brand-name .footer-brand-sub {
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em;
  color: rgba(255,255,255,.45); text-transform: uppercase; margin-top: 4px;
}
.footer-brand-name.is-light .footer-brand-main { color: var(--ink, #111); }
.footer-brand-name.is-light .footer-brand-sub  { color: rgba(0,0,0,.4); }

.footer-brand .footer-blurb { font-size: 11.5px; line-height: 1.85; color: var(--text-light-2); margin: 14px 0 0; font-weight: 300; }
.footer-contact { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.footer-contact li { font-size: 12px; color: var(--text-light-2); display: inline-flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 14px; margin-bottom: 18px; }
.footer-social a { color: var(--text-light-2); cursor: pointer; }
.footer-social a:hover { color: white; }
.btn-outline-light {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,.18);
  padding: 10px 16px; font-size: 11px; letter-spacing: .18em; font-weight: 600; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-home-base {
  position: relative; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light-2);
}

/* ===== PROFILE ===== */
.page-profile, .page-portfolio, .page-form { background: var(--paper); color: var(--ink); }

.hero-portrait, .hero-portfolio {
  position: relative; height: 540px; overflow: hidden;
}
.hero-portrait-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
}
.hero-portrait-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,245,243,.95) 0%, rgba(245,245,243,.7) 35%, rgba(245,245,243,.15) 60%, transparent 100%);
}
.hero-portrait-content {
  position: relative; padding: 130px 56px 0; max-width: 720px;
}
.hp-thai { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.hp-title { font-size: 80px; line-height: 1; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.hp-role { font-size: 18px; color: var(--accent); margin-bottom: 24px; font-weight: 500; }
.hp-desc { font-size: 13px; line-height: 1.8; color: #4a4a52; margin-bottom: 28px; font-weight: 400; }
.hp-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }


.btn-light-outline {
  background: white; color: var(--ink); border: 1px solid var(--line);
  padding: 14px 22px; font-size: 11px; letter-spacing: .18em; font-weight: 600; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hp-rail {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--ink);
}

/* portfolio hero */
.hero-portfolio .hero-portrait-bg { background-position: center 25%; }
.hero-portfolio-content { position: relative; padding: 110px 56px 0; max-width: 720px; }
.crumbs { font-size: 12px; letter-spacing: .18em; color: #555; font-weight: 600; margin-bottom: 24px; }
.cb-sep { margin: 0 10px; opacity: .5; }
.cb-active { color: var(--ink); }
.hp-tagline { font-size: 16px; color: var(--accent); margin: 12px 0 0; font-weight: 500; }

/* about grid */
.about-grid {
  display: grid; grid-template-columns: 280px 1.4fr 1fr; gap: 40px;
  padding: 64px 56px;
  background: white;
}
.about-photo { aspect-ratio: 1 / 1.1; background-size: cover; background-position: center; border-radius: 2px; filter: grayscale(.1); }

/* ── Profile placeholders — shown when user has not uploaded a photo ── */
.hero-portrait-bg--placeholder {
  background: linear-gradient(160deg, #0e0e10 0%, #1c1c22 45%, #2a1719 80%, #1c1019 100%);
}
.about-photo--placeholder {
  background: linear-gradient(145deg, #1a1a1f 0%, #2a1719 55%, #3d1a1e 100%);
  display: flex; align-items: center; justify-content: center;
  filter: none;
}
.about-photo--placeholder::after {
  content: attr(data-initials);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: .06em;
  line-height: 1;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
}
/* Skills / Experience decorative panel — no project photos yet */
.section-photo--placeholder {
  background: linear-gradient(145deg, #0e0e10 0%, #1a1a1f 40%, #221214 75%, #1a0e10 100%);
}

.kicker-h { font-size: 18px; letter-spacing: .18em; font-weight: 700; margin: 0 0 4px; }
.kicker-underline { width: 32px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.ab-h { font-size: 14px; font-weight: 700; margin: 20px 0 10px; }
.ab-p { font-size: 13px; line-height: 1.8; color: #4a4a52; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { font-size: 13px; color: #3a3a40; display: flex; align-items: center; gap: 12px; }
.contact-list li svg { color: var(--accent); }
.contact-list li a {
  display: inline-flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.contact-list li a:hover { color: var(--accent); text-decoration: underline; }

/* skills */
.skills {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding: 64px 56px; background: var(--paper-2);
}
.skills-left { display: flex; flex-direction: column; gap: 24px; }
.ab-section-h { font-size: 18px; letter-spacing: .18em; font-weight: 700; margin: 0 0 18px; position: relative; padding-bottom: 8px; }
.ab-section-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--accent); }
.skills-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.skills-h { font-size: 11px; letter-spacing: .18em; font-weight: 700; margin: 0 0 16px; color: #555; }
.skill-bars { display: flex; flex-direction: column; gap: 14px; }
.skill-row { display: grid; grid-template-columns: 1fr 100px 36px; gap: 10px; align-items: center; }
.skill-n { font-size: 12px; }
.skill-track { width: 100%; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.skill-v { font-size: 11px; color: #777; text-align: right; }
.photo-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ps-tile {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  padding: 16px 8px; background: white; border-radius: 4px; border: 1px solid var(--line);
}
.ps-tile span { font-size: 11px; }
.ps-tile svg { color: var(--accent); }
.skills-photo {
  background-size: cover;
  background-position: center top;
  min-height: 360px;
  border-radius: 10px;
  align-self: stretch;
}

/* featured projects */
.featured { padding: 64px 56px; background: white; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 24px; }
.feat-card { cursor: pointer; }
.feat-img { position: relative; aspect-ratio: 3 / 3.4; background-size: cover; background-position: center; border-radius: 2px; margin-bottom: 14px; overflow: hidden; }
.feat-star { position: absolute; top: 8px; left: 8px; background: #ed1c24; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; z-index: 2; line-height: 1.4; }
.feat-meta { display: flex; gap: 14px; align-items: baseline; }
.feat-n { font-size: 11px; color: #999; font-weight: 600; }
.feat-t { font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.feat-sub { font-size: 11px; color: #777; line-height: 1.6; margin-top: 4px; padding-left: 26px; }

/* exp + awards */
.exp-section {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 0;
  background: var(--paper-2); padding: 64px 56px 64px;
}
.exp-block, .awards-block { padding: 0 24px 0 0; }
.awards-block { padding: 0 32px; border-left: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.tl-item { display: grid; grid-template-columns: 60px 20px 1fr; gap: 4px; align-items: flex-start; position: relative; }
.tl-year { font-size: 13px; font-weight: 700; padding-top: 1px; }
.tl-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin: 6px auto 0; position: relative; }
.tl-item:not(:last-child) .tl-dot::after { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 1px; height: 30px; background: var(--line); }
.tl-title { font-size: 13px; font-weight: 600; }
.tl-sub { font-size: 12px; color: #6a6a72; margin-top: 2px; }
.award-row { display: flex; gap: 14px; padding: 14px 0; }
.award-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.award-ic {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bg);
  display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
}
.award-t { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.award-s { font-size: 11px; color: #6a6a72; line-height: 1.6; }
.exp-photo {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  min-height: 300px;
  align-self: stretch;
}

/* work CTA */
.work-cta {
  position: relative; background: var(--ink); color: white;
  padding: 56px 56px; display: grid; grid-template-columns: 1fr 240px;
  align-items: center; gap: 40px; overflow: hidden;
}
.work-inner h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
.work-inner p { font-size: 13px; color: var(--text-light-2); line-height: 1.8; margin: 0 0 22px; font-weight: 300; }
.work-actions { display: flex; gap: 12px; }
.btn-purple {
  background: var(--accent); color: white; border: 0;
  padding: 12px 22px; font-size: 11px; letter-spacing: .18em; font-weight: 600;
  border-radius: 2px; display: inline-flex; align-items: center; gap: 12px;
}
.btn-purple:hover { background: #c41119; }

.qr-card {
  background: white; padding: 14px; border-radius: 4px; width: 200px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  color: var(--ink); margin-left: auto;
}
.qr-label { font-size: 10px; letter-spacing: .18em; font-weight: 700; text-align: center; }
.qr-link  { display: block; line-height: 0; }
.qr-img   {
  display: block; width: 168px; height: 168px;
  background: #fff; border-radius: 2px;
}
.qr-grid {
  display: grid; grid-template-columns: repeat(21, 1fr); width: 168px; height: 168px;
  background: white;
}
.qr-on { background: var(--ink); }
.qr-off { background: white; }

/* profile footer */
.footer-light {
  background: var(--ink); color: var(--text-light); padding: 36px 56px 22px;
}
.footer-light-inner {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1fr; gap: 32px; align-items: flex-start;
}
.footer-light-cols { display: contents; }
.footer-light-cols > div h4 { font-size: 11px; letter-spacing: .22em; margin: 6px 0 14px; }
.footer-light-cols > div ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-light-cols > div ul li { font-size: 11px; color: var(--text-light-2); cursor: pointer; }
.footer-light-social { display: flex; gap: 14px; align-items: center; justify-content: flex-end; padding-top: 12px; }
.footer-light-social a { color: var(--text-light-2); cursor: pointer; }
.footer-light-base {
  border-top: 1px solid var(--line-dark); margin-top: 24px; padding-top: 16px;
  display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light-2);
}

/* portfolio list */
.portfolio-list { padding: 48px 56px 64px; background: var(--paper); }
.port-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.port-tabs { display: flex; gap: 32px; }
.port-tab {
  border: 0; background: transparent; padding: 14px 0;
  font-size: 12px; letter-spacing: .18em; font-weight: 600; color: #6a6a72;
  position: relative;
}
.port-tab.is-active { color: var(--ink); }
.port-tab.is-active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent);
}
.sort { font-size: 11px; letter-spacing: .18em; font-weight: 600; color: #555; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 14px; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.port-card-wide { grid-column: 1 / -1; }
.port-img { background-size: cover; background-position: center; border-radius: 2px; }
.port-img-sq { aspect-ratio: 1 / 1; }
.port-img-wide { aspect-ratio: 16 / 7; }
.port-meta h3 { font-size: 15px; letter-spacing: .18em; font-weight: 700; margin: 18px 0 6px; }
.port-meta p { font-size: 12px; color: #6a6a72; margin: 0; line-height: 1.7; }

.load-more-wrap { text-align: center; margin-top: 48px; }
.btn-load {
  background: white; color: var(--ink); border: 1px solid var(--line);
  padding: 14px 36px; font-size: 11px; letter-spacing: .18em; font-weight: 600;
  border-radius: 2px; display: inline-flex; align-items: center; gap: 12px;
}

/* ===== FORM ===== */
.form-wrap {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  padding: 96px 32px 24px; background: var(--paper);
  max-width: 1320px; margin: 0 auto;
}
.form-side {
  position: sticky; top: 80px; align-self: flex-start;
  background: white; border: 1px solid var(--line); border-radius: 6px;
  padding: 24px 20px; max-height: calc(100vh - 100px);
}
.form-side-h { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.form-side-s { font-size: 11px; color: #6a6a72; line-height: 1.6; margin-bottom: 20px; }
.step-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.step-list::before {
  content: ""; position: absolute; left: 14px; top: 28px; bottom: 28px; width: 1px; background: var(--line);
}
.step-item {
  display: grid; grid-template-columns: 28px 1fr 16px; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 6px; cursor: pointer; position: relative; background: white;
}
.step-item:hover { background: #faf9f5; }
.step-item.is-active { background: var(--accent-bg); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: white; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #6a6a72;
  z-index: 1;
}
.step-item.is-active .step-num { background: var(--accent); color: white; border-color: var(--accent); }
.step-item.is-done .step-num { background: var(--green); color: white; border-color: var(--green); }
.step-t { font-size: 12px; font-weight: 700; color: var(--ink); }
.step-s { font-size: 10.5px; color: #8c8c93; margin-top: 2px; line-height: 1.4; }
.step-check { color: var(--green); }

.help-card {
  margin-top: 24px; padding: 14px; background: var(--accent-bg);
  border-left: 3px solid var(--accent); border-radius: 4px;
}
.help-h { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--accent); }
.help-card p { font-size: 11px; color: #4a4a52; line-height: 1.6; margin: 0; }

.form-main { display: flex; flex-direction: column; gap: 18px; }
.form-card {
  background: white; border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 32px;
}

/* ── Section image picker (me/profile #section-photos) ── */
.secpick-wrap { display: flex; flex-direction: column; gap: 28px; }
.secpick-group {}
.secpick-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
.secpick-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.secpick-item { position: relative; cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid #e5e7eb; transition: border-color .15s, box-shadow .15s; flex-shrink: 0; }
.secpick-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.secpick-item img { display: block; width: 96px; height: 72px; object-fit: cover; }
.secpick-item.is-active { border-color: #ed1c24; box-shadow: 0 0 0 2px rgba(237,28,36,.20); }
.secpick-item:hover { border-color: #f56b71; }
.secpick-item input:checked ~ img,
.secpick-item input:checked ~ .secpick-auto { outline: none; }
.secpick-item input:focus-visible ~ img { outline: 2px solid #ed1c24; }
.secpick-title { position: absolute; inset: 0; bottom: 0; height: 22px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; text-align: center; line-height: 1.2; top: auto; }
.secpick-auto { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; background: #f3f4f6; color: #6b7280; font-size: 11px; font-weight: 600; text-align: center; border-radius: 4px; }
.secpick-item.is-active .secpick-auto { background: #fef2f2; color: #ed1c24; }
/* JS-powered: clicking any label updates is-active */

.step-h { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.step-h-ic {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-bg);
  display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
}
.step-h h2 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.step-h p { font-size: 12px; color: #6a6a72; margin: 0; }

.profile-pic-row { margin-bottom: 24px; }
.profile-pic-label { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.profile-pic { display: flex; gap: 18px; align-items: center; }
.pp-circle {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: #e5e7eb;
  border: 2px solid var(--line); display: block;
}
/* Empty state — no photo yet */
.pp-circle.pp-empty {
  background-color: #f3f4f6;
  border: 2px dashed #d1d5db;
}
.pp-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  pointer-events: none;
}
.pp-cam {
  position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: white; display: grid; place-items: center;
  border: 3px solid white;
}
.pp-t { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.pp-s { font-size: 11px; color: #8c8c93; line-height: 1.5; }

.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.four { grid-template-columns: 1fr 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field-l { font-size: 11.5px; font-weight: 600; color: #3a3a40; }
.req { color: #ef4444; font-weight: 700; margin-left: 2px; }

.ff-input, .ff-textarea, .ff-select select {
  width: 100%; background: white; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; font-size: 12.5px; font-family: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.ff-input { display: flex; align-items: center; padding: 0 12px; height: 38px; }
.ff-input input {
  flex: 1; border: 0; background: transparent; outline: none; font-size: 12.5px;
  height: 36px; font-family: inherit; color: var(--ink);
}
.ff-with-ic svg { color: #8c8c93; margin-right: 8px; flex-shrink: 0; }
.ff-with-edit { padding-right: 4px; }
.ff-with-edit button { width: 28px; height: 28px; border-radius: 4px; background: transparent; border: 0; color: var(--accent); display: grid; place-items: center; }
.ff-textarea { padding: 10px 12px; resize: vertical; }
.ff-input:focus-within, .ff-textarea:focus, .ff-select select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }

.ff-select { position: relative; }
.ff-select select { appearance: none; padding-right: 36px; height: 38px; }
.ff-select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8c8c93; pointer-events: none; }

.ff-hint { font-size: 10.5px; color: #8c8c93; margin: 4px 0 12px; }

/* Admin form — URL section separator label */
.field-sep-label {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 700; color: #374151;
  padding: 14px 0 4px;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
}

/* Admin form — input with leading icon */
.input-with-icon {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 6px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-with-icon:focus-within {
  border-color: var(--accent, #ed1c24);
  box-shadow: 0 0 0 3px rgba(237,28,36,.08);
}
.input-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; color: #9ca3af; flex-shrink: 0;
  pointer-events: none;
}
.input-with-icon input[type="url"] {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 9px 12px 9px 0;
  font-size: 13px; font-family: inherit; color: var(--ink, #111);
  min-width: 0;
}

.social-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.form-actions { display: flex; gap: 12px; margin-top: 22px; }
.form-actions.space-between { justify-content: space-between; }
.btn-purple-ghost {
  background: white; color: var(--accent); border: 1px dashed var(--accent);
  padding: 8px 14px; font-size: 11.5px; font-weight: 600; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
}
.btn-ghost {
  background: white; color: #555; border: 1px solid var(--line);
  padding: 10px 18px; font-size: 12px; font-weight: 600; border-radius: 4px;
}

.collapsed-list { display: flex; flex-direction: column; gap: 12px; }
.collapsed-card {
  display: grid; grid-template-columns: 40px 1fr 16px; gap: 14px; align-items: center;
  padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 6px;
  text-align: left; cursor: pointer;
}
.collapsed-card:hover { border-color: var(--accent); }
.collapsed-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; }
.collapsed-t { font-size: 14px; font-weight: 700; }
.collapsed-s { font-size: 11px; color: #8c8c93; margin-top: 2px; }

.sub-h { font-size: 13px; font-weight: 700; margin: 10px 0 16px; }

.sw-skills { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sw-row { display: grid; grid-template-columns: 1fr 140px 36px 24px; gap: 10px; align-items: center; }
.sw-n { font-size: 12px; }
.sw-track { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sw-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.sw-v { font-size: 11px; color: #777; text-align: right; }
.sw-del { background: transparent; border: 0; color: #b6b6bc; padding: 0; cursor: pointer; }
.sw-del:hover { color: #ef4444; }

/* Step 3 — editable skill rows */
.sw-row.sw-edit {
  grid-template-columns: 1fr 90px 18px 28px;
  gap: 8px;
}
.sw-row.sw-edit .sw-name input,
.sw-row.sw-edit .sw-pc input,
input.sw-name, input.sw-pc { width: 100%; }
.sw-row.sw-edit .sw-pc,
input.sw-pc { padding-right: 0; }
.sw-pc-suffix { font-size: 12px; color: #888; }

.ps-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ps-row { display: grid; grid-template-columns: 140px 1fr 28px; gap: 8px; align-items: center; }
.ps-icon select, select.ps-icon { font-size: 12px; }

/* Step 4 — project rows */
.proj-rows { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; }
.proj-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  padding: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fafafa;
}
.proj-thumb { display: flex; flex-direction: column; align-items: stretch; }
.proj-thumb-pv {
  aspect-ratio: 1/1; background-size: cover; background-position: center;
  border-radius: 8px; background-color: #ececec;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: #aaa; font-size: 11px; gap: 4px;
}
.proj-thumb-empty svg { opacity: .5; }
.proj-fields .form-grid { margin-bottom: 8px; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

.chip-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: white; border: 1px solid var(--line); border-radius: 4px;
  font-size: 11.5px; font-weight: 500;
}
.chip svg { color: #6a6a72; }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.work-card { background: white; }
.work-img { aspect-ratio: 1 / 1; background-size: cover; background-position: center; border-radius: 4px; position: relative; margin-bottom: 10px; }
.work-num {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px;
  background: white; color: var(--ink); border-radius: 4px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.work-t { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.work-s { font-size: 11px; color: #6a6a72; }
.work-y { font-size: 11px; color: #6a6a72; margin-top: 2px; }

.radio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.radio-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  cursor: pointer; font-size: 12px;
}
.radio-row input { display: none; }
.radio-mark {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b6b6bc;
  display: grid; place-items: center; flex-shrink: 0;
}
.radio-row.is-active .radio-mark { border-color: var(--accent); }
.radio-row.is-active .radio-mark::after { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.check-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  cursor: pointer; font-size: 12px;
}
.check-row input { display: none; }
.check-mark {
  width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid #b6b6bc;
  display: grid; place-items: center; flex-shrink: 0; background: white;
}
.check-row input:checked + .check-mark { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .check-mark::after { content: "✓"; color: white; font-size: 11px; font-weight: 700; }

.field-l.mt { margin-top: 12px; }

.form-progress {
  position: sticky; bottom: 0; z-index: 5;
  background: white; border-top: 1px solid var(--line);
  padding: 16px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.fp-left { display: flex; flex-direction: column; gap: 6px; }
.fp-row { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; }
.fp-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.fp-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.fp-sub { font-size: 11px; color: #8c8c93; }
.fp-right { display: flex; gap: 12px; align-items: center; }
.fp-right svg { color: var(--green); flex-shrink: 0; }
.fp-ok-t { font-size: 12px; font-weight: 700; }
.fp-ok-s { font-size: 11px; color: #8c8c93; line-height: 1.5; }

/* anchor for form: when page is form, header background should be solid */
.page-form .site-header {
  background: #fff !important; color: var(--ink, #111) !important;
  border-bottom: 1px solid var(--line);
  position: sticky !important; padding: 18px 56px;
  box-shadow: none; backdrop-filter: none;
}
.page-form .site-header::before { display: none; }

/* Force dark ink on all nav/icon elements inside white form header */
.page-form .site-header .site-nav-link {
  color: var(--ink, #111) !important;
  opacity: .7;
}
.page-form .site-header .site-nav-link:hover {
  color: var(--accent, #ed1c24) !important;
  opacity: 1;
}
.page-form .site-header .site-nav-link.is-active {
  color: var(--accent, #ed1c24) !important;
  opacity: 1;
}
.page-form .site-header .site-nav-link.is-active::after {
  background: var(--accent, #ed1c24);
}
/* Icon buttons (search / hamburger) */
.page-form .site-header .icon-btn {
  color: var(--ink, #111) !important;
}
/* User menu email + caret */
.page-form .site-header .user-menu-trigger {
  color: var(--ink, #111) !important;
}

/* ============================================================
   Header login button & user menu
   ============================================================ */
.btn-header-login {
  background: transparent; color: #fff;
  padding: 9px 14px; font-size: 11px; letter-spacing: .16em; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 2px;
  text-decoration: none; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.55);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-header-login:hover {
  background: var(--accent, #ed1c24); color: #fff; border-color: var(--accent, #ed1c24);
}
/* When scrolled on light pages: dark outline */
.is-light.is-scrolled .btn-header-login {
  color: var(--ink, #111); border-color: rgba(0,0,0,.25);
}
.is-light.is-scrolled .btn-header-login:hover {
  background: var(--accent, #ed1c24); color: #fff; border-color: var(--accent, #ed1c24);
}

.user-menu { position: relative; display: inline-flex; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff; padding: 8px 12px; border-radius: 2px;
  font-family: inherit; font-size: 11px; letter-spacing: .12em; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.is-light.is-scrolled .user-menu-trigger {
  color: var(--ink, #111); border-color: rgba(0,0,0,.25);
}
.user-menu-email {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.user-menu-caret { font-size: 10px; opacity: .7; }
.user-menu-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: #fff; color: #111;
  border: 1px solid #e6e6e6; border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  display: none; padding: 6px;
  z-index: 50;
}
.user-menu-pop.is-open { display: block; }
.user-menu-form { margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid #eee; }
.user-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 6px;
  background: transparent; border: 0; color: #111;
  font-size: 13px; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.user-menu-item:hover { background: #f5f5f5; }
.user-menu-logout { color: #c4151c; font-weight: 600; }

/* =================================================================
   PROJECT DETAIL PAGE (/p/{slug})
   ================================================================= */
.page-project { background: #fff; color: #111; min-height: 100vh; }

/* 404 fallback */
.project-404 {
  padding: 120px 24px;
  text-align: center;
}
.project-404 h1 {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}
.project-404 p {
  margin: 8px 0 24px;
  color: #666;
}

/* ---------------- Hero ---------------- */
.proj-hero {
  position: relative;
  min-height: 520px;
  padding: 110px 80px 60px;
  color: #fff;
  overflow: hidden;
}
.proj-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.6);
  transform: scale(1.04);
}
.proj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%);
}
.proj-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}
.proj-hero .crumbs {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.proj-hero .cb-sep { margin: 0 8px; opacity: .5; }
.proj-hero .cb-active { color: #fff; font-weight: 600; }

.proj-hero-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #fbbf24;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-featured-pill {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, .9);
  color: #1f2937;
  letter-spacing: .1em;
}

.proj-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  max-width: 900px;
}
.proj-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin: 0 0 24px;
  font-style: italic;
}

.proj-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.proj-meta-dot { opacity: .5; }
.proj-meta-item {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}

.proj-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.proj-author:hover { background: rgba(255,255,255,.16); }
.proj-author img,
.proj-author-avatar-empty {
  width: 32px; height: 32px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.proj-author-name { display: block; font-size: 13px; font-weight: 600; }
.proj-author-th   { display: block; font-size: 11px; opacity: .8; }

/* ---------------- Body ---------------- */
.proj-body { padding: 60px 80px; }
.proj-body-inner { max-width: 1100px; margin: 0 auto; }

.proj-section-h {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.proj-section-count {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0;
  text-transform: none;
}
.proj-section-more {
  font-size: 11px;
  color: #c4151c;
  text-decoration: none;
  letter-spacing: .08em;
}
.proj-section-more:hover { text-decoration: underline; }

.proj-desc {
  margin-bottom: 60px;
}
.proj-desc-body {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
  max-width: 820px;
}

/* ================================================================
   Gallery — CSS columns masonry · natural proportions · tight 5 px gap
   Images flow top→bottom within each column.
   Mixed aspect ratios (portrait/landscape) sit flush with no gaps.
   ================================================================ */
.proj-gallery {
  columns: 3;
  column-gap: 5px;
  margin-top: 8px;
}

.proj-gallery-item {
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 5px;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: filter .22s ease;
}
/* Photo hover: darken + subtle zoom */
.proj-gallery-item:hover { filter: brightness(.78); }
/* Video items use ::before overlay — no extra filter */
.proj-gallery-item.is-video:hover { filter: none; }

/* Natural proportion — full image, no crop */
.proj-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: transform .36s ease;
}
.proj-gallery-item:hover img { transform: scale(1.03); }
/* Video thumbnails fill fixed box — no scale */
.proj-gallery-item.is-video:hover img { transform: none; }

.proj-gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .22s;
  pointer-events: none;
}
.proj-gallery-item:hover figcaption { opacity: 1; }

/* Video tiles */
.proj-gallery-item.is-video { cursor: pointer; }
.proj-gallery-item.is-video::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.42) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background .22s;
}
.proj-gallery-item.is-video:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.58) 100%);
}
.proj-gallery-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  z-index: 2;
  pointer-events: none;
  transition: transform .22s, background .22s;
}
.proj-gallery-item.is-video:hover .proj-gallery-play {
  background: var(--accent, #b91c1c);
  transform: translate(-50%, -50%) scale(1.12);
}
.proj-gallery-item.is-video figcaption { position: relative; z-index: 2; }

.proj-gallery-empty {
  margin-top: 16px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

/* ================================================================
   Lightbox — full-screen flex-column layout
   top-bar  /  stage  /  bottom-bar (caption + thumbnail strip)
   ================================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,.96);
  overscroll-behavior: none;
}
.lightbox.is-open { display: flex; }

/* Overlay — click anywhere outside image to close */
.lb-overlay {
  position: absolute; inset: 0; z-index: 0;
}

/* ── Top bar ── */
.lb-top-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, transparent 100%);
}
.lb-counter {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  letter-spacing: .06em;
}
.lb-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.lb-close:hover { background: rgba(255,255,255,.28); }

/* ── Stage ── */
.lb-stage {
  position: relative; z-index: 5;
  flex: 1;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 68px;
  overflow: hidden;
}
.lb-media {
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
}
.lb-media img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* Video in lightbox */
.lb-video {
  position: relative;
  width: min(90vw, 1080px);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.lb-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Nav arrows */
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
  z-index: 10;
}
.lb-nav:hover { background: rgba(255,255,255,.30); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ── Bottom bar ── */
.lb-bottom-bar {
  position: relative; z-index: 10;
  flex-shrink: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 100%);
}
.lb-caption {
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  padding: 8px 24px 4px;
}

/* Thumbnail strip */
.lb-thumb-rail {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 12px 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lb-thumb-rail::-webkit-scrollbar { display: none; }

.lb-thumb {
  flex-shrink: 0;
  width: 56px; height: 42px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #222;
  position: relative;
  transition: border-color .15s, opacity .15s;
  opacity: .48;
}
.lb-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.lb-thumb.is-active { border-color: #fff; opacity: 1; }
.lb-thumb:hover:not(.is-active) { opacity: .82; }
.lb-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
  pointer-events: none;
  background: rgba(0,0,0,.35);
}

/* ---------------- Related projects ---------------- */
.proj-related {
  padding: 60px 80px 100px;
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
}
.proj-related-inner { max-width: 1100px; margin: 0 auto; }
.proj-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.proj-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
  transition: transform .2s, box-shadow .2s;
}
.proj-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}
.proj-related-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}
.proj-related-meta {
  padding: 12px 14px;
}
.proj-related-meta h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.proj-related-meta p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* ════════════════════════════════════════════════════════════
   SEARCH OVERLAY (header tool)
   ════════════════════════════════════════════════════════════ */
.site-search {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,5,.96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.site-search.is-open { opacity: 1; pointer-events: auto; }
.site-search-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: transparent; border: 0; color: #fff;
  font-size: 30px; cursor: pointer; line-height: 1;
}
.site-search-form { width: 100%; max-width: 720px; }
.site-search-label {
  display: block; color: rgba(255,255,255,.55);
  font-size: 11px; letter-spacing: .22em; font-weight: 600;
  margin-bottom: 16px;
}
.site-search-row {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 12px 0;
  color: rgba(255,255,255,.6);
}
.site-search-row input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 22px; padding: 8px 0;
  font-family: inherit;
}
.site-search-row input::placeholder { color: rgba(255,255,255,.35); }
.site-search-submit {
  margin-top: 22px;
  background: var(--accent, #ed1c24); color: #fff;
  border: 0; padding: 12px 24px;
  font-size: 12px; letter-spacing: .18em; font-weight: 700;
  border-radius: 2px; cursor: pointer;
}
.site-search-submit:hover { background: #c4151c; }

/* Search banner on portfolio page */
.port-search-banner {
  margin: 20px 56px 16px;
  padding: 12px 18px;
  background: #fef3f3; border: 1px solid #fbcaca;
  color: #7a1a1f; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.port-search-clear {
  color: #7a1a1f; text-decoration: none;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border: 1px solid #d99;
  border-radius: 14px;
}
.port-search-clear:hover { background: #d99; color: #fff; }

/* ════════════════════════════════════════════════════════════
   SIDE DRAWER MENU
   ════════════════════════════════════════════════════════════ */
.site-drawer {
  position: fixed; inset: 0; z-index: 199;
  pointer-events: none;
}
.site-drawer.is-open { pointer-events: auto; }
.site-drawer-backdrop {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.5);
  opacity: 0; transition: opacity .2s;
}
.site-drawer.is-open .site-drawer-backdrop { opacity: 1; }
.site-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2;
  width: min(360px, 88vw);
  background: #fff; color: #111;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.site-drawer.is-open .site-drawer-panel { transform: translateX(0); }
.site-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid #eee;
}
.site-drawer-title { font-size: 13px; letter-spacing: .22em; font-weight: 700; }
.site-drawer-close {
  background: transparent; border: 0; font-size: 28px;
  cursor: pointer; line-height: 1; color: #666;
  width: 36px; height: 36px;
}
.site-drawer-nav { padding: 14px 0; }
.site-drawer-link {
  display: block; padding: 14px 24px;
  color: #111; text-decoration: none;
  font-size: 13px; letter-spacing: .16em; font-weight: 600;
  border-left: 3px solid transparent;
  transition: background .12s;
}
.site-drawer-link:hover { background: #f7f7f8; border-left-color: var(--accent, #ed1c24); }
.site-drawer-sep { height: 1px; background: #eee; margin: 6px 0; }
.site-drawer-user { padding: 16px 24px; }
.site-drawer-user-email { font-size: 12px; color: #666; margin-bottom: 12px; }
.site-drawer-user .site-drawer-link { padding-left: 0; border-left: 0; padding: 10px 0; }
.site-drawer-user .site-drawer-link:hover { background: transparent; color: var(--accent); }
.site-drawer-logout {
  width: 100%; padding: 12px; margin-top: 8px;
  background: #fff5f5; border: 1px solid #fbcaca;
  color: #c4151c; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.site-drawer-cta { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.site-drawer-btn-outline {
  display: block; text-align: center;
  padding: 12px; border: 1px solid #ddd;
  color: #111; text-decoration: none;
  font-size: 12px; letter-spacing: .14em; font-weight: 700;
  border-radius: 4px;
}
.site-drawer-btn-accent {
  display: block; text-align: center;
  padding: 12px; background: var(--accent, #ed1c24);
  color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: .14em; font-weight: 700;
  border-radius: 4px;
}
.site-drawer-btn-accent:hover { background: #c4151c; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — ระบบ Breakpoints มาตรฐาน
   1100px  → tablet/small-laptop
    768px  → mobile portrait
    480px  → small phone (≤iPhone SE)
   ════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1100px) ─────────────────────────────────────── */
@media (max-width: 1100px) {

  /* Header */
  .site-header { padding: 18px 32px; }
  .site-header.is-scrolled { padding: 12px 32px; }
  .site-nav { gap: 22px; }
  .site-nav-link { font-size: 11px; }

  /* Home hero */
  .hero-content { padding: 150px 32px 0; max-width: 680px; }
  .hero-title { font-size: 60px; }

  /* Stats */
  .stats { padding: 32px 32px; gap: 20px; }

  /* Section heads */
  .section-head,
  .section-head.light { padding: 48px 32px 20px; }

  /* Exhibitions */
  .exh-rail-wrap { padding: 0 32px; }
  .exh-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Filter pills */
  .filter-pills { padding: 0 32px 20px; }

  /* Projects home grid */
  .projects-grid { grid-template-columns: repeat(3, 1fr); padding: 0; gap: 3px; }

  /* News */
  .news-grid { padding: 0 32px; gap: 18px; }

  /* Portfolio hero + list */
  .hero-portfolio-content { padding: 100px 32px 0; }
  .portfolio-list { padding: 40px 32px 56px; }
  .port-search-banner { margin-left: 32px; margin-right: 32px; }

  /* Profile hero */
  .hero-portrait-content { padding: 110px 32px 0; }
  .hp-title { font-size: 64px; }

  /* About / skills */
  .about-grid { padding: 48px 32px; gap: 28px; grid-template-columns: 220px 1fr 1fr; }
  .skills { padding: 48px 32px; }
  .featured { padding: 48px 32px; }
  .featured-grid { gap: 16px; }

  /* Exp section */
  .exp-section { padding: 48px 32px; }

  /* Work CTA */
  .work-cta { padding: 48px 32px; grid-template-columns: 1fr 1.4fr; gap: 28px; }
  .qr-card { display: none; }

  /* Footer home */
  .footer-home { padding: 48px 32px 24px; }
  .footer-home-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }

  /* Footer light */
  .footer-light { padding: 32px 32px 18px; }
  .footer-light-inner { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; }

  /* Register wizard */
  .form-wrap { padding: 80px 24px 24px; gap: 18px; grid-template-columns: 240px 1fr; }

  /* Project detail */
  .proj-hero { padding: 100px 48px 52px; }
  .proj-body { padding: 48px 48px; }
  .proj-related { padding: 48px 48px 72px; }
  .proj-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Header ── */
  .site-header { padding: 12px 16px; }
  .site-header.is-scrolled { padding: 10px 16px; }
  .logo-cmu, .logo-fa { font-size: 12px; }
  .logo-sub { display: none; }
  .logo-divider { display: none; }

  /* Hide desktop nav + CTA — drawer slides in from right */
  .site-nav { display: none; }
  .btn-header-cta { display: none; }
  .btn-header-login { display: none; }
  .user-menu-email { display: none; }
  .user-menu-caret { display: none; }
  .user-menu-trigger { padding: 6px 8px; border-radius: 50%; }
  .site-tools { gap: 4px; }

  /* ── Home hero ── */
  .hero { height: auto; min-height: 480px; }
  .hero-content { padding: 100px 18px 52px; max-width: 100%; }
  .hero-thai { font-size: 12px; margin-bottom: 10px; }
  .hero-title { font-size: 36px; line-height: 1.05; margin-bottom: 16px; }
  .hero-desc { font-size: 13px; max-width: 100%; margin-bottom: 20px; }
  .hero-rail { display: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-dark, .btn-accent { padding: 12px 18px; font-size: 11px; }

  /* ── Stats bar ── */
  .stats {
    padding: 24px 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-n { font-size: 28px; }

  /* ── Section heads ── */
  .section-head,
  .section-head.light {
    padding: 36px 18px 16px;
    flex-direction: column; align-items: flex-start; gap: 10px;
  }
  .section-title { font-size: 24px; }

  /* ── Exhibitions ── */
  .exhibitions { padding-bottom: 32px; }
  .exh-rail-wrap { padding: 0 18px; }
  .exh-grid { grid-template-columns: 1fr; gap: 12px; }

  /* ── Filter pills ── */
  .filter-pills {
    padding: 0 18px 20px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 6px;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex-shrink: 0; }

  /* ── Projects home grid ── */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0; gap: 2px;
  }

  /* ── News ── */
  .news { padding-bottom: 40px; }
  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 18px; gap: 20px;
  }

  /* ── Portfolio hero ── */
  .hero-portrait,
  .hero-portfolio { height: auto; min-height: 340px; }
  .hero-portrait-overlay {
    background: linear-gradient(180deg, rgba(245,245,243,.88) 0%, rgba(245,245,243,.55) 50%, rgba(245,245,243,.15) 100%);
  }
  .hero-portrait-content { padding: 96px 18px 32px; max-width: 100%; }
  .hp-thai { font-size: 16px; }
  .hp-title { font-size: 36px; line-height: 1.05; }
  .hp-role { font-size: 15px; }
  .hp-desc { font-size: 12px; }
  .hp-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hp-rail { display: none; }

  /* Portfolio hero content */
  .hero-portfolio-content { padding: 90px 18px 28px; max-width: 100%; }
  .hp-tagline { font-size: 14px; }

  /* ── Portfolio list ── */
  .portfolio-list { padding: 28px 18px 48px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .port-card-wide { grid-column: 1 / -1; }
  .port-img-wide { aspect-ratio: 16 / 8; }
  .port-meta h3 { font-size: 13px; }
  .port-search-banner { margin: 12px 18px 8px; font-size: 12px; }

  /* ── Profile public — About ── */
  .about-grid {
    grid-template-columns: 1fr;
    padding: 32px 18px; gap: 24px;
  }
  .about-photo { max-width: 200px; aspect-ratio: 1; }

  /* ── Skills ── */
  .skills {
    grid-template-columns: 1fr;
    padding: 32px 18px; gap: 28px;
  }
  .skills-cols { grid-template-columns: 1fr; gap: 20px; }
  .photo-skills { grid-template-columns: repeat(2, 1fr); }
  .skills-photo { min-height: 220px; }

  /* ── Featured grid ── */
  .featured { padding: 32px 18px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* ── Exp / Awards ── */
  .exp-section {
    grid-template-columns: 1fr;
    padding: 32px 18px; gap: 0;
  }
  .exp-block, .awards-block {
    padding: 0 0 28px;
    border-left: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }
  .exp-photo { min-height: 200px; margin-bottom: 28px; }

  /* ── Work CTA ── */
  .work-cta {
    padding: 40px 18px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-inner { padding: 12px 0; }
  .work-inner h2 { font-size: 26px; }
  .work-actions { flex-direction: column; gap: 10px; }
  .work-actions a, .work-actions button { text-align: center; justify-content: center; }
  .qr-card { display: none; }

  /* ── Footer home ── */
  .footer-home { padding: 40px 18px 20px; }
  .footer-home-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-home-bg { display: none; }
  .footer-home-base { flex-direction: column; gap: 10px; text-align: center; }

  /* ── Footer light ── */
  .footer-light { padding: 32px 18px 16px; }
  .footer-light-inner { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-light-social { justify-content: flex-start; padding-top: 0; }
  .footer-light-base { flex-direction: column; gap: 8px; text-align: center; }

  /* ── Register wizard ── */
  .form-wrap {
    grid-template-columns: 1fr;
    padding: 72px 16px 24px; gap: 14px;
  }
  .form-side {
    position: static; top: auto;
    max-height: none;
    padding: 16px;
  }
  /* Collapse step list to horizontal scroll on mobile */
  .step-list {
    display: flex; flex-direction: row;
    overflow-x: auto; gap: 8px;
    padding-bottom: 4px;
  }
  .step-list::before { display: none; }
  .step-item {
    flex-shrink: 0;
    grid-template-columns: 28px 1fr;
    min-width: 140px; gap: 8px;
  }
  .step-item .step-check { display: none; }
  .step-s { display: none; }
  /* Compact step tabs */
  .step-item { min-width: 110px; padding: 6px 8px; gap: 6px; }
  .step-num { width: 24px; height: 24px; font-size: 11.5px; }
  .step-t { font-size: 10.5px; line-height: 1.3; }
  /* Hide verbose sidebar text & tip card — keep step list only */
  .form-side-s, .help-card { display: none; }
  .form-side { padding: 10px 12px; overflow: hidden; }
  .form-side-h { font-size: 13px; margin-bottom: 10px; }
  /* Reduce form card inner padding */
  .form-card { padding: 18px 14px; }
  /* Compact section heading */
  .step-h { gap: 10px; padding-bottom: 14px; margin-bottom: 14px; }
  .step-h h2 { font-size: 15px; }
  .step-h-ic { width: 34px; height: 34px; border-radius: 6px; }
  /* Profile avatar — keep side-by-side but smaller circle */
  .pp-circle { width: 80px; height: 80px; }
  .pp-cam { width: 26px; height: 26px; border-width: 2px; }
  /* Collapsed step cards on step 1 */
  .collapsed-card { padding: 12px 14px; gap: 10px; }
  .collapsed-ic { width: 32px; height: 32px; border-radius: 6px; }
  .collapsed-t { font-size: 13px; }
  .collapsed-s { font-size: 10.5px; }
  /* Form actions */
  .form-actions { gap: 8px; flex-wrap: wrap; }
  .form-actions.space-between { flex-wrap: nowrap; }
  /* Progress bar */
  .form-progress { padding: 12px 16px; }

  /* Page form header always white on mobile */
  .page-form .site-header { padding: 12px 16px !important; }

  /* ── Project detail ── */
  .proj-hero { padding: 88px 18px 36px; min-height: 320px; }
  .proj-subtitle { font-size: 15px; }
  .proj-meta-row { gap: 8px; flex-wrap: wrap; }
  .proj-body { padding: 36px 18px; }
  .proj-desc-body { font-size: 14px; }
  .proj-gallery { columns: 2; column-gap: 3px; }
  .proj-gallery-play { width: 44px; height: 44px; }
  .proj-related { padding: 40px 18px 64px; }
  .proj-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lb-stage { padding: 0 46px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-thumb { width: 44px; height: 33px; }

  /* ── Search overlay ── */
  .site-search-row input { font-size: 18px; }
  .site-search-close { top: 14px; right: 14px; }

  /* ── Misc ── */
  .btn-light-outline { padding: 12px 16px; font-size: 11px; }
}

/* ── Small phones (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {

  /* Header */
  .site-header { padding: 10px 14px; }
  .logo-cmu, .logo-fa { font-size: 11px; }

  /* Home hero */
  .hero-title { font-size: 30px; }
  .hero-content { padding: 90px 14px 44px; }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 14px; }
  .stat-n { font-size: 24px; }

  /* Sections */
  .section-head, .section-head.light { padding: 28px 14px 12px; }
  .section-title { font-size: 21px; }

  /* Exhibitions */
  .exh-rail-wrap { padding: 0 14px; }

  /* Projects grid → 2 columns, tight, edge-to-edge */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0; gap: 2px;
  }
  .project-tile { aspect-ratio: 3 / 4; }

  /* Portfolio */
  .portfolio-list { padding: 20px 14px 40px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
  .port-card-wide { grid-column: 1; }
  .port-img-sq, .port-img-wide { aspect-ratio: 16 / 9; }

  /* Hero portrait/portfolio */
  .hero-portrait-content { padding: 80px 14px 24px; }
  .hp-title { font-size: 28px; }
  .hero-portfolio-content { padding: 80px 14px 20px; }

  /* About */
  .about-grid { padding: 24px 14px; }
  .about-photo { max-width: 100%; aspect-ratio: 1 / .75; }

  /* Skills */
  .skills { padding: 24px 14px; }

  /* Featured */
  .featured { padding: 24px 14px; }
  .featured-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Exp */
  .exp-section { padding: 24px 14px; }

  /* News */
  .news-grid { padding: 0 14px; }

  /* Work CTA */
  .work-cta { padding: 32px 14px; }
  .work-inner h2 { font-size: 22px; }

  /* Footer home */
  .footer-home { padding: 32px 14px 16px; }

  /* Footer light */
  .footer-light { padding: 24px 14px 12px; }
  .footer-light-inner { grid-template-columns: 1fr; gap: 18px; }

  /* Register wizard */
  .form-wrap { padding: 64px 10px 16px; }
  .form-side { padding: 8px 10px; }
  .form-card { padding: 14px 12px; }
  .step-h h2 { font-size: 14px; }
  .step-h-ic { width: 30px; height: 30px; }
  .step-item { min-width: 84px; padding: 5px 6px; gap: 5px; }
  .step-num { width: 20px; height: 20px; font-size: 10px; }
  .step-t { font-size: 9.5px; }
  .collapsed-card { padding: 10px 12px; }
  .form-actions.space-between { gap: 6px; }
  .form-actions.space-between .btn-ghost { font-size: 11px; padding: 8px 12px; }
  .form-actions .btn-purple { font-size: 11.5px; padding: 10px 14px; }

  /* Project detail */
  .proj-hero { padding: 80px 14px 30px; }
  .proj-body { padding: 28px 14px; }
  .proj-related { padding: 32px 14px 48px; }
  .proj-related-grid { grid-template-columns: 1fr; }
  .proj-related-meta h3 { font-size: 13px; }

  /* Gallery — small mobile: 2 cols, 2 px gap */
  .proj-gallery { columns: 2; column-gap: 2px; }
  .proj-gallery-play { width: 36px; height: 36px; }

  /* Filter pills */
  .filter-pills { padding: 0 14px 14px; }

  /* Search banner */
  .port-search-banner { margin: 10px 14px 6px; }
}

/* Form / Auth pages */
@media (max-width: 768px) {
  .ff-page-inner { padding: 24px 16px !important; }
  .ff-step-card  { padding: 20px 16px !important; }
  .ff-grid-2     { grid-template-columns: 1fr !important; gap: 14px; }
  .social-grid   { grid-template-columns: 1fr !important; }
  .form-grid.two, .form-grid.three, .form-grid.four { grid-template-columns: 1fr !important; }
  .works-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .proj-row      { grid-template-columns: 1fr !important; }
  .form-progress { padding: 14px 18px; grid-template-columns: 1fr; }
  .fp-right      { display: none; }
  .sw-row        { grid-template-columns: 1fr 100px 28px 20px !important; }
  .sw-row.sw-edit { grid-template-columns: 1fr 90px 18px 24px !important; }
  .ps-row        { grid-template-columns: 130px 1fr 28px !important; }
  /* Slug prefix — truncate long domain on mobile */
  .pf-slug-prefix { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  /* Skills two-col → single col */
  .form-grid.two > div { min-width: 0; }
  /* Exp/award row cards */
  .exp-row, .award-row { padding: 12px !important; }
}

/* ── Project form: tag chips ──────────────────────────────────────── */
.pf-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.pf-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #6b7280;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.pf-tag-chip input[type="checkbox"] {
  display: none;
}
.pf-tag-chip:hover {
  border-color: #9ca3af;
  color: #374151;
  background: #f9fafb;
}
.pf-tag-chip.is-checked {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}
.pf-tag-chip.is-checked:hover {
  border-color: #a93226;
  background: #a93226;
}


/* =============================================================================
   SHOWCASE — random mosaic of all gallery images + videos
   ============================================================================= */

/* ── Showcase Hero — mirrors home hero layout ── */
.sc-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: flex-end;
}
.sc-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.sc-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.7) 42%, rgba(5,5,5,.25) 72%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.7) 0%, transparent 55%);
}
/* Content block — left-aligned like home hero */
.sc-hero-content {
  position: relative; z-index: 1;
  padding: 0 56px 64px;
  max-width: 820px;
  color: #fff;
}
/* Fallback (no image) — minimal centred compact block */
.sc-hero-content.no-img {
  align-self: center;
  padding: 72px 56px;
  max-width: 100%;
  text-align: center;
  color: #111;
}

.sc-hero-eyebrow {
  font-size: 11px; letter-spacing: .32em; font-weight: 700;
  color: rgba(255,255,255,.6); text-transform: uppercase;
  margin-bottom: 18px;
}
.sc-hero-content.no-img .sc-hero-eyebrow { color: var(--accent, #ed1c24); }

.sc-hero-title {
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.05; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -.02em;
  color: #fff;
}
.sc-hero-content.no-img .sc-hero-title { color: #111; }

.sc-hero-sub {
  font-size: 14px; line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin: 0 0 32px; max-width: 500px;
  font-weight: 300;
}
.sc-hero-content.no-img .sc-hero-sub { color: #4b5563; margin: 0 auto 32px; }

/* Stats row */
.sc-hero-stats {
  display: flex; align-items: center;
  gap: 0; flex-wrap: wrap;
  margin-bottom: 32px;
}
.sc-stat {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
  text-decoration: none; padding: 0 28px 0 0;
  transition: opacity .18s;
}
.sc-stat:hover { opacity: .75; }
.sc-stat strong {
  font-size: 32px; font-weight: 800;
  color: #fff; line-height: 1;
}
.sc-stat span {
  font-size: 11px; letter-spacing: .18em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
}
.sc-stat-div {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.2);
  margin-right: 28px; flex-shrink: 0;
}
.sc-hero-content.no-img .sc-stat { align-items: center; }
.sc-hero-content.no-img .sc-stat strong { color: #111; }
.sc-hero-content.no-img .sc-stat span   { color: #6b7280; }
.sc-hero-content.no-img .sc-stat-div    { background: rgba(0,0,0,.15); }

/* Action buttons */
.sc-hero-actions {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.sc-shuffle { display: inline-flex; align-items: center; gap: 8px; }
.sc-browse  { display: inline-flex; align-items: center; gap: 8px; }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px;
  background: transparent; color: #111;
  border: 1.5px solid #111;
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline-dark:hover {
  background: #111; color: #fff;
}

/* ── Mosaic grid ───────────────────────────────────────────── */
.sc-section { padding: 40px 24px 80px; max-width: 1440px; margin: 0 auto; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.sc-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.sc-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* Bigger zoom on the background via pseudo so it doesn't crop the meta out */
.sc-card::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.sc-card:hover::before {
  transform: scale(1.06);
}

.sc-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(0,0,0,0)   0%,
              rgba(0,0,0,.1)  50%,
              rgba(0,0,0,.78) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background .35s;
}
.sc-card:hover .sc-card-shade {
  background: linear-gradient(180deg,
              rgba(0,0,0,.05) 0%,
              rgba(0,0,0,.25) 50%,
              rgba(0,0,0,.85) 100%);
}

.sc-card-meta {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 4px;
  transform: translateY(6px);
  opacity: .92;
  transition: transform .35s, opacity .35s;
}
.sc-card:hover .sc-card-meta {
  transform: translateY(0);
  opacity: 1;
}
.sc-card-cat {
  font-size: 10px; letter-spacing: .18em;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
}
.sc-card-title {
  font-size: 16px; font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-card-author {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.sc-card-year { color: rgba(255,255,255,.6); }

/* Size variants */
.sc-card.is-feature  { grid-column: span 2; grid-row: span 2; }
.sc-card.is-wide     { grid-column: span 2; }
.sc-card.is-tall     { grid-row: span 2; }

.sc-card.is-feature .sc-card-title { font-size: 24px; }
.sc-card.is-feature .sc-card-cat   { font-size: 11px; }

/* Video play badge */
.sc-card.is-video .sc-card-play {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .25s, transform .25s;
}
.sc-card.is-video:hover .sc-card-play {
  background: var(--accent, #b91c1c);
  transform: scale(1.1);
}

/* =============================================================================
   Artists section — profile cards grid (Browse by artist)
   ============================================================================= */
.sc-artists {
  padding: 72px 24px 96px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border-top: 1px solid #e5e7eb;
}
.sc-artists-head {
  max-width: 760px; margin: 0 auto 44px;
  text-align: center;
}
.sc-artists-eyebrow {
  font-size: 12px; letter-spacing: .35em;
  color: var(--accent, #b91c1c);
  font-weight: 700; margin-bottom: 12px;
}
.sc-artists-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; letter-spacing: -.01em;
  color: #111;
  margin: 0 0 14px;
}
.sc-artists-sub {
  font-size: 14px; line-height: 1.7;
  color: #4b5563; margin: 0;
}

.sc-artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.sc-artist-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  position: relative;
}
.sc-artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* Cover band */
.sc-artist-cover {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, #1f2937 0%, #111 100%);
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}
.sc-artist-cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%);
}

/* Body */
.sc-artist-body {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -38px;
  position: relative;
  z-index: 1;
}

.sc-artist-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  flex-shrink: 0;
  margin-bottom: 12px;
}
.sc-artist-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sc-artist-avatar-letter {
  font-size: 28px; font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
}

.sc-artist-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sc-artist-name {
  font-size: 15px; font-weight: 700;
  color: #111;
  margin: 0 0 2px;
  line-height: 1.3;
}
.sc-artist-name-th {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
  line-height: 1.4;
}
.sc-artist-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.sc-artist-count {
  font-size: 11px;
  color: #6b7280;
  letter-spacing: .04em;
  font-weight: 600;
}
.sc-artist-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #111;
  text-transform: uppercase;
  transition: color .15s, gap .15s;
}
.sc-artist-card:hover .sc-artist-go {
  color: var(--accent, #b91c1c);
  gap: 7px;
}

/* ── Empty state ───────────────────────────────────────────── */
.sc-empty {
  text-align: center;
  padding: 80px 24px;
}
.sc-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: .5;
}
.sc-empty h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.sc-empty p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sc-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
  .sc-card.is-feature { grid-column: span 2; grid-row: span 2; }
  .sc-artists-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .sc-hero { height: 520px; }
  .sc-hero-content { padding: 0 20px 48px; }
  .sc-hero-content.no-img { padding: 60px 20px; }
  .sc-hero-title { font-size: clamp(30px, 7vw, 48px); }
  .sc-hero-stats { gap: 0; }
  .sc-stat { padding: 0 18px 0 0; }
  .sc-stat strong { font-size: 26px; }
  .sc-stat-div { margin-right: 18px; }
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
  }
  .sc-card.is-feature { grid-column: span 2; grid-row: span 2; }
  .sc-card.is-wide    { grid-column: span 2; grid-row: auto; }
  .sc-card.is-tall    { grid-column: auto; grid-row: span 2; }
  .sc-card-title { font-size: 14px; }
  .sc-card.is-feature .sc-card-title { font-size: 18px; }

  .sc-artists { padding: 56px 18px 72px; }
  .sc-artists-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sc-artist-cover { height: 120px; }
  .sc-artist-avatar { width: 64px; height: 64px; border-width: 3px; }
  .sc-artist-body { margin-top: -32px; padding: 0 14px 16px; }
}
@media (max-width: 480px) {
  .sc-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 8px;
  }
  .sc-card-meta { left: 10px; right: 10px; bottom: 10px; }

  .sc-artists-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sc-artist-name { font-size: 13px; }
  .sc-artist-name-th { font-size: 11px; }
  .sc-artist-stats { padding-top: 10px; }
  .sc-artist-count, .sc-artist-go { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   EXHIBITIONS — public listing page (/exhibitions)
   ═══════════════════════════════════════════════════════════ */
.page-exhibitions { background: #fafafa; }

/* Hero (mirrors showcase hero pattern) */
.ex-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #050505;
  display: flex; align-items: flex-end;
}
/* No-image variant: light background so dark text is readable */
.ex-hero.ex-hero-light {
  background: #f3f4f6;
  align-items: center;
}
.ex-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.ex-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.7) 42%, rgba(5,5,5,.25) 72%, transparent 100%),
    linear-gradient(0deg, rgba(5,5,5,.7) 0%, transparent 55%);
}
.ex-hero-content {
  position: relative; z-index: 1;
  padding: 0 56px 60px;
  max-width: 820px;
  color: #fff;
}
.ex-hero-content.no-img {
  align-self: center;
  padding: 80px 56px;
  max-width: 100%;
  text-align: center;
  color: #111;
}
.ex-hero-eyebrow {
  font-size: 11px; letter-spacing: .32em; font-weight: 700;
  color: rgba(255,255,255,.6); text-transform: uppercase;
  margin-bottom: 18px;
}
/* Light hero: accent eyebrow, dark title + sub */
.ex-hero-light .ex-hero-eyebrow  { color: var(--accent, #ed1c24); }
.ex-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08; margin: 0 0 20px;
  font-weight: 800; color: #fff;
}
.ex-hero-light .ex-hero-title { color: #111; }
.ex-hero-sub {
  font-size: 14px; line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin: 0 0 32px; max-width: 540px;
  font-weight: 300;
}
.ex-hero-light .ex-hero-sub { color: #4b5563; margin: 0 auto 32px; }

.ex-hero-stats {
  display: flex; align-items: center; flex-wrap: wrap;
  margin-top: 8px;
}
.ex-hero-light .ex-hero-stats { justify-content: center; }
.ex-stat {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
  padding: 0 28px 0 0;
}
.ex-stat strong {
  font-size: 28px; font-weight: 800; color: #fff; line-height: 1;
}
.ex-stat span {
  font-size: 10px; letter-spacing: .18em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
}
.ex-hero-light .ex-stat strong { color: #111; }
.ex-hero-light .ex-stat span   { color: #6b7280; }
.ex-stat-div {
  width: 1px; height: 32px; background: rgba(255,255,255,.18); margin-right: 28px;
}
.ex-hero-light .ex-stat-div { background: rgba(0,0,0,.12); }

/* Section + filters */
.ex-section {
  padding: 48px 56px 80px;
  max-width: 1400px; margin: 0 auto;
}
.ex-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.ex-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 12px; font-weight: 600;
  color: #374151; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
}
.ex-pill:hover { border-color: #111; color: #111; }
.ex-pill.is-active {
  background: #111; color: #fff; border-color: #111;
}
.ex-pill-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,.08); color: inherit;
  border-radius: 999px;
}
.ex-pill.is-active .ex-pill-n { background: rgba(255,255,255,.22); }

/* Grid */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.ex-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ex-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-color: #ddd;
}
.ex-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f0f0f0 center/cover no-repeat;
}
.ex-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.ex-badge-ongoing  { background: rgba(34,197,94,.95);   color: #fff; }
.ex-badge-upcoming { background: rgba(59,130,246,.95);  color: #fff; }
.ex-badge-past     { background: rgba(107,114,128,.92); color: #fff; }

.ex-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.ex-card-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6b7280; margin-bottom: 8px;
  font-weight: 500;
}
.ex-card-date svg { opacity: .7; }
.ex-card-title {
  font-size: 18px; font-weight: 700; color: #111;
  margin: 0 0 6px; line-height: 1.3;
}
.ex-card-sub {
  font-size: 13px; line-height: 1.55; color: #4b5563;
  margin: 0 0 12px; font-weight: 300;
}
.ex-card-venue {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #6b7280; margin-top: auto;
  padding-top: 8px;
}
.ex-card-venue svg { opacity: .65; }

/* ── Exhibition — stretched-link pattern (whole card clickable) ── */
/* Card must be position:relative so the absolute link can stretch inside */
.ex-card { position: relative; }

/* Invisible <a> covers 100% of the card — works in all browsers & WebViews */
.ex-card-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}

/* Social link buttons sit ABOVE the stretched link so they remain clickable */
.ex-social-links { position: relative; z-index: 2; }

.ex-card.ex-card-linked { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.ex-card.ex-card-linked:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  transform: translateY(-2px);
}

.ex-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f2;
}

.ex-sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.ex-sl-btn:hover { transform: translateY(-1px); }

/* Per-platform brand colours on hover */
.ex-sl--web:hover    { background: #111;    border-color: #111;    color: #fff; }
.ex-sl--fb:hover     { background: #1877f2; border-color: #1877f2; color: #fff; }
.ex-sl--ig:hover     { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e1306c; color: #fff; }
.ex-sl--yt:hover     { background: #ff0000; border-color: #ff0000; color: #fff; }
.ex-sl--line:hover   { background: #06c755; border-color: #06c755; color: #fff; }
.ex-sl--tt:hover     { background: #010101; border-color: #010101; color: #fff; }
.ex-sl--other:hover  { background: #374151; border-color: #374151; color: #fff; }

@media (max-width: 480px) {
  .ex-sl-btn span { display: none; }
  .ex-sl-btn { padding: 7px 8px; }
}

/* Home page — clickable exhibition card */
a.exh-card { text-decoration: none; color: inherit; display: block; }
a.exh-card.exh-card-linked { cursor: pointer; }
a.exh-card.exh-card-linked:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateY(-2px); }
a.exh-card.exh-card-linked .exh-info h3::after { content: ' ↗'; font-size: .7em; opacity: .45; font-weight: 400; }

/* Clickable card — show cursor + arrow hint */
a.ex-card { text-decoration: none; color: inherit; cursor: pointer; }
.ex-card-linked .ex-card-body { position: relative; }
.ex-card-linked .ex-card-venue::after {
  content: ' ↗';
  font-size: 11px; opacity: .5;
}
/* No venue but has link → show arrow on title */
.ex-card-linked .ex-card-title::after {
  content: ' ↗';
  font-size: 13px; opacity: .35; font-weight: 400;
}

/* Empty state */
.ex-empty {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}
.ex-empty-icon { font-size: 56px; margin-bottom: 12px; }
.ex-empty h2 { font-size: 22px; margin: 0 0 8px; color: #111; }
.ex-empty p  { color: #6b7280; margin: 0 0 22px; font-size: 14px; }
.ex-empty .btn-dark { display: inline-flex; }

/* Responsive */
@media (max-width: 900px) {
  .ex-hero { height: 460px; }
  .ex-hero-content { padding: 0 28px 48px; }
  .ex-hero-content.no-img { padding: 64px 28px; }
  .ex-section { padding: 36px 24px 64px; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .ex-stat { padding-right: 18px; }
  .ex-stat-div { margin-right: 18px; height: 26px; }
}
@media (max-width: 560px) {
  .ex-hero { height: 420px; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-stat strong { font-size: 22px; }
  .ex-card-title { font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────────
   NEWS — listing (/news) + detail (/news/{slug})
   ───────────────────────────────────────────────────────────────── */

/* Hero */
.nw-hero {
  position: relative;
  height: 520px;
  display: flex; align-items: flex-end;
  color: #fff;
  background: #050505;
  overflow: hidden;
}
.nw-hero.nw-hero-light {
  background: #f3f4f6;
  color: #111;
  height: auto; min-height: 360px;
  align-items: center; justify-content: center;
  text-align: center;
}
.nw-hero-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  filter: brightness(.55);
}
.nw-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.7) 100%);
}
.nw-hero-content {
  position: relative;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 0 40px 64px;
  z-index: 2;
}
.nw-hero-content.no-img {
  padding: 80px 40px;
  text-align: center;
}
.nw-hero-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff; opacity: .85;
  margin-bottom: 14px;
}
.nw-hero-light .nw-hero-eyebrow { color: var(--accent, #ed1c24); opacity: 1; }
.nw-hero-title {
  font-size: 56px; font-weight: 800; line-height: 1.05;
  margin: 0 0 18px; color: #fff;
  letter-spacing: -.01em;
}
.nw-hero-light .nw-hero-title { color: #111; }
.nw-hero-sub {
  font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 720px; margin: 0 0 28px;
}
.nw-hero-light .nw-hero-sub { color: #4b5563; margin: 0 auto 28px; }

/* Search box */
.nw-search {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  width: 100%; max-width: 520px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.nw-hero-light .nw-search { background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.nw-search svg { color: #6b7280; flex-shrink: 0; }
.nw-search input {
  flex: 1; border: 0; background: transparent;
  font-size: 15px; padding: 8px 4px; outline: none; color: #111;
}
.nw-search button {
  background: #111; color: #fff; border: 0;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  letter-spacing: .05em;
}
.nw-search button:hover { background: var(--accent, #ed1c24); }
.nw-search-clear {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #6b7280;
  border-radius: 50%; text-decoration: none; font-size: 16px;
}
.nw-search-clear:hover { background: #fee2e2; color: var(--accent, #ed1c24); }

/* Result label */
.nw-result-label {
  font-size: 14px; color: #4b5563;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.nw-result-label strong { color: #111; }
.nw-clear {
  font-size: 12px; color: #6b7280;
  text-decoration: none; padding: 4px 10px;
  border: 1px solid #e5e7eb; border-radius: 999px;
}
.nw-clear:hover { color: var(--accent, #ed1c24); border-color: var(--accent, #ed1c24); }

/* Section wrapper */
.nw-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* Featured (latest) news spotlight */
.nw-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.nw-featured:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-2px); }
.nw-featured-img {
  position: relative;
  background: #f3f4f6 center / cover no-repeat;
  aspect-ratio: 4 / 5;
}
.nw-featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent, #ed1c24); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase;
}
.nw-featured-body {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.nw-featured-date {
  font-size: 12px; color: #6b7280;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.nw-featured-title {
  font-size: 28px; font-weight: 800; line-height: 1.25;
  margin: 0 0 14px; color: #111;
}
.nw-featured-excerpt {
  font-size: 15px; line-height: 1.7; color: #4b5563;
  margin: 0 0 22px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-featured-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--accent, #ed1c24);
  letter-spacing: .05em;
}

/* Card grid */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.nw-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.nw-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.nw-card-img {
  width: 100%; aspect-ratio: 4 / 5;
  background: #f3f4f6 center / cover no-repeat;
}
.nw-card-body { padding: 26px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.nw-card-date {
  font-size: 11px; color: #6b7280;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.nw-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.35;
  margin: 0 0 10px; color: #111;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card-excerpt {
  font-size: 13px; line-height: 1.65; color: #6b7280;
  margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card-cta {
  font-size: 11px; font-weight: 700;
  color: var(--accent, #ed1c24);
  letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
}

/* Empty state */
.nw-empty {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}
.nw-empty-icon { font-size: 56px; margin-bottom: 12px; }
.nw-empty h2 { font-size: 22px; margin: 0 0 8px; color: #111; }
.nw-empty p  { color: #6b7280; margin: 0 0 22px; font-size: 14px; }

/* Home page news cards — clickable variant */
a.news-card { text-decoration: none; color: inherit; display: block; }
a.news-card.news-card-linked { cursor: pointer; transition: box-shadow .2s, transform .2s; }
a.news-card.news-card-linked:hover { box-shadow: 0 8px 24px rgba(0,0,0,.15); transform: translateY(-2px); }
a.news-card.news-card-linked h3::after { content: ' ↗'; font-size: .7em; opacity: .45; font-weight: 400; }

/* ─────────────────────────────────────────────────────────────────
   NEWS DETAIL (/news/{slug})
   ───────────────────────────────────────────────────────────────── */
.page-news-detail { background: #f2f3f5; min-height: 100vh; }

/* Hero — admin-controlled, generic across ALL news detail pages
   (does NOT use the cover image — that becomes a feature image below) */
.nwd-hero {
  position: relative;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background: #050505;
  overflow: hidden;
  padding: 80px 24px;
}
.nwd-hero.nwd-hero-light {
  background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 100%);
  color: #111;
  min-height: 280px;
}
.nwd-hero-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  filter: brightness(.45);
}
.nwd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%);
}
.nwd-hero-content {
  position: relative;
  max-width: 820px; width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.nwd-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: #ff6b6b;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.nwd-hero-light .nwd-eyebrow { color: var(--accent, #ed1c24); }

.nwd-hero-title {
  font-size: 44px; font-weight: 800; line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: inherit;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nwd-hero-light .nwd-hero-title { text-shadow: none; }
.nwd-hero-sub {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0 auto;
  max-width: 620px;
}
.nwd-hero-light .nwd-hero-sub { color: #6b7280; }

/* Article body */
.nwd-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 44px 48px 80px;
  background: #fff;
  position: relative; z-index: 2;
}

/* Topbar — back link + meta inside article */
.nwd-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}
.nwd-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}
.nwd-back:hover { color: var(--accent, #ed1c24); }

.nwd-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #6b7280;
}
.nwd-tag {
  display: inline-block;
  background: var(--accent, #ed1c24); color: #fff;
  font-weight: 700; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 4px;
  font-size: 10.5px;
}
.nwd-dot { color: #d1d5db; }
.nwd-date { display: inline-flex; align-items: center; gap: 6px; }

/* Article title (per-news) */
.nwd-art-title {
  font-size: 30px; font-weight: 700; line-height: 1.38;
  color: #111;
  letter-spacing: -.008em;
  margin: 0 0 8px;
}
.nwd-art-title-en {
  font-size: 15px; color: #9ca3af;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Feature image (was the hero cover_path — now an in-article figure) */
.nwd-feature {
  margin: 0 -48px 36px;   /* bleed to article edges */
  border-radius: 0;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
}
.nwd-feature img {
  display: block; width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top;
}

.nwd-excerpt {
  font-size: 17px; line-height: 1.75; color: #374151;
  margin: 0 0 32px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent, #ed1c24);
  border-radius: 0 10px 10px 0;
  background: #fafafa;
  font-weight: 400;
}

.nwd-body {
  font-size: 17px; line-height: 1.9; color: #1f2937;
  margin-bottom: 40px;
}
.nwd-body p { margin: 0 0 1.2em; }
.nwd-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.nwd-body h2 { font-size: 24px; font-weight: 700; margin: 1.5em 0 .6em; color: #111; }
.nwd-body h3 { font-size: 20px; font-weight: 700; margin: 1.4em 0 .5em; color: #111; }
.nwd-body a  { color: var(--accent, #ed1c24); }
.nwd-body ul, .nwd-body ol { padding-left: 1.6em; margin: 0 0 1.2em; }
.nwd-no-body { color: #9ca3af; font-style: italic; }

.nwd-foot {
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.nwd-foot .btn-outline {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #374151;
  text-decoration: none;
}
.nwd-foot .btn-outline:hover { background: #f3f4f6; border-color: #9ca3af; }

/* Related news */
.nwd-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  border-top: 1px solid #e5e7eb;
}
.nwd-related-head {
  text-align: center;
  margin-bottom: 36px;
}
.nwd-related-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; color: var(--accent, #ed1c24);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nwd-related-title {
  font-size: 28px; font-weight: 800; color: #111;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .nw-hero { height: 440px; }
  .nw-hero-content { padding: 0 24px 40px; }
  .nw-hero-content.no-img { padding: 56px 24px; }
  .nw-hero-title { font-size: 38px; }
  .nw-section { padding: 32px 24px 56px; }
  .nw-featured { grid-template-columns: 1fr; }
  .nw-featured-img { aspect-ratio: 4 / 5; }
  .nw-featured-body { padding: 24px; }
  .nw-featured-title { font-size: 22px; }
  .nwd-hero { min-height: 280px; padding: 64px 20px; }
  .nwd-hero-title { font-size: 32px; }
  .nwd-hero-sub { font-size: 14px; }
  .nwd-article { padding: 28px 24px 56px; }
  .nwd-article--lifted { margin-top: -28px; border-radius: 16px 16px 0 0; }
  .nwd-art-title { font-size: 24px; }
  .nwd-art-title-en { font-size: 14px; margin-bottom: 14px; }
  .nwd-feature { margin: 0 -24px 28px; }
  .nwd-related { padding: 48px 24px 64px; }
}
@media (max-width: 560px) {
  .nw-hero-title { font-size: 30px; }
  .nw-grid { grid-template-columns: 1fr; }
  .nwd-hero { min-height: 240px; padding: 48px 18px; }
  .nwd-hero-title { font-size: 26px; }
  .nwd-art-title { font-size: 20px; line-height: 1.4; }
  .nwd-excerpt { font-size: 15px; padding: 14px 16px; }
  .nwd-body { font-size: 15.5px; }
  .nwd-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nwd-article { padding: 22px 18px 48px; }
  .nwd-article--lifted { margin-top: -20px; border-radius: 14px 14px 0 0; }
  .nwd-feature { margin: 0 -18px 24px; }
}

/* Gallery placeholder for video-only entries with no image */
.proj-gallery-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
}
.lb-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a;
  color: rgba(255,255,255,.7);
  font-size: 18px;
}

/* Video-only gallery items — force 16:9 box so they remain visible
   even if YouTube thumbnail fails to load (the play button still shows). */
.proj-gallery-item.is-video-only {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}
.proj-gallery-item.is-video-only img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.proj-gallery-item.img-failed {
  background: #1a1a1a;
  min-height: 200px;
}
.proj-gallery-item.img-failed::after {
  content: ""; display: block;
  width: 100%; aspect-ratio: 16 / 9;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT PAGE
   =================================================================== */
.page-contact { background: #fafafa; color: #1a1a1a; }

/* ── HERO ─────────────────────────────────────────────── */
.ct-hero {
  position: relative;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 64px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1f1f23 0%, #2b2b34 60%, #3a3045 100%);
  overflow: hidden;
}
.ct-hero.ct-hero-light {
  color: #1a1a1a;
  background: linear-gradient(180deg, #ffffff 0%, #f3f1ee 100%);
}
.ct-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.ct-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  z-index: 1;
}
.ct-hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.ct-hero-eyebrow {
  font-size: 12px; letter-spacing: .28em; font-weight: 700;
  color: #f56b71;
  margin-bottom: 16px;
}
.ct-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; margin: 0 0 16px;
}
.ct-hero-sub {
  font-size: 16px; line-height: 1.6; opacity: .85;
  margin: 0 0 28px;
}
.ct-hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ct-btn-primary, .ct-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.ct-btn-primary {
  background: #f56b71; color: #fff; border: 1px solid #f56b71;
}
.ct-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245,107,113,0.35);
}
.ct-btn-outline {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.ct-hero:not(.ct-hero-light) .ct-btn-outline { color: #fff; }
.ct-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.ct-hero-light .ct-btn-outline:hover {
  background: rgba(0,0,0,0.05);
}

/* ── INFO + MAP ───────────────────────────────────────── */
.ct-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.ct-info-eyebrow {
  font-size: 11px; letter-spacing: .28em; font-weight: 700;
  color: #f56b71; margin-bottom: 10px;
}
.ct-info-title {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800; line-height: 1.2; margin: 0 0 16px;
  color: #1a1a1a;
}
.ct-info-lead {
  font-size: 15px; line-height: 1.7; color: #555;
  margin: 0 0 28px;
}
.ct-info-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 20px;
}
.ct-info-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ct-info-list li:hover {
  border-color: #f56b71;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.ct-info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #fff0f1; color: #f56b71;
  border-radius: 10px;
  flex-shrink: 0;
}
.ct-info-key {
  font-size: 12px; letter-spacing: .15em; font-weight: 700;
  color: #999; text-transform: uppercase;
  margin-bottom: 4px;
}
.ct-info-val {
  font-size: 15px; line-height: 1.6; color: #1a1a1a;
}
.ct-info-val a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.ct-info-val a:hover {
  color: #f56b71; border-bottom-color: #f56b71;
}
.ct-info-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 13px; font-weight: 600;
  color: #f56b71;
  text-decoration: none;
}
.ct-info-link:hover { text-decoration: underline; }

/* ── MAP ──────────────────────────────────────────────── */
.ct-map { position: sticky; top: 100px; }
.ct-map-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 480px;
  background: #eee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,0.08);
}
.ct-map-frame iframe { display: block; }
.ct-map-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1a1a1a; color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.ct-map-cta:hover { background: #f56b71; transform: translateY(-2px); }

/* ── SOCIAL ───────────────────────────────────────────── */
.ct-social-section {
  background: #1a1a1a; color: #fff;
  padding: 80px 32px;
}
.ct-social-head {
  max-width: 720px; margin: 0 auto 48px;
  text-align: center;
}
.ct-social-eyebrow {
  font-size: 11px; letter-spacing: .28em; font-weight: 700;
  color: #f56b71; margin-bottom: 12px;
}
.ct-social-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800; margin: 0 0 14px;
}
.ct-social-sub {
  font-size: 15px; line-height: 1.6; opacity: .75; margin: 0;
}
.ct-social-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.ct-social-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #fff; text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}
.ct-social-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(245,107,113,0.5);
}
.ct-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  flex-shrink: 0;
}
.ct-social-fb:hover .ct-social-icon { background: #1877f2; }
.ct-social-ig:hover .ct-social-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ct-social-be:hover .ct-social-icon { background: #1769ff; }
.ct-social-mail:hover .ct-social-icon { background: #f56b71; }
.ct-social-label {
  font-size: 11px; letter-spacing: .2em; font-weight: 700;
  color: #f56b71; text-transform: uppercase;
  margin-bottom: 4px;
}
.ct-social-name {
  font-size: 15px; font-weight: 600;
}
.ct-social-arrow {
  margin-left: auto;
  opacity: .5;
  transition: opacity .15s, transform .15s;
}
.ct-social-card:hover .ct-social-arrow {
  opacity: 1; transform: translateX(4px);
}
.ct-social-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  font-size: 14px; opacity: .7;
}

/* ── CTA ──────────────────────────────────────────────── */
.ct-cta {
  background: #fafafa;
  padding: 80px 32px;
}
.ct-cta-inner {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(135deg, #f56b71 0%, #e0454c 100%);
  border-radius: 20px;
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(245,107,113,0.25);
}
.ct-cta-eyebrow {
  font-size: 11px; letter-spacing: .28em; font-weight: 700;
  opacity: .85; margin-bottom: 10px;
}
.ct-cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800; margin: 0 0 8px;
}
.ct-cta-sub {
  font-size: 15px; opacity: .9; margin: 0;
}
.ct-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: #fff; color: #e0454c;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.ct-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; gap: 32px; }
  .ct-map { position: static; }
  .ct-map-frame { aspect-ratio: 4 / 3; min-height: 360px; }
  .ct-cta-inner { flex-direction: column; text-align: center; padding: 36px 24px; }
}
@media (max-width: 600px) {
  .ct-hero { padding: 100px 20px 48px; }
  .ct-section { padding: 56px 20px; }
  .ct-social-section { padding: 56px 20px; }
  .ct-cta { padding: 56px 20px; }
  .ct-info-list li { padding: 14px 16px; }
  .ct-info-icon { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PWA INSTALL POPUP — "Add to Home Screen"
   =================================================================== */
.pwa-install {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.pwa-install.is-open { display: flex; pointer-events: auto; }
@media (min-width: 600px) {
  .pwa-install { align-items: center; }
}

.pwa-install-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.pwa-install.is-open .pwa-install-backdrop { opacity: 1; }

.pwa-install-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 600px) {
  .pwa-install-panel {
    border-radius: 24px;
    margin: 0 16px;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease;
  }
}
.pwa-install.is-open .pwa-install-panel {
  transform: translateY(0);
  opacity: 1;
}
@media (min-width: 600px) {
  .pwa-install.is-open .pwa-install-panel {
    transform: translateY(0) scale(1);
  }
}

.pwa-install-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f3f4f6; color: #6b7280;
  border: none; cursor: pointer;
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, transform .15s;
}
.pwa-install-close:hover { background: #e5e7eb; color: #111; transform: rotate(90deg); }

/* App icon — looks like a real iOS/Android home screen icon */
.pwa-install-icon {
  width: 88px; height: 88px;
  margin: 8px auto 16px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.6) inset;
  background: linear-gradient(135deg, #f56b71 0%, #e0454c 100%);
  display: flex; align-items: center; justify-content: center;
}
.pwa-install-icon img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.pwa-install-icon-fallback {
  color: #fff; font-size: 40px; font-weight: 800;
  font-family: 'Inter', sans-serif;
}

.pwa-install-app-name {
  font-size: 15px; font-weight: 700; color: #111;
  margin-bottom: 2px;
}
.pwa-install-app-domain {
  font-size: 11px; color: #9ca3af;
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.pwa-install-title {
  font-size: 18px; font-weight: 700; color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.pwa-install-desc {
  font-size: 14px; line-height: 1.55; color: #6b7280;
  margin: 0 0 22px;
}

.pwa-install-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.pwa-install-btn-primary,
.pwa-install-btn-ghost {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background .15s, color .15s, transform .12s, box-shadow .15s;
}
.pwa-install-btn-primary {
  background: linear-gradient(135deg, #f56b71 0%, #e0454c 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245,107,113,0.35);
}
.pwa-install-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245,107,113,0.45);
}
.pwa-install-btn-primary:active { transform: translateY(0); }
.pwa-install-btn-ghost {
  background: transparent; color: #6b7280;
}
.pwa-install-btn-ghost:hover { background: #f9fafb; color: #111; }

/* iOS instruction steps */
.pwa-install-ios-steps {
  text-align: left;
  margin-bottom: 18px;
  background: #f8f9fb;
  border-radius: 14px;
  padding: 16px;
}
.pwa-install-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0;
}
.pwa-install-step + .pwa-install-step {
  border-top: 1px solid #ececec;
}
.pwa-install-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f56b71; color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pwa-install-step-text {
  font-size: 14px; line-height: 1.55; color: #1a1a1a;
  padding-top: 2px;
}
.pwa-install-step-text strong { font-weight: 700; color: #f56b71; }

/* Respect safe-area on iOS (notch / home indicator) */
@supports (padding: env(safe-area-inset-bottom)) {
  .pwa-install-panel {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT PAGE — VIDEO GALLERY LAYOUTS
   =================================================================== */

/* ── Solo video: cinematic hero ──────────────────────────────────── */
.proj-video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  margin-top: 16px;
  background: #0a0a0a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  transition: transform .3s ease, box-shadow .3s ease;
}
.proj-video-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.38);
}

/* Blurred background fill */
.pvh-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.35) saturate(1.3);
  transform: scale(1.08);
  z-index: 0;
}

/* Gradient overlay */
.pvh-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg,   rgba(0,0,0,.72) 0%,  transparent 40%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%,  transparent 35%);
  z-index: 1;
}

/* Sharp thumbnail — centred, contained */
.pvh-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 2;
  transition: transform .4s ease;
}
.proj-video-hero:hover .pvh-thumb {
  transform: scale(1.025);
}

/* VIDEO badge — top left */
.pvh-badge {
  position: absolute; top: 18px; left: 18px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
}

/* Large play button */
.pvh-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding-left: 5px;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.5);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.proj-video-hero:hover .pvh-play {
  background: rgba(255, 30, 30, 0.9);
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 0 12px rgba(255,30,30,0.15),
    0 12px 40px rgba(255,30,30,0.4);
}

/* Caption bar — bottom */
.pvh-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 20px 24px 18px;
  font-size: 15px; font-weight: 500; color: #fff;
  line-height: 1.4;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 100%);
}

/* "คลิกเพื่อดูวิดีโอ" hint — bottom right */
.pvh-hint {
  position: absolute; bottom: 18px; right: 20px;
  z-index: 4;
  font-size: 11px; letter-spacing: .12em; font-weight: 600;
  color: rgba(255,255,255,.65);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.proj-video-hero:hover .pvh-hint {
  opacity: 1; transform: translateY(0);
}

/* ── Multi-video: 2-column 16:9 grid ────────────────────────────── */
.proj-gallery--videos {
  columns: unset !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.proj-gallery--videos .proj-gallery-item {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  margin-bottom: 0;
}
.proj-gallery--videos .proj-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.proj-gallery--videos .proj-gallery-play {
  width: 56px; height: 56px;
}

/* Responsive */
@media (max-width: 600px) {
  .proj-video-hero { aspect-ratio: 16 / 9; border-radius: 10px; }
  .pvh-play { width: 68px; height: 68px; }
  .proj-gallery--videos { grid-template-columns: 1fr; }
}

/* ── News detail — lifted card + new UI elements ───────────── */

/* Lifted card: overlaps hero when hero image is set */
.nwd-article--lifted {
  margin-top: -56px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,.09);
  padding-top: 52px;
}

/* Article meta row (reading time, etc.) */
.nwd-article-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.nwd-read-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: #9ca3af; font-weight: 500;
  background: #f3f4f6; border-radius: 100px;
  padding: 4px 12px;
}

/* Topbar: tighten up */
.nwd-topbar {
  margin-bottom: 20px;
  padding-bottom: 16px;
}

/* Back button — arrow icon style */
.nwd-back {
  gap: 5px;
  transition: color .2s, gap .2s;
}
.nwd-back:hover { gap: 8px; }

/* Foot back-link button */
.nwd-foot .btn-outline {
  gap: 6px;
  transition: background .2s, border-color .2s, gap .2s;
}
.nwd-foot .btn-outline:hover { gap: 10px; }

/* Related news section sits on the gray page bg */
.nwd-related {
  background: transparent;
}
.nwd-related-title {
  font-size: 26px;
}

/* ═══════════════════════════════════════════════════════════════════
   SOCIAL SHARE BAR — reusable across portfolio / news / exhibitions
   ═══════════════════════════════════════════════════════════════════ */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 14px 18px;
  background: #f9fafb;
  border: 1px solid #ececef;
  border-radius: 14px;
}
.share-bar-label {
  font-size: 11.5px; font-weight: 700;
  color: #6b7280;
  text-transform: uppercase; letter-spacing: .12em;
  margin-right: 6px;
}

/* Compact variant: tighter, no background — for use inside cards */
.share-bar--compact {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  gap: 6px;
}
.share-bar--compact .share-bar-label { display: none; }

.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb; border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.share-btn svg { flex: 0 0 auto; }
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Per-platform hover colors */
.share-btn--native      { background: var(--accent, #ed1c24); border-color: var(--accent, #ed1c24); color: #fff; }
.share-btn--native:hover{ background: #c4151c; border-color: #c4151c; }
.share-btn--fb:hover    { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn--line:hover  { background: #06c755; border-color: #06c755; color: #fff; }
.share-btn--tw:hover    { background: #111;    border-color: #111;    color: #fff; }
.share-btn--copy:hover  { background: #374151; border-color: #374151; color: #fff; }

/* Copy success toast (bottom-center) */
.share-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  padding: 11px 22px;
  background: rgba(17, 17, 17, .92);
  color: #fff;
  font-size: 13.5px; font-weight: 500;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 99999;
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .share-bar { padding: 12px; gap: 6px; }
  .share-btn { padding: 9px 11px; }
  .share-btn-label { display: none; }
  .share-bar-label { width: 100%; margin-bottom: 4px; }
}

/* ── Facebook preview modal (PWA fallback) ── */
.ssr-fb-modal {
  position: fixed; inset: 0;
  z-index: 100000;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  display: flex; align-items: center; justify-content: center;
}
.ssr-fb-modal.show { opacity: 1; pointer-events: auto; }
.ssr-fb-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ssr-fb-modal-box {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  transform: translateY(14px) scale(.97);
  transition: transform .22s ease;
}
.ssr-fb-modal.show .ssr-fb-modal-box { transform: translateY(0) scale(1); }
.ssr-fb-modal-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px;
  border: 0; background: rgba(0,0,0,.05);
  color: #555; font-size: 22px; line-height: 1;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ssr-fb-modal-close:hover { background: rgba(0,0,0,.12); color: #000; }
.ssr-fb-modal-head {
  padding: 14px 50px 12px 18px;
  font-size: 14px; font-weight: 600;
  color: #1877f2;
  border-bottom: 1px solid #eee;
}
.ssr-fb-modal-img {
  width: 100%; height: 220px;
  background: #f0f2f5 center/cover no-repeat;
}
.ssr-fb-modal-body {
  padding: 12px 18px 8px;
  background: #f7f8fa;
}
.ssr-fb-modal-domain {
  font-size: 11px; color: #65676b;
  text-transform: uppercase; letter-spacing: .3px;
  margin-bottom: 3px;
}
.ssr-fb-modal-title {
  font-size: 16px; font-weight: 600;
  color: #050505; line-height: 1.3;
  margin-bottom: 4px;
}
.ssr-fb-modal-text {
  font-size: 13px; color: #65676b;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ssr-fb-modal-hint {
  padding: 12px 18px;
  font-size: 13px; line-height: 1.5;
  color: #444;
  background: #fff8e1;
  border-top: 1px solid #ffe082;
}
.ssr-fb-modal-hint b { color: #b26a00; }
.ssr-fb-steps { display: flex; flex-direction: column; gap: 7px; }
.ssr-fb-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #444;
}
.ssr-fb-step-n {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: #1877f2; color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ssr-fb-modal-actions {
  display: flex; gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #eee;
}
.ssr-fb-btn-cancel,
.ssr-fb-btn-go {
  flex: 1;
  padding: 11px 14px;
  border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.ssr-fb-btn-cancel {
  background: #e4e6eb; color: #333;
  flex: 0 0 90px;
}
.ssr-fb-btn-cancel:hover { background: #d8dadf; }
.ssr-fb-btn-go {
  background: #1877f2; color: #fff;
}
.ssr-fb-btn-go:hover { background: #166fe0; }
.ssr-fb-btn-go:active { transform: scale(.98); }

/* Profile share bar wrapper — sits between hero and about sections */
.profile-share-wrap {
  background: #fff;
  padding: 0 56px;
  margin: 0;
}
.profile-share-wrap .share-bar {
  margin: 0;
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  border-bottom: 1px solid #ececef;
  background: #fff;
  padding: 16px 0;
}
@media (max-width: 1024px) {
  .profile-share-wrap { padding: 0 32px; }
}
@media (max-width: 640px) {
  .profile-share-wrap { padding: 0 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   NEWS DETAIL — Gallery grid + Lightbox  (news-detail.php)
   ══════════════════════════════════════════════════════════════════ */

/* ── Gallery grid ── */
.nwd-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 16px 0 32px;
}

.nwd-gal-item {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: filter .22s ease;
  /* Force uniform height — users click to see full image in lightbox */
  aspect-ratio: 4 / 3;
}
.nwd-gal-item:hover { filter: brightness(.82); }

.nwd-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .32s ease;
}
.nwd-gal-item:hover img { transform: scale(1.05); }

.nwd-gal-item figcaption {
  padding: 8px 12px;
  font-size: 11px;
  color: #6b7280;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  line-height: 1.4;
}

/* ── Lightbox ── */
.nwd-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9900;
  align-items: center;
  justify-content: center;
}
.nwd-lb.is-open {
  display: flex;
}

.nwd-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  cursor: zoom-out;
}

.nwd-lb-stage {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nwd-lb-stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
  display: block;
}

.nwd-lb-cap {
  display: none;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
  padding: 0 16px;
}

/* Close button */
.nwd-lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.nwd-lb-close:hover { background: rgba(255,255,255,.25); }

/* Prev / Next arrows */
.nwd-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.nwd-lb-nav:hover { background: rgba(255,255,255,.25); }
.nwd-lb-prev { left: 14px; }
.nwd-lb-next { right: 14px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nwd-gallery { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .nwd-lb-nav { width: 36px; height: 36px; font-size: 22px; }
  .nwd-lb-prev { left: 6px; }
  .nwd-lb-next { right: 6px; }
  .nwd-lb-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 15px; }
}

@media (max-width: 400px) {
  .nwd-gallery { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}

/* ── Image Protection: gallery + lightbox ────────────────────
   pointer-events:none on <img> disables "Save Image As" without
   breaking click-to-open-lightbox (click still reaches parent).
──────────────────────────────────────────────────────────────── */
.proj-gallery,
.proj-gallery--videos,
.lightbox {
  -webkit-user-select: none;
  user-select: none;
}
.proj-gallery-item img,
.proj-gallery--videos .proj-gallery-item img,
.pvh-thumb,
#lb-img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* events pass through to parent — click still works */
}

/* ── Copyright toast ─────────────────────────────────────── */
#protect-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(10, 10, 10, .88);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 24px;
  border-radius: 10px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
#protect-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
  #protect-toast { font-size: 12px; padding: 9px 16px; white-space: normal; max-width: 88vw; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   COOKIE CONSENT — Banner, Modal, Floating Button (PDPA-compliant)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Banner ── */
.ck-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99000;
  background: #1a1a2e; color: #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.ck-banner--show { transform: translateY(0); }
.ck-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px 24px;
}
.ck-banner-text { flex: 1; min-width: 240px; }
.ck-banner-title { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.ck-banner-desc  { font-size: 13px; color: #9ca3af; margin: 0; line-height: 1.6; }
.ck-link { color: #f56b71; text-decoration: underline; }
.ck-banner-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

/* ── Shared button styles ── */
.ck-btn {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border: 0; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.ck-btn:active { transform: scale(.97); }
.ck-btn--settings {
  background: rgba(255,255,255,.1); color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.2);
}
.ck-btn--settings:hover { background: rgba(255,255,255,.18); }
.ck-btn--reject  { background: #374151; color: #e5e7eb; }
.ck-btn--reject:hover { background: #4b5563; }
.ck-btn--accept  { background: #c0392b; color: #fff; }
.ck-btn--accept:hover { background: #a93226; }
.ck-btn--save    { background: #1d4ed8; color: #fff; }
.ck-btn--save:hover { background: #1e40af; }

/* ── Modal ── */
.ck-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.ck-modal--show { opacity: 1; pointer-events: auto; }
.ck-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ck-modal-box {
  position: relative; z-index: 1;
  width: min(540px, 100vw);
  max-height: 90vh; overflow-y: auto;
  background: #fff; color: #111;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.3);
  transform: translateY(24px);
  transition: transform .28s ease;
}
.ck-modal--show .ck-modal-box { transform: translateY(0); }
.ck-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: #f3f4f6; color: #555;
  font-size: 20px; line-height: 1; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ck-modal-close:hover { background: #e5e7eb; color: #111; }
.ck-modal-head {
  padding: 24px 24px 0;
  border-bottom: 1px solid #f0f0f0; margin-bottom: 0;
}
.ck-modal-head h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ck-modal-head p  { font-size: 13px; color: #6b7280; margin: 0 0 20px; line-height: 1.6; }

/* ── Cookie rows ── */
.ck-modal-body { padding: 8px 0; }
.ck-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 24px;
  border-bottom: 1px solid #f9fafb;
}
.ck-row:last-child { border-bottom: 0; }
.ck-row--locked { opacity: .8; }
.ck-row-info { flex: 1; }
.ck-row-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.ck-row-desc { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.6; }

.ck-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 100px; font-size: 11px; font-weight: 700;
  background: #f3f4f6; color: #6b7280;
}
.ck-badge--on { background: #dcfce7; color: #15803d; }

/* ── Toggle switch ── */
.ck-toggle {
  flex-shrink: 0; position: relative;
  display: inline-block; width: 44px; height: 24px;
  cursor: pointer; margin-top: 2px;
}
.ck-toggle input { opacity: 0; width: 0; height: 0; }
.ck-toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 24px;
  transition: background .2s;
}
.ck-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.ck-toggle input:checked + .ck-toggle-slider { background: #16a34a; }
.ck-toggle input:checked + .ck-toggle-slider::before { transform: translateX(20px); }
.ck-toggle--disabled { cursor: not-allowed; opacity: .5; }
.ck-toggle--disabled .ck-toggle-slider { background: #16a34a; }
.ck-toggle--disabled .ck-toggle-slider::before { transform: translateX(20px); }

/* ── Modal footer ── */
.ck-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 16px 24px 28px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa; border-radius: 0 0 20px 20px;
}
.ck-link-policy { font-size: 12px; color: #6b7280; text-decoration: underline; }
.ck-link-policy:hover { color: #c0392b; }
.ck-modal-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Floating manage button ── */
.ck-manage-btn {
  position: fixed; bottom: 20px; left: 20px; z-index: 9500;
  width: 42px; height: 42px;
  background: #1a1a2e; color: #fff;
  border: 0; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  opacity: .85;
}
.ck-manage-btn:hover { background: #c0392b; transform: scale(1.1); opacity: 1; }

/* ── Footer privacy links ── */
.footer-base-links {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; opacity: .7;
}
.footer-base-links a { color: inherit; text-decoration: none; }
.footer-base-links a:hover { opacity: 1; color: #f56b71; }
.footer-cookie-btn {
  background: 0; border: 0; padding: 0;
  color: inherit; font-size: inherit;
  cursor: pointer; opacity: 1;
  font-family: inherit;
  text-decoration: underline;
}
.footer-cookie-btn:hover { color: #f56b71; }

/* ── Mobile adjustments ── */
@media (max-width: 640px) {
  .ck-banner-inner { flex-direction: column; align-items: flex-start; padding: 16px; }
  .ck-banner-actions { width: 100%; }
  .ck-btn { flex: 1; justify-content: center; font-size: 12px; padding: 9px 12px; }
  .ck-modal-footer { flex-direction: column; align-items: flex-start; }
  .ck-modal-btns { width: 100%; }
  .ck-modal-btns .ck-btn { flex: 1; justify-content: center; }
  .ck-modal-box { border-radius: 16px 16px 0 0; }
  .ck-manage-btn { bottom: 16px; left: 16px; width: 38px; height: 38px; font-size: 18px; }
  .footer-home-base { flex-direction: column; gap: 8px; text-align: center; }
  .footer-base-links { justify-content: center; }
}
