/* AKAMENA home — v5 prototype port (design_handoff_akamena_website/source/akamena-proto5.css).
   Shared primitives (.eyebrow, .title-xl, .deck, .support, .chips, .rv/.ir) live in base.css;
   the §04 flow band + delivery-format chips live in flow.css. This file owns the home sections.
   Values are lifted verbatim from the prototype so the page matches it 1:1. */

/* section rhythm: one idea per screen, all on the same .wrap width.
   With the mid-page photo dividers removed, the acts abut directly — a touch more
   vertical padding keeps the ivory acts from colliding; the ground change (night↔ivory),
   the 1px hairline on §04/§05, and the numbered chapter eyebrow carry the pause. */
.act-sec { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(104px, 15vh, 172px) 0; }

/* ============================================================ HERO ============ */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: var(--night); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
/* scrim: keeps the text column legible over the photo (§3b) */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,19,34,0.94) 0%, rgba(13,19,34,0.78) 46%, rgba(13,19,34,0.38) 100%),
    linear-gradient(180deg, rgba(13,19,34,0.35) 0%, transparent 22%, transparent 72%, rgba(13,19,34,0.6) 100%);
}
.hero-core { position: relative; z-index: 2; align-self: center; width: 100%; padding-top: 12vh; padding-bottom: 10vh; }
.hero .eyebrow-tag {
  font-family: var(--mono); font-size: clamp(0.9rem, 1.2vw, 1.06rem); font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: clamp(24px, 4.5vh, 44px); display: inline-flex; align-items: center; gap: 14px;
}
.hero .eyebrow-tag::before { content: ""; width: 30px; height: 1px; background: var(--gold-bright); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.9rem); line-height: 1.04; letter-spacing: -0.008em; max-width: 16ch; color: var(--ivory); }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-line { margin-top: clamp(22px, 3.2vh, 38px); font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.62; max-width: 46ch; color: rgba(251,250,246,0.78); }
.hero-line b { color: var(--ivory); font-weight: 400; }

