/* OPEN — site styles
   Layout: calm single column with generous whitespace; services read as steps along
   one path. Colours come from the OPEN logo: forest green, teal and lime. */
:root {
  --paper: #f6f7f3;        /* page ground, faint sage bias */
  --paper-2: #ebefe6;      /* quiet bands */
  --ink: #12302a;          /* forest green-black for text */
  --ink-soft: #4b5f59;     /* secondary text */
  --line: #d3dacf;         /* hairlines */
  --waymark: #adc14b;      /* OPEN lime (logo mark), decorative use only */
  --teal: #1f7c76;         /* OPEN tagline teal, for small accent text */
  --deep: #0b4139;         /* MoneyLife Plan forest green, dark bands */
  --on-deep: #eef2ec;

  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.3rem;
  --step-4: clamp(2.4rem, 5.5vw, 3.6rem);
  --measure: 62ch;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 2px; background: var(--waymark);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; }
.foot-logo { height: 30px; width: auto; }
.wordmark { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.18em; }
.wordmark-sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.98rem; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--waymark); }
.menu { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.8em 1.4em; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important;
  text-decoration: none; font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em;
  border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.btn:hover { background: var(--deep); }
.btn .arrow { color: var(--waymark); transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--waymark); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; right: 0; top: calc(100% + 10px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; min-width: 200px; box-shadow: 0 12px 32px rgba(22,48,45,.12);
  }
  .menu-panel a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
  .menu-panel a:hover { background: var(--paper-2); }
}

/* Sections */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.band { background: var(--paper-2); }
.band-deep { background: var(--deep); color: var(--on-deep); }
.band-deep .eyebrow { color: #b9c8c1; }
.band-deep .text-link { color: var(--on-deep); }
.stack { display: grid; gap: 20px; }
.stack-lg { display: grid; gap: 32px; }
.lede { font-size: var(--step-1); font-weight: 300; line-height: 1.5; max-width: 40ch; color: var(--ink-soft); }
.prose { display: grid; gap: 1em; max-width: var(--measure); }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: .35em; }
.prose li::marker { color: var(--teal); }
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-2); font-weight: 450; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 em { font-style: normal; color: var(--ink); box-shadow: inset 0 -0.18em 0 color-mix(in srgb, var(--waymark) 45%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--waymark); }

/* Photo placeholders: real image sits on top; label shows if the file is missing */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: 4px;
  background:
    linear-gradient(160deg, #c9d6cd 0%, #9fb4a8 55%, #6f8a7e 100%);
  aspect-ratio: 4 / 5; max-width: 100%;
}
.photo.wide { aspect-ratio: 3 / 2; }
.photo.square { aspect-ratio: 1; }
.photo::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-size: 0.8rem; letter-spacing: .04em; color: #f4f7f3;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero .photo { border-radius: 200px 200px 4px 4px; }

/* Full-width landscape band */
.banner { margin: 0; aspect-ratio: 2.2 / 1; max-width: 100%; overflow: hidden; background: #9fb4a8; position: relative; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.banner figcaption { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 12px; font-size: .78rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); letter-spacing: .04em; }
@media (max-width: 700px) { .banner { aspect-ratio: 3 / 2; } }

/* Software screenshots: shown whole, never cropped */
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; }
.shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; border-radius: 3px; }
.shot figcaption { font-size: var(--step--1); color: var(--ink-soft); padding: 0 4px 2px; }
.ml-heading { margin: 4px 0 2px; line-height: 0; }
.ml-logo { height: clamp(84px, 9vw, 112px); width: auto; max-width: 100%; }

/* Long-form story */
.story { display: grid; gap: 1.1em; max-width: 64ch; font-size: 1.08rem; }
.story .turn { font-size: var(--step-1); font-weight: 400; color: var(--ink); }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.creds li span { font-size: var(--step--1); color: var(--ink-soft); }

