/* Rinoceron Corp. — rinoceron.solutions
   Palette taken from a rhino: slate hide, keratin horn, pale dust. */

:root {
  --paper: #ECEFEC;      /* pale, cool dust */
  --paper-2: #E1E6E3;    /* alternate section */
  --hide: #2E3B3D;       /* deep slate, primary surface */
  --hide-2: #3E4D50;     /* lighter hide for borders on dark */
  --ink: #172022;        /* body text */
  --ink-soft: #4A5859;   /* secondary text */
  --horn: #C9B48F;       /* keratin tan, used sparingly */
  --horn-deep: #8A7247;  /* horn for text on light backgrounds */
  --rule: #C6CFCB;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--horn-deep); outline-offset: 3px; border-radius: 3px; }

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

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.875rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

.sprite { position: absolute; }
.page-404 { min-height: 100vh; display: grid; align-items: center; }

/* Header -------------------------------------------------- */
.site-header {
  background: var(--hide);
  color: var(--paper);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; text-decoration: none;
}
.brand-mark { width: 1.75rem; height: 1.75rem; color: var(--hide-2); }
.nav { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; font-size: var(--step--1); font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .nav-cta { opacity: 1; padding: 0.4rem 0.875rem; border: 1px solid var(--horn); border-radius: 999px; color: var(--horn); }
.nav .nav-cta:hover { background: var(--horn); color: var(--hide); text-decoration: none; }

@media (max-width: 640px) {
  .nav li:not(:last-child) { display: none; }
}

/* Hero ---------------------------------------------------- */
.hero {
  background: var(--hide);
  color: var(--paper);
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 11ch;
}
.lede {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: #C9D2CF;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.375rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--horn); color: var(--hide); }
.btn-primary:hover { background: #DCCAA8; }
.btn-quiet { color: var(--paper); border: 1px solid var(--hide-2); }
.btn-quiet:hover { border-color: var(--paper); }

/* The exchange panel: the one loud element on the page. */
.exchange {
  margin: 0;
  background: #222D2F;
  border: 1px solid var(--hide-2);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(5, 12, 13, 0.7);
  overflow: hidden;
  transform: rotate(0.8deg);
  animation: settle 0.9s cubic-bezier(.2,.7,.2,1) 0.15s both;
}
@keyframes settle {
  from { opacity: 0; transform: translateY(14px) rotate(2.4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0.8deg); }
}
@media (prefers-reduced-motion: reduce) { .exchange { animation: none; } }

.exchange-bar {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--hide-2);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--hide-2); }
.exchange-title { margin-left: 0.625rem; font-family: var(--mono); font-size: 0.75rem; color: #8C9C9A; }
.exchange-body {
  margin: 0; padding: 1.25rem 1.375rem 1.5rem;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7;
  color: #D7DEDB; overflow-x: auto; white-space: pre;
}
.exchange-body .k  { color: var(--horn); font-weight: 500; }
.exchange-body .c  { color: #7F908E; }
.exchange-body .s  { color: #A9C2BB; }
.exchange-body .v  { color: #E8E1D2; }
.exchange-body .ok { color: var(--horn); font-weight: 500; }

/* Sections ------------------------------------------------ */
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }
.section-title { font-size: var(--step-3); letter-spacing: -0.025em; font-weight: 800; }
.section-intro { margin-top: 0.875rem; color: var(--ink-soft); max-width: 36rem; }

/* Services: a ledger, name on the left, detail on the right. */
.services { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.25rem clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: 2.25rem;
  border-top: 2px solid var(--hide);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service h3 { font-size: var(--step-2); letter-spacing: -0.02em; max-width: 14ch; }
.service-body { max-width: 38rem; }
.service-body > p { color: var(--ink); }
.outputs { list-style: none; margin: 1.25rem 0 0; padding: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.outputs li { position: relative; padding-left: 1.375rem; margin-top: 0.375rem; }
.outputs li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.625rem; height: 2px; background: var(--horn-deep);
}

/* Steps: a real sequence, so it's numbered. */
.steps {
  list-style: none; counter-reset: step;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hide); color: var(--paper);
  font-weight: 700; font-size: 0.9375rem;
}
.steps li::after {
  content: ""; position: absolute; top: 1.125rem; left: 2.75rem; right: -1.5rem;
  height: 1px; background: var(--rule);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--step-1); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.steps p { color: var(--ink-soft); font-size: 0.9375rem; }

/* About --------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem);
}
.about-body { max-width: 38rem; }
.about-lead { font-size: var(--step-1); line-height: 1.5; }
.about-body p:not(.about-lead) { color: var(--ink-soft); }

/* Contact ------------------------------------------------- */
.contact { background: var(--hide); color: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: end;
}
.contact-intro { margin-top: 0.875rem; color: #C9D2CF; max-width: 30rem; }
.contact-email {
  display: inline-block;
  font-size: clamp(1.375rem, 0.9rem + 2.2vw, 2.375rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--horn); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 0.15rem;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: #DCCAA8; }
.contact-details address {
  margin-top: 1.75rem; font-style: normal; color: #C9D2CF; font-size: 0.9375rem; line-height: 1.7;
}

/* Footer -------------------------------------------------- */
.site-footer { background: var(--hide); color: #8C9C9A; border-top: 1px solid var(--hide-2); font-size: var(--step--1); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.footer-inner p { margin: 0; }

/* Responsive ---------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .exchange { max-width: 34rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  .service, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service h3 { max-width: none; }
  .exchange { transform: none; animation: none; }
  .exchange-body { font-size: 0.75rem; padding-inline: 1rem; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .btn { width: 100%; }
}
