/* Stone Pond — Consulting page (v18: build pricing removed, boxed training, 770px hero photo; v17, Opus refinement of v16 with copy v6)
   One soft canvas with the Investing noise texture. White cards only where they
   group things (benefits, deliverables, video, build menu, team, final call);
   everything else sits directly on the canvas.
   Cal.com-derived components: white 16px cards with hairline border + low shadow,
   outlined icon tiles with corner dots, white pill section labels, masked logo ticker.
   Brand: Arial, charcoal #1e2022, Stone blue #4a7cb8 (accent, focus, hover only). */

:root {
  --ink: #1e2022;
  --copy: #3a3f44;
  --muted: #5c636a;
  --rule: #e3e5e8;
  --canvas: #f9f9fa;
  --canvas-deep: #f3f4f5;
  --surface: #fff;
  --tile: #f5f5f6;
  --blue: #4a7cb8;
  --blue-dark: #3c689c;
  --gutter: 32px;
  --radius: 16px;
  --shadow: 0 1px 5px -4px rgba(36, 36, 36, .7), 0 4px 8px rgba(36, 36, 36, .05);
  --shadow-tile: 0 1px 5px -4px rgba(19, 19, 22, .7), 0 0 0 1px rgba(34, 42, 53, .1), 0 4px 8px rgba(34, 42, 53, .05);
}

* { box-sizing: border-box; }

