:root {
  --burnt-sienna: #c75b12;
  --roasted-cocoa: #1e1108;
  --aged-linen: #f2e6d4;
  --parchment: #ede0cc;
  --espresso: #2a1a0c;
  --poker-red: #d94032;
  --smoke: #8c7a68;
  --goldenrod: #e8a838;
  --grid-gap: clamp(16px, 3vw, 40px);
  --nav-height: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* IntersectionObserver IntersectionObserver: animations elements slide in from the direction of the diagonal cut (if the section cuts left-to-right; (Google Fonts supplied Space Mono. */

@keyframes stripe-flare {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  background-color: var(--roasted-cocoa);
  color: var(--parchment);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.table-pattern {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--roasted-cocoa);
  background-image:
    linear-gradient(45deg, rgba(199, 91, 18, 0.08) 25%, transparent 25%, transparent 75%, rgba(199, 91, 18, 0.08) 75%),
    linear-gradient(45deg, rgba(199, 91, 18, 0.08) 25%, transparent 25%, transparent 75%, rgba(199, 91, 18, 0.08) 75%);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgba(30, 17, 8, 0.86);
  border-bottom: 2px solid var(--burnt-sienna);
  transition: border-width 250ms ease, background 250ms ease;
}

.topbar.is-scrolled {
  border-bottom-width: 4px;
  background: rgba(30, 17, 8, 0.96);
}

.brand, .nav-links a, .menu-toggle {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--parchment);
  text-decoration: none;
}

.brand {
  font-family: "Righteous", cursive;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.pip { color: rgba(199, 91, 18, 0.7); margin-right: 0.35rem; }

.nav-links { display: flex; gap: clamp(18px, 3vw, 42px); }
.nav-links a { transition: color 220ms ease; }
.nav-links a:hover { color: var(--poker-red); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--goldenrod);
  padding: 0;
}

.deck { position: relative; }

.card-section {
  position: relative;
  min-height: 100vh;
  margin-top: -60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.card-section:first-child { margin-top: 0; padding-top: var(--nav-height); }

.dark {
  background-color: var(--roasted-cocoa);
  color: var(--parchment);
}

.light {
  background-color: var(--aged-linen);
  color: var(--espresso);
}

.dark.hero-card, .dark.footer-card {
  background-image:
    linear-gradient(45deg, rgba(199, 91, 18, 0.08) 25%, transparent 25%, transparent 75%, rgba(199, 91, 18, 0.08) 75%),
    linear-gradient(45deg, rgba(199, 91, 18, 0.08) 25%, transparent 25%, transparent 75%, rgba(199, 91, 18, 0.08) 75%);
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
}

.cut-down { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12vw), 0 100%); }
.cut-up { clip-path: polygon(0 12vw, 100% 0, 100% 100%, 0 calc(100% - 12vw)); }
.cut-final { clip-path: polygon(0 12vw, 100% 0, 100% 100%, 0 100%); }

.card-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--grid-gap);
  transform: rotate(-4deg);
  position: relative;
  z-index: 2;
}

.card-grid > * { transform: rotate(4deg); }

.section-number {
  position: absolute;
  right: -0.1em;
  bottom: -0.28em;
  z-index: 0;
  font-family: "Righteous", cursive;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: currentColor;
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transform: translateY(30px);
  pointer-events: none;
}

.card-section.number-visible .section-number { opacity: 0.05; transform: none; }

.reveal {
  opacity: 0;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.card-section[data-direction="left"] .reveal { transform: rotate(4deg) translateX(-80px); }
.card-section[data-direction="right"] .reveal { transform: rotate(4deg) translateX(80px); }
.card-section.is-visible .reveal { opacity: 1; transform: rotate(4deg) translateX(0); }
.card-section.is-visible .reveal-late { transition-delay: 120ms; }

.kicker, .label {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--goldenrod);
  margin: 0 0 1rem;
}

.label span { color: rgba(199, 91, 18, 0.7); }

h1, h2 {
  font-family: "Righteous", cursive;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin: 0;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.7rem, 6.5vw, 6rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.hero-copy { grid-column: 1 / span 4; align-self: center; }
.tagline { max-width: 620px; color: var(--parchment); }

.hero-chip {
  grid-column: 5 / span 2;
  align-self: end;
  justify-self: center;
  width: clamp(150px, 20vw, 240px);
  aspect-ratio: 1;
  border: 1px solid var(--smoke);
  border-radius: 4px;
  background: var(--aged-linen);
  color: var(--espresso);
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 12px 12px 0 rgba(42, 26, 12, 0.45);
}

.hero-chip span, .hero-chip em {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--burnt-sienna);
}

.hero-chip strong { font-family: "Righteous", cursive; font-size: clamp(2rem, 4vw, 3.5rem); text-transform: uppercase; }

.statement-grid { align-items: center; }
.statement-grid .label { grid-column: 1 / span 2; }
.statement-text { grid-column: 3 / span 4; }
.statement-text p { font-size: clamp(1.35rem, 2.8vw, 2.45rem); line-height: 1.42; margin: 0 0 1.6rem; }
.statement-text .understatement { color: var(--burnt-sienna); font-weight: 700; }

