/* Fresh Film concept: the pipe opens onto the film.
   The CSS default is the flat page (reduced motion, or JS failed): every title already open, still in its pipe.
   html.motion (boot.js) hides the intro for its timeline; html.gs (main.js, once GSAP loads) switches on the pipes. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(vendor/fonts/Outfit-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(vendor/fonts/SourceSerif4-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #19C9C8;
  --ink: #000;
  --paper: #fff;
  --sans: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --head: 64px;
  --pad: 40px;
}
@media (max-width: 700px) { :root { --head: 56px; --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--sans); }
.page { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
.label { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.label::before { content: ""; width: 4px; height: 1.6em; background: var(--teal); }

/* ---------- header: always solid white, so nothing slides under it ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.is-scrolled .nav { border-bottom-color: #e6e6e6; }
.nav__home { display: block; padding: 6px 0; }
.nav__logo { height: 30px; width: auto; fill: var(--teal); }
.nav__links { display: flex; gap: 30px; font: 500 14px/1 var(--sans); }
.nav__links a { text-decoration: none; padding: 10px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 700px) {
  .nav__logo { height: 24px; }
  .nav__links { gap: 18px; font-size: 13px; }
  .nav__opt { display: none; }
}

/* ---------- 1. wordmark ---------- */
.intro {
  min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + 6vh) var(--pad) 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5vh;
}
.intro__logo { width: clamp(150px, 19vw, 300px); height: auto; fill: var(--teal); }
.intro__line { font: 350 clamp(30px, 4.3vw, 66px)/1.12 var(--serif); letter-spacing: -.012em; max-width: 24ch; text-wrap: balance; }
.intro__line .w { display: inline-block; }
.intro__pipe { width: 6px; height: 16vh; background: var(--teal); transform-origin: top; }

/* ---------- 2. the cut: flat default = every pipe already open on its still ---------- */
.reel { padding: 6vh 0 4vh; }
.cut { padding: 9vh var(--pad); }
.cut__stage { display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center; row-gap: 14px; }
.cut__title { display: contents; font-weight: 400; }
.cut__dir, .cut__client { font: 400 clamp(16px, 1.6vw, 28px)/1.1 var(--sans); grid-row: 1; white-space: nowrap; }
.cut__dir { font-weight: 600; grid-column: 1; justify-self: end; padding-right: 18px; }
.cut__client { grid-column: 3; justify-self: start; padding-left: 18px; }
.cut__bar { position: absolute; opacity: 0; pointer-events: none; }
.cut__frame { grid-column: 2; grid-row: 1; position: relative; background: var(--teal); padding: 0 4px; height: min(62vh, 600px, calc(54vw / var(--arn))); }
.cut[data-slug="samsonite"] .cut__frame { height: min(82vh, 820px); width: calc(min(82vh, 820px) * 0.5625 + 8px); justify-self: center; }
.cut__win { position: relative; height: 100%; aspect-ratio: var(--ar); overflow: hidden; background: var(--ink); }
.cut__win img, .cut__win video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cut__win video { opacity: 0; }
.cut__win video.is-on { opacity: 1; }
.cut__tint { display: none; }
.cut__play {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; border: 0; background: var(--paper); color: var(--ink);
  font: 500 13px/1 var(--sans); padding: 10px 14px; cursor: pointer;
}
.cut__play:hover { background: var(--teal); }
.cut__cred { grid-column: 2; grid-row: 2; justify-self: start; font: 400 13px/1.5 var(--sans); max-width: 60ch; }
.cut[data-slug="samsonite"] .cut__cred { max-width: calc(min(82vh, 820px) * 0.5625 + 8px); }
.cut__cred ul { display: inline; }
.cut__cred li { display: inline; }
.cut__cred li::after { content: "  ·  "; white-space: pre; }
.cut__cred a { text-underline-offset: 3px; }
.cut__cred a:hover { text-decoration-color: var(--teal); text-decoration-thickness: 2px; }

