@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@400;500;600&family=Bricolage+Grotesque:wght@400;600&display=swap');

:root {
  --bg: oklch(16% 0.012 55);
  --bg-panel: oklch(20% 0.014 55);
  --fg: oklch(96% 0.01 80);
  --fg-muted: oklch(74% 0.02 70);
  --fg-nav: oklch(85% 0.01 80);
  --line: oklch(32% 0.015 55);
  --accent: oklch(70% 0.15 55);
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Work Sans', system-ui, sans-serif;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow.small { font-size: 11px; margin-bottom: 6px; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: oklch(16% 0.012 55 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand { text-decoration: none; }
.brand:hover .brand-name { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.brand-sub {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  gap: clamp(14px, 2.2vw, 26px);
  font-size: 15px;
}
.nav-links > li { position: relative; list-style: none; }
.nav-links { padding: 0; margin: 0; }
.nav-links a { color: var(--fg-nav); display: inline-block; padding: 4px 0; }
.nav-links a.nav-cta {
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--fg) !important;
}
.has-sub > .sub-toggle::after { content: " \25BE"; font-size: 11px; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 16px 30px oklch(0% 0 0 / 0.35);
}
.has-sub:hover .submenu,
.has-sub.open .submenu { display: block; }
.submenu a { display: block; padding: 9px 18px; font-size: 14px; }
.submenu a:hover { background: oklch(24% 0.016 55); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: oklch(16% 0.012 55 / 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a { width: 100%; padding: 11px 0; }
  .nav-links .nav-cta { margin-top: 8px; display: inline-block; }
  .submenu {
    position: static;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
    display: none;
  }
  .has-sub.open .submenu { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 100px var(--gutter) 84px;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  max-width: 900px;
  margin-bottom: 48px;
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero-content h1 {
  font-style: italic;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero-content h1 .hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-content h1 .hero-line-1 { animation-delay: 0.1s; }
.hero-content h1 .hero-line-2 { animation-delay: 2.1s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-content p {
  max-width: 540px;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 34px;
}
.hero-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid var(--line);
}
.btn-solid { background: var(--accent); color: oklch(15% 0.02 55) !important; border-color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); }

/* ---- Trusted-by logo carousel ---- */
.trusted-carousel { padding: 88px var(--gutter); border-bottom: 1px solid var(--line); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-card {
  flex: 0 0 auto;
  height: 77px;
  padding: 17px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(93% 0.01 80);
  border-radius: 10px;
}
.logo-card img { max-height: 41px; max-width: 168px; width: auto; object-fit: contain; }

/* ---- Affiliations (static) ---- */
.affiliations { padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
.affiliations-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---- Section head ---- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--fg-muted); margin-top: 14px; font-size: 15px; }

/* ---- Services / card grid ---- */
.services, .photo-block, .video-block { padding: 88px var(--gutter); border-bottom: 1px solid var(--line); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card .tile {
  position: relative;
  aspect-ratio: 4 / 4.5;
  border-radius: 2px;
  overflow: hidden;
}
.card .tile a { position: absolute; inset: 0; display: block; }
.card .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(115deg, oklch(96% 0 0) 0px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}
.tone-a { background: linear-gradient(150deg, oklch(30% 0.04 40), oklch(15% 0.02 40)); }
.tone-b { background: linear-gradient(150deg, oklch(28% 0.03 140), oklch(14% 0.015 140)); }
.tone-c { background: linear-gradient(150deg, oklch(30% 0.03 250), oklch(14% 0.015 250)); }
.tone-d { background: linear-gradient(150deg, oklch(30% 0.035 95), oklch(15% 0.018 95)); }
.card-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; margin-bottom: 4px; }
.card-desc { color: var(--fg-muted); font-size: 13.5px; line-height: 1.5; }
.card .more { font-size: 12px; letter-spacing: 0.04em; margin-top: 6px; border-bottom: 1px solid var(--accent); color: var(--accent); align-self: flex-start; }

/* ---- Video gallery ---- */
.video-group { margin-bottom: 52px; }
.video-group:last-child { margin-bottom: 0; }
.video-group h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}
/* Homepage "Recent work" teaser (ungrouped) shows all 3 in one row */
.video-block > .video-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .video-block > .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-block > .video-grid { grid-template-columns: 1fr; }
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: oklch(12% 0.01 55);
  border-radius: 2px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cap { margin-top: 10px; font-size: 13.5px; color: var(--fg-muted); }

/* ---- Testimonial ---- */
.testimonial { padding: 80px var(--gutter); text-align: center; border-bottom: 1px solid var(--line); }
.testimonial blockquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.5;
  color: oklch(90% 0.01 80);
}
.testimonial cite { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); font-style: normal; }

/* ---- CTA strip ---- */
.cta {
  padding: 80px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.cta-sub { color: var(--fg-muted); font-size: 14px; }
.cta-button {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12.5px; color: var(--fg-muted); }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.footer-links .divider { width: 1px; height: 16px; background: var(--line); }

/* ---- Simple page (stub) ---- */
.page-hero { padding: 88px var(--gutter) 56px; border-bottom: 1px solid var(--line); max-width: 760px; }
.page-hero h1 { font-style: italic; font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 18px; }
.page-hero p { color: var(--fg-muted); font-size: 16px; line-height: 1.6; max-width: 560px; }
.page-body { padding: 64px var(--gutter) 96px; max-width: 960px; color: var(--fg-muted); font-size: 15px; line-height: 1.7; }

/* ---- Contact ---- */
.contact-body { padding: 72px var(--gutter) 96px; display: grid; grid-template-columns: minmax(300px, 560px) minmax(220px, 320px); gap: 56px; }
@media (max-width: 760px) {
  .contact-body { grid-template-columns: 1fr; }
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); }
.contact-form input, .contact-form textarea {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-submit { align-self: flex-start; font-family: inherit; cursor: pointer; }
.contact-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.2em; font-size: 13.5px; }
.contact-side { font-size: 14px; color: var(--fg-muted); line-height: 1.8; }


/* ---- Feature image (editorial/hero use on category pages) ---- */
.feature-photo {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0 40px;
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo.uncropped {
  aspect-ratio: auto;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.feature-photo.uncropped img { width: 100%; height: auto; object-fit: contain; }
.photo-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.photo-grid-simple .tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
}
.photo-grid-simple .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid-simple .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(115deg, oklch(96% 0 0) 0px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

/* ---- Photo lightbox ---- */
.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(8% 0.01 55 / 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px oklch(0% 0 0 / 0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: oklch(20% 0.02 55 / 0.6);
  color: oklch(98% 0 0);
  border: 1px solid oklch(100% 0 0 / 0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 16px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 600px) {
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 18px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---- Uncropped photo grid (full image shown, no aspect-ratio crop) ---- */
.photo-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.photo-grid-full .tile {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-grid-full .tile img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
