:root {
  color-scheme: dark;
  --bg: #101110;
  --bg-2: #161815;
  --bg-3: #1c1f1a;
  --fg: #f3f3e8;
  --muted: #a9ad9e;
  --accent: #d9fb54;
  --accent-ink: #4a5d00;
  --line: #2c2f27;
  --line-2: #3a3e33;
  --cream: #ebeddf;
  --cream-ink: #171a12;
  --cream-muted: #4a5040;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); overflow-x: clip; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 112px, 1320px); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  padding: 10px 14px; background: var(--accent); color: var(--bg); font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Shared ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.square { border-radius: 0; }

.button {
  display: inline-flex; align-items: center; gap: 22px;
  min-height: 52px; padding: 12px 20px;
  background: var(--accent); color: var(--bg);
  font-size: 15px; font-weight: 700;
  transition: background-color 200ms ease, transform 200ms var(--ease);
}
.button span { font-size: 20px; line-height: 1; transition: transform 200ms var(--ease); }
.button:hover { background: var(--fg); }
.button:hover span { transform: translate(2px, 2px); }
.button.dark { background: var(--cream-ink); color: var(--accent); }
.button.dark:hover { background: var(--bg); }
.button.dark:hover span { transform: translate(2px, -2px); }

h2 {
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 800; line-height: .98; letter-spacing: -.065em;
  text-wrap: balance;
}
h2 span { color: var(--muted); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split {
  grid-template-columns: 1fr minmax(0, 360px);
  align-items: end; gap: 22px 48px;
}
.section-head.split > div { display: grid; gap: 22px; }
.section-note { color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease;
}
.site-header.scrolled {
  background: rgb(16 17 16 / .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.wordmark {
  display: inline-flex; align-items: center;
  font-size: 22px; font-weight: 800; letter-spacing: -.075em; white-space: nowrap;
}
.wordmark-media { color: var(--accent); }
.mark {
  display: inline-grid; place-items: center;
  width: 30px; aspect-ratio: 1; margin-right: 10px;
  background: var(--accent); border-radius: 6px;
}
.mark::before {
  content: ""; width: 11px; height: 13px; background: var(--bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateX(1px);
}

.main-nav {
  display: flex; align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 14px; font-weight: 600;
}
.main-nav a:not(.parent-link) { position: relative; padding-block: 6px; }
.main-nav a:not(.parent-link)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease);
}
.main-nav a:not(.parent-link):hover::after { transform: scaleX(1); }
.parent-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line-2);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.parent-link:hover { border-color: var(--accent); }
.parent-link span { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-2); color: var(--fg);
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: currentColor; transition: transform 250ms var(--ease), opacity 200ms;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -77px; padding-top: 77px;
  background:
    radial-gradient(60% 70% at 85% 35%, rgb(217 251 84 / .09), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .45;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: .85fr 1fr;
  align-items: center; gap: clamp(32px, 5vw, 80px);
  min-height: min(760px, calc(100svh - 77px));
  padding-block: 56px 72px;
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(84px, 11vw, 168px);
  font-weight: 800; line-height: .82; letter-spacing: -.09em;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }

.hero-intro {
  max-width: 400px; margin-top: 34px;
  color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
  text-wrap: pretty;
}
.hero-intro em { color: var(--fg); font-style: normal; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.ghost-link {
  font-size: 15px; font-weight: 600; color: var(--fg);
  padding-bottom: 4px; border-bottom: 1px solid var(--line-2);
  transition: border-color 200ms ease, color 200ms ease;
}
.ghost-link:hover { border-color: var(--accent); color: var(--accent); }

/* Viewfinder */
.viewfinder {
  position: relative; aspect-ratio: 1.24;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 80% 25%, #3d4815, #191d12 52%, #0a0b09);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgb(217 251 84 / .18);
}
.viewfinder img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.viewfinder:hover img { transform: scale(1.08); }

.vf-overlay {
  position: absolute; inset: 0; pointer-events: none;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--fg);
}
.vf-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / .45), transparent 22%, transparent 78%, rgb(0 0 0 / .45));
}
.corner { position: absolute; width: 22px; height: 22px; border: solid var(--accent); }
.corner.tl { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.corner.tr { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }
.crosshair { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; translate: -50% -50%; opacity: .55; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--fg); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

.vf-top, .vf-bottom {
  position: absolute; left: 50px; right: 50px;
  display: flex; justify-content: space-between; align-items: center;
}
.vf-top { top: 26px; }
.vf-bottom { bottom: 26px; color: rgb(243 243 232 / .8); }
.rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 12px #ff4a3d; animation: blink 1.2s steps(1) infinite; }
.timecode { font-variant-numeric: tabular-nums; }
.battery {
  position: relative; width: 26px; height: 12px; padding: 2px;
  border: 1px solid currentColor; border-radius: 2px;
}
.battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; }
.battery i { display: block; width: 70%; height: 100%; background: var(--accent); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--accent); color: var(--bg);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 18px 0 18px 28px;
  font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap;
}
.marquee span::after { content: "✦"; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about {
  background: var(--cream); color: var(--cream-ink);
  padding-block: clamp(64px, 9vw, 128px);
  scroll-margin-top: 60px;
}
.about .eyebrow { color: var(--accent-ink); padding-top: 14px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 2.05fr;
  align-items: start; gap: 28px;
}
.about-copy p {
  max-width: 58ch; margin-top: 28px;
  color: var(--cream-muted); font-size: 18px; line-height: 1.65; text-wrap: pretty;
}
.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding-bottom: 5px;
  border-bottom: 1px solid currentColor; font-weight: 700;
  transition: color 200ms ease, gap 200ms var(--ease);
}
.text-link:hover { color: var(--accent-ink); gap: 16px; }

