/* Room Rankers — site styles (marketing edition)
   Palette: cream #FFF6E3 · crimson #781719 · accent #B32233 · ink #22160F
   Type: Outfit (display) + Figtree (body) */

:root {
  --cream: #FFF6E3;
  --paper: #FFFCF4;
  --sand: #F3E7CC;
  --rule: #E7DAC0;
  --crimson: #781719;
  --crimson-deep: #4E0E10;
  --accent: #B32233;
  --ink: #22160F;
  --muted: #6B5A4E;
  --white: #FFFFFF;
  --gold: #D9A441;

  --display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(34, 22, 15, .28);
  --shadow-lg: 0 40px 80px -30px rgba(120, 23, 25, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.5; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 3px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lede { margin-top: 16px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: linear-gradient(180deg, var(--cream), #FBEFD6); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(34,22,15,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 42px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; position: relative; }
.nav-links a.btn { padding: 12px 20px; font-size: 0.95rem; white-space: nowrap; }
.nav-links a.btn:hover { transform: translateY(-1px); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child a { border: none; margin-top: 12px; text-align: center; }
  .nav-links li:last-child a.btn { display: flex; padding: 14px 20px; }
  .nav-toggle { display: inline-block; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 12px 28px -12px rgba(179,34,51,.6); }
.btn-primary:hover { background: var(--crimson); border-color: var(--crimson); box-shadow: 0 18px 34px -12px rgba(120,23,25,.6); }
.btn-ghost { background: transparent; color: var(--crimson); border-color: var(--crimson); }
.btn-ghost:hover { background: var(--crimson); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--crimson); border-color: var(--cream); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 0.92rem; }
.link { color: var(--crimson); font-weight: 700; text-decoration: none; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--crimson); transform: scaleX(.35); transform-origin: left; transition: transform .25s var(--ease); }
.link:hover::after { transform: scaleX(1); }

/* ---------- hero (photo) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(34,22,15,.82) 0%, rgba(78,14,16,.62) 45%, rgba(34,22,15,.25) 100%); }
.hero .wrap { width: 100%; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 7fr 5fr; } }
.hero h1 { max-width: 12em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: #FFD79A; }
.hero .lede { margin-top: 22px; color: rgba(255,255,255,.9); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tags span { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; font-weight: 600; }

/* floating result card in the hero */
.float-card { background: rgba(255,252,244,.92); color: var(--ink); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); max-width: 420px; justify-self: end; }
.float-card .fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.float-card .fc-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.float-card .fc-top b { display: block; font-family: var(--display); font-size: 1rem; }
.float-card .fc-top span { font-size: 0.85rem; color: var(--muted); }
.float-card .fc-num { font-family: var(--display); font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--crimson); }
.float-card .fc-label { color: var(--muted); font-size: 0.92rem; margin: 4px 0 14px; }
.float-card .fc-row { display: flex; gap: 18px; border-top: 1px solid var(--rule); padding-top: 12px; }
.float-card .fc-row div b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.float-card .fc-row div span { font-size: 0.8rem; color: var(--muted); }

/* ---------- stat strip ---------- */
.stats { position: relative; z-index: 2; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: -44px; }
@media (min-width: 900px) { .stats .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--paper); border-radius: var(--r); padding: 22px 22px 20px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--crimson); line-height: 1; }
.stat > span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* ---------- logo marquee ---------- */
.marquee-wrap { padding: clamp(36px, 5vw, 56px) 0 0; }
.marquee-wrap p { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; align-items: center; padding: 8px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track img { height: 30px; width: auto; opacity: .85; filter: grayscale(1) contrast(1.05); transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee-track .txt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--muted); opacity: .75; white-space: nowrap; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px 26px; box-shadow: 0 1px 0 rgba(34,22,15,.03); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--crimson), var(--accent)); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px -10px rgba(120,23,25,.6); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink); }
.card .card-link { display: inline-block; margin-top: 16px; }
.card .stat { background: none; border: none; box-shadow: none; padding: 0; margin-bottom: 8px; }
@media (min-width: 1000px) {
  .cards-5 .card { grid-column: span 2; }
  .cards-5 .card:nth-child(4) { grid-column: 2 / span 2; }
  .cards-5 .card:nth-child(5) { grid-column: 4 / span 2; }
}
.card-accent { background: linear-gradient(160deg, var(--crimson), var(--crimson-deep)); color: var(--cream); border: none; }
.card-accent p, .card-accent h3 { color: var(--cream); }
.card-accent .icon { background: rgba(255,255,255,.14); box-shadow: none; }

