/* Alekun site styles: design H "Gold Monolith".
   Phone layout below 1024px (drawn at 390px), desktop from 1024px (drawn at
   1440px). At those two widths the pages match the design boards exactly. */

:root {
  --ink: #141312;
  --gold: #B98A45;
  --gold-dk: #7A5A26;
  --gold-lt: #C9A15E;
  --body: #3D3A35;
  --text-2: #4A463F;
  --muted: #6B665E;
  --muted-2: #5A564F;
  --hair: #ECE7DE;
  --ring: #E6E0D5;
  --btn-line: #CFC8BC;
  --panel: #F6F5F2;
  --foot-text: #CFC9BE;
  --foot-muted: #A8A297;
  --foot-line: #34312C;
  --serif: 'Bodoni Moda', Didot, 'Bodoni 72', serif;
  --sans: Jost, 'Century Gothic', Futura, sans-serif;
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

@media (min-width: 1024px) {
  :root { --pad: clamp(48px, 6.667vw, 96px); }
}

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

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: var(--ink); }
a:hover { color: var(--gold-dk); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@keyframes ayFlow { to { stroke-dashoffset: -24; } }
@keyframes ayCalcFlow { to { stroke-dashoffset: -28; } }
@keyframes ayRun {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes ayRunV {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes aySpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: #FFFFFF; text-decoration: none;
}
.skip:focus { top: 12px; color: #FFFFFF; }

/* Bits of copy that differ between the phone and desktop boards. */
.d-only { display: none; }
.d-block { display: none; }
@media (min-width: 1024px) {
  .d-only { display: inline; }
  .d-block { display: block; }
  .p-only { display: none; }
}

.wrap {
  width: 100%;
  max-width: calc(640px + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
@media (min-width: 1024px) {
  .wrap { max-width: 1440px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.btn:hover { color: #FFFFFF; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); }

@media (min-width: 1024px) {
  .btn { gap: 12px; height: 56px; padding: 0 28px; font-size: 17px; }
  .btn svg { width: 18px; height: 18px; }
}

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 72px;
  padding-top: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  text-decoration: none;
}
.brand-mark { position: relative; display: block; width: 32px; height: 36px; }
.brand-a {
  position: absolute; left: 3px; top: 0;
  font-family: var(--serif); font-size: 34px; line-height: 36px; font-weight: 500;
}
.brand-mark svg { position: absolute; left: 0; top: 9px; width: 32px; height: 24px; }
.brand-mark .arc { stroke-width: 2.6; }
.brand-word { font-family: var(--serif); font-size: 14px; letter-spacing: 0.34em; }

.site-nav {
  display: none;
  align-items: center;
  gap: 36px;
  height: 48px;
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold-dk); }
.site-nav .btn-nav {
  display: flex; align-items: center; height: 48px; padding: 0 24px;
  background: var(--ink); color: #FFFFFF; font-weight: 500;
}

.menu-btn {
  height: 44px;
  margin: 2px -12px 0 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .site-header .wrap { height: 96px; padding-top: 34px; }
  .brand { gap: 14px; height: 52px; }
  .brand-mark { width: 42px; height: 46px; }
  .brand-a { left: 4px; font-size: 44px; line-height: 46px; }
  .brand-mark svg { top: 12px; width: 40px; height: 30px; }
  .brand-mark .arc { stroke-width: 2.4; }
  .brand-word { font-size: 16px; letter-spacing: 0.36em; }
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* Phone menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  background: #FFFFFF;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; padding-top: 16px; border-bottom: 1px solid var(--hair); }
.menu nav a {
  display: flex; align-items: center; min-height: 64px; border-top: 1px solid var(--hair);
  font-family: var(--serif); font-size: 30px; font-weight: 500; text-decoration: none;
}
.menu-foot { display: flex; flex-direction: column; gap: 18px; padding: 28px 0 40px; }
.menu-mail { font-size: 15px; color: var(--muted); text-decoration: none; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Shared type ---------- */

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-dk);
}
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.sec-head h2, .h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .kicker { font-size: 12px; }
  .sec-head { gap: 16px; }
  .sec-head h2, .h2 { font-size: 56px; line-height: 1.02; letter-spacing: -0.015em; }
}

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

.hero .wrap { display: flex; flex-direction: column; }
.hero-text { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: var(--gold-dk);
  white-space: pre;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero h1 i, .page-hero h1 i, .h2 i { font-weight: 400; }
.lede { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.hero-ctas { display: flex; flex-direction: column; gap: 18px; }
.text-link {
  display: flex; align-items: center; justify-content: center; height: 44px;
  font-size: 16px; text-underline-offset: 6px;
}
.hero-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; color: var(--muted); }

.hero-art { margin: 16px calc(-1 * var(--pad)) 0; }
.hero-art canvas {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 390 / 420;
  touch-action: pan-y;
}
.hint { text-align: center; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.hint .hover-hint { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .hint .hover-hint { display: inline; }
  .hint .touch-hint { display: none; }
}

@media (min-width: 1024px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 584fr) minmax(0, 720fr);
    padding-right: calc(var(--pad) * 0.4167);
  }
  .hero-text { gap: 26px; padding: 80px 24px 0 0; max-width: 584px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.42em; }
  .hero h1 { font-size: clamp(60px, 6.111vw, 88px); line-height: 0.98; }
  .lede { max-width: 520px; font-size: 19px; line-height: 1.55; }
  .hero-ctas { flex-direction: row; align-items: center; gap: 28px; }
  .hero-ctas .btn { align-self: flex-start; }
  .text-link { display: inline; height: auto; font-size: 17px; }
  .hero-art { margin: 0; }
  .hero-art canvas { max-width: none; aspect-ratio: 720 / 760; cursor: grab; }
  .hint { height: 40px; margin-top: 4px; letter-spacing: 0.08em; }
}

/* ---------- Services (and steps on service pages) ---------- */

/* clip: the running dot's box travels past the end of its line. */
.services, .band { overflow: clip; }
.services .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 48px; }

.svc-list { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
/* Items share column 1 with the line, which runs behind the icons. */
.svc { position: relative; grid-column: 1; display: flex; gap: 16px; min-height: 190px; }
.svc:nth-child(2) { grid-row: 1; }
.svc:nth-child(3) { grid-row: 2; }
.svc:nth-child(4) { grid-row: 3; }
.svc:nth-child(5) { grid-row: 4; }
.svc-list.three .svc:last-child { min-height: 0; }

.svc-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ring);
  background: #FFFFFF;
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-icon [stroke] { stroke-width: 2.4; }
.svc-icon .dot { r: 2.4px; }
.svc-num { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--gold-dk); }
.svc-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.svc h3 { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.15; font-weight: 500; }
.svc p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.svc a { font-size: 14px; font-weight: 500; color: var(--gold-dk); text-underline-offset: 5px; }
.svc a:hover { color: var(--ink); }

/* The flowing gold line and the dot that runs along it. */
.svc-track {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  width: 8px;
  margin: 24px 0 -24px 20px;
  pointer-events: none;
}
.svc-list.three .svc-track { grid-row: 1 / 3; }
.svc-track svg { position: absolute; inset: 0; width: 8px; height: 100%; overflow: visible; }
.svc-track line { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 6; animation: ayFlow 1.6s linear infinite; }
.svc-track .l-h { display: none; }
@media (min-width: 1024px) {
  .svc-track .l-v { display: none; }
  .svc-track .l-h { display: inline; }
}
.svc-run {
  position: absolute; left: -1px; top: -5px; width: 10px; height: 100%;
  animation: ayRunV 6s linear infinite;
}
.svc-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(185, 138, 69, 0.18);
}

@media (min-width: 1024px) {
  .services { border-top: 1px solid var(--hair); }
  .services .wrap { gap: 56px; padding-top: 96px; padding-bottom: 72px; }
  .svc-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .svc-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc, .svc:nth-child(n) { grid-row: 1; grid-column: auto; flex-direction: column; gap: 18px; min-height: 0; }
  .svc-icon { width: 64px; height: 64px; }
  .svc-icon svg { width: 36px; height: 36px; }
  .svc-icon [stroke] { stroke-width: 2; }
  .svc-icon .dot { r: 2px; }
  .svc-num { font-size: 26px; }
  .svc-body { gap: 18px; }
  .svc h3 { font-size: 30px; line-height: 1.1; }
  .svc p { font-size: 16px; line-height: 1.55; }
  .svc a { font-size: 15px; }
  .svc-track, .svc-list.three .svc-track {
    position: absolute; left: 32px; right: 32px; top: 28px;
    width: auto; height: 8px; margin: 0;
  }
  .svc-track svg { width: 100%; height: 8px; }
  .svc-run {
    left: -5px; top: -1px; width: 100%; height: 10px;
    animation-name: ayRun;
  }
}

/* ---------- The numbers ---------- */

.numbers .wrap { padding-left: 0; padding-right: 0; }
@media (min-width: 1024px) {
  .numbers .wrap { padding: 0 var(--pad) 96px; }
}

.calc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 40px var(--pad);
  background: #FFFFFF;
}
.calc-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.calc .kicker { font-size: 12px; }
.calc h2 {
  margin: 0; font-family: var(--serif); font-size: 36px; line-height: 1.02;
  font-weight: 500; letter-spacing: -0.015em; text-wrap: balance;
}
.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-tab {
  height: 44px; padding: 0 18px; border: 1px solid var(--btn-line);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.calc-tab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.calc-rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--ring); }
