@import url("../nav-flip-animation.css");

@font-face {
  font-family: "ABC Favorit";
  src: url("../ABCFavorit-Book.woff2") format("woff2"),
       url("../ABCFavorit-Book.woff") format("woff");
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Foggy";
  src: url("../Foggy-Regular.woff2") format("woff2"),
       url("../Foggy-Regular.woff") format("woff");
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display/BigShouldersDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --smoke-white: #f3f3f3;
  --sq-corner-radius: 5px;
  --footer-text: rgba(243, 243, 243, 0.58);
  --footer-muted: rgba(243, 243, 243, 0.34);
  --squirrelli-page-max: 1408px;
  --squirrelli-shell-max: 1280px;
  --squirrelli-section-pad-x: clamp(24px, 5vw, 64px);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Roboto", "ABC Favorit", Arial, sans-serif;
  --font-ui: "Roboto", "ABC Favorit", Arial, sans-serif;
  --leading-body: 1.45;
  --leading-display: 0.92;
  --leading-display-tight: 0.78;
  --tracking-display: -0.035em;
  --tracking-label: 0.08em;
  --tracking-button: 0.02em;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
svg {
  max-width: 100%;
}

figure {
  margin: 0;
}

.page-shell {
  width: 100%;
  max-width: 100%;
}

.squirrelli-page-shell {
  width: min(calc(100% - 32px), var(--squirrelli-page-max));
  margin-inline: auto;
}

.squirrelli-section-shell {
  width: min(100%, var(--squirrelli-shell-max));
  margin-inline: auto;
}

.squirrelli-what-we-do {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 86px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 62px 40px 72px;
  background: var(--black);
  color: var(--white);
}

.squirrelli-what-we-do :is(.intro-copy, .event-intro-copy) {
  order: 2;
  color: var(--white);
}

.squirrelli-what-we-do :is(.intro-copy, .event-intro-copy) h1 {
  margin: 0;
  max-width: 650px;
  color: var(--white);
  font-family: "Foggy", "ABC Favorit", sans-serif;
  font-size: clamp(28px, 3.2vh, 40px);
  line-height: 1.15;
  font-weight: 600;
}

.squirrelli-what-we-do :is(.intro-copy, .event-intro-copy) p {
  margin: 24px 0 0;
  max-width: 650px;
  color: var(--white);
  font-size: clamp(16px, 2.1vh, 22px);
  line-height: 1.62;
}

.squirrelli-what-we-do :is(.intro-book-link, .event-intro-book-link) {
  display: inline-block;
  margin-top: 34px;
  font-family: "Foggy", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.squirrelli-what-we-do :is(.intro-images, .event-intro-images) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  order: 1;
  padding-bottom: 42px;
}

.squirrelli-what-we-do :is(.intro-image-panel, .event-intro-image-card, .intro-image-card) {
  width: 100%;
  aspect-ratio: 0.625;
  object-fit: cover;
  border-radius: var(--sq-corner-radius);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.squirrelli-what-we-do :is(.intro-image-panel, .event-intro-image-card) {
  grid-column: 1 / -1;
  width: calc(100% - 22px);
  aspect-ratio: 1.25;
}

.squirrelli-what-we-do .intro-images img:nth-child(2) {
  margin-top: 42px;
}

.squirrelli-what-we-do--reversed :is(.intro-copy, .event-intro-copy) {
  order: 1;
  justify-self: end;
  width: min(100%, 650px);
}

.squirrelli-what-we-do--reversed :is(.intro-images, .event-intro-images) {
  order: 2;
}

.squirrelli-what-we-do--two-images :is(.intro-images, .event-intro-images) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.squirrelli-what-we-do--two-images :is(.intro-image-card, .event-intro-image-card) {
  grid-column: auto;
  width: 100%;
  aspect-ratio: 0.625;
}

.squirrelli-what-we-do--two-images :is(.intro-image-card, .event-intro-image-card):nth-child(2) {
  margin-top: 42px;
}

.squirrelli-clip-track {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 52px;
  background: transparent;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: var(--black);
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.08);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  height: 94px;
  overflow: visible;
}

.logo-link img {
  width: 104px;
  height: 94px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-left: -24px;
}

.hamburger {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.hamburger svg {
  height: 50px;
  width: 50px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-width: 3;
  transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-panel .line {
  stroke: var(--gold);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
  transform: scaleX(-1);
  transform-box: fill-box;
  transform-origin: center;
}

.hamburger svg.open,
.hamburger.is-open svg {
  transform: rotate(-45deg);
}

.hamburger svg.open .line-top-bottom,
.hamburger.is-open svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(45vh, 430px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: rgba(48, 48, 48, 0.5);
  border-radius: var(--sq-corner-radius) 0 0 var(--sq-corner-radius);
  backdrop-filter: blur(15px);
  color: var(--white);
  transform: translateX(calc(100% + 100px));
  transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-panel.open {
  transform: translateX(0);
}

.close-menu {
  align-self: flex-end;
}

.menu-kicker {
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(22px, 2.5vh, 27px);
}

.menu-section {
  padding-bottom: 18px;
}

.menu-section + .menu-section {
  margin-top: 18px;
}

.menu-panel nav a {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(19px, 2.3vh, 25px);
  line-height: 1.15;
}

.menu-panel nav a:hover,
.menu-social a:hover {
  color: var(--white);
}

.menu-social h5 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(22px, 2.5vh, 27px);
}

.menu-social div {
  display: block;
}

.menu-social a {
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.5vh, 27px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}

.hero video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.footer {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1408px;
  min-height: 330px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: normal;
  color: var(--white);
  padding: 72px 64px 40px;
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 48px;
  margin: 0 0 48px;
}

.footer-brand,
.footer-column,
.footer-cta {
  min-width: 0;
}

.footer-brand {
  min-height: 136px;
}

.footer-logo {
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-brand p {
  max-width: 286px;
  margin: 0 0 24px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.footer-column h3,
.footer-cta h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.footer-cta h3 {
  color: var(--white);
}

.footer-book-link {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 0;
  color: var(--footer-text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 2.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--white);
}

.footer .footer-logo:hover,
.footer .footer-logo:focus-visible {
  color: var(--gold);
}

@media (max-width: 959px) {
  .squirrelli-what-we-do {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 42px 24px 36px;
  }

  .squirrelli-what-we-do :is(.intro-copy, .intro-images, .event-intro-copy, .event-intro-images) {
    order: 0;
  }

  .squirrelli-what-we-do--reversed :is(.intro-copy, .event-intro-copy) {
    justify-self: stretch;
    width: auto;
  }

  .squirrelli-what-we-do :is(.intro-copy, .event-intro-copy) h1 {
    font-size: 28px;
  }

  .squirrelli-what-we-do :is(.intro-copy, .event-intro-copy) p {
    font-size: 16px;
    line-height: 1.62;
  }

  .squirrelli-what-we-do :is(.intro-book-link, .event-intro-book-link) {
    font-size: 16px;
  }

  .squirrelli-what-we-do :is(.intro-images, .event-intro-images) {
    margin-top: 26px;
  }

  .site-header {
    position: fixed;
    padding: 8px 26px;
    background: transparent;
  }

  .logo-link {
    gap: 2px;
    height: 52px;
  }

  .logo-link img {
    width: 62px;
    height: 52px;
  }

  .logo-word {
    font-size: 24px;
    margin-left: -14px;
  }

  .hamburger svg {
    width: 32px;
    height: 32px;
  }

  .menu-panel {
    width: min(88vw, 420px);
  }

  .footer {
    width: 100%;
    min-height: 0;
    padding: 48px 24px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    align-items: center;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .footer-bottom p,
  .footer-legal a {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
}
