/* ==========================================================================
   Kalorama Advisory Group
   Design system + styles
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Graphite scale — warm-neutral ground, machined rather than corporate.
     Warm bias keeps it from reading as generic dark mode. */
  --shade-900: #131211;
  --shade-850: #1a1917;
  --shade-800: #211f1c;
  --shade-750: #292621;
  --shade-700: #3a352e;
  --shade-650: #4a443b;
  --line-dark: rgba(233, 169, 124, 0.15);

  /* Copper / ember — the single accent. Reads as metal, heat, and signal,
     which is what the schematics and the focus axis are about. */
  --copper-600: #a8532a;
  --copper-500: #c86a3a;
  --copper-400: #dd8551;
  --copper-300: #e9a97c;

  /* Text on dark — warm whites, never pure #fff */
  --on-dark: #fbf7f2;
  --on-dark-body: #d6ccc0;
  --on-dark-muted: #a2968a;

  /* Light band — bone paper, not office grey */
  --paper: #f2ede6;
  --paper-2: #fbf9f5;
  --text-strong: #221d18;
  --text-body: #6b6055;
  --rust-600: #9a4a1e;
  --line-light: #ddd5c9;

  /* Type */
  --font-serif: "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style",
    "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacious density scale (density dial 3/10) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --section-y: clamp(80px, 11vw, 160px);
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 68ch;
  --max: 1360px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 260ms;

  --nav-h: 76px;
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--shade-850);
  color: var(--on-dark-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--on-dark);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Accessible focus — never removed, only restyled */
:focus-visible {
  outline: 2px solid var(--copper-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--light :focus-visible {
  outline-color: var(--rust-600);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 200;
  background: var(--copper-600);
  color: var(--on-dark);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 180ms var(--ease-expo);
}

.skip-link:focus {
  top: var(--space-3);
}

/* --- Layout primitives -------------------------------------------------- */

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

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--light {
  background: var(--paper);
  color: var(--text-body);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--text-strong);
}

.section--deep {
  background: var(--shade-900);
}

/* --- Typography roles --------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin: 0 0 var(--space-3);
}

.section--light .eyebrow {
  color: var(--rust-600);
}

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.h-section {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

.h-card {
  font-size: clamp(1.32rem, 1.9vw, 1.65rem);
  line-height: 1.22;
}

.lede {
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  color: var(--on-dark-body);
  max-width: var(--measure);
}

.section--light .lede {
  color: var(--text-body);
}

.body-lg {
  font-size: 1.05rem;
  max-width: var(--measure);
}

/* --- Link CTA (reference: "OUR FIRM") ----------------------------------- */

.link-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper-300);
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
  transition: color var(--dur) var(--ease-expo),
    border-color var(--dur) var(--ease-expo);
}

.link-cta:hover {
  color: var(--on-dark);
}

.section--light .link-cta {
  color: var(--rust-600);
}

.section--light .link-cta:hover {
  color: var(--text-strong);
}

.link-inline {
  color: var(--copper-300);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease-expo);
}

.link-inline:hover {
  color: var(--on-dark);
}

.section--light .link-inline {
  color: var(--rust-600);
}

.section--light .link-inline:hover {
  color: var(--text-strong);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(26, 25, 23, 0.84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-expo),
    background var(--dur) var(--ease-expo);
}

.site-header.is-stuck {
  border-bottom-color: var(--line-dark);
  background: rgba(19, 18, 17, 0.93);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-dark);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.brand__sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 4px;
}

/* Nav links */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--on-dark-body);
  padding: 10px 0;
  cursor: pointer;
  transition: color var(--dur) var(--ease-expo);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: var(--copper-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-expo);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--on-dark);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--on-dark);
  border: 1px solid var(--shade-700);
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur) var(--ease-expo),
    border-color var(--dur) var(--ease-expo);
}

.nav__cta:hover {
  background: var(--copper-600);
  border-color: var(--copper-600);
}

/* Mobile toggle — 44x44 touch target */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--on-dark);
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: background 140ms linear;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-expo);
}

.nav__toggle span::before {
  top: -7px;
}
.nav__toggle span::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--shade-900);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--space-3) var(--gutter) var(--space-4);
    display: grid;
    gap: 4px;
    transform-origin: top;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 380ms var(--ease-expo);
    pointer-events: none;
  }

  .nav__menu.is-open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    /* Must be block here: an inline element drops vertical margin and lets
       its padding and border bleed over the link above it. */
    display: block;
    margin-top: var(--space-3);
    text-align: center;
    padding: 14px 20px;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(96px, 15vw, 190px) clamp(80px, 12vw, 150px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  max-width: 17ch;
}

.hero__lede {
  margin-top: var(--space-4);
  max-width: 60ch;
  font-size: clamp(1.1rem, 1.6vw, 1.36rem);
  line-height: 1.55;
}

.hero__actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Ambient field behind hero */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      58% 66% at 78% 26%,
      rgba(200, 106, 58, 0.26) 0%,
      rgba(200, 106, 58, 0) 62%
    ),
    radial-gradient(
      44% 52% at 12% 88%,
      rgba(233, 169, 124, 0.12) 0%,
      rgba(233, 169, 124, 0) 68%
    );
}

.hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-dark) 22%,
    var(--line-dark) 78%,
    transparent
  );
}

/* --- Stat strip --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}

.stat {
  background: var(--shade-850);
  padding: var(--space-4) clamp(20px, 3vw, 40px);
}

.section--deep .stat {
  background: var(--shade-900);
}

.stat__k {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--on-dark);
  line-height: 1.1;
}

.stat__v {
  margin-top: 10px;
  font-size: 14px;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* --- Split heading + body ---------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* --- Capability list (What we do) --------------------------------------- */

.caps {
  margin-top: var(--space-6);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.cap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-dark);
}

.cap__num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--copper-300);
  padding-top: 6px;
}

.cap__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.cap__body {
  font-size: 1.02rem;
  color: var(--on-dark-body);
}

@media (max-width: 820px) {
  .cap {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px 20px;
  }

  .cap__body {
    grid-column: 2;
  }
}

/* --- Focus: progression axis -------------------------------------------- */

/* The axis needs the full measure to breathe — intro sits above it. */
.platform {
  margin-top: var(--space-5);
}

.platform__intro {
  max-width: 58ch;
}

.axis {
  margin-top: clamp(48px, 6vw, 96px);
}

/* Progression axis: simulation → physical world */

.axis {
  width: 100%;
  height: auto;
}

.axis__line {
  stroke: url(#axisGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  transition: stroke-dashoffset 1200ms var(--ease-expo);
}

.reveal.is-visible .axis__line,
.no-motion .axis__line {
  stroke-dashoffset: 0;
}

.axis__end {
  stroke: var(--shade-700);
  stroke-width: 2;
}

.axis__tick {
  stroke: var(--shade-700);
  stroke-width: 1.5;
}

.axis__node {
  fill: var(--copper-400);
}

.axis__label {
  font-family: var(--font-serif);
  font-size: 34px;
  fill: var(--copper-300);
  letter-spacing: -0.01em;
}

.axis__cap {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--on-dark-muted);
}

.axis__group {
  opacity: 0;
  transition: opacity 550ms var(--ease-expo);
  transition-delay: calc(260ms + var(--i, 0) * 120ms);
}

.reveal.is-visible .axis__group,
.no-motion .axis__group {
  opacity: 1;
}

/* Vertical form of the axis — same progression, rotated.
   Used wherever the horizontal axis would set its captions too small. */

.ladder {
  display: none;
  position: relative;
  margin-top: var(--space-5);
  padding-left: 30px;
}

.ladder::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--shade-650),
    var(--copper-500) 55%,
    var(--copper-300)
  );
}

.ladder__cap {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.ladder__list {
  margin: var(--space-2) 0;
}

.ladder__list li {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.16rem, 2.6vw, 1.42rem);
  line-height: 1.25;
  color: var(--copper-300);
  padding: 15px 0;
}

.ladder__list li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translate(0, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper-400);
  box-shadow: 0 0 0 4px var(--shade-900);
}

@media (max-width: 1020px) {
  .axis {
    display: none;
  }

  .ladder {
    display: block;
  }
}

/* --- Vertical spotlight: schematic tiles -------------------------------- */

.tiles {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

@media (max-width: 1080px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--shade-800);
  border: 1px solid var(--line-dark);
  transition: border-color var(--dur) var(--ease-expo),
    background var(--dur) var(--ease-expo);
}

@media (max-width: 560px) {
  .tile {
    aspect-ratio: 4 / 3;
  }
}

.tile:hover {
  border-color: var(--copper-400);
  background: var(--shade-750);
}

.tile__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Shared schematic language: muted environment, one bright sensing field */

.tile__art .env,
.tile__art .unit {
  fill: none;
  stroke: var(--copper-300);
  stroke-width: 1.2;
  opacity: 0.42;
}

.tile__art .env--faint {
  opacity: 0.2;
}

.tile__art .env--dash {
  stroke-dasharray: 16 14;
  opacity: 0.34;
}

.tile__art .env-fill {
  fill: var(--copper-300);
  opacity: 0.16;
}

.tile__art .unit {
  stroke: var(--copper-300);
  stroke-width: 1.6;
  opacity: 0.85;
}

.tile__art .mark {
  stroke: var(--copper-300);
  stroke-width: 1.4;
  opacity: 0.6;
}

.tile__art .path {
  fill: none;
  stroke: var(--copper-400);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  opacity: 0.75;
}

/* The perception field — the one bright element in every tile */
.tile__art .sense {
  fill: var(--copper-500);
  fill-opacity: 0.2;
  stroke: var(--copper-400);
  stroke-width: 1.1;
  stroke-opacity: 0.65;
  transition: fill-opacity var(--dur) var(--ease-expo);
}

.tile:hover .tile__art .sense {
  fill-opacity: 0.34;
}

.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 1.7vw, 26px);
  background: linear-gradient(
    to top,
    rgba(19, 18, 17, 0.96) 0%,
    rgba(19, 18, 17, 0.92) 55%,
    rgba(19, 18, 17, 0) 100%
  );
}

