/* RHND Innovations — Atelier (cool) system. Light only, by design. */
:root {
  color-scheme: light;
  --ink: #14171c;
  --slate: #46505f;
  --accent: #2f5fb0;
  --accent-deep: #244a8a;
  --mist: #c6cedb;
  --cloud: #dde2ea;
  --paper: #eef1f5;
  --paper-2: #e4e8ee;
  --label: #8b93a1;
  --white: #ffffff;
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

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

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 241, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cloud);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 7px;
  height: 26px;
  background: var(--accent);
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--label);
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 2px;
}
.nav .nav-cta:hover { background: var(--accent-deep); color: var(--paper); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-primary { background: var(--ink); color: var(--paper); }
.button-primary span { color: var(--accent); }
.button-primary:hover { background: var(--accent-deep); }
.button-primary:hover span { color: var(--paper); }

.button-secondary { background: transparent; color: var(--ink); border-color: var(--mist); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 80px; }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  padding: 120px 0 150px;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  z-index: 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(238, 241, 245, 0.94) 0%, rgba(238, 241, 245, 0.86) 38%, rgba(238, 241, 245, 0.35) 58%, rgba(238, 241, 245, 0) 76%);
}
.hero-photo .wrap { position: relative; z-index: 2; width: 100%; }
.hero-photo .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-photo .hero-copy { max-width: 640px; }

.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 14ch;
}

.lead {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Ledger band (overlaps the hero photo) */
.ledger-band { position: relative; z-index: 3; margin-top: -72px; padding-bottom: 72px; }

.ledger {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ledger-head, .ledger-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.ledger-head { border-bottom: 1px solid var(--cloud); }
.ledger-foot { border-top: 1px solid var(--cloud); }

.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger-rows li {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "name" "domain" "note";
  gap: 6px;
  padding: 18px 20px 20px;
  border-right: 1px solid var(--cloud);
}
.ledger-rows li:last-child { border-right: 0; }

.ledger-name {
  grid-area: name;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.ledger-domain {
  grid-area: domain;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
}
a.ledger-domain:hover { text-decoration: underline; }
span.ledger-domain { color: var(--label); }

.ledger-note { grid-area: note; font-size: 13.5px; line-height: 1.5; color: var(--slate); }

/* Intro band */
.intro { background: var(--paper-2); border-top: 1px solid var(--cloud); border-bottom: 1px solid var(--cloud); padding: 72px 0; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.intro-figure { margin: 0; min-width: 0; }
.intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 20% center;
  border: 1px solid var(--cloud);
  border-radius: 3px;
}
.intro-copy { display: grid; gap: 22px; }
.intro h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.12; }
.intro-text { display: grid; gap: 18px; color: var(--slate); font-size: 17px; max-width: 62ch; }

/* Section heads */
.section-head { padding: 80px 0 32px; display: grid; gap: 12px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; }
.section-head p { color: var(--slate); font-size: 17px; }

/* Products: dossier rows */
.dossier {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--cloud);
}
.dossier:last-of-type { border-bottom: 1px solid var(--cloud); margin-bottom: 8px; }
.dossier-flip .dossier-copy { order: 2; }
.dossier-flip .dossier-figure { order: 1; }

.dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--label);
}
.dossier-meta a { color: var(--accent); text-decoration: none; }
.dossier-meta a:hover { text-decoration: underline; }

.dossier h3 { margin-top: 16px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; }
.dossier-copy > p:not(.dossier-meta):not(.dossier-links) { margin-top: 16px; color: var(--slate); font-size: 16px; }

.proof { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.proof li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.proof li::before {
  content: "↳";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.dossier-link, .dossier-links a {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 3px;
}
.dossier-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.dossier-link span, .dossier-links a span { color: var(--accent); }
.dossier-link:hover, .dossier-links a:hover { border-color: var(--accent); }

.dossier-figure { margin: 0; min-width: 0; }
.dossier-figure img {
  width: 100%;
  aspect-ratio: 1440 / 880;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--cloud);
  border-radius: 3px;
  background: var(--paper-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dossier-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--label);
}

.dossier-figure-stack { display: grid; gap: 12px; }
.stack-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-pair img { aspect-ratio: 4 / 3; }

.dossier-figure-dark img {
  aspect-ratio: 1440 / 880;
  object-fit: contain;
  object-position: center;
  background: var(--ink);
  padding: 18%;
  border-color: var(--ink);
}

/* Principles */
.principles { background: var(--paper-2); border-top: 1px solid var(--cloud); border-bottom: 1px solid var(--cloud); padding-bottom: 80px; }
.principles .section-head { padding-top: 72px; }

.principle-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--cloud);
  background: var(--cloud);
  gap: 1px;
  border-radius: 3px;
  overflow: hidden;
}
.principle-grid li { background: var(--white); padding: 28px 26px 30px; }
.principle-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); }
.principle-grid h3 { margin-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.principle-grid p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--slate); }

