/* ===================================================================================================
   HOLOGRAM LAYER: the world behind the page, Sofia, the landing sequence and the holographic panels.
   Loaded after styles.css. Hologram effects only use clip-path, filter and background layers, so they
   never fight the motion layer (fx.js), which owns opacity, translate and scale.
   =================================================================================================== */
:root {
  --holo-a: #8f7bff; --holo-b: #49c8ff; --holo-c: #5cffb0;
  --holo-edge: rgba(73, 200, 255, 0.34);
  --hc: rgba(140, 220, 255, 0.55);           /* HUD corner brackets */
  --holo-glass: color-mix(in srgb, #0c1020 62%, transparent);
  --holo-text: #dff4ff;
}
:root[data-theme="light"] {
  --holo-a: #5a43d6; --holo-b: #1683c4; --holo-c: #0f9a62;
  --holo-edge: rgba(22, 131, 196, 0.32);
  --hc: rgba(22, 110, 180, 0.5);
  --holo-glass: color-mix(in srgb, #ffffff 72%, transparent);
  --holo-text: #0b1830;
}

/* ---------- the world ---------- */
.holo-world { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.holo-world.on { opacity: 1; }
html.holo .blob, html.holo .bg-grid { display: none; }
html.holo .spotlight { background: radial-gradient(circle, rgba(73, 200, 255, 0.07), transparent 62%); }
html.holo body::before { opacity: 0.02; }

/* ---------- HUD frame: corner brackets drawn as background layers (no pseudo-elements needed) ---------- */
.holo-frame, .metric, .project-card, .cert, .earlier-item, .edu-item, .terminal-card, .booking-modal, .case-modal, .chat-panel, .holo-opt, .holo-brief, .skill-groups > div {
  --b: 14px; --o: 7px;
  background-image:
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc));
  background-size: var(--b) 1px, 1px var(--b), var(--b) 1px, 1px var(--b), var(--b) 1px, 1px var(--b), var(--b) 1px, 1px var(--b);
  background-position:
    var(--o) var(--o), var(--o) var(--o),
    calc(100% - var(--o)) var(--o), calc(100% - var(--o)) var(--o),
    var(--o) calc(100% - var(--o)), var(--o) calc(100% - var(--o)),
    calc(100% - var(--o)) calc(100% - var(--o)), calc(100% - var(--o)) calc(100% - var(--o));
  background-repeat: no-repeat;
}
.metric, .project-card, .earlier-item, .cert { background-color: var(--holo-glass); }
.metric, .project-card, .cert, .earlier-item, .edu-item, .terminal-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s, transform 0.3s var(--ease);
}
.metric:hover, .project-card:hover, .cert:hover, .earlier-item:hover, .edu-item:hover, .terminal-card:hover {
  border-color: var(--holo-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--holo-edge), 0 0 38px -8px var(--holo-edge);
}

/* ---------- materialize: a scan-line wipe with a brief flicker, instead of a plain fade ---------- */
@keyframes holo-in {
  0% { opacity: 0; clip-path: inset(-40px -40px 100% -40px); filter: brightness(2.6) saturate(1.8) blur(3px); transform: translateY(12px); }
  42% { opacity: 1; filter: brightness(1.8) saturate(1.5) blur(0); }
  56% { clip-path: inset(-40px); }
  61% { opacity: 0.45; } 66% { opacity: 1; } 71% { opacity: 0.7; } 77% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(-40px); filter: none; transform: none; }
}
.reveal.in:is(.metric, .project-card, .cert, .earlier-item, .edu-item, .role-card),
.facts > .reveal.in, .skill-groups > .reveal.in {
  animation: holo-in 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: var(--rd, 0ms);
}

