/* Mastermind Acquisitions — stylesheet */

:root {
  --bone: #F5F1E8;          /* aged paper, the family link to Moguls cream */
  --ink: #141412;           /* warm ink */
  --ink-2: #4A4742;
  --ink-3: #6B675F;
  --line: rgba(20, 20, 18, 0.14);
  --line-strong: rgba(20, 20, 18, 0.34);
  --patina: #1F7A6D;        /* oxidised bronze, used only in the mark */
  --accent: var(--patina);

  --font-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 19px/1.6 var(--font-serif);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

svg { display: block; }
a { color: inherit; }
p, h1, h2 { margin: 0; }

::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 14px; background: var(--ink); color: var(--bone); text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* Small-capital labels */
.caps, .kicker, .step__num, .brand__name, .header__link, .btn, .corr__meta, .footer__line {
  font-variant-caps: all-small-caps;
  font-feature-settings: "kern", "liga", "smcp", "c2sc";
  letter-spacing: 0.18em;
}

/* Header */
.header { padding: 28px 0 8px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 30px; height: 22px; color: var(--ink); flex: none; }
.brand__name { font-size: 18px; font-weight: 500; white-space: nowrap; }
.header__link {
  font-size: 17px; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 1px;
  transition: border-color 0.2s;
}
.header__link:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .header { padding-top: 24px; }
  .header__inner { flex-direction: column; gap: 16px; }
  .brand__name { font-size: 16px; letter-spacing: 0.16em; }
  .header__link { font-size: 16px; }
}

/* Hero: the three steps */
.hero { text-align: center; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); }

.kicker { font-size: 17px; font-weight: 400; color: var(--ink-3); }
.kicker::after { content: ""; display: block; width: 44px; height: 1px; background: var(--line-strong); margin: 22px auto 0; }

.steps {
  list-style: none; padding: 0;
  margin: 0 auto; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px double var(--line-strong);
  border-bottom: 3px double var(--line-strong);
}
.step { display: grid; gap: 22px; justify-items: center; align-content: start; padding: 36px 20px 40px; }
.step + .step { border-left: 1px solid var(--line); }
.step__num { font-size: 17px; color: var(--ink-3); letter-spacing: 0.24em; }
.step__word { font-size: clamp(58px, 8vw, 116px); line-height: 0.95; letter-spacing: -0.015em; font-weight: 400; }
.step__word--emblem { display: flex; align-items: center; justify-content: center; height: 1em; }
.step__note { font-size: 20px; font-style: italic; color: var(--ink-2); }

.emblem {
  display: grid; place-items: center;
  width: 0.84em; height: 0.84em; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink);
}
.emblem svg { width: 50%; height: 50%; fill: currentColor; }

.hero__cta { margin-top: clamp(36px, 5vw, 56px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none;
  font-size: 18px; font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bone); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { border-left: 0; padding: 30px 0 34px; gap: 16px; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__word { font-size: clamp(56px, 17vw, 84px); }
}

/* Correspondence */
.corr { text-align: center; padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.corr__details { display: grid; justify-items: center; gap: 12px; margin: 36px auto 0; font-size: 22px; }
.corr__details a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.corr__details a:hover { border-color: var(--ink); }
.corr__details [hidden] { display: none; }
.corr__meta { font-size: 17px; color: var(--ink-3); }

/* Footer */
.footer { border-top: 3px double var(--line-strong); padding: 34px 0 56px; text-align: center; font-size: 16px; }
.footer__line { font-size: 16px; color: var(--ink-2); }
.footer__legal { margin: 14px auto 0; font-size: 16px; line-height: 1.55; color: var(--ink-3); }

/* Motion: a quiet fade */
.reveal { opacity: 0; transition: opacity 0.9s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transition: none; }
  .btn, .header__link, .corr__details a { transition: none; }
}
