/* ==========================================================================
   ETC Labs — Gen 1 · Page compositions. Same world, different emphasis per page.
   ========================================================================== */

/* ---------- Hero shell ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px)); padding-bottom: clamp(40px, 6vw, 88px); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; font-family: var(--font-mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--tone-rgb)); }

/* ---------- HOME: opening ---------- */
.home-hero { min-height: min(92vh, 900px); display: flex; align-items: center; padding-top: calc(var(--nav-h) + 24px); }
.home-hero .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.home-hero .display { max-width: 11ch; }
.build-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-2); }
.build-list li { display: inline-flex; align-items: center; gap: 8px; }
.build-list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--g-cyan-violet); }
@media (max-width: 899px) { .home-hero { min-height: 0; } .home-hero .split { grid-template-columns: minmax(0, 1fr); } }

/* Ecosystem visual: ETC core + five orbiting systems, SVG, pointer parallax */
.eco { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; }
.eco svg { width: 100%; height: 100%; overflow: visible; }
.eco .core { transform-origin: center; }
.eco .ring { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.eco .ring.hi { stroke: rgba(var(--cyan-rgb), 0.28); stroke-dasharray: 2 10; }
.eco .link { stroke: rgba(var(--cyan-rgb), 0.35); stroke-width: 1; fill: none; }
.eco .pulse { stroke: url(#eco-g); stroke-width: 1.6; fill: none; stroke-dasharray: 18 300; stroke-linecap: round; animation: eco-pulse 4s linear infinite; animation-delay: var(--d, 0s); opacity: 0.9; }
@keyframes eco-pulse { from { stroke-dashoffset: 318; } to { stroke-dashoffset: 0; } }
.eco .node { cursor: pointer; transition: transform 0.6s var(--ease-out); transform: translate(var(--px, 0px), var(--py, 0px)); }
.eco .node circle.bg { fill: #101019; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; transition: stroke var(--t-base), fill var(--t-base); }
.eco .node circle.halo { fill: none; stroke: var(--c); stroke-opacity: 0; stroke-width: 10; transition: stroke-opacity var(--t-base); }
.eco .node:hover circle.bg, .eco .node:focus-visible circle.bg, .eco .node.on circle.bg { stroke: var(--c); fill: #14141f; }
.eco .node:hover circle.halo, .eco .node.on circle.halo { stroke-opacity: 0.12; }
.eco .node text { fill: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 12px; text-anchor: middle; pointer-events: none; }
.eco .node text.sub { fill: var(--muted); font-family: var(--font-mono); font-weight: 400; font-size: 8.5px; }
.eco .node .ico { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eco .core-glow { animation: core-breathe 5s ease-in-out infinite; transform-origin: center; }
@keyframes core-breathe { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } }
.eco .core-text { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-anchor: middle; letter-spacing: 0.08em; }
.eco-caption { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-2); }
@media (max-width: 899px) { .eco { max-width: 400px; } .eco .pulse { animation-duration: 6s; } }
@media (prefers-reduced-motion: reduce) { .eco .pulse, .eco .core-glow { animation: none; } }

/* Visitor paths */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path { position: relative; display: block; color: inherit; padding: 30px 28px 30px 0; margin-right: 28px; border-right: 1px solid var(--line); transition: color var(--t-fast); }
.path:last-child { border-right: 0; margin-right: 0; }
.path::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--g-cyan-violet); transform: scaleY(0); transform-origin: top; transition: transform var(--t-slow) var(--ease-out); }
.path:hover::before { transform: scaleY(1); }
.path .who { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-bottom: 12px; }
.path h3 { font-size: 1.2rem; margin-bottom: 8px; }
.path p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.path:hover h3 { color: var(--cyan); }
@media (max-width: 799px) { .paths { grid-template-columns: minmax(0, 1fr); } .path { padding: 20px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); } .path:last-child { border-bottom: 0; } }

/* Interactive "what we build" — hover a row, the visual panel responds */
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.build .rows { border-top-color: var(--line-2); }
.build .row { cursor: pointer; }
.build .row[aria-selected="true"] { background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.08), transparent 60%); }
.build .row[aria-selected="true"] h3 { color: var(--cyan); }
.build-visual { position: sticky; top: calc(var(--nav-h) + 24px); }
.build-visual .mock { aspect-ratio: 16 / 11; }
@media (max-width: 899px) { .build { grid-template-columns: minmax(0, 1fr); } .build-visual { position: static; order: -1; max-width: 480px; } }

