/* =====================================================================
   Homepage. Extends concept.css (tokens, buttons, steps, featured work).
   ===================================================================== */

/* ---------- Hero: the pitch on the left, a growing sprout on the right ---------- */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(32px, 5vw, 88px);
    min-height: min(100svh, 980px);
    padding-top: clamp(120px, 15vh, 170px);
    padding-bottom: clamp(48px, 8vh, 96px);
}
.hh-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hh-eyebrow { margin: 0; }
.hh-title { font-size: clamp(56px, 8.4vw, 138px); }
.hh-title em { color: var(--accent); font-style: normal; }
.hh-lede {
    margin: 0; max-width: 40ch;
    font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; font-weight: 350;
    color: var(--ink-soft);
}
.hh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hh-offer {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 7px 16px 7px 7px; border-radius: 999px;
    border: 1px solid var(--rule);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    font-size: 14px; color: var(--ink); text-decoration: none;
    transition: border-color 240ms ease, background-color 240ms ease;
}
.hh-offer:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hh-offer-tag {
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent); color: var(--bg);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.hh-offer-go { color: var(--accent); transition: transform 240ms cubic-bezier(.2,.7,.2,1); }
.hh-offer:hover .hh-offer-go { transform: translateX(3px); }

/* Everything below the headline follows it in, a beat apart */
.hh-eyebrow, .hh-lede, .hh-actions, .hh-offer {
    opacity: 0; transform: translateY(16px);
    animation: footIn 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hh-eyebrow { animation-delay: 60ms; }
.hh-lede { animation-delay: 520ms; }
.hh-actions { animation-delay: 640ms; }
.hh-offer { animation-delay: 780ms; }

/* The sprout: draws itself in, leaves unfurl, then milestones float up around it.
   It sways gently and leans toward the cursor (concept.js sets --tilt-x/--tilt-y). */
.hh-visual { display: flex; justify-content: center; }
.sprout-art {
    position: relative; width: min(420px, 100%); aspect-ratio: 320 / 380;
    transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.sprout-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sa-glow { fill: var(--accent-soft); animation: saGlow 1600ms cubic-bezier(.2,.7,.2,1) backwards; transform-box: fill-box; transform-origin: center; }
@keyframes saGlow { from { opacity: 0; transform: scale(0.7); } }
.sa-orbit { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 6; animation: footIn 1200ms ease 300ms backwards; }
.sa-orbit--2 { animation-delay: 500ms; }
.sa-ground { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; stroke-linecap: round; animation: footIn 900ms ease 200ms backwards; }
.sa-stem {
    fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: saDraw 1500ms cubic-bezier(.45,.1,.2,1) 450ms forwards;
}
@keyframes saDraw { to { stroke-dashoffset: 0; } }
.sa-leaf { transform-box: fill-box; animation: saUnfurl 1100ms cubic-bezier(.2,.9,.25,1.15) backwards, saSway 6s ease-in-out 3s infinite; }
.sa-leaf path:first-child { fill: color-mix(in srgb, var(--accent) 78%, transparent); }
.sa-vein { fill: none; stroke: var(--bg); stroke-opacity: 0.45; stroke-width: 1.2; stroke-linecap: round; }
.sa-leaf--l { transform-origin: right bottom; animation-delay: 1150ms, 3s; }
.sa-leaf--r { transform-origin: left bottom; animation-delay: 1450ms, 3.6s; }
@keyframes saUnfurl { from { transform: scale(0) rotate(-24deg); opacity: 0; } }
@keyframes saSway { 50% { transform: rotate(var(--sway, -3.5deg)); } }
.sa-leaf--r { --sway: 3deg; }
.sa-bud { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: saPop 700ms cubic-bezier(.2,.9,.3,1.4) 1800ms backwards; }
@keyframes saPop { from { transform: scale(0); } }
.sa-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 10px; border-radius: 999px;
    border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45);
    font-size: 13px; color: var(--ink); white-space: nowrap;
    animation: saChip 900ms cubic-bezier(.2,.7,.2,1) backwards, saFloat 7s ease-in-out infinite;
}
.sa-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sa-chip--1 { left: 0; bottom: 14%; animation-delay: 700ms, 2s; }
.sa-chip--2 { left: -4%; top: 30%; animation-delay: 1400ms, 2.6s; }
.sa-chip--3 { right: -6%; top: 44%; animation-delay: 2000ms, 3.2s; }
.sa-chip--4 { right: 4%; top: 6%; animation-delay: 2600ms, 3.8s; }
.sa-chip--4 i { background: transparent; border: 1.5px solid var(--accent); }
@keyframes saChip { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
@keyframes saFloat { 50% { translate: 0 -6px; } }

@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-bottom: 32px; }
    .hh-title { font-size: clamp(52px, 14vw, 96px); }
    .sprout-art { width: min(340px, 86%); }
}
@media (max-width: 720px) {
    .home-hero { padding-top: 112px; }
    .hh-offer { font-size: 13px; }
    /* On phones the pitch goes straight into what we believe */
    .hh-visual { display: none; }
}

