:root {
  --sky: #5b95d0;
  --sky-light: #8fb9e3;
  --sky-deep: #2f6aa8;
  --ginger: #d9893b;
  --ginger-light: #f0b56d;
  --tie-red: #c8252c;
  --navy: #1c2a4a;
  --cream: #fbf4e6;
  --ink: #16161a;

  --font-display: "Archivo Black", Impact, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --houndstooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M0 0h8v8H0zM8 8l8-8v4l-4 4h4v4l-4 4H8zM0 8l8 8H4l-4-4z' fill='%2316161a'/%3E%3C/svg%3E");
  --gingham:
    repeating-linear-gradient(0deg, rgba(47, 106, 168, .35) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgba(47, 106, 168, .35) 0 10px, transparent 10px 20px);
  --tie:
    repeating-linear-gradient(135deg, var(--tie-red) 0 14px, #fff 14px 17px, var(--navy) 17px 21px, #fff 21px 24px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--sky);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  color: #fff;
  background: var(--tie-red);
  padding: .95rem 1.6rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ghost {
  background: var(--cream);
  color: var(--ink);
}

.btn-small {
  font-size: .8rem;
  padding: .6rem 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-big {
  font-size: clamp(1rem, 3vw, 1.4rem);
  padding: 1.2rem 2.4rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 244, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: var(--tie-red);
  transition: width .2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Shared ---------- */
section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--navy);
  margin-bottom: .8rem;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

h2 em {
  text-transform: none;
  font-weight: 400;
  color: var(--tie-red);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 70px);
  max-width: 1300px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--cream);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: .85;
  color: var(--cream);
  text-shadow: 6px 6px 0 var(--ink);
  -webkit-text-stroke: 3px var(--ink);
  letter-spacing: -.02em;
}

.hero h1 span {
  color: var(--ginger-light);
}

.ticker {
  display: inline-block;
  margin: 1.4rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--ink);
  color: var(--ginger-light);
  padding: .2rem 1rem;
  transform: rotate(-2deg);
}

.lede {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.lede em {
  font-size: 1.15em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 480px);
}

.frame {
  background: var(--cream);
  padding: 14px 14px 0;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

.frame img {
  border: 2px solid var(--ink);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.frame-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: .8rem;
  padding: .8rem .2rem;
  letter-spacing: .08em;
}

.stamp {
  position: absolute;
  top: -22px;
  right: -18px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  color: var(--tie-red);
  border: 4px solid var(--tie-red);
  border-radius: 8px;
  padding: .5rem .8rem;
  background: rgba(251, 244, 230, .9);
  transform: rotate(14deg);
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-12px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--tie);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: .3rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: .7rem 0;
  background: var(--ink);
  animation: scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  white-space: nowrap;
}

.marquee-track span:nth-child(even) {
  color: var(--tie-red);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Story ---------- */
.story {
  background-color: var(--cream);
  background-image: var(--gingham);
}

.story .section-head {
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 2rem 1.5rem;
  box-shadow: 8px 8px 0 var(--ink);
}

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.chapter {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 2.4rem 1.8rem 1.8rem;
  box-shadow: 6px 6px 0 var(--ink);
}

.chapter-no {
  position: absolute;
  top: -20px;
  left: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--sky);
  color: var(--cream);
  border: 3px solid var(--ink);
  padding: .1rem .8rem;
}

.chapter h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: .8rem;
}

.chapter p {
  font-size: .95rem;
}

.chapter.highlight {
  background: var(--ginger-light);
}

.chapter.highlight .chapter-no {
  background: var(--tie-red);
}

/* ---------- Quote ---------- */
.quote {
  text-align: center;
  background-color: var(--cream);
  background-image: var(--houndstooth);
  background-size: 24px 24px;
}

.quote blockquote {
  display: inline-block;
  max-width: 900px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.15;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 10px 10px 0 var(--tie-red);
}

.quote blockquote span {
  color: var(--tie-red);
  font-style: italic;
}

.quote cite {
  display: block;
  margin: 1.8rem auto 0;
  width: fit-content;
  font-style: normal;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  padding: .4rem 1rem;
}

/* ---------- Employee file ---------- */
.file {
  background: var(--sky);
}

.dossier {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  background: #f3e3bf;
  border: 3px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 12px 12px 0 var(--ink);
  position: relative;
}

.dossier::before {
  content: "CONFIDENTIAL";
  position: absolute;
  top: -18px;
  left: 2rem;
  font-family: var(--font-display);
  background: var(--tie-red);
  color: var(--cream);
  border: 3px solid var(--ink);
  padding: .1rem .9rem;
  letter-spacing: .1em;
}

.dossier-photo {
  position: relative;
  align-self: start;
}

.dossier-photo img {
  border: 3px solid var(--ink);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  filter: sepia(.15);
}

.approved {
  position: absolute;
  bottom: 14px;
  right: -14px;
  font-family: var(--font-display);
  color: #1e7a3a;
  border: 4px solid #1e7a3a;
  border-radius: 6px;
  padding: .2rem .7rem;
  background: rgba(243, 227, 191, .85);
  transform: rotate(-12deg);
  font-size: 1.2rem;
}

.dossier-data {
  display: grid;
  gap: 0;
}

.dossier-data div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 2px dashed rgba(22, 22, 26, .35);
}

.dossier-data div:last-child {
  border-bottom: none;
}

.dossier-data dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--navy);
  padding-top: .2rem;
}

.dossier-data dd {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.25;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
}

.stat {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.6rem 1rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--tie-red);
}

.stat-label {
  margin-top: .5rem;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
}

/* ---------- How to buy ---------- */
.buy {
  background: var(--ginger);
  border-top: 3px solid var(--ink);
}

.buy .eyebrow {
  color: var(--ink);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.8rem 1.5rem;
}

.step-no {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--sky);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.step p {
  font-size: .9rem;
}

.buy-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 4rem clamp(1rem, 5vw, 4rem) 2.5rem;
  border-top: 8px solid transparent;
  border-image: var(--tie) 8;
}

.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  margin: 0 auto 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 2rem;
}

.footer-name span {
  color: var(--ginger-light);
}

.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sky-light);
  margin-bottom: 2rem;
}

.disclaimer {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: .78rem;
  opacity: .65;
}

.copy {
  font-size: .75rem;
  opacity: .5;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-text {
    order: 2;
  }

  .hero-portrait {
    order: 1;
    width: min(100%, 360px);
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .dossier {
    grid-template-columns: 1fr;
  }

  .dossier-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dossier-data div {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .stamp {
    right: -6px;
    font-size: .85rem;
  }

  .hero h1 {
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 4px 4px 0 var(--ink);
  }

  .chapters {
    grid-template-columns: 1fr;
  }
}
