/* =================================================================
   DORIANE PIN — design system
   Black / Petronas teal · Jost (display) + Hanken Grotesk (body)
   + JetBrains Mono (data). Sober, editorial, single-seater led.
   ================================================================= */

:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0b;
  --bg-card:   #101012;
  --panel:     #f3f3f0;   /* inverted light panels */
  --ink:       #f5f5f3;
  --ink-dim:   rgba(245, 245, 243, 0.58);
  --ink-faint: rgba(245, 245, 243, 0.34);
  --teal:      #25e7c8;   /* Mercedes-AMG Petronas */
  --teal-deep: #0fae97;
  --line:      rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);

  --maxw: 1380px;
  --gut: clamp(20px, 5vw, 88px);

  --f-display: "Jost", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection { background: var(--teal); color: #000; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 200;
  letter-spacing: 0.14em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

.lede {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.dim { color: var(--ink-dim); }
.mono { font-family: var(--f-mono); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

section { position: relative; }

.section-pad { padding-block: clamp(80px, 12vh, 168px); }

.hr {
  height: 1px; border: 0; background: var(--line);
  margin: 0;
}
.hr-teal {
  height: 1px; border: 0;
  background: linear-gradient(90deg, var(--teal) 0 64px, var(--line) 64px);
}

/* double vertical rule motif from the original site */
.vrule {
  width: 5px; align-self: stretch; flex: 0 0 auto;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--teal), var(--teal)) 4px 0 / 1px 100% no-repeat;
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.05s cubic-bezier(.16,.7,.2,1),
              transform 1.05s cubic-bezier(.16,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- image slots ---------- */
image-slot {
  --is-bg: #0e0e10;
  background: var(--is-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .35s;
}
/* The component's built-in empty state is dark-on-light. On our black bg we
   override the inherited color (caption + icon use currentColor) so the
   "drop here" prompt reads. [id] beats the shadow :host rule on specificity. */
image-slot[id] { color: rgba(245,245,243,0.5); }
image-slot:hover { box-shadow: inset 0 0 0 1px rgba(37,231,200,0.65); }
.slot-credit {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-mono);
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  padding: 15px 26px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color .35s, color .35s, background .35s, transform .35s;
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn-solid {
  background: var(--teal); color: #000; border-color: var(--teal);
  font-weight: 600;
}
.btn-solid:hover { background: #fff; border-color: #fff; color: #000; }
.btn .ar { transition: transform .35s; }
.btn:hover .ar { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  mix-blend-mode: difference;
}
.nav.solid {
  mix-blend-mode: normal;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .brand {
  font-family: var(--f-display); font-weight: 300;
  letter-spacing: 0.34em; text-transform: uppercase; font-size: 15px;
  color: #fff;
}
.nav .links { display: flex; gap: 30px; }
.nav .links a {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
  opacity: .8; transition: opacity .3s;
}
.nav .links a:hover { opacity: 1; color: var(--teal); }
@media (max-width: 900px){ .nav .links { display: none; } }
.nav-cta {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--teal); color: #000; padding: 10px 20px;
  transition: background .3s, transform .3s;
}
.nav-cta:hover { background: #fff; color: #000; transform: translateY(-1px); }
@media (max-width: 900px){ .nav-cta { display: none; } }
