:root {
  --ink: #0d0d0b;
  --paper: #f8f6ef;
  --white: #fffefa;
  --muted: #777169;
  --line: rgba(13, 13, 11, 0.14);
  --red: #ef2b2d;
  --blue: #145eff;
  --lime: #c8ff2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(rgba(248, 246, 239, 0.86), rgba(248, 246, 239, 0.9)),
    url("assets/8n1-background-texture.jpg") center top / cover fixed,
    var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans Thai", "IBM Plex Sans Thai", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body.is-locked {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 18px clamp(18px, 4vw, 54px);
  mix-blend-mode: difference;
  color: white;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 950;
  line-height: 1;
}

.brand span {
  font-size: 1.8rem;
}

.brand small {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 13, 11, 0.82), rgba(13, 13, 11, 0.82)),
    url("assets/8n1-background-texture.jpg") center / cover,
    var(--ink);
  color: white;
}

.hero-reel {
  position: absolute;
  inset: 0;
}

.hero-reel img,
.hero-reel video {
  width: 100%;
  height: 100%;
  opacity: 0.78;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-reel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 13, 11, 0.74) 0 32%, rgba(13, 13, 11, 0.12) 64%),
    linear-gradient(0deg, rgba(13, 13, 11, 0.74), transparent 38%);
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 46%;
  z-index: 1;
  width: 1px;
  background: rgba(255, 255, 255, 0.72);
  animation: scan 5.8s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}

.count-mark {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 46px);
  z-index: 2;
  color: var(--lime);
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 950;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(980px, 100%);
  min-height: 100svh;
  padding: 120px clamp(18px, 4vw, 56px) clamp(54px, 8vw, 94px);
}

.hero-copy p,
.reel-heading p,
.contact-section p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin: 0 0 20px;
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-copy span {
  width: min(540px, 100%);
  color: white;
  font-size: clamp(1.45rem, 3.1vw, 3rem);
  font-weight: 850;
  line-height: 1;
}

.visual-index {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 0.86fr;
  grid-auto-rows: minmax(310px, 40vw);
  gap: 10px;
  padding: 10px;
  background: var(--ink);
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--white);
}

.tile-large {
  grid-column: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.tile p {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 3;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 2.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.poster-frame,
.motion-frame {
  width: 100%;
  height: 100%;
}

.tile > video,
.tile > img,
.reel-card > video,
.reel-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile > video,
.reel-card > video {
  background: var(--ink);
  object-position: center 36%;
}

.tile.has-media .motion-frame,
.tile.has-media .poster-frame,
.reel-card.has-media {
  background: var(--ink);
}

.tile.has-media::after,
.reel-card.has-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(13, 13, 11, 0.72), rgba(13, 13, 11, 0.08) 58%);
  pointer-events: none;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame::after,
.motion-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(13, 13, 11, 0.68), transparent 52%);
}

.motion-frame {
  position: relative;
  display: grid;
  place-items: center;
}

.motion-frame span {
  width: min(38vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.58);
  animation: orbit 8s linear infinite;
}

.motion-red {
  background:
    linear-gradient(135deg, rgba(239, 43, 45, 0.95), rgba(13, 13, 11, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.16) 58px 59px);
}

.motion-blue {
  background:
    linear-gradient(135deg, rgba(20, 94, 255, 0.95), rgba(13, 13, 11, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255, 255, 255, 0.12) 20px 21px);
}

.motion-lime {
  background:
    linear-gradient(135deg, rgba(200, 255, 47, 0.95), rgba(13, 13, 11, 0.88)),
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(13, 13, 11, 0.16) 26px 27px);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 8vw, 100px);
  align-items: end;
  min-height: 72svh;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 56px);
}

.manifesto p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 10rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
}

.manifesto div {
  display: grid;
  gap: 8px;
  min-width: 220px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto span {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.quiet-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 7vw, 120px);
  padding: 0 clamp(18px, 4vw, 56px) clamp(70px, 10vw, 128px);
}

.quiet-copy p {
  margin: 0;
  color: #312f2a;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 720;
  line-height: 1.2;
}

.reel-section {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(rgba(13, 13, 11, 0.9), rgba(13, 13, 11, 0.92)),
    url("assets/8n1-background-texture.jpg") center / cover,
    var(--ink);
  color: white;
}

