/* =========================================================
   Detvion — campaign cover, ultra-minimal
   White, quiet, mostly empty. One photo opens the page, the
   wordmark sits at its centre. Accent: brand blue #2058f8.

   Deliberately light: no canvas, no 3D, no parallax. Only soft
   fades, hairline hovers and a discreet dot on desktop.
   Content is visible by default — JS only hides what it has
   confirmed is off-screen, with fail-safes.
   ========================================================= */

:root {
  --blue: #2058f8;
  --ink: #0a0b0f;
  --ink-2: #454b59;
  --muted: #8b9099;
  --line: #e6e8ee;
  --paper: #ffffff;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: 28px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #d9dce4; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: #fff; color: var(--ink); padding: 12px 18px; text-decoration: none; }
.skip:focus { left: 0; }

.kicker {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- cover ---------- */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #14161a;
}
.cover-media { position: absolute; inset: 0; }
/* visible by default: the opening animation is opt-in, so a stuck
   animation can never leave the campaign cover black */
.cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
html.anim .cover-media img { opacity: 0; transform: scale(1.04); }
html.anim.hero-in .cover-media img { opacity: 1; transform: none; }

.cover-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 62% at 50% 48%, rgba(10, 11, 15, .52) 0%, rgba(10, 11, 15, .22) 52%, rgba(10, 11, 15, .55) 100%),
    linear-gradient(180deg, rgba(10, 11, 15, .38) 0%, rgba(10, 11, 15, .1) 40%, rgba(10, 11, 15, .5) 100%);
  pointer-events: none;
}

.cover-logo { position: relative; z-index: 2; padding: 0 var(--gutter); text-align: center; }
.cover-logo img { margin: 0 auto; }
/* "coming soon" appears as the wordmark's own shadow: a soft blurred
   duplicate set slightly lower, with the crisp line kept faint */
.cover-coming {
  position: relative;
  margin-top: 12px;
  font-size: clamp(.66rem, 1.45vw, .98rem);
  font-weight: 600;
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .46);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transition-delay: .55s;
}
.cover-coming::before {
  content: "Coming soon";
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  filter: blur(10px);
  opacity: .85;
  pointer-events: none;
}
html.anim .cover-coming { opacity: 0; }
html.anim.hero-in .cover-coming { opacity: 1; }
html.cover-now .cover-coming { opacity: 1 !important; transition: none !important; }

.cover-logo img {
  width: clamp(190px, 30vw, 420px); height: auto;
  opacity: 1;
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
  transition-delay: .32s;
}
html.anim .cover-logo img { opacity: 0; transform: translateY(14px); }
html.anim.hero-in .cover-logo img { opacity: 1; transform: none; }

.cover-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px var(--gutter);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid rgba(255, 255, 255, .16);
  opacity: 1;
  transition: opacity 1.2s var(--ease);
  transition-delay: .6s;
}
html.anim .cover-bar { opacity: 0; }
html.anim.hero-in .cover-bar { opacity: 1; }

.cover-cue {
  position: absolute; left: 50%; bottom: 74px; z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); text-decoration: none;
  opacity: 1;
  transition: opacity 1.2s var(--ease);
  transition-delay: .8s;
}
html.anim .cover-cue { opacity: 0; }
html.anim.hero-in .cover-cue { opacity: 1; }

/* instant override used by the fail-safe: no transition, no negotiation */
html.cover-now .cover-media img,
html.cover-now .cover-logo img,
html.cover-now .cover-bar,
html.cover-now .cover-cue {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.cover-cue span { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8)); }

/* ---------- sections ---------- */
.sec { padding: clamp(88px, 12vw, 168px) 0; }
.intro { padding-top: clamp(72px, 9vw, 132px); }
.display { font-size: clamp(2.4rem, 6.6vw, 5.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.big { font-size: clamp(2rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.line { margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 52ch; }
.note { margin-top: 34px; font-size: .84rem; letter-spacing: .04em; color: var(--muted); }

/* rows */
.rows { border-top: 1px solid var(--line); margin-top: 12px; }
.row {
  display: grid; grid-template-columns: 64px 200px 1fr; gap: 22px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), opacity .3s ease;
}
.row:hover { padding-left: 14px; }
.row-num { font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.row h2 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; }
.row p { color: var(--ink-2); font-size: .98rem; }
.row:hover h2 { color: var(--blue); }

/* cta */
.cta { text-align: left; }
.mailto {
  display: inline-block; margin-top: 28px;
  font-size: clamp(1.4rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.04em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color .25s ease, border-color .25s ease;
}
.mailto:hover { color: var(--blue); border-color: var(--blue); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: transparent; color: var(--blue); border-color: var(--blue); }

/* footer */
.footer { padding: clamp(44px, 6vw, 76px) 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; align-items: start; }
.footer-brand img { height: 19px; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col span { color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-legal { align-items: flex-end; text-align: right; color: var(--muted); }
.footer-legal span { color: var(--muted); font-size: .84rem; letter-spacing: .04em; }

/* ---------- soft scroll fade ---------- */
.fx { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
html.fx-ready .fx.pre { opacity: 0; transform: translateY(16px); }
.fx.is-in { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 44px 1fr; row-gap: 6px; }
  .row p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-legal { align-items: flex-start; text-align: left; }
  .cover-cue { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .cover-bar { font-size: .6rem; letter-spacing: .14em; padding: 16px var(--gutter); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-media img, .cover-logo img, .cover-bar, .cover-cue { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.fx-ready .fx.pre { opacity: 1 !important; transform: none !important; }
  .fx, .btn, .mailto, .row { transition: none !important; }
  .cover-coming { transition: none !important; opacity: 1 !important; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
