/* ============================================================
   RYDE — Monochrome luxury concierge
   Design system: neutral greyscale (oklch chroma 0), ONE grotesque
   family (Hanken Grotesk). Editorial contrast comes from WEIGHT —
   heavy display (700/800) against light accents (300) — no serif.
   Generous negative space, hairline rules, cinematic dark base with
   one light "paper" section for rhythm.
   ============================================================ */

:root {
  /* Greyscale ink scale (oklch, chroma 0) */
  --black:    #070707;   /* oklch(0.07 0 0) deepest */
  --ink-950:  #0c0c0c;
  --ink-900:  #111111;
  --ink-850:  #161616;
  --ink-800:  #1c1c1c;
  --ink-700:  #262626;
  --ink-600:  #333333;

  --paper:    #f3f2f0;   /* warm-neutral off-white light section */
  --paper-2:  #e9e8e5;
  --white:    #fafafa;

  /* Text */
  --t-bright: rgba(250,250,250,0.96);
  --t-mid:    rgba(245,245,245,0.62);
  --t-dim:    rgba(245,245,245,0.40);

  /* Lines */
  --line:     rgba(250,250,250,0.13);
  --line-soft:rgba(250,250,250,0.07);
  --line-dk:  rgba(10,10,10,0.14);

  /* Type */
  --sans: "Hanken Grotesk", -apple-system, system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--t-bright);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---- Type primitives ---- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-mid);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.mobile-br { display: none; }
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.kicker.no-rule::before { display: none; }

/* Light-weight accent — brushed-silver metallic with a slow shimmer sweep.
   Stays strictly greyscale; the gradient is clipped to the glyphs. */
.accent {
  font-weight: 200;
  letter-spacing: -0.005em;
  background-image: linear-gradient(108deg,
    #c4c4c4 0%, #ffffff 13%, #8c8c8c 29%, #fcfcfc 45%,
    #9a9a9a 60%, #ffffff 77%, #b6b6b6 100%);
  background-size: 250% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: silverShimmer 5.5s linear infinite;
}
/* darker graphite version for accents over the light "paper" section */
.accent.steel {
  background-image: linear-gradient(108deg,
    #585858 0%, #141414 13%, #7a7a7a 29%, #202020 45%,
    #525252 60%, #101010 77%, #585858 100%);
}
@keyframes silverShimmer { to { background-position: -250% center; } }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--t-bright); }
  .accent.steel { color: var(--black); }
}

.display {
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ---- Layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--white);
  --fg: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn .btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.btn .btn-arrow { transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--t-bright);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--t-bright); background: rgba(250,250,250,0.04); }

.btn.dark { --bg: var(--ink-900); --fg: var(--white); }

.header-cta .btn { padding: 8px 18px; font-size: 13px; }

/* link with animated underline */
.tlink {
  position: relative;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--t-mid);
  transition: color .35s var(--ease);
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.tlink:hover { color: var(--t-bright); }
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Image placeholder ---- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(250,250,250,0.035) 0 2px,
      transparent 2px 11px
    ),
    var(--ink-850);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph.light {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(10,10,10,0.05) 0 2px,
      transparent 2px 11px
    ),
    var(--paper-2);
}
.ph-label {
  font-family: "Hanken Grotesk", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-dim);
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ph.light .ph-label { color: rgba(10,10,10,0.42); }
.ph-label::before {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
/* hover zoom for media inside a frame */
.media-frame { overflow: hidden; }
.media-frame .ph,
.media-frame .ph-img { transition: transform 1.1s var(--ease); }
.media-frame:hover .ph,
.media-frame:hover .ph-img { transform: scale(1.045); }

/* real image fill */
.ph.has-img { background: var(--ink-900); }
.ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Reveal ----
   Content is always visible. (Opacity-based scroll entrances were dropped:
   this embedding freezes time-based CSS at frame 0 when backgrounded, which
   could strand content invisible. Polish comes from parallax + hover instead.) */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accent { animation: none; }
}

/* line-clip helpers */
.hairline { height: 1px; background: var(--line); width: 100%; }
.hairline.dk { background: var(--line-dk); }

.eyebrow-num {
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--t-dim);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- keyframes ---- */
@keyframes scrolldot {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}
@keyframes gsIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* No fill-based hidden start — frozen renders must not strand content invisible */
.gs-anim { opacity: 1; }

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}

/* ---- range slider ---- */
.gs-range {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.gs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--black);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s var(--ease);
}
.gs-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.gs-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--black);
  box-shadow: 0 0 0 1px var(--line); cursor: pointer;
}

/* ---- header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(7,7,7,0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-links { display: flex; gap: 36px; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  #how-grid, #about-grid, #quote-grid { grid-template-columns: 1fr !important; }
  #quote-grid > div:last-child { order: -1; }
}
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr !important; }
  .gs-grid { grid-template-columns: 1fr !important; }
  .gs-rail { position: relative !important; height: auto !important; flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 20px; }
  .gs-rail .gs-steps { display: none !important; }
  .privacy-grid { grid-template-columns: 1fr !important; }
  .privacy-toc { position: relative !important; top: 0 !important; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .header-cta { display: none !important; }
  .menu-btn { display: inline-flex !important; }
  .figures { grid-template-columns: 1fr !important; gap: 28px !important; }
  .partner-row { gap: 22px !important; }
  .mobile-menu.open { display: flex !important; }
  .hero { min-height: 100dvh !important; }
  .hero-kicker { white-space: normal !important; }
  .mobile-br { display: inline; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr !important; }
  .gs-two { grid-template-columns: 1fr !important; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 40px !important; }
}
