/* Blackthorne Studios — site styles
   Colours and fonts live in :root so they're easy to change in one place. */

:root {
  --black: #000000;
  --white: #ffffff;
  --panel: #f4f4f2;        /* light grey section background */
  --placeholder: #ededea;  /* empty image boxes */
  --tile: #1c1c1c;         /* dark service tiles */
  --line: #d9d9d5;
  --text-2: #3d3d38;       /* secondary text */
  --text-3: #5a5a55;       /* captions */
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --gutter: clamp(20px, 7.8vw, 112px);
  --frame: clamp(12px, 2.2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

/* Shared type */
.label { font-size: 13px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.h2 { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.12; font-weight: 300; letter-spacing: -0.01em; }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; }
.body { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.link {
  display: inline-block; align-self: flex-start;
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.btn {
  display: inline-block; text-decoration: none; background: var(--black); color: var(--white);
  padding: 14px 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.placeholder {
  background: var(--placeholder); color: var(--text-3); font-size: 14px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { padding: var(--frame); height: 100vh; height: 100svh; min-height: 560px; }
.hero__frame {
  position: relative; height: 100%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.nav {
  position: absolute; inset: 0 0 auto 0; height: 88px; padding: 0 clamp(20px, 3.4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; z-index: 5;
}
.nav__group { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; }
.nav__group a:not(.btn) { text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; }
.hero__logo { width: min(560px, 76vw); height: auto; margin-bottom: 40px; }
.scroll {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none; font-size: 11px; letter-spacing: 0.4em; font-weight: 500;
}
.scroll span { display: block; width: 1px; height: 44px; background: var(--black); }

/* ---------- We ---------- */
.we {
  padding: 110px var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.we__word { grid-column: 1 / span 4; font-family: var(--serif); font-size: clamp(120px, 18vw, 260px); line-height: 0.8; font-weight: 400; }
.we__text { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 40px; padding-top: 18px; }
.we__lede { max-width: 620px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.4; color: var(--text-2); }

/* ---------- Services ---------- */
.services { padding: 0 var(--frame) 120px; display: flex; flex-direction: column; gap: 64px; }
.services__head { padding: 0 calc(var(--gutter) - var(--frame)); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.services__head > div { display: flex; flex-direction: column; gap: 22px; }
.services__head .body { max-width: 420px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; height: 620px; overflow: hidden; background: var(--tile); color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 36px;
}
.tile:hover { opacity: 1; }
.tile__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8f8f8a; font-size: 14px; }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.04); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 55%); }
.tile > *:not(.tile__media) { position: relative; z-index: 1; }
.tile__name { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; }
.tile__line { font-size: 16px; line-height: 1.5; color: #d6d6d2; }
.tile .link { margin-top: 10px; }

/* ---------- Full-service band ---------- */
.band {
  padding: 120px var(--gutter); background: var(--panel);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
}
.band__media { grid-column: 1 / span 6; height: 560px; }
.band__media.placeholder { background: #e3e3df; }
.band__text { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 30px; }
.band__line { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.35; }

/* ---------- Work ---------- */
.work { padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.work__head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project--a { grid-column: 1 / span 7; } .project--b { grid-column: 8 / span 5; }
.project--c { grid-column: 1 / span 4; } .project--d { grid-column: 5 / span 4; } .project--e { grid-column: 9 / span 4; }
.project__media { position: relative; height: 520px; overflow: hidden; }
.project--c .project__media, .project--d .project__media, .project--e .project__media { height: 360px; }
.project__caption { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--text-2); }
.project[data-video] .project__media { cursor: pointer; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--white); background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--white); }

/* ---------- Testimonial ---------- */
.quote {
  margin: 0 var(--gutter); padding: 110px clamp(0px, 10vw, 200px); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center;
}
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; }
.quote__who { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.quote__name { font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.quote__role { font-size: 15px; color: var(--text-3); }

/* ---------- Contact band ---------- */
.contact {
  margin: 0 var(--frame); padding: 110px 24px; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center;
}
.contact .h2 { font-size: clamp(34px, 4.2vw, 60px); }
.contact__actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.contact .btn { background: var(--white); color: var(--black); padding: 18px 30px; font-weight: 600; letter-spacing: 0.24em; }
.contact__email { font-size: 17px; }

/* ---------- Footer ---------- */
.footer { padding: 80px var(--gutter) 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.footer__icon { grid-column: 1 / span 2; width: 72px; height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer__col--a { grid-column: 4 / span 3; } .footer__col--b { grid-column: 7 / span 3; } .footer__col--c { grid-column: 10 / span 3; }
.footer__caps { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__col a { text-decoration: none; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--text-3); }

/* ---------- Video lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__inner { width: min(1200px, 100%); aspect-ratio: 16 / 9; }
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--white); font: inherit; font-size: 13px; letter-spacing: 0.28em; cursor: pointer; }

/* ---------- Gentle reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile__media img, .tile__media video { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { height: 480px; }
  .band__media { grid-column: 1 / -1; height: 420px; margin-bottom: 48px; }
  .band__text { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav__social { display: none; }
  .nav { justify-content: flex-end; height: 72px; }
  .nav__toggle { display: block; }
  .nav__main {
    display: none; position: fixed; inset: 0; background: var(--white); z-index: 40;
    flex-direction: column; justify-content: center; gap: 32px; font-size: 16px;
  }
  .nav__main.is-open { display: flex; }
  .nav__close { position: absolute; top: 24px; right: 24px; }
  .hero__logo { margin-bottom: 24px; }

  .we { padding: 80px var(--gutter); }
  .we__word, .we__text { grid-column: 1 / -1; }
  .we__text { padding-top: 24px; gap: 28px; }

  .services { padding-bottom: 80px; gap: 40px; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { height: 400px; padding: 28px; }

  .band { padding: 80px var(--gutter); }
  .band__media { height: 300px; }

  .work { padding: 80px var(--gutter); gap: 40px; }
  .project--a, .project--b, .project--c, .project--d, .project--e { grid-column: 1 / -1; }
  .project__media, .project--c .project__media, .project--d .project__media, .project--e .project__media { height: 280px; }

  .quote { padding: 80px 0; }
  .contact { padding: 80px 24px; }

  .footer__icon, .footer__col--a, .footer__col--b, .footer__col--c { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
}
@media (min-width: 761px) { .nav__close { display: none; } }

/* Visually hidden text for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