/* ---------- holographic accent words ---------- */
@keyframes holo-shimmer { to { background-position: -250% 0; } }
:is(h1, h2) em:not(:has(.w)), :is(h1, h2) em .w {
  background: linear-gradient(100deg, #b6a8ff 0%, #7fe3ff 28%, #e1d9ff 46%, #8f7bff 66%, #6fd8ff 84%, #b6a8ff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo-shimmer 9s linear infinite;
}
:root[data-theme="light"] :is(h1, h2) em:not(:has(.w)), :root[data-theme="light"] :is(h1, h2) em .w {
  background-image: linear-gradient(100deg, #5a43d6 0%, #1683c4 28%, #7b5cff 46%, #4a35c9 66%, #0f7fb8 84%, #5a43d6 100%);
}
body.ready .hero-title em .w { animation: word-in 0.8s var(--ease) backwards, holo-shimmer 9s linear infinite; animation-delay: calc(330ms + var(--i) * 55ms), 0s; }
.split.in em .w { animation: word-in 0.8s var(--ease) backwards, holo-shimmer 9s linear infinite; animation-delay: calc(var(--base, 0ms) + var(--i) * 45ms), 0s; }

/* ---------- Sofia (canvas inside any host) ---------- */
.has-sofia > .sofia-fallback, .has-sofia > .orb-core { opacity: 0; }
.sofia-canvas { position: absolute; pointer-events: none; }

/* hero: she replaces the CSS orb and its rings */
.orb-hero.has-sofia { background: none; box-shadow: none; animation: none !important; overflow: visible; }
.orb-hero.has-sofia::before { display: none; }
.orb-hero.has-sofia .sofia-canvas { inset: -58%; width: 216%; height: 216%; }
.orb-hero.has-sofia::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(120, 140, 255, 0.28), transparent 70%); filter: blur(10px); pointer-events: none; }
.orb-stage:has(.orb-hero.has-sofia) .orbit-rig { display: none; }

/* ================================ ENTRY ================================ */
body.entry-open main, body.entry-open .nav, body.entry-open footer, body.entry-open .proof { visibility: hidden; }
.entry { background: transparent; }
.entry::after { background: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(80, 100, 255, 0.10), transparent 70%); }
.entry-top { border-bottom-color: transparent; opacity: 0; animation: holo-fade 1s 0.3s var(--ease) forwards; }
.entry-skip { font-size: 13px; color: var(--muted); }
@keyframes holo-fade { to { opacity: 1; } }

.entry-stage {
  position: relative; z-index: 1; margin: auto; width: min(1120px, 100%);
  padding: 92px 24px 48px; display: grid; justify-items: center; text-align: center;
  grid-template-columns: 1fr; grid-template-areas: "sofia" "name" "cap" "meet" "ask" "brief";
}
.sofia-stage { grid-area: sofia; position: relative; width: min(40vh, 380px); aspect-ratio: 1; display: grid; place-items: center; view-transition-name: sofia; }
.sofia-stage .sofia-canvas { inset: -22%; width: 144%; height: 144%; }
.sofia-stage .sofia-fallback { --s: 46%; opacity: 0; transition: opacity 1s; }
.entry.s-forming .sofia-stage:not(.has-sofia) .sofia-fallback { opacity: 1; animation: orb-arrive 1.4s var(--ease) backwards, breathe 4s ease-in-out infinite; }

/* projector: a glowing pad on the floor and a beam that carries her */
.sofia-pad, .sofia-beam { position: absolute; left: 50%; pointer-events: none; }
.sofia-pad { bottom: -2%; width: 62%; height: 15%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(73, 200, 255, 0.42), rgba(124, 92, 255, 0.16) 45%, transparent 70%);
  transform: scale(0.2); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s; }
.sofia-pad::before { content: ""; position: absolute; inset: 22% 14%; border-radius: 50%; border: 1px solid rgba(140, 220, 255, 0.45); }
.sofia-beam { bottom: 4%; width: 40%; height: 46%; translate: -50% 0; transform-origin: 50% 100%;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(to top, rgba(73, 200, 255, 0.16), rgba(124, 92, 255, 0.04) 60%, transparent);
  transform: scaleY(0); opacity: 0; transition: transform 1.6s var(--ease) 0.2s, opacity 1s 0.2s; }
@keyframes beam-scan { to { background-position: 0 -40px; } }
.entry.s-forming .sofia-pad { transform: scale(1); opacity: 1; }
.entry.s-forming .sofia-beam { transform: scaleY(1); opacity: 0.9; }
:root[data-theme="light"] .sofia-beam { background: linear-gradient(to top, rgba(22, 131, 196, 0.16), rgba(90, 67, 214, 0.05) 60%, transparent); }

