:root {
  color-scheme: dark;
  --black: #120d0a;
  --ink: #231710;
  --paper: #f5e9c8;
  --gold: #d9ad44;
  --copper: #9f5630;
  --verdigris: #2e7064;
  --plum: #642235;
  --blue: #244b5e;
  --shadow: rgba(13, 8, 5, .64);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: #fff9e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: none;
}

.cutout-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(24px, 5vw, 76px);
  background:
    radial-gradient(circle at 72% 25%, rgba(217, 173, 68, .25), transparent 23%),
    radial-gradient(circle at 17% 72%, rgba(46, 112, 100, .2), transparent 28%),
    linear-gradient(125deg, #160f0a, #37210e 46%, #100c09);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glint-shift: 0px;
  --glint-strength: .18;
}

.cutout-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 42%, transparent 0 28%, rgba(20, 12, 7, .18) 56%, rgba(12, 8, 5, .72) 100%),
    linear-gradient(90deg, rgba(15, 9, 5, .62), transparent 25% 70%, rgba(15, 9, 5, .48)),
    linear-gradient(0deg, rgba(15, 9, 5, .72), transparent 34% 78%, rgba(255, 225, 135, .12));
}

.cutout-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 98;
  pointer-events: none;
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(255, 234, 153, .32) 0 1px, transparent 1.4px),
    linear-gradient(rgba(255, 224, 135, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 224, 135, .1) 1px, transparent 1px);
  background-size: 18px 18px, 9px 9px, 9px 9px;
  mix-blend-mode: overlay;
}

html.perf-lite .cutout-hero::after {
  display: none;
}

.cutout-hero__stage {
  position: absolute;
  inset: -8vh -10vw;
  z-index: 1;
  perspective: 1300px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
}

html.perf-lite .cutout-hero__stage {
  perspective: none;
  transform-style: flat;
  will-change: transform;
}

html.perf-tunnel .cutout-hero__stage {
  transform: none;
  will-change: auto;
}

.cutout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  will-change: transform;
  transform-style: preserve-3d;
}

html.perf-lite .cutout-layer {
  transform-style: flat;
  will-change: auto;
}

.cutout-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    blur(var(--depth-blur, 0px))
    drop-shadow(
      var(--shadow-x, 0px)
      var(--shadow-y, 0px)
      var(--shadow-blur, 0px)
      rgba(13, 8, 5, var(--shadow-alpha, 0))
    );
}

.cutout-layer--background {
  z-index: 2;
}

.cutout-layer--background img {
  filter: saturate(1.05) contrast(1.04);
}

.cutout-layer--atmosphere,
.cutout-layer--back-decoration,
.cutout-layer--particles {
  mix-blend-mode: screen;
}

html.perf-lite .cutout-layer img {
  filter: none;
}

html.perf-lite .cutout-layer--background img {
  filter: none;
}

html.perf-lite .cutout-layer--atmosphere,
html.perf-lite .cutout-layer--back-decoration,
html.perf-lite .cutout-layer--particles {
  mix-blend-mode: normal;
}

.cutout-layer__glint {
  display: none;
}

.cutout-hero__content {
  position: relative;
  z-index: 82;
  width: min(820px, 100%);
  padding-top: 7vh;
  color: #fff9e6;
  text-shadow:
    0 2px 16px rgba(20, 11, 6, .72),
    0 26px 52px rgba(20, 11, 6, .44);
}

.cutout-hero__eyebrow {
  margin: 0 0 18px;
  color: #f1c864;
  font: 800 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cutout-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 9.5vw, 140px);
  font-weight: 500;
  line-height: .86;
  letter-spacing: 0;
}

.cutout-hero__content p:not(.cutout-hero__eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 249, 230, .84);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.52;
}

.cutout-hero__notes {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(20px, 5vw, 64px);
  z-index: 96;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 40px));
  margin: 0;
  padding: 16px;
  border-left: 1px solid rgba(245, 210, 122, .56);
  background: linear-gradient(90deg, rgba(24, 15, 8, .54), rgba(24, 15, 8, .2));
  backdrop-filter: blur(12px);
}

.cutout-hero__notes p {
  margin: 0;
  color: rgba(255, 249, 230, .78);
  font-size: 12px;
  line-height: 1.35;
}

.cutout-hero__notes b {
  color: #f5d27a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

html.perf-lite .cutout-hero__notes {
  backdrop-filter: none;
}

.cutout-panel {
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(36px, 8vw, 104px);
  background:
    linear-gradient(135deg, rgba(46, 112, 100, .18), transparent 34%),
    linear-gradient(90deg, rgba(159, 86, 48, .18), transparent 72%),
    var(--paper);
  color: var(--ink);
}

.cutout-panel__eyebrow {
  margin: 0;
  color: #825517;
  font: 800 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cutout-panel h2 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: 0;
}

.cutout-panel p:not(.cutout-panel__eyebrow) {
  max-width: 780px;
  margin: 0;
  color: rgba(35, 23, 16, .72);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .cutout-hero {
    min-height: 100svh;
    align-items: end;
    padding: 22px;
  }

  .cutout-hero__stage {
    inset: -3vh -45vw;
  }

  html.perf-lite .cutout-hero__stage {
    inset: -3vh -28vw;
  }

  .cutout-hero__content {
    padding-top: 0;
    padding-bottom: 7vh;
  }

  .cutout-hero h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .cutout-hero__content p:not(.cutout-hero__eyebrow) {
    max-width: 25rem;
  }

  .cutout-hero__notes {
    display: none;
  }
}

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

  .cutout-hero__stage {
    transform: none;
    will-change: auto;
  }

  .cutout-layer {
    transform: translate3d(0, 0, 0) scale(var(--static-scale, 1));
    will-change: auto;
  }

}

html.force-motion {
  scroll-behavior: smooth;
}

html.force-motion .cutout-hero__stage {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  will-change: transform;
}

html.force-motion .cutout-layer {
  will-change: transform;
}

html.perf-tunnel.force-motion .cutout-hero__stage {
  transform: none;
  will-change: auto;
}

html.perf-tunnel.force-motion .cutout-layer {
  will-change: auto;
}
