/* RL.com.pt — modern tech-forward editorial */

:root {
  /* Default accent (Portuguese amber) */
  --accent-h: 65;
  --accent-c: 0.15;
  --accent-l: 0.72;
  --accent: oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-soft: oklch(var(--accent-l) calc(var(--accent-c) * 0.3) var(--accent-h) / 0.18);
  --accent-ink: oklch(0.25 calc(var(--accent-c) * 0.5) var(--accent-h));

  /* Light mode (default) */
  --bg: oklch(0.975 0.006 80);
  --bg-elev: oklch(0.99 0.004 80);
  --ink: oklch(0.16 0.012 60);
  --ink-2: oklch(0.34 0.012 60);
  --ink-3: oklch(0.55 0.01 60);
  --line: oklch(0.88 0.008 70);
  --line-2: oklch(0.82 0.008 70);
  --surface: oklch(0.95 0.006 80);
  --invert-bg: oklch(0.14 0.012 60);
  --invert-ink: oklch(0.96 0.006 80);

  /* Density */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
  --radius: 2px;
  --radius-lg: 8px;

  /* Typography */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: oklch(0.14 0.012 60);
  --bg-elev: oklch(0.17 0.012 60);
  --ink: oklch(0.97 0.006 80);
  --ink-2: oklch(0.78 0.008 70);
  --ink-3: oklch(0.58 0.01 70);
  --line: oklch(0.26 0.012 60);
  --line-2: oklch(0.32 0.012 60);
  --surface: oklch(0.19 0.012 60);
  --invert-bg: oklch(0.97 0.006 80);
  --invert-ink: oklch(0.14 0.012 60);
  --accent-ink: oklch(0.95 0.02 var(--accent-h));
}

:root[data-density="compact"] {
  --section-y: clamp(56px, 7vw, 96px);
}

/* ---------- Type pair presets ---------- */
:root[data-type="editorial"] {
  --f-display: "Instrument Serif", serif;
  --f-body: "Inter", sans-serif;
}
:root[data-type="grotesk"] {
  --f-display: "Space Grotesk", sans-serif;
  --f-body: "Inter", sans-serif;
}
:root[data-type="mono"] {
  --f-display: "Fraunces", serif;
  --f-body: "IBM Plex Mono", monospace;
  --f-mono: "IBM Plex Mono", monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color 0.4s ease, color 0.4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1;
  padding-top: 2px;
}
.logo-dot {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-controls { display: flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-elev);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-group { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.chip-group .chip { border: 0; border-radius: 0; height: 30px; }
.chip-group .chip + .chip { border-left: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  gap: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-meta span:nth-child(2)::before { background: var(--ink-3); }
.hero-meta span:nth-child(3)::before { background: var(--ink); border-radius: 0; transform: rotate(45deg); }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(56px, 13vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-title .line:nth-child(2) .word { animation-delay: 0.15s; }
.hero-title .mark {
  font-style: italic;
  color: var(--accent);
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: clamp(40px, 6vw, 72px);
  align-items: end;
}
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 760px) { .hero-ctas { justify-self: start; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--ink) 40%, transparent); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn .arr {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  transition: transform 0.2s;
}
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn.ghost .arr { background: var(--ink); color: var(--bg); }

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: mar 40s linear infinite;
}
.marquee-track span { padding-right: 12px; }
@keyframes mar { to { transform: translateX(-50%); } }

/* ---------- Section shell ---------- */
.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  width: fit-content;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
  max-width: 22ch;
}
.section-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-2);
  margin: 20px 0 0;
  max-width: 56ch;
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .about-body { grid-template-columns: 1fr; } }
.about-prose p {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.about-prose p + p { color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- RogerLe ---------- */
.rogerle.section { background: var(--invert-bg); color: var(--invert-ink); border-bottom-color: var(--invert-bg); }
.rogerle .kicker { color: color-mix(in oklab, var(--invert-ink) 70%, transparent); border-top-color: var(--invert-ink); }
.rogerle .section-title { color: var(--invert-ink); }
.rogerle .section-lede { color: color-mix(in oklab, var(--invert-ink) 75%, transparent); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--invert-ink) 18%, transparent);
}
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .service-grid { grid-template-columns: 1fr; } }
.service {
  padding: 32px 24px 40px;
  border-right: 1px solid color-mix(in oklab, var(--invert-ink) 18%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--invert-ink) 18%, transparent);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background 0.3s;
  cursor: default;
}
.service:last-child { border-right: 0; }
@media (max-width: 1080px) {
  .service:nth-child(2n) { border-right: 0; }
  .service:last-child { border-right: 0; }
}
.service:hover { background: color-mix(in oklab, var(--invert-ink) 6%, transparent); }
.service-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.service-t {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.service-d {
  color: color-mix(in oklab, var(--invert-ink) 68%, transparent);
  font-size: 14px;
  line-height: 1.55;
  margin-top: auto;
}

.clients {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; gap: 16px; } }
.clients-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--invert-ink) 55%, transparent);
  padding-top: 6px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: color-mix(in oklab, var(--invert-ink) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--invert-ink) 14%, transparent);
}
@media (max-width: 760px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client {
  padding: 22px 16px;
  background: var(--invert-bg);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-align: center;
  color: color-mix(in oklab, var(--invert-ink) 85%, transparent);
  transition: color 0.2s;
}
.client:hover { color: var(--accent); }

.section-cta {
  margin-top: 64px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 560px) { .section-cta { justify-content: flex-start; } }

.rogerle .btn.ghost { color: var(--invert-ink); border-color: color-mix(in oklab, var(--invert-ink) 30%, transparent); }
.rogerle .btn.ghost:hover { background: color-mix(in oklab, var(--invert-ink) 8%, transparent); border-color: var(--invert-ink); }

/* ---------- Motorhome ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.feature:last-child { border-right: 0; }
@media (max-width: 1080px) {
  .feature:nth-child(2n) { border-right: 0; }
  .feature:last-child { border-right: 0; }
}
.feature-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
}
.feature-t {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 6px 0 0;
}
.feature-d {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

/* Social feature variant */
.feature.social { min-height: 240px; justify-content: flex-start; }
.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-handle {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.feature-cta {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: color 0.2s, gap 0.2s;
}
.feature-cta span { color: var(--accent); }
.feature-cta:hover { color: var(--accent-ink); gap: 10px; }

/* ---------- CamperBudget ---------- */
.camper.section {
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%),
    var(--surface);
}
.cb-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.cb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.cb-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 960px) {
  .cb-layout { grid-template-columns: 1fr; }
}

.cb-grid {
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.cb-grid .service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  min-height: 200px;
}
.cb-grid .service:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.cb-grid .service .service-n { color: var(--accent-ink); }
.cb-grid .service .service-t { color: var(--ink); }
.cb-grid .service .service-d { color: var(--ink-2); }
.cb-grid .service:nth-child(2n) { border-right: 0; }
@media (max-width: 560px) {
  .cb-grid { grid-template-columns: 1fr; }
  .cb-grid .service { border-right: 0; }
}

/* Phone mock */
.cb-mock {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 96px;
}
.cb-phone {
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 40px 80px -32px color-mix(in oklab, var(--ink) 40%, transparent);
}
.cb-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.cb-phone-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cb-phone-spacer { width: 8px; }
.cb-phone-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.cb-phone-screen { display: flex; flex-direction: column; gap: 14px; }
.cb-trip { padding: 2px 4px; }
.cb-trip-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cb-trip-amount {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.cb-trip-amount span {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 6px;
  letter-spacing: 0;
}
.cb-bar {
  margin-top: 10px;
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.cb-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: barGrow 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes barGrow { from { width: 0 !important; } }

.cb-rows { display: flex; flex-direction: column; }
.cb-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cb-row:last-child { border-bottom: 0; }
.cb-row-k { color: var(--ink-2); }
.cb-row-v { font-family: var(--f-mono); color: var(--ink); font-size: 12px; }
.cb-cta {
  margin-top: 4px;
  padding: 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Waitlist */
.cb-waitlist {
  margin-top: 72px;
  padding: 36px;
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: center;
}
@media (max-width: 760px) {
  .cb-waitlist { grid-template-columns: 1fr; padding: 24px; }
}
.cb-waitlist-label {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}
.cb-waitlist-form {
  display: flex;
  gap: 6px;
  background: color-mix(in oklab, var(--invert-ink) 10%, transparent);
  border-radius: 999px;
  padding: 6px;
}
.cb-waitlist-form input {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  color: var(--invert-ink);
  font: inherit;
  font-size: 14px;
  min-width: 220px;
}
.cb-waitlist-form input::placeholder { color: color-mix(in oklab, var(--invert-ink) 55%, transparent); }
.cb-waitlist-form button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cb-waitlist-note {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--invert-ink) 55%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--invert-ink) 16%, transparent);
  padding-top: 18px;
  margin-top: 8px;
}