/* Services */
.services { padding-bottom: 88px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--cloud);
  padding-top: 32px;
}
.service-grid h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.service-grid p { margin-top: 10px; font-size: 15px; color: var(--slate); }

/* Membership (ink band) */
.membership { background: var(--ink); color: var(--paper); padding: 80px 0; }
.membership-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.membership h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.12; }
.membership-mark {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(238, 241, 245, 0.25);
  border-radius: 3px;
  background: rgba(238, 241, 245, 0.06);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.membership-mark img { width: 64px; height: 64px; border-radius: 2px; background: var(--white); }
.membership-grid > p { font-size: 17px; line-height: 1.65; color: var(--mist); max-width: 60ch; }

/* References */
.references { padding-bottom: 88px; }
.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--cloud);
  border: 1px solid var(--cloud);
  border-radius: 3px;
  overflow: hidden;
}
.logo-grid li {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 132px;
}
.logo-grid img {
  max-height: 64px;
  width: auto;
  max-width: 150px;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-grid li:hover img { filter: none; opacity: 1; }

.ventures { margin-top: 48px; border-top: 1px solid var(--cloud); padding-top: 28px; }
.ventures h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.venture-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.venture-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 3px;
  padding: 20px;
}
.venture-list img { width: 72px; height: 72px; object-fit: contain; filter: grayscale(1); opacity: 0.8; }
.venture-list strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.venture-list p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }

/* Yard band */
.yard-band { position: relative; border-top: 1px solid var(--cloud); }
.yard-band img { width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; object-position: center 40%; }
.yard-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: 1px solid var(--cloud);
  border-radius: 2px;
  max-width: calc(100% - 2 * var(--gutter));
}
@media (min-width: 1361px) { .yard-caption { left: calc((100% - var(--wrap)) / 2 + var(--gutter)); } }

/* Contact */
.contact { border-top: 1px solid var(--cloud); padding: 96px 0; }
.contact-inner { display: grid; gap: 20px; max-width: 760px; justify-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.contact p { color: var(--slate); font-size: 17px; max-width: 60ch; }
.contact .button { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--cloud); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-grid p, .footer-grid a { font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.footer-grid a { display: block; text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-mark { height: 20px; width: 6px; }
.footer-brand .brand-word { font-size: 18px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--cloud);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--label);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .intro-grid, .dossier, .membership-grid { grid-template-columns: 1fr; gap: 36px; }
  .ledger-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-rows li:nth-child(2) { border-right: 0; }
  .ledger-rows li:nth-child(-n+2) { border-bottom: 1px solid var(--cloud); }
  .hero-photo { padding: 96px 0 130px; min-height: 0; }
  .dossier-flip .dossier-copy { order: 1; }
  .dossier-flip .dossier-figure { order: 2; }
  .principle-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: 16ch; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); max-width: none; }
  .lead { font-size: 17px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta):not([href="#products"]) { display: none; }
  .section-head { padding-top: 56px; }
  .dossier { padding: 40px 0; }
  .principle-grid, .service-grid, .venture-list { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .stack-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .ledger-rows { grid-template-columns: 1fr; }
  .ledger-rows li { border-right: 0; border-bottom: 1px solid var(--cloud); }
  .ledger-rows li:last-child { border-bottom: 0; }
  .hero-photo { padding: 56px 0 120px; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(238, 241, 245, 0.95) 0%, rgba(238, 241, 245, 0.88) 70%, rgba(238, 241, 245, 0.3) 100%); }
  .hero-bg { object-position: 75% center; }
  .ledger-band { margin-top: -64px; }
  .contact { padding: 64px 0; }
  .membership { padding: 56px 0; }
  .button { white-space: normal; }
}
