/* Creative Fox Films: shared base for the three homepage directions */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("fonts/heebo-hebrew-700.woff2") format("woff2"); font-weight: 700; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }

:root {
  --ivory: #f7f3ec; --paper: #efe9df; --ink: #111111; --ink-soft: #5c5853; --black: #0b0a09; --orange: #ff5416; --orange-text: #e8460c;
  --on-dark: #f7f3ec; --on-dark-soft: #a8a39b;
  --line: rgba(17, 17, 17, .14); --line-dark: rgba(247, 243, 236, .16);
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --display: var(--sans);
  --wrap: 1280px; --gut: clamp(20px, 5.6vw, 80px);
  --pad: clamp(72px, 8.5vw, 128px);
  --nav-h: 76px;
  --r: 14px; --r-sm: 10px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.section { padding-block: var(--pad); }
.dark { background: var(--black); color: var(--on-dark); color-scheme: dark; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.dark .lead { color: var(--on-dark-soft); }
.eyeline { font-size: 14px; color: var(--ink-soft); }

/* links */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 240ms var(--ease-out); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 0% 1px; background-position: 100% 100%; } }
.arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a:hover > .arrow, button:hover > .arrow { transform: translateX(4px); } }

/* buttons */
.btn { --b-bg: var(--orange); --b-fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--b-bg); color: var(--b-fg); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { --b-bg: #ff6a33; } }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; border-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { --b-bg: rgba(127, 127, 127, .12); } }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--ivory); }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { --b-bg: #2a2826; } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: color-mix(in oklab, var(--ivory) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease; }
.nav__bar { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.nav__logo { display: flex; align-items: center; height: 100%; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav__ig { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: inherit; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__ig:hover { background: rgba(127, 127, 127, .14); } }
.nav__bar { grid-template-columns: auto 1fr auto auto; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; place-items: center; }
.nav__menu svg { width: 18px; height: 18px; }
.nav.is-dark { background: color-mix(in oklab, var(--black) 86%, transparent); color: var(--on-dark); border-color: var(--line-dark); }
.nav.is-dark .nav__logo .logo-ink, .nav:not(.is-dark) .nav__logo .logo-ivory { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--ivory); padding: calc(var(--nav-h) + 24px) var(--gut) 40px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-100%); transition: transform 420ms var(--ease-drawer); visibility: hidden; }
.sheet.is-open { transform: none; visibility: visible; }
.sheet a { font: 600 34px/1.15 var(--sans); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.sheet .btn { margin-top: 24px; font-size: 18px; border: 0; }
.sheet__close { position: absolute; top: 16px; right: var(--gut); width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; font-size: 22px; cursor: pointer; }
@media (max-width: 900px) {
  .nav__links, .nav__ig { display: none; }
  .nav__bar { grid-template-columns: auto 1fr auto auto; gap: 12px; }
  .nav__cta { grid-column: 3; }
  .nav__menu { display: grid; grid-column: 4; }
}
@media (max-width: 420px) { .nav__cta { padding: 0 16px; font-size: 14px; } .nav__logo img { height: 32px; } :root { --nav-h: 68px; } }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { font-weight: 400; opacity: .72; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid rgba(17, 17, 17, .28); background: rgba(255, 255, 255, .55); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .14); }
.field [aria-invalid="true"] { border: 2px solid #b42318; }
.field__error { font-size: 14px; color: #8f1d12; }
.form__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__status { font-size: 15px; }
.form__alt { grid-column: 1 / -1; font-size: 15px; }
.form__alt a { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .btns .btn { flex: 1 1 auto; padding: 0 18px; } }

/* a call to action between sections */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.cta-row p { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; max-width: 30ch; }
.dark .cta-row { border-color: var(--line-dark); }
@media (max-width: 640px) { .cta-row .btn { width: 100%; } }

.close__end { display: grid; gap: 24px; justify-items: start; }

/* footer */
.footer { padding-block: clamp(72px, 9vw, 120px) 40px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__cols h3 { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 14px; }
.dark .footer__cols h3, .footer.dark h3 { color: var(--on-dark-soft); }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.footer.dark .footer__legal { border-color: var(--line-dark); color: var(--on-dark-soft); }
.footer__legal a { text-decoration: none; }
@media (max-width: 900px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* the client marks */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 32px; }
.clients img { height: 30px; width: auto; max-width: 100%; }
.clients .c-wide img { height: 22px; }
.clients .c-mid img { height: 34px; }
@media (max-width: 640px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* motion control shared by every moving piece */
.pause { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 14px/1 var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out); }
.pause:active { transform: scale(.97); }
.pause svg { width: 12px; height: 12px; }
.is-paused .loop, .is-paused.loop { animation-play-state: paused !important; }
.biglogo__dot { animation: none; }
.biglogo.is-in .biglogo__dot { animation: blink 1.4s steps(1) 3; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-delay: 0ms !important; transition-delay: 0ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }
