/* Character profile pages: isolated from the shared site styles. */
.character-profile { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 88px; }
.character-profile * { box-sizing: border-box; }
.character-profile a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.profile-hero { display: grid; align-items: center; gap: clamp(28px, 5vw, 64px); min-height: 680px; padding: clamp(30px, 5vw, 64px); }
.profile-hero__visual { align-self: end; text-align: center; }
.profile-hero__visual img { display: block; width: min(100%, 500px); max-height: 560px; margin: 0 auto; object-fit: contain; image-rendering: auto; }
.profile-kakka { --profile-ink: #e7ecd8; --profile-muted: #bbc6ad; --profile-panel: #142a37; --profile-line: rgba(223, 180, 80, .38); --profile-accent: #dfb450; color: var(--profile-ink); }
.profile-kakka .profile-hero { grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr); background: linear-gradient(135deg, #0b1d2a, #1d3440 58%, #44543a); border: 1px solid var(--profile-line); border-radius: 12px; box-shadow: 0 24px 58px rgba(7, 22, 31, .3); position: relative; overflow: hidden; }
.profile-kakka .profile-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4; background: repeating-linear-gradient(0deg, transparent 0 42px, rgba(223,180,80,.12) 43px 44px), repeating-linear-gradient(90deg, transparent 0 68px, rgba(223,180,80,.1) 69px 70px); }
.profile-kakka .profile-hero > * { position: relative; }
.profile-kakka h1, .profile-kakka h2, .profile-kakka h3 { color: var(--profile-ink); }
.profile-kakka h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 16px; line-height: 1.18; }
.profile-kakka .profile-kicker { color: var(--profile-accent); font-weight: 800; letter-spacing: .14em; }
.profile-kakka .profile-lead { max-width: 600px; font-size: 1.15rem; font-weight: 700; line-height: 1.8; }
.privacy-promise { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--profile-accent); background: rgba(255,255,255,.08); color: inherit; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-actions .button { min-height: 52px; border-color: var(--profile-accent); color: inherit; border-radius: 8px; }
.profile-actions .button.primary { background: var(--profile-accent); color: #17242d; }
.profile-actions .text-action { align-self: center; color: var(--profile-ink); font-weight: 800; }
.profile-kakka .profile-section { margin-top: 72px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--profile-line); background: var(--profile-panel); border-radius: 10px; }
.profile-kakka .section-eyebrow { color: var(--profile-accent); font-weight: 800; letter-spacing: .1em; }
.profile-kakka .profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-kakka .entry-card { display: block; min-height: 148px; padding: 20px; border: 1px solid var(--profile-line); border-radius: 8px; color: inherit; background: rgba(255,255,255,.035); text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.profile-kakka .entry-card:hover, .profile-kakka .entry-card:focus-visible { border-color: var(--profile-accent); transform: translateY(-3px); background: rgba(223,180,80,.12); }
.profile-kakka .entry-card span { display: block; color: var(--profile-accent); font-family: ui-monospace, monospace; font-size: .8rem; }
.profile-kakka .entry-card h3 { margin: 9px 0 5px; font-size: 1.05rem; }
.profile-kakka .entry-card p { margin: 0; color: var(--profile-muted); font-size: .92rem; }
.profile-kakka .profile-list { margin: 0; padding-left: 1.2rem; }
.profile-kakka .profile-list li { margin: 10px 0; }
.profile-kakka .video-panel, .profile-kakka .sample-log { border-left: 4px solid var(--profile-accent); padding: 18px; background: rgba(5,13,20,.35); }
.profile-kakka .safety-panel { background: #f5f5f1; color: #1d2d2a; border-color: #d7ddcf; }
.profile-kakka .safety-panel h2, .profile-kakka .safety-panel h3 { color: #1d2d2a; }
.profile-kakka .final-cta { text-align: center; background: linear-gradient(105deg, #122b39, #53613f); }

.profile-puni { --puni-ink: #245448; --puni-muted: #53766a; --puni-mint: #d8f0da; --puni-yellow: #f7d66f; --puni-cream: #fffaf0; color: var(--puni-ink); }
.profile-puni .profile-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); background: radial-gradient(circle at 14% 20%, #fffef8, transparent 28%), linear-gradient(145deg, #fff9e8, #e3f4dc 58%, #d2eedb); border: 1px solid rgba(65, 130, 102, .22); border-radius: 42px; position: relative; overflow: hidden; }
.profile-puni .profile-hero::before { content: "✦  •  ❋  •  ✦"; position: absolute; right: 5%; top: 8%; color: #e1b641; letter-spacing: .45em; opacity: .72; }
.profile-puni h1, .profile-puni h2, .profile-puni h3 { color: var(--puni-ink); }
.profile-puni h1 { font-size: clamp(2.45rem, 5vw, 4rem); margin: 0 0 16px; line-height: 1.2; }
.profile-puni .profile-kicker { color: #b47d1b; font-weight: 800; letter-spacing: .1em; }
.profile-puni .profile-lead { max-width: 560px; font-size: 1.16rem; font-weight: 700; line-height: 1.85; }
.profile-puni .privacy-promise { border: 0; border-radius: 20px; background: #fff2b9; color: #4f4b2a; }
.profile-puni .profile-actions .button { min-height: 54px; border-color: #6ca980; border-radius: 24px; }
.profile-puni .profile-actions .button.primary { background: #5d9d72; color: #fff; }
.profile-puni .text-action { align-self: center; color: #356c55; font-weight: 800; }
.profile-puni .profile-section { margin-top: 64px; padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(65,130,102,.19); background: rgba(255,253,245,.86); border-radius: 32px; box-shadow: 0 16px 32px rgba(68,125,88,.08); }
.profile-puni .section-eyebrow { color: #b47d1b; font-weight: 800; letter-spacing: .08em; }
.profile-puni .profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-puni .entry-card { display: block; min-height: 150px; padding: 20px; border: 1px solid rgba(65,130,102,.2); border-radius: 26px; color: inherit; background: #fffef9; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.profile-puni .entry-card:hover, .profile-puni .entry-card:focus-visible { transform: translateY(-4px); background: #effae9; box-shadow: 0 12px 24px rgba(67,137,94,.16); }
.profile-puni .entry-card span { display: block; color: #b47d1b; font-size: 1.1rem; }
.profile-puni .entry-card h3 { margin: 8px 0 5px; font-size: 1.05rem; }
.profile-puni .entry-card p { margin: 0; color: var(--puni-muted); font-size: .92rem; }
.profile-puni .profile-list { margin: 0; padding-left: 1.2rem; }
.profile-puni .profile-list li { margin: 10px 0; }
.profile-puni .video-panel { padding: 22px; border-radius: 24px; background: #e5f4e4; }
.profile-puni .quick-note { padding: 20px; border-radius: 28px; background: #fff1bc; }
.profile-puni .discovery-panel { background: #e8f7ec; }
.profile-puni .safety-panel { background: #f6f5f0; }
.profile-puni .final-cta { text-align: center; background: linear-gradient(135deg, #fff1bc, #d8f0da); }

/* Field staff profile: an industrial field-log look, intentionally distinct from Kakka and Puni. */
.profile-stachan { --st-ink: #f6efe0; --st-muted: #c8c2b6; --st-panel: #171b1b; --st-line: rgba(240, 166, 56, .4); --st-orange: #ed8d2c; --st-red: #b74132; color: var(--st-ink); }
.profile-stachan .character-profile { width: min(1240px, calc(100% - 40px)); }
.profile-stachan h1, .profile-stachan h2, .profile-stachan h3 { color: var(--st-ink); }
.stachan-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); min-height: 690px; overflow: hidden; border: 1px solid var(--st-line); border-radius: 4px; background: radial-gradient(circle at 83% 35%, rgba(187,65,43,.34), transparent 29%), linear-gradient(120deg, #101415 0%, #20201d 53%, #3b251f 100%); box-shadow: 0 24px 58px rgba(18,14,10,.3); }
.stachan-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .52; background: repeating-linear-gradient(90deg, transparent 0 75px, rgba(248,225,186,.055) 76px 77px), repeating-linear-gradient(0deg, transparent 0 75px, rgba(248,225,186,.045) 76px 77px); }
.stachan-hero::after { content: "FIELD UNIT · WONTRA EXPEDITION"; position: absolute; left: -24px; bottom: 36px; font-size: clamp(2.2rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: .07em; color: rgba(255,255,255,.045); white-space: nowrap; pointer-events: none; }
.stachan-hero__copy { position: relative; z-index: 1; align-self: center; padding: clamp(32px, 6vw, 82px); }
.profile-stachan .profile-kicker, .profile-stachan .section-eyebrow { margin: 0 0 12px; color: var(--st-orange); font-weight: 900; letter-spacing: .15em; }
.stachan-hero__status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 10px; border: 1px solid rgba(237,141,44,.5); color: #f5c36f; font: 800 .74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.stachan-hero__status span { width: 8px; height: 8px; border-radius: 50%; background: #86d56a; box-shadow: 0 0 12px #86d56a; }
.profile-stachan h1 { margin: 0 0 18px; font-size: clamp(2.75rem, 5.6vw, 4.7rem); line-height: 1.08; letter-spacing: .03em; }
.profile-stachan .profile-lead { max-width: 620px; font-size: 1.15rem; font-weight: 700; line-height: 1.9; }
.stachan-hero__note { max-width: 560px; margin: 26px 0; padding: 17px 20px; border-left: 4px solid var(--st-orange); color: var(--st-ink); background: rgba(0,0,0,.22); line-height: 1.75; }
.profile-stachan .profile-actions .button { min-height: 52px; border-color: var(--st-orange); border-radius: 2px; color: var(--st-ink); }
.profile-stachan .profile-actions .button.primary { color: #18130e; background: var(--st-orange); }
.stachan-hero__visual { position: relative; z-index: 1; align-self: center; min-height: 0; padding: 28px 22px; overflow: hidden; background: linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.04)); }
.stachan-hero__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #22201d 0%, transparent 25%), linear-gradient(0deg, rgba(0,0,0,.38), transparent 35%); }
.stachan-hero__visual img { display: block; width: min(100%, 390px); height: auto; max-height: 520px; margin: 0 auto; object-fit: contain; object-position: center; filter: contrast(1.05) saturate(.9); }
.stachan-section { margin-top: 62px; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(242,224,190,.18); background: var(--st-panel); border-radius: 4px; }
.stachan-section h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.stachan-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border: 1px solid rgba(242,224,190,.16); background: rgba(242,224,190,.16); }
.stachan-role-grid article { min-height: 200px; padding: 24px; background: #20211e; }
.stachan-role-grid h3 { margin: 13px 0 8px; font-size: 1.2rem; }
.stachan-role-grid p { margin: 0; color: var(--st-muted); line-height: 1.75; }
.stachan-index { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--st-orange); border-radius: 50%; color: #ffd997; font: 800 .85rem/1 ui-monospace, monospace; }
.stachan-road { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 32px; background: linear-gradient(125deg, #30251f, #1a1c1c); border-color: rgba(237,141,44,.38); }
.stachan-road p:not(.section-eyebrow):not(.stachan-road__coming) { max-width: 650px; color: var(--st-muted); line-height: 1.8; }
.stachan-road__coming { margin: 20px 0 0; color: #f4ba5a; font: 900 .9rem/1 ui-monospace, monospace; letter-spacing: .2em; }
.profile-stachan .stachan-road .button { margin-top: 20px; min-height: 50px; border-color: #ed8d2c; border-radius: 2px; background: #ed8d2c; color: #18130e; }
.stachan-road__logo { display: block; width: min(210px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.28)); }
.stachan-checklist { background: #ece7d9; color: #202321; border-color: #d8c49b; }
.stachan-checklist h2 { color: #202321; }
.stachan-checklist .section-eyebrow { color: #a15722; }
.stachan-checklist .profile-list { margin: 0; padding-left: 1.25rem; }
.stachan-checklist .profile-list li { margin: 13px 0; font-weight: 700; }
.stachan-final { text-align: center; background: linear-gradient(115deg, #451f1c, #232220 55%, #2e3a30); }
.stachan-final p { color: var(--st-muted); }
.profile-stachan .stachan-final .button { min-height: 52px; border-color: var(--st-orange); border-radius: 2px; color: #1b160f; background: var(--st-orange); }

@media (max-width: 1023px) { .profile-hero { min-height: auto; } }
@media (max-width: 767px) {
  .character-profile { width: min(100% - 32px, 680px); padding: 26px 0 58px; }
  .profile-kakka .profile-hero, .profile-puni .profile-hero { grid-template-columns: 1fr; padding: 28px 20px; }
  .profile-kakka .profile-hero__visual { order: 2; } .profile-puni .profile-hero__visual { order: 2; }
  .profile-stachan .character-profile { width: min(100% - 32px, 680px); }
  .stachan-hero { grid-template-columns: 1fr; min-height: 0; }
  .stachan-hero__copy { padding: 32px 22px; }
  .stachan-hero__visual { order: -1; min-height: 0; height: auto; max-height: none; padding: 24px 20px; }
  .stachan-hero__visual::after { background: linear-gradient(0deg, #22201d 0%, transparent 35%); }
  .stachan-hero__visual img { width: min(75vw, 330px); height: auto; max-height: 420px; }
  .profile-stachan h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .stachan-role-grid, .stachan-road { grid-template-columns: 1fr; }
  .stachan-role-grid article { min-height: auto; }
  .stachan-road__logo { width: min(190px, 74vw); }
  .profile-hero__visual img { width: min(78vw, 340px); max-height: 425px; }
  .profile-kakka h1, .profile-puni h1 { font-size: clamp(2.1rem, 10vw, 2.55rem); }
  .profile-actions { display: grid; grid-template-columns: 1fr; }
  .profile-actions .button { width: 100%; text-align: center; }
  .profile-actions .text-action { text-align: center; }
  .profile-kakka .profile-section, .profile-puni .profile-section { margin-top: 42px; }
  .profile-kakka .profile-grid, .profile-puni .profile-grid { grid-template-columns: 1fr; }
  .profile-kakka .entry-card, .profile-puni .entry-card { min-height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .character-profile *, .character-profile *::before { scroll-behavior: auto !important; transition: none !important; } }