.calc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; border-top: 1px solid var(--ring);
}
.calc-label { min-width: 0; font-size: 15px; line-height: 1.3; }
.calc-step { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.calc-step button {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--btn-line); background: transparent; color: var(--ink); cursor: pointer;
}
.calc-step svg { width: 16px; height: 16px; }
.calc-val {
  width: 92px; text-align: center; font-family: var(--serif); font-size: 24px;
  font-weight: 500; font-variant-numeric: lining-nums tabular-nums;
}
.calc-note { font-size: 13px; color: var(--muted-2); }
.calc-arrow { display: none; }
.calc-panel {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 14px; padding: 28px 24px; background: var(--panel); border: 1px solid var(--ring);
}
.calc-rlabel { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; color: var(--muted-2); }
.calc-result {
  font-family: var(--serif); font-size: 64px; line-height: 0.95; font-weight: 500;
  letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: lining-nums tabular-nums;
}
.calc-caption { font-size: 16px; line-height: 1.4; }
.calc-math { font-size: 13px; color: var(--muted-2); }
.calc-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.calc-links a { color: var(--gold-dk); font-size: 15px; font-weight: 500; text-underline-offset: 5px; }
.calc-links a:hover { color: var(--ink); }

@media (min-width: 1024px) {
  .calc { flex-direction: row; gap: 32px; padding: 56px 64px; }
  .calc h2 { font-size: 52px; }
  .calc-label { font-size: 17px; }
  .calc-val { width: 120px; font-size: 30px; }
  .calc-arrow { display: flex; flex: 0 0 72px; align-items: center; justify-content: center; }
  .calc-arrow path:first-child { animation: ayCalcFlow 1.2s linear infinite; }
  .calc-panel { padding: 40px 44px; }
  .calc-result { font-size: 112px; }
  .calc-caption { font-size: 19px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #FFFFFF; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; padding-bottom: 32px; }
.foot-top, .foot-tag, .foot-cta { display: flex; flex-direction: column; gap: 28px; }
.foot-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.36em; color: var(--gold-lt); }
.foot-big { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1.05; font-weight: 400; }
.foot-mail { font-size: 15px; color: var(--foot-text); text-decoration: none; }
.foot-mail:hover { color: #FFFFFF; text-decoration: underline; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--foot-line);
  font-size: 12px; color: var(--foot-muted);
}
.foot-bottom a { color: var(--foot-text); }
.foot-bottom a:hover { color: #FFFFFF; }

@media (min-width: 1024px) {
  .site-footer .wrap { gap: 56px; padding-top: 72px; padding-bottom: 44px; }
  .foot-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .foot-tag { gap: 14px; }
  .foot-kicker { font-size: 14px; letter-spacing: 0.42em; }
  .foot-big { font-size: 56px; line-height: 1; }
  .foot-cta { align-items: flex-end; gap: 14px; }
  .foot-bottom { gap: 24px; padding-top: 24px; font-size: 13px; }
}

/* ---------- Inner pages (services, about, demo, privacy) ---------- */

.page-hero .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 56px; }
.page-hero-text { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: 46px; text-wrap: balance; }

.emblem { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.emblem-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--ring); background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.emblem-ring svg { width: 46%; height: 46%; }
.emblem-ring [stroke] { stroke-width: 1.6; }
.emblem-orbit { position: absolute; inset: -18px; animation: aySpin 24s linear infinite; }
.emblem-orbit svg { width: 100%; height: 100%; overflow: visible; }
/* Orbit sizes are in the 100-unit viewBox: about 1.4px dashes on a phone, 6px on desktop. */
.emblem-orbit circle.path { fill: none; stroke: var(--gold); stroke-width: 0.35; stroke-dasharray: 1.4 2; opacity: 0.75; }
.emblem-orbit circle.bead { fill: var(--gold); }

.band { border-top: 1px solid var(--hair); }
.band .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 56px; }