/* Disclosure document */
.doc { display: grid; gap: 40px; max-width: 760px; }
.doc section { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h2 { font-size: var(--step-2); font-weight: 450; }
.doc h3 { font-size: var(--step-0); font-weight: 500; margin-top: 6px; }
.doc ul { margin: 0; padding-left: 1.1em; display: grid; gap: .35em; }
.doc li::marker { color: var(--teal); }
.doc address { font-style: normal; }

/* Path of services */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 8px 0; display: grid; gap: 14px; align-content: start; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-no { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.step-no b { font-weight: 600; color: var(--teal); font-size: 1.1rem; letter-spacing: 0; }
.price { font-variant-numeric: tabular-nums; font-size: var(--step--1); color: var(--ink-soft); padding-top: 12px; border-top: 1px dashed var(--line); }
.price strong { color: var(--ink); font-weight: 500; font-size: 1.05rem; }

/* Split layouts */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.rev { grid-template-columns: 1.2fr 0.8fr; }
.split > * { min-width: 0; }

/* Who list */
.who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 40px; }
.who li { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* Fundamentals */
.fundamentals { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 48px; }
.fundamentals li { counter-increment: f; display: grid; grid-template-columns: 2.6rem 1fr; padding: 16px 0; border-bottom: 1px solid rgba(238,242,236,.18); align-items: baseline; }
.fundamentals li::before { content: counter(f, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--waymark); font-weight: 500; font-size: .95rem; }

/* Quotes */
.quote { margin: 0; display: grid; gap: 18px; max-width: 46ch; }
.quote blockquote { margin: 0; font-size: var(--step-1); font-weight: 300; line-height: 1.5; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--waymark); margin-bottom: 10px; }
.quote figcaption { font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(32px, 6vw, 80px); }

/* Pricing table */
.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fees td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees td:last-child { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 20px; }
.fees .muted { color: var(--ink-soft); font-size: var(--step--1); display: block; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.includes li { display: grid; grid-template-columns: 22px 1fr; }
.includes li::before { content: "→"; color: var(--teal); }

.service { scroll-margin-top: 90px; }
.service-head { display: grid; gap: 14px; max-width: 52ch; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.band .card { background: #fbfcfa; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact-grid > * { min-width: 0; }
.contact-lines { display: grid; gap: 6px; font-size: var(--step-1); font-weight: 400; }
.contact-lines a { text-decoration: none; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .02em; }
input, textarea, select {
  font: inherit; color: var(--ink); background: #fbfcfa;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%;
}
.band-deep input, .band-deep textarea, .band-deep select { background: rgba(255,255,255,.06); color: var(--on-deep); border-color: rgba(238,242,236,.25); }
.band-deep label { color: #b9c8c1; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }
.band-deep .form-note { color: #b9c8c1; }
.form-status { font-size: var(--step--1); }
.band-deep .btn { background: var(--waymark); color: var(--ink) !important; }
.band-deep .btn .arrow { color: var(--ink); }

/* Disclosure */
.notice { border-left: 3px solid var(--waymark); background: #fbfcfa; padding: 16px 20px; font-size: .95rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--ink-soft); font-size: var(--step--1); padding-top: 2px; }
.facts dd { margin: 0; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep); font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.site-footer a { text-decoration: none; color: var(--on-deep); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { color: #a8bab2; line-height: 1.6; }
.foot-links { display: grid; gap: 6px; align-content: start; }
.foot-base { border-top: 1px solid rgba(238,242,236,.14); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; grid-template-columns: none; color: #a8bab2; }

@media (max-width: 900px) {
  .hero .wrap, .split, .split.rev, .contact-grid { grid-template-columns: 1fr; }
  .hero .photo { max-width: 360px; }
  .path { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .quotes, .who, .fundamentals { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Refresh: more life, same calm =====
   Photos sit on an offset colour block (lime or teal) instead of arches.
   The open ring from the OPEN logo mark recurs as a graphic device. */
:root { --lime-tint: #eef2dd; --white: #ffffff; }

.photo, .hero .photo { border-radius: 6px; }
.frame { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  background: var(--waymark); border-radius: 6px;
}
.frame-teal::before { background: var(--teal); }
.frame-left { margin: 0 0 18px 18px; }
.frame-left::before { inset: 18px 18px -18px -18px; }
.frame-none { margin: 0; }
.frame-none::before { display: none; }

/* Full-bleed hero: text in the page column, photo running to the right edge */
.hero-bleed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.hero-text {
  display: grid; align-content: center;
  padding-block: clamp(48px, 7vw, 96px);
  padding-left: max(20px, env(safe-area-inset-left, 0px), calc((100vw - var(--wrap)) / 2 + 20px));
  padding-right: clamp(28px, 5vw, 72px);
}
.hero-bleed h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 400; letter-spacing: -0.02em; }
.hero-bleed h1 em { font-style: normal; color: var(--teal); }
.hero-media { position: relative; margin: 0; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 1.4s ease-out both; }
.hero-media .ring {
  position: absolute; z-index: 2; pointer-events: none; inset: auto; object-fit: contain;
  width: clamp(124px, 14vw, 184px); height: auto; max-width: none;
  left: clamp(-92px, -7vw, -62px); bottom: 48px;
  filter: drop-shadow(0 6px 18px rgba(11, 65, 57, .22));
  animation: ring-in 1s .5s ease-out both;
}
@keyframes ring-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); opacity: .6; } to { transform: none; opacity: 1; } }

/* Lime strip of plain facts under the hero */
.facts-strip { background: var(--waymark); color: var(--ink); }
.facts-strip ul { list-style: none; margin: 0 auto; padding-block: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.facts-strip li { display: grid; gap: 2px; font-size: var(--step--1); }
.facts-strip strong { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Services as photo cards on the deep band */
.band-deep .lede { color: #c9d6cf; }
.band-deep h2, .band-deep h3 { color: var(--on-deep); }
.path-band .path { border-top: 0; gap: 24px; }
.path-band .step, .path-band .step + .step {
  background: var(--paper); color: var(--ink); border: 0; border-radius: 8px; overflow: hidden;
  padding: 0 0 24px; gap: 14px; transition: transform .25s ease, box-shadow .25s ease;
}
.path-band .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.path-band .step > :not(.step-img) { margin-inline: 24px; }
.path-band .step h3 { color: var(--ink); }
.step-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 6px; }
.path-band .step-no b {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--deep); color: var(--waymark); font-size: .95rem;
}

/* Lime-tint band */
.band-lime { background: var(--lime-tint); }
.band-lime .who li { border-color: #d5dcb7; }

/* Quotes as cards */
.quote-card { background: var(--white); border-radius: 8px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 1px 0 var(--line); }
.quote-card blockquote::before { color: var(--teal); font-size: 3.6rem; }

/* Large faint ring behind the Fundamentals */
.ring-band { position: relative; overflow: hidden; }
.ring-band::after {
  content: ""; position: absolute; right: -140px; top: -120px; width: 460px; aspect-ratio: 1;
  background: url("images/open-mark.png") center / contain no-repeat; opacity: .12; pointer-events: none;
}
.ring-band > .wrap { position: relative; z-index: 1; }

/* Page intro for inner pages */
.page-intro { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.page-intro .lede { color: #c9d6cf; }
.page-intro .eyebrow { color: #b9c8c1; }
.page-intro::after {
  content: ""; position: absolute; right: -70px; bottom: -150px; width: 380px; aspect-ratio: 1;
  background: url("images/open-mark.png") center / contain no-repeat; pointer-events: none;
}
.page-intro .wrap { position: relative; z-index: 1; }

/* Tablet: keep text and photo side by side so the headline stays above the fold */
@media (max-width: 900px) {
  .hero-bleed { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 0; }
  .hero-text { padding-block: 44px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: 48px; }
  .hero-bleed h1 { font-size: clamp(2.2rem, 5.6vw, 3rem); }
  .hero-media { min-height: 360px; }
  .hero-media .ring { width: 96px; left: -44px; bottom: 28px; }
  .facts-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro::after { width: 220px; right: -60px; bottom: -90px; }
}
/* Phone: a short photo band on top, headline straight after it */
@media (max-width: 640px) {
  .hero-bleed { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 0; height: clamp(180px, 30vh, 250px); }
  .hero-text { padding-top: 40px; padding-bottom: 44px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .hero-media .ring { width: 84px; left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: -34px; }
}
@media (max-width: 520px) {
  .frame { margin: 0 12px 12px 0; }
  .frame::before { inset: 12px -12px -12px 12px; }
  .frame-left { margin: 0 0 12px 12px; }
  .frame-left::before { inset: 12px 12px -12px -12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero-media .ring { animation: none; } .path-band .step:hover { transform: none; } }
.path-band .step .text-link { color: var(--ink); justify-self: start; }
.contact-grid > .stack-lg, .split > .stack-lg { align-content: start; }

/* Small place labels on photos */
.loc {
  position: absolute; z-index: 3; right: 14px; bottom: 12px; left: auto;
  font-size: .66rem; letter-spacing: .06em; line-height: 1.3; color: #fff; opacity: .88;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 10px rgba(0, 0, 0, .35);
  pointer-events: none; text-align: right;
}
.banner .loc { right: max(16px, env(safe-area-inset-right, 0px)); }
.photo .loc { right: 12px; bottom: 10px; }
.photo:has(.loc)::after { display: none; }
.step-media { position: relative; margin: 0 0 6px; }
.step-media .step-img { margin-bottom: 0; }
.path-band .step > .step-media { margin-inline: 0; }
@media (max-width: 640px) { .hero-media .loc { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); } }

/* Smaller portrait beside the story teaser */
.photo.portrait-sm { aspect-ratio: 4 / 5; }
.split.split-portrait { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 900px) { .split.split-portrait { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }
@media (max-width: 640px) { .split.split-portrait { grid-template-columns: 1fr; } .split-portrait > .frame { max-width: 240px; } }

/* Thin brand keyline between each service card's image and its text */
.path-band .step-img { border-bottom: 2px solid var(--waymark); }

/* Two side-by-side boxes (Services): equal heights, stacked on phones */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pair > * { min-width: 0; }
.pair-top { align-items: start; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.pair > .card { align-content: start; }

/* About hero on phones: intro text first, then an upright photo shown whole (head to waist) */
@media (max-width: 640px) {
  .hero-about .hero-media { order: 0; height: auto; aspect-ratio: 4 / 5; max-width: 440px; margin: 0 max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px)); border-radius: 6px; overflow: visible; }
  .hero-about .hero-media img:not(.ring) { border-radius: 6px; }
  .hero-about .hero-text { padding-bottom: 32px; }
  .hero-about .hero-media .ring { right: -10px; bottom: -22px; }
}

/* Keep hero text clear of the logo mark that overlaps the photo edge */
@media (min-width: 901px) {
  .hero-text { padding-right: clamp(80px, 7vw, 88px); }
  .hero-media .ring { left: clamp(-64px, -4.5vw, -48px); }
}
