/*
 * Orb Finance
 *
 * A deliberately monochrome system: the brand supplies exactly two colours, so
 * hierarchy is carried by contrast, weight and space rather than hue. The ring
 * and the small diamond from the logo are the only decorative devices.
 */

:root {
  /* The two brand colours, plus the tones derived from them. */
  --ink: #0D0D0D;
  --ink-raised: #151515;
  --ink-line: rgba(233, 233, 230, 0.14);
  --ink-soft: rgba(233, 233, 230, 0.62);
  --ink-faint: rgba(233, 233, 230, 0.38);

  --paper: #E9E9E6;
  --paper-raised: #F2F2F0;
  --white: #FFFFFF;

  --text: #0D0D0D;
  --text-body: #4B4B47;
  --text-muted: #86867F;
  --line: rgba(13, 13, 13, 0.12);

  --ink-rgb: 13, 13, 13;
  --paper-rgb: 233, 233, 230;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-quick: 0.18s;
  --dur-base: 0.42s;
  --dur-slow: 0.8s;
  --lift: 0 18px 50px rgba(13, 13, 13, 0.10);
  --lift-dark: 0 18px 50px rgba(0, 0, 0, 0.5);

  --shell: 1180px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
/* The diamond that marks the gap in the logo's ring. */
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: currentColor; transform: rotate(45deg);
}

.section-title { font-size: clamp(30px, 4vw, 46px); }
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 62ch;
}

.on-ink { background: var(--ink); color: var(--ink-soft); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--paper); }
.on-ink .eyebrow { color: var(--ink-faint); }
.on-ink .lead { color: var(--ink-soft); }

section { padding: clamp(72px, 9vw, 128px) 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-quick) var(--ease),
              color var(--dur-quick) var(--ease),
              border-color var(--dur-quick) var(--ease),
              transform var(--dur-quick) var(--ease);
}
.btn svg { width: 16px; height: 16px; }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; transform: translateY(-2px); }

.btn-line {
  background: transparent; color: var(--text); border-color: rgba(13, 13, 13, 0.28);
}
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }

.on-ink .btn-solid { background: var(--paper); color: var(--ink); }
.on-ink .btn-solid:hover { background: var(--white); }
.on-ink .btn-line { color: var(--paper); border-color: rgba(233, 233, 230, 0.32); }
.on-ink .btn-line:hover { border-color: var(--paper); }

/* ------------------------------------------------------------- navigation */

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}
#nav.stuck { background: rgba(13, 13, 13, 0.95); border-bottom-color: var(--ink-line); }

.nav-inner {
  width: 100%; max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  transition: height var(--dur-base) var(--ease);
}
#nav.stuck .nav-inner { height: 68px; }

.nav-logo { flex: 0 0 auto; }
.nav-logo img {
  height: 54px; width: auto; max-width: none;
  transition: height var(--dur-base) var(--ease);
}
#nav.stuck .nav-logo img { height: 42px; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--ink-faint);
  position: relative; padding: 6px 0;
  transition: color var(--dur-quick) var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--paper);
  transition: right var(--dur-base) var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-call {
  display: none;
  width: 42px; height: 42px; border-radius: 2px;
  align-items: center; justify-content: center;
  border: 1px solid var(--ink-line); color: var(--paper);
}
.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--paper);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-quick);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 88px 0 auto 0; z-index: 890;
  background: var(--ink); border-bottom: 1px solid var(--ink-line);
  padding: 8px var(--gutter) 28px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all var(--dur-base) var(--ease);
}
.nav-drawer.open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-drawer ul { list-style: none; }
.nav-drawer a {
  display: block; padding: 16px 0; color: var(--ink-soft);
  font-family: 'Space Grotesk', sans-serif; font-size: 17px;
  border-bottom: 1px solid var(--ink-line);
}
.nav-drawer .btn { width: 100%; margin-top: 22px; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 140px; padding-bottom: 100px;
}
/* The logo's mark, drawn large and faint behind the type: one ring with the
   same small break at roughly 1:30. */
.hero-orb {
  position: absolute; top: 50%; right: -8%;
  width: min(760px, 68vw); aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-orb svg { width: 100%; height: 100%; display: block; }
.hero-orb circle {
  fill: none;
  stroke: rgba(233, 233, 230, 0.15);
  stroke-width: 2;
  /* Circumference at r=48 is 301.6; the last 6 units are left undrawn. */
  stroke-dasharray: 295.6 6;
  transform: rotate(-39deg);
  transform-origin: 50% 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-tagline {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- section */

.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head .lead { margin-top: 20px; }
.section-head.centred { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centred .lead { margin-left: auto; margin-right: auto; }
.section-head.centred .eyebrow { justify-content: center; }

.prose p + p { margin-top: 18px; }

/* ------------------------------------------------------------------ cards */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--paper);
  padding: clamp(30px, 3.4vw, 46px);
  transition: background var(--dur-base) var(--ease);
}
.card:hover { background: var(--paper-raised); }
.card-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; letter-spacing: 0.2em; color: var(--text-muted);
  margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin-bottom: 14px; }
.card p { font-size: 15.5px; line-height: 1.72; }
.card p + p { margin-top: 12px; }

/* On ink the same grid inverts, keeping the hairline structure. */
.on-ink .grid-2 { background: var(--ink-line); border-color: var(--ink-line); }
.on-ink .card { background: var(--ink); }
.on-ink .card:hover { background: var(--ink-raised); }
.on-ink .card-index { color: var(--ink-faint); }
.on-ink .card p { color: var(--ink-soft); }

/* ----------------------------------------------------------------- broker */

.broker { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.broker-figure { position: relative; }
.broker-frame {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--paper-raised); border: 1px solid var(--line);
}
.broker-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.broker-name { margin-top: 26px; }
.broker-name h3 { font-size: 26px; }
.broker-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 8px;
}
.broker-body p + p { margin-top: 18px; }

/* ------------------------------------------------------------------ steps */

.steps { border-top: 1px solid var(--ink-line); }
.step {
  display: grid; grid-template-columns: 96px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 34px 0; border-bottom: 1px solid var(--ink-line);
  transition: padding-left var(--dur-base) var(--ease);
}
.step:hover { padding-left: 12px; }
.step-no {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; letter-spacing: 0.2em; color: var(--ink-faint);
  padding-top: 5px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-soft); max-width: 66ch; }
.step p + p { margin-top: 8px; }

/* ------------------------------------------------------------------- form */

.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: transparent; color: var(--paper);
  border: 1px solid var(--ink-line); border-radius: 2px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  transition: border-color var(--dur-quick) var(--ease);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(233,233,230,0.28); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paper); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23E9E9E6' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--ink); color: var(--paper); }
.field textarea { resize: vertical; min-height: 96px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.is-ok { color: var(--paper); }
.form-status.is-error { color: #FF8A8A; }

.contact-lines { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ink-line); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-line svg { width: 18px; height: 18px; color: var(--ink-faint); flex: 0 0 18px; margin-top: 3px; }
.contact-line span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; font-family: 'Space Grotesk', sans-serif; }
.contact-line a, .contact-line p { color: var(--paper); font-size: 16px; }

/* ----------------------------------------------------------------- footer */

.footer { background: var(--ink); border-top: 1px solid var(--ink-line); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 22px; }
.footer-blurb { font-size: 14.5px; color: var(--ink-faint); max-width: 40ch; }
.footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper); margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer li a, .footer-lines a, .footer-lines p { font-size: 14.5px; color: var(--ink-faint); transition: color var(--dur-quick) var(--ease); }
.footer li a:hover, .footer-lines a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--ink-line); padding-top: 30px; }
.footer-legal p { font-size: 12.5px; line-height: 1.75; color: rgba(233,233,230,0.3); }
.footer-legal p + p { margin-top: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; font-size: 12.5px; color: rgba(233,233,230,0.3); }

/* -------------------------------------------------------------- animation */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  /* Text links are only as tall as their line box, so pad them out to a
     comfortable tap target rather than relying on the gap between them. */
  .footer li { margin-bottom: 0; }
  .footer li a { display: block; padding: 12px 0; }
  .contact-line { margin-bottom: 8px; }
  .contact-line a { display: inline-block; padding: 11px 0; }
  .nav-links { display: none; }
  .nav-call, .nav-toggle { display: flex; }
  /* The drawer carries the call to action, so the bar keeps only the essentials. */
  .nav-actions > .btn { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .broker { grid-template-columns: 1fr; }
  .broker-figure { max-width: 420px; }
  .cta-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-orb { right: -30%; opacity: 0.7; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .nav-inner { height: 74px; }
  .nav-logo img { height: 42px; }
  #nav.stuck .nav-logo img { height: 36px; }
  .nav-drawer { inset-block-start: 74px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-no { padding-top: 0; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 26px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .hero-orb {
    width: 300px; top: auto; bottom: -70px; right: -120px;
    transform: none; opacity: 0.85;
  }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .step:hover { transform: none; padding-left: 0; }
}
