/* ===========================================================
   Tran Cuisine — onepage restaurant site
   Modern Asian · dark + light (Apple-clean) themes
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-tint: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --text: #15130f;
  --muted: #6b6359;
  --line: rgba(20, 16, 12, .10);
  --line-strong: rgba(20, 16, 12, .16);
  --brand: #c12a20;
  --brand-ink: #ffffff;
  --brand-soft: rgba(193, 42, 32, .08);
  --gold: #9a6b2f;
  --shadow-sm: 0 2px 10px rgba(20, 16, 12, .05);
  --shadow-md: 0 18px 50px rgba(20, 16, 12, .10);
  --shadow-lg: 0 40px 90px rgba(20, 16, 12, .14);
  --header-bg: rgba(255, 255, 255, .72);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1); /* @kind other */
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-tint: #110f0d;
  --surface: #161311;
  --surface-2: #1d1916;
  --text: #f6efe2;
  --muted: #a99f90;
  --line: rgba(246, 239, 226, .12);
  --line-strong: rgba(246, 239, 226, .2);
  --brand: #e23b30;
  --brand-ink: #ffffff;
  --brand-soft: rgba(226, 59, 48, .14);
  --gold: #d3a45f;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .4);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-lg: 0 48px 110px rgba(0, 0, 0, .6);
  --header-bg: rgba(11, 10, 9, .68);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.serif { font-family: "Playfair Display", Georgia, serif; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: .7;
}

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

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 5.2vw, 60px); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }

