/* ==========================================================================
   Chara Production — Shared Styles
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #0c0c0b;
  --bg-alt: #141412;
  --cream: #efe8d6;
  --cream-dim: #b9b3a2;
  --green: #1f3d2c;
  --green-light: #2e5c41;
  --accent: #ff5b35;
  --line: rgba(239, 232, 214, 0.14);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Pretendard Variable', 'Space Grotesk', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-solid {
  background: var(--accent);
  color: #0c0c0b;
  border-color: var(--accent);
}
.btn-solid:hover { transform: translateY(-3px); background: #ff7452; }
.btn-outline:hover {
  border-color: var(--cream);
  transform: translateY(-3px);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 12, 11, 0.86);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.footer-grid .logo-img { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream-dim);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 13px; }

.burger {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.mobile-menu .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 26s linear infinite;
  gap: 48px;
}
.marquee-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}
.marquee-track span em {
  font-style: normal;
  color: var(--accent);
  margin-right: 4px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section basics ---------- */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Pretendard Variable', sans-serif; letter-spacing: -0.02em; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  max-width: 640px;
}
.section-head p {
  color: var(--cream-dim);
  max-width: 380px;
  font-size: 15px;
  line-height: 1.7;
}

.intro-statement {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.intro-statement h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.intro-statement p {
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 90px 0 36px;
  background: var(--bg-alt);
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 64px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}
.footer-cta h2 span { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-grid p, .footer-grid a {
  color: var(--cream-dim);
  font-size: 14.5px;
  display: block;
  margin-bottom: 10px;
  transition: color .3s;
}
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--cream-dim);
}
.footer-bottom .logo .mark { font-size: 24px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }
.reveal-delay-5.in-view { transition-delay: .5s; }

/* ---------- Play button ---------- */
.play-btn {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(239, 232, 214, 0.5);
  background: rgba(12, 12, 11, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s, transform .35s var(--ease), border-color .35s;
  flex-shrink: 0;
}
.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--cream);
  margin-left: 4px;
}
.play-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.play-btn:hover::after { border-left-color: #0c0c0b; }
.play-btn.sm { width: 46px; height: 46px; }
.play-btn.sm::after { border-width: 6px 0 6px 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero-bg img, .hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 22s ease-in-out infinite alternate;
  opacity: .78;
}
.hero-bg video {
  /* the footage already has its own camera movement — the CSS pan/zoom would double up on it */
  animation: none;
  transform: scale(1.02);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,11,.35) 0%, rgba(12,12,11,.35) 40%, var(--bg) 96%),
    linear-gradient(90deg, rgba(12,12,11,.62) 0%, rgba(12,12,11,.2) 42%, rgba(12,12,11,0) 62%);
  z-index: -1;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
.hero .eyebrow { color: var(--cream); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 {
  font-size: clamp(38px, 7vw, 104px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 1040px;
}
.hero h1 em, h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
.hero .hero-sub {
  margin-top: 26px;
  max-width: 480px;
  color: var(--cream-dim);
  font-size: 16.5px;
  line-height: 1.7;
}
.hero .hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  right: 40px; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-cue span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-cue .line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: '';
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 6, 5, 0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease);
  padding: 24px;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal .frame {
  width: min(1080px, 100%);
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  transform: scale(.94);
  transition: transform .45s var(--ease);
}
.video-modal.is-open .frame { transform: scale(1); }
.video-modal video { width: 100%; height: 100%; object-fit: cover; }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal .vm-close {
  position: absolute; top: -54px; right: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none; color: var(--cream);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, transform .3s;
}
.video-modal .vm-close:hover { border-color: var(--cream); transform: rotate(90deg); }

/* ---------- Marquee wordmark (big, section) ---------- */
.marquee-big {
  padding: 46px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-big .marquee-track {
  animation-duration: 32s;
  gap: 0;
}
.marquee-big span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  padding: 0 28px;
  gap: 0;
}
.marquee-big span em {
  font-style: normal;
  color: var(--cream);
  -webkit-text-stroke: 0;
}

/* ---------- Quote / testimonial section ---------- */
.quote-section {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
}
.quote-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,.94) 100%);
}
.quote-section .wrap { position: relative; z-index: 1; }
.quote-section blockquote {
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 820px;
  margin-bottom: 40px;
}
.quote-meta { display: flex; align-items: center; gap: 16px; }
.quote-meta .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); overflow: hidden; flex-shrink: 0;
}
.quote-meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-meta .name { font-weight: 700; font-size: 15px; }
.quote-meta .role { color: var(--cream-dim); font-size: 13px; }

/* ---------- Voice section extras (video thumb + highlight strip) ---------- */
.voice-layout { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; flex-wrap: wrap; }
.voice-copy { max-width: 640px; }
.voice-thumb {
  position: relative;
  width: 300px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.voice-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.voice-thumb:hover img { transform: scale(1.06); }
.voice-thumb .play-btn { position: absolute; inset: 0; margin: auto; }
.voice-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.voice-highlights li { display: flex; gap: 12px; }
.voice-highlights .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--accent); font-size: 13px; }
.voice-highlights p { font-size: 13.5px; color: var(--cream-dim); line-height: 1.6; }

