/* Home Sweet Home — tokens, page structure and the pieces every page shares
   (header, hero banner, light "paper" sections, call to action, buttons, footer).
   Sizes come from the 1440px-wide Figma design and scale down with the viewport. */

:root {
  --ink: #0c1519;
  --ink-2: #0b1418;
  --ink-3: #0e1316;
  --text: #231f20;
  --orange: #e49725;
  --orange-light: #eca637;
  --paper: #eeefed;
  --paper-light: #eff0ef;
  --slate: #33474b;
  --teal: #759398;
  --teal-ink: #749197;
  --teal-dark: #607a7f;
  --play-ink: #4f666b;
  --tint: rgba(62, 98, 102, 0.62);

  --page: 1440px;
  --gutter: clamp(20px, 5.07vw, 73px);
  /* Distance from the window edge to the content column; keeps the 1440px design centred on wider screens */
  --edge: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
  /* One design pixel, scaled down below 1440px wide */
  --dpx: min(1px, 100vw / 1440);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  padding-inline: var(--edge);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
}

/* Full-width extension of the dark bar when the Our Work menu opens */
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: clamp(60px, 5.7vw, 82px);
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s var(--ease);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(18px, 4.3vw, 62px);
  padding-bottom: clamp(18px, 3.96vw, 57px);
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.42vw, 20.5px);
  text-decoration: none;
}

.brand__mark {
  width: auto;
  height: clamp(48px, 8vw, 115px);
}

.brand__wordmark {
  width: auto;
  height: clamp(10px, 1.6vw, 23px);
  margin-bottom: clamp(9.6px, 1.6vw, 23px);
}

.site-nav__list {
  display: flex;
  gap: clamp(24px, 2.85vw, 41px);
  margin: 0 0 clamp(6px, 0.9vw, 13px);
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: var(--paper);
  font-size: clamp(17px, 1.53vw, 22px);
  font-weight: 500;
  line-height: 1.18;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"],
.has-sub:hover > .nav-link,
.has-sub:focus-within > .nav-link {
  color: var(--orange);
  border-color: var(--orange);
}

.has-sub {
  position: relative;
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  gap: 9.5px;
  min-width: max-content;
  margin: 0;
  padding: 15px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
}

.sub-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px dashed transparent;
  color: var(--paper);
  font-size: clamp(17px, 1.53vw, 22px);
  line-height: 1.18;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.sub-link:hover,
.sub-link:focus-visible {
  color: var(--teal-ink);
  border-color: var(--teal-ink);
}

.nav-toggle {
  display: none;
}

@media (min-width: 1024px) {
  .has-sub:hover .sub-nav,
  .has-sub:focus-within .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }

  .site-header:has(.has-sub:hover, .has-sub:focus-within)::after {
    transform: scaleY(1);
  }
}

@media (max-width: 1023.98px) {
  .site-header__inner {
    align-items: center;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--paper);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), background 0.2s;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    top: -8px;
  }

  .nav-toggle__bars::after {
    top: 8px;
  }

  .nav-open .nav-toggle__bars {
    background: transparent;
  }

  .nav-open .nav-toggle__bars::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-open .nav-toggle__bars::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--edge) 32px;
    border-top: 1px solid rgba(238, 239, 237, 0.12);
    background: var(--ink);
  }

  .nav-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .site-nav__list > li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(238, 239, 237, 0.08);
  }

  .nav-link {
    font-size: 20px;
  }

  .sub-nav {
    position: static;
    gap: 12px;
    padding: 14px 0 2px 18px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .sub-link {
    font-size: 18px;
  }
}

/* ---------- Hero banner: video, big title and a coloured band with the tagline ---------- */

.page-hero {
  --media-h: clamp(240px, 33.06vw, 476px);
  --band-h: clamp(72px, 9.17vw, 132px);
  position: relative;
}

.page-hero__visual {
  position: relative;
  height: var(--media-h);
  overflow: hidden;
  background: #2b3a40;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.page-hero__title-wrap {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(10 * var(--dpx));
}

.page-hero__title {
  margin: 0 0 0 -0.04em;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: min(125px, 8.4vw);
  font-weight: 500;
  line-height: 0.72;
  text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
}

.page-hero__band {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  height: var(--band-h);
  overflow: hidden;
  background: var(--orange);
}

