:root {
  --tv-white: #ffffff;
  --tv-band: #f4f2f1;
  --tv-ink: #1d1c1a;
  --tv-muted: #55524d;
  --tv-line: rgba(29, 28, 26, 0.75);
  --tv-serif: "Cormorant Garamond", Georgia, serif;
  --tv-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tv-white);
  color: var(--tv-ink);
  font-family: var(--tv-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 1000px; }
.center { text-align: center; }
.section { padding: 110px 0; }
.band { background: var(--tv-band); }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--tv-serif);
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.04em;
}
h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.2; margin-bottom: 64px; }
h2.left { text-align: left; margin-bottom: 52px; }
h3 { font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; }
.kicker {
  margin: 0 0 26px;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tv-white);
}
.kicker.dark { color: var(--tv-ink); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 36px;
  font-family: var(--tv-sans);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.button.small { min-height: 52px; padding: 0 28px; }
.solid-light { background: var(--tv-white); color: var(--tv-ink); }
.solid-light:hover, .solid-light:focus-visible { background: transparent; color: var(--tv-white); border-color: var(--tv-white); }
.outline-light { border-color: rgba(255, 255, 255, 0.9); color: var(--tv-white); }
.outline-light:hover, .outline-light:focus-visible { background: var(--tv-white); color: var(--tv-ink); }
.outline-dark { border-color: var(--tv-line); color: var(--tv-ink); }
.outline-dark:hover, .outline-dark:focus-visible { background: var(--tv-ink); color: var(--tv-white); }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(24px, 6vw, 84px) 22px;
}
.brand-logo { width: 190px; height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  font-family: var(--tv-sans);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tv-white);
}
.main-nav a { transition: opacity 0.2s ease; }
.main-nav a:hover { opacity: 0.7; }
.main-nav .nav-cta {
  background: var(--tv-white);
  color: var(--tv-ink);
  padding: 22px 36px;
  margin-left: 4px;
}
.main-nav .nav-cta:hover { opacity: 0.85; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 6px auto; background: var(--tv-white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(680px, 100vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--tv-white);
}
.hero-slider, .slide, .hero-overlay { position: absolute; inset: 0; }
.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 7s ease;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  background:
    linear-gradient(0deg, rgba(14, 13, 11, 0.62) 0%, rgba(14, 13, 11, 0.12) 55%, rgba(14, 13, 11, 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding: 0 clamp(24px, 6.5vw, 92px) clamp(64px, 9vh, 104px);
}
.hero h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1.12;
  margin-bottom: 26px;
}
.hero-sub {
  margin: 0 0 44px;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.35;
  max-width: 680px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; }
.slider-btn {
  position: absolute;
  top: 54%;
  z-index: 3;
  width: 48px; height: 48px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--tv-white);
  opacity: 0.85;
}
.slider-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.slider-btn.prev { left: 22px; }
.slider-btn.next { right: 22px; }
.slider-btn:hover { opacity: 1; }

/* ---------- intro ---------- */
.intro { padding: 82px 0; }
.intro p {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.7;
}