/* ---------- What we believe ---------- */
.beliefs { padding-top: clamp(56px, 11vh, 130px); padding-bottom: clamp(48px, 9vh, 110px); }
.beliefs-head { max-width: 980px; margin-bottom: clamp(36px, 6vh, 64px); }
.beliefs-head .eyebrow { margin: 0 0 18px; }
.beliefs-head .display { font-size: clamp(36px, 5vw, 72px); }
.beliefs-head .body-line { margin-top: 24px; max-width: 60ch; }
.belief-grid {
    list-style: none; margin: 0; padding: 40px 0 0; border-top: 1px solid var(--rule);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px);
}
.belief { display: flex; flex-direction: column; gap: 10px; }
.belief-num { margin: 0; font-size: 12px; letter-spacing: 0.16em; color: var(--accent); font-variant-numeric: tabular-nums; }
.belief h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 27px); letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); }
.belief p:not(.belief-num) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.expertise { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(36px, 6vh, 56px); }
.expertise-label { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.expertise-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.expertise-list li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
@media (max-width: 1024px) { .belief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .belief-grid { grid-template-columns: 1fr; } }

/* ---------- Selected work: tighter on the homepage ---------- */
.page-home .featured-work { padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(48px, 9vh, 110px); gap: 0; }
.page-home .featured-work .fw-list { border-top: 0; padding-top: 0; }
.page-home .featured-work .link-arrow { margin-top: 28px; }

/* ---------- Two doors ---------- */
.doors { padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(48px, 9vh, 110px); }
.door-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.door {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: clamp(28px, 3.4vw, 48px);
    border: 1px solid var(--rule); border-radius: 28px;
    background: var(--bg-soft);
}
.door--accent {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 15%, var(--bg-soft)), var(--bg-soft) 62%);
}
.door-kicker { margin: 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.door-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.025em; line-height: 1.02; color: var(--ink); }
.door-title em { font-style: normal; color: var(--accent); }
.door-body { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.door-points { list-style: none; margin: 4px 0 8px; padding: 0; align-self: stretch; }
.door-points li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-top: 1px solid var(--rule);
    font-size: 14px; color: var(--ink);
}
.door-points li:last-child { border-bottom: 1px solid var(--rule); }
.door-points span { color: var(--ink-soft); text-align: right; }
.door .btn { margin-top: auto; }
@media (max-width: 820px) { .door-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(48px, 9vh, 110px); }

/* ---------- Promises ---------- */
.promises { padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(48px, 9vh, 110px); }
.promise-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px);
    padding-top: 40px; border-top: 1px solid var(--rule);
}
.promise { display: flex; flex-direction: column; gap: 12px; }
.promise-icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 1.9vw, 25px); letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); }
.promise p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 1024px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { padding-top: clamp(40px, 7vh, 90px); padding-bottom: clamp(40px, 7vh, 90px); }
.founder-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid var(--rule); border-radius: 28px; background: var(--bg-soft);
}
.founder-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.founder-copy .eyebrow { margin: 0; }
.founder-hi { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.founder-hi em { font-style: normal; color: var(--accent); }
.founder-copy p:not(.eyebrow) { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
@media (max-width: 720px) {
    .founder-card { grid-template-columns: 1fr; }
    .founder-card .founder-photo { width: 104px; }
}

/* ---------- Closing ---------- */
.page-home .home-closing { min-height: 0; padding-top: clamp(64px, 12vh, 140px); padding-bottom: clamp(72px, 14vh, 160px); gap: 32px; }
.page-home .home-closing .display { font-size: clamp(40px, 6vw, 84px); }

@media (prefers-reduced-motion: reduce) {
    .hh-eyebrow, .hh-lede, .hh-actions, .hh-offer { animation: none; opacity: 1; transform: none; }
    .sprout-art, .sprout-art * { animation: none !important; transition: none; }
    .sprout-art { transform: none; }
    .sa-stem { stroke-dashoffset: 0; }
}
