/*
  Howoco — shared styles.
  Measurements follow the live Framer site, which is designed on a 1440px canvas
  with breakpoints at 810px and 1400px.
*/
:root {
  --font-display: "ES Klarheit Kurrent", "Sofia Pro", system-ui, sans-serif;
  --font-body: "Sofia Pro", system-ui, sans-serif;
  --font-accent: "Space Grotesk", system-ui, sans-serif;

  --black: #070303;          /* home, expertise, company background */
  --footer: #170909;         /* footer background */
  --paper: #ededed;          /* work and case-study background */
  --white: #ffffff;
  --grey: #616161;           /* muted headings on dark */
  --grey-light: #bababa;
  --red: #fd0413;            /* accent: eyebrows, links */
  --red-bright: #ff0013;
  --green: #3fb53f;          /* "Branding" tag dot */

  --gutter: 48px;
  --nav-h: 90px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 809.98px) {
  :root { --gutter: 24px; --nav-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg, var(--paper));
  color: var(--page-fg, #000);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.theme-dark { --page-bg: var(--black); --page-fg: var(--white); }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: normal; }
p, ul { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type styles (desktop / mobile values taken from the live site) */
.t-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 21px; letter-spacing: 1.68px; text-transform: uppercase; }
/* Heading styles always use the display face, even on <p> and other non-heading tags */
.t-h1, .t-h2, .t-h3, .t-h4, .t-h5 { font-family: var(--font-display); font-weight: 400; letter-spacing: normal; }
.t-h1 { font-size: 100px; line-height: 1.3; }
.t-h2 { font-size: 46px; line-height: 1.3; }
.t-h3 { font-size: 36px; line-height: 1.2; }
.t-h4 { font-size: 28px; line-height: 1.3; }
.t-h5 { font-size: 22px; line-height: 1.4; }
/* h5 steps by breakpoint, as on the live site: 24 from 1600, 22 from 1400, 20 on tablet, 18 on mobile */
@media (min-width: 1600px) { .t-h5 { font-size: 24px; } }
@media (min-width: 810px) and (max-width: 1399.98px) { .t-h2 { font-size: 40px; } .t-h5 { font-size: 20px; } }
.t-lead { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.t-body { font-weight: 300; font-size: 16px; line-height: 1.4; letter-spacing: 0.32px; }
.t-small { font-weight: 400; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.t-small strong, .t-cap-title { font-weight: 700; }
@media (max-width: 809.98px) {
  .t-eyebrow { font-size: 12px; line-height: 18px; }
  .t-h1 { font-size: 58px; }
  .t-h2 { font-size: 28px; }
  .t-h3 { font-size: 20px; }
  .t-h4 { font-size: 22px; }
  .t-h5 { font-size: 18px; }
  .t-lead { font-size: 16px; }
  .t-body { font-size: 14px; }
  .t-small { font-size: 12px; }
}

/* Logo (fixed, top left) */
.site-logo { position: fixed; z-index: 60; top: 38px; left: 85px; width: 51px; }
.site-logo img { width: 51px; height: 100px; }
@media (min-width: 810px) and (max-width: 1399.98px) { .site-logo { left: 63px; width: 37px; } .site-logo img { width: 37px; height: 72px; } }
@media (max-width: 809.98px) { .site-logo { top: 40px; left: 34px; width: 36px; } .site-logo img { width: 36px; height: 71px; } }

/* Navigation bar: visible at the top, hides on scroll down, returns on scroll up */
.site-nav {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--nav-h);
  display: flex; align-items: center; padding-left: 220px;
  background: var(--page-bg, var(--paper)); color: var(--page-fg, #000);
  transition: transform 0.4s var(--ease);
}
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav ul { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; }
/* Fixed link slots, as on the live site, so the links don't shift with the current page's bold weight */
@media (min-width: 810px) {
  .site-nav li:nth-last-child(4) { width: 75px; }
  .site-nav li:nth-last-child(3) { width: 77px; }
  .site-nav li:nth-last-child(2) { width: 81px; }
  .site-nav li:nth-last-child(1) { width: 118px; }
}
.site-nav a { font-weight: 400; font-size: 16px; line-height: 1.2; letter-spacing: 0.16px; transition: color 0.2s; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red-bright); font-weight: 700; }
.nav-toggle, .nav-home { display: none; }
/* Tablet (810–1399px, as on the live site): smaller logo, nav starts further left in smaller type */
@media (min-width: 810px) and (max-width: 1399.98px) {
  .site-nav { padding-left: 160px; }
  .site-nav ul { gap: 32px; margin-top: -4px; }
  .site-nav a { font-size: 14px; letter-spacing: 0.14px; }
}
@media (max-width: 809.98px) {
  .site-nav { inset: 0 0 auto auto; height: auto; padding: 0; background: transparent; }
  .site-nav.is-hidden { transform: none; }
  /* Two long lines that cross into an X, as on the live site */
  .nav-toggle { display: block; position: fixed; z-index: 2; top: 16px; right: 14px; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease), background-color 0.3s; }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 26px; }
  .site-nav.is-open .nav-toggle { color: #fff; }
  .site-nav.is-open .nav-toggle span { top: 21.5px; }
  .site-nav.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .site-nav.is-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }
  /* Full-screen dark red menu that drops down from the top, links following one after another */
  .nav-home { display: list-item; }
  .site-nav ul { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; gap: 29px; padding: 200px 32px 40px; background: #3a0508; color: #fff;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.6s; }
  .site-nav.is-open ul { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s; }
  .site-nav ul li { opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s; }
  .site-nav.is-open ul li { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .site-nav.is-open ul li:nth-child(1) { transition-delay: 0.25s; }
  .site-nav.is-open ul li:nth-child(2) { transition-delay: 0.31s; }
  .site-nav.is-open ul li:nth-child(3) { transition-delay: 0.37s; }
  .site-nav.is-open ul li:nth-child(4) { transition-delay: 0.43s; }
  .site-nav.is-open ul li:nth-child(5) { transition-delay: 0.49s; }
  .site-nav ul a { font-family: var(--font-display); font-size: 24px; line-height: 29px; color: #fff; }
  .site-nav ul a[aria-current="page"] { color: var(--red); font-weight: 400; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 179px; height: 30px; padding: 0 16px; font-weight: 700; font-size: 12px; line-height: 12px; letter-spacing: 0.36px; text-transform: uppercase; border: 1px solid currentColor; transition: background 0.2s, color 0.2s; }
.btn--solid { background: var(--white); color: #000; border-color: var(--white); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--outline:hover { background: var(--white); color: #000; }
.btn img { width: 18px; height: 18px; }

/* Footer */
.site-footer { position: relative; overflow: hidden; height: 100vh; height: 100svh; min-height: 640px; background: var(--footer); color: var(--white); }
.site-footer__scene { position: absolute; inset: 0; }
.site-footer__scene iframe { width: 100%; height: 100%; border: 0; }
.site-footer__content { position: absolute; left: var(--gutter); bottom: 0; width: 412px; max-width: calc(100% - 2 * var(--gutter)); padding-bottom: 40px; pointer-events: none; }
.site-footer__content a, .site-footer__content button { pointer-events: auto; }
.site-footer h2 { font-size: 52px; line-height: 1.3; }
.site-footer__lead { margin-top: 52px; }
.site-footer__buttons { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.site-footer__address { margin-top: 38px; }
.site-footer__address strong { font-weight: 700; }
.site-footer__find { margin-top: 23px; height: 38px; }
.site-footer__meta { display: flex; gap: 52px; margin-top: 52px; font-weight: 400; font-size: 14px; letter-spacing: 0.14px; }
.site-footer__meta a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 809.98px) {
  .site-footer { height: auto; min-height: 640px; }
  .site-footer__scene { opacity: 0.6; }
  .site-footer__content { position: relative; padding-top: 240px; }
  .site-footer h2 { font-size: 24px; }
  .site-footer__lead { margin-top: 20px; }
}

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 6px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 10px; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: 0.12px; background: rgba(255, 255, 255, 0.6); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tag--branding::before { background: var(--green); }

/* Media helpers */
.lottie { width: 100%; height: 100%; }
.media-fill { width: 100%; height: 100%; object-fit: cover; }

/* Reveal on scroll (the live site fades blocks up as they enter) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* "Sound on / Sound off" button over a muted film (home showreel, case-study films) */
.reel__sound { position: absolute; right: 20px; bottom: 20px; height: 30px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.35); color: #fff; font: 700 12px/1 var(--font-body); letter-spacing: 0.36px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.reel__sound:hover { background: rgba(0, 0, 0, 0.6); }
/* On case-study films it sits level with Safari's centred controls bar, in the corner beside it */
[data-hover-controls] + .reel__sound { bottom: 13px; }
