/* Reloqer website — styles built on the Reloqer design system tokens. */

@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --surface-100: #F7F7F4;   /* page */
  --surface-000: #FFFFFF;   /* cards, inputs */
  --surface-200: #EEEEEA;   /* fills, hover */
  --line: #E2E2DC;          /* hairlines */
  --ink: #14171A;           /* text, primary button */
  --ink-hover: #2A2F35;
  --ink-muted: #5B6168;     /* secondary text */
  --ink-disabled: #A9ADB2;
  --signal: #E5602F;        /* the one accent */
  --signal-hover: #DD5826;
  --signal-ink: #A33A12;    /* orange text on light grounds */
  --danger: #B42318;

  /* Type */
  --font-head: "Geist", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Space and shape */
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 8vw, 96px);
  --section-lg: clamp(64px, 10vw, 128px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: var(--ink); }
a:hover { color: var(--signal-ink); }
p, figure, address { margin: 0; }
address { font-style: normal; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

/* Layout */
.container { max-width: 1168px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 728px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(16px, 3vw, 24px); }

/* Type */
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.display { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.btn-lg { min-height: 48px; padding: 0 28px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-hover); color: #fff; }
.btn-signal { min-height: 52px; padding: 0 28px; font-size: 16px; background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-hover); color: var(--ink); }
.btn-ghost { background: var(--surface-000); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-200); color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; flex: none; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-200); }
.icon-btn:disabled { color: var(--ink-disabled); background: transparent; cursor: default; }

/* Header and menu */
.site-header { position: relative; z-index: 20; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-word { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -0.04em; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  background: var(--surface-100);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu-nav {
  margin-top: clamp(48px, 10vw, 96px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transform: translateY(12px); transition: transform 0.36s ease;
}
.menu.is-open .menu-nav { transform: none; }
.menu-nav a { font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 8vw, 48px); line-height: 1.25; letter-spacing: -0.03em; text-decoration: none; }
.menu-legal { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink-muted); }
.menu-legal a { color: var(--ink-muted); text-decoration: none; }
.menu-social { margin: 24px 0 48px -10px; display: flex; gap: 8px; }

/* Home */
.hero { padding-block: clamp(64px, 11vw, 128px) var(--section); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero .display { max-width: 820px; }
.hero .lead { max-width: 620px; }
.hero .btn { margin-top: 8px; }
.video { padding-bottom: var(--section-lg); }
.video-frame {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.play { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }

/* Shared sections */
.page-intro { padding-block: clamp(64px, 11vw, 128px) var(--section); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-intro .h1 { max-width: 820px; }
.page-intro .lead { max-width: 680px; }
/* Editorial layout (About, Contact): a label column on the left, content on the right, rows split by hairlines. */
.editorial { padding-bottom: var(--section-lg); }
.intro { padding-block: clamp(64px, 11vw, 128px) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro .h1 { max-width: 820px; }
.intro .lead { max-width: 680px; }
.split { padding-block: var(--section) 0; display: grid; gap: 32px; }
.split-label { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); align-self: start; }

/* About: principles and founders */
.principles { margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding-block: 24px; border-top: 1px solid var(--line); }
.principles li:first-child { padding-top: 0; border-top: 0; }
.principle-num { grid-row: span 2; padding-top: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); }
.principles p { max-width: 680px; color: var(--ink-muted); }

.founder-list { display: grid; gap: 40px 24px; }
.founder { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.founder-photo, .founder img { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.founder-photo { background: var(--surface-200); display: flex; align-items: center; justify-content: center; }
.founder img { height: auto; object-fit: cover; display: block; }
.founder-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.founder-meta .name { font-weight: 500; line-height: 1.4; }
.founder-meta .role { font-size: 14px; line-height: 1.4; color: var(--ink-muted); }

/* Contact: label and value rows */
.info-rows { margin: 0; }
.info-rows div { display: grid; gap: 4px; padding-block: 24px; border-top: 1px solid var(--line); }
.info-rows div:first-child { padding-top: 0; border-top: 0; }
.info-rows dt { color: var(--ink-muted); }
.info-rows dd { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.info-rows address { font-style: normal; }

@media (min-width: 640px) {
  .founder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  /* Start both columns on the same hairline, so the label lines up with the first row. */
  .principles li:first-child, .info-rows div:first-child { padding-top: 16px; border-top: 1px solid var(--line); }
  .founder-list { padding-top: 16px; border-top: 1px solid var(--line); }
  .principles li { grid-template-columns: 48px minmax(0, 5fr) minmax(0, 7fr); column-gap: 24px; }
  .principle-num { grid-row: auto; }
  .info-rows div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: clamp(48px, 7vw, 64px) 48px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo { gap: 12px; }
.footer-brand .logo-word { font-size: 34px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 8vw, 96px); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .eyebrow { margin-bottom: 8px; }
.footer-col a { text-decoration: none; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.footer-bottom a { color: var(--ink-muted); text-decoration: none; }
.footer-legal { display: flex; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
