/* Hero — one calm screen: name, one line, ask box, roles; portrait with gentle parallax */
:root { --hero-bg: #eef1f7; --hero-ink: #141a33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-bg: #0e1016; --hero-ink: #eef1ff; } }
:root[data-theme="dark"] { --hero-bg: #0e1016; --hero-ink: #eef1ff; }

.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: env(safe-area-inset-top, 0px) max(5vw, 16px, env(safe-area-inset-right, 0px)) 0 max(5vw, 16px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex;
  flex-direction: column;
}
.hero > * { width: 100%; max-width: 1200px; margin-inline: auto; }

/* Nav */
.hnav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; position: relative; z-index: 3; }
.wordmark { white-space: nowrap; color: var(--hero-ink) !important; font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -0.03em; text-decoration: none !important; }
.hnav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.hnav-links a { color: var(--hero-ink); }
.btn-ink { background: var(--hero-ink); color: var(--hero-bg) !important; border-radius: 12px; min-height: 44px; }
.btn-ink:hover { opacity: .88; }

/* Layout */
.hero-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; padding-block: 24px 64px; position: relative; z-index: 2; }
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 6px 14px 6px 10px; border-radius: 980px; background: color-mix(in srgb, var(--hero-ink) 6%, var(--hero-bg)); border: 1px solid color-mix(in srgb, var(--hero-ink) 12%, transparent); font-size: 14px; line-height: 1.35; font-weight: 600; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px color-mix(in srgb, #1f9d55 22%, transparent); animation: pulse 2.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #1f9d55 6%, transparent); } }
.hello { margin: 0 0 6px; font-size: 19px; }
.hero h1 { margin: 0; font-size: clamp(46px, 6.6vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--hero-ink); }
.hero-desc { margin: 22px 0 0; max-width: 520px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: color-mix(in srgb, var(--hero-ink) 74%, var(--hero-bg)); }

/* Ask box */
.hero-ask { margin-top: 32px; width: 100%; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 980px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); box-shadow: 0 12px 40px rgba(20, 26, 51, .12); transition: box-shadow .2s, border-color .2s; }
.hero-ask:focus-within { border-color: var(--brand); box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 25%, transparent); }
.hero-ask-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.hero-ask-icon svg { width: 16px; height: 16px; fill: #fff; }
.hero-ask input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-height: 44px; }
.hero-ask input::placeholder { color: var(--muted); }
.hero-ask .btn { min-height: 44px; padding: 0 22px; }