.muted { color: var(--muted); }
.tint { background: var(--bg-tint); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  min-height: var(--bh);
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  box-shadow: 0 14px 34px -10px var(--brand);
}
.btn-primary:hover { box-shadow: 0 20px 40px -8px var(--brand); }
.btn-outline { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-disabled {
  pointer-events: none;
  opacity: .5;
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
}
.btn-sm { --bh: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: brightness(0) saturate(0);   /* black for light mode */
  transition: filter .4s var(--ease);
}
[data-theme="dark"] .brand-mark { filter: none; }
.brand-name { display: grid; line-height: 1; }
.brand-name b {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
}
.brand-name small {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: #f6efe2;
  overflow: hidden;
  background: #0b0a09;
}
.hero::after {  /* ambient warm glow */
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vw; height: 70vw;
  right: -18vw; top: -10vw;
  background: radial-gradient(circle, rgba(226, 59, 48, .26), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 96px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(52px, 9vw, 116px);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero-lead {
  max-width: 30ch;
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(246, 239, 226, .78);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { color: #f6efe2; border-color: rgba(246, 239, 226, .28); }
.hero .btn-outline:hover { background: rgba(246, 239, 226, .08); }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .14);
  border-radius: inherit;
}
.hero-chip {
  position: absolute;
  left: -22px; bottom: 30px;
  background: rgba(11, 10, 9, .72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(246, 239, 226, .16);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 4px;
}
.hero-chip .dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #7be07b;
}
.hero-chip .dot i {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px rgba(123, 224, 123, .18);
}
.hero-chip b { font-size: 17px; font-family: "Playfair Display", serif; }
.hero-chip span { font-size: 13px; color: rgba(246, 239, 226, .7); }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(246, 239, 226, .55);
  display: grid; justify-items: center; gap: 8px;
}
.hero-scroll i {
  width: 1px; height: 34px;
  background: linear-gradient(rgba(246,239,226,.6), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { opacity: .2; transform: scaleY(.4); transform-origin: top; } 50% { opacity: 1; } 100% { opacity: .2; transform: scaleY(1); transform-origin: top; } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .media-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6;
}
.about-media .media-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .media-badge {
  position: absolute;
  right: -18px; bottom: -18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-media .media-badge b { font-family: "Playfair Display", serif; font-size: 30px; display: block; }
.about-media .media-badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }

.features { display: grid; gap: 14px; margin-top: 30px; }
.feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.feature .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-family: "Be Vietnam Pro", sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.loc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.loc.featured { border-color: var(--brand); box-shadow: 0 24px 60px -28px var(--brand); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { color: #1f8a3b; background: rgba(31, 138, 59, .12); }
[data-theme="dark"] .status.open { color: #6ddf86; background: rgba(109, 223, 134, .14); }
.status.soon { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

.loc h3 { font-size: 30px; margin-bottom: 6px; }
.loc .addr { color: var(--muted); font-size: 14.5px; }
.loc .phone { font-size: 14.5px; margin-top: 8px; }
.loc .phone b { font-weight: 700; }

.hours { display: grid; gap: 7px; margin: 0; padding: 14px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.hours li span:first-child { color: var(--muted); }
.hours li.today { color: var(--brand); font-weight: 700; }
.hours li.today span:first-child { color: var(--brand); }

.loc-actions { display: grid; gap: 10px; margin-top: auto; }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dish {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.dish img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.dish::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7,6,5,.92) 4%, rgba(7,6,5,.4) 46%, rgba(7,6,5,.05) 78%);
}
.dish:hover img { transform: scale(1.06); }
.dish-body { padding: 26px; color: #f6efe2; width: 100%; }
.dish-body .k {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.dish-body h3 { font-size: 28px; margin-bottom: 6px; }
.dish-body p { font-size: 14.5px; color: rgba(246, 239, 226, .76); margin-bottom: 16px; max-width: 42ch; }
.dish-body .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #f6efe2;
}
.dish-body .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dish:hover .dish-body .more svg { transform: translateX(4px); }

/* ---------- Order ---------- */
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.order-card {
  display: grid; gap: 12px;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.order-card h3 { font-size: 24px; }
.order-card p { color: var(--muted); font-size: 14.5px; }
.order-card .btn { margin-top: 6px; }
.order-num {
  font-family: "Playfair Display", serif;
  font-size: 14px; color: var(--muted); font-weight: 700;
}

/* ---------- News ---------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.admin-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 999px; padding: 8px 14px;
}
.admin-note svg { width: 15px; height: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news {
  display: grid; gap: 12px; align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s;
}
.news:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news .tag {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 11px; border-radius: 999px;
}
.news time { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.news h3 { font-family: "Be Vietnam Pro", sans-serif; font-size: 19px; font-weight: 700; line-height: 1.25; }
.news p { font-size: 14.5px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-card {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.contact-card h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 28px; }
.contact-card .eyebrow { color: var(--brand); }
.c-line { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.c-line span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; font-weight: 600; }
.c-line a, .c-line b { font-size: 20px; font-family: "Playfair Display", serif; font-weight: 700; }
.contact-card .socials { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; }
.contact-card .socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 12%, transparent);
  transition: transform .2s, background .2s;
}
.contact-card .socials a:hover { transform: translateY(-3px); background: var(--brand); color: #fff; }
.contact-card .socials svg { width: 20px; height: 20px; }

.contact-side { display: grid; gap: 14px; align-content: start; }
.mini {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.mini h3 { font-size: 20px; margin-bottom: 2px; }
.mini p { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 96px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand-mark { width: 40px; height: 40px; }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-meta a:hover { color: var(--text); }
.copyright { font-size: 13px; color: var(--muted); width: 100%; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.bottom-nav a {
  display: grid; justify-items: center; gap: 4px;
  padding: 8px 4px;
  border-radius: 14px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.cta { color: var(--brand-ink); background: var(--brand); }
.bottom-nav a.active { color: var(--text); background: var(--surface-2); }
.bottom-nav a.cta.active { color: var(--brand-ink); background: var(--brand); }

/* ---------- Reveal animations ---------- */
/* Hidden state only applies once JS confirms it can reveal — content shows by default otherwise */
html.reveal-on .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.reveal-on .reveal-left { transform: translateX(-44px); }
html.reveal-on .reveal-right { transform: translateX(44px); }
html.reveal-on .reveal-down { transform: translateY(-34px); }
html.reveal-on .reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .hero-scroll i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 116px; padding-bottom: 90px; }
  .hero-media { max-width: 460px; }
  .hero-chip { left: auto; right: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .loc-grid, .order-grid, .news-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery .g-wide { grid-column: span 2; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: grid;
    position: fixed;
    left: 12px; right: 12px; top: 76px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { height: 50px; font-size: 16px; padding: 0 16px; }
  .menu-toggle { display: inline-grid; }
  .nav .btn-primary.desktop { display: none; }
  .bottom-nav { display: grid; }
  footer { padding-bottom: 110px; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .brand-name small { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-chip { right: 10px; bottom: 20px; }
  .about-media .media-badge { right: 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .g-wide, .gallery .g-tall { grid-column: auto; grid-row: auto; }
  .footer-inner { justify-content: flex-start; }
}

/* ---------- Video-led website usage section ---------- */
.kajo-hero-video,
.kajo-usage-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
  border-radius: inherit;
  cursor: pointer;
}

.kajo-hero-video:focus-visible,
.kajo-usage-video-frame video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.kajo-usage-layout {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.kajo-usage-video {
  display: flex;
  justify-content: center;
}

.kajo-usage-video-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 28px 60px -32px rgba(25, 25, 25, .55);
}

.kajo-usage-panel {
  min-width: 0;
}

.kajo-usage-heading {
  margin-bottom: 24px;
}

.kajo-usage-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kajo-usage-label span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
}

.kajo-usage-title {
  margin: 0;
  color: var(--ink);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.kajo-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px) {
  .kajo-usage-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .kajo-usage-grid {
    grid-template-columns: 1fr;
  }
}

/* Kajo Studio website brief */
.kajo-brief-back {
  min-height: 42px;
  margin: 0 0 22px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kajo-brief-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.kajo-brief-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.kajo-brief-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kajo-brief-heading h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
}

.kajo-brief-heading p {
  max-width: 760px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.kajo-brief-heading p.kajo-brief-gap {
  margin-top: 16px;
}

.kajo-brief-form {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: clamp(22px, 3vw, 32px);
  background: var(--surface);
  box-shadow: 0 28px 70px -38px rgba(25, 25, 25, .45);
}

.kajo-package-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.kajo-package-switcher button {
  min-height: 88px;
  padding: 13px 10px;
  border-radius: 16px;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kajo-package-switcher button:hover {
  transform: translateY(-2px);
}

.kajo-package-switcher span,
.kajo-package-switcher strong {
  display: block;
}

.kajo-package-switcher span {
  font-size: 13px;
  font-weight: 700;
}

.kajo-package-switcher strong {
  margin-top: 4px;
  color: #168454;
  font-size: 19px;
}

.kajo-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 16px;
  align-items: start;
}

.kajo-brief-grid label,
.kajo-notes {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.kajo-brief-grid label > span,
.kajo-notes > span {
  display: block;
}

.kajo-brief-grid label b {
  color: #d83d3d;
}

.kajo-brief-grid input,
.kajo-brief-grid select,
.kajo-brief-grid textarea,
.kajo-notes textarea {
  width: 100%;
  min-height: 49px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}

.kajo-brief-grid textarea,
.kajo-notes textarea {
  resize: vertical;
}

.kajo-brief-grid input:focus,
.kajo-brief-grid select:focus,
.kajo-brief-grid textarea:focus,
.kajo-notes textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 38%, transparent);
}

.kajo-brief-grid small {
  margin-top: -3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  opacity: .72;
}

.kajo-full {
  grid-column: 1 / -1;
}

.kajo-business-fields {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.kajo-legal-box {
  margin: 26px 0 20px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 3%, var(--surface));
}

.kajo-legal-box > strong {
  color: var(--ink);
  font-size: 16px;
}

.kajo-legal-box > p {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.kajo-later {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 17px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kajo-later input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.kajo-notes {
  margin-top: 18px;
}

.kajo-upload-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 17%, var(--surface));
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .kajo-brief-form {
    padding: 20px 16px;
  }

  .kajo-package-switcher {
    gap: 7px;
  }

  .kajo-package-switcher button {
    min-height: 78px;
    padding: 9px 4px;
  }

  .kajo-package-switcher span {
    font-size: 11px;
    line-height: 1.3;
  }

  .kajo-brief-grid {
    grid-template-columns: 1fr;
  }

  .kajo-full {
    grid-column: auto;
  }

  .kajo-legal-box {
    padding: 18px 14px;
  }
}

.kajo-legal-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.kajo-legal-link:hover {
  background: var(--accent);
}

.kajo-start-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 24px;
}

.kajo-start-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.kajo-start-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.kajo-start-line {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
}

.kajo-start-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.kajo-start-heading p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.kajo-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.kajo-start-card {
  position: relative;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 50px -38px rgba(25, 25, 25, .45);
}

.kajo-start-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
}

.kajo-start-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

.kajo-start-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.kajo-start-packages {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.kajo-start-packages a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.kajo-start-packages a:hover {
  transform: translateX(3px);
  border-color: var(--ink);
}

.kajo-start-packages a.popular {
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.kajo-start-packages span {
  font-size: 13px;
  font-weight: 700;
}

.kajo-start-packages strong {
  font-size: 16px;
}

.kajo-start-packages small {
  position: absolute;
  top: -6px;
  left: 50%;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.kajo-payment-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  padding: 13px 9px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
}

.kajo-payment-split > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 4px;
}

.kajo-payment-split > div + div {
  border-left: 1px solid rgba(251, 251, 243, .2);
}

.kajo-payment-split strong {
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

.kajo-payment-split span {
  font-size: 9.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.kajo-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.kajo-payment-method {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.kajo-payment-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.kajo-handover-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.kajo-handover-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
}

.kajo-handover-list li span {
  color: #168454;
  font-weight: 900;
}

.kajo-start-cta {
  margin-top: 26px;
  text-align: center;
}

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

  .kajo-start-card {
    padding: 25px 22px;
  }
}
