/* Ordinato — site styles
   Tokens first; everything else references them. */
:root {
  --ink: #1B1F2A;          /* primary dark: hero, CTA, footer, text */
  --paper: #F7F6F3;        /* page ground */
  --card: #FFFFFF;
  --red: #C8102E;          /* accent on light grounds */
  --red-on-dark: #E63946;  /* accent on ink grounds */
  --text: #3A3F4B;         /* body copy on light */
  --muted: #555B66;        /* eyebrows, numbers on light */
  --muted-on-dark: #B9BEC8;
  --lede-on-dark: #D5D8DE;
  --rule: #E2E3E6;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --gutter: 24px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 3px; }

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

/* Falling-squares motif: 6 squares settle from 45° to 0°, last one red */
.squares { display: flex; justify-content: space-between; align-items: center; }
.squares span { width: var(--sq, 18px); height: var(--sq, 18px); border-radius: 2px; background: currentColor; }
.squares span:nth-child(1) { opacity: .15; transform: rotate(45deg); }
.squares span:nth-child(2) { opacity: .30; transform: rotate(34deg); }
.squares span:nth-child(3) { opacity: .45; transform: rotate(24deg); }
.squares span:nth-child(4) { opacity: .60; transform: rotate(15deg); }
.squares span:nth-child(5) { opacity: .75; transform: rotate(8deg); }
.squares span:nth-child(6) { opacity: .90; transform: rotate(3deg); }
.squares span:nth-child(7) { background: var(--accent, var(--red-on-dark)); }

/* Header + hero */
.hero { background: var(--ink); color: #fff; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.topbar .logo img { width: 150px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500;
  border-radius: 999px; min-height: 44px; line-height: 1.2;
}
.btn-ghost { font-size: 15px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.hero-body { display: flex; flex-direction: column; gap: 36px; padding-top: 96px; padding-bottom: 120px; }
.hero h1 {
  margin: 0; max-width: 900px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 8vw, 112px); line-height: .98; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--red-on-dark); }
.hero .squares { max-width: 520px; height: 28px; }
.lede { margin: 0; max-width: 640px; font-size: 21px; line-height: 1.55; color: var(--lede-on-dark); }

/* Sections */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.h2 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.01em;
}

.services { padding-top: 112px; padding-bottom: 96px; }
.services .h2 { max-width: 720px; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.card-num { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.card-num::before { content: ""; width: 14px; height: 14px; border-radius: 2px; background: var(--red); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; }
.card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }

.background { border-top: 1px solid var(--rule); }
.background .wrap { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 96px; padding-bottom: 96px; }
.background-head { flex: 1 1 260px; }
.background-body { flex: 1.4 1 420px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.65; color: var(--text); }
.background-body p { margin: 0; }
.background-body strong { color: var(--ink); font-weight: 600; }

.cta { background: var(--ink); color: #fff; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; padding-top: 112px; padding-bottom: 112px; }
.cta .squares { --sq: 14px; gap: 14px; justify-content: center; }
.cta .squares span:nth-child(1) { opacity: .30; transform: rotate(35deg); }
.cta .squares span:nth-child(2) { opacity: .65; transform: rotate(14deg); }
.cta .squares span:nth-child(3) { opacity: 1; transform: none; background: var(--red-on-dark); }
.cta h2 { max-width: 760px; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn-primary { background: var(--red-on-dark); color: #fff; font-size: 16px; font-weight: 600; padding: 16px 28px; }
.btn-primary:hover { background: #F04E5A; }
.cta .btn-ghost { font-size: 16px; padding: 15px 27px; }

.footer { background: var(--ink); color: var(--muted-on-dark); border-top: 1px solid rgba(255,255,255,.12); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s, border-color .15s; }
}
