/* SAMCO corporate theme: gallery white, deep navy ink, gold accents.
   Upgraded from the original SAMCO homepage (cards, roots, process, team, testimonials),
   set in Clash Display + Satoshi, with full-bleed 4K photography. */
@font-face { font-family: "Clash Display"; src: url("/assets/fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/assets/fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    color-scheme: light;
    --font-head: "Clash Display", "Satoshi", system-ui, sans-serif;
    --head-weight: 600;
    --r: 22px;
    --r-lg: 30px;
    --bg: #f7f7f4;
    --bg-alt: #efefea;
    --surface: #ffffff;
    --surface-2: #f2f2ee;
    --ink: #0f1b2d;
    --ink-2: #505a69;
    --line: rgba(15, 27, 45, 0.1);
    --line-2: rgba(15, 27, 45, 0.22);
    --accent: #0f1b2d;
    --accent-hover: #1d3150;
    --on-accent: #ffffff;
    --accent-ink: #8c6a2c;
    --focus: #2f6fd6;
    --hdr-bg: rgba(247, 247, 244, 0.86);
    --shadow: 15 27 45;
    --gold-grad: linear-gradient(100deg, #a9823d 0%, #d2b072 55%, #b38c48 100%);
}
h1, h2, h3 { letter-spacing: -0.025em; }
.accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.btn-primary { --btn-fill: rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px -16px rgb(15 27 45 / 0.6); }
.link-arrow { color: var(--ink); }
.link-arrow .ph { color: var(--accent-ink); }
.nav-link.is-active { color: var(--accent-ink); }

/* Tilt for cards that carry data-tilt */
[data-tilt] { --rx: 0deg; --ry: 0deg; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }

/* Header floats over the home hero until the page scrolls */
.hdr-overlay main { margin-top: calc(var(--hdr-h) * -1); }
.hdr-overlay .hdr:not(.is-stuck) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-overlay .hdr:not(.is-stuck) .nav-link, .hdr-overlay .hdr:not(.is-stuck) .brand { color: #fff; }
.hdr-overlay .hdr:not(.is-stuck) .nav-link:hover, .hdr-overlay .hdr:not(.is-stuck) .nav-link[aria-expanded="true"] { background: rgb(255 255 255 / 0.14); }
.hdr-overlay .hdr:not(.is-stuck) .hdr-cta { background: #fff; color: var(--ink); }
.hdr-overlay .hdr:not(.is-stuck) .menu-toggle { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.hdr-overlay .hdr:not(.is-stuck) .burger { background: #fff; }
.hdr-overlay .hdr:not(.is-stuck) .burger i { background: var(--ink); }
.mnav-open.hdr-overlay .hdr .brand, .mnav-open.hdr-overlay .hdr .menu-toggle { color: var(--ink); }
.brand .wordmark { font-size: 1.4rem; }
.co-mark-samco { background: var(--ink); }

/* ---------- Hero ---------- */
.h-hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: max(680px, 100dvh); padding-top: calc(var(--hdr-h) + 32px); color: #fff; overflow: hidden; background: #0b1424; }
.h-hero-media { position: absolute; inset: 0; z-index: -1; }
.c-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s var(--ease-io); }
.c-slide.is-on { opacity: 1; }
.c-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .c-slide img { transform: scale(1.08); transition: transform 10s cubic-bezier(0.2, 0.6, 0.35, 1); }
    .c-slide.is-on img { transform: scale(1); }
}
.h-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 15 28 / 0.6) 0%, rgb(8 15 28 / 0.08) 30%, rgb(8 15 28 / 0.25) 55%, rgb(8 15 28 / 0.85) 100%), linear-gradient(90deg, rgb(8 15 28 / 0.6) 0%, rgb(8 15 28 / 0) 62%); }
.h-hero-in { align-self: end; padding-bottom: clamp(36px, 5vw, 60px); }
.h-eyebrow { color: #e9d6a8; margin-bottom: 22px; }
.h-title { font-size: clamp(2.5rem, 1.2rem + 4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; text-shadow: 0 4px 40px rgb(0 0 0 / 0.3); }
.h-title-2 { display: block; }
.h-title-2, .h-title-2 .w > span { background: linear-gradient(100deg, #e7cf98 0%, #c9a96a 60%, #e9d6a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.h-sub { margin-top: 26px; max-width: 46ch; font-size: var(--step-1); color: rgb(255 255 255 / 0.86); }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.h-hero .btn-primary { background: #c9a96a; color: #0f1b2d; }
.h-hero .btn-primary:hover { background: #dcc08a; }
.h-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding: 14px 14px 14px 24px; border-radius: 999px; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.h-proof { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.h-proof li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.92rem; }
.h-proof .ph { font-size: 1.4rem; color: #e7cf98; }
.h-proof small { display: block; font-weight: 400; font-size: 0.78rem; color: rgb(255 255 255 / 0.7); }
.c-hero-ctrl { display: flex; align-items: center; gap: 2px; flex: none; }
.c-dot { width: 40px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.c-dot span { position: relative; display: block; width: 28px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.c-dot span::after { content: ""; position: absolute; inset: 0; background: #e7cf98; transform: scaleX(0); transform-origin: left; }
.c-dot[aria-current="true"] span::after { transform: scaleX(1); }
.c-dot.is-run span::after { animation: c-run 6.5s linear forwards; }
.is-paused .c-dot.is-run span::after { animation: none; transform: scaleX(1); }
@keyframes c-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.c-pause { width: 44px; height: 44px; margin-left: 6px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; }
@media (max-width: 767px) {
    .h-hero-foot { border-radius: var(--r); padding: 16px; flex-direction: column; align-items: flex-start; }
    .h-proof { gap: 12px 20px; }
    .h-actions .btn { flex: 1 1 220px; }
}

/* ---------- Roots and values ---------- */
.h-roots-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.h-roots-copy .h2 { margin-bottom: 24px; }
.h-values { display: grid; gap: 12px; margin: 34px 0; }
.h-values li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.h-values li:hover { transform: translateX(6px); box-shadow: 0 20px 40px -28px rgb(var(--shadow) / 0.5); }
.h-values .ph { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #e7cf98; font-size: 1.35rem; }
.h-values strong { display: block; font: 600 1.15rem/1.2 var(--font-head); }
.h-values span { color: var(--ink-2); }
.h-roots-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.h-roots-art { position: relative; padding: 0 0 70px 60px; }
.h-art-main { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 50px 90px -50px rgb(var(--shadow) / 0.6); }
.h-art-main img, .h-art-inset img { width: 100%; height: 100%; object-fit: cover; }
.h-art-inset { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; margin: 0; border-radius: var(--r); overflow: hidden; border: 8px solid var(--bg); box-shadow: 0 30px 60px -30px rgb(var(--shadow) / 0.6); }
.h-art-card { position: absolute; top: 28px; right: -18px; display: grid; gap: 4px; max-width: 190px; padding: 18px 22px; border-radius: 20px; background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -24px rgb(var(--shadow) / 0.5); }
.h-art-card strong { font: 600 2.6rem/1 var(--font-head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-art-card span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 899px) {
    .h-roots-grid { grid-template-columns: 1fr; }
    .h-roots-art { padding: 0 0 56px 28px; }
    .h-art-card { right: 8px; }
}

/* ---------- Company cards (the original SAMCO cards, upgraded) ---------- */
.h-cos { background: var(--bg-alt); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.co { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -40px rgb(var(--shadow) / 0.45); }
.co:hover { box-shadow: 0 50px 90px -40px rgb(var(--shadow) / 0.55); }
.co:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.co-banner { width: 100%; height: auto; aspect-ratio: 1024 / 136; object-fit: cover; }
.co-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.co-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.co:hover .co-photo img { transform: scale(1.06); }
.co-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 38px); flex: 1; }
.co-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.co-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.co-license { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.co-text { color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 500; transition: border-color 0.3s; }
.co:hover .pills li { border-color: var(--line-2); }
.co-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: background-color 0.3s; }
.co-cta .ph { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #c9a96a; color: var(--ink); transition: transform 0.5s var(--ease); }
.co-cta:hover { background: var(--accent-hover); }
.co:hover .co-cta .ph { transform: rotate(-45deg); }
.co-cta::after { content: ""; position: absolute; inset: 0; }
.co-cta:focus-visible { outline: none; }
@media (max-width: 899px) { .co-row { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.h-process-panel { position: relative; overflow: hidden; isolation: isolate; padding: clamp(32px, 6vw, 88px); border-radius: var(--r-lg); background-color: #0f1b2d; background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 40px 40px; color: #fff; }
.h-process-panel::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgb(201 169 106 / 0.35), transparent 65%); }
.h-process-panel .lead { color: rgb(255 255 255 / 0.72); }
.h-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.h-steps::before { content: ""; position: absolute; top: 32px; left: 32px; right: 32px; height: 2px; background: rgb(255 255 255 / 0.14); }
.h-steps::after { content: ""; position: absolute; top: 32px; left: 32px; right: 32px; height: 2px; background: linear-gradient(90deg, #c9a96a, #e7cf98); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-io) 0.2s; }
.h-steps.is-in::after { transform: scaleX(1); }
.h-step { position: relative; z-index: 1; }
.h-step-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #c9a96a; color: #0f1b2d; font-size: 1.6rem; margin-bottom: 24px; box-shadow: 0 0 0 8px #0f1b2d; transform: scale(0.6); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; transition-delay: calc(var(--i) * 0.3s + 0.2s); }
.h-steps.is-in .h-step-ic, html:not(.js) .h-step-ic { transform: none; opacity: 1; }
.h-step h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }
.h-step p { color: rgb(255 255 255 / 0.72); }
@media (prefers-reduced-motion: reduce) { .h-step-ic { transform: none; opacity: 1; } }
@media (max-width: 999px) { .h-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .h-steps::before, .h-steps::after { display: none; } }
@media (max-width: 559px) { .h-steps { grid-template-columns: 1fr; } }

/* ---------- Portfolio gateways ---------- */
.h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.h-tile { position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); }
.h-tile:hover img { transform: scale(1.06); }
.h-tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 15 28 / 0) 35%, rgb(8 15 28 / 0.85) 100%); }
.h-tile-copy { position: absolute; left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3vw, 36px); display: grid; gap: 8px; }
.h-tile-copy small { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #e7cf98; }
.h-tile-copy strong { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--font-head); letter-spacing: -0.02em; }
.h-tile-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; opacity: 0.85; }
.h-tile-go .ph { transition: transform 0.5s var(--ease); }
.h-tile:hover .h-tile-go .ph { transform: translate(3px, -3px); }
@media (max-width: 767px) { .h-tiles { grid-template-columns: 1fr; } }

/* ---------- Why SAMCO ---------- */
.h-why { background: var(--bg-alt); }
.h-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.h-why-grid li { padding: 30px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.h-why-grid li:hover { box-shadow: 0 30px 60px -36px rgb(var(--shadow) / 0.5); }
.h-why-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #f4e8cc, #e7cf98); color: var(--ink); font-size: 1.5rem; margin-bottom: 22px; }
.h-why-grid h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 10px; }
.h-why-grid p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 999px) { .h-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .h-why-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.h-team-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.h-pledge { margin-top: 8px; padding: 26px 28px; border-radius: var(--r); background: var(--surface); border-left: 4px solid #c9a96a; }
.h-pledge p { font: 500 1.35rem/1.35 var(--font-head); letter-spacing: -0.01em; }
.h-pledge footer { margin-top: 12px; font-size: 0.85rem; color: var(--ink-2); }
.h-team .people { grid-template-columns: 1fr 1fr; }
.person { padding: 12px 12px 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 30px 60px -44px rgb(var(--shadow) / 0.5); }
.person-photo { border-radius: 16px; }
.person h3 { margin: 16px 8px 0; font-size: 1.2rem; }
.person p { margin: 2px 8px 0; color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 899px) { .h-team-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.h-tm { background: var(--bg-alt); }
.h-tm-rail { grid-auto-columns: min(84vw, 440px); }
.h-q { height: 100%; scroll-snap-align: start; box-shadow: 0 30px 60px -48px rgb(var(--shadow) / 0.5); }
.h-q .qcard-mark { color: #c9a96a; font-size: 2.4rem; }
.h-q figcaption { gap: 6px; }

/* ---------- Closing call to action ---------- */
.h-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 11vw, 160px); color: #fff; }
.h-cta-bg { position: absolute; inset: 0; z-index: -2; }
.h-cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.h-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 15 28 / 0.82), rgb(8 15 28 / 0.7) 50%, rgb(8 15 28 / 0.9)); }
.h-cta-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.h-cta-head .eyebrow { color: #e7cf98; }
.h-cta-head .h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); margin: 14px 0 16px; }
.h-cta-head .lead { color: rgb(255 255 255 / 0.78); margin-inline: auto; }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.route { position: relative; display: grid; gap: 8px; padding: clamp(26px, 3.4vw, 42px); padding-right: 96px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; border: 1px solid var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.route:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.6); }
.route::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; transform: scaleX(0.12); transform-origin: left; transition: transform 0.9s var(--ease); }
.route-painting::after { background: linear-gradient(90deg, #e23b2e, #f39224, #f5c01e, #16a05a, #1f6fd6, #2b3a8f); }
.route-builders::after { background: linear-gradient(90deg, #0e2a52, #c9a96a); }
.route:hover::after { transform: scaleX(1); }
.route-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 16px; background: var(--surface-2); font-size: 1.5rem; }
.route-k { font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); }
.route strong { font: 600 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--font-head); letter-spacing: -0.025em; }
.route small { color: var(--ink-2); font-size: 0.92rem; max-width: 46ch; }
.route-pills { margin-top: 10px; }
.route-pills li { color: var(--ink-2); background: var(--surface); }
.route:hover .route-pills li { border-color: var(--line-2); }
.route-go { position: absolute; top: clamp(26px, 3.4vw, 42px); right: clamp(26px, 3.4vw, 42px); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.2rem; transition: transform 0.6s var(--ease), background-color 0.3s, color 0.3s; }
.route:hover .route-go { transform: rotate(45deg); background: #c9a96a; color: var(--ink); }
.c-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(28px, 5vw, 72px); margin-top: clamp(32px, 4vw, 48px); }
.c-bar a { display: grid; gap: 4px; text-align: center; text-decoration: none; font: 600 1.25rem/1.2 var(--font-head); }
.c-bar a:hover { color: #e7cf98; }
.c-bar small { font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.c-bar span { display: inline-flex; align-items: center; gap: 8px; }
.c-contact-page .c-bar a { color: var(--ink); }
.c-contact-page .c-bar a:hover { color: var(--accent-ink); }
@media (max-width: 767px) { .routes { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.c-phero { padding-top: clamp(48px, 7vw, 104px); }
.c-about-photo { margin-top: clamp(40px, 5vw, 64px); }
.c-about-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); }
.c-prose-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); }
.c-prose { display: grid; gap: 20px; font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.c-prose p:first-child { color: var(--ink); }
@media (max-width: 899px) { .c-prose-grid { grid-template-columns: 1fr; } }
.c-tree { max-width: 960px; margin: 0 auto; display: grid; justify-items: center; }
.c-tree-root { display: grid; justify-items: center; gap: 10px; padding: 28px 44px; border-radius: var(--r); background: var(--ink); color: #fff; }
.c-tree-root .wordmark { font-size: 2.2rem; }
.c-tree-root span { font-size: 0.85rem; color: rgb(255 255 255 / 0.7); }
.c-tree-lines { width: 50%; height: 56px; border: 2px solid #c9a96a; border-bottom: 0; border-radius: 18px 18px 0 0; margin-top: 28px; position: relative; }
.c-tree-lines::before { content: ""; position: absolute; left: 50%; top: -30px; height: 28px; border-left: 2px solid #c9a96a; }
.c-tree-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; }
.c-tree-kid { display: grid; gap: 14px; padding: 28px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; transition: transform 0.5s var(--ease); }
.c-tree-kid:hover { transform: translateY(-4px); }
.c-tree-kid img { height: 60px; width: auto; }
.c-tree-kid p { color: rgb(255 255 255 / 0.72); }
.c-tree-kid small { color: #e7cf98; font-weight: 600; }
@media (max-width: 639px) { .c-tree-kids { grid-template-columns: 1fr; } .c-tree-lines { width: 2px; border-radius: 0; border-right: 0; } }
.c-values-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.c-value { padding: 30px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.c-value .ph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #e7cf98; font-size: 1.4rem; }
.c-value h3 { margin: 20px 0 10px; font-size: var(--step-2); }
.c-value p { color: var(--ink-2); }
.c-pledge { margin-top: clamp(40px, 6vw, 72px); padding: 30px 34px; border-radius: var(--r); background: var(--surface); border-left: 4px solid #c9a96a; }
.c-pledge p { font: 500 var(--step-2)/1.3 var(--font-head); max-width: 40ch; }
.c-pledge footer { margin-top: 14px; color: var(--ink-2); }
@media (max-width: 767px) { .c-values-row { grid-template-columns: 1fr; } }
.c-cred-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); }
.c-cred-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-cred-list li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.c-cred-list .ph { font-size: 1.5rem; color: var(--accent-ink); flex: none; }
.c-cred-list strong { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 899px) { .c-cred-grid, .c-cred-list { grid-template-columns: 1fr; } }
.cta-in { background-color: var(--ink); background-image: radial-gradient(120% 140% at 100% 0%, rgb(201 169 106 / 0.35), transparent 55%); }
.cta-in .btn-primary { background: #c9a96a; color: var(--ink); }
.nf { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Process: motion layer (same design, it just comes alive) ---------- */
.h-step-ic { position: relative; }
.h-step-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 22px; border: 2px solid #e7cf98; opacity: 0; pointer-events: none; }
.h-step h3, .h-step p { transition: color 0.6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
    /* Grid drifts on its own layer so the panel never repaints */
    .h-process-panel { background-image: none; }
    .h-process-panel::before { content: ""; position: absolute; z-index: -2; inset: -40px; background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 40px 40px; animation: h-grid 18s linear infinite; }
    .h-process-panel::after { animation: h-glow 12s ease-in-out infinite alternate; }

    /* Titles and text follow their icon in */
    .js .h-step h3, .js .h-step p { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), color 0.6s var(--ease); transition-delay: calc(var(--i) * 0.3s + 0.45s); }
    .js .h-steps.is-in .h-step h3, .js .h-steps.is-in .h-step p { opacity: 1; transform: none; }
    .js .h-steps.is-live .h-step h3, .js .h-steps.is-live .h-step p { transition-delay: 0s; }

    /* A highlight travels along the gold line */
    .h-steps::after { background: linear-gradient(90deg, #c9a96a 0%, #e7cf98 42%, #fff7e0 50%, #e7cf98 58%, #c9a96a 100%); background-size: 260% 100%; background-position: 100% 0; }
    .h-steps.is-live::after { animation: h-shimmer 3.6s linear infinite; }

    /* The active step lifts, glows, and pulses */
    .h-steps.is-live .h-step-ic { transition: transform 0.7s var(--ease), background-color 0.6s, box-shadow 0.6s; transition-delay: 0s; }
    .h-step.is-active .h-step-ic { transform: translateY(-6px) scale(1.06); background: #e7cf98; box-shadow: 0 0 0 8px #0f1b2d, 0 22px 40px -12px rgb(201 169 106 / 0.75); }
    .h-step.is-active .h-step-ic::after { animation: h-ring 1.8s var(--ease) infinite; }
    .h-step.is-active .h-step-ic .ph { animation: h-bob 0.9s var(--ease); }
    .h-step.is-active h3 { color: #e7cf98; }
    .h-step.is-active p { color: rgb(255 255 255 / 0.92); }
    .h-steps.is-live .h-step { cursor: default; }
}
@keyframes h-grid { to { transform: translate(40px, 40px); } }
@keyframes h-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-280px, 200px) scale(1.25); } }
@keyframes h-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes h-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes h-bob { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-3px) rotate(-8deg); } 100% { transform: translateY(0) rotate(0); } }
