/* ============================================================
   DirtyLens — Under Construction
   Paper-white matrix, editorial poster layout.
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Grotesk";
  src: url("assets/fonts/grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Grotesk";
  src: url("assets/fonts/grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "SerifIt";
  src: url("assets/fonts/serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SerifIt";
  src: url("assets/fonts/serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f5f0;
  --ink: #121210;
  --ink-soft: #5d5a52;
  --line: rgba(18, 18, 16, 0.15);
  --line-soft: rgba(18, 18, 16, 0.08);
  --g1: #ffc21a;
  --g2: #ff7a00;
  --g3: #ff2e6a;
  --g4: #b02be0;
  --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 30%, var(--g3) 64%, var(--g4) 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 3.2vw, 56px);
  --logo-h: clamp(86px, 15.36vh, 166px);
  --logo-pad: clamp(18px, 2.4vh, 34px);
  --media-shift: 50px;
  --mx: 50%;
  --my: 42%;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--g3); color: #fff; }

a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--g3);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- atmosphere ---------- */

.matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 620px at var(--mx) var(--my), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 72%),
    radial-gradient(1100px 760px at 12% 4%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 700px at 96% 96%, rgba(255, 226, 186, 0.22), rgba(255, 255, 255, 0) 58%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  height: calc(var(--logo-h) + var(--logo-pad));
  padding: 0 var(--pad);
  animation: fade 0.9s var(--ease) both;
}

.brand {
  justify-self: start;
  display: block;
  line-height: 0;
  transition: transform 0.4s var(--ease);
}
.brand picture { display: block; line-height: 0; }
.brand:hover { transform: translateY(-2px) rotate(-0.3deg); }
.brand img {
  display: block;
  height: var(--logo-h);
  width: auto;
  filter: drop-shadow(0 9px 18px rgba(18, 18, 16, 0.1));
}

.lang {
  justify-self: end;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  height: 36px;
  width: 144px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(6px);
}
.lang-ink {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.45s var(--ease);
}
.lang button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: color 0.3s ease;
}
.lang button:hover { color: var(--g3); }
.lang button.is-active,
.lang button.is-active:hover { color: var(--paper); }

/* ---------- stage ---------- */

.stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(14px, 1.75vw, 26px);
  padding-left: var(--pad);
  padding-right: 0;
  min-width: 0;
  min-height: 0;
}

.statement {
  position: relative;
  grid-column: 1 / 8;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(12px, 2vh, 28px) 0;
  animation: fadeUp 1s 0.1s var(--ease) both;
}

.headline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  font-size: min(9.15vw, 15.4vh);
  line-height: 0.79;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 100%;
}
.line { display: block; white-space: nowrap; }
.line-a { position: relative; z-index: 2; }

.line-b {
  position: relative;
  padding-left: 0.2em;
  z-index: 1;
}
.ghost,
.clip {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.ghost {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(18, 18, 16, 0.3);
  pointer-events: none;
}
.clip {
  background-image: url("assets/hero.jpg");
  background-repeat: no-repeat;
  background-size: 300% auto;
  background-position: 62% 70%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.03em;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .clip { color: var(--ink); -webkit-text-fill-color: var(--ink); background: none; }
  .ghost { display: none; }
}

/* ---------- build status ---------- */

.build {
  grid-column: 1 / 8;
  grid-row: 2;
  align-self: end;
  display: grid;
  margin-right: var(--media-shift);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px clamp(20px, 3vw, 46px);
  padding-top: 12px;
  margin-bottom: clamp(14px, 2.2vh, 24px);
  margin-right: var(--media-shift);
  animation: fadeUp 0.9s 0.24s var(--ease) both;
}
.build-head {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.build-pct {
  font-family: "Anton", sans-serif;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.1;
  padding-top: 2px;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.build-bar {
  grid-column: 1 / 3;
  grid-row: 2;
  position: relative;
  height: 4px;
  background: var(--line-soft);
  margin-top: 8px;
  overflow: hidden;
}
.build-bar i {
  position: absolute;
  inset: 0 32% 0 0;
  background: var(--grad);
  animation: grow 1.6s 0.7s var(--ease) both;
}
.build-bar::after {
  content: "";
  position: absolute;
  top: -2px; bottom: -2px;
  left: 68%;
  width: 1px;
  background: var(--ink);
}
.build-note {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30ch;
}
.build-stages {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.build-stages li { display: inline-flex; align-items: center; gap: 5px; }
.build-stages i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
}
.build-stages .done i { background: var(--ink); }
.build-stages .active { color: var(--ink); }
.build-stages .active i {
  background: var(--g3);
  box-shadow: 0 0 0 3px rgba(255, 46, 106, 0.14);
  animation: ping2 2.2s ease-out infinite;
}

/* ---------- media panel ---------- */

.media {
  position: relative;
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  margin-left: calc(clamp(8px, 0.9vw, 16px) - var(--media-shift));
  overflow: hidden;
  min-height: 340px;
  background: transparent;
  animation: mediaIn 1.25s 0.15s var(--ease) both;
}
.photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 5%, #000 14%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 5%, #000 14%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 100%);
  mask-composite: intersect;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 26% 30%;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.03);
  animation: drift 26s ease-in-out infinite alternate;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.22) 0%, rgba(247, 245, 240, 0) 18%, rgba(18, 18, 16, 0) 58%, rgba(18, 18, 16, 0.28) 100%),
    linear-gradient(90deg, rgba(247, 245, 240, 0.25), rgba(247, 245, 240, 0) 22%);
  pointer-events: none;
}

