/* Rojak Media — black & yellow theme on the Modernist design system tokens. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&display=swap');

:root {
  --color-bg: #0b0b0b;
  --color-text: #f4efe1;
  --color-surface: #171717;
  --color-divider: #2e2e2e;
  --color-accent: #ffd60a;
  --color-accent-600: #e8c200;
  --color-accent-700: #ffd60a;
  --color-accent-100: #2b2500;
  --color-accent-800: #ffd60a;
  --color-neutral-700: #8c8778;
  --color-ink: #0b0b0b;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --section-y: calc(var(--space-8) * 3);

  --radius-md: 0px;
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0;
}
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.grayscale { filter: grayscale(1) contrast(1.08); }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: calc(var(--space-2) * 0.85) var(--space-3);
  border-radius: var(--radius-md);
}
.btn-primary, .btn-primary:hover { background: var(--color-accent); color: var(--color-ink); font-weight: 700; }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }
.btn-explore {
  justify-content: center; min-width: 180px; min-height: 44px;
  border: 2px solid var(--color-accent); color: var(--color-accent); font-weight: 700;
}
.btn-explore:hover { color: var(--color-accent); }

/* — segmented switch — */
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); }
.seg .btn { padding: 7px 12px; }
.seg .btn + .btn { border-left: 1px solid var(--color-divider); }

/* — tag — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em;
  padding: 3px 10px; background: var(--color-accent-100); color: var(--color-accent-800);
}

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 5; background: var(--color-bg);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-4) var(--space-8);
}
.nav-brand { margin-right: auto; display: flex; align-items: center; }
.nav-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.nav .btn { font-size: 14px; }

/* — shared section type — */
.section { padding: var(--section-y) var(--space-8); }
.section--bleed { padding: var(--section-y) 0; }
.section-title {
  margin: 0; padding: 0 var(--space-8) var(--space-8);
  font-size: clamp(36px, 5vw, 64px); line-height: 1.12; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--color-accent);
}
.back-btn { text-decoration: none; }

/* — reveal on scroll (only hidden once JS opts the element in) — */
[data-reveal].rv-pending { opacity: 0; transform: translateY(40px); }
[data-reveal].rv-armed { transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }

/* — marquee — */
@keyframes rj-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-stack { display: grid; gap: 2px; }
.marquee { overflow: hidden; background: var(--color-bg); }
.marquee-track {
  display: flex; gap: 2px; width: max-content;
  animation: rj-marquee var(--dur, 40s) linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee-item {
  flex: none; overflow: hidden; background: var(--color-surface);
  height: var(--h); aspect-ratio: var(--ratio);
  display: flex; align-items: center; justify-content: center;
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
.marquee--logos .marquee-item { padding: 24px 32px; background: #000; }
.marquee--logos .marquee-item img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* ═══ Home ═══ */
.hero {
  padding: var(--section-y) var(--space-8);
  min-height: calc(100vh - 90px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8); align-items: stretch;
}
.hero-lead { display: flex; flex-direction: column; gap: var(--space-8); }
.hero h1 {
  font-size: clamp(36px, 4.2vw, 64px); line-height: 0.9; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--color-accent);
}
.hero-cta { display: grid; gap: var(--space-3); justify-items: center; text-align: center; margin: auto 0; }
.hero-cta--side { display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0; }
.hero-cta-label { font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.hero-media {
  grid-column: span 2; min-height: clamp(420px, 70vh, 820px); background: #000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: contain; }

.showreel { aspect-ratio: 16 / 9; background: var(--color-surface); overflow: hidden; }
.showreel video { width: 100%; height: 100%; object-fit: cover; display: block; }

.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--space-8); }
.explore-card { text-decoration: none; display: flex; flex-direction: column; gap: var(--space-4); }
.explore-card-media { aspect-ratio: 4 / 3; background: var(--color-surface); overflow: hidden; }
.explore-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.explore-card:hover .explore-card-media img { transform: scale(1.08); }
.explore-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.explore-card h2 { font-size: 28px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.explore-card-link { font-size: 14px; color: var(--color-accent-700); font-weight: 600; white-space: nowrap; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-8); }
.about h2 {
  font-size: clamp(36px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--color-accent); text-wrap: balance;
}
.about-copy { display: grid; gap: var(--space-4); font-size: 17px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }

.offerings-intro {
  margin: calc(var(--space-6) * -1) 0 0; padding: 0 var(--space-8) var(--space-8);
  font-size: 18px; line-height: 1.45; max-width: 56ch; text-wrap: pretty;
}
.offering {
  display: grid; grid-template-columns: minmax(60px, 120px) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8); align-items: baseline; padding: var(--space-8);
  transition: background 300ms, color 300ms;
}
.offering:hover { background: var(--color-accent); color: var(--color-ink); }
.offering-num { font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1; }
.offering h3 { font-size: clamp(26px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.offering p { font-size: 18px; line-height: 1.4; }

/* ═══ Listing ═══ */
.listing-bar { padding: var(--space-8); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.listing-intro { padding: 0 var(--space-8) calc(var(--space-8) * 2); display: grid; gap: var(--space-6); }
.listing-intro h1 {
  font-size: clamp(64px, 13vw, 220px); line-height: 0.85; letter-spacing: -0.05em; color: var(--color-accent);
}
.listing-lines { display: grid; gap: var(--space-2); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; max-width: 44ch; }
.listing-cta { min-width: 200px; justify-content: flex-start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.stat { padding: var(--space-8); }
.stat-value { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; overflow-wrap: anywhere; }
.stat-label { font-size: 15px; margin-top: var(--space-2); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 2px; }
.project-card { text-decoration: none; display: grid; gap: var(--space-3); padding: var(--space-6); align-content: start; }
.project-card:hover { background: var(--color-surface); }
.media-placeholder {
  aspect-ratio: 16 / 9; background: var(--color-surface); display: flex; align-items: flex-end;
  padding: var(--space-3); font-size: 11px; color: var(--color-neutral-700); font-family: ui-monospace, monospace;
}
.project-card-title { font-size: 17px; font-weight: 700; line-height: 1.25; }

/* ═══ Project detail ═══ */
.detail-head { padding: 0 var(--space-8) var(--space-8); display: grid; gap: var(--space-6); }
.detail-head .tag { justify-self: start; }
.detail-head h1 {
  font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--color-accent); max-width: 18ch; text-wrap: balance;
}
.detail-head .media-placeholder { padding: var(--space-4); font-size: 12px; }
.detail-body { padding: var(--space-8); display: grid; gap: var(--space-4); max-width: 68ch; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.more-title { padding: 0 var(--space-8) var(--space-8); font-size: 32px; letter-spacing: -0.02em; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 2px; }
.more-grid a { text-decoration: none; padding: var(--space-6); font-size: 16px; font-weight: 700; line-height: 1.25; }
.more-grid a:hover { background: var(--color-surface); }

/* ═══ Funnel / Thank you ═══ */
.funnel {
  padding: var(--space-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-8); align-items: start;
}
.funnel-head { display: grid; gap: var(--space-6); }
.funnel-head .btn { justify-self: start; }
.funnel h1 { font-size: clamp(56px, 9vw, 140px); line-height: 0.9; letter-spacing: -0.04em; color: var(--color-accent); }
.funnel form { display: grid; gap: var(--space-4); padding-top: var(--space-6); max-width: 520px; }
.funnel form .btn { min-height: 44px; }
.thanks { padding: var(--section-y) var(--space-8); display: grid; gap: var(--space-6); }
.thanks h1 { font-size: clamp(56px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; color: var(--color-accent); }
.thanks p { font-size: 22px; }
.thanks .btn { justify-self: start; }

/* ═══ Footer ═══ */
.footer {
  margin-top: auto; background: var(--color-accent); color: var(--color-ink);
  padding: calc(var(--space-8) * 2) var(--space-8) var(--space-8);
  display: grid; gap: var(--space-8);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; }
.footer-tagline {
  font-size: clamp(44px, 8vw, 128px); font-weight: 800; line-height: 0.88;
  letter-spacing: -0.04em; text-transform: uppercase; max-width: 11ch;
}
.footer-logo { width: clamp(120px, 16vw, 220px); height: auto; border-radius: 50%; }
.footer-contacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6); padding-top: var(--space-6); font-size: 17px; font-weight: 600;
}
.footer-contacts a, .footer-contacts a:hover { color: var(--color-ink); text-decoration: none; display: flex; align-items: center; gap: var(--space-3); }
.footer-contacts img { width: 48px; height: 48px; object-fit: cover; flex: none; border-radius: 50%; outline: 2px solid var(--color-ink); }
.footer-contacts img.icon-square { border-radius: 12px; outline: none; }
.footer-contacts span { min-width: 0; overflow-wrap: anywhere; }

/* — small screens — */
@media (max-width: 600px) {
  :root { --section-y: calc(var(--space-8) * 2); }
  .nav, .section, .hero, .listing-bar, .funnel { padding-left: var(--space-4); padding-right: var(--space-4); }
  .section-title, .offerings-intro, .listing-intro, .detail-head, .more-title { padding-left: var(--space-4); padding-right: var(--space-4); }
  .footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .listing-intro h1 { font-size: clamp(40px, 13vw, 220px); }
  .hero { min-height: 0; }
  .hero-media { grid-column: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .offering { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding: var(--space-6) var(--space-4); }
  .offering p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  [data-reveal].rv-pending { opacity: 1; transform: none; }
  .explore-card-media img, .offering { transition: none; }
}