.reel-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(26px, 5vw, 58px);
}

.reel-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reel-card {
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  min-height: clamp(300px, 44vw, 620px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(0deg, rgba(13, 13, 11, 0.7), rgba(13, 13, 11, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 44px),
    var(--red);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.reel-card:nth-child(2) {
  background:
    linear-gradient(0deg, rgba(13, 13, 11, 0.72), rgba(13, 13, 11, 0.1)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 44px),
    var(--blue);
}

.reel-card:nth-child(5) {
  background:
    linear-gradient(0deg, rgba(13, 13, 11, 0.42), rgba(13, 13, 11, 0.06)),
    url("assets/8n1-brand-deck-logo.jpg") center / cover;
}

.reel-card:hover {
  filter: contrast(1.08);
  transform: translateY(-6px);
}

.reel-card span {
  position: relative;
  z-index: 2;
  font-weight: 950;
}

.reel-card-title {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.reel-card strong {
  position: relative;
  z-index: 2;
  max-width: 8ch;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.reel-card small {
  width: min(100%, 24ch);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.reel-more {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.reel-more:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.full-bleed-band {
  overflow: hidden;
  padding: 24px 0;
  background: var(--lime);
  color: var(--ink);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee span {
  padding-right: 26px;
  font-size: clamp(2.1rem, 7vw, 7rem);
  font-weight: 950;
  line-height: 0.9;
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 8vw, 110px);
  align-items: end;
  padding: clamp(70px, 10vw, 136px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(rgba(248, 246, 239, 0.88), rgba(248, 246, 239, 0.9)),
    url("assets/8n1-background-texture.jpg") center bottom / cover,
    var(--paper);
}

.contact-section p {
  max-width: 48ch;
  color: var(--muted);
}

.contact-section h2 {
  max-width: 900px;
  margin: 0 0 clamp(42px, 5vw, 72px);
  font-size: clamp(3.2rem, 11vw, 11rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.contact-details {
  display: grid;
  gap: 8px;
  color: #312f2a;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 780;
  line-height: 1.25;
}

.contact-details a {
  width: fit-content;
}

.contact-links {
  display: grid;
  min-width: min(100%, 280px);
  border-top: 1px solid var(--line);
}

.contact-links a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.11);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateX(-24vw);
  }
  50% {
    transform: translateX(38vw);
  }
}

@keyframes orbit {
  from {
    border-radius: 50%;
    transform: rotate(0deg) scale(0.78);
  }
  50% {
    border-radius: 8%;
    transform: rotate(180deg) scale(1.05);
  }
  to {
    border-radius: 50%;
    transform: rotate(360deg) scale(0.78);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    mix-blend-mode: normal;
    background: rgba(13, 13, 11, 0.92);
  }

  .site-menu {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(13, 13, 11, 0.96);
  }

  .site-menu.is-open {
    display: grid;
  }

  .site-menu a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-toggle {
    display: block;
  }

  .visual-index,
  .reel-grid,
  .quiet-copy,
  .reel-heading,
  .contact-section,
  .manifesto {
    grid-template-columns: 1fr;
  }

  .tile-large,
  .tile-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .visual-index {
    grid-auto-rows: minmax(320px, 70vw);
  }
}

@media (max-width: 680px) {
  .brand span {
    font-size: 1.45rem;
  }

  h1 {
    font-size: clamp(4.2rem, 26vw, 7rem);
  }

  .hero-copy {
    padding-top: 100px;
  }

  .hero-copy span {
    font-size: 1.55rem;
  }

  .manifesto {
    min-height: 58svh;
  }

  .manifesto p,
  .contact-section h2 {
    font-size: clamp(3rem, 18vw, 5.6rem);
  }

  .reel-card {
    min-height: min(760px, 150vw);
  }

  .reel-card.has-media > video {
    object-fit: contain;
    object-position: center center;
  }

  .reel-card.has-media::after {
    background: linear-gradient(0deg, rgba(13, 13, 11, 0.74), rgba(13, 13, 11, 0.02) 68%);
  }

  .site-footer {
    flex-direction: column;
  }
}