.media-tag {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  background: rgba(18, 18, 16, 0.86);
  color: #fff;
  padding: 12px 5px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.tape {
  position: absolute;
  z-index: 5;
  top: 57%;
  left: -8%;
  width: 116%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 0;
  transform: rotate(-6deg);
  background: var(--grad);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18, 18, 16, 0.22);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}
.tape b { font-size: 10px; opacity: 0.65; }

.soon {
  position: absolute;
  z-index: 6;
  left: clamp(12px, 1.2vw, 18px);
  bottom: clamp(14px, 2.2vh, 24px);
  min-width: 186px;
  padding: 11px 13px 12px;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(18, 18, 16, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  box-shadow: 0 18px 44px rgba(18, 18, 16, 0.16);
}
.soon-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.soon-kicker b {
  font-size: 9px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.soon-kicker em { font-style: normal; }
.soon strong {
  display: block;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.soon-launch {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  background: var(--paper);
}
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  height: clamp(38px, 5vh, 48px);
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marquee 204s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after {
  content: "✦";
  font-size: 11px;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px var(--pad) 11px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- reveal states ---------- */

.line-b .clip { animation: wipe 1.15s 0.55s var(--ease) both; }
.line-b .ghost { animation: fade 1s 0.4s ease both; }

body.is-switching .build-note,
body.is-switching .soon strong,
body.is-switching .marquee-track { animation: swap 0.4s ease both; }

/* ---------- keyframes ---------- */

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mediaIn {
  from { opacity: 0; clip-path: inset(10% 0 10% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes ping2 {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 106, 0.32); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(255, 46, 106, 0); }
}
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swap {
  from { opacity: 0.25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  body { overflow-y: auto; }
  .topbar {
    --logo-h: 106px;
    --logo-pad: 24px;
    padding: 0 20px;
    grid-template-columns: 1fr auto;
  }

  .stage {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }
  .statement {
    order: 1;
    padding: 18px 0 0;
    align-self: stretch;
  }
  .headline { font-size: min(13vw, 110px); }

  .media {
    order: 2;
    margin: 18px 0 0;
    height: clamp(300px, 54vh, 520px);
    min-height: 0;
  }
  .build {
    order: 3;
    align-self: stretch;
    margin: 24px 0 0;
    padding-bottom: 22px;
  }
  .build-note { max-width: 42ch; }

  .soon { min-width: 170px; }
  .tape { top: 62%; }
}

@media (max-width: 620px) {
  .topbar {
    --logo-h: 74px;
    --logo-pad: 20px;
    padding: 0 14px;
    gap: 8px;
  }
  .lang { width: 104px; height: 31px; }
  .lang button { font-size: 8.5px; }

  .statement { padding-top: 14px; }
  .headline { font-size: 15.2vw; line-height: 0.82; }
  .line-b { padding-left: 0.12em; }

  .media { height: 50vh; min-height: 280px; margin-top: 16px; }
  .photo img { object-position: 28% 26%; }
  .media-tag { display: none; }
  .soon { left: 10px; bottom: 12px; min-width: 0; padding: 9px 11px; }
  .soon strong { font-size: 19px; }
  .soon-launch { font-size: 7px; }
  .tape { top: 64%; font-size: 7.5px; padding: 7px 0; letter-spacing: 0.18em; }

  .build {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 18px;
  }
  .build-head { grid-column: 1; grid-row: 1; }
  .build-bar { grid-column: 1; grid-row: 2; }
  .build-note { grid-column: 1; grid-row: 3; margin-top: 2px; }
  .build-stages { grid-column: 1; grid-row: 4; justify-content: flex-start; gap: 10px 14px; }

  .marquee-item { font-size: 8px; letter-spacing: 0.22em; gap: 16px; padding-right: 16px; }
  .bottom { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 7.5px; padding: 10px 20px 14px; }
}

@media (max-width: 370px) {
  .topbar { --logo-h: 58px; }
}

@media (max-height: 760px) and (min-width: 1081px) {
  .headline { line-height: 0.78; }
  .build-note { font-size: 9px; }
  .build-stages { margin-top: 4px; }
  .build { margin-bottom: 12px; padding-top: 10px; }
  .statement { padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .photo img { animation: none; }
  .marquee-track { animation: none; }
  .line-b .clip { clip-path: none; }
  .build-bar i { transform: none; }
}