/* ============================================================ 01 — WHAT WE DO (the combination) ============ */
.whatwedo { background: var(--ivory); }
/* three inputs converge on the individual client — never a broadcast */
.combine { margin-top: clamp(46px, 7vh, 86px); }
.c-in { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: stretch; }
.c-tile { border: 1px solid var(--hairline); background: var(--white); padding: clamp(22px, 2.6vw, 32px); }
.c-tile .beat-idx { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1; color: var(--ink); }
.c-tile h4 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.12; margin-top: 14px; }
.c-tile p { margin-top: 10px; font-size: 0.92rem; color: var(--body); max-width: 30ch; }
.c-tile .beat-viz { margin-top: 22px; height: 54px; }
.c-plus { align-self: center; font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 3.4vw, 3.4rem); color: var(--gold); line-height: 1; }
/* output box spans the full row: left edge aligns with the first tile, right edge with the last */
.c-out { margin: clamp(24px, 3.5vh, 40px) 0 0; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); justify-content: flex-start; border: 1px solid var(--ledger); background: var(--cream); padding: clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 52px); width: 100%; }
.c-eq { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 3.8vw, 3.8rem); color: var(--gold); line-height: 1; }
.c-story { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.3vw, 1.95rem); color: var(--ink); line-height: 1.2; }
.c-range { margin-top: 8px; font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
/* input mini-motifs */
.viz-structure, .viz-context, .viz-universe { width: 100%; height: 100%; }
.viz-structure { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-content: center; }
.viz-structure i { height: 6px; background: var(--gold); opacity: .8; }
/* universe: liquid (bars) · hairline · illiquid (blocks) */
.viz-universe { display: flex; align-items: stretch; gap: 12px; }
.viz-universe .vu-liq { flex: 1.1; display: flex; align-items: flex-end; gap: 4px; }
.viz-universe .vu-liq i { flex: 1; background: var(--gold); opacity: .75; display: block; }
.viz-universe .vu-div { width: 1px; background: var(--hairline); }
.viz-universe .vu-ill { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-content: center; }
.viz-universe .vu-ill i { height: 15px; border: 1px solid var(--gold); opacity: .7; display: block; }
.viz-context { position: relative; display: flex; align-items: center; }
.viz-context .core { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); position: relative; }
.viz-context .core::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--gold); }
.viz-context .ray { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ============================================================ 02 — PROBLEM (night) ============ */
.problem { background: var(--night); color: rgba(255,255,255,0.7); }
.problem .title-xl { color: var(--ivory); }
.problem .title-xl em { color: var(--gold-bright); }
.problem .deck { color: rgba(255,255,255,0.62); }
.stake { margin-top: clamp(46px, 7vh, 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.stake-card { border: 1px solid var(--hairline-dark); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; min-height: 220px; transition: border-color .5s var(--ease), background .5s var(--ease); }
.stake-card:hover { border-color: rgba(226,163,60,0.5); background: rgba(255,255,255,0.02); }
.stake-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--hairline-dark); padding-bottom: 14px; }
.stake-card .who { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.stake-card .num { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1; color: var(--gold-bright); }
.stake-card p { margin-top: 18px; font-size: 1.12rem; line-height: 1.5; color: var(--ivory); font-weight: 300; }
/* The firm card intentionally shares the same background + border as 01/02 (no gold tint) */
.problem-close { margin-top: clamp(36px, 5vh, 56px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.42); }
.problem-close em { font-style: normal; color: var(--gold-bright); }

/* ============================================================ 03 — VISION (payoff pillars) ============ */
.vision { background: var(--ivory); }
.vision .support b { color: var(--ink); font-weight: 600; }
/* one "The payoff" label above the three pillars (never repeated per pillar) */
.payoff-label { margin-top: clamp(46px, 7vh, 84px); font-family: var(--mono); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
/* three payoff cards — same bordered-card form, gap and min-height as the §02 stakeholder cards */
.payoff { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.payoff-col { position: relative; border: 1px solid var(--hairline); background: var(--white); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; min-height: 166px; transition: border-color .5s var(--ease); }
/* hover-only accent — gated so a tap can't leave a sticky gold border on touch devices
   (keeps all three cards identically grey in their default state). */
@media (hover: hover) { .payoff-col:hover { border-color: var(--gold); } }
.payoff-col .num { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1; color: var(--ink); }
/* the serif label, vertically centred in the card below the index */
.payoff-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.payoff-col h4 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; margin: 0; }
.payoff-col .p-for { display: none; margin-top: 12px; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ============================================================ 04 — PRODUCT (act head + flow band + close + fits) ============ */
/* The flow band itself + the "Delivered as" chips are styled in flow.css. */
.product { background: var(--white); border-top: 1px solid var(--hairline); }
.product .framing { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 60ch; }
.product .framing em { font-style: italic; color: var(--ink); }
/* the §04 closing line + how-it-fits band now live only on /product (product.css) */

/* ============================================================ 05 — TEAM (expandable profiles) ============ */
.team { background: var(--ivory); border-top: 1px solid var(--hairline); }
.team .support { max-width: 60ch; }
.team .support.values { margin-top: 14px; }
/* align-items:stretch so the three tiles share one row height; they open/close together (team-tiles.js) */
.team-tiles { margin-top: clamp(46px, 7vh, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); align-items: stretch; }
/* each tile is a <details>: title (name + role) shown; full bio revealed on click */
.tile { border: 1px solid var(--hairline); background: var(--white); padding: clamp(28px, 3vw, 40px); transition: border-color .5s var(--ease), transform .5s var(--ease); }
.tile:hover { border-color: var(--gold); transform: translateY(-4px); }
.tile > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 20px; }
.tile > summary::-webkit-details-marker { display: none; }
.tile > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* neutral portrait placeholder — no stock faces; real photos pending */
.portrait-ph { aspect-ratio: 4 / 5; border: 1px solid var(--hairline); background: repeating-linear-gradient(135deg, rgba(26,36,64,0.02) 0 10px, transparent 10px 20px), var(--cream); display: grid; place-items: center; }
.portrait-ph span { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.t-head { display: block; }
.tile .t-name { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.tile .t-role { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
/* expand affordance: "Read bio +" → "Hide bio –" */
.t-toggle { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.t-toggle::after { content: "+"; font-size: 1.3em; line-height: 1; }
.tile[open] .t-toggle::after { content: "–"; }
.t-toggle .tog-o { display: none; }
.tile[open] .t-toggle .tog-c { display: none; }
.tile[open] .t-toggle .tog-o { display: inline; }
/* the bio (in the DOM even when collapsed → crawlable) */
.t-bio { margin-top: 22px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.t-bio p { font-size: 0.92rem; line-height: 1.62; color: var(--ink); max-width: 46ch; }
.t-bio p + p { margin-top: 12px; }

/* ============================================================ LEDE (404 / shell) ============ */
.lede { padding: clamp(120px, 22vh, 240px) 0 clamp(80px, 14vh, 160px); }
.lede h1 { font-size: clamp(2.9rem, 7vw, 6.8rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); }
.lede h1 em { font-style: italic; color: var(--gold); }
.lede p.sub { margin-top: clamp(20px, 3vh, 36px); max-width: 46ch; font-size: clamp(1.02rem, 1.45vw, 1.28rem); line-height: 1.65; color: var(--body); }
.lede .note { margin-top: clamp(36px, 6vh, 56px); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.lede .note a { border-bottom: 1px solid var(--gold); }

/* ============================================================ TEXT CONTRAST (§01–04) ============ */
/* Body copy: darker on the light grounds, brighter on the night ground, for stronger contrast. */
.whatwedo .support, .whatwedo .c-tile p,
.vision .support,
.product .framing { color: #2A3446; }
.problem .deck { color: rgba(255, 255, 255, 0.85); }
.problem-close { color: rgba(255, 255, 255, 0.7); }

/* ============================================================ RESPONSIVE ============ */
@media (max-width: 980px) {
  .c-in { grid-template-columns: 1fr; }
  .c-plus { justify-self: center; }
  .c-out { width: auto; text-align: left; }
  .stake { grid-template-columns: 1fr; }
  .stake-card { min-height: 0; }
  .payoff { grid-template-columns: 1fr; }
  .payoff-col { min-height: 120px; }
  .team-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .title-xl { font-size: clamp(2rem, 8.5vw, 3rem); }
}

/* ============================================================ DESKTOP LINE-WIDTHS (≥981px only) ============ */
/* Let titles and paragraphs run to the end of the line instead of wrapping early. Titles break at
   the sentence boundary (2nd sentence — the italic one — drops to its own line). Mobile is untouched. */
@media (min-width: 981px) {
  .title-xl { max-width: none; }
  .title-xl em { display: block; }
  .deck { max-width: 88ch; text-wrap: pretty; }
  .support { max-width: 92ch; text-wrap: pretty; }
  .product .framing { max-width: 92ch; text-wrap: pretty; }
  .team .support { max-width: 92ch; text-wrap: pretty; }
}
