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

:root {
  --paper: #f6f2e9;
  --ink: #242822;
  --muted: #56594d;
  --line: #d3ccbc;
  --olive: #3d4936;
  --brown: #35251e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #8b592d; outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; transform: translateY(-150%); padding: 12px; background: white; z-index: 11; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--brown); color: var(--paper); }
.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font: 600 1rem/1 var(--sans); text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(10px, 2.8vw, 34px); }
nav a { text-decoration: none; font-size: .84rem; font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.contact-nav { padding: 9px 14px; border: 1px solid var(--paper); background: var(--paper); color: var(--brown); white-space: nowrap; border-radius: 999px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: 34px; }
.hero-copy { padding: 24px 0 32px clamp(0px, 3vw, 48px); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .71rem; font-weight: 700; color: var(--muted); }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(92px, 13vw, 186px); line-height: .77; letter-spacing: -.05em; margin: 30px 0; }
h1 em { color: var(--olive); }
.intro { max-width: 350px; color: var(--muted); margin: 28px 0; }
.cta { display: inline-flex; gap: 30px; align-items: center; padding: 12px 17px; background: var(--olive); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .85rem; }
.cta:hover { background: var(--ink); }
figure { margin: 0; }
.cover { width: min(100%, 480px); justify-self: center; }
.poster img { height: 100%; object-fit: cover; }
.cover img, .portrait img { height: auto; image-rendering: auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.stats > div { display: flex; flex-wrap: wrap; gap: 6px 19px; align-items: center; padding: 22px clamp(12px, 3vw, 48px); }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { font: 52px/.9 var(--serif); }
.stats p { margin: 0; color: var(--muted); font-size: .86rem; }
.work { padding-block: clamp(62px, 9vw, 120px); }
h2 { font-size: clamp(54px, 7vw, 104px); line-height: .92; letter-spacing: -.025em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 34px; }
.poster { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: #d5cbbb; }
.poster img { transition: transform .4s; }
.play:hover img { transform: scale(1.045); }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 60px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); padding-left: 3px; }
.piece .eyebrow { margin: 16px 0 4px; }
h3 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; }
.piece p:not(.eyebrow) { color: var(--muted); margin: 8px 0 0; }
.about { background: var(--olive); color: var(--paper); }
footer { background: var(--brown); color: var(--paper); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 8vw, 115px); align-items: center; padding-block: clamp(38px, 6vw, 86px); }
.portrait { width: min(100%, 400px); }
.about p { max-width: 430px; margin: 25px 0; }
.footer-inner { display: grid; justify-items: start; gap: 20px; padding-block: clamp(55px, 9vw, 105px); }
.email { font-size: clamp(.95rem, 2.8vw, 1.5rem); overflow-wrap: anywhere; }
.footer-social { font-size: .85rem; }
.footer-inner a { text-decoration: none; }
dialog { width: min(475px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: 15px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #161813d9; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dialog-bar h2 { font-size: 28px; }
.dialog-bar button { border: 1px solid var(--line); background: transparent; font-size: 24px; width: 42px; height: 42px; flex-shrink: 0; }
#media-body video { width: 100%; max-height: 75dvh; object-fit: contain; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { min-height: 62px; flex-wrap: wrap; padding-block: 8px; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding-block: 15px 22px; }
  .hero-copy { padding: 16px 0 8px; }
  h1 { font-size: clamp(84px, 16vw, 125px); margin-block: 19px; }
  h1 br { display: none; }
  h1 em { margin-left: .08em; }
  .intro { margin-block: 20px; }
  .stats > div { align-content: start; padding-inline: 9px; }
  .stats strong { font-size: 42px; }
  .features { grid-template-columns: 1fr 1fr; row-gap: 25px; }
  .about-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; }
}
@media (max-width: 425px) {
  h1 { font-size: 84px; }
  h1 br { display: initial; }
  h1 em { margin-left: 0; }
  .features { grid-template-columns: 1fr; }
  .features .poster { aspect-ratio: 5/4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.reel { display: block; width: 100%; height: clamp(425px, 49vw, 590px); border: 0; background: #ece6db; }
.reel-link { display: inline-block; margin-top: 8px; font-size: .8rem; }


.video-preview { width: 100%; height: auto; object-fit: contain; background: #171914; }

.collaboration {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 550px);
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 5vw, 60px);
}
.collaboration img { height: auto; }
.collaboration h2 { font-size: clamp(36px, 5vw, 66px); }
.brand-stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin: 20px 0 0; }
.brand-stats div { display: flex; flex-direction: column-reverse; }
.brand-stats dd { margin: 0; font: 40px/1 var(--serif); }
.brand-stats dt { color: var(--muted); font-size: .84rem; }
@media (max-width: 550px) {
  .collaboration { grid-template-columns: 1fr; }
  .collaboration img { width: min(44%, 150px); }
}

.video-cover { position: relative; padding: 0; background: #171914; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }

.buchan-video { object-fit: cover; object-position: center; }

.portfolio-video { background: #171914; object-fit: contain; }
.cinematic-player { position: relative; }
.cinematic-stats {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  pointer-events: none;
}


.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .cta { gap: 14px; border: 1px solid var(--olive); }
.cta-secondary { background: transparent; color: var(--olive); }
.cta-secondary:hover { background: var(--olive); color: var(--paper); }

.hero-handle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  margin-inline-start: -12px;
  color: var(--olive);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.services {
  text-align: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.services .eyebrow { margin: 0 0 12px; }
.services h2 { font-size: clamp(42px, 6vw, 78px); }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  text-align: left;
}
.service-list li {
  padding: clamp(16px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf9f2;
}
.service-list h3 { font-size: clamp(26px, 3vw, 36px); }
.service-list p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .service-list { grid-template-columns: 1fr; }
}


@media (min-width: 761px) {
  .service-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-list li { grid-column: span 2; }
  .service-list li:nth-last-child(2) { grid-column: 2 / span 2; }
}

.about-links {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.about-links a, .about-links a:hover {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.portfolio-video.packing-video,
.portfolio-video.demo-video { object-fit: cover; }

main[id], main section[id], footer[id] { scroll-margin-top: 88px; }
@media (max-width: 600px) {
  .nav-inner { flex-direction: column; justify-content: center; gap: 5px; }
  .nav-inner nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
  .nav-inner nav a { font-size: .75rem; }
  .contact-nav { padding: 6px 10px; }
  main[id], main section[id], footer[id] { scroll-margin-top: 125px; }
}

@media (max-width: 425px) {
  .cinematic-stats span { display: block; }
  .cinematic-stats .stats-divider { display: none; }
}