/* ---------- three columns ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  text-align: center;
}
.three-col p { margin: 0; color: var(--tv-ink); }
.more { margin-top: 72px; }

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 34px;
}
.project h3 { text-transform: none; letter-spacing: 0.03em; font-size: 1.6rem; font-weight: 300; margin-bottom: 14px; line-height: 1.3; }
.project p { margin: 0 0 22px; }
.text-link { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.text-link:hover { border-color: currentColor; }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-image img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }
.split-copy { align-self: center; padding: 100px clamp(28px, 6vw, 96px); max-width: 680px; }
.split-copy h2 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: 1.15; }
.split-copy p { margin: 0 0 22px; }
.tagline { margin-top: 36px !important; text-transform: uppercase; letter-spacing: 0.18em; font-size: 1.05rem; }

/* ---------- social ---------- */
.social { padding: 96px 0; }
.social-heading { margin-bottom: 52px; font-size: clamp(1.8rem, 2.6vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.12em; }
.social-heading a { border-bottom: 1px solid currentColor; }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.social-grid a { overflow: hidden; aspect-ratio: 1; }
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.social-grid a:hover img { transform: scale(1.04); }

/* ---------- footer ---------- */
.site-footer { background: #1d1c1a; color: rgba(255, 255, 255, 0.85); padding: 80px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer-logo { width: 150px; margin-bottom: 18px; }
.site-footer p { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-family: var(--tv-sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col a:hover { color: var(--tv-white); }
.copyright { width: min(1120px, calc(100% - 48px)); margin: 64px auto 0 !important; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.95rem; }

/* ---------- reveal (used by script.js) ---------- */
.scroll-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.scroll-reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 24px 34px;
    background: rgba(29, 28, 26, 0.97);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-cta { margin: 6px 0 0; }
  .three-col, .projects { grid-template-columns: 1fr; }
  .projects { gap: 64px; }
  .split { grid-template-columns: 1fr; }
  .split-image img { min-height: 380px; max-height: 520px; }
  .split-copy { padding: 72px 24px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .section { padding: 80px 0; }
  .brand-logo { width: 140px; }
  .nav-wrap { padding: 18px 20px 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .slider-btn { top: auto; bottom: 18px; }
  .slider-btn.prev { left: auto; right: 64px; }
  .slider-btn.next { right: 14px; }
  h2 { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .scroll-reveal, .social-grid img { transition: none; }
}

/* phones: keep the hero text readable */
@media (max-width: 600px) {
  .hero-overlay { background: linear-gradient(0deg, rgba(14,13,11,.8) 0%, rgba(14,13,11,.55) 55%, rgba(14,13,11,.35) 100%); }
}

/* inner pages (discovery form): solid header */
.inner .site-header { position: sticky; background: #1d1c1a; border-bottom: 0; }
.inner .nav-wrap { padding-top: 14px; padding-bottom: 14px; }
.inner .brand-logo { width: 140px; }
.inner .main-nav .nav-cta { padding: 16px 30px; }
@media (max-width: 600px) { .inner .brand-logo { width: 120px; } }

/* =========================================================
   Portfolio + project pages
   ========================================================= */
.project-img { display: block; overflow: hidden; margin-bottom: 34px; }
.project-img img { margin-bottom: 0; transition: transform 0.8s ease; }
.project-img:hover img { transform: scale(1.03); }

/* light header (portfolio grid page) */
.light-page { background: var(--tv-band); }
.light-page .site-header { position: relative; border-bottom: 1px solid var(--tv-ink); }
.light-page .brand-logo { filter: brightness(0); }
.light-page .main-nav { color: var(--tv-ink); }
.light-page .main-nav .nav-cta { background: var(--tv-ink); color: var(--tv-white); }
.light-page .menu-toggle { border-color: var(--tv-ink); }
.light-page .menu-toggle span { background: var(--tv-ink); }
.main-nav a[aria-current="page"]:not(.nav-cta) { border-bottom: 1px solid currentColor; }

.portfolio-page { padding: 90px clamp(20px, 2.5vw, 36px) 120px; }
.portfolio-intro { text-align: center; margin-bottom: 64px; }
.portfolio-intro h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.2; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1360px; margin: 0 auto; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: var(--tv-white); background: #2a2825; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease, opacity 0.4s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(14, 13, 11, 0.32); transition: background 0.4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile:hover::after { background: rgba(14, 13, 11, 0.48); }
.tile-title {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  font-family: var(--tv-serif); font-weight: 300;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.2; letter-spacing: 0.05em;
}
.tile-title small { margin-top: 14px; font-family: var(--tv-sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }
.tile-next img { filter: grayscale(0.6); opacity: 0.85; }

/* project page */
.project-hero { position: relative; min-height: max(560px, 82vh); background-size: cover; background-position: center; }
.project-hero .hero-overlay { background: linear-gradient(180deg, rgba(14,13,11,.45) 0%, rgba(14,13,11,0) 35%); }
.project-wrap { width: min(1340px, calc(100% - 48px)); margin: 0 auto; }
.project-copy { padding: 64px 0 76px; }
.project-copy .kicker a { border-bottom: 1px solid transparent; }
.project-copy .kicker a:hover { border-color: currentColor; }
.project-copy h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.1; margin-bottom: 60px; }
.project-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.project-cols h2 { font-size: 1.5rem; font-style: italic; letter-spacing: 0.03em; margin-bottom: 18px; }
.project-cols p { margin: 0 0 18px; }

.gallery { padding: 0 14px 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-item { display: block; overflow: hidden; cursor: zoom-in; background: #e6e3e0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item:first-child img { aspect-ratio: 16 / 8; }

.project-next { padding: 80px 0; }
.next-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next-link { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: 0.03em; text-align: right; }
.next-link span { display: block; font-family: var(--tv-sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; color: var(--tv-ink); opacity: 0.7; }
.next-link:hover { opacity: 0.7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(20, 19, 17, 0.96); padding: 40px 90px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0.85; padding: 10px; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lb-close { top: 14px; right: 22px; font-size: 2.6rem; line-height: 1; font-family: var(--tv-serif); font-weight: 300; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-cols { grid-template-columns: 1fr; gap: 12px; }
  .light-page .main-nav { color: var(--tv-white); }
  .light-page .main-nav .nav-cta { background: var(--tv-white); color: var(--tv-ink); }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .portfolio-page { padding-top: 64px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child img { aspect-ratio: 4 / 3; }
  .project-hero { min-height: 70vh; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .next-row { flex-direction: column-reverse; align-items: flex-start; }
  .next-link { text-align: left; }
}

/* phones & tablets: centred logo, menu button on the right */
@media (max-width: 960px) {
  .nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nav-wrap .brand { grid-column: 2; justify-self: center; }
  .nav-wrap .menu-toggle { grid-column: 3; justify-self: end; }
}
.portfolio-intro h1.kicker { font-size: 1.02rem; line-height: 1.75; letter-spacing: 0.07em; margin: 0; }
.portfolio-intro { margin-bottom: 48px; }

/* =========================================================
   Menu bar stays on screen while scrolling; no divider line
   ========================================================= */
html { scroll-padding-top: 110px; }
.site-header { position: fixed; border-bottom: 0; transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.site-header.scrolled { background: rgba(29, 28, 26, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1); }
.nav-wrap { transition: padding 0.35s ease; }
.site-header.scrolled .nav-wrap { padding-top: 14px; padding-bottom: 14px; }
.brand-logo { width: 160px; }
.light-page .site-header { position: sticky; top: 0; background: var(--tv-band); }
.light-page .site-header.scrolled { background: rgba(244, 242, 241, 0.8); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
@media (max-width: 600px) {
  .brand-logo { width: 118px; }
  .site-header.scrolled .nav-wrap { padding-top: 10px; padding-bottom: 10px; }
}

/* =========================================================
   Contact / inquiry page
   ========================================================= */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 133px); background: var(--tv-band); }
.contact-form-col { padding: 64px clamp(24px, 6.5vw, 92px) 96px; max-width: 720px; }
.contact-form-col h1 { font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1.12; margin-bottom: 24px; }
.contact-lede { margin: 0 0 44px; font-size: 1.15rem; line-height: 1.7; max-width: 560px; }
.contact-photo { background: #cfc9c2 url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat; min-height: 520px; }

#contactForm { max-width: 520px; }
.cf-group { border: 0; padding: 0; margin: 0 0 6px; }
.cf-group legend { padding: 0; margin-bottom: 14px; font-size: 1.1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field { margin-bottom: 26px; }
.cf-field label { display: block; margin-bottom: 10px; font-size: 1.08rem; letter-spacing: 0.02em; }
.cf-req { color: var(--tv-ink); opacity: 0.55; margin-left: 4px; }
#contactForm input, #contactForm select, #contactForm textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  font-family: var(--tv-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--tv-ink);
  background: transparent;
  border: 1px solid var(--tv-ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
#contactForm textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
#contactForm select {
  cursor: pointer;
  padding-right: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' fill='none' stroke='%231d1c1a' stroke-width='1.2'%3E%3Cpath d='M1 1l8 8 8-8'/%3E%3C/svg%3E") right 16px center no-repeat;
}
#contactForm ::placeholder { color: rgba(29, 28, 26, 0.45); font-style: italic; }
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--tv-ink); background: rgba(255, 255, 255, 0.5); }
#contactForm .cf-invalid { border-color: #9c3d2e !important; box-shadow: inset 0 0 0 1px #9c3d2e; }
.cf-error { display: none; margin: 0 0 20px; padding: 14px 18px; border-left: 2px solid #9c3d2e; background: #faf3f1; color: #9c3d2e; font-size: 1.05rem; line-height: 1.5; }
.cf-error.visible { display: block; }
.cf-submit { background: var(--tv-ink); color: var(--tv-white); border: 1px solid var(--tv-ink); cursor: pointer; min-height: 62px; padding: 0 40px; }
.cf-submit:hover { background: #3b3935; }
.cf-submit:focus-visible { outline: 1px solid var(--tv-ink); outline-offset: 3px; }
.cf-submit[disabled] { opacity: 0.6; cursor: progress; }
.cf-thanks { max-width: 520px; padding-top: 8px; }
.cf-thanks h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 22px; }
.cf-thanks p { margin: 0 0 16px; font-size: 1.15rem; line-height: 1.7; }
.cf-thanks .button { margin-top: 18px; }
.cf-thanks:focus { outline: none; }

.contact-cta { background: var(--tv-white); padding: 72px 24px 80px; text-align: center; }
.contact-cta h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 30px; }
.text-cta { font-family: var(--tv-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid transparent; padding-bottom: 4px; }
.text-cta:hover { border-color: currentColor; }

@media (max-width: 960px) {
  .contact-split { grid-template-columns: 1fr; min-height: 0; }
  .contact-photo { order: -1; min-height: 300px; }
  .contact-form-col { max-width: none; padding-top: 52px; }
  #contactForm, .cf-thanks { max-width: none; }
}
@media (max-width: 600px) {
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .cf-submit { width: 100%; }
}

/* hidden anti-spam field */
.dq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
