/* Foundation */
:root {
  --page-gutter: 48px;
  --content-width: 1320px;
  --color-accent: #FF9E28;
  --color-hero-card: #FF9525;
  --color-hero-ivory: #FFF5E6;
  color-scheme: light only;
  --color-white: #fff;
  --color-card: #111114;
  --color-muted: #b8b8c1;
  --color-divider: #333339;
  --font-body: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-display: Manrope, "Pretendard Variable", Pretendard, sans-serif;
  --sticky-top: clamp(120px,15vh,170px);
  --section-title-size: clamp(32px,3.5vw,50px);
  --section-padding: clamp(85px,10vw,140px) 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: var(--color-white);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h2, h3, h4 {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.section-shell {
  margin: auto;
  width: min(var(--content-width),calc(100% - var(--page-gutter)*2));
}

.dark-sections {
  background: #050505;
  color: var(--color-white);
  border-radius: 32px 32px 0 0;
}

.section-title {
  font-size: var(--section-title-size);
  letter-spacing: -.045em;
  line-height: 1.3;
}

.content-shell {
  margin-inline: auto;
  width: min(var(--content-width),calc(100% - var(--page-gutter)*2));
}

h1, li {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.identity-name {
  display: inline-block;
}

.nowrap {
  white-space: nowrap;
}

/* Off screen but still read by crawlers and screen readers (not display:none). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
}

@media (max-width:1000px) {
  :root {
    --page-gutter: 32px;
  }
}

@media (max-width:760px) {
  :root {
    --page-gutter: 20px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .section-title {
    font-size: 30px;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  transition: opacity var(--fade,0s) ease var(--fade-delay,0s),background .4s,color .4s,backdrop-filter .4s;
  opacity: 0;
  padding: 14px max(var(--page-gutter),calc((100% - var(--content-width))/2));
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--color-white);
  color: #20211F;
}

/* JS toggles .is-shown (the intro has let it in, timed through --fade/--fade-delay), .is-solid (scrolled)
   and .is-dark (over the dark zone). */
.site-header.is-shown {
  opacity: 1;
}

.site-header.is-solid {
  background: rgba(255,255,255,.82);
}

.site-header.is-dark {
  background: rgba(12,12,14,.66);
  color: var(--color-white);
}

.site-header.is-solid, .site-header.is-dark {
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.brand-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: clamp(27px,3.4vw,34px);
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(16px,3vw,36px);
  font-size: clamp(13px,1.4vw,16px);
  font-weight: 600;
}

.site-nav a:hover {
  opacity: .6;
}

@media (max-width:760px) {
  .site-header {
    gap: 12px;
    padding: 8px 20px;
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .header-logo {
    height: 25px;
  }

  .site-nav {
    white-space: nowrap;
    font-size: 14px;
  }

  .site-nav a {
    display: none;
  }

  .site-nav a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }
}

/* Hero */
/* Absolute, not fixed: iOS Safari tints its bars from fixed elements at the viewport edges and repaints that tint
   on its own clock, so a fixed plane leaves an orange bar lagging behind the squeeze. The intro holds the page
   at the top, where the two are the same box. */
.intro-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-hero-card);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px - clamp(12px,1.4vw,20px));
  min-height: calc(100svh - 80px - clamp(12px,1.4vw,20px));
  min-height: calc(var(--viewport-h,100svh) - 80px - clamp(12px,1.4vw,20px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(14px,1.4vw,22px);
  margin: 80px clamp(12px,1.4vw,20px) clamp(12px,1.4vw,20px);
  background: transparent;
  isolation: isolate;
  z-index: 2;
}

/* After the intro the card holds a beat, then the poster is wiped in from the bottom (.is-entering): a mask three
   times the card's height, opaque below and clear above, slides up so its soft edge climbs the card. The live
   render starts with the wipe, under the same mask, so the blocks are already moving as they rise; once the wipe
   is over (.is-revealed) the mask is dropped so it does not stay on the WebGL layer. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top,#000 0%,#000 38%,transparent 62%,transparent 100%);
  mask-image: linear-gradient(to top,#000 0%,#000 38%,transparent 62%,transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  transition: -webkit-mask-position 1.6s cubic-bezier(.33,0,.15,1),mask-position 1.6s cubic-bezier(.33,0,.15,1);
}

.hero-poster {
  position: absolute;
  inset: 0;
  background: #d9651a url("../assets/hero-poster.webp") center/cover no-repeat;
}

.hero.is-entering .hero-art {
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
}

.hero.is-revealed .hero-art {
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity .3s ease;
}

.hero-canvas.is-live {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px,2.6vw,34px);
  padding: clamp(40px,8vh,110px) clamp(22px,5vw,64px) clamp(60px,12vh,130px);
  text-align: center;
}

.hero-title {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(40px,6vw,94px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--color-accent);
  text-wrap: balance;
  opacity: 0;
}

.hero-subtitle {
  margin: 0;
  max-width: 46em;
  font-size: clamp(16px,1.6vw,20px);
  line-height: 1.6;
  font-weight: 600;
  text-wrap: pretty;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .34em;
}

.hero-subtitle-part {
  color: var(--color-accent);
  opacity: 0;
}

@media (max-width:760px) {
  .hero {
    min-height: calc(100vh - 60px - clamp(12px,1.4vw,20px));
    min-height: calc(100svh - 60px - clamp(12px,1.4vw,20px));
    min-height: calc(var(--viewport-h,100svh) - 60px - clamp(12px,1.4vw,20px));
    margin-top: 60px;
  }

  .hero-title {
    font-size: clamp(34px,10.5vw,54px);
  }

  .hero-content {
    padding-inline: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* About */
.about {
  text-align: center;
  padding: clamp(110px,14vw,200px) 0 clamp(90px,10vw,140px);
}

.about-title {
  font-size: clamp(36px,4.5vw,64px);
  letter-spacing: -.045em;
  line-height: 1.3;
}

.about-description {
  margin: 32px auto 0;
  color: #57575d;
  line-height: 1.7;
  font-size: clamp(17px,1.4vw,20px);
  max-width: 860px;
}

@media (max-width:760px) {
  /* 56px below the hero card, with its 12px inset */
  .about {
    padding: 44px 0 0;
    text-align: left;
  }

  .about .section-shell {
    padding-bottom: 40px;
    border-bottom: 1px solid #e3e3e6;
  }

  .about-title {
    font-size: clamp(27px,5.3vw,36px);
  }

  .about-description {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Business */
.business {
  position: relative;
  padding: clamp(80px,9vw,130px) 0 clamp(100px,12vw,170px);
}

.business-layout {
  flex-wrap: wrap;
  align-items: flex-start;
  grid-template-columns: minmax(260px,.8fr) minmax(0,1.5fr);
  display: grid;
  gap: clamp(48px,6vw,100px);
}

.business-sidebar {
  flex: 1 1 min(100%,300px);
  position: sticky;
  top: var(--sticky-top);
  min-width: 0;
  max-width: 400px;
}

.business-title {
  font-size: var(--section-title-size);
  letter-spacing: -.045em;
  line-height: 1.3;
}

.business-description {
  font-size: clamp(16px,1.8vw,18px);
  margin: 20px 0 clamp(24px,3.6vh,40px);
  line-height: 1.7;
  color: #626268;
}

.business-nav {
  display: flex;
  flex-direction: column;
}

.business-nav-link {
  display: flex;
  gap: 14px;
  padding: 18px 2px;
  border-bottom: 1px solid #e6e6e6;
  font-weight: 650;
  transition: color .35s;
  color: #191919;
  font-size: 17px;
}

.business-nav-link:last-child {
  border-bottom: 0;
}

.business-nav-link.is-active {
  color: var(--color-accent);
}

.business-nav-number {
  color: #c9c9c9;
}

@media (max-width:1000px) {
  .business-layout {
    grid-template-columns: minmax(230px,.8fr) minmax(0,1.3fr);
    gap: 36px;
  }
}

@media (max-width:760px) {
  .business-sidebar {
    margin-bottom: 40px;
    position: static;
    max-width: none;
  }

  .business-title {
    font-size: 28px;
  }

  .business {
    padding: 40px 0 88px;
  }

  .business-description {
    margin-top: 12px;
    line-height: 1.6;
  }

  .business-layout {
    display: block;
  }

  .business-nav {
    display: none;
  }
}

/* Services */
.service-list {
  flex: 1.7 1 min(100%,340px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.service-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: var(--sticky-top);
}

.service-visual {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding-top: 360px;
  border-radius: 24px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* centred by auto margins, so the mobile scroll reveal can own transform */
.service-gui {
  position: absolute;
  z-index: -2;
  top: 28px;
  left: 0;
  right: 0;
  margin-inline: auto;
  display: block;
  width: min(350px,72%);
  height: auto;
  max-width: none;
  filter: drop-shadow(0 16px 18px rgba(32,24,16,.12));
}

.service-card--life .service-visual {
  --service-tint: 255,229,184;
  --service-ink: #5E3808;
  background: linear-gradient(to bottom,#FFF7E5 0%,#FFE5B8 100%);
}

.service-card--culture .service-visual {
  --service-tint: 255,232,226;
  --service-ink: #722F24;
  background: linear-gradient(to bottom,#F5EFEF 0%,#FFE8E2 100%);
}

.service-card--dott .service-visual {
  --service-tint: 230,233,240;
  --service-ink: #2E3445;
  background: linear-gradient(to bottom,#eef1f5 0%,#e6e9f0 100%);
}

.service-copy {
  position: relative;
  width: 100%;
  padding: 80px 36px 36px;
  color: #252525;
}

.service-blur {
  position: absolute;
  inset: -32px 0 0;
  z-index: -1;
  pointer-events: none;
}

/* Extend the tint past the blur to avoid seams along rounded card edges. */
.service-blur::after {
  content: "";
  position: absolute;
  inset: 0 0 -2px;
  background: linear-gradient(to bottom,rgba(var(--service-tint),0) 0%,rgba(var(--service-tint),.18) 20%,rgba(var(--service-tint),.72) 44%,rgba(var(--service-tint),.94) 68%,rgb(var(--service-tint)) 88%);
}

.service-blur span {
  position: absolute;
  inset: 0 -64px -64px;
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  -webkit-mask-image: linear-gradient(to bottom,transparent var(--start),#000 var(--end));
  mask-image: linear-gradient(to bottom,transparent var(--start),#000 var(--end));
}

.service-blur span:nth-child(1) {
  --blur: 4px;
  --start: 0%;
  --end: 35%;
}

.service-blur span:nth-child(2) {
  --blur: 8px;
  --start: 20%;
  --end: 65%;
}

.service-blur span:nth-child(3) {
  --blur: 16px;
  --start: 45%;
  --end: 100%;
}

.service-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
}

.service-copy h4 {
  letter-spacing: -.035em;
  font-size: clamp(24px,2.1vw,30px);
  line-height: 1.4;
  margin: 16px 0 12px;
  color: var(--service-ink,inherit);
}

/* On mobile the logo gives way to the service name written in front of the title. */
.service-name {
  display: none;
}

.service-copy p {
  margin: 0;
  font-size: 17px;
  color: #55514C;
  line-height: 1.7;
}

/* The body copy breaks where it was written only once the content has reached its max width (1320px + gutters). */
.service-br {
  display: none;
}

@media (min-width:1416px) {
  .service-br {
    display: inline;
  }
}

@media (max-width:760px) {
  .service-list {
    gap: 20px;
  }

  .service-visual {
    min-height: 540px;
    padding-top: 200px;
    border-radius: 20px;
  }

  .service-gui {
    top: 24px;
    width: min(280px,76%);
    height: auto;
  }

  .service-copy {
    padding: 72px 20px 28px;
  }

  .service-copy h3 {
    display: none;
  }

  .service-name {
    display: inline;
  }

  .service-copy h4 {
    margin-top: 0;
  }

  .service-copy p {
    font-size: 16px;
  }
}

/* Principles */
.principle-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.principle-number {
  font-size: clamp(23px,2.25vw,30px);
  line-height: 1.4;
  color: #999;
}

.principle-title {
  font-family: var(--font-display);
  line-height: 1.4;
  font-size: clamp(23px,2.25vw,30px);
  letter-spacing: -.04em;
}

.principle-copy-title {
  letter-spacing: -.035em;
  font-size: 21px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.principle-description {
  line-height: 1.7;
  font-size: 18px;
  color: var(--color-muted);
  margin: 0;
}

.principles {
  padding: clamp(88px,9vw,140px) 0;
}

.principles-intro {
  font-family: var(--font-display);
  font-size: clamp(44px,7.2vw,104px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 750;
  text-align: center;
  background: linear-gradient(#f0f0f4,#9b9ba6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 40px 0 clamp(96px,12vw,180px);
}

.principles-title {
  font-size: var(--section-title-size);
  letter-spacing: -.045em;
  line-height: 1.3;
  margin-bottom: 56px;
}

.principle-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
  gap: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--color-divider);
  align-items: start;
}

.principle-row:first-child {
  border-top: 0;
}

@media (max-width:1000px) {
  .principle-row {
    gap: 32px;
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  }
}

@media (max-width:760px) {
  .principles {
    padding: 80px 0 48px;
  }

  .principles-intro {
    font-size: clamp(35px,7.4vw,54px);
    margin: 0 0 80px;
    letter-spacing: -.05em;
  }

  .principles-title {
    font-size: 30px;
    margin-bottom: 36px;
  }

  .principle-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .principle-heading {
    gap: 12px;
  }

  .principle-number, .principle-title {
    font-size: 25px;
  }

  .principle-copy-title {
    font-size: 18px;
  }

  .principle-description {
    font-size: 16px;
  }
}

/* Heritage */
.heritage {
  padding: var(--section-padding);
  overflow: hidden;
}

.heritage-title {
  font-size: var(--section-title-size);
  letter-spacing: -.045em;
  line-height: 1.3;
  max-width: 900px;
  margin-bottom: clamp(56px,6vw,88px);
}

.heritage-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.heritage-events h4 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -.025em;
  font-weight: 650;
  margin: 0 0 8px;
}

.heritage-events p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0;
}

.heritage-tabs button {
  font: inherit;
  position: relative;
  z-index: 1;
  flex: 0 0 50px;
  width: 50px;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
  cursor: pointer;
  color: #73737c;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -.03em;
  transition: color .25s ease,font-weight .25s ease;
}

.heritage :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}

.heritage-tabs {
  --indicator-x: 0px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(64px,6.5vw,92px);
  padding: 56px 0 104px;
  cursor: pointer;
  isolation: isolate;
}

/* Only draw intermediate ticks; year buttons own the six major ticks, so the mask gaps every fifth. */
.heritage-minor-ticks {
  position: absolute;
  left: 25px;
  right: 25px;
  top: 106px;
  height: 16px;
  pointer-events: none;
  background: repeating-linear-gradient(to right,rgba(75,75,82,.9) -.5px .5px,transparent .5px calc(100%/60 - .5px));
  -webkit-mask-image: repeating-linear-gradient(to right,transparent -3px 3px,#000 3px calc(20% - 3px));
  mask-image: repeating-linear-gradient(to right,transparent -3px 3px,#000 3px calc(20% - 3px));
}

.heritage-tabs button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50px;
  width: 1px;
  height: 24px;
  background: #5c5c64;
  transform: translateX(-50%);
  transition: height .25s ease,background-color .25s ease;
}

.heritage-tabs button:hover {
  color: #d9d9df;
}

.heritage-tabs button[aria-selected="true"] {
  color: var(--color-white);
  font-weight: 700;
}

.heritage-tabs button[aria-selected="true"]::after {
  height: 24px;
  background: var(--color-accent);
}

.heritage-indicator {
  position: absolute;
  z-index: 2;
  left: var(--indicator-x);
  top: 23px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid var(--color-accent);
  transform: translateX(-50%);
  transition: left 1.2s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.heritage-panels {
  --card-width: min(1100px,calc(100vw - 160px));
  --slide-gap: 28px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 4px 0 12px;
}

.heritage-track {
  display: flex;
  align-items: stretch;
  gap: var(--slide-gap);
  width: max-content;
  transform: translate3d(calc((100vw - var(--card-width))/2 - var(--slide-index,0)*(var(--card-width) + var(--slide-gap))),0,0);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

/* 100vw counts a classic scrollbar (Windows), which pushes the slider off centre; 100cqw is the section itself */
@supports (width:1cqw) {
  .heritage {
    container-type: inline-size;
  }

  .heritage-panels {
    --card-width: min(1100px,calc(100cqw - 160px));
    width: 100cqw;
    margin-left: calc(50% - 50cqw);
  }

  .heritage-track {
    transform: translate3d(calc((100cqw - var(--card-width))/2 - var(--slide-index,0)*(var(--card-width) + var(--slide-gap))),0,0);
  }
}

.heritage-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px,.78fr) minmax(0,1.35fr);
  gap: clamp(48px,6vw,92px);
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  min-height: 440px;
  padding: clamp(46px,5vw,72px);
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: var(--color-card);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
  opacity: .38;
  transform: scale(.975);
  transition: opacity .65s ease,transform 1.2s cubic-bezier(.22,1,.36,1);
}

.heritage-panel>* {
  position: relative;
  z-index: 1;
}

.heritage-panel.is-active {
  opacity: 1;
  transform: scale(1);
}

.heritage-panel:not(.is-active) {
  cursor: pointer;
}

.heritage-panel[hidden] {
  display: none;
}

.heritage-panel-theme {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.heritage-big-year {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.heritage-panel-theme h3 {
  font-size: clamp(27px,2.65vw,38px);
  line-height: 1.35;
  letter-spacing: -.045em;
  max-width: 360px;
  text-wrap: balance;
}

.heritage-panel .heritage-events {
  gap: 24px;
  padding: 2px 0 0;
}

.heritage-panel .heritage-events li {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.heritage-panel .heritage-events li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* A year with a single event (2021) stacks into one centred column instead of splitting the card in two.
   The extra bottom padding lifts the block slightly above the card's true centre. */
.heritage-panel--center {
  grid-template-columns: minmax(0,1fr);
  align-content: center;
  gap: 44px;
  padding-bottom: calc(clamp(46px,5vw,72px) + 24px);
  text-align: center;
}

.heritage-panel--center .heritage-big-year {
  font-size: clamp(20px,2.3vw,26px);
  margin-bottom: 4px;
}

.heritage-panel--center .heritage-panel-theme h3 {
  max-width: none;
  font-size: clamp(36px,4.65vw,58px);
}

.heritage-panel--center .heritage-events h4 {
  margin-bottom: 0;
  font-size: clamp(21px,2.42vw,27px);
}

.heritage-panel--center .heritage-events p {
  font-size: clamp(17px,2vw,22px);
}

.heritage-mobile-accordion {
  display: none;
}

@media (max-width:760px) {
  .heritage {
    overflow: visible;
    padding: 64px 0;
  }

  .heritage-title {
    margin-bottom: 40px;
    font-size: 30px;
  }

  .heritage-tabs {
    display: none;
  }

  .heritage-panels {
    display: none;
  }

  .heritage-mobile-accordion {
    display: block;
  }

  .heritage-mobile-item {
    border-top: 1px solid var(--color-divider);
  }

  .heritage-mobile-item:first-child {
    border-top: 0;
  }

  .heritage-mobile-item summary {
    position: relative;
    display: block;
    padding: 25px 42px 25px 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }

  .heritage-mobile-item summary::-webkit-details-marker {
    display: none;
  }

  .heritage-mobile-year {
    display: block;
    margin: 0 0 11px;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 550;
    color: #81818a;
    letter-spacing: -.02em;
    transition: color .3s ease;
  }

  .heritage-mobile-title {
    display: block;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 650;
    letter-spacing: -.035em;
    color: #f2f2f4;
  }

  .heritage-mobile-chevron {
    position: absolute;
    right: 5px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid #8e8e96;
    border-bottom: 2px solid #8e8e96;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .3s cubic-bezier(.22,1,.36,1),border-color .2s ease;
  }

  .heritage-mobile-item.is-expanded .heritage-mobile-year {
    color: var(--color-accent);
  }

  .heritage-mobile-item.is-expanded .heritage-mobile-chevron {
    border-color: var(--color-accent);
    transform: translateY(-25%) rotate(225deg);
  }

  /* the height animation clips here, so the spacing lives on the list inside */
  .heritage-mobile-expanded {
    overflow: hidden;
  }

  .heritage-mobile-expanded .heritage-events {
    gap: 23px;
    padding: 0 0 30px;
  }

  .heritage-mobile-expanded .heritage-events h4 {
    font-size: 18px;
  }

  .heritage-mobile-expanded .heritage-events p {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* Careers */
.careers {
  padding: clamp(80px,9vw,115px) 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(460px,38vw,580px);
  display: flex;
  align-items: center;
  background: #111;
}

.careers-content {
  position: relative;
  z-index: 1;
}

.careers-title {
  font-size: var(--section-title-size);
  letter-spacing: -.045em;
  line-height: 1.3;
  max-width: 720px;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}

.careers-link {
  display: inline-block;
  background: #f1f1f4;
  color: #222;
  padding: 18px 35px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 650;
  margin-top: 38px;
}

.careers-link:hover {
  background: var(--color-accent);
  color: #222;
}

.careers-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.careers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.88) 22%,rgba(0,0,0,.48) 43%,rgba(0,0,0,.12) 68%,rgba(0,0,0,.06) 100%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width:760px) {
  .careers {
    min-height: 500px;
    padding: 72px 0;
  }

  .careers-bg {
    object-position: 58% center;
  }

  .careers::after {
    background: linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.82) 46%,rgba(0,0,0,.35) 100%);
  }

  .careers-title {
    font-size: 27px;
  }

  .careers-link {
    margin-top: 32px;
  }
}

/* Footer */
.footer-logo {
  height: clamp(34px,4.5vw,45px);
  width: auto;
  display: block;
}

.site-footer {
  padding: 48px 0 24px;
  background: #191919;
  color: #aaaab3;
}

.footer-logo path {
  fill: currentColor;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 64px;
  row-gap: 24px;
  align-items: end;
}

.footer-links-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #e2e2e6;
  line-height: 1.5;
}

.footer-company {
  font-size: 14px;
  line-height: 1.9;
  align-self: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.9;
  align-self: start;
  min-width: 240px;
}

.footer-links a {
  width: fit-content;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-company p {
  margin: 0;
  line-height: inherit;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #303034;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

@media (max-width:760px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-company {
    grid-row: 2;
  }

  .footer-links-title {
    margin-top: 8px;
  }

  .footer-links {
    min-width: 0;
  }

  .footer-bottom {
    text-align: left;
    margin-top: 28px;
    padding-top: 18px;
  }
}

/* 404 */
.not-found {
  display: grid;
  place-content: center;
  gap: 16px;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.not-found-code {
  margin: 0;
  font-size: 64px;
  font-weight: 800;
  color: var(--color-accent);
}

.not-found-title {
  margin: 0;
  font-size: 28px;
}

.not-found-description {
  margin: 0;
  opacity: 0.7;
}

.not-found-link {
  justify-self: center;
  margin-top: 8px;
  color: inherit;
}

/* Motion preferences */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Override JavaScript animation styles when reduced motion is requested. */
  [data-revealed] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .heritage-track, .heritage-panel, .heritage-indicator {
    transition: none !important;
  }

  .hero-art, .hero-canvas {
    transition: none;
  }
}

