:root {
  --background: 18 18% 6%;
  --foreground: 30 40% 93%;
  --secondary: 20 14% 13%;
  --muted-foreground: 32 18% 75%;
  --accent: 0 78% 59%;
  --border: 20 14% 13%;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; border-radius: 2px; }

/* Shared type */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-foreground));
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.accent-italic { font-style: italic; color: hsl(var(--accent)); font-weight: 400; }
.h2 { font-size: clamp(36px, 5.5vw, 64px); }
.muted { color: hsl(var(--muted-foreground)); }

.wrap { max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 32px; }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 20px; }
.lede { margin-top: 24px; font-size: 16px; line-height: 1.625; color: hsl(var(--muted-foreground)); max-width: 42ch; }
.lede.wide { max-width: 58ch; }

/* Nav */
.site-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  /* Scrim keeps the links readable over bright hero frames. */
  background: linear-gradient(to bottom, hsl(var(--background) / .75), transparent);
  padding-bottom: 48px;
}
.site-nav nav { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.brand span { color: hsl(var(--accent)); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a { font-size: 14px; white-space: nowrap; color: hsl(var(--foreground)); transition: color .2s; }
.nav-links a:hover { color: hsl(var(--accent)); }

/* Hero */
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background) / .25) 0%, hsl(var(--background) / .55) 55%, hsl(var(--background)) 100%);
}
.hero-inner { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 80px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero-eyebrow i { height: 1px; width: 32px; background: hsl(var(--accent)); }
.hero-eyebrow .eyebrow { color: hsl(var(--foreground)); }
.hero-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 20;
  padding: 8px 14px; font: 500 12px var(--font-body);
  color: hsl(var(--foreground)); background: hsl(var(--background) / .6);
  border: 1px solid hsl(var(--foreground) / .3); border-radius: 3px; cursor: pointer;
}
.hero h1 { font-size: clamp(48px, 8vw, 112px); max-width: 16ch; }
.hero p { margin-top: 32px; max-width: 680px; font-size: 16px; line-height: 1.625; color: hsl(var(--muted-foreground)); }

/* About */
.about-body { max-width: 78ch; font-size: 16px; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.about-body p + p { margin-top: 24px; }
.chips { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid hsl(32 18% 75% / .28); padding: 8px 12px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 36px; padding: 12px 28px; border-radius: 3px;
  /* Darker than --accent so the cream label meets AA contrast. */
  background: hsl(0 78% 45%); color: hsl(var(--foreground));
  font-size: 14px; font-weight: 500; text-align: center; transition: opacity .2s;
}
.btn:hover { opacity: .9; }

/* Work */
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: hsl(var(--secondary)); overflow: hidden; }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
/* The wrappers clip overflow, so draw the focus ring inside the video. */
.frame video:focus-visible, .reel video:focus-visible { outline-offset: -4px; }
.meta { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1100px; }
.meta .eyebrow { margin-bottom: 16px; font-size: 11px; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.meta p { font-size: 16px; line-height: 1.625; color: hsl(var(--foreground) / .9); }
.meta p.small { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.text-link { display: inline-block; margin-top: 16px; font-size: 14px; color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.text-link:hover { color: hsl(var(--foreground)); }

/* Kaya reels */
.reels { display: grid; grid-template-columns: 1fr; gap: 20px; }
.reels figure { min-width: 0; }
.reel { aspect-ratio: 9 / 16; background: hsl(var(--secondary)); overflow: hidden; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reels figcaption { margin-top: 16px; font-family: var(--font-display); font-size: 18px; }

/* Zee */
.pill {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: hsl(var(--accent) / .08); border: 1px solid hsl(var(--accent) / .35);
  color: hsl(var(--accent)); font-size: 12px; font-weight: 500; letter-spacing: .025em;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--accent)); animation: accent-pulse 1.8s ease-in-out infinite; }
.zee { display: block; }
.zee img { position: absolute; inset: 0; transition: transform .7s ease-out; }
.zee:hover img { transform: scale(1.02); }
.zee-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, hsl(var(--background) / .35) 0%, hsl(var(--background) / .75) 100%); }
.zee-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.zee-play b { width: 84px; height: 84px; border-radius: 50%; background: hsl(var(--accent)); display: flex; align-items: center; justify-content: center; animation: glow-pulse 2.4s ease-in-out infinite; transition: transform .5s ease-out; }
.zee:hover .zee-play b { transform: scale(1.08); }
.zee-play svg { margin-left: 6px; }
.zee-play .eyebrow { color: hsl(var(--foreground)); }

