@font-face {
  font-family: Poppins;
  src: url("assets/poppins-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #f2541b;
  --text: #fffccc;
  --background: #140100;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100svh;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Poppins, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  text-transform: uppercase;
}

main {
  width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

a svg {
  flex-shrink: 0;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

/* HEADER */

header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 16px;
  background: transparent;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0;
  word-spacing: 0.12em;
  white-space: nowrap;
}

.site-logo {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
  transform: none;
}

.brand .brand-name {
  margin: 0;
  color: var(--text);
  font-size: 11px;
}

.brand-name sup {
  margin-left: 3px;
  color: var(--accent);
  font-size: 7px;
}

.header-note {
  display: none;
}

header button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 8px;
  letter-spacing: 0.06em;
}

header button svg {
  margin-left: 5px;
  vertical-align: middle;
  color: var(--accent);
}

/* FULL-SCREEN HERO */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding: 100px 22px 95px;
}

/* MOVING BACKGROUND TYPOGRAPHY */

.type-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  opacity: 1;
  perspective: 1000px;
  user-select: none;
  pointer-events: none;
}

.type-row {
  width: max-content;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
  line-height: 1.05;
  will-change: transform;
  backface-visibility: hidden;
}

.ghost {
  font-size: 100px;
  color: #fffccc32;
  transform: translateX(2vw);
}

.identity {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 75px;
  transform: translateX(-1vw);
}

.accent {
  color: var(--accent);
}

.secondary {
  font-size: 62px;
  color: #fffccc75;
  transform: translateX(-4vw);
}

.detail {
  font-size: 48px;
  transform: translateX(2vw);
}

.bright {
  color: #fffccc80;
}

.new-topics {
  font-size: 44px;
  color: #fffccc90;
}

.muted {
  color: #fffccc50;
}

.small {
  margin: 10px 0 0 2vw;
  font-size: 17px;
  letter-spacing: 0;
  color: #fffccc60;
  line-height: 1.3;
}

/* Grayscale dither blended over the moving text. */
.dither-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.dither-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  mix-blend-mode: normal;
}

.dither-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dither-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* PLAIN CREAM PANEL */

.entry-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: 23px;
  background: var(--text);
  color: var(--background);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: arrive 0.6s ease both;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #14010099;
  font-size: 7px;
  letter-spacing: 0.07em;
  line-height: 1.6;
}

.panel-kicker {
  margin: 26px 0 14px;
  color: #140100aa;
  font-size: 9px;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0;
  word-spacing: 0.04em;
  line-height: 1.3;
}

h1 strong {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: clamp(36px, 11vw, 51px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 14px 0 23px;
  color: var(--background);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.025em;
  line-height: 1.7;
}

.panel-bottom {
  margin-bottom: 20px;
  padding-top: 13px;
  border-top: 1px solid #14010035;
  font-size: 7px;
}

.story-copy {
  margin: 0 0 24px;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0;
  word-spacing: normal;
  overflow-wrap: break-word;
}

.entry-panel .story-copy {
  color: var(--background);
}

/* BUTTONS AND LINKS */

.story-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.read-more,
.contact,
.story-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

.read-more {
  flex: 1;
  background: var(--text);
  color: var(--background);
}

.contact {
  flex: 1;
  border: 1px solid #fffccc50;
}

.story-link {
  margin-top: 3px;
  padding: 15px 0 0;
  border-top: 1px solid #fffccc20;
  color: var(--accent);
}

.entry-panel .read-more {
  background: var(--background);
  color: var(--text);
}

.entry-panel .contact {
  border-color: #14010060;
  color: var(--background);
}

.entry-panel .story-link {
  border-top-color: #14010035;
  color: #c83a09;
}

.read-more:hover {
  background: var(--accent);
}

.contact:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.story-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ALTERNATE VIEW */

.minimal-content {
  display: none;
}

.minimal .hero {
  display: block;
  min-height: 100svh;
  padding: 110px 6% 100px;
}

.minimal .type-field,
.minimal .dither-layer,
.minimal .entry-panel {
  display: none;
}

.minimal .minimal-content {
  display: block;
  max-width: 1050px;
  margin: auto;
}

.minimal header {
  background: var(--background);
}

.minimal-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.minimal h2 {
  margin: 35px 0 24px;
  font-size: clamp(32px, 8vw, 100px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.minimal h2 span {
  color: var(--accent);
}

.minimal-content > p:not(.minimal-label):not(.story-copy) {
  font-size: clamp(12px, 1.8vw, 22px);
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.minimal ul {
  list-style: none;
  padding: 26px 0 0;
  margin: 40px 0;
  border-top: 1px solid #fffccc30;
  font-size: clamp(18px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.minimal .story-copy {
  max-width: 700px;
  color: #fffcccd9;
  font-size: 15px;
  line-height: 1.85;
}

.minimal .story-actions {
  max-width: 410px;
}

/* FOOTER */

footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 18px 16px;
  background: transparent;
  color: #fffccc80;
  font-size: 6px;
  letter-spacing: 0.04em;
}

.gesture {
  max-width: 100px;
  color: var(--text);
  text-align: center;
}

.copyright {
  flex-basis: 100%;
  padding-top: 8px;
  text-align: center;
  font-size: 7px;
  letter-spacing: 0.07em;
  line-height: 1.7;
}

/* PANEL ENTRANCE */

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET AND DESKTOP */

@media (min-width: 600px) {
  header,
  footer {
    padding: 20px 26px;
  }

  .header-note {
    display: block;
    color: #fffccc70;
    font-size: 7px;
  }

  .gesture {
    max-width: none;
  }

  .copyright {
    flex-basis: auto;
    padding-top: 0;
    text-align: right;
  }

  .hero {
    padding: 100px 30px 90px;
  }

  .entry-panel {
    padding: 30px;
  }

  .panel-kicker {
    margin-top: 28px;
  }

  h1 strong {
    font-size: 58px;
  }

  .story-copy {
    font-size: 14px;
  }

  .ghost {
    font-size: clamp(110px, 12vw, 230px);
  }

  .identity {
    font-size: clamp(85px, 8vw, 160px);
  }

  .secondary {
    font-size: clamp(65px, 6.5vw, 130px);
  }

  .detail {
    font-size: clamp(48px, 4.7vw, 95px);
  }

  .new-topics {
    font-size: clamp(45px, 4.2vw, 85px);
  }

  .small {
    font-size: clamp(17px, 1.4vw, 25px);
  }

  .minimal .hero {
    padding: 130px 8% 100px;
  }

  .minimal h2 {
    margin-top: 45px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .entry-panel {
    animation: none;
  }

  .type-row {
    will-change: auto;
  }
}