/* Product showcase strip */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 3vw, 44px); }
.showcase + .showcase { border-top: 1px solid var(--line); }
.showcase.flip .mock-wrap { order: 2; }
.showcase h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin: 10px 0 8px; }
.showcase p { color: var(--muted); max-width: 46ch; }
.mock-wrap { padding: clamp(14px, 2vw, 24px); border-radius: 22px; background: radial-gradient(80% 80% at 30% 20%, rgba(var(--tone-rgb), 0.16), transparent 70%), rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.mock-wrap:hover .mock { transform: translate3d(0, -4px, 0) rotateX(1.5deg); }
@media (max-width: 799px) { .showcase { grid-template-columns: minmax(0, 1fr); } .showcase.flip .mock-wrap { order: 0; } }

/* Projects strip (home) */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 899px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip > :nth-child(3) { display: none; } }

/* League band */
.league-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid rgba(var(--magenta-rgb), 0.25); background: radial-gradient(700px 400px at 100% 0%, rgba(var(--magenta-rgb), 0.16), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(var(--violet-rgb), 0.2), transparent 60%), rgba(255, 255, 255, 0.02); }
.league-band .benefits { display: grid; gap: 8px; margin-top: 18px; }
.league-band .benefits li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); font-size: 0.95rem; }
.league-band .benefits li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); flex: none; transform: translateY(-2px); box-shadow: 0 0 8px var(--magenta); }
@media (max-width: 899px) { .league-band { grid-template-columns: minmax(0, 1fr); } }