/* Services */
.services-head { margin-bottom: 48px; }
.services { border-top: 1px solid #2A2520; }
.services li { display: grid; grid-template-columns: 1fr; gap: 12px 32px; border-bottom: 1px solid #2A2520; padding: 32px 8px; transition: background-color .3s; }
.services li:hover { background: #1A1419; }
.svc-title { display: flex; align-items: baseline; gap: 16px; }
.svc-num { font-size: 28px; color: hsl(var(--accent)); }
.svc-name { font-size: 28px; font-weight: 400; color: hsl(var(--foreground)); }
.svc-desc { font-size: 16px; line-height: 1.625; color: hsl(var(--muted-foreground)); max-width: 52ch; }
.svc-format { font-size: 14px; letter-spacing: .025em; color: hsl(32 18% 75% / .7); }

/* Contact */
.contact { border-top: 1px solid hsl(var(--border)); padding-top: 80px; padding-bottom: 96px; }
.contact h2 { font-size: clamp(56px, 11vw, 128px); line-height: .9; max-width: 14ch; }
.cards { margin-top: 64px; display: grid; grid-template-columns: 1fr; gap: 1px; background: hsl(var(--border)); }
.cards a { display: block; background: hsl(var(--background)); padding: 32px 0 40px; }
.cards .eyebrow { margin-bottom: 24px; }
.cards span { font-family: var(--font-display); font-size: clamp(18px, 6vw, 22px); font-weight: 400; transition: color .3s; overflow-wrap: anywhere; }
.cards a:hover span { color: hsl(var(--accent)); }

/* Footer */
.site-footer { border-top: 1px solid hsl(var(--border)); padding-top: 32px; padding-bottom: 32px; }
.site-footer div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: space-between; }
.site-footer a { font-size: 14px; color: hsl(var(--muted-foreground)); transition: color .2s; }
.site-footer a:hover { color: hsl(var(--accent)); }

/* Blog */
.post { max-width: 760px; margin: 0 auto; padding: 128px 24px 80px; }
.post h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; margin-top: 20px; }
.post .intro { margin-top: 24px; font-size: 16px; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.post section { margin-top: 56px; }
.post h2 { font-size: 24px; margin-bottom: 16px; }
.post section p, .post li { line-height: 1.625; color: hsl(var(--foreground) / .9); }
.post section p + p { margin-top: 16px; }
.post ul { list-style: disc; padding-left: 24px; }
.post li + li { margin-top: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); }
.post table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post th, .post td { text-align: left; padding: 16px; }
.post th { font-weight: 500; background: hsl(var(--secondary)); }
.post tbody tr { border-top: 1px solid hsl(var(--border)); }
.post tr.total { background: hsl(var(--secondary) / .4); font-weight: 500; }
.post .note { margin-top: 16px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.post .back { display: inline-block; margin-top: 32px; border-bottom: 1px solid hsl(var(--accent)); transition: color .2s; }
.post .back:hover { color: hsl(var(--accent)); }

.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(56px, 11vw, 128px); }

@keyframes accent-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.9); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--accent) / .55), 0 0 30px 4px hsl(var(--accent) / .35); }
  50% { box-shadow: 0 0 0 14px hsl(var(--accent) / 0), 0 0 50px 10px hsl(var(--accent) / .5); }
}

/* Keep brand + four links on one row on narrow phones. */
@media (max-width: 379px) {
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 345px) {
  .brand { font-size: 18px; }
  .nav-links { gap: 6px; }
  .nav-links a { font-size: 12px; }
}

@media (min-width: 480px) {
  .reels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .nav-links { gap: 20px; }
}

@media (min-width: 768px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .section { padding-top: 128px; padding-bottom: 128px; }
  .section-head { margin-bottom: 56px; }
  .lede, .hero p, .about-body, .svc-desc { font-size: 18px; }
  .site-nav nav { padding-top: 32px; }
  .brand { font-size: 24px; }
  .nav-links { gap: 32px; }
  .nav-links a { font-size: 16px; }
  .hero-inner { padding-bottom: 112px; }
  .meta { margin-top: 56px; grid-template-columns: 1fr 1fr; gap: 64px; }
  .meta p { font-size: 17px; }
  .reels { gap: 24px; grid-template-columns: repeat(3, 1fr); }
  .services-head { margin-bottom: 80px; }
  .services li { grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 40px 16px; }
  .svc-title { display: contents; }
  .svc-num { grid-column: span 1; color: hsl(var(--muted-foreground)); transition: color .3s; }
  .services li:hover .svc-num { color: hsl(var(--accent)); }
  .svc-name { grid-column: span 3; }
  .svc-desc { grid-column: span 5; }
  .svc-format { grid-column: span 3; text-align: right; }
  .contact { padding-top: 112px; padding-bottom: 128px; }
  .cards { margin-top: 96px; }
  .site-footer div { flex-direction: row; align-items: center; gap: 24px; }
  .post { padding: 160px 40px 80px; }
  .post h2 { font-size: 30px; }
  .post .intro { font-size: 18px; }
  .post table { font-size: 16px; }
}

/* Three contact cards side by side only once the email fits on one line. */
@media (min-width: 1120px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards a { padding-right: 40px; }
}

@media (min-width: 1280px) {
  .reels { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