/* Role chips */
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.chips-label { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--hero-ink) 60%, var(--hero-bg)); margin-right: 2px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 980px; border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); background: transparent; color: var(--hero-ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.hero-chip .i { width: 15px; height: 15px; color: var(--brand); }
.hero-chip:hover { background: color-mix(in srgb, var(--hero-ink) 6%, transparent); border-color: color-mix(in srgb, var(--brand) 50%, transparent); transform: translateY(-1px); }

/* Visual */
.hero-visual { position: relative; align-self: stretch; min-height: 520px; }
.hero-visual [data-depth] { translate: var(--px, 0) var(--py, 0); transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.orb { position: absolute; left: 50%; bottom: 8%; width: min(460px, 82%); aspect-ratio: 1; margin-left: calc(min(460px, 82%) / -2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand) 60%); }
.orb-2 { width: 120px; margin-left: 0; left: 78%; bottom: 66%; background: color-mix(in srgb, var(--brand) 22%, var(--hero-bg)); }
.portrait { position: absolute; left: 50%; bottom: 0; margin: 0 0 0 calc(min(400px, 74%) / -2); width: min(400px, 74%); aspect-ratio: 900 / 938; border-radius: 50% 50% 0 0 / 46% 46% 0 0; overflow: hidden; background: #0b0b0c; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.portrait.cutout { background: none; border-radius: 0; overflow: visible; width: min(500px, 92%); margin-left: calc(min(500px, 92%) / -2); aspect-ratio: 890 / 900; }
.portrait.cutout img { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 24px 40px rgba(20, 26, 51, .22)); }

.float { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--hero-ink) 10%, transparent); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 12px 30px rgba(20, 26, 51, .14); color: var(--ink); cursor: pointer; text-align: left; animation: bob 6s ease-in-out infinite; }
.float strong { font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; color: var(--brand); }
.float span { font-size: 13px; color: var(--muted); max-width: 150px; line-height: 1.3; }
.float:hover { box-shadow: 0 16px 40px rgba(20, 26, 51, .2); }
.f1 { left: 0; bottom: 30%; }
.f2 { right: 0; bottom: 10%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Chat + credentials framing */
.chat-section { background: var(--bg); padding: clamp(56px, 8vw, 96px) max(5vw, 16px, env(safe-area-inset-right, 0px)) clamp(48px, 6vw, 80px) max(5vw, 16px, env(safe-area-inset-left, 0px)); }
.chat-intro { max-width: 1200px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.chat-intro h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.chat-intro p { margin: 0; max-width: 460px; font-size: 17px; color: var(--muted); }
.creds { padding: 0 max(5vw, 16px, env(safe-area-inset-right, 0px)) clamp(56px, 8vw, 96px) max(5vw, 16px, env(safe-area-inset-left, 0px)); }
.creds-wall { max-width: 1200px; margin: 0 auto; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px max(5vw, 16px) max(24px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .hnav-links a { display: none; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text { padding-bottom: 24px; }
  .hero-visual { min-height: 440px; }
}
/* Phone: name → photo → ask box → roles */
@media (max-width: 560px) {
  .hero-main { display: flex; flex-direction: column; align-items: stretch; }
  .hero-text { display: contents; }
  .avail { order: 1; align-self: flex-start; margin-top: 8px; }
  .hello { order: 2; font-size: 17px; }
  .hero h1 { order: 3; font-size: 44px; }
  .hero-desc { order: 4; font-size: 17px; margin-top: 14px; }
  .hero-visual { order: 5; margin-top: 8px; }
  .hero-ask { order: 6; margin-top: 20px; }
  .hero-chips { order: 7; margin-bottom: 36px; }
  .hero-chip { min-height: 36px; font-size: 13px; }
  .hnav-links { gap: 10px; }
  .avail { margin-bottom: 20px; font-size: 13px; }
  .hero-ask .btn { padding: 0 16px; }
  .hero-visual { min-height: 340px; }
  .float { padding: 10px 12px; }
  .float strong { font-size: 22px; }
  .float span { font-size: 12px; max-width: 120px; }
  .f1 { bottom: 34%; }
  .f2 { bottom: 6%; }
}
@media (prefers-reduced-motion: reduce) { .float, .avail-dot { animation: none; } }

/* Desktop: nudge the portrait and its circle a little to the right */
@media (min-width: 961px) {
  .hero-visual .orb, .hero-visual .portrait { left: 57%; }
  .f1 { left: 4%; }
}

/* Availability now heads the role chips */
.hero-chips { margin-top: 22px; }
.hero-chips .chips-label { flex-basis: 100%; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--hero-ink); }
.hero-text .hello { margin-top: 0; }
.hero-chips .chips-label .avail-dot { margin-left: 4px; }

/* Ask box removed: give the roles block the space under the description */
.hero-chips { margin-top: 32px; }

/* Name removed from the bar: keep the menu on the right */
.hnav { justify-content: flex-end; }

/* Desktop: portrait block centred on the text; head rises out of the circle, shoulders clipped by it */
@media (min-width: 961px) {
  .hero-main { align-items: center; padding-bottom: 48px; }
  .hero-text { padding-block: 24px; }
  .hero-visual { align-self: center; height: 560px; min-height: 0; }
  .hero-visual .orb { left: 55%; bottom: 0; width: 440px; margin-left: -220px; }
  .hero-visual .portrait.cutout { left: 55%; bottom: 0; width: 500px; margin-left: -250px; aspect-ratio: 890 / 900;
    -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 286px no-repeat, radial-gradient(circle 220px at 250px 286px, #000 219px, transparent 220.5px);
            mask: linear-gradient(#000, #000) 0 0 / 100% 286px no-repeat, radial-gradient(circle 220px at 250px 286px, #000 219px, transparent 220.5px); }
  .hero-visual .portrait.cutout img { filter: none; }
  .f1 { left: 2%; bottom: 40%; }
  .f2 { right: 0; bottom: 10%; }
}

/* Scroll cue: invites visitors down into the conversation */
.scroll-cue { align-self: center; width: auto !important; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 28px; text-decoration: none !important; color: var(--hero-ink) !important; position: relative; z-index: 3; }
.cue-bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 24px 24px 24px 6px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--hero-ink) 12%, transparent); box-shadow: 0 12px 32px rgba(20, 26, 51, .12); font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cue-bubble svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.scroll-cue:hover .cue-bubble { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 25%, transparent); }
.cue-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent); animation: cue 1.8s ease-in-out infinite; }
.cue-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cue-arrow { animation: none; } }
@media (max-width: 560px) { .cue-bubble { font-size: 14px; } .scroll-cue { margin-top: 8px; } }

/* ── Key highlights around the portrait ── */
.hl { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; text-decoration: none !important; max-width: 240px; }
.hl-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.hl-ic .i { width: 18px; height: 18px; }
.hl-txt { display: flex; flex-direction: column; min-width: 0; }
.hl-txt strong { font-size: 15px; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.hl-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.3; max-width: none; }
.float.hl strong { font-size: 15px; color: var(--ink); }
.hl-1 { left: 0; top: 20%; }
.hl-2 { left: 4%; bottom: 14%; animation-delay: -1.5s; }
.hl-3 { right: -2%; top: 8%; animation-delay: -3s; }
.hl-4 { right: -2%; bottom: 26%; animation-delay: -4.5s; }
.hl-grid { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--hero-ink) 10%, transparent); text-decoration: none !important; }
@media (max-width: 960px) {
  .hero-visual .float { display: none; }
  .hl-grid { display: grid; margin: 4px 0 28px; }
}
@media (max-width: 560px) { .hl-grid { order: 6; margin: 16px 0 4px; } .hero-chips { order: 7; } }
@media (max-width: 380px) { .hl-grid { grid-template-columns: minmax(0, 1fr); } }