/* Why ETC Labs / how we work */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.how > div { padding: 24px 24px 24px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.how > div:last-child { border-right: 0; margin-right: 0; }
.how .n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--cyan); margin-bottom: 10px; display: block; }
.how h3 { font-size: 1.05rem; } .how p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 899px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how > div:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 519px) { .how { grid-template-columns: minmax(0, 1fr); } .how > div { padding: 18px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); } .how > div:last-child { border-bottom: 0; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(var(--cyan-rgb), 0.08), rgba(var(--violet-rgb), 0.12) 50%, rgba(var(--magenta-rgb), 0.08)), rgba(255, 255, 255, 0.02); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at var(--x, 20%) var(--y, 50%), rgba(var(--cyan-rgb), 0.14), transparent 70%); pointer-events: none; transition: opacity var(--t-base); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 22ch; margin: 0 0 8px; }
.cta-band .lead { margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 799px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WHAT WE DO ---------- */
.svc-detail h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 8px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; margin-top: 24px; }
.svc-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.svc-grid p { color: var(--text-2); font-size: 0.95rem; }
.svc-deliver { padding: 18px 20px; border-radius: var(--r-lg); background: rgba(var(--tone-rgb), 0.08); border: 1px solid rgba(var(--tone-rgb), 0.2); }
.svc-visual { margin-bottom: 20px; }
.svc-visual .mock { aspect-ratio: 16 / 7; }
@media (max-width: 719px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- PRODUCTS ---------- */
.distinction { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.distinction > div { padding: 20px 24px; }
.distinction > div + div { border-left: 1px solid var(--line); }
.distinction h3 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.distinction p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.distinction .k { width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.distinction .k.alt { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
@media (max-width: 639px) { .distinction { grid-template-columns: minmax(0, 1fr); } .distinction > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.product-group + .product-group { margin-top: clamp(48px, 6vw, 88px); }
.product-group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.product-group-head p { color: var(--muted); max-width: 60ch; font-size: 0.95rem; }
.product-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); border: 1px solid rgba(var(--green-rgb), 0.25); background: radial-gradient(600px 300px at 0% 0%, rgba(var(--green-rgb), 0.08), transparent 60%), rgba(255, 255, 255, 0.02); }
.product-feature h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 10px 0 8px; }
.product-feature p { color: var(--text-2); }
.problem { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border-left: 2px solid rgb(var(--tone-rgb)); }
.problem span { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.problem p { color: var(--text-2); font-size: 0.92rem; }
.who-for { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 899px) { .product-feature { grid-template-columns: minmax(0, 1fr); } }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 719px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product-item { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); overflow: hidden; transition: border-color var(--t-base), transform var(--t-base) var(--ease); }
.product-item:hover { border-color: var(--line-hi); transform: translate3d(0, -3px, 0); }
.product-item .mock { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; box-shadow: none; }
.product-item .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.product-item h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.product-item p { color: var(--muted); font-size: 0.93rem; }
.product-item .head-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.product-item .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.product-item .keys { display: grid; gap: 4px; margin-top: 10px; font-size: 0.86rem; color: var(--text-2); }
.product-item .keys li { display: flex; gap: 8px; align-items: baseline; } .product-item .keys li::before { content: "—"; color: var(--muted-2); }

/* ---------- PROJECTS ---------- */
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 1023px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
.project { position: relative; display: flex; flex-direction: column; color: inherit; }
.project .visual { position: relative; border-radius: 16px; overflow: hidden; }
.project .mock { aspect-ratio: 16 / 11; }
.project:hover .mock { transform: translate3d(0, -4px, 0) scale(1.01); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 1), 0 0 40px -20px color-mix(in srgb, var(--mk) 60%, transparent); }
.project .overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(180deg, transparent 45%, rgba(7, 7, 11, 0.85)); opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
.project:hover .overlay, .project:focus-within .overlay { opacity: 1; }
.project .overlay .meta-list { display: flex; flex-wrap: wrap; gap: 6px; }
.project .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; }
.project h3 { font-size: 1.12rem; margin-bottom: 4px; }
.project p { color: var(--muted); font-size: 0.92rem; }
.project .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.project .tech { font-family: var(--font-mono); color: var(--muted-2); font-size: 0.74rem; }
.project.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(18px, 2.5vw, 30px); border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.project.featured .mock { aspect-ratio: 16 / 9; }
.project.featured h3 { font-size: 1.6rem; }
.project .q { display: grid; gap: 8px; margin-top: 12px; }
.project .q div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 0.9rem; }
.project .q b { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.project .q span { color: var(--text-2); }
@media (max-width: 799px) { .project.featured { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CREATION LEAGUE ---------- */
.league-hero .display { max-width: 12ch; }
.league-hero .benefits { display: grid; gap: 6px; margin-top: 22px; max-width: 46ch; }
.league-hero .benefits li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.league-hero .benefits li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); flex: none; transform: translateY(-2px); box-shadow: 0 0 8px var(--magenta); }
.cg { width: 100%; height: auto; }
.cg-link { stroke: rgba(var(--magenta-rgb), 0.35); stroke-width: 1.2; transition: stroke var(--t-base), stroke-width var(--t-base); }
.cg-link.faint { stroke: rgba(var(--violet-rgb), 0.18); stroke-dasharray: 2 6; }
.cg-link.hot { stroke: var(--magenta); stroke-width: 2; }
.cg-node { cursor: default; transform-box: fill-box; transform-origin: center; transition: transform var(--t-base) var(--ease); }
.cg-node:hover { transform: scale(1.08); }
.cg-node circle.bg { fill: #14141f; transition: stroke-width var(--t-base); }
.cg-node:hover circle.bg { stroke-width: 2.5; }
.cg-ring { transform-box: fill-box; transform-origin: center; animation: cg-pulse 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes cg-pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.1; } }
.cg-role { fill: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 11px; }
.cg-skill { fill: var(--muted); font-family: var(--font-mono); font-size: 8.5px; }
.cg-core-t { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; }
.cg-core-s { fill: rgba(255, 255, 255, 0.85); font-family: var(--font-body); font-size: 9.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid > div { position: relative; padding: 26px 26px 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t-base); }
.feature-grid > div:hover { background: rgba(var(--magenta-rgb), 0.05); }
.feature-grid h3 { font-size: 1.1rem; margin: 14px 0 6px; } .feature-grid p { color: var(--muted); font-size: 0.93rem; }
.feature-grid .tag { display: inline-block; margin-top: 14px; color: var(--magenta); }
.feature-grid .status { position: absolute; top: 20px; right: 20px; }
@media (max-width: 899px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .feature-grid { grid-template-columns: minmax(0, 1fr); border-left: 0; } .feature-grid > div { border-right: 0; padding: 20px 0; } .feature-grid .status { right: 0; } }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why-item h3 { font-size: 1.02rem; margin: 10px 0 4px; } .why-item p { color: var(--muted); font-size: 0.92rem; }
.why-item .n { font-family: var(--font-mono); color: var(--magenta); font-size: var(--fs-xs); }
@media (max-width: 899px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.members { display: flex; flex-wrap: wrap; gap: 10px; }
.member { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: border-color var(--t-fast), transform var(--t-base) var(--ease); }
.member:hover { border-color: rgba(var(--magenta-rgb), 0.5); transform: translate3d(0, -2px, 0); }
.member .avatar { width: 32px; height: 32px; font-size: 0.8rem; }
.member b { display: block; font-size: 0.9rem; line-height: 1.15; } .member span { color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); }
.join-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: linear-gradient(120deg, rgba(var(--violet-rgb), 0.28), rgba(var(--magenta-rgb), 0.22)), #14111f; border: 1px solid rgba(var(--magenta-rgb), 0.35); }
@media (max-width: 899px) { .join-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ABOUT ---------- */
.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.story + .story { margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.story .side { position: sticky; top: calc(var(--nav-h) + 24px); }
.story .side h2 { font-size: 1.2rem; margin: 6px 0 0; }
.story .body p { color: var(--text-2); max-width: 64ch; font-size: 1.02rem; }
@media (max-width: 799px) { .story { grid-template-columns: minmax(0, 1fr); gap: 10px; } .story .side { position: static; } }
.abstract { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(60% 60% at 70% 30%, rgba(var(--violet-rgb), 0.35), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(var(--cyan-rgb), 0.25), transparent 70%), #0e0e16; border: 1px solid var(--line); }
.abstract i { position: absolute; border-radius: 50%; }
.abstract .a1 { width: 58%; aspect-ratio: 1; right: -12%; top: -10%; background: radial-gradient(circle at 40% 40%, rgba(var(--magenta-rgb), 0.55), rgba(var(--violet-rgb), 0.35) 60%, transparent 72%); }
.abstract .a2 { width: 44%; aspect-ratio: 1; left: -8%; bottom: -14%; background: radial-gradient(circle at 60% 40%, rgba(var(--cyan-rgb), 0.5), rgba(var(--blue-rgb), 0.2) 60%, transparent 72%); }
.abstract .a3 { width: 1px; height: 140%; left: 56%; top: -20%; border-radius: 0; background: rgba(255, 255, 255, 0.18); transform: rotate(24deg); }
.abstract .a4 { width: 11%; aspect-ratio: 1; left: 24%; top: 24%; background: #fff; border-radius: 22%; box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
.abstract .cap { position: absolute; left: 18px; bottom: 14px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.principle .tag { color: var(--cyan); }
.principle h3 { font-size: 1.05rem; margin: 8px 0 4px; } .principle p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 639px) { .principles { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.team .avatar { margin-bottom: 14px; }
.team h3 { margin-bottom: 2px; font-size: 1.1rem; }
.team .role { color: var(--cyan); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.team p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.team-quote { font-family: var(--font-display); font-weight: 600; color: var(--text) !important; font-size: 0.95rem !important; }
@media (max-width: 899px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .team-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .team { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); } .team .avatar { width: 48px; height: 48px; margin: 0; grid-row: 1 / 4; font-size: 1rem; } .team p { margin-top: 6px; } }
.stage-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 0.92rem; }
.stage-note svg { flex: none; width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }

/* ---------- CAREERS ---------- */
.role-detail h2 { margin-bottom: 6px; }
.role-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.role-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.role-cols h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
@media (max-width: 799px) { .role-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.apply-panel { padding: clamp(22px, 3vw, 40px); }
.apply-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.apply-head h2 { margin-bottom: 4px; }
.after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.after > div { padding: 20px 24px 20px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.after > div:last-child { border-right: 0; margin-right: 0; }
.after .n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--green); display: block; margin-bottom: 8px; }
.after h3 { font-size: 1rem; } .after p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 719px) { .after { grid-template-columns: minmax(0, 1fr); } .after > div { padding: 16px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); } .after > div:last-child { border-bottom: 0; } }

/* ---------- CONTACT ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-panel { padding: clamp(22px, 3vw, 36px); }
.contact-side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 24px; }
.channel { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.channel h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.channel a.mail { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1rem; word-break: break-all; }
.channel a.mail:hover { color: var(--cyan); }
.channel p { color: var(--muted); font-size: 0.86rem; }
.channel .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); }
.copy:hover { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 899px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

/* ---------- Contact channels (email + Instagram) ---------- */
.channels { display: grid; gap: 14px; }
.chan { position: relative; display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); overflow: hidden; transition: border-color var(--t-fast), transform var(--t-fast); }
.chan::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--g-energy); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--t-fast); pointer-events: none; }
.chan:hover::before, .chan:focus-within::before { opacity: 0.7; }
.chan .top { display: flex; align-items: center; gap: 10px; }
.chan .top svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.chan.ig .top svg { color: var(--magenta); }
.chan h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 500; }
.chan .value { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1.02rem; word-break: break-all; }
.chan .value:hover { color: var(--cyan); } .chan.ig .value:hover { color: var(--magenta); }
.chan p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.chan .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chan .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-left: auto; }
.chan .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: breathe 3.2s ease-in-out infinite; }
.contact-for { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.contact-for li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); font-size: 0.92rem; }
.contact-for li::before { content: "→"; color: var(--cyan); font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .chan .live i { animation: none; } }
.contact-layout.single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.channels { max-width: 440px; width: 100%; justify-self: end; }
@media (max-width: 899px) { .channels { justify-self: stretch; max-width: none; } }