.page-hero__band--teal {
  background: var(--teal-ink);
}

.page-hero__band > .wrap {
  position: relative;
  width: 100%;
}

.page-hero__band-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.page-hero__tagline {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.125vw, 45px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-hero__band--teal .page-hero__tagline {
  color: var(--paper);
}

/* Home: a taller video with the band laid over its bottom edge */
.page-hero--home {
  --media-h: clamp(440px, 52.08vw, 750px);
  --band-h: clamp(72px, 8.9vw, 128px);
}

.page-hero--home .page-hero__band {
  margin-top: calc(-1 * var(--band-h));
}

.page-hero--home .page-hero__title-wrap {
  bottom: calc(var(--band-h) - 0.35vw);
}

.page-hero--home .page-hero__title {
  line-height: 0.8;
  text-shadow: 4px 0 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
  .page-hero--home {
    --media-h: clamp(380px, 110vw, 520px);
  }

  .page-hero--home .page-hero__title {
    padding-bottom: 0.1em;
    font-size: 11.2vw;
    line-height: 0.9;
    white-space: normal;
  }
}

/* ---------- Light "paper" sections with the white line patterns behind ---------- */

.paper {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.paper > :not(.pattern) {
  position: relative;
}

/* Background pattern; --y is its offset from the top of the section in design pixels */
.pattern {
  position: absolute;
  top: calc(var(--y, 0) * var(--dpx));
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.section-title {
  margin: clamp(40px, 4.1vw, 59px) 0 clamp(32px, 6.5vw, 94px);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.125vw, 45px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

/* ---------- Call to action ---------- */

.cta {
  padding: clamp(56px, 6.25vw, 90px) 0 clamp(64px, 8.6vw, 124px);
}

.cta__title {
  max-width: 1243px;
  margin: 0 0 clamp(16px, 1.46vw, 21px);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.51vw, 65px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.23;
  text-transform: uppercase;
}

@media (max-width: 859.98px) {
  .br-wide {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 42px;
  padding: 0 14.5px 0 16.25px;
  border: 0;
  background: var(--orange);
  color: #eeefee;
  font-size: clamp(18px, 1.52vw, 21.85px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn svg {
  flex: none;
  width: 24px;
  height: 20px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
}

.btn--footer:hover,
.btn--footer:focus-visible,
.btn--light:hover,
.btn--light:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.site-footer__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  grid-template-areas:
    "logo address nav actions"
    "legal address nav actions";
  column-gap: clamp(32px, 4.5vw, 65px);
  padding-top: clamp(48px, 5.2vw, 75px);
  padding-bottom: clamp(40px, 5vw, 73px);
}

.site-footer__logo {
  grid-area: logo;
  align-self: start;
}

.site-footer__logo img {
  width: clamp(240px, 28.3vw, 408px);
  height: auto;
}

.site-footer__address,
.site-footer__nav,
.site-footer__actions {
  padding-top: clamp(0px, 3.9vw, 56px);
}

.site-footer__address {
  grid-area: address;
  font-size: clamp(16px, 1.38vw, 19.9px);
  font-style: normal;
  line-height: 1.76;
}

.site-footer__address a {
  text-decoration: none;
}

.site-footer__address a:hover {
  color: var(--orange);
}

.site-footer__nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.75;
}

.site-footer__nav a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--orange);
}

.site-footer__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 38px;
  color: var(--paper);
  transition: color 0.2s;
}

.social a:hover,
.social a:focus-visible {
  color: var(--orange);
}

.site-footer__legal {
  grid-area: legal;
  align-self: end;
  margin-top: 40px;
  color: #666;
  font-size: 16px;
  line-height: 1.2;
}

.site-footer__legal p {
  margin: 0 0 9px;
}

.site-footer__legal p:last-child {
  margin-bottom: 0;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--paper);
}

@media (max-width: 1023.98px) {
  .site-footer__inner {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "logo logo logo"
      "address nav actions"
      "legal legal legal";
    row-gap: 36px;
  }

  .site-footer__address,
  .site-footer__nav,
  .site-footer__actions {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "address nav"
      "actions actions"
      "legal legal";
  }

  .site-footer__actions {
    align-items: flex-start;
  }

  .social {
    margin-left: -6px;
  }

  .site-footer__legal {
    margin-top: 0;
  }
}

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