.tile__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-300);
}

.tile__title {
  font-size: clamp(1.14rem, 1.45vw, 1.34rem);
  line-height: 1.22;
}

/* --- Statement band (reference: centered light band) -------------------- */

.statement {
  text-align: center;
  max-width: 62rem;
  margin-inline: auto;
}

.statement__title {
  font-size: clamp(1.9rem, 3.8vw, 3.05rem);
  line-height: 1.14;
}

.statement__body {
  margin-top: var(--space-4);
  font-size: clamp(1.02rem, 1.35vw, 1.19rem);
  line-height: 1.66;
  color: var(--text-body);
}

.statement__cta {
  margin-top: var(--space-5);
}

/* --- Team --------------------------------------------------------------- */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: var(--space-5);
}

@media (max-width: 900px) {
  .bio {
    grid-template-columns: 1fr;
  }
}

.bio__card {
  border-top: 2px solid var(--rust-600);
  padding-top: var(--space-3);
}

.section--light .bio__card {
  border-top-color: var(--rust-600);
}

.bio__name {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.bio__role {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rust-600);
}

.bio__body > p + p {
  margin-top: var(--space-3);
}

/* --- App page ----------------------------------------------------------- */

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

@media (max-width: 900px) {
  .app-hero {
    grid-template-columns: 1fr;
  }
}

/* Phone mockup */
.phone {
  --w: min(288px, 74vw);
  width: var(--w);
  margin-inline: auto;
  aspect-ratio: 288 / 588;
  background: linear-gradient(160deg, var(--shade-750), var(--shade-900));
  border: 1px solid var(--shade-700);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone__screen {
  height: 100%;
  border-radius: 27px;
  background: linear-gradient(175deg, #292621, #161412);
  border: 1px solid var(--line-dark);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.phone__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
}

.phone__goal {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.22;
  color: var(--on-dark);
}

.phone__divider {
  height: 1px;
  background: var(--line-dark);
  margin-block: 2px;
}

.phone__step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--on-dark-body);
}

.phone__tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--shade-700);
  display: grid;
  place-items: center;
}

.phone__step--done .phone__tick {
  background: var(--copper-500);
  border-color: var(--copper-500);
}

.phone__step--done .phone__tick svg {
  width: 10px;
  height: 10px;
  stroke: var(--shade-900);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone__step--done span:last-child {
  color: var(--on-dark-muted);
  text-decoration: line-through;
  text-decoration-color: var(--shade-700);
}

.phone__week {
  margin-top: auto;
  padding-top: 18px;
}

.phone__dots {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.phone__dots i {
  width: 100%;
  height: 26px;
  border-radius: 3px;
  background: rgba(233, 169, 124, 0.13);
  border: 1px solid transparent;
}

.phone__dots i.is-on {
  background: var(--copper-500);
  opacity: 0.85;
}

.phone__dots i.is-today {
  background: rgba(200, 106, 58, 0.26);
  border-color: var(--copper-400);
}

.phone__streak {
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.phone__streak b {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--copper-300);
  line-height: 1;
}

.phone__streak span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* Steps */
.steps {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
}

.step__n {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--rust-600);
  line-height: 1;
}

.step__t {
  margin-top: var(--space-3);
  font-size: 1.28rem;
}

.step__b {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-body);
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contact__mail {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--shade-700);
  padding-bottom: 6px;
  word-break: break-word;
  cursor: pointer;
  transition: color var(--dur) var(--ease-expo),
    border-color var(--dur) var(--ease-expo);
}

.contact__mail:hover {
  color: var(--copper-300);
  border-bottom-color: var(--copper-400);
}

/* --- Legal / privacy policy --------------------------------------------- */

.legal {
  max-width: 74ch;
}

.legal__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: var(--space-4);
}

.legal h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal h3:first-of-type {
  margin-top: var(--space-4);
}

.legal p {
  font-size: 1.01rem;
  line-height: 1.72;
  color: var(--text-body);
}

.legal p + p {
  margin-top: var(--space-2);
}

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

.site-footer {
  background: var(--shade-900);
  border-top: 1px solid var(--line-dark);
  padding-block: var(--space-5) var(--space-4);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 780px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.footer__statement {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.24;
  color: var(--on-dark);
  max-width: 20ch;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.footer__h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: var(--space-2);
}

.footer__links li + li {
  margin-top: 11px;
}

.footer__links a {
  font-size: 14.5px;
  text-decoration: none;
  color: var(--on-dark-body);
  cursor: pointer;
  transition: color var(--dur) var(--ease-expo);
}

.footer__links a:hover {
  color: var(--on-dark);
}

.footer__bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.footer__bottom a {
  color: var(--on-dark-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease-expo);
}

.footer__bottom a:hover {
  color: var(--on-dark-body);
}

/* --- Scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-expo), transform 700ms var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No-JS and reduced-motion users must still see everything */
.no-js .reveal,
.no-motion .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .axis__line {
    stroke-dashoffset: 0;
  }

  .axis__group {
    opacity: 1;
  }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .site-header,
  .hero__glow,
  .tile__art {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