/* ---------- Full-bleed work block ---------- */
.work-block {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.work-block .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.work-block:hover .bg-img { transform: scale(1.08); }
.work-block::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,11,.15) 0%, rgba(12,12,11,.92) 100%);
}
.work-block .wrap { position: relative; z-index: 1; }
.work-block .cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.work-block h3 { font-size: clamp(32px, 5vw, 64px); font-weight: 700; max-width: 720px; margin-bottom: 20px; }
.work-block .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
}
.work-block .play-btn::after { border-width: 13px 0 13px 22px; margin-left: 6px; }
.work-block-foot { display: flex; align-items: center; gap: 20px; }

/* ---------- Spec / capabilities grid ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-item { background: var(--bg-alt); padding: 36px 30px; }
.spec-item .num { display: block; font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.spec-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.spec-item p { font-size: 13.5px; color: var(--cream-dim); line-height: 1.7; }

/* ---------- Numbered list ---------- */
.num-list { display: grid; gap: 0; }
.num-list li {
  display: flex; gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.num-list .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  min-width: 34px;
}
.num-list h4 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.num-list p { color: var(--cream-dim); font-size: 14.5px; max-width: 560px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--cream);
}
.stat b span { color: var(--accent); }
.stat p { color: var(--cream-dim); font-size: 13.5px; margin-top: 8px; }

/* ---------- Cards / process ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg-alt);
  transition: border-color .35s, transform .35s var(--ease);
}
.card:hover { border-color: rgba(239,232,214,.35); transform: translateY(-6px); }
.card .card-num { font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 20px; }
.card h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--cream-dim); font-size: 14.5px; line-height: 1.7; }

/* ---------- Split layout (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; margin-bottom: 22px; }
.split p { color: var(--cream-dim); font-size: 15.5px; line-height: 1.85; margin-bottom: 18px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; margin-bottom: 16px; filter: grayscale(1); transition: filter .4s; }
.team-card:hover img { filter: grayscale(0); }
.team-card h4 { font-size: 16px; font-weight: 700; }
.team-card p { color: var(--accent); font-size: 12.5px; margin-top: 4px; }

/* ---------- Portfolio grid ---------- */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-tabs button {
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  font-weight: 600; font-size: 13px;
  transition: .3s;
}
.filter-tabs button.active, .filter-tabs button:hover { background: var(--cream); color: #0c0c0b; border-color: var(--cream); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.portfolio-item.hidden { display: none; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.09); }
.portfolio-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6,6,5,.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.portfolio-item .cat {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; font-weight: 700;
}
.portfolio-item h3 { font-size: 21px; font-weight: 700; }
.portfolio-item .play-btn { position: absolute; top: 20px; right: 20px; }

/* ---------- Contact / form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.info-block { margin-bottom: 40px; }
.info-block h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-light); margin-bottom: 14px; font-weight: 700; }
.info-block a, .info-block p { font-size: 17px; margin-bottom: 6px; }
.info-block a:hover { color: var(--accent); }
.social-row { display: flex; gap: 14px; margin-top: 32px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: .3s;
}
.social-row a:hover { border-color: var(--cream); background: var(--cream); color: #0c0c0b; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--cream-dim); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 2px; color: var(--cream); font-size: 16px; font-family: inherit;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select option { background: var(--bg); }
.form-grid .btn { margin-top: 12px; border: none; }
.form-note { margin-top: 22px; font-size: 12.5px; color: var(--cream-dim); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 180px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { }
.page-hero h1 { font-size: clamp(38px, 6vw, 78px); font-weight: 700; max-width: 760px; }
.page-hero p { color: var(--cream-dim); max-width: 480px; margin-top: 22px; font-size: 16px; line-height: 1.7; }
.page-hero.has-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,11,.86) 0%, rgba(12,12,11,.93) 55%, rgba(12,12,11,.98) 100%);
}
.page-hero.has-bg .wrap { position: relative; z-index: 1; }

/* ---------- Intro (logo assembly) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: transform .9s cubic-bezier(.76,0,.24,1), opacity .7s ease;
}
.intro.is-exiting { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.intro-word {
  position: relative;
  display: flex;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(64px, 13vw, 168px);
  color: var(--cream);
  line-height: 1;
}
.intro-word .letter {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.55);
  filter: blur(6px);
  animation: intro-assemble 1.1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 240ms + 350ms);
}
@keyframes intro-assemble {
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); filter: blur(0); }
}
.intro-smile {
  position: absolute;
  top: 10%;
  right: -8%;
  width: 26px;
  height: 16px;
  border-bottom: 3px solid var(--cream);
  border-radius: 0 0 20px 20px;
  opacity: 0;
  animation: intro-smile-in .7s var(--ease) forwards;
  animation-delay: 2450ms;
}
.intro-smile::before, .intro-smile::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--cream);
}
.intro-smile::before { left: 2px; }
.intro-smile::after { right: 2px; }
@keyframes intro-smile-in {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}
.intro-tag {
  font-size: 11.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: intro-fade-up .7s var(--ease) forwards;
  animation-delay: 2750ms;
}
@keyframes intro-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-skip {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 1000;
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cream-dim);
  opacity: 0;
  animation: intro-fade-up .5s var(--ease) forwards;
  animation-delay: 1000ms;
  transition: color .3s;
}
.intro-skip:hover { color: var(--cream); }
body.intro-lock { overflow: hidden; height: 100vh; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .burger { display: flex; }
  .footer-cta h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 80px 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .voice-thumb { width: 240px; }
  .voice-highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta h2 { font-size: 24px; white-space: normal; }
  .mobile-menu a { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 64px; }
  .scroll-cue { display: none; }
  .spec-grid { grid-template-columns: 1fr; }
  .voice-layout { flex-direction: column; align-items: flex-start; }
  .voice-thumb { width: 100%; max-width: 320px; }
  .voice-highlights { grid-template-columns: 1fr 1fr; }
  .work-block h3 { max-width: 100%; }
  .work-block .play-btn { width: 70px; height: 70px; }
  .work-block .play-btn::after { border-width: 10px 0 10px 16px; }
}

/* ==========================================================================
   Quick content editor (owner-only copy editing)
   ========================================================================== */
.edit-toolbar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 900;
  display: none;
  gap: 8px;
  align-items: center;
}
/* Only the owner (unlocked via the secret ?owner= link, see script.js) sees
   the editor at all — everyone else gets the plain public site. */