.entry-name { grid-area: name; margin: 22px 0 0; font: 600 11px var(--mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--holo-b); opacity: 0; transition: opacity 0.8s; }
.entry.s-formed .entry-name { opacity: 0.9; }

.entry-caption { grid-area: cap; min-height: 2.6em; max-width: 720px; margin: 14px 0 0; font: italic 400 clamp(24px, 2.6vw, 34px)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; view-transition-name: caption; }
.entry-caption span { display: inline-block; }
.entry-caption.in span { animation: cap-word 0.55s var(--ease) backwards; animation-delay: calc(var(--i) * 95ms); }
@keyframes cap-word { from { opacity: 0; filter: blur(8px); transform: translateY(6px); color: var(--holo-b); } }

/* "Meet Sofia": the one tap browsers need before she may speak */
.meet { grid-area: meet; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; animation: holo-fade 0.8s var(--ease) both; opacity: 0; }

/* options */
.entry-ask { grid-area: ask; width: 100%; margin-top: 22px; }
.holo-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(860px, 100%); margin: 0 auto; }
.holo-opt { --o: 6px; --b: 10px; position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i t" "i h"; column-gap: 14px; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background-color: var(--holo-glass); backdrop-filter: blur(8px); color: var(--text);
  animation: holo-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i) * 90ms + 100ms);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s, opacity 0.45s, filter 0.45s; overflow: hidden; }
.holo-opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(140, 220, 255, 0.14) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); pointer-events: none; }
.holo-opt:hover, .holo-opt:focus-visible { transform: translateY(-3px); border-color: var(--holo-edge); box-shadow: 0 0 0 1px var(--holo-edge), 0 14px 40px -12px var(--holo-edge); }
.holo-opt:hover::after { transform: translateX(120%); }
.ho-i { grid-area: i; font: 600 11px var(--mono); letter-spacing: 0.12em; color: var(--holo-b); }
.holo-opt .ho-i { align-self: center; padding: 8px 0; border-right: 1px solid var(--border); padding-right: 14px; height: 100%; display: grid; place-items: center; }
.holo-opt strong { grid-area: t; font-size: 15px; font-weight: 500; }
.holo-opt small { grid-area: h; font-size: 12.5px; color: var(--muted); }
.holo-opt-row { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.holo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--border); background: var(--holo-glass); color: var(--text); font-size: 14px;
  animation: holo-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i) * 90ms + 100ms); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, opacity 0.45s, filter 0.45s; }
.holo-pill:hover { transform: translateY(-2px); border-color: var(--holo-edge); box-shadow: 0 10px 30px -10px var(--holo-edge); }
.holo-pill.primary { background: var(--grad); color: #fff; border-color: transparent; }
.holo-pill .play { font-size: 10px; }
.entry .entry-foot { flex-direction: row; justify-content: center; align-items: center; gap: 6px 20px; flex-wrap: wrap; margin-top: 18px; animation: holo-fade 0.8s 0.9s both; opacity: 0; }
.say-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--holo-edge); background: color-mix(in srgb, var(--holo-b) 10%, transparent); color: var(--holo-text); font-size: 13px; }
.say-btn svg.wave { width: 16px; height: 16px; fill: currentColor; }
.say-btn.live { border-color: var(--mint); color: var(--mint); }

/* a choice: the chosen card flares, the others fold away */
.entry.s-choosing [data-topic]:not(.chosen) { opacity: 0; filter: blur(6px); transform: scale(0.95); pointer-events: none; }
.entry.s-choosing [data-topic].chosen { transform: scale(1.03); border-color: var(--holo-b); box-shadow: 0 0 0 1px var(--holo-b), 0 0 60px -6px var(--holo-edge); filter: brightness(1.25); }
.entry.s-choosing .entry-foot { opacity: 0 !important; transition: opacity 0.3s; }