.focus-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid #c9ccba;
}
.focus { padding: 30px 28px 6px 0; }
.focus + .focus { padding-left: 28px; border-left: 1px solid #c9ccba; }
.focus-num { font: 600 12px var(--mono); color: var(--accent-ink); letter-spacing: .1em; }
.focus h3 { margin-top: 18px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.045em; }
.focus p { margin-top: 10px; color: var(--cream-muted); line-height: 1.55; text-wrap: pretty; }

/* ---------- Process ---------- */
.process { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 60px; }
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0; margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 28px 0;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); border-radius: 50%;
  transition: background-color 300ms ease;
}
.step:hover::before { background: var(--accent); }
.step-code { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { margin-top: 22px; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.055em; }
.step p { margin-top: 10px; color: var(--muted); line-height: 1.55; font-size: 15px; text-wrap: pretty; }

/* ---------- Brands ---------- */
.brands {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}
.brand-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; margin: 0; padding: 0; list-style: none;
}
.brand-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2); background: var(--bg-2);
  overflow: hidden;
  transition: border-color 300ms ease, transform 400ms var(--ease);
}
.brand-card:hover { border-color: var(--brand-accent); transform: translateY(-4px); }

.brand-stage {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--brand-bg);
}
.brand-stage img {
  width: clamp(110px, 16vw, 180px); height: auto;
  border-radius: 50%;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .5);
  transition: transform 600ms var(--ease);
}
.brand-card:hover .brand-stage img { transform: scale(1.06) rotate(-4deg); }

.brand-merak { --brand-accent: #ff6b5c; }
.brand-merak .brand-stage {
  --brand-bg: #f2ecdc;
  background:
    linear-gradient(90deg, transparent 56px, rgb(232 72 58 / .45) 56px 57px, transparent 57px),
    repeating-linear-gradient(to bottom, transparent 0 27px, rgb(80 120 200 / .22) 27px 28px),
    #f2ecdc;
}
.brand-oncesi { --brand-accent: #ff6a45; }
.brand-oncesi .brand-stage {
  background:
    radial-gradient(50% 70% at 50% 50%, rgb(232 72 42 / .22), transparent 70%),
    #141820;
}
.brand-oncesi .brand-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(240 230 210 / .08) 1px, transparent 1px);
  background-size: 6px 6px;
}

.brand-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 36px); }
.brand-tags { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent); }
.brand-body h3 { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.055em; }
.brand-body > p:not(.brand-tags) { margin-top: 12px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }

.brand-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: var(--cream-ink); }
.cta-inner {
  display: grid; justify-items: start; gap: 26px;
  padding-block: clamp(72px, 10vw, 136px);
}
.cta .eyebrow { color: var(--accent-ink); }
.cta h2 { font-size: clamp(40px, 7vw, 104px); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 56px;
}
.footer-brand p { max-width: 34ch; margin-top: 18px; color: var(--muted); line-height: 1.6; }
.footer-col { display: grid; align-content: start; gap: 12px; font-size: 15px; }
.footer-col h3 { margin-bottom: 6px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-col a { width: fit-content; transition: color 200ms ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 24px 32px; border-top: 1px solid var(--line);
  color: var(--muted); font: 500 13px var(--mono);
}
.to-top:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }

  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: var(--bg);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6);
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 250ms ease, transform 250ms var(--ease), visibility 0s 250ms;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav a:not(.parent-link) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.parent-link)::after { display: none; }
  .parent-link { justify-content: space-between; margin-top: 18px; padding: 14px 16px; }
  .site-header:has(.main-nav.open) { background: var(--bg); border-bottom-color: var(--line); }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding-block: 40px 56px; }
  .hero h1 { font-size: clamp(76px, 22vw, 132px); }
  .viewfinder { aspect-ratio: 1.3; }

  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about .eyebrow { padding-top: 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus, .focus + .focus { padding: 24px 0; border-left: 0; }
  .focus + .focus { border-top: 1px solid #c9ccba; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; padding: 24px 0; }
  .step h3 { margin-top: 0; grid-column: 2; grid-row: 1; }
  .step p { grid-column: 2; }
  .step-code { grid-row: 1 / span 2; padding-top: 8px; }

  .section-head.split { grid-template-columns: 1fr; }
  .brand-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .vf-top, .vf-bottom { left: 44px; right: 44px; font-size: 11px; }
  .step { grid-template-columns: 1fr; }
  .step-code, .step h3, .step p { grid-column: 1; grid-row: auto; }
  .step h3 { margin-top: 14px; }
  .button { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
