/* Honest Mistake, mistake.ee */

@view-transition { navigation: auto; }

:root {
  --bg: #0E100F;
  --ink: #EFEDE7;
  --dim: rgba(239, 237, 231, .55);
  --faint: rgba(239, 237, 231, .32);
  --line: rgba(239, 237, 231, .16);
  --accent: #E89B4B;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad-x: clamp(20px, 4vw, 56px);
  --max: 1360px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: opacity .3s var(--ease); }
a:hover { opacity: .72; }
::selection { background: var(--ink); color: var(--bg); }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

/* ---------- nav ---------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  mix-blend-mode: difference;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) var(--pad-x);
  font-size: 13px;
  letter-spacing: .02em;
}
nav .wordmark { font-weight: 500; }
nav .wordmark s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
nav .links { display: flex; gap: clamp(16px, 2.4vw, 28px); font-weight: 400; }
nav .links a[aria-current="page"] { border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
@media (max-width: 719px) { nav .links a:nth-child(n+4) { display: none; } }

/* ---------- footage layer (home) ---------- */

.footage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0B0D0C;
}
.footage img,
.footage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footage video { z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
.footage.playing video { opacity: 1; }
.footage .grade {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top,
    rgba(14, 16, 15, .82) 0%,
    rgba(14, 16, 15, .34) 24%,
    rgba(14, 16, 15, .08) 48%,
    rgba(14, 16, 15, .10) 66%,
    rgba(14, 16, 15, .52) 100%);
}
.footage .grain {
  position: absolute; inset: -100px; z-index: 4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-34px, 22px); }
  40% { transform: translate(18px, -40px); }
  60% { transform: translate(-40px, -12px); }
  80% { transform: translate(28px, 34px); }
  100% { transform: translate(0, 0); }
}

/* ---------- sections ---------- */

.page { position: relative; z-index: 1; flex: 1; }

section.screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(90px, 14vh, 150px) var(--pad-x);
}
section .inner { width: 100%; max-width: var(--max); margin: 0 auto; }

.solid { background: var(--bg); }

/* ---------- hero ---------- */

.hero {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(30px, 5vh, 56px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7.6vw, 104px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -.02em;
}
.hero .sub {
  margin-top: clamp(18px, 2.6vh, 26px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .85;
}

/* the mistake, made and owned */
.oops { position: relative; white-space: nowrap; }
.oops .wrong {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  position: relative;
  display: inline-block;
}
.oops .wrong::after {
  content: "";
  position: absolute;
  left: -2%; right: 102%;
  top: 54%;
  height: .06em;
  min-height: 3px;
  background: var(--accent);
  transform: rotate(-1.6deg);
  transition: right .5s var(--ease);
}
.oops.struck .wrong { opacity: .5; }
.oops.struck .wrong::after { right: -2%; }
.oops .right {
  display: inline-block;
  font-weight: 500;
  margin-left: .35em;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.oops.fixed .right { opacity: 1; transform: translateY(0); }

/* ---------- reveals ---------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="mask"] { transform: translateY(105%); }
.maskwrap { overflow: hidden; }

/* ---------- typography blocks ---------- */

.kicker { margin-bottom: clamp(24px, 4vh, 40px); }
h2.display {
  margin: 0;
  font-size: clamp(52px, 9vw, 132px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.03em;
}
.statement {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: -.01em;
  color: rgba(239, 237, 231, .94);
  text-wrap: pretty;
  max-width: 30em;
}
.body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(239, 237, 231, .82);
  max-width: 46ch;
  text-wrap: pretty;
}
.underlink {
  display: inline-block;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(239, 237, 231, .45);
  padding-bottom: 3px;
}

/* ---------- price cards ---------- */

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
}
.offer {
  background: rgba(239, 237, 231, .025);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.offer h3 { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -.01em; }
.offer .price { margin-top: auto; font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.02em; }
.offer .price .cur { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--dim); margin-left: 8px; }
.offer p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--dim); }

/* ---------- contact ---------- */

.bigmail {
  display: block;
  font-size: clamp(30px, 5.4vw, 76px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.bigmail:hover { color: var(--accent); opacity: 1; }

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

footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3vh, 36px) var(--pad-x);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .03em;
  line-height: 1.9;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { border-bottom: 1px solid rgba(239, 237, 231, .25); }

/* ---------- legal / calm pages ---------- */

.calm {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(130px, 20vh, 190px) var(--pad-x) clamp(70px, 10vh, 110px);
}
.calm h1 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 8px; }
.calm .updated { margin: 0 0 clamp(36px, 6vh, 56px); }
.calm h2 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin: 44px 0 12px; }
.calm p, .calm li { font-size: 15.5px; line-height: 1.75; color: rgba(239, 237, 231, .85); }
.calm ul { padding-left: 20px; }
.calm .factbox {
  border: 1px solid var(--line);
  padding: 20px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: .02em;
  color: rgba(239, 237, 231, .8);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .footage .grain { animation: none; }
  .footage video { display: none; }
  .oops .wrong::after { transition: none; }
  .oops .right { transition: none; }
}
