@font-face {
  font-family: Dozzen Hero Anton;
  src: url("assets/work/accord/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --editorial-gutter: clamp(24px, 4.4vw, 94px);
}

.site-header--editorial,
.hero--sculpture {
  background: var(--editorial-paper-finish);
}

.site-header--editorial {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 24px;
  padding: clamp(18px, 2.5vw, 40px) var(--editorial-gutter) 0;
  border-bottom: 0;
}

.site-header--editorial .brand { width: clamp(112px, 11.5vw, 192px); }
.site-header--editorial nav {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 0 clamp(16px, 3.1vw, 48px);
  justify-self: end;
  justify-items: start;
  margin: 0;
  font-size: 15px;
}

.site-header--editorial nav a { min-height: 32px; padding: 4px 0; }
.site-header--editorial nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero--sculpture {
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
}

.hero-sculpture-stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: clamp(31px, 3.9vw, 64px) var(--editorial-gutter) clamp(48px, 7.3vw, 116px);
}

.hero--sculpture h1 {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1 / 2 / -1;
  display: block;
  margin: 0;
  min-width: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: min(15.6cqw, 230px);
  line-height: .87;
}

.hero--sculpture h1 > span { width: fit-content; }
.hero--sculpture h1 > span:first-child { color: var(--ink); }
.hero--sculpture h1 > span:last-child {
  margin-block-start: .53em;
  margin-inline-start: auto;
}

/* Paint the texture in the inline font box so tight line spacing cannot cut the glyphs. */
.hero--sculpture h1 .hero-title-ink { display: inline; }

@supports (background-clip: text) {
  .hero--sculpture h1 > span:first-child .hero-title-ink,
  .hero--sculpture .perspective-title h2 {
    background-color: var(--ink);
    background-image: var(--dozzen-ink-lettering);
    background-size: var(--dozzen-ink-lettering-size);
    background-clip: text;
    color: transparent;
  }
  .hero--sculpture h1 > span:last-child .hero-title-ink {
    background-color: var(--blue);
    background-image: var(--dozzen-blue-texture);
    background-size: var(--dozzen-blue-texture-size);
    background-clip: text;
    color: transparent;
  }
}

.hero-sculpture {
  position: absolute;
  z-index: 1;
  inset: clamp(100px, 13.5vw, 240px) 0 auto;
  height: clamp(280px, 38vw, 640px);
  pointer-events: none;
}

.hero-sculpture canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 8px 10px #15182027);
}

.hero-sculpture-ready canvas { opacity: 1; }

.hero-sculpture-fallback {
  position: absolute;
  inset: 50% 0 auto;
  height: min(100%, 53.33vw);
  transform: translateY(-50%);
  background: url("assets/dozzen-chrome-ribbon.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 10px #15182027);
}

.hero-sculpture-ready .hero-sculpture-fallback { display: none; }

.hero--sculpture .hero-intro {
  position: relative;
  z-index: 3;
  grid-area: 1 / 9 / 2 / -1;
  justify-self: end;
  align-self: start;
  gap: 16px;
  padding: clamp(4px, 1vw, 18px) 0 0;
}

.hero--sculpture .hero-statement {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(16px, 1.85vw, 27px);
  line-height: 1.2;
}

.hero--sculpture .hero-intro > .arrow-link {
  flex: none;
  min-height: 45px;
  padding: 12px 15px;
  font-size: 15px;
}

.hero--sculpture .perspective {
  position: relative;
  z-index: 2;
  grid-area: 2 / 1 / 3 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  margin-block-start: clamp(82px, 11vw, 174px);
  padding: 0;
}

.hero--sculpture .perspective-title { grid-area: 1 / 7 / 2 / -1; }
.hero--sculpture .perspective-title .section-label { margin: 0 0 clamp(12px, 1.7vw, 24px); }
.hero--sculpture .perspective-title h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 120px);
  line-height: .97;
}

.hero--sculpture .perspective-copy {
  grid-area: 1 / 1 / 2 / 6;
  padding: clamp(45px, 7.5vw, 126px) 0 0;
  gap: 20px;
  justify-content: flex-start;
}

.hero--sculpture .perspective-copy > p {
  max-width: 39ch;
  font-size: clamp(17px, 1.85vw, 27px);
  line-height: 1.37;
}

@media (max-width: 700px) {
  :root { --editorial-gutter: 20px; }
  .site-header--editorial {
    grid-template-columns: minmax(74px, .56fr) 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
  }
  .site-header--editorial .brand { width: min(100%, 124px); }
  .site-header--editorial nav { font-size: 13px; gap: 0 12px; }
  .site-header--editorial nav a { min-height: 30px; white-space: nowrap; }
  .hero-sculpture-stage { display: block; padding-top: 27px; }
  .hero--sculpture h1 { font-size: min(16.4cqw, 106px); }
  .hero--sculpture h1 > span:last-child { margin-block-start: clamp(78px, 24vw, 146px); }
  .hero-sculpture { top: clamp(70px, 22vw, 145px); height: clamp(145px, 46vw, 310px); }
  .hero--sculpture .hero-intro { margin-block-start: clamp(36px, 11vw, 52px); padding: 0; }
  .hero--sculpture .hero-statement { max-width: 28ch; font-size: clamp(17px, 4.6vw, 24px); }
  .hero--sculpture .perspective { display: block; margin-block-start: 68px; }
  .hero--sculpture .perspective-title h2 { font-size: clamp(43px, 11.6vw, 74px); }
  .hero--sculpture .perspective-copy { padding-block-start: 18px; }
}

@media (forced-colors: active) {
  .site-header--editorial, .hero--sculpture { background: Canvas; }
  .hero--sculpture h1 > span .hero-title-ink,
  .hero--sculpture .perspective-title h2 { background: none; color: CanvasText; }
  .hero-sculpture { display: none; }
}