.ornament {
  position: relative;
  z-index: 8;
  height: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ornament svg {
  width: 200px;
  height: auto;
  transform: translateY(-30px);
  fill: rgba(199, 91, 18, 0.5);
}

.showcase-grid { align-items: center; padding: 80px 0; }
.showcase-copy { grid-column: 1 / span 3; grid-row: 1; }
.photo-card { position: relative; }
.photo-card p { font-size: clamp(0.92rem, 1.2vw, 1.05rem); margin: 0.8rem 0 0; }
.photo-one { grid-column: 4 / span 3; grid-row: 1; }
.photo-two { grid-column: 2 / span 3; grid-row: 2; }
.photo-three { grid-column: 5 / span 2; grid-row: 2; }

.photo-frame {
  min-height: clamp(170px, 24vw, 310px);
  border: 1px solid var(--smoke);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 16px;
  overflow: hidden;
  filter: sepia(15%) saturate(0.85) contrast(1.1) brightness(0.95);
  transition: filter 400ms ease, transform 400ms ease;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 28% 24%, rgba(242, 230, 212, 0.38), transparent 16%),
    linear-gradient(135deg, transparent 0 44%, rgba(30, 17, 8, 0.18) 44% 46%, transparent 46%),
    repeating-linear-gradient(45deg, rgba(232, 168, 56, 0.14) 0 1px, transparent 1px 12px);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='70' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
}

.photo-frame:hover { filter: sepia(10%) saturate(1.1) contrast(1.08) brightness(1); transform: translateY(-4px); }
.photo-frame span { position: relative; z-index: 1; font-family: "Space Mono", monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.photo-frame.amber { background: linear-gradient(135deg, #c75b12, #e8a838); color: #1e1108; }
.photo-frame.red { background: linear-gradient(135deg, #d94032, #2a1a0c); color: #f2e6d4; }
.photo-frame.linen { background: linear-gradient(135deg, #f2e6d4, #8c7a68); color: #2a1a0c; }

.method-heading { grid-column: 1 / span 3; }
.steps {
  grid-column: 4 / span 3;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.steps li {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: 18px;
  border-top: 1px solid var(--smoke);
  padding-top: 18px;
}

.steps span {
  grid-row: span 2;
  font-family: "Righteous", cursive;
  font-size: 2.6rem;
  color: var(--burnt-sienna);
}

.steps strong {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--poker-red);
}

.steps p { margin: 0.25rem 0 0; }

.footer-grid { align-content: center; }
.footer-grid > * { grid-column: 2 / span 4; }
.contact-link {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--goldenrod);
  text-decoration-color: var(--burnt-sienna);
  text-underline-offset: 8px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  margin-top: 2rem;
}

.accent-stripe {
  position: relative;
  z-index: 10;
  height: 4px;
  width: calc(var(--stripe-progress, 0) * 100%);
  margin: -2px auto -2px 0;
  background-color: var(--burnt-sienna);
  background-image: repeating-linear-gradient(45deg, rgba(232, 168, 56, 0.22) 0 1px, transparent 1px 12px);
  transition: width 80ms linear;
  animation: stripe-flare 900ms linear infinite;
}

.stripe-two, .stripe-four { margin-left: auto; margin-right: 0; background-color: var(--aged-linen); }

.registration {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.4;
  z-index: 3;
}

.registration::before, .registration::after {
  content: "";
  position: absolute;
  background: var(--smoke);
}
.registration::before { width: 22px; height: 1px; top: 10px; left: 0; }
.registration::after { width: 1px; height: 22px; left: 10px; top: 0; }
.top-left { top: 120px; left: 32px; }
.top-right { top: 120px; right: 32px; }
.bottom-left { bottom: 80px; left: 32px; }
.bottom-right { bottom: 80px; right: 32px; }

@media (max-width: 768px) {
  .cut-down { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%); }
  .cut-up { clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 calc(100% - 6vw)); }
  .cut-final { clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 70px 0; }
  .hero-copy, .hero-chip, .statement-grid .label, .statement-text, .showcase-copy, .photo-one, .photo-two, .photo-three, .method-heading, .steps, .footer-grid > * { grid-column: 1 / -1; grid-row: auto; }
  .hero-chip { justify-self: start; }
  .photo-three { max-width: none; }
  .steps li { grid-template-columns: 64px 1fr; }
}

@media (max-width: 480px) {
  :root { --nav-height: 66px; }
  .topbar { align-items: flex-start; padding-top: 20px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    display: grid;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(30, 17, 8, 0.97);
    border-left: 1px solid var(--burnt-sienna);
    border-bottom: 1px solid var(--burnt-sienna);
    transform: translateX(100%);
    transition: transform 260ms var(--ease);
  }
  .topbar.menu-open .nav-links { transform: none; }
  .card-grid { grid-template-columns: 1fr; transform: none; }
  .card-grid > *, .card-section[data-direction="left"] .reveal, .card-section[data-direction="right"] .reveal, .card-section.is-visible .reveal { transform: none; }
  .card-section[data-direction="left"] .reveal { opacity: 0; transform: translateX(-46px); }
  .card-section[data-direction="right"] .reveal { opacity: 0; transform: translateX(46px); }
  .card-section.is-visible .reveal { opacity: 1; transform: translateX(0); }
  .statement-text p { font-size: clamp(1.15rem, 7vw, 1.8rem); }
  .registration { display: none; }
}