.fleet {
  margin-top: 64px;
}
.fleet-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.fleet-head h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .fleet-grid { grid-template-columns: 1fr; } }
.rig {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rig:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px color-mix(in oklab, var(--ink) 25%, transparent);
}
.rig-image {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.rig-body {
  padding: 20px 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
}
.rig-name {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  grid-column: 1;
}
.rig-price {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  grid-column: 2;
  text-align: right;
}
.rig-sub {
  grid-column: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.rig-unit {
  grid-column: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- Placeholder SVG visuals ---------- */
.ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 10px,
      transparent 10px 20px
    ),
    var(--surface);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.ph-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 2px;
}
.ph.dark {
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--invert-ink) 10%, transparent) 0 10px,
      transparent 10px 20px
    ),
    color-mix(in oklab, var(--invert-bg) 75%, var(--invert-ink) 25%);
}
.ph.dark .ph-label { background: var(--invert-bg); color: color-mix(in oklab, var(--invert-ink) 65%, transparent); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 120px;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile .ph { border-radius: inherit; }
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.tile:hover .tile-img { transform: scale(1.04); }
.rig-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.rig:hover .rig-img { transform: scale(1.03); }
.tile-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
  padding: 5px 9px;
  border-radius: 2px;
  z-index: 2;
}

.t-a { grid-column: span 5; grid-row: span 3; }
.t-b { grid-column: span 4; grid-row: span 2; }
.t-c { grid-column: span 3; grid-row: span 2; }
.t-d { grid-column: span 4; grid-row: span 3; }
.t-e { grid-column: span 3; grid-row: span 2; }
.t-f { grid-column: span 5; grid-row: span 2; }
.t-g { grid-column: span 7; grid-row: span 2; }
@media (max-width: 860px) {
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g { grid-column: span 3; grid-row: span 2; }
}

/* ---------- Journal ---------- */
.posts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.post {
  display: grid;
  grid-template-columns: 88px 110px 130px 1fr 80px 40px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s;
  cursor: pointer;
}
.post:hover { padding-left: 16px; padding-right: 16px; background: var(--surface); }
.post-thumb {
  display: block;
  width: 88px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1);
}
.post:hover .post-thumb img { transform: scale(1.06); }
.post-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  justify-self: start;
}
.post-date {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.post-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.post-read {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}
.post-arr {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink-3);
  text-align: right;
  transition: transform 0.2s, color 0.2s;
}
.post:hover .post-arr { transform: translateX(6px); color: var(--accent); }

@media (max-width: 860px) {
  .post { grid-template-columns: 60px auto auto 1fr; gap: 12px 14px; }
  .post-thumb { width: 60px; height: 44px; }
  .post-read, .post-arr { display: none; }
  .post-title { grid-column: 2 / -1; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  gap: 24px;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--ink-2);
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-a-inner {
  padding: 0 60px 28px 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 20px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='currentColor' stroke-width='1.3' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }

.contact-aside {
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-aside h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  font-weight: 500;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contact-row .v { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.015em; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(40px, 6vw, 80px) 0 40px;
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.footer-big {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
}
.footer-big em { color: var(--accent); font-style: italic; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--invert-ink) 60%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--invert-ink) 18%, transparent);
  padding-top: 24px;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px color-mix(in oklab, var(--ink) 30%, transparent);
  padding: 16px;
  z-index: 80;
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 {
  margin: 0 0 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h4 .close { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tweaks-row { margin-bottom: 14px; }
.tweaks-row .lbl {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tweaks-group { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks-group button {
  flex: 1 1 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tweaks-group button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweaks input[type="range"] { width: 100%; accent-color: var(--accent); }
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s;
}
.swatch.on { border-color: var(--ink); transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in { opacity: 1; transform: none; }