html { background: var(--canvas-deep); }
body {
  margin: 0;
  overflow-x: hidden;
  /* Investing noise over a soft white-to-gray fade: no hard section edges. */
  background:
    url("../assets/noise.png"),
    linear-gradient(to bottom, var(--surface) 0, var(--canvas) 720px, var(--canvas-deep) 1600px, var(--canvas-deep) calc(100% - 900px), var(--canvas) calc(100% - 300px));
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4, h5, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.shell { width: min(1160px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- Primitives (Cal.com-derived) ---------- */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Outlined icon tile with four corner "screw" dots */
.tile {
  --d: radial-gradient(circle, #cfd2d6 1.3px, transparent 1.9px);
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background:
    var(--d) 6px 6px / 6px 6px no-repeat,
    var(--d) calc(100% - 6px) 6px / 6px 6px no-repeat,
    var(--d) 6px calc(100% - 6px) / 6px 6px no-repeat,
    var(--d) calc(100% - 6px) calc(100% - 6px) / 6px 6px no-repeat,
    var(--tile);
  box-shadow: var(--shadow-tile);
  color: var(--ink);
  font-size: 24px;
}
.tile-lg { width: 60px; height: 60px; font-size: 28px; }
.tile-sm { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; background-size: 0 0, 0 0, 0 0, 0 0, auto; }

/* White pill section label */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(34, 42, 53, .08), 0 4px 8px rgba(34, 42, 53, .05);
  color: var(--copy);
  font-size: 14px;
  line-height: 20px;
}
.pill svg { font-size: 16px; }

.num { color: var(--muted); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 2px rgba(0, 0, 0, .12);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.button:hover { background: var(--blue-dark); }
.button svg { font-size: 18px; }
.button-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  width: min(1160px, calc(100% - var(--gutter) * 2));
  min-height: 80px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; width: 163px; height: 44px; align-items: center; }
.brand img { width: 163px; height: 35px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.site-nav a { display: inline-flex; min-height: 44px; padding: 10px 14px; align-items: center; border-radius: 999px; text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px rgba(34, 42, 53, .06); }

/* ---------- Section heads: clear titles ---------- */
.section { padding: 112px 0 0; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 56px; text-align: center; }
.section-head h2 {
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.section-sub { color: var(--muted); font-size: 20px; line-height: 30px; }
.sub-title {
  margin: 72px 0 24px;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -.02em;
  font-weight: 700;
}

/* ---------- Hero: centered, framed photo below ---------- */
.hero { display: flex; flex-direction: column; align-items: center; padding-top: 48px; text-align: center; }
.hero h1 {
  max-width: 900px;
  margin-top: 24px;
  font-size: 60px;
  line-height: 64px;
  letter-spacing: -.04em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 span { color: var(--blue); }
.hero-qualifier { max-width: 640px; margin-top: 20px; color: var(--copy); font-size: 23px; line-height: 33px; text-wrap: balance; }
.hero .button { margin-top: 32px; }
/* White photo frame from the Investing page (.header-lightbox-link) */
.hero-frame {
  width: min(770px, 100%);
  margin-top: 56px;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 29px 12px rgba(108, 113, 128, .01), 0 17px 10px rgba(108, 113, 128, .04), 0 7px 7px rgba(108, 113, 128, .07), 0 2px 4px rgba(108, 113, 128, .08);
}
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.1;
  object-fit: cover;
  object-position: 40% 32%;
  border-radius: 14px;
}

/* ---------- Benefits ---------- */
.benefits { padding-top: 96px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.benefit { padding: 28px; }
.benefit-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.benefit h3 { margin-bottom: 10px; font-size: 22px; line-height: 28px; letter-spacing: -.01em; font-weight: 700; }
.benefit p { color: var(--copy); font-size: 16px; line-height: 25px; }
.benefits-lead {
  max-width: 820px;
  margin: 56px auto 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 35px;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Logo ticker ---------- */
.logos {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 96px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logos-label h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
.ticker { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ticker-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track { display: flex; width: max-content; gap: 16px; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.logo-slot {
  display: inline-flex;
  align-items: center;
  height: 52px;
  width: 180px;
  padding: 0 24px;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
}
.logo-slot img {
  display: block;
  width: 100%;
  max-width: 132px;
  max-height: 25px;
  object-fit: contain;
  filter: grayscale(1) brightness(.3);
  opacity: .78;
}
.logo-kismet img { max-height: 27px; }
.logo-airtree img { max-height: 29px; }
.logo-traild img { max-height: 26px; }
.logo-grok img { max-height: 22px; }
.logo-taronga img { max-height: 27px; }
.logo-woolworths img { max-height: 38px; }
.logo-nab img { max-height: 30px; }
.logo-donesafe img { max-height: 29px; }
@keyframes ticker { to { transform: translateX(calc(-50% - 8px)); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; flex-wrap: wrap; animation: none; }
  .ticker-window { -webkit-mask-image: none; mask-image: none; }
  .logo-slot.dup { display: none; }
  .button { transition: none; }
}

/* ---------- Audit ---------- */
/* Week 1 / Week 2 timeline (from opus-v1): a rule with dots, no cards */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  border-top: 1px solid var(--ink);
}
.timeline-step { position: relative; padding-top: 32px; }
.timeline-step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(34, 42, 53, .14);
  font-size: 14px;
  line-height: 20px;
}
.timeline-step h3 { margin-bottom: 8px; font-size: 26px; line-height: 32px; letter-spacing: -.02em; font-weight: 700; }
.timeline-step p { max-width: 460px; color: var(--copy); }

/* Five deliverables: one card, five equal columns split by hairlines */
.deliver { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.deliver li { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.deliver li + li { border-left: 1px solid var(--rule); }
.item-top { display: flex; align-items: center; justify-content: space-between; }
.deliver h4 { margin-bottom: 6px; font-size: 17px; line-height: 24px; font-weight: 700; }
.deliver p { color: var(--copy); font-size: 15px; line-height: 23px; }

.video-frame {
  width: min(calc(100% - 48px), calc((100vh - 64px) * 16 / 9), 1360px);
  width: min(calc(100% - 48px), calc((100svh - 64px) * 16 / 9), 1360px);
  margin: 40px auto 0;
  padding: 10px;
  border-radius: 26px;
}
.video-stage {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 40%, #33373b 0%, var(--ink) 70%);
  color: #fff;
  text-align: center;
}
.video-copy { padding: 16px; }
.video-kicker, .video-length { color: #c9cdd1; font-size: 15px; line-height: 22px; }
.video-status { margin: 10px 0; font-size: 52px; line-height: 56px; letter-spacing: -.04em; font-weight: 700; }

/* ---------- Builds ---------- */
#builds { padding-top: 56px; }
#builds > .shell { padding-top: 78.4px; border-top: 1px solid var(--rule); }
#builds .section-head { padding-bottom: 40px; border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
/* Two-up feature rows (training): icon tile + text */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.feature { display: flex; gap: 20px; }
.feature h4 { margin: 2px 0 6px; font-size: 20px; line-height: 26px; letter-spacing: -.01em; font-weight: 700; }
.feature p { color: var(--copy); font-size: 17px; line-height: 26px; }

.menu { display: grid; gap: 16px; }
.menu-group {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.menu-group:first-child { border-top: 0; padding-top: 0; }
.menu-head { display: flex; align-items: center; gap: 12px; align-self: start; font-size: 22px; line-height: 28px; letter-spacing: -.01em; font-weight: 700; }
.menu-num {
  display: inline-grid;
  min-width: 40px;
  height: 32px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.menu-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item { display: flex; gap: 14px; padding: 18px; border-radius: 14px; }
.item h5 { margin-bottom: 3px; font-size: 17px; line-height: 24px; font-weight: 700; }
.item p { color: var(--copy); font-size: 15px; line-height: 22px; }

/* v24: price + training + AI-native = three equal white cards, side by side on desktop
   (icon / title / body stacked inside each card); stacked full-width below 900px. */
.features.training { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; gap: 24px; }
.training .feature { flex-direction: column; gap: 16px; padding: 28px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, calc((100% - 60px) / 4));
  justify-content: center;
  gap: 20px;
}
.person { min-width: 0; padding: 10px; }
.person img,
.portrait-pending {
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: .86;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border-radius: 10px;
  background: var(--tile);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.portrait-pending { border: 1px dashed #b4b9bf; }
/* v19: Ada's source is taller (0.8) than the frame; anchor to the top so her headroom matches George and Josh. */
.person-ada img { object-position: 50% 0; }
.person-body { padding: 16px 10px 12px; }
.person h3 { margin-bottom: 8px; font-size: 20px; line-height: 26px; font-weight: 700; }
.person small { display: block; margin: -4px 0 10px; color: var(--muted); font-size: 14px; line-height: 20px; }
.person p { color: var(--copy); font-size: 15px; line-height: 23px; }

/* ---------- Final call: light ---------- */
.final { padding-top: 112px; }
.final-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 32px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, #fff 40%, #f6f7f8 100%);
}
.final-card h2 { margin-top: 24px; font-size: 48px; line-height: 52px; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.final-card p { max-width: 560px; margin-top: 16px; color: var(--copy); font-size: 20px; line-height: 30px; text-wrap: balance; }
.final-card .button { margin-top: 32px; }
.contact-email { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; color: var(--copy); font-size: 16px; text-underline-offset: 5px; }

.footer { padding: 40px var(--gutter) 28px; text-align: center; }
.footer img { display: block; width: min(800px, 100%); height: 230px; margin: auto; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 96%); mask-image: linear-gradient(to bottom, #000 38%, transparent 96%); }
.footer p { margin: 6px 0; color: #5f6670; font-size: 12px; line-height: 20px; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .menu-group { grid-template-columns: 1fr; gap: 20px; }
  .deliver { grid-template-columns: 1fr; }
  .deliver li { display: grid; grid-template-columns: 40px 28px minmax(0, 1fr); column-gap: 16px; padding: 18px 22px; }
  .deliver li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .deliver .item-top { display: contents; }
  .deliver .num { padding-top: 10px; }
  .deliver h4 { margin-bottom: 2px; }
}

@media (max-width: 900px) {
  .section-head h2, .final-card h2 { font-size: 40px; line-height: 44px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; }
  .benefit-top { grid-row: span 2; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
  .logos { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 48px; line-height: 52px; }
  .features { gap: 32px; }
  .features.training { grid-template-columns: 1fr; gap: 16px; }
  .training .feature { flex-direction: row; gap: 20px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-status { font-size: 40px; line-height: 44px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 26px; }
  .site-header { min-height: 0; padding-block: 14px; align-items: flex-start; }
  .brand { width: 126px; }
  .brand img { width: 126px; height: auto; }
  .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: 4px; font-size: 14px; }
  .site-nav a { padding: 8px 10px; }
  .site-nav .button { font-size: 14px; }

  .section { padding-top: 80px; }
  .section-head { margin-bottom: 36px; gap: 12px; }
  .section-head h2, .final-card h2 { font-size: 32px; line-height: 36px; }
  .section-sub { font-size: 17px; line-height: 26px; }
  .sub-title { margin: 56px 0 16px; font-size: 22px; line-height: 28px; }

  .hero { padding-top: 28px; }
  .hero h1 { margin-top: 18px; font-size: 36px; line-height: 40px; }
  .hero-qualifier { margin-top: 14px; font-size: 20px; line-height: 29px; }
  .hero .button { margin-top: 24px; }
  .hero-frame { margin-top: 36px; padding: 4px; border-radius: 16px; }
  .hero-frame img { aspect-ratio: 1.5; border-radius: 12px; }

  .benefits { padding-top: 64px; }
  .benefit { display: block; padding: 22px; }
  .benefit-top { flex-direction: row; justify-content: space-between; margin-bottom: 18px; }
  .benefits-lead { margin-top: 40px; font-size: 19px; line-height: 29px; text-align: left; }

  .logos { margin-top: 64px; padding: 22px 0; }
  .logo-slot { height: 46px; width: 160px; padding: 0 18px; }

  .timeline { grid-template-columns: 1fr; gap: 36px; border-top: 0; border-left: 1px solid var(--ink); }
  .timeline-step { padding: 0 0 0 28px; }
  .timeline-step::before { top: 5px; left: -6px; }
  .timeline-step h3 { font-size: 22px; line-height: 28px; }
  .deliver li { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; }
  .deliver .num { display: none; }

  #builds { padding-top: 40px; }
  #builds > .shell { padding-top: 39px; }
  #builds .section-head { padding-bottom: 28px; margin-bottom: 28px; }

  .video-frame { width: calc(100% - 24px); margin-top: 32px; padding: 6px; border-radius: 18px; }
  .video-stage { border-radius: 13px; }
  .video-kicker, .video-length { font-size: 13px; line-height: 18px; }
  .video-status { margin: 4px 0; font-size: 26px; line-height: 30px; }

  .menu-group { padding: 24px 0; gap: 14px; }
  .menu-items { grid-template-columns: 1fr; gap: 10px; }
  .item { padding: 16px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .feature { gap: 16px; }
  .feature h4 { font-size: 18px; line-height: 24px; }
  .feature p { font-size: 16px; line-height: 24px; }
  .features.training { margin-top: 40px; gap: 12px; }
  .training .feature { padding: 22px; }

  .team-grid { gap: 12px; }
  .person-body { padding: 14px 6px 8px; }
  .final { padding-top: 80px; }
  .final-card { padding: 44px 20px; }
  .final-card p { font-size: 17px; line-height: 26px; }
  .footer img { height: 180px; }
}

@media (max-width: 480px) {
  .site-header { display: block; }
  .site-nav { justify-content: flex-start; margin-top: 8px; margin-left: -10px; }
  .hero h1 { font-size: 32px; line-height: 36px; }
  .team-grid { grid-template-columns: 1fr; }
  /* v19: stacked portraits use a shorter frame so each card fits a phone screen; placeholder stays compact. */
  .person img { aspect-ratio: 1.15; object-position: 50% 12%; }
  .person-ada img { object-position: 50% 16%; }
  .portrait-pending { aspect-ratio: 2.4; }
}

/* ---------- v23 mobile (<=700px) ----------
   Header: centred logo above centred Investing / Consulting; "Talk to us" hidden (desktop keeps it).
   Hero pill hidden; benefits lead centred; logo-ticker pause button hidden (reduced-motion
   users still get the static wrapped row). Build price + both training cards share one
   centred, stacked icon / title / body card. */
@media (max-width: 700px) {
  .site-header { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .site-nav { justify-content: center; margin: 0; gap: 6px; font-size: 15px; }
  .site-nav a { padding: 10px 16px; }
  .site-nav .button { display: none; }

  .hero { padding-top: 20px; }
  .hero > .pill { display: none; }
  .hero h1 { margin-top: 0; }

  .benefits-lead { text-align: center; }

  .training .feature { flex-direction: column; align-items: center; gap: 14px; padding: 24px 22px; text-align: center; }
  .training .feature p { max-width: 34ch; margin-inline: auto; text-wrap: balance; }
  .feature h4 { margin: 0 0 6px; text-wrap: balance; }
  .features.training { gap: 16px; }
}
