:root {
  --bg: #f7f6f2;
  --ink: #0e0d0c;
  --gray: #6b6a64;
  --line: rgba(14, 13, 12, 0.12);
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  background: transparent;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease, color 0.3s ease;
}

header.scrolled {
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  height: 40px;
  width: auto;
  display: block;
}
.logo-mark-black { display: none; }
header.scrolled .logo-mark-white { display: none; }
header.scrolled .logo-mark-black { display: block; }

nav.desktop-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

nav.desktop-nav a {
  font-size: 10.5px;
  letter-spacing: 1px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
nav.desktop-nav a:hover { opacity: 1; }
nav.desktop-nav a.pill-btn { color: var(--white); opacity: 1; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.pill-btn:hover { opacity: 0.82; }

.pill-btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

/* ---------- Hero (cinematic banner) ---------- */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 32px 70px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

#hero:hover .hero-bg {
  filter: grayscale(0);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.8));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-sub .tagline {
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  max-width: 480px;
}
.hero-sub .tagline em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.hero-actions .pill-btn { background: var(--white); color: var(--ink); }
.hero-actions .pill-btn-outline { background: transparent; border-color: var(--white); color: var(--white); }

.hero-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  font-size: 12px;
}
.social-card .icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.social-card .label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.social-card .label b { font-size: 12.5px; }
.social-card .label span { font-size: 10px; color: #b9b9b3; }

/* ---------- Services ---------- */
#services {
  position: relative;
  padding: 70px 32px 90px;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 1240px;
  margin: 0 auto 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray);
  font-weight: 700;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-head p {
  color: var(--gray);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.6;
}

.services-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-tile {
  background: var(--bg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
}
.service-tile:hover { background: var(--white); }

.tile-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(135deg, hsl(var(--hue, 20) 60% 50%), hsl(calc(var(--hue, 20) + 28) 60% 38%));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) saturate(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.service-tile:hover .tile-media {
  filter: grayscale(0);
  transform: scale(1.015);
}
.tile-media img, .tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-media svg {
  width: 42px;
  height: 42px;
  color: #fff;
  opacity: 0.92;
}
.tile-media .play {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14,13,12,0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.tile-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tile-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.tile-body .num {
  font-size: 10.5px;
  color: var(--gray);
  font-weight: 600;
}

.tile-body .arrow {
  font-size: 15px;
  transition: transform 0.25s ease;
}
.service-tile:hover .arrow { transform: translateX(5px); }

/* ---------- Selected work marquee ---------- */
#work {
  padding: 60px 0 70px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.work-head {
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 32px;
}
.work-head .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray);
  font-weight: 700;
}
.work-head h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.work-marquee {
  overflow: hidden;
  width: 100%;
}

.work-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: workScroll 90s linear infinite;
}
.work-marquee:hover .work-track {
  animation-play-state: paused;
}

.work-track img,
.work-placeholder {
  aspect-ratio: 16 / 9;
  height: 260px;
  width: auto;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  filter: grayscale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.work-track img:hover,
.work-placeholder:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

.work-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  background: linear-gradient(135deg, hsl(calc(var(--i, 0) * 36) 55% 55%), hsl(calc(var(--i, 0) * 36 + 30) 55% 42%));
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

@keyframes workScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .work-track img, .work-placeholder { height: 190px; width: auto; }
}

/* ---------- Footer / CTA combined ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 32px 30px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.contact-hero { margin-bottom: 64px; }

.contact-hero h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 560px;
}
.contact-hero h2 em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}
.be-visible {
  margin-top: 12px;
  font-size: clamp(30px, 6vw, 64px);
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Call pill ---------- */
.call-pill-wrap { display: flex; justify-content: center; margin-bottom: 64px; }
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.call-pill:hover { opacity: 0.85; }
.call-pill svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Contact columns (office info + inquiry form) ---------- */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.contact-col-info h3,
.contact-col-form h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.contact-intro { color: var(--gray); font-size: 15px; line-height: 1.75; max-width: 380px; margin-bottom: 28px; }

.contact-block { margin-bottom: 6px; }
.contact-block-strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-block-line,
.contact-block a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
}
.contact-block a { transition: opacity 0.2s ease; }
.contact-block a:hover { opacity: 0.6; }

.contact-divider { width: 60px; height: 1px; background: var(--line); margin: 32px 0; }

.footer-contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.footer-contact-form .field-row { border-bottom: 1px solid var(--line); }
.footer-contact-form input,
.footer-contact-form textarea {
  display: block;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 22px 24px;
  transition: background 0.2s ease;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: var(--gray);
  font-style: normal;
  opacity: 0.85;
}
.footer-contact-form input:focus,
.footer-contact-form textarea:focus { outline: none; background: rgba(14, 13, 12, 0.03); }
.footer-contact-form textarea { resize: vertical; min-height: 96px; }
.footer-contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin: 20px 22px;
}
.footer-contact-form .form-note { margin: 0 22px 20px; font-size: 11.5px; color: var(--gray); }
.footer-contact-form .form-note.success { color: #2f7d4f; }
.footer-contact-form .form-note.error { color: #b0392f; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.footer-bottom .socials { display: flex; gap: 18px; }
.footer-bottom .socials a { color: var(--ink); opacity: 0.7; transition: opacity 0.2s ease; }
.footer-bottom .socials a:hover { opacity: 1; }

@media (max-width: 860px) {
  .contact-columns { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  nav.desktop-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
  }
  nav.desktop-nav.open { transform: translateX(0); }
  nav.desktop-nav a { font-size: 14px; }
  .menu-toggle { display: flex; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .services-grid { grid-template-columns: 1fr; }
}