@media (max-width: 700px) {
  .cut { padding: 7vh var(--pad); }
  .cut__stage { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 12px; }
  .cut__dir, .cut__client, .cut__frame, .cut__cred { grid-column: 1; grid-row: auto; justify-self: center; padding: 0; }
  .cut__dir, .cut__client { font-size: clamp(22px, 8vw, 36px); white-space: normal; }
  .cut__frame { width: calc(100vw - 2 * var(--pad)); height: auto; padding: 4px 0; }
  .cut[data-slug="samsonite"] .cut__frame { width: 78vw; height: auto; }
  .cut__win { width: 100%; height: auto; }
}

/* ---------- 2. the cut, motion (html.gs): one stage, the pipe opens between the names ---------- */
.gs .reel { padding: 0; }
@media (min-width: 701px) {
  .gs .reel__pin { position: relative; height: 100vh; }
  .gs .cut { position: absolute; inset: 0; padding: 0; visibility: hidden; }
  .gs .cut.is-live { visibility: visible; }
}
.gs .cut__stage { display: block; position: absolute; inset: var(--head) 0 0 0; }
.gs .cut__dir, .gs .cut__client, .gs .cut__cred { justify-self: auto; align-self: auto; }
.gs .cut__dir, .gs .cut__client { position: absolute; left: 0; top: 0; padding: 0; white-space: nowrap; font-size: var(--fs, 64px); line-height: 1; will-change: transform; }
.gs .cut__dir { transform-origin: 100% 50%; }
.gs .cut__client { transform-origin: 0 50%; }
.gs .cut__frame, .gs .cut[data-slug] .cut__frame { position: absolute; inset: 0; width: auto; height: auto; padding: 0; justify-self: stretch; align-self: stretch; background: none; clip-path: inset(50% 50% 50% 50%); will-change: clip-path; }
.gs .cut__frame::before { content: ""; position: absolute; inset: 0; background: var(--teal); }
.gs .cut__win, .gs .cut__tint { position: absolute; left: var(--wx); top: var(--wy); width: var(--ww); height: var(--wh); aspect-ratio: auto; }
.gs .cut__tint { display: block; background: var(--teal); }
.gs .cut__play { display: none; }
.gs .cut__cred { position: absolute; left: var(--cx0, 0); top: var(--cy0, 0); width: var(--cw, auto); max-width: none; opacity: 0; text-align: left; }
@media (max-width: 700px) {
  .gs .cut { position: relative; height: 170vh; height: 170svh; padding: 0; }
  .gs .cut__stage { inset: auto; position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); }
  .gs .cut__dir, .gs .cut__client { transform-origin: 50% 50%; font-weight: 600; }
  .gs .cut__client { font-weight: 400; }
  .gs .cut__cred { text-align: center; }
}

