  @font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin.woff2") format("woff2"); }

  :root {
    --bg: #0A0B0D;
    --tile: #111215;
    --tile-2: #16171B;
    --line: #22242A;
    --line-2: #2E3138;
    --text: #EDEEF0;
    --muted: #9298A3;
    --dim: #868C97;
    --live: #4ADE80;
    --glow: #8FB4FF;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: clip; scrollbar-color: #2E3138 var(--bg); }
  body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  ::selection { background: #DDE6FF; color: #0A0B0D; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
  svg.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Hero ---------- */
  .hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 0 24px 104px; text-align: center; isolation: isolate; overflow: hidden; }
  #globe { position: absolute; left: 50%; top: -3vh; width: min(1180px, 140vw); aspect-ratio: 1; transform: translateX(-50%); z-index: -1; -webkit-mask-image: linear-gradient(#000 55%, transparent 80%); mask-image: linear-gradient(#000 55%, transparent 80%); }
  .hero .card { grid-row: 2; max-width: 540px; position: relative; }
  .hero .card::before { content: ""; position: absolute; inset: -60px -120px; z-index: -1; background: radial-gradient(closest-side, rgba(10,11,13,.92), rgba(10,11,13,.6) 60%, transparent); pointer-events: none; }
  .hero h1 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
  .role { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); margin: 8px 0 18px; }
  .hero p.pitch { color: var(--muted); margin: 0 auto 22px; max-width: 46ch; font-size: 15px; }
  .pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: #15161A; color: var(--text); transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
  .pill:hover { background: #1D1F24; border-color: #3A3E47; }
  .pill:active { transform: translateY(1px); }
  .pill.solid { background: #E9EBEE; color: #0A0B0D; border-color: #E9EBEE; }
  .pill.solid:hover { background: #FFFFFF; }
  .avail { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
  .avail i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(74,222,128,.15); }

  .stores { position: absolute; left: 24px; top: 50%; transform: translateY(-10%); text-align: left; }
  .stores h2 { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); margin: 0 0 10px; }
  .stores ul { list-style: none; margin: 0; padding: 0; }
  .stores li { font-size: 13px; color: var(--dim); line-height: 1.75; transition: color .2s; }
  .stores li:hover { color: var(--text); }
  .clock { position: absolute; right: 24px; top: 24px; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--dim); }

  /* ---------- Grid of tiles ---------- */
  .grid { columns: 3 380px; column-gap: 12px; padding: 0 12px 140px; }
  .tile { break-inside: avoid; margin: 0 0 12px; background: var(--tile); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
  .work { display: block; }
  .work .shot { padding: 52px 22px 0; background: radial-gradient(120% 90% at 50% 0%, #1A1C22, var(--tile) 70%); }
  .work .shot img { border-radius: 9px 9px 0 0; box-shadow: 0 -1px 0 rgba(255,255,255,.06), 0 24px 40px -18px rgba(0,0,0,.9); transform: translateY(6px); transition: transform .6s var(--ease); }
  .work:hover .shot img { transform: translateY(0); }
  .work .chip { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(10,11,13,.78); border: 1px solid var(--line-2); font-size: 12px; backdrop-filter: blur(8px); }
  .work .chip span { color: var(--dim); }
  .work .chip svg { width: 11px; height: 11px; }
  .work .meta { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
  .work h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
  .work p { margin: 0; color: var(--muted); font-size: 13.5px; }
  .work.phone .shot { display: flex; justify-content: center; padding-top: 52px; }
  .work.phone .shot img { width: 54%; border-radius: 22px 22px 0 0; border: 6px solid #05060A; border-bottom: 0; }

  .note { padding: 24px 22px; }
  .note h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
  .note p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
  .note p:last-child { margin-bottom: 0; }
  .label { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dim); margin: 0 0 14px; }

  .about { padding: 0; }
  .about .photo { position: relative; aspect-ratio: 5/4; background: radial-gradient(90% 90% at 50% 10%, #1E2431, var(--tile) 75%); overflow: hidden; }
  .about .photo img { position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); mix-blend-mode: lighten; }
  .about .note { border-top: 1px solid var(--line); }

  .story { background: linear-gradient(180deg, #14171E, var(--tile)); }
  .story .before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
  .story .ba { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--muted); }
  .story .ba b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
  .story .ba.after { border-color: rgba(74,222,128,.35); }
  .story .ba.after b { color: var(--live); }

  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chips span { font-size: 12.5px; color: #C9CDD4; border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 9px; }
  .group + .group { margin-top: 16px; }
  .group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }

  .steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .steps li::before { content: counter(s); font: 500 12px/1.6 var(--mono); color: var(--dim); }
  .steps b { color: var(--text); font-weight: 500; }

  .jobs { list-style: none; margin: 0; padding: 0; }
  .jobs li { padding: 12px 0; border-top: 1px solid var(--line); }
  .jobs li:first-child { border-top: 0; padding-top: 0; }
  .jobs .when { font: 500 11.5px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
  .jobs b { display: block; font-weight: 500; font-size: 14.5px; margin: 6px 0 2px; }
  .jobs span { color: var(--muted); font-size: 13.5px; }

  .cta { padding: 28px 22px; text-align: left; background: radial-gradient(120% 120% at 0% 0%, #1B2232, var(--tile) 65%); }
  .cta h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.15; }
  .cta p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
  .cta .pills { justify-content: flex-start; }
  .contact-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
  .contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .contact-list li span { color: var(--dim); }
  .contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

  /* Scroll-linked entrance: tiles are visible by default; browsers with view timelines add a soft rise */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .tile { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      @keyframes rise { from { opacity: .2; transform: translateY(28px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
    }
  }

  /* ---------- Floating nav ---------- */
  .dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 8px; }
  .dock .ask, .dock .links { height: 46px; border-radius: 999px; background: rgba(20,21,25,.86); border: 1px solid var(--line-2); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px -12px rgba(0,0,0,.75); }
  .dock .ask { display: inline-flex; align-items: center; gap: 9px; padding: 0 18px 0 14px; color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
  .dock .ask:hover, .dock .ask[aria-expanded="true"] { background: #1E2026; border-color: #3A3E47; }
  .dock .ask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dock .links { display: flex; align-items: center; padding: 4px; gap: 2px; }
  .dock .links a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
  .dock .links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3B3F48; transition: background .2s; }
  .dock .links a:hover { color: var(--text); }
  .dock .links a.on { color: var(--text); background: #23262D; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  .dock .links a.on::before { background: #DCE3F2; box-shadow: 0 0 6px rgba(220,227,242,.6); }
  .dock .links a.plain::before { display: none; }

  /* Ask panel: quick answers a recruiter usually needs */
  .askpanel { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%) translateY(8px); z-index: 49; width: min(420px, calc(100vw - 24px)); background: rgba(17,18,21,.985); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .askpanel.open { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
  .askpanel p.hi { margin: 2px 4px 12px; color: var(--muted); font-size: 13.5px; }
  .askpanel .qs { display: flex; flex-wrap: wrap; gap: 6px; }
  .askpanel .qs button { font: 500 13px/1 var(--sans); color: var(--text); background: #1A1C21; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 12px; cursor: pointer; }
  .askpanel .qs button:hover, .askpanel .qs button[aria-pressed="true"] { background: #23262D; border-color: #3A3E47; }
  .askpanel .answer { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #0D0E11; border: 1px solid var(--line); font-size: 14px; color: #D5D9E0; min-height: 20px; }
  .askpanel .answer:empty { display: none; }
  .askpanel .answer a { text-decoration: underline; text-underline-offset: 3px; }

  footer { text-align: center; color: var(--dim); font-size: 12px; padding: 0 0 90px; }

  @media (max-width: 900px) {
    .stores { position: static; transform: none; text-align: center; margin-top: 26px; grid-row: 3; }
    .stores ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
    .hero { grid-template-rows: 1fr auto auto; }
    .clock { display: none; }
  }
  @media (max-width: 560px) {
    #globe { top: 4vh; width: 130vw; }
    .hero { min-height: 0; padding-top: 104vw; }
    .grid { padding: 0 8px 120px; column-gap: 8px; }
    .tile { margin-bottom: 8px; }
    .dock .links a:not(.on):not(.plain) { display: none; }
    .dock .ask span { display: none; }
    .dock .ask { padding: 0 14px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Shared: teaser link ---------- */
.about .more { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin-top: 4px; }
.about .more svg { transition: transform .3s var(--ease); }
a.about:hover .more svg { transform: translateX(4px); }

/* ---------- Inner pages ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dim); }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.topbar a:hover { color: var(--text); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ID card (about) */
.idcard { display: grid; grid-template-columns: 230px 1fr 280px; border: 1px solid #253247; border-radius: 4px; background: linear-gradient(180deg, #0E141F, #0B0F17); box-shadow: 0 0 0 1px rgba(143,180,255,.05), 0 30px 80px -40px rgba(80,120,200,.35); overflow: hidden; margin-top: 8px; }
.idcard .face { border-right: 1px solid #253247; background: #0A0B0D; }
.idcard .face img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.idcard .fields { padding: 18px 22px; }
.k { font: 500 10.5px/1.2 var(--mono); letter-spacing: .12em; color: #6F87AE; }
.v { font: 500 12.5px/1.2 var(--mono); letter-spacing: .1em; color: #CFE0FF; }
.idcard .name { font: 500 26px/1.1 var(--mono); letter-spacing: .06em; color: #E4EDFF; margin: 6px 0 2px; }
.idcard .rows { margin-top: 18px; border-top: 1px solid #1E2A3D; }
.idcard .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1E2A3D; }
.idcard .side { border-left: 1px solid #253247; display: grid; grid-template-rows: auto 1fr; }
.idcard .side .top { padding: 16px 18px; border-bottom: 1px solid #253247; display: grid; gap: 10px; }
.idcard .side .loc { position: relative; padding: 16px 18px; overflow: hidden; min-height: 170px; }
.idcard .side .loc b { display: block; color: #E4EDFF; font-weight: 500; font-size: 15px; }
.idcard .side .loc span { color: #8FA3C4; font-size: 13px; }
.idcard .side .loc .time { font: 500 12px/1 var(--mono); color: #CFE0FF; margin-top: 10px; display: block; }
.idcard .side .loc canvas { position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; opacity: .9; }

.dossier { width: min(680px, 100% - 32px); margin: 72px auto 0; }
.dossier h1 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 14px; }
.dossier .meta { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.dossier h2 { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: #CFE0FF; margin: 38px 0 14px; }
.dossier h2 span { background: #1A2742; padding: 3px 5px; border-radius: 3px; }
.dossier p { color: var(--muted); margin: 0 0 14px; font-size: 15px; line-height: 1.7; }
.dossier p strong { color: var(--text); font-weight: 500; }
.roles { list-style: none; padding: 0; margin: 18px 0 8px; }
.roles li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.roles b { display: block; font-weight: 500; font-size: 15px; }
.roles small { color: var(--dim); font-size: 13px; }
.roles time { font: 500 11.5px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.eof { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dim); margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.eof i { display: inline-block; width: 7px; height: 11px; background: var(--muted); vertical-align: -1px; margin-left: 4px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Skills page */
.services { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.services h3 { margin: 0; font-size: 17px; font-weight: 500; }
.services p { margin: 0 0 10px; }

/* Experience page */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; }
.timeline > li { position: relative; padding: 0 0 30px 28px; border-left: 1px solid var(--line-2); }
.timeline > li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid #8FB4FF; }
.timeline > li.now::before { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.timeline time { font: 500 11.5px/1 var(--mono); color: var(--dim); }
.timeline h3 { margin: 8px 0 2px; font-size: 17px; font-weight: 500; }
.timeline .at { color: #8FB4FF; font-size: 13.5px; margin: 0 0 10px; }
.timeline ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.timeline ul li { margin: 4px 0; }

/* Closing CTA with planet */
.closing { position: relative; text-align: center; padding: 120px 16px 0; margin-top: 60px; }
.closing h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -.025em; margin: 0 0 18px; }
.closing .avail { margin-top: 14px; }
#planet { display: block; width: 100%; height: 420px; margin-top: 30px; }

@media (max-width: 900px) {
  .idcard { grid-template-columns: 1fr; }
  .idcard .face { border-right: 0; border-bottom: 1px solid #253247; aspect-ratio: 1; }
  .idcard .side { border-left: 0; border-top: 1px solid #253247; }
  .services li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Works: index + monitor ---------- */
.wrap-wide { width: min(1280px, 100% - 32px); margin-inline: auto; }
.works { padding: 40px 0 80px; }
.works-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.works-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.025em; }
.works-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.index { list-style: none; margin: 0; padding: 0; }
.index > li { border-bottom: 1px solid var(--line); }
.index .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 4px; transition: padding .4s var(--ease); }
.index .name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; color: var(--dim); transition: color .3s; }
.index .what { grid-column: 1; color: var(--dim); font-size: 14px; transition: color .3s; }
.index .tags { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(74,222,128,.35); color: var(--live); }
.status.soon { border-color: rgba(143,180,255,.4); color: var(--glow); }
.index li.active .name { color: var(--text); }
.index li.active .what { color: var(--muted); }
.index li.active .row { padding-left: 14px; }
.index li.active .row { background: linear-gradient(90deg, rgba(143,180,255,.06), transparent 70%); border-radius: 10px; }
.index .inline, .index .detail { display: none; }

.monitor { position: sticky; top: 24px; margin-top: 22px; border: 1px solid #253247; border-radius: 6px; background: linear-gradient(180deg, #0E141F, #0B0F17); padding: 14px; box-shadow: 0 0 0 1px rgba(143,180,255,.05), 0 40px 90px -50px rgba(80,120,200,.5); }
.monitor .corner { position: absolute; width: 10px; height: 10px; border-color: #8FB4FF; border-style: solid; opacity: .7; }
.monitor .tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; } .monitor .tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.monitor .bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; } .monitor .br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.mon-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.mon-top .k:last-child { color: #CFE0FF; }
.screen { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #05070B; transition: opacity .16s, filter .16s; }
.screen.swap { opacity: .15; filter: blur(6px); }
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(10,14,22,.08) 0 1px, transparent 1px 3px); }
.mphone { position: absolute; right: 16px; bottom: 14px; width: 21%; padding: 5px; border-radius: 18px; background: #05060A; box-shadow: 0 18px 30px -10px rgba(0,0,0,.9); }
.mphone img { border-radius: 14px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; width: 100%; }
.mon-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: #D5DCE8; }
.mon-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(74,222,128,.15); flex: none; }

.extras { padding-top: 0; }

@media (max-width: 900px) {
  .works-body { grid-template-columns: 1fr; }
  .monitor { display: none; }
  .index .inline { display: block; margin: 0 4px 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
  .index .detail { display: block; margin: 0 4px 22px; color: var(--muted); font-size: 14px; }
  .index .name, .index .what { color: var(--text); }
  .index li.active .row { padding-left: 4px; background: none; }
}
a.tile { display: block; }
.extras { columns: 3 340px; }
@media (max-width: 900px) { .works-head { flex-direction: column; align-items: flex-start; gap: 8px; } }
.index .row { padding-block: 16px; }
.index .name { font-size: clamp(20px, 1.9vw, 26px); }
.mon-detail { margin: 6px 0 2px 17px; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 70ch; }

/* ---------- Gallery ---------- */
.gallery-head { padding: 40px 0 28px; }
.gallery-head h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -.03em; margin: 0 0 12px; max-width: 18ch; }
.gintro { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 40px; }
.gcard { display: block; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .3s var(--ease), transform .4s var(--ease); }
a.gcard:hover { border-color: #3A4D73; transform: translateY(-3px); }
.gshot { aspect-ratio: 16 / 10; overflow: hidden; background: #05070B; }
.gshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
a.gcard:hover .gshot img { transform: scale(1.03); }
.gmeta { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.gname { font-weight: 500; font-size: 15.5px; }
.gcat { grid-column: 1; color: var(--muted); font-size: 13px; }
.ghost { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--mono); color: var(--dim); }
.ghost svg { width: 11px; height: 11px; }
.works-all { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(90deg, rgba(143,180,255,.06), transparent 70%); transition: border-color .3s; }
.works-all:hover { border-color: #3A4D73; }
.works-all b { font-weight: 500; font-size: 16px; }
.works-all span { color: var(--muted); font-size: 14px; }
.works-all svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.works-all:hover svg { transform: translateX(4px); }
.gallery-head h1 { line-height: 1.05; }

/* ---------- Tool strip ---------- */
.stack { margin-top: 8px; }
.stack ul { list-style: none; margin: 0; padding: 6px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: #0E0F12; overflow-x: auto; scrollbar-width: none; }
.stack ul::-webkit-scrollbar { display: none; }
.stack li { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; color: var(--muted); font-size: 15px; white-space: nowrap; transition: color .25s; }
.stack li + li { border-left: 1px solid var(--line); }
.stack li:hover { color: var(--text); }
.stack svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
@media (max-width: 900px) { .stack li { padding: 13px 16px; font-size: 14px; } }

/* ---------- Ask chat ---------- */
.askpanel { width: min(440px, calc(100vw - 24px)); padding: 0; display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 110px)); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-weight: 500; font-size: 14.5px; }
.chat-head span { color: var(--muted); font-size: 12.5px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(74,222,128,.15); flex: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.msg.bot { align-self: flex-start; background: #17191E; border: 1px solid var(--line-2); color: #D5D9E0; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: #E9EBEE; color: #0A0B0D; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg a { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-sugg[hidden] { display: none; }
.chat-sugg button { font: 500 12.5px/1 var(--sans); color: var(--text); background: #1A1C21; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 11px; cursor: pointer; }
.chat-sugg button:hover { background: #23262D; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #0D0E11; }
.chat-form:focus-within { border-color: #3A4D73; }
.chat-form textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: 14px/1.5 var(--sans); padding: 6px 0; max-height: 120px; }
.chat-form textarea::placeholder { color: var(--dim); }
.chat-form button { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: #E9EBEE; color: #0A0B0D; display: grid; place-items: center; cursor: pointer; }
.chat-form button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-hint { margin: 6px 0 12px; text-align: center; color: var(--dim); font-size: 11.5px; }
