  /* Hero */
  .hero { padding: clamp(64px, 10vw, 128px) 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: end; }
  .hero-copy > * + * { margin-top: 28px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .portrait { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
  .portrait-frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
  .portrait-frame { position: relative; }
  .portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.92); transform: scale(1.12); transition: filter .9s ease; }
  .portrait:hover img { filter: grayscale(0) contrast(1.02); }
  .portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,13,12,.55)); pointer-events: none; }
  .portrait-tag { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #EDEAE2; padding: 7px 12px; border-radius: 999px; background: rgba(13,13,12,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
  .scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 48px; }
  .scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); display: block; position: relative; overflow: hidden; }
  .scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2.4s var(--ease) infinite; }
  @keyframes cue { to { top: 110%; } }
  .portrait figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  @media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
  @media (max-width: 959px) { .portrait { justify-self: start; max-width: 320px; } }

  /* Strip */
  .np-art-sm { width: 40px; height: 40px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; object-fit: cover; }

  /* Selected work visuals */
  .viz { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 24px; text-align: center; }
  .viz-oled { background: #050505; }
  .viz-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
  .viz-big { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--text); letter-spacing: -0.01em; }
  .card-visual .viz { transition: transform 1s var(--ease); }
  .card:hover .card-visual .viz { transform: scale(1.025); }

  /* OLED lyrics */
  .viz-oled { background: radial-gradient(circle at 50% 40%, #12161c, #050505 70%); }
  .oled { width: min(68%, 340px); aspect-ratio: 2 / 1; background: #000; border: 1px solid #2a2a26; border-radius: 6px; padding: 7% 8%; display: flex; flex-direction: column; color: #DDEBFF; font-size: clamp(10px, 1.1vw, 13px); text-align: left; box-shadow: 0 0 0 6px #0d0d0c, 0 0 0 7px #2a2a26, 0 30px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(127,178,240,.07); text-shadow: 0 0 6px rgba(150,200,255,.55); }
  .oled-top { display: flex; justify-content: space-between; color: #6E7E96; font-size: .8em; padding-bottom: 6px; border-bottom: 1px solid #1b2230; margin-bottom: 8px; text-shadow: none; }
  .oled-win { flex: 1; overflow: hidden; position: relative; }
  .oled-roll { animation: roll 12s cubic-bezier(.7,0,.3,1) infinite; }
  .oled-roll p { margin: 0; height: 1.9em; line-height: 1.9em; white-space: nowrap; opacity: .45; }
  .oled-roll p.on { opacity: 1; }
  @keyframes roll { 0%,20% { transform: translateY(0); } 25%,45% { transform: translateY(-1.9em); } 50%,70% { transform: translateY(-3.8em); } 75%,95% { transform: translateY(-5.7em); } 100% { transform: translateY(-7.6em); } }
  .oled-bar { height: 2px; background: #1b2230; margin-top: 6px; position: relative; overflow: hidden; }
  .oled-bar::after { content: ''; position: absolute; inset: 0; background: #DDEBFF; transform-origin: 0 50%; animation: songbar 48s linear infinite; }
  @keyframes songbar { from { transform: scaleX(.2); } to { transform: scaleX(1); } }

  /* ERP dashboard */
  .viz-erp { background: var(--surface-2); padding: 7%; }
  .erp { width: 100%; height: 100%; display: grid; grid-template-columns: 18% 1fr; gap: 4%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4%; box-shadow: 0 24px 50px rgba(0,0,0,.25); text-align: left; }
  .erp-side { display: flex; flex-direction: column; gap: 10%; padding-top: 6%; }
  .erp-side i { display: block; height: 7px; border-radius: 4px; background: var(--line-2); }
  .erp-side i:first-child { background: var(--accent); width: 70%; }
  .erp-main { display: grid; grid-template-rows: auto 1fr; gap: 8%; min-width: 0; }
  .erp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6%; }
  .erp-tiles div { border: 1px solid var(--line); border-radius: 6px; padding: 8% 10%; font-size: 10px; color: var(--muted); }
  .erp-tiles div::after { content: ''; display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--line-2); width: 60%; }
  .erp-chart { display: flex; align-items: flex-end; gap: 5%; border-bottom: 1px solid var(--line); padding: 0 2%; }
  .erp-chart i { flex: 1; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 35%, var(--line-2)); height: 0; transition: height 1.2s var(--ease); transition-delay: calc(var(--d) * 70ms + .3s); }
  .erp-chart i:nth-child(5) { background: var(--accent); }
  .visible .erp-chart i { height: var(--h); }

  /* SnoozeSOC alert board */
  .viz-soc { background: #08080A; padding: 7%; place-items: stretch; text-align: left; color: #A29E94; }
  .soc { display: flex; flex-direction: column; gap: 8px; font-size: clamp(10px, 1vw, 12px); }
  .soc-head { display: flex; justify-content: space-between; color: #EDEAE2; padding-bottom: 8px; border-bottom: 1px solid #222; margin-bottom: 2px; }
  .soc-head b { font-weight: 400; color: #E8C547; }
  .soc-row { display: grid; grid-template-columns: 3.6em 1fr auto; gap: 10px; padding: 7px 10px; border: 1px solid #1d1d1f; border-radius: 6px; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--d) * 160ms + .2s); }
  .visible .soc-row { opacity: 1; transform: none; }
  .soc-row span:last-child { color: #7FB2F0; }
  .soc-z { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.1; color: #EDEAE2; margin: auto 0 0; padding-top: 6px; letter-spacing: -0.01em; }
  .soc-z em { color: #E8A33D; }

  /* Terminal typing */
  .viz-term { background: var(--term-bg); place-items: start; text-align: left; color: #A29E94; line-height: 1.9; padding: 7%; }
  .viz-term b { color: #EDEAE2; font-weight: 400; }
  .tcaret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -0.2em; background: #E8A33D; margin-left: 2px; }
  .treply { opacity: 0; transition: opacity .5s ease; }
  .treply.in { opacity: 1; }

  /* Live cards */
  .live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
  .live-flag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .np { display: flex; gap: 18px; align-items: center; }
  .np-art { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; }
  .np-song { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-artist { margin: 2px 0 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-album { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 22px; }
  .bar > div { height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
  .times { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .recent { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
  .recent li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .recent img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
  .recent .r-info { flex: 1; min-width: 0; }
  .recent .r-song { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .recent .r-artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .recent .r-time { font-family: var(--mono); font-size: 11px; color: var(--muted); flex-shrink: 0; }

  .dc { display: flex; gap: 16px; align-items: center; }
  .dc-av { position: relative; flex-shrink: 0; }
  .dc-av img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
  .dc-av .sdot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border: 3px solid var(--surface); }
  .dc-name { font-size: 19px; font-weight: 500; margin: 0; }
  .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
  .kv { margin: 22px 0 0; border-top: 1px solid var(--line); }
  .kv div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .kv dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .kv dd { margin: 0; font-size: 14px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Toolkit */
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 32px; }
  .facts div { padding: 22px 0 0; }
  .facts .n { font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; margin: 0 0 8px; }
  .facts div:first-child .n { font-style: italic; color: var(--accent); }
  .interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .interest { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .3s ease, transform .4s var(--ease); }
  .interest::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
  .interest:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
  .interest:hover::after { opacity: 1; }
  .i-num { font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .i-ic { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: all .35s var(--ease); }
  .i-ic svg { width: 16px; height: 16px; }
  .interest:hover .i-ic { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: rotate(-8deg); }
  .i-name { margin: 26px 0 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -0.01em; color: var(--text); transition: color .3s ease, transform .4s var(--ease); }
  .interest:hover .i-name { color: var(--accent); transform: translateX(3px); }
  .i-cap { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

  /* GitHub */
  #gh-wrap { position: relative; }
  #gh-grid { overflow: hidden; }
  #gh-grid svg { display: block; width: 100%; height: auto; }
  #gh-tip { position: absolute; z-index: 5; display: none; pointer-events: none; white-space: nowrap; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 6px; }
  .legend { display: flex; align-items: center; gap: 4px; }
  .legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; background: var(--accent); }

  /* Quote */
  .quote { margin: 0; max-width: 980px; }
  .quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -0.01em; transition: opacity .4s ease; }
  .quote footer { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

  /* Contact */
  .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
  .form > * + * { margin-top: 16px; }

  /* ── Contact: sending + received ─────────── */
  .form .field-wrap { transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s ease; }
  .form.sending .field { opacity: .55; pointer-events: none; }
  .form.leaving > * { opacity: 0; transform: translateY(-14px); filter: blur(4px); transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s ease; }
  .form.leaving > *:nth-child(2) { transition-delay: .06s; } .form.leaving > *:nth-child(3) { transition-delay: .12s; }
  .send-btn { position: relative; }
  .send-btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: none; animation: spin .7s linear infinite; }
  .form.sending .send-btn .spin { display: inline-block; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .send-btn.shake { animation: shake .45s var(--ease); }
  @keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

  .sent { position: relative; padding: 4px 0 0; }
  .sent[hidden] { display: none; }
  .sent-anim { width: 160px; height: 120px; margin: -6px 0 6px -10px; }
  .sent-svg { width: 100%; height: 100%; overflow: visible; }
  .sent-svg path, .sent-svg circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .sent-svg .plane path { stroke: var(--text); stroke-width: 2; }
  .sent-svg .trail { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: .015 .025; stroke-dashoffset: 0; opacity: 0; }
  .sent-svg .tick circle { stroke: var(--accent); stroke-width: 2; }
  .sent-svg .tick path { stroke: var(--accent); stroke-width: 3; }
  .sent.play .plane path { animation: drawIn .7s var(--ease) forwards; }
  .sent.play .plane { animation: flyOff .9s cubic-bezier(.55,0,.6,.2) .75s forwards; transform-box: fill-box; transform-origin: center; }
  .sent.play .trail { animation: trailIn .9s ease .75s forwards, trailOut .8s ease 1.9s forwards; }
  .sent.play .tick circle { animation: drawIn .8s var(--ease) 1.35s forwards; }
  .sent.play .tick path { animation: drawIn .45s var(--ease) 1.95s forwards; }
  @keyframes drawIn { to { stroke-dashoffset: 0; } }
  @keyframes flyOff { to { transform: translate(140px, -90px) rotate(-8deg) scale(.6); opacity: 0; } }
  @keyframes trailIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: .8; clip-path: inset(0 0 0 0); } }
  @keyframes trailOut { to { opacity: 0; } }

  .sent-kicker { opacity: 0; transform: translateY(8px); transition: all .6s var(--ease) 1.5s; }
  .sent-title { margin: 10px 0 0; font-weight: 500; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; }
  .sent-title .wi { transition-delay: calc(1.6s + var(--i, 0) * 90ms); }
  .sent-title .w + .w .wi { --i: 1; }
  .sent-title:focus { outline: none; }
  .sent-copy { margin-top: 14px; max-width: 460px; opacity: 0; transform: translateY(8px); transition: all .7s var(--ease) 1.85s; }
  .sent.play .sent-kicker, .sent.play .sent-copy { opacity: 1; transform: none; }
  .sent.play .wi { transform: none; }

  .ticket { position: relative; margin-top: 28px; max-width: 460px; padding: 18px 22px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; font-family: var(--mono); font-size: 13px; clip-path: inset(0 0 100% 0 round 14px); }
  .sent.play .ticket { animation: printOut 1.1s cubic-bezier(.3,.7,.2,1) 2.05s forwards; }
  @keyframes printOut { to { clip-path: inset(0 0 0 0 round 14px); } }
  .ticket::before, .ticket::after { content: ''; position: absolute; top: calc(100% - 74px); width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
  .ticket::before { left: -10px; } .ticket::after { right: -10px; }
  .ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: var(--muted); opacity: 0; transform: translateY(-4px); }
  .ticket-row b { font-weight: 400; color: var(--text); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sent.play .ticket-row { animation: rowIn .4s var(--ease) forwards; }
  .sent.play .ticket-row:nth-child(1) { animation-delay: 2.25s; } .sent.play .ticket-row:nth-child(2) { animation-delay: 2.37s; }
  .sent.play .ticket-row:nth-child(3) { animation-delay: 2.49s; } .sent.play .ticket-row:nth-child(4) { animation-delay: 2.61s; }
  .sent.play .ticket-row:nth-child(5) { animation-delay: 2.73s; }
  @keyframes rowIn { to { opacity: 1; transform: none; } }
  .t-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent) !important; }
  .ticket-perf { margin: 14px -22px 14px; border-top: 1.5px dashed var(--line-2); }
  .ticket-bar { height: 34px; display: flex; gap: 2px; align-items: stretch; opacity: .85; }
  .ticket-bar i { display: block; background: var(--text); border-radius: 1px; }
  .ticket-foot { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
  .sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; opacity: 0; transition: opacity .6s ease 3s; }
  .sent.play .sent-actions { opacity: 1; }

  .spark { position: fixed; z-index: 400; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); pointer-events: none; animation: spark .9s cubic-bezier(.2,.7,.3,1) forwards; }
  .spark.sq { border-radius: 1px; width: 5px; height: 5px; }
  @keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

  @media (prefers-reduced-motion: reduce) {
    .sent * { animation: none !important; transition: none !important; }
    .sent-svg .plane, .sent-svg .trail { display: none; }
    .sent-svg .tick circle, .sent-svg .tick path { stroke-dashoffset: 0; }
    .sent-kicker, .sent-copy, .ticket-row, .sent-actions { opacity: 1; transform: none; }
    .ticket { clip-path: none; }
    .sent .wi { transform: none; }
  }
  .visible .sent:not(.play) .wi, .sent:not(.play) .wi { transform: translateY(110%); }
  /* Message box: fixed start height, grows with text up to a cap, no drag handle */
  #f-msg { resize: none; min-height: 150px; max-height: 300px; overflow-y: auto; line-height: 1.6; transition: border-color .2s ease, height .2s ease; }

  /* ── Fit fixes for small screens ── */
  .interest { container-type: inline-size; min-width: 0; }
  .i-name { font-size: clamp(20px, 15.5cqi, 30px); white-space: nowrap; }
  .i-cap { font-size: clamp(10px, 6.4cqi, 11.5px); }
  @media (hover: none) {
    .interest:hover { transform: none; border-color: var(--line); }
    .interest:hover::after { opacity: 0; }
    .interest:hover .i-ic { color: var(--muted); background: none; border-color: var(--line-2); transform: none; }
    .interest:hover .i-name { color: var(--text); transform: none; }
  }
  .viz-erp, .viz-oled { container-type: inline-size; }
  .erp-tiles div { font-size: clamp(6px, 2.1cqi, 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .oled { font-size: clamp(7px, 2.6cqi, 13px); }
