/* Stephanie Tasker – Film & Video Editor, London
   Static rebuild of the Squarespace design: DM Sans + Poppins, black on white,
   dark edit-timeline hero, grey #f0f0f0 bands with a curved bottom edge. */

:root {
  --ink: #000;
  --ink-2: #171717;
  --grey: #f0f0f0;
  --field: #fafafa;
  --arrow: rgba(0, 0, 0, .65);
  --gutter: 4vw;                       /* 58px at 1440 */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --btn-font: "Poppins", var(--sans);
  --h1: clamp(2.5rem, 4.61vw, 4.15rem);      /* 66px */
  --h2: clamp(2rem, 3.21vw, 2.9rem);         /* 46px */
  --h3: clamp(1.5rem, 2.51vw, 2.26rem);      /* 36px */
  --h4: clamp(1.2rem, 1.81vw, 1.63rem);      /* 26px */
  --lead: clamp(1.15rem, 1.7vw, 1.525rem);   /* 24px */
  --btn: clamp(1rem, 1.35vw, 1.21rem);       /* 19px */
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.8 var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
.h2 { font-size: var(--h2); line-height: 1.3; }
p + p { margin-top: 1em; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #4a90e2; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  font: 500 var(--btn)/1.2 var(--sans); padding: 16px 20.8px; border-radius: 10px;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .8; }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn-outline { font: 500 1rem/1.2 var(--btn-font); background: transparent; color: var(--ink-2); border: 1px solid var(--ink-2); }
.btn-header { font: 500 .892rem/1.2 var(--btn-font); letter-spacing: .02em; padding: 16px 20.8px; background: var(--ink-2); color: #fff; }
.home .btn-header { background: #fff; color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px var(--gutter); min-height: 126px;
}
.home .site-header { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.brand { font-weight: 600; font-size: clamp(1.4rem, 2.28vw, 2.05rem); line-height: 1.4; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; padding: 1.6px 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav .btn { margin-left: 2px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; position: relative; }
.burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; align-items: center; justify-content: center; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; font-size: 1.8rem; }
.mobile-menu nav a:not(.btn) { text-decoration: none; }
.menu-open .site-header { color: #000; position: fixed; left: 0; right: 0; top: 0; }
body.menu-open { overflow: hidden; }
@media (max-width: 799px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header { min-height: 0; padding: 24px var(--gutter); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(719px, 50vw); display: flex; align-items: center; color: #fff;
  background: rgb(56, 56, 59) url("/assets/img/hero-edit-timeline.jpg") center / cover no-repeat;
  padding: 126px var(--gutter) 60px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { font-size: var(--h1); line-height: 1.232; }
.hero-sub { display: block; font-size: var(--h3); line-height: 1.33; margin-top: .3em; }
.hero .btn { margin-top: 36px; }
@media (max-width: 799px) { .hero { min-height: 100svh; min-height: 640px; padding-top: 110px; } }

/* ---------- Testimonial slider ---------- */
.testimonials { position: relative; display: flex; align-items: center; justify-content: center; min-height: 540px; padding: 80px calc(var(--gutter) + 80px); text-align: center; }
.t-track { max-width: 1037px; width: 100%; }
.t-slide[hidden] { display: none; }
.t-slide.is-active { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } }
.t-slide blockquote p { font-size: var(--h4); font-weight: 600; line-height: 1.3; }
.t-slide figcaption { margin-top: 16px; font-size: .85rem; }
.circle-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--arrow); color: #fff; display: grid; place-items: center; transition: background .2s;
}
.circle-arrow:hover { background: #000; }
.circle-arrow svg { width: 30px; height: 13px; }
.testimonials .prev { left: calc(var(--gutter) + 14px); }
.testimonials .next { right: calc(var(--gutter) + 14px); }
@media (max-width: 799px) {
  .testimonials { min-height: 0; padding: 72px var(--gutter) 120px; }
  .testimonials .circle-arrow { top: auto; bottom: 40px; transform: none; width: 48px; height: 48px; }
  .testimonials .prev { left: calc(50% - 60px); } .testimonials .next { right: calc(50% - 60px); }
}

/* ---------- Curved section bottom (as Squarespace's section divider) ---------- */
.has-divider { clip-path: url(#divider); padding-bottom: calc(var(--div-pad, 0px) + 4vw) !important; }

/* ---------- Services ---------- */
.services { background: var(--grey); padding: 75px var(--gutter) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; max-width: 1310px; margin: 0 auto; }
.service-list h3 { font-size: var(--h3); line-height: 1.33; }
.service-list h3 + h3 { margin-top: 32px; }
.service-copy { font-size: .892rem; line-height: 1.8; padding-top: 2px; }
.service-copy .btn { margin-top: 1.4em; }
.services { padding-bottom: 7vw !important; }
@media (max-width: 799px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .service-list h3 + h3 { margin-top: 18px; }
}

/* ---------- Still reel ---------- */
.reel { padding: 60px 0 70px; }
.reel-wrap { position: relative; }
.reel-track {
  list-style: none; padding: 0 var(--gutter); display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track li { flex: 0 0 auto; width: clamp(260px, 28.5vw, 410px); scroll-snap-align: start; }
.reel-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reel .prev { left: 10px; } .reel .next { right: 10px; }
.reel .circle-arrow { width: 50px; height: 50px; }
.reel .center { margin-top: 48px; }
.still { display: block; }

/* ---------- Logos ---------- */
.logos { padding: 40px var(--gutter) 0; padding-bottom: 7vw !important; position: relative; z-index: 1; background: #fff; margin-bottom: -6vw; }
.logos + .cta.grey { padding-top: calc(175px + 6vw); }
.logos img { width: min(990px, 100%); margin: 0 auto; }
.logos.wide { clip-path: none; padding: 40px var(--gutter) 60px !important; }
.logos.wide img { width: min(1310px, 100%); }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 175px var(--gutter); }
.cta.grey { background: var(--grey); margin-top: -1px; }
.cta h2 { font-size: var(--h2); }
.cta p { max-width: 430px; margin: 18px auto 16px; font-size: .892rem; }
@media (max-width: 799px) { .cta { padding: 110px var(--gutter); } }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 110px var(--gutter) 90px; font-size: 1rem; }
.foot-links a { color: var(--ink-2); margin: 0 5px; }
.site-footer p + p { margin-top: 10px; }
.foot-seo { font-size: .8rem; color: #555; }

/* ---------- Portfolio ---------- */
.portfolio { max-width: calc(1195px + 16vw); padding: 50px 8vw 120px; margin: 0 auto; }
.filters { list-style: none; padding: 0; display: flex; flex-wrap: wrap; margin-bottom: 40px; }
.filters li + li::before { content: "|"; padding: 0 18px; }
.filters button { font: 400 1rem/1.8 var(--sans); background: none; border: 0; padding: 0; color: #000; cursor: pointer; }
.filters button[aria-pressed="true"] { font-weight: 700; }
.filters button:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 30px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .portfolio { padding: 30px var(--gutter) 80px; } .filters li + li::before { padding: 0 10px; } }
.card[hidden] { display: none; }
.card-img { position: relative; display: block; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
a.card-img:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
a.card-img:hover .play, a.card-img:focus-visible .play { opacity: 1; }
@media (hover: none) { .play { opacity: .9; } }
.card-cats { font-size: 1rem; line-height: 1; margin-top: 23px; }
.card-title { font-size: var(--h4); line-height: 1.4; margin: 7px 0 9px; }
.card-desc { font-size: .892rem; line-height: 1.8; }
.card-desc p + p { margin-top: .9em; }

/* ---------- About ---------- */
.about-intro { padding: 95px var(--gutter) 60px; align-items: start; max-width: calc(1310px + 8vw); }
.about-intro h1 { margin-bottom: 10px; }
.about-intro .lead { font-size: var(--lead); line-height: 1.8; margin-bottom: 14px; }
.about-intro p:not(.lead) { font-size: .892rem; }
.about-intro .btn { margin-top: 18px; }
.portrait { justify-self: end; width: min(539px, 100%); padding-top: 26px; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
@media (max-width: 799px) { .about-intro { padding-top: 40px; } .portrait { justify-self: center; } }

/* ---------- Contact ---------- */
.contact { padding: 95px var(--gutter) 120px; max-width: calc(594px + 8vw); }
.contact > p { max-width: 539px; margin: 14px 0 24px; font-size: .892rem; }
.form { display: grid; gap: 16px; }
.form fieldset { border: 0; padding: 0; }
.form legend { font-size: 1rem; margin-bottom: 4px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: grid; gap: 4px; }
.form .cap { font-size: 12px; }
.form .field { font-size: 1rem; }
.form .req { font-size: .892em; opacity: .7; }
.form .cap .req { font-size: 1em; }
.form input, .form textarea { font: 400 1rem/1.4 var(--sans); color: #000; background: var(--field); border: 1px solid #000; border-radius: 0; padding: 10px; width: 100%; }
.form textarea { min-height: 100px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .892rem; min-height: 1.6em; }
.form .btn:disabled { opacity: .6; cursor: default; }
.simple { padding: 95px var(--gutter) 140px; }
.simple p { margin-top: 16px; }

/* ---------- Vimeo lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 60px 4vw; background: rgba(0, 0, 0, .92); }
.lightbox.open { display: grid; animation: fade .25s ease; }
.lb-inner { width: min(1280px, 100%); }
.lb-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; margin-inline: auto; }
.lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-title { color: #fff; font-weight: 600; margin-top: 14px; text-align: center; }
.lb-close { position: fixed; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.25); }
body.lb-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