/* ---------- 3. directors: a pipe after every name, opening at the scale of a word ---------- */
.dirs { padding: 16vh var(--pad) 14vh; }
.dirs__list { margin-top: 5vh; font: 400 clamp(28px, 3.5vw, 54px)/1.32 var(--sans); max-width: 1500px; }
.dirs__list li { display: inline; }
.dirs__list a { text-decoration: none; white-space: nowrap; }
.dirs__list a:hover, .dirs__list a:focus-visible { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: .06em; text-underline-offset: .12em; }
.dp { display: inline-block; position: relative; width: .07em; height: .74em; margin: 0 .3em 0 .32em; vertical-align: -.05em; background: var(--teal); overflow: hidden; transition: width .2s ease-out, height .2s ease-out, vertical-align .2s ease-out; }
.dp video { position: absolute; top: 0; bottom: 0; left: 3px; right: 3px; width: calc(100% - 6px); height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.gs .dirs li.is-open .dp { width: 2.1em; height: 1.18em; vertical-align: -.3em; }
.gs .dirs li.is-open .dp video { opacity: 1; }
@media (max-width: 700px) {
  .dirs__list { font-size: 30px; line-height: 1.5; }
  .dirs__list li { display: block; }
  .gs .dirs li.is-open .dp { width: 2.6em; height: 1.46em; vertical-align: -.42em; }
}

/* ---------- 4. fresh ---------- */
.fresh { padding: 12vh var(--pad) 18vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.fresh .label { grid-column: 1 / -1; margin-bottom: 6vh; }
.fresh__lead { grid-column: 1 / span 10; font: 350 clamp(28px, 3.6vw, 56px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.fresh__cols { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 8vh; font: 400 clamp(17px, 1.25vw, 20px)/1.6 var(--serif); }
.fresh__family { grid-column: 4 / span 7; margin-top: 6vh; font: 400 16px/1.65 var(--sans); }
.fresh__family a { text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.fresh__family strong { font-weight: 600; }
@media (max-width: 900px) {
  .fresh { display: block; }
  .fresh__cols { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 5. get in touch: the only black ground ---------- */
.contact { background: var(--ink); color: var(--paper); padding: 14vh var(--pad) 40px; }
.contact :focus-visible { outline-color: var(--teal); }
.contact .label { color: var(--paper); }
.cities { margin: 7vh 0 9vh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.city { border-left: 4px solid var(--teal); padding-left: 16px; }
.city__name { font: 300 clamp(30px, 3.4vw, 52px)/1.1 var(--sans); }
.city__name button { display: block; background: none; border: 0; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; transition: color .2s; }
.city__pipe { display: block; margin-top: 14px; }
.city__addr { display: flex; flex-direction: column; gap: 4px; font: 400 14px/1.5 var(--sans); }
.city__addr b { font-weight: 600; color: var(--teal); }
.city__addr a { text-decoration: none; }
.city__addr a:hover { color: var(--teal); }
@media (max-width: 700px) {
  .cities { grid-template-columns: 1fr; gap: 0; }
  .city { border-left: 0; padding: 22px 0; }
  .city + .city { border-top: 4px solid var(--teal); }
}
/* motion desktop: one line, the pipe after a city opens into its office */
@media (min-width: 701px) {
  .gs .cities { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; min-height: 190px; }
  .gs .city { display: flex; align-items: center; border: 0; padding: 0; }
  .gs .city__name { font-size: clamp(36px, 4.2vw, 66px); white-space: nowrap; }
  .gs .city__name button:hover, .gs .city.is-open .city__name button { color: var(--teal); }
  .gs .city__pipe { margin: 0 1vw; height: clamp(40px, 3.6vw, 56px); width: 6px; background: var(--teal); overflow: hidden; display: flex; align-items: center; transition: width .3s cubic-bezier(.22, 1, .36, 1), height .3s cubic-bezier(.22, 1, .36, 1); }
  .gs .city.is-open .city__pipe { width: var(--aw, 260px); height: var(--ah, 160px); }
  .gs .city__addr { flex: none; align-self: center; justify-content: center; margin: 0 4px; padding: 12px 16px; background: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .2s; }
  .gs .city.is-open .city__addr { opacity: 1; transition-delay: .1s; }
}
.contact__mail { display: grid; gap: 14px; font: 300 clamp(18px, 1.6vw, 24px)/1.3 var(--sans); }
.contact__mail p { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.contact__mail .who { font-size: 14px; font-weight: 500; min-width: 18em; }
.contact__mail a { text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact__mail a:hover { color: var(--teal); }
.contact__social { margin-top: 10px; gap: 28px !important; font-size: 16px; }
.foot { margin-top: 12vh; padding-top: 20px; border-top: 1px solid #333; font: 400 13px/1.6 var(--sans); color: #bdbdbd; max-width: 80ch; }
.foot a { color: var(--paper); }
@media (max-width: 700px) { .contact__mail .who { min-width: 0; width: 100%; } }

/* ---------- intro hidden only until its timeline runs ---------- */
.motion .intro__logo, .motion .intro__line, .motion .intro__pipe { visibility: hidden; }
.motion.is-ready .intro__logo, .motion.is-ready .intro__line, .motion.is-ready .intro__pipe { visibility: visible; }
.gs .rise { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
