/* =========================================================
   SpaceTech — página de software
   Usa os tokens e componentes de style.css; tudo daqui fica
   na camada "page", que vence as camadas de lá.
   ========================================================= */
@layer page {

  /* ---------- paleta do logo SpaceTech ---------- */
  body.st {
    --blue: #6A45F5;          /* botões, destaques e CTA final viram violeta */
    --blue-deep: #4E2FD6;
    --violet-2: #B66CFF;
    --lilac: #D3C4FF;
    --night: #06061A;
    --night-2: #0D0B2B;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --line-dark: rgba(211, 196, 255, .14);
  }
  .mono { font-family: var(--mono); font-size: .82em; letter-spacing: 0; }
  .eyebrow { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.4rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
  .st-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .st-head h2 { max-width: 14ch; }

  /* ---------- logo (recriado em HTML + SVG) ---------- */
  .st-logo { display: inline-flex; align-items: center; font-family: "Lexend", var(--font); font-weight: 700; font-size: 1.55rem; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
  .st-logo .w1 { color: #fff; }
  .st-logo .w2 { background: linear-gradient(180deg, #7B55FF, #4B32EC); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .st-planet { width: 1.65em; height: auto; margin: -.35em -.12em 0 -.08em; overflow: visible; }
  .st-lockup { display: grid; justify-items: center; gap: 1.1rem; }
  .st-lockup .st-logo { font-size: clamp(2.6rem, 8vw, 6.5rem); }
  .st-tagline { font-family: "Lexend", var(--font); font-weight: 600; font-size: clamp(.7rem, 1.4vw, 1.05rem); letter-spacing: .42em; text-transform: uppercase; color: rgba(255, 255, 255, .85); padding-left: .42em; }
  .brand { text-decoration: none; }
  .top .brand .st-logo { font-size: 1.45rem; }
  /* a pílula do header fica escura: o "corte" do anel acompanha */
  .top { --logo-gap: #06061A; }

  /* ---------- cortina de transição ---------- */
  .curtain { --logo-gap: var(--night); }

  /* ---------- header nesta página ---------- */
  .nav-back { opacity: .7; }
  .nav-back::before { content: "← "; }

  /* ---------- HERO ---------- */
  .st-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 8rem 5rem; background: var(--night); color: var(--paper); }
  .st-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 80% 40%, rgba(106, 69, 245, .32), transparent 70%), radial-gradient(40% 50% at 5% 100%, rgba(182, 108, 255, .16), transparent 70%); }
  /* grade de fundo que some nas bordas */
  .st-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); opacity: .5; }
  .net { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
  .st-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
  .st-hero .eyebrow { color: var(--lilac); }
  .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3BE8A0; }
  .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s var(--ease) infinite; }
  @keyframes pulse { to { transform: scale(3.2); opacity: 0; } }
  .st-title { font-size: clamp(3rem, 6.4vw, 6.6rem); line-height: .9; perspective: 600px; }
  .st-title .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
  .st-title .ln > span { display: block; }
  /* cor sólida: gradiente com background-clip some quando o título é dividido em letras */
  .st-title .soft { color: var(--violet-2); }
  .st-title .word { display: inline-block; white-space: nowrap; }
  .st-title .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
  .st-hero .lede { margin: 2rem 0 2.4rem; color: rgba(243, 244, 248, .8); }
  .st-hero-foot { position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 2; display: flex; justify-content: space-between; font-size: .85rem; color: rgba(243, 244, 248, .5); }

  /* janela de código */
  .code-stage { position: relative; padding-block: 2.5rem; }
  .code-win {
    position: relative; border-radius: 18px; overflow: hidden;
    background: linear-gradient(180deg, rgba(23, 20, 66, .92), rgba(10, 9, 36, .95));
    box-shadow: 0 0 0 1px rgba(211, 196, 255, .16), 0 40px 90px -30px rgba(106, 69, 245, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: perspective(1200px) rotateY(-9deg) rotateX(5deg); transform-style: preserve-3d;
    transition: transform .9s var(--ease);
  }
  .code-stage:hover .code-win { transform: perspective(1200px) rotateY(-3deg) rotateX(2deg); }
  .code-bar { display: flex; align-items: center; gap: .45rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(211, 196, 255, .25); }
  .code-bar i:first-child { background: #FF6B81; } .code-bar i:nth-child(2) { background: #FFC960; } .code-bar i:nth-child(3) { background: #3BE8A0; }
  .code-bar span { margin-left: .6rem; font-family: var(--mono); font-size: .75rem; color: rgba(243, 244, 248, .45); }
  .code-lines { min-height: 15.5em; padding: 1.4rem 1.5rem 1.8rem; font-family: var(--mono); font-size: clamp(.78rem, 1vw, .92rem); line-height: 2; color: rgba(243, 244, 248, .85); }
  .code-lines li { white-space: pre-wrap; word-break: break-word; }
  .code-lines b { color: var(--violet-2); font-weight: 600; }
  .code-lines .ok { color: #3BE8A0; }
  .code-lines .go { color: var(--lilac); font-weight: 600; }
  .caret { position: absolute; width: .55em; height: 1.1em; background: var(--violet-2); animation: blink 1s steps(1) infinite; display: none; }
  .typing .caret { display: block; }
  @keyframes blink { 50% { opacity: 0; } }

  .toast {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .6rem; white-space: nowrap;
    padding: .7rem 1rem; border-radius: 14px; font-size: .85rem; color: var(--ink);
    background: rgba(243, 244, 248, .96); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    animation: bob 6s ease-in-out infinite;
  }
  .toast b { font-weight: 700; }
  .t1 { left: -6%; top: 6%; }
  .t2 { right: -4%; top: 66%; animation-delay: -2s; }
  .t3 { left: 8%; bottom: 0; animation-delay: -4s; }
  @keyframes bob { 50% { transform: translateY(-12px); } }
  .dot-ok, .dot-sync, .dot-doc { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #1FBF7A; box-shadow: 0 0 0 4px rgba(31, 191, 122, .18); }
  .dot-sync { background: #6A45F5; box-shadow: 0 0 0 4px rgba(106, 69, 245, .18); }
  .dot-doc { background: #F2A93B; box-shadow: 0 0 0 4px rgba(242, 169, 59, .2); }

  /* ---------- faixa ---------- */
  .band { overflow: hidden; padding-block: 1.3rem; background: var(--blue); color: #fff; }
  .band-row { display: flex; width: max-content; animation: band 28s linear infinite; }
  .band-row span, .band-row i { padding-inline: 1.2rem; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; font-stretch: 75%; font-style: normal; line-height: 1.1; white-space: nowrap; }
  .band-row i { color: var(--lilac); }
  @keyframes band { to { transform: translateX(-50%); } }

  /* ---------- luz que segue o mouse nos cartões ---------- */
  .spot { position: relative; isolation: isolate; }
  .spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(106, 69, 245, .16), transparent 60%); }
  .spot:hover::before { opacity: 1; }

  /* ---------- DOIS JEITOS ---------- */
  .modes { padding-block: var(--section); }
  .mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .mode { padding: clamp(1.8rem, 3.5vw, 3rem); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .4s; }
  .mode:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(13, 14, 28, .25); }
  .mode-k { color: var(--blue); }
  .mode h3 { margin: 1.2rem 0 .9rem; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; font-stretch: 80%; line-height: 1; letter-spacing: -.02em; }
  .mode p { color: var(--muted); max-width: 32em; }
  .mode ul { display: grid; gap: .55rem; margin-top: 1.6rem; }
  .mode li { display: flex; gap: .7rem; align-items: baseline; font-weight: 500; }
  .mode li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); transform: translateY(-.15em) rotate(45deg); }
  .mode-alt { background: var(--night); color: var(--paper); box-shadow: none; }
  .mode-alt:hover { box-shadow: 0 30px 60px -30px rgba(6, 6, 26, .6); }
  .mode-alt .mode-k { color: var(--lilac); }
  .mode-alt p { color: rgba(243, 244, 248, .7); }
  .mode-alt li::before { background: var(--violet-2); }
  .mode-alt.spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(182, 108, 255, .22), transparent 60%); }

  .caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
  .cap { padding: 2rem clamp(1rem, 2vw, 1.8rem) 2.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .cap:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .cap svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.3rem; transition: transform .6s var(--ease); }
  .cap:hover svg { transform: translateY(-4px) rotate(-6deg); }
  .cap h3 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: .4rem; }
  .cap p { color: var(--muted); font-size: .98rem; }

  /* ---------- DO IMPROVISO AO SISTEMA ---------- */
  .shift { position: relative; overflow: clip; background: var(--night); color: var(--paper); }
  .shift-pin { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: clamp(5rem, 8vw, 7rem); }
  .shift-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
  .shift .eyebrow { color: var(--lilac); }
  .shift h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
  .shift h2 .soft { display: block; color: var(--violet-2); }
  .shift .lede { margin-top: 1.6rem; color: rgba(243, 244, 248, .75); }
  .shift-list { display: grid; gap: .6rem; margin-top: 1.8rem; }
  .shift-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
  .shift-list li::before { content: "✓"; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(59, 232, 160, .15); color: #3BE8A0; font-size: .8em; }

  .board { position: relative; border-radius: 20px; background: #F6F6FB; color: var(--ink); box-shadow: 0 40px 100px -40px rgba(106, 69, 245, .7); }
  .board-bar { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; border-bottom: 1px solid #E4E4EE; }
  .board-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DADAE6; }
  .board-bar span { margin: 0 auto; padding: .2rem 1rem; border-radius: 6px; background: #EBEBF3; color: var(--muted); font-size: .7rem; }
  .board-grid { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr; grid-template-rows: auto minmax(190px, 1fr) auto; gap: .7rem; padding: .9rem; }
  .t-side { grid-row: 1 / -1; }
  .t-chart { grid-column: 2 / 4; }
  .t-table { grid-column: 2 / -1; }
  .tile { position: relative; min-width: 0; min-height: 0; will-change: transform; }
  .tile > div { position: absolute; inset: 0; border-radius: 12px; }
  /* sem motion (ou antes do JS), o painel aparece arrumado */
  .mess { opacity: 0; display: grid; place-items: center; padding: .7rem; text-align: center; font-size: .82rem; line-height: 1.3; }
  .sys { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .9rem; background: #fff; box-shadow: 0 0 0 1px #E6E6F0; overflow: hidden; }
  .sys small { color: var(--muted); font-size: .7rem; }

  .m-sheet { align-content: start; justify-items: stretch; gap: 6px; background: #E8F5EC; color: #1E6B3C; font-family: var(--mono); font-size: .66rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); background-image: linear-gradient(#C5E3CF 1px, transparent 1px), linear-gradient(90deg, #C5E3CF 1px, transparent 1px); background-size: 100% 18px, 34px 100%; }
  .m-sheet b { padding: .2rem .3rem; background: #1E6B3C; color: #fff; border-radius: 4px; font-weight: 600; word-break: break-all; }
  .m-note { background: #FFE27A; color: #5B4500; font-weight: 700; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55); font-style: italic; }
  .m-note-2 { background: #FFB8C9; color: #6B1A2C; }
  .m-chat { background: #DCF8C6; color: #1F3B12; border-radius: 12px 12px 12px 2px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55); }
  .m-mail { background: #fff; color: #333; font-family: var(--mono); font-size: .68rem; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55); border-top: 4px solid #E34A3C; }
  .m-paper { background: #FBF8EE; color: #2B3A8C; font-style: italic; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55); background-image: repeating-linear-gradient(#FBF8EE 0 17px, #CFD8F0 17px 18px); }

  .s-side { gap: .2rem; background: var(--night); box-shadow: none; padding-top: 1rem; }
  .s-side .logo-dot { width: 22px; height: 22px; margin-bottom: .8rem; border-radius: 50%; background: linear-gradient(180deg, var(--violet-2), #5E3BF2); }
  .s-side span { padding: .35rem .5rem; border-radius: 7px; color: rgba(243, 244, 248, .6); font-size: .72rem; }
  .s-side .on { background: rgba(106, 69, 245, .35); color: #fff; }
  .s-kpi b { font-size: clamp(1.2rem, 2.2vw, 1.9rem); font-weight: 700; font-stretch: 80%; line-height: 1; }
  .s-kpi em { font-style: normal; font-size: .68rem; color: #1FBF7A; font-weight: 600; }
  .s-chart svg { flex: 1; width: 100%; min-height: 0; }
  .s-chart .area { fill: rgba(106, 69, 245, .14); }
  .s-chart .ln { fill: none; stroke: #6A45F5; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .s-list span, .s-table span { display: flex; align-items: center; gap: .45rem; font-size: .72rem; white-space: nowrap; }
  .s-list { gap: .55rem; }
  .s-table { gap: .25rem; padding-block: .6rem; }
  .s-table span { justify-content: space-between; padding: .25rem 0; border-bottom: 1px solid #EEEEF4; }
  .s-table span:last-child { border: 0; }
  .s-table em { font-style: normal; padding: .1rem .5rem; border-radius: 999px; background: rgba(31, 191, 122, .14); color: #138055; font-weight: 600; font-size: .66rem; }
  .s-table em.w { background: rgba(106, 69, 245, .14); color: #4E2FD6; }
  .t-k1, .t-k2, .t-k3 { min-height: 84px; }
  .t-table { min-height: 122px; }

  /* ---------- PROCESSO ---------- */
  .process { padding-block: var(--section); }
  .proc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .proc-head { position: sticky; top: 8rem; }
  .proc-head .lede { margin-top: 1.6rem; color: var(--muted); }
  .proc-list { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-left: 0; }
  .proc { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; opacity: .35; transition: opacity .6s; }
  .proc.on, html:not(.motion) .proc { opacity: 1; }
  .proc-n { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: background-color .5s, color .5s, box-shadow .5s; }
  .proc.on .proc-n { background: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(106, 69, 245, .14); }
  .proc h3 { margin: .45rem 0 .5rem; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; font-stretch: 80%; line-height: 1; letter-spacing: -.02em; }
  .proc p { color: var(--muted); max-width: 30em; }
  .proc-line { position: absolute; left: 1.6rem; top: 1.6rem; bottom: 1.6rem; width: 2px; margin-left: -1px; background: var(--line); }
  .proc-line i { position: absolute; inset: 0; background: linear-gradient(var(--violet-2), var(--blue)); transform-origin: top; transform: scaleY(var(--p, 1)); }

  /* ---------- PROJETOS ---------- */
  .projects { padding-block: var(--section); background: var(--night); color: var(--paper); }
  .projects .eyebrow { color: var(--lilac); }
  .proj-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
  .proj-head h2 { max-width: 13ch; }
  .proj-stats { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0; }
  .proj-stats div { display: grid; }
  .proj-stats dt { order: 2; font-size: .85rem; color: rgba(243, 244, 248, .55); }
  .proj-stats dd { margin: 0; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; font-stretch: 75%; line-height: 1; color: var(--lilac); font-variant-numeric: tabular-nums; }

  .pj-list { border-top: 1px solid var(--line-dark); }
  .pj {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, .7fr) 2.5rem; gap: 1.5rem; align-items: center;
    padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(.5rem, 1.5vw, 1.5rem);
    border-bottom: 1px solid var(--line-dark);
  }
  /* no hover a linha se enche de violeta a partir da esquerda */
  .pj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #6A45F5, #4E2FD6); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
  .pj:hover::before { transform: scaleX(1); transform-origin: left; }
  .pj-years { color: rgba(243, 244, 248, .55); transition: color .4s; }
  .pj-main h3 { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 700; font-stretch: 75%; line-height: .95; letter-spacing: -.02em; transition: transform .7s var(--ease); }
  .pj-main p { max-width: 34em; margin-top: .6rem; color: rgba(243, 244, 248, .62); transition: color .4s; }
  .pj:hover .pj-main h3 { transform: translateX(.6rem); }
  .pj:hover .pj-years, .pj:hover .pj-main p { color: rgba(255, 255, 255, .88); }
  .pj-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
  .pj-tags li { padding: .3em .85em; border-radius: 999px; background: rgba(243, 244, 248, .08); font-size: .82rem; font-weight: 500; color: rgba(243, 244, 248, .8); white-space: nowrap; transition: background-color .4s; }
  .pj:hover .pj-tags li { background: rgba(255, 255, 255, .16); color: #fff; }
  .pj-tags .k-care { background: rgba(59, 232, 160, .16); color: #7FF0C2; }
  .pj-arrow { position: relative; justify-self: end; width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(243, 244, 248, .25); transition: transform .7s var(--ease), background-color .4s; }
  .pj-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: .65rem; height: .65rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }
  .pj:hover .pj-arrow { transform: rotate(-45deg); background: #fff; color: var(--blue); box-shadow: none; }

  /* prova social no hero */
  .st-proof { margin-top: 2.2rem; font-size: .9rem; color: rgba(243, 244, 248, .55); }
  .st-proof b { color: rgba(243, 244, 248, .92); font-weight: 600; }

  /* ---------- FAQ e CTA ---------- */
  .st-faq { padding-top: var(--section); }
  .st-faq summary:hover { color: var(--blue); }
  .st-final { background: linear-gradient(160deg, #6A45F5, #4E2FD6 60%, #3A22B8); }

  /* ---------- responsivo ---------- */
  @media (max-width: 980px) {
    .st-hero { padding-block: 7rem 4rem; }
    .st-hero-grid, .shift-grid, .proc-grid { grid-template-columns: minmax(0, 1fr); }
    .code-stage { max-width: 560px; }
    .code-win { transform: none; }
    .proc-head { position: static; }
    .st-hero-foot { display: none; }
    .nav-back { order: 9; }
    .pj { grid-template-columns: 7rem minmax(0, 1fr) 2.5rem; }
    .pj-tags { grid-column: 2 / 3; justify-content: flex-start; }
  }
  @media (max-width: 640px) {
    .mode-grid { grid-template-columns: minmax(0, 1fr); }
    .caps { grid-template-columns: minmax(0, 1fr); }
    .cap:not(:nth-child(3n + 1)) { border-left: 0; }
    .board-grid { aspect-ratio: auto; grid-template-columns: .8fr 1fr 1fr; grid-template-rows: auto auto auto auto; }
    .t-side { grid-row: 1 / 4; }
    .t-k3 { display: none; }
    .t-chart, .t-list { grid-column: 2 / -1; min-height: 110px; }
    .t-table { grid-column: 1 / -1; }
    .toast { font-size: .75rem; padding: .55rem .8rem; }
    .t1 { left: 0; } .t2 { right: 0; }
    .code-lines { min-height: 17em; }
    .top .brand .st-logo { font-size: 1.25rem; }
    .proj-head { align-items: start; }
    .pj { grid-template-columns: minmax(0, 1fr) 2.5rem; gap: .8rem 1rem; }
    .pj-years, .pj-main, .pj-tags { grid-column: 1; }
    .pj-arrow { grid-column: 2; grid-row: 1 / 3; align-self: start; }
    .proj-stats { width: 100%; justify-content: space-between; }
  }
}