/* ---------- About: founder card (the ETC mark is the founder's identity) ---------- */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); max-width: 880px; }
.founder-mark { position: relative; width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #07070b; border: 1px solid var(--line-hi); transition: transform var(--t-base), border-color var(--t-base); }
.founder-mark::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.founder-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder:hover .founder-mark { transform: scale(1.02); border-color: rgba(var(--cyan-rgb), 0.45); }
.founder-mark.broken { display: grid; place-items: center; background: var(--g-violet-magenta); }
.founder-mark.broken img { display: none; }
.founder-mark.broken::before { content: "ETC"; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #fff; }
.founder-body h3 { margin: 4px 0 2px; font-size: 1.5rem; }
.founder-body .role { color: var(--cyan); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.founder-body p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.founder-body .team-quote { color: var(--text-2); }
@media (max-width: 719px) { .founder { grid-template-columns: minmax(0, 1fr); text-align: left; } .founder-mark { width: 148px; } }
@media (prefers-reduced-motion: reduce) { .founder:hover .founder-mark { transform: none; } }

/* ---------- TOOLS (hub + Transfer · Voice · AI · Toolkit) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { position: relative; display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); color: inherit; transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast); }
.tool-card:hover, .tool-card:active { border-color: rgba(var(--cyan-rgb), 0.4); background: rgba(255, 255, 255, 0.04); }
.tool-card:active { transform: scale(0.99); }
.tool-card .badge { position: absolute; top: 18px; right: 18px; }
.tool-card .icon { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(var(--tone-rgb), 0.14); color: var(--cyan); }
.tool-card .icon svg { width: 20px; height: 20px; }
.tool-card h2 { font-size: 1.25rem; margin: 4px 0 0; }
.tool-card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 719px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

.tool-panel { padding: clamp(18px, 3vw, 28px); }
.tool-panel.wide { max-width: none; }
.tool-state { display: none; }
.tool-state.show { display: block; animation: fade-up 0.35s var(--ease-out); }
.tool-state.form-success { position: static; opacity: 1; transform: none; padding: 0; }
.tool-state.form-success:not(.show) { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.file-drop.big { min-height: 150px; flex-direction: column; text-align: center; justify-content: center; cursor: pointer; }
.file-drop.big .icon { width: 44px; height: 44px; }
.file-drop.has-file { border-color: rgba(var(--cyan-rgb), 0.5); }
.share-row { display: flex; gap: 8px; align-items: stretch; }
.share-row .input { flex: 1; min-width: 0; }
.input.mono, .mono { font-family: var(--font-mono); font-size: 0.86rem; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.btn.danger:hover { border-color: rgba(239, 68, 68, 0.7); }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.room-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.room-head h3 { font-size: 1.6rem; letter-spacing: 0.08em; margin: 2px 0 0; }
.conn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: breathe 1.6s ease-in-out infinite; }
.conn[data-state="ok"] i { background: var(--green); animation: none; box-shadow: 0 0 8px var(--green); }
.conn[data-state="alone"] i { background: var(--cyan); }
.conn[data-state="failed"] i { background: #ef4444; animation: none; }
.peers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.peer { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.peer .avatar.sm { width: 36px; height: 36px; font-size: 0.85rem; }
.peer .pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer .pstate { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.peer .level { width: 8px; height: 8px; border-radius: 50%; background: var(--line-hi); }
.peer.connected .level { background: var(--green); box-shadow: 0 0 6px var(--green); }
.peer.failed .level { background: #ef4444; }
.peer.you .level { background: var(--cyan); }
.room-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.room-controls .btn { flex: 1; min-height: 48px; }
.ai-output { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.ai-output-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-output pre { white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; max-height: 420px; overflow: auto; margin: 0; }
.toolkit-stats { display: flex; gap: 10px; align-self: end; }
.toolkit-stats > div { flex: 1; display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); text-align: center; }
.toolkit-stats b { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.toolkit-stats span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.tab { padding: 10px 14px; min-height: 40px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.tab[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line-hi); }
.tab-spacer { flex: 1; }
.tk-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-add .input { flex: 1 1 220px; min-width: 0; }
.tk-add .input.tags { flex: 0 1 200px; }
.tk-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.tk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.tk-item .check { display: inline-flex; }
.tk-item:has(.check) { grid-template-columns: 24px minmax(0, 1fr) 36px; }
.tk-item.is-done .tk-main b { text-decoration: line-through; color: var(--muted); }
.tk-main { display: grid; gap: 4px; min-width: 0; }
.tk-main b { overflow-wrap: anywhere; }
.tk-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.late { color: #fca5a5; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid transparent; background: none; color: var(--muted); font-size: 0.9rem; }
.icon-btn:hover { border-color: var(--line-hi); color: var(--text); }
.select.sm { padding: 6px 28px 6px 10px; min-height: 36px; font-size: 0.85rem; }
.tk-piece { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); margin-top: 12px; }
.tk-piece-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tk-piece-head b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tk-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 0.92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.tk-list .empty, #piece-list .empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-md); margin-top: 12px; }
