/* A personal manifesto with a real, compact conversation. GHL owns the native
   300px chat height. Keep this reservation aligned with its public settings. */
:root { --masthead-height: 64px; --brain-chat-height: 300px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.masthead { height: var(--masthead-height); }
.wordmark { font-size: 10px; }
.wordmark span { font-size: 29px; }
.desktop-nav { gap: clamp(20px, 2.8vw, 40px); }
.nav-talk { margin-left: 0; }
.hero { min-height: min(920px, calc(100svh - var(--masthead-height))); padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; overflow: visible; }
.hero-content { display: grid; grid-template-areas: 'intro person' 'chat person'; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr); gap: 12px clamp(24px, 2.6vw, 44px); align-items: start; width: 100%; max-width: none; }
.hero-intro { grid-area: intro; min-width: 0; }
.hero-kicker { margin: 0 0 8px; color: var(--accent); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .13em; }
.hero h1 { margin: 0; width: auto; position: relative; z-index: 2; font-size: clamp(60px, min(7.45vw, 13.1svh), 118px); line-height: .98; letter-spacing: -.02em; white-space: normal; }
.hero h1 .hero-title-line { display: block; color: var(--paper); white-space: nowrap; }
.hero h1 .hero-title-last { display: inline; color: var(--paper); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-thesis { font-size: 16px; line-height: 1.4; margin: 10px 0 0; max-width: none; color: var(--paper); }
.thesis-short { display: none; }
.hero-person { contain: size; grid-area: person; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0; height: 100%; min-width: 0; min-height: 0; margin: 0; align-self: stretch; }
.hero-person .hero-portrait { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; overflow: hidden; opacity: 1; mask-image: linear-gradient(0deg, transparent 0%, #000 20%, #000 100%); mask-composite: add; }
.hero-person .hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.12) brightness(.96); }
.hero-person figcaption { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 10px 0 2px; }
.hero-person-name { display: block; font-family: var(--sc-font-display); font-size: clamp(23px, 2.2vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: .015em; color: var(--paper); }
.hero-person-role { display: block; margin-top: 5px; font-size: 10px; line-height: 1.4; color: var(--soft); letter-spacing: .04em; }
.hero-art { inset: 0; height: 100%; overflow: hidden; }
.hero-grid { top: 0; right: 0; width: 52%; height: 100%; background-size: 66px 66px; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 45%, #000); }
.hero-board { top: auto; right: 0; left: auto; bottom: 10%; width: 210px; height: 210px; opacity: .32; }
.brain { grid-area: chat; width: 100%; max-width: 620px; min-width: 0; }
.brain-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 28px; margin: 0 0 6px; }
.brain-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--body-font, Manrope, sans-serif); font-size: 13px; line-height: 1.4; letter-spacing: .07em; font-weight: 800; color: var(--accent); }
.brain-ai { font-size: 8px; line-height: 1.4; letter-spacing: .05em; color: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 2px 4px; }
.brain-heading .brain-human { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; min-height: 28px; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--paper); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.brain-human svg { width: 12px; height: 12px; color: var(--accent); }
.brain-chat, .brain-chat-mount { min-height: var(--brain-chat-height); }
.brain-chat { width: 100%; border-radius: 12px; overflow: visible; background: transparent; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.chat-status { border-radius: 12px; }
.brain-chat[data-chat-state='unavailable'], .brain-chat[data-chat-state='unavailable'] .brain-chat-mount { min-height: 0; }
@media (min-width: 861px) and (max-height: 700px) {
  :root { --masthead-height: 56px; }
  .hero { padding-block: 10px; }
  .hero h1 { font-size: clamp(60px, min(7.45vw, calc((100svh - 470px) / 2)), 105px); }
  .hero-thesis { font-size: 14px; line-height: 1.4; margin-top: 8px; }
  .hero-content { row-gap: 8px; }
  .hero-kicker { margin-bottom: 6px; }
}
@media (max-width: 860px) {
  :root { --masthead-height: 56px; --portrait-width: clamp(116px, 35.4vw, 216px); --portrait-height: 204px; }
  .masthead { padding-inline: 12px; }
  .wordmark { font-size: 8px; }
  .wordmark span { font-size: 24px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--paper); font-size: 11px; padding: 10px 0 10px 12px; }
  .menu-lines { position: relative; display: block; width: 20px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .mobile-nav { position: absolute; top: var(--masthead-height); left: 0; right: 0; background: var(--canvas); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .mobile-nav a { font-size: 18px; }
  .hero { min-height: 0; display: block; padding: 12px; }
  .hero-content { grid-template-areas: 'kicker kicker' 'title person' 'thesis thesis' 'chat chat'; grid-template-columns: minmax(0, 1fr) var(--portrait-width); gap: 10px 8px; max-width: 620px; margin-inline: auto; }
  .hero-intro { display: contents; }
  .hero-kicker { grid-area: kicker; font-size: 10px; line-height: 1.4; letter-spacing: .075em; margin: 0; }
  .hero h1 { grid-area: title; align-self: center; font-size: clamp(36px, 11.1vw, 64px); line-height: .99; letter-spacing: -.025em; }
  .hero h1 .hero-title-last { display: block; }
  .hero-thesis { grid-area: thesis; font-size: 13px; line-height: 1.4; margin: 0; }
  .hero-person { height: var(--portrait-height); }
  .hero-person .hero-portrait { mask-image: linear-gradient(0deg, transparent 0%, #000 16%, #000 100%); }
  .hero-person .hero-portrait img { object-fit: cover; object-position: 50% 0; transform: scale(1.18); transform-origin: 50% 16%; }
  .hero-person figcaption { padding: 5px 0 0; border: 0; }
  .hero-person-name { font-size: clamp(14px, 3.8vw, 23px); line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .hero-person-role { display: none; }
  .hero-art { height: 330px; }
  .hero-grid { width: 65%; background-size: 40px 40px; }
  .hero-board { width: 132px; height: 132px; right: 0; bottom: 12px; opacity: .18; }
  .brain-heading { min-height: 28px; margin-bottom: 6px; gap: 10px; }
  .brain-heading h2 { font-size: 12px; gap: 7px; }
  .brain-heading .brain-human { font-size: 10px; gap: 6px; }
  .brain-chat { border-radius: 10px; }
}
@media (max-width: 860px) and (max-height: 740px) {
  :root { --masthead-height: 50px; --portrait-height: 160px; }
  .hero { padding-block: 10px; }
  .hero-content { row-gap: 8px; }
  .hero-kicker { font-size: 9px; line-height: 1.4; }
  .hero-thesis { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 340px) {
  :root { --masthead-height: 44px; --portrait-width: 116px; --portrait-height: 134px; }
  .masthead { padding-inline: 12px; }
  .wordmark span { font-size: 22px; }
  .hero { padding: 8px; }
  .hero-content { row-gap: 6px; }
  .hero h1 { font-size: 36px; letter-spacing: -.025em; }
  .hero-kicker { font-size: 8.5px; letter-spacing: .04em; }
  .hero-thesis { font-size: 11px; }
  .brain-heading { min-height: 24px; margin-bottom: 4px; }
  .brain-heading h2 { font-size: 11px; gap: 6px; }
  .brain-heading .brain-human { min-height: 24px; font-size: 9px; }
  .brain-ai { font-size: 7px; padding: 1px 3px; }
}
@media (max-width: 340px) and (max-height: 600px) {
  .thesis-full { display: none; }
  .thesis-short { display: block; }
}
/* The short landscape arrangement keeps the full native chat on the right;
   navigation, the headline and named portrait share the left side. */
@media (min-width: 640px) and (max-height: 520px) {
  :root { --masthead-height: 44px; }
  .masthead { width: 49%; margin-left: 0; margin-right: auto; padding-inline: 20px 12px; border-bottom: 0; }
  .wordmark { font-size: 8px; }
  .wordmark span { font-size: 23px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: none; color: var(--paper); font-size: 10px; }
  .menu-lines { display: block; width: 20px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .mobile-nav { position: absolute; top: var(--masthead-height); left: 0; right: 0; background: var(--canvas); padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line); }
  .hero { margin-top: calc(-1 * var(--masthead-height)); min-height: 100svh; padding: 10px 20px; display: block; }
  .hero-content { position: relative; display: grid; grid-template-areas: 'intro chat' 'person chat'; grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr); grid-template-rows: auto 1fr; gap: 8px 20px; max-width: none; min-height: 334px; }
  .hero-intro { display: block; padding-top: 42px; }
  .hero-kicker { font-size: 8px; margin-bottom: 5px; letter-spacing: .02em; }
  .hero h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: .98; }
  .hero h1 .hero-title-last { display: inline; }
  .hero-thesis { font-size: 10px; line-height: 1.4; margin-top: 7px; }
  .hero-person { height: 154px; width: 160px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0; }
  .hero-person .hero-portrait { width: 100%; height: 100%; }
  .hero-person figcaption { padding: 4px 0 0; border: 0; }
  .hero-person-name { font-size: 16px; white-space: normal; }
  .hero-person-role { display: none; }
  .hero-board { width: 110px; height: 110px; left: 15%; right: auto; bottom: 0; }
  .brain { align-self: start; }
  .brain-heading { min-height: 24px; margin-bottom: 4px; gap: 8px; }
  .brain-heading h2 { font-size: 11px; }
  .brain-heading .brain-human { min-height: 24px; font-size: 9px; }
}