.gets-wrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gets { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ring); }
.gets li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--ring);
  font-size: 16px; line-height: 1.45;
}
.gets svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.gets a { color: var(--gold-dk); text-underline-offset: 4px; }
.gets a:hover { color: var(--ink); }
.aside-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* The logo's A and gold arrow, scaled up inside an emblem (About page). */
.emblem-mark { position: relative; display: block; width: 0.955em; height: 1.045em; font-size: 92px; }
.emblem-a {
  position: absolute; left: 0.09em; top: 0;
  font-family: var(--serif); font-size: 1em; line-height: 1.045em; font-weight: 500;
}
.emblem-mark svg { position: absolute; left: 0; top: 0.273em; width: 0.909em; height: 0.682em; }
.emblem-mark [stroke] { stroke-width: 2.4; }
@media (min-width: 1024px) { .emblem-mark { font-size: 150px; } }

.closing { background: var(--panel); border-top: 1px solid var(--hair); }
.closing .wrap { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.closing p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--body); }
.closing .btn { align-self: stretch; }

.prose { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.prose h2 { margin: 24px 0 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--gold-dk); text-underline-offset: 4px; }
.prose a:hover { color: var(--ink); }
.updated { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }

@media (min-width: 1024px) {
  .page-hero .wrap {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 96px;
  }
  .page-hero-text { gap: 26px; }
  .page-hero h1 { font-size: clamp(56px, 5.4vw, 78px); line-height: 0.98; }
  .page-hero .hero-ctas { flex-direction: row; align-items: center; gap: 28px; }
  .page-hero .hero-ctas .btn { align-self: flex-start; }
  .emblem { width: 340px; height: 340px; }
  .emblem-orbit { inset: -28px; }
  .band .wrap { gap: 56px; padding-top: 96px; padding-bottom: 96px; }
  .band.split .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .gets li { font-size: 17px; padding: 18px 0; }
  .closing .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
    column-gap: 64px; row-gap: 20px; padding-top: 88px; padding-bottom: 88px;
  }
  .closing .wrap > * { grid-column: 1; }
  .closing .btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
  .closing p { font-size: 18px; }
  .prose h2 { font-size: 34px; margin-top: 40px; }
  .prose p, .prose li { font-size: 17px; }
}