/* the brief Sofia projects */
.entry.s-brief .entry-stage { grid-template-columns: minmax(260px, 340px) 1fr; grid-template-areas: "sofia brief" "name brief" "cap brief" ". brief"; column-gap: 56px; align-items: start; text-align: left; justify-items: start; padding-top: 110px; }
.entry.s-brief .sofia-stage { width: 300px; justify-self: center; }
.entry.s-brief .entry-name { justify-self: center; }
.entry.s-brief .entry-caption { font-size: clamp(19px, 1.6vw, 23px); min-height: 0; }
.holo-brief { grid-area: brief; --b: 18px; --o: 10px; position: relative; width: 100%; padding: 30px 32px 24px; border-radius: 20px; border: 1px solid var(--holo-edge); background-color: var(--holo-glass); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(73, 200, 255, 0.08), 0 30px 90px -30px rgba(40, 120, 255, 0.45), inset 0 0 60px rgba(73, 200, 255, 0.05);
  animation: holo-open 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) both; transform-origin: 50% 0; overflow: hidden; view-transition-name: brief; }
.holo-brief::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(140, 220, 255, 0.12), transparent); animation: brief-scan 1.6s 0.3s ease-in-out both; pointer-events: none; }
@keyframes brief-scan { from { transform: translateY(-100%); } to { transform: translateY(400%); opacity: 0; } }
@keyframes holo-open { /* no filter or opacity flicker: those would switch off the glass blur mid-animation */
  from { opacity: 0; transform: scaleY(0.92) scaleX(0.97) translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes holo-slide { from { opacity: 0; transform: translateX(28px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes holo-sheet { from { opacity: 0.4; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}
.holo-brief header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.holo-brief h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.hb-body { animation: holo-fade 0.6s 0.45s both; opacity: 0; }
.hb-lead { font-size: 16px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.hb-facts, .hb-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hb-facts div, .hb-metrics div, .hb-skills > div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 4px; }
.hb-facts span, .hb-skills span, .hb-roles span, .hb-now span { font: 600 10px var(--mono); letter-spacing: 0.14em; color: var(--holo-b); text-transform: uppercase; }
.hb-facts strong { font-weight: 500; font-size: 15px; }
.hb-metrics b { font: 500 clamp(30px, 3vw, 42px)/1 var(--sans); letter-spacing: -0.04em; background: linear-gradient(100deg, var(--holo-a), var(--holo-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-metrics span { font-size: 13px; color: var(--muted); }
.hb-roles, .hb-now { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--holo-edge); display: grid; gap: 14px; }
.hb-roles li, .hb-now li { position: relative; display: grid; gap: 2px; animation: holo-in 0.8s backwards; }
.hb-roles li:nth-child(2), .hb-now li:nth-child(2) { animation-delay: 0.12s; } .hb-roles li:nth-child(3), .hb-now li:nth-child(3) { animation-delay: 0.24s; } .hb-roles li:nth-child(4) { animation-delay: 0.36s; }
.hb-roles li::before, .hb-now li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--holo-b); box-shadow: 0 0 10px var(--holo-b); }
.hb-roles strong, .hb-now strong { font-weight: 500; font-size: 15.5px; }
.hb-roles em { font-family: var(--sans); font-style: normal; color: var(--muted); font-size: 13.5px; }
.hb-now small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hb-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hb-projects > div { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); animation: holo-in 0.9s backwards; }
.hb-projects > div:nth-child(2) { animation-delay: 0.12s; } .hb-projects > div:nth-child(3) { animation-delay: 0.24s; }
.hb-projects img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.hb-projects strong { font-size: 14px; font-weight: 500; padding: 0 4px; line-height: 1.3; }
.hb-projects small { font-size: 12.5px; color: var(--muted); padding: 0 4px; line-height: 1.45; }
.hb-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hb-skills p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-skills i { font-style: normal; font-size: 12.5px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--border); }
.holo-brief footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.go-btn { position: relative; overflow: hidden; padding: 12px 20px; border-radius: 99px; border: 1px solid transparent; background: var(--grad); color: #fff; font-size: 14px; font-weight: 500; }
.go-btn .go-txt { position: relative; }
.go-fill { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, 0.22); }
.holo-brief.counting .go-fill { animation: go-fill 3.6s linear forwards; }
@keyframes go-fill { to { width: 100%; } }

/* leaving: the projection warps away and the page arrives */
.entry.leaving { animation: holo-warp 1s cubic-bezier(0.7, 0, 0.3, 1) forwards; pointer-events: none; }
@keyframes holo-warp {
  0% { opacity: 1; }
  30% { filter: brightness(1.4); transform: scale(0.99); }
  100% { opacity: 0; transform: scale(1.3); filter: brightness(2) blur(18px); }
}
body.arriving main { animation: page-arrive 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes page-arrive { from { opacity: 0; transform: scale(0.94); filter: blur(10px); } }

/* view transition between the options and the brief */
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.2, 0.75, 0.2, 1); }

/* ================================ PAGE ================================ */
/* the guided tour projects a frame around what Sofia is talking about */
.tour-focus::after {
  --b: 22px; --o: 0px; --hc: var(--holo-b);
  border-color: color-mix(in srgb, var(--holo-b) 30%, transparent);
  background-image:
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(var(--hc), var(--hc)), linear-gradient(var(--hc), var(--hc)),
    linear-gradient(to bottom, transparent, rgba(73, 200, 255, 0.09), transparent);
  background-size: var(--b) 2px, 2px var(--b), var(--b) 2px, 2px var(--b), var(--b) 2px, 2px var(--b), var(--b) 2px, 2px var(--b), 100% 26%;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 -40%;
  background-repeat: no-repeat;
  animation: focus-in 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both, focus-sweep 3.4s 0.7s linear infinite;
}
@keyframes focus-in { from { opacity: 0; transform: scale(1.04); filter: brightness(2.5); } }
@keyframes focus-sweep { to { background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 140%; } }

/* windows open like a projection */
.booking-modal, .case-modal { --b: 16px; --o: 9px; background-color: var(--surface); animation: holo-open 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.chat-panel { --b: 16px; --o: 9px; background-color: color-mix(in srgb, var(--surface) 92%, transparent); animation: holo-slide 0.45s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
@media (max-width: 860px) { .chat-panel { animation-name: holo-sheet; } }
.nav-focus { animation: holo-ping 2.2s ease-out; }
@keyframes holo-ping { 0% { box-shadow: 0 0 0 0 rgba(73, 200, 255, 0.55), inset 0 0 0 1px rgba(73, 200, 255, 0.5); } 100% { box-shadow: 0 0 0 42px rgba(73, 200, 255, 0), inset 0 0 0 1px rgba(73, 200, 255, 0); } }

/* section labels look like HUD readouts */
main .eyebrow { font-family: var(--mono); letter-spacing: 0.2em; }
.scroll-progress { background: linear-gradient(90deg, var(--holo-a), var(--holo-b), var(--holo-c)); box-shadow: 0 0 14px var(--holo-b); }

/* ================================ PHONES ================================ */
@media (max-width: 860px) {
  .entry-stage { padding: 96px 16px 32px; }
  .sofia-stage { width: min(58vw, 34vh, 280px); }
  .entry-caption { font-size: 23px; margin-top: 8px; }
  .holo-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .holo-opt { grid-template-columns: 1fr; grid-template-areas: "i" "t" "h"; row-gap: 2px; padding: 12px 14px; }
  .holo-opt .ho-i { border: 0; padding: 0; height: auto; place-items: start; }
  .holo-opt strong { font-size: 14px; line-height: 1.3; }
  .holo-opt small { font-size: 12px; }
  .holo-pill { padding: 10px 14px; font-size: 13px; }
  .entry.s-brief .entry-stage { grid-template-columns: 1fr; grid-template-areas: "sofia" "name" "cap" "brief"; justify-items: center; text-align: center; padding-top: 70px; }
  .entry.s-brief .sofia-stage { width: 128px; }
  .entry.s-brief .entry-caption { font-size: 17px; margin-bottom: 14px; }
  .holo-brief { padding: 22px 16px 18px; text-align: left; }
  .hb-projects { grid-template-columns: 1fr; } .hb-projects > div { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; }
  .hb-projects img { grid-row: span 2; aspect-ratio: 4 / 3; }
  .hb-skills { grid-template-columns: 1fr; }
  .holo-brief footer { flex-direction: column-reverse; align-items: stretch; } .go-btn { width: 100%; }
  .metric, .project-card { backdrop-filter: none; }
  .orb-hero.has-sofia .sofia-canvas { inset: -50%; width: 200%; height: 200%; }
}
@media (max-height: 700px) and (min-width: 861px) { .sofia-stage { width: 34vh; } .entry-stage { padding-top: 76px; } }

/* ================================ LESS MOTION ================================ */
@media (prefers-reduced-motion: reduce) {
  .holo-opt, .holo-pill, .holo-brief, .hb-body, .hb-roles li, .hb-now li, .hb-projects > div, .meet, .entry .entry-foot, .entry-top { animation: none !important; opacity: 1 !important; }
  .reveal.in:is(.metric, .project-card, .cert, .earlier-item, .edu-item, .role-card), .facts > .reveal.in, .skill-groups > .reveal.in { animation: none !important; }
  :is(h1, h2) em:not(:has(.w)), :is(h1, h2) em .w { animation: none !important; }
  .sofia-beam::after, .sofia-pad::before, .holo-brief::after { animation: none !important; }
  .tour-focus::after { animation: none !important; }
  .entry.leaving, body.arriving main { animation: none !important; }
  .entry-caption.in span { animation: none; }
}

/* ================================ LIGHT THEME POLISH ================================ */
/* Clean, bright and airy: frosted white glass with soft blue-violet depth instead of flat grey surfaces. */
:root[data-theme="light"] {
  --holo-glass: color-mix(in srgb, #ffffff 80%, transparent);
  --hc: rgba(90, 80, 220, 0.42);
  --holo-edge: rgba(90, 80, 220, 0.3);
}
:root[data-theme="light"] :is(.metric, .project-card, .cert, .earlier-item, .terminal-card, .holo-opt, .holo-pill, .holo-brief, .booking-modal, .case-modal, .skill-groups > div) {
  box-shadow: 0 1px 2px rgba(30, 30, 90, 0.05), 0 14px 34px -16px rgba(70, 60, 200, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(90, 80, 220, 0.14);
}
:root[data-theme="light"] :is(.metric, .project-card, .cert, .earlier-item, .holo-opt):hover {
  border-color: rgba(90, 80, 220, 0.34);
  box-shadow: 0 1px 2px rgba(30, 30, 90, 0.05), 0 20px 44px -16px rgba(70, 60, 200, 0.32), 0 0 0 1px rgba(90, 80, 220, 0.18);
}
:root[data-theme="light"] .holo-brief { box-shadow: 0 30px 80px -30px rgba(70, 60, 200, 0.35), 0 0 0 1px rgba(90, 80, 220, 0.12), inset 0 1px 0 #fff; }
:root[data-theme="light"] .hb-facts div, :root[data-theme="light"] .hb-metrics div, :root[data-theme="light"] .hb-skills > div, :root[data-theme="light"] .hb-projects > div { background: rgba(255, 255, 255, 0.7); border-color: rgba(90, 80, 220, 0.12); }
:root[data-theme="light"] .holo-opt::after { background: linear-gradient(100deg, transparent 30%, rgba(120, 110, 255, 0.12) 50%, transparent 70%); }
:root[data-theme="light"] .entry::after { background: radial-gradient(ellipse 55% 42% at 50% 40%, rgba(120, 110, 255, 0.10), transparent 70%); }
:root[data-theme="light"] .entry-name { color: #4a3fd0; }
:root[data-theme="light"] .ho-i, :root[data-theme="light"] .hb-facts span, :root[data-theme="light"] .hb-skills span, :root[data-theme="light"] .hb-roles span, :root[data-theme="light"] .hb-now span { color: #4a3fd0; }
:root[data-theme="light"] .sofia-pad { background: radial-gradient(ellipse, rgba(110, 120, 255, 0.28), rgba(124, 92, 255, 0.10) 45%, transparent 70%); }
:root[data-theme="light"] .sofia-pad::before { border-color: rgba(90, 80, 220, 0.35); }
:root[data-theme="light"] .say-btn { color: #2c2580; background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .scroll-progress { box-shadow: 0 0 10px rgba(90, 80, 220, 0.35); }

/* the guided-tour bar: frosted white glass in the light theme */
:root[data-theme="light"] .tour-bar { background: rgba(255, 255, 255, 0.86); color: var(--text); border-color: rgba(90, 80, 220, 0.16); box-shadow: 0 24px 60px -18px rgba(60, 50, 180, 0.32), inset 0 1px 0 #fff; }
:root[data-theme="light"] .tour-label { color: #5a43d6; }
:root[data-theme="light"] .tour-controls button { color: var(--text); border-color: rgba(20, 20, 60, 0.14); }
:root[data-theme="light"] .tour-controls button:hover { background: rgba(90, 80, 220, 0.07); }
:root[data-theme="light"] .tour-choices .topic-btn { background: rgba(255, 255, 255, 0.9); border-color: rgba(90, 80, 220, 0.16); color: var(--text); }
:root[data-theme="light"] .tour-choices .topic-btn:hover { border-color: rgba(90, 80, 220, 0.4); }
:root[data-theme="light"] .tour-choices .say-btn { color: #4a3fd0; border-color: rgba(90, 80, 220, 0.3); }
:root[data-theme="light"] .tour-focus { background-color: rgba(255, 255, 255, 0.82); box-shadow: 0 30px 80px -30px rgba(70, 60, 200, 0.3); }
:root[data-theme="light"] .tour-focus::after { --hc: #5a43d6; border-color: rgba(90, 80, 220, 0.28); }

/* small Sofia (floating button, chat header): the iris replaces the CSS orb */
.orb.has-sofia:not(.orb-hero) { background: none; box-shadow: none; animation: none !important; overflow: visible; }
.orb.has-sofia:not(.orb-hero)::before { display: none; }
.orb.has-sofia:not(.orb-hero) > .orb-core { opacity: 0; }
.orb.has-sofia:not(.orb-hero) .sofia-canvas { inset: -42%; width: 184%; height: 184%; }
.cta-section .orb.has-sofia { --s: 72px; margin-bottom: 12px; }

/* nothing reserved for an empty caption: the Meet button sits right under her name */
.entry-caption:empty { min-height: 0; margin: 0; }

/* "Hear Sofia": a quiet glass pill whose bars breathe like her voice. */
.meet-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 188px; height: 52px; padding: 0 28px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font: 500 15.5px/1 var(--sans); letter-spacing: -0.005em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -14px rgba(110, 130, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.meet-bars { display: flex; align-items: center; gap: 2.5px; height: 18px; }
.meet-bars i { width: 2.5px; border-radius: 2px; background: #7fe3ff; transform-origin: 50% 50%; animation: meet-bar 1.1s ease-in-out infinite; }
.meet-bars i:nth-child(1) { height: 6px; } .meet-bars i:nth-child(2) { height: 14px; animation-delay: 0.15s; } .meet-bars i:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.meet-bars i:nth-child(4) { height: 16px; animation-delay: 0.45s; } .meet-bars i:nth-child(5) { height: 7px; animation-delay: 0.6s; }
@keyframes meet-bar { 50% { transform: scaleY(0.4); } }
.meet-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.11); border-color: rgba(140, 220, 255, 0.5); box-shadow: 0 14px 36px -12px rgba(110, 150, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.meet-btn:active { transform: translateY(0) scale(0.985); }
.meet-btn:focus-visible { outline: 2px solid rgba(140, 220, 255, 0.8); outline-offset: 4px; }
:root[data-theme="light"] .meet-btn { background: rgba(255, 255, 255, 0.78); border-color: rgba(90, 80, 220, 0.28); color: #1d1a5c; box-shadow: 0 12px 30px -14px rgba(70, 60, 200, 0.45), inset 0 1px 0 #fff; }
:root[data-theme="light"] .meet-btn:hover { background: #fff; border-color: rgba(90, 80, 220, 0.5); }
:root[data-theme="light"] .meet-bars i { background: #5a43d6; }
@media (max-width: 860px) { .meet-btn { min-width: 220px; } }
@media (prefers-reduced-motion: reduce) { .meet-bars i { animation: none; } }
.meet-skip { font-size: 13.5px; color: var(--muted); padding: 6px 10px; }
.meet-skip:hover { color: var(--text); }
:root[data-theme="light"] .meet-btn { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 28px -10px rgba(40, 30, 160, 0.5); }
@media (max-width: 860px) { .meet-btn { min-width: 220px; } }