/* ---------- alternating feature (photo + copy) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 64px; } .feature.flip > .feature-media { order: 2; } }
.feature-media { position: relative; }
.feature-media img { border-radius: var(--r); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media .badge { position: absolute; left: -14px; bottom: 24px; background: var(--paper); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.feature-media .badge b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--crimson); line-height: 1; }
.feature-media .badge span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 899px) { .feature-media .badge { left: 12px; } }
.feature-copy h2 { margin-bottom: 14px; }
.feature-copy ul.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-copy ul.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.feature-copy ul.checks li::before { content: ""; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); margin-top: 2px; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.feature-copy .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- comp-set board (kept, as a widget) ---------- */
.board { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 18px 14px; box-shadow: var(--shadow-lg); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px 12px; border-bottom: 1px solid var(--rule); }
.board-head strong { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.board-head span { color: var(--muted); font-size: 0.85rem; }
.board-list { list-style: none; margin: 0; padding: 8px 0 0; position: relative; }
.board-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 96px 40px; align-items: center; gap: 10px; padding: 11px 8px; border-radius: 10px; font-size: 0.95rem; transition: transform .9s var(--ease), background-color .4s ease; will-change: transform; }
.board-row .rank { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 1.05rem; }
.board-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .bar { height: 7px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.board-row .bar i { display: block; height: 100%; background: var(--muted); opacity: .4; width: var(--w, 50%); transition: width 1.2s ease .2s, background-color .4s ease; }
.board-row .score { text-align: right; font-weight: 700; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.board-row.you { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.board-row.you .rank, .board-row.you .score { color: var(--crimson); }
.board-row.you .name { font-weight: 700; }
.board-row.you .bar i { background: linear-gradient(90deg, var(--crimson), var(--accent)); opacity: 1; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 0; margin-top: 8px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }
.board-foot b { color: var(--crimson); }
@media (max-width: 420px) { .board-row { grid-template-columns: 30px minmax(0, 1fr) 60px 36px; } }

/* ---------- case study cards ---------- */
.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.case figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover figure img { transform: scale(1.05); }
.case figure figcaption { position: absolute; left: 16px; bottom: 14px; background: rgba(34,22,15,.75); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; backdrop-filter: blur(6px); }
.case figure .pill { position: absolute; right: 16px; top: 14px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 20px -8px rgba(179,34,51,.7); }
.case-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 1.5rem; }
.case-body > p { margin: 8px 0 0; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.results li { background: var(--cream); border-radius: 12px; padding: 12px 12px 10px; }
.results b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--crimson); line-height: 1.1; }
.results span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.case-body .actions { margin-top: auto; padding-top: 22px; }

/* ---------- crimson band ---------- */
.band { background: radial-gradient(1200px 600px at 80% -10%, #9B2530 0%, var(--crimson) 45%, var(--crimson-deep) 100%); color: var(--cream); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='1.5' cy='1.5' r='1.5' fill='white' opacity='.07'/></svg>"); }
.band > * { position: relative; }
.band .eyebrow { color: #FFD79A; } .band .eyebrow::before { background: #FFD79A; }
.band .lede, .band .muted { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.band h2 { color: #fff; }
.agents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .agents { grid-template-columns: 1fr 1fr; } }
.agents li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; transition: background-color .25s, transform .25s var(--ease); }
.agents li:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.agents li b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.agents li b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FFD79A; box-shadow: 0 0 0 4px rgba(255,215,154,.2); }
.agents li span { color: color-mix(in srgb, var(--cream) 80%, transparent); font-size: 0.95rem; }

.brief { background: rgba(20,8,8,.45); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); padding: 22px 24px; font-size: 0.95rem; line-height: 1.5; box-shadow: var(--shadow-lg); }
.brief .from { display: flex; justify-content: space-between; gap: 12px; color: color-mix(in srgb, var(--cream) 65%, transparent); font-size: 0.85rem; margin-bottom: 12px; }
.brief .from b { color: #FFD79A; font-weight: 600; }
.brief ul { margin: 0; padding-left: 18px; }
.brief li + li { margin-top: 8px; }
.brief li { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s var(--ease); }
.brief.in li { opacity: 1; transform: none; }
.brief.in li:nth-child(2) { transition-delay: .35s; } .brief.in li:nth-child(3) { transition-delay: .7s; } .brief.in li:nth-child(4) { transition-delay: 1.05s; }
.brief .approve { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; transition: opacity .5s ease 1.4s; }
.brief.in .approve { opacity: 1; }
.brief .approve span { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; }
.brief .approve span:first-child { background: #FFD79A; color: var(--crimson-deep); border-color: #FFD79A; font-weight: 700; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; position: relative; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 3px; background: var(--rule); border-radius: 3px; } .steps::after { content: ""; position: absolute; left: 6%; top: 30px; height: 3px; width: 0; background: var(--accent); border-radius: 3px; transition: width 1.6s var(--ease) .2s; } .steps.in::after { width: 88%; } }
.steps li { counter-increment: step; position: relative; padding-top: 0; }
.steps li .num { width: 62px; height: 62px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rule); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--crimson); margin-bottom: 18px; position: relative; z-index: 1; transition: border-color .4s, background-color .4s, color .4s; }
.steps.in li .num { border-color: var(--accent); background: var(--accent); color: #fff; }
.steps.in li:nth-child(2) .num { transition-delay: .4s; } .steps.in li:nth-child(3) .num { transition-delay: .8s; } .steps.in li:nth-child(4) .num { transition-delay: 1.2s; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 0.98rem; color: var(--muted); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.person img { width: 150px; height: 180px; object-fit: cover; object-position: top; border-radius: 14px; }
.person h3 { font-size: 1.35rem; }
.person .role { color: var(--accent); font-weight: 700; font-family: var(--display); font-size: 0.95rem; margin: 2px 0 10px; }
.person p { margin: 0; font-size: 0.96rem; }
@media (max-width: 500px) { .person { grid-template-columns: 1fr; } .person img { width: 100%; height: 260px; } }

/* ---------- CTA banner with photo ---------- */
.cta-banner { position: relative; border-radius: calc(var(--r) + 6px); overflow: hidden; color: #fff; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); isolation: isolate; box-shadow: var(--shadow-lg); }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(78,14,16,.92), rgba(120,23,25,.7) 60%, rgba(34,22,15,.35)); z-index: -1; }
.cta-banner h2 { color: #fff; max-width: 15em; }
.cta-banner p { margin: 12px 0 0; max-width: 36em; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.cta-banner .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 48px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand img { filter: brightness(0) saturate(100%) invert(96%) sepia(12%) saturate(500%) hue-rotate(320deg) brightness(104%); }
.site-footer p { color: color-mix(in srgb, var(--cream) 70%, transparent); font-size: 0.95rem; max-width: 30em; }
.site-footer h4 { color: var(--cream); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer li a { color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none; font-size: 0.95rem; }
.site-footer li a:hover { color: var(--cream); }
.foot-bottom { border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: color-mix(in srgb, var(--cream) 55%, transparent); }

/* ---------- inner page hero (photo banner) ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(56px, 8vw, 110px) 0; isolation: isolate; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(34,22,15,.85), rgba(78,14,16,.7) 50%, rgba(34,22,15,.35)); }
.page-hero .crumb { color: rgba(255,255,255,.75); font-size: 0.92rem; margin-bottom: 16px; }
.page-hero .crumb a { text-decoration: none; }
.page-hero h1 { max-width: 13em; color: #fff; }
.page-hero .lede { margin-top: 20px; color: rgba(255,255,255,.9); }
.page-hero .hero-actions { margin-top: 26px; }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: .35em; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.sticky-aside { position: sticky; top: 100px; }
.aside-box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.aside-box h3 { font-size: 1.15rem; margin-bottom: 12px; }
.aside-box ul { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.aside-box li + li { margin-top: 6px; }
.aside-box .btn { margin-top: 18px; width: 100%; }
.photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; }

.ppr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .ppr { grid-template-columns: 1fr 1fr; } }
.ppr .card p { font-size: 1rem; margin-bottom: .8em; } .ppr .card p:last-child { margin-bottom: 0; }
.big-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .big-results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.big-results li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px 20px; box-shadow: var(--shadow); }
.big-results b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--crimson); }
.big-results span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

.cta { border-radius: var(--r); background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); color: var(--cream); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 48px; align-items: center; box-shadow: var(--shadow-lg); }
@media (min-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }
.cta h2 { max-width: 16em; color: #fff; }
.cta p { margin: 8px 0 0; color: color-mix(in srgb, var(--cream) 85%, transparent); max-width: 40em; }
.cta .btn-ghost { color: var(--cream); border-color: var(--cream); } .cta .btn-ghost:hover { background: var(--cream); color: var(--crimson); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-aside p { margin-bottom: .8em; }
.contact-aside .direct { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 22px; }
.contact-aside .direct a { display: block; text-decoration: none; font-weight: 700; margin-top: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(179,34,51,.12); outline: none; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; font-size: 0.98rem; margin: 0; min-height: 1.5em; }
.form-status.ok { color: var(--crimson); font-weight: 700; }
.form-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; } .reveal-d4 { transition-delay: .48s; }
.hero .reveal { transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brief li, .brief .approve { opacity: 1; transform: none; transition: none; }
  .steps::after { transition: none; }
  .card:hover, .case:hover, .btn:hover { transform: none; }
}

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- generic grids (inner pages) ---------- */
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.page-hero .link { color: #FFD79A; } .page-hero .link::after { background: #FFD79A; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.card h3 a { text-decoration: none; } .card h3 a:hover { color: var(--crimson); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; }
.stats + .section { padding-top: clamp(48px, 6vw, 80px); }