body.owner-mode .edit-toolbar { display: flex; }
.edit-toolbar button {
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cream);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.edit-toolbar button:hover { border-color: var(--cream); transform: translateY(-2px); }
.edit-toolbar .save-btn,
.edit-toolbar .reset-btn { display: none; }
.edit-toolbar .save-btn { background: var(--accent); color: #100f0d; border-color: var(--accent); }
body.edit-mode .edit-toolbar .save-btn,
body.edit-mode .edit-toolbar .reset-btn { display: inline-block; }
body.edit-mode #editToggleBtn { border-color: var(--cream); }

body.edit-mode [data-editable] {
  outline: 1px dashed rgba(255, 91, 53, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: background 0.2s, outline-color 0.2s;
}
body.edit-mode [data-editable]:hover { background: rgba(255, 91, 53, 0.08); }
body.edit-mode [data-editable]:focus {
  outline: 2px solid var(--accent);
  background: rgba(255, 91, 53, 0.12);
}
@media (max-width: 560px) {
  .edit-toolbar { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; }
  .edit-toolbar button { flex: 1 1 auto; text-align: center; padding: 12px 10px; }
}

/* ---------- Quick media (image / video) editing ---------- */
body.edit-mode img:not(.logo-img):not(.edit-toolbar img) {
  outline: 2px dashed rgba(255, 91, 53, 0.55);
  outline-offset: -2px;
  cursor: pointer;
  transition: outline-color 0.2s, filter 0.2s;
}
body.edit-mode img:not(.logo-img):not(.edit-toolbar img):hover {
  outline-color: var(--accent);
  filter: brightness(0.75);
}
body.edit-mode [data-video] {
  outline: 2px dashed rgba(255, 91, 53, 0.55);
  outline-offset: 4px;
  cursor: pointer;
}
body.edit-mode [data-video]:hover { outline-color: var(--accent); }

.bg-edit-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(239, 232, 214, 0.4);
  background: rgba(12, 12, 11, 0.6);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.bg-edit-btn:hover { border-color: var(--cream); }
body.edit-mode .bg-edit-btn { display: inline-block; }

.thumb-edit-btn {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(239, 232, 214, 0.4);
  background: rgba(12, 12, 11, 0.6);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .25s;
}
.thumb-edit-btn:hover { border-color: var(--cream); }
body.edit-mode .thumb-edit-btn { display: inline-block; }

.delete-btn {
  display: none;
  position: absolute;
  top: 96px;
  right: 20px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 91, 53, 0.5);
  background: rgba(12, 12, 11, 0.6);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.delete-btn:hover { background: var(--accent); border-color: var(--accent); color: #0c0c0b; }
body.edit-mode .delete-btn { display: inline-block; }

.edit-hint {
  position: fixed;
  left: 20px;
  bottom: 74px;
  z-index: 900;
  display: none;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cream-dim);
  font-size: 11.5px;
  line-height: 1.5;
}
body.edit-mode .edit-hint { display: block; }
@media (max-width: 560px) {
  .bg-edit-btn { top: 12px; right: 12px; padding: 8px 12px; font-size: 11.5px; }
  .thumb-edit-btn { top: 12px; left: 12px; padding: 8px 12px; font-size: 11.5px; }
  .delete-btn { top: 68px; right: 12px; padding: 8px 12px; font-size: 11.5px; }
  .edit-hint { left: 12px; right: 12px; max-width: none; bottom: 130px; }
}
