/* ---------- Design tokens & reset ---------- */
:root {
  --bg: #080d18;
  --bg-soft: #0c1322;
  --panel: rgba(18, 27, 45, 0.7);
  --panel-solid: #111a2b;
  --line: rgba(151, 170, 204, 0.16);
  --line-strong: rgba(151, 170, 204, 0.28);
  --text: #edf2fb;
  --muted: #94a3bb;
  --faint: #66738a;
  --accent: #8e91ff;
  --accent-strong: #7075f6;
  --cyan: #53d8c7;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  --font-sans: "Noto Sans TC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font-sans); line-height: 1.7; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { color: #fff; background: rgba(142, 145, 255, 0.55); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }
.section-bordered { border-block: 1px solid var(--line); }
.section-muted { background: rgba(13, 20, 35, 0.78); border-block: 1px solid var(--line); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; padding: 12px 18px; color: #fff; background: var(--accent-strong); border-radius: 6px; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 76px; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(8, 13, 24, .78); border-color: var(--line); backdrop-filter: blur(16px); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #5d63d9); border: 1px solid rgba(255,255,255,.18); border-radius: 7px; font: 500 12px var(--font-mono); letter-spacing: -.05em; box-shadow: 0 8px 30px rgba(112,117,246,.25); }
.brand-name { font-size: 15px; letter-spacing: .06em; }
.brand-role { color: var(--faint); border-left: 1px solid var(--line-strong); padding-left: 10px; font: 500 9px var(--font-mono); letter-spacing: .13em; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link { position: relative; padding: 26px 0 23px; color: var(--muted); font-size: 12px; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; inset: auto 50% -1px; height: 2px; background: var(--accent); transition: inset .25s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { inset-inline: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--text); transition: transform .25s, opacity .25s; }

/* ---------- Shared typography ---------- */
.eyebrow, .section-index, .project-number, .detail-label, .project-heading p, .visual-header, .visual-footer, .modal-header p { color: var(--accent); font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; display: inline-block; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px rgba(83,216,199,.7); }
.section-heading { margin-bottom: 54px; }
.section-heading h2 { max-width: 780px; margin: 10px 0 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.2; letter-spacing: -.035em; }
.section-heading h2 span, .contact-copy h2 span { color: var(--muted); }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading.split > p { max-width: 480px; margin: 0 0 8px; color: var(--muted); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent-strong); box-shadow: 0 12px 35px rgba(112,117,246,.22); }
.button-primary:hover { background: #7c81ff; }
.button-secondary { background: rgba(255,255,255,.025); border-color: var(--line-strong); }
.button-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(142,145,255,.5); }

/* ---------- Hero ---------- */
.hero { min-height: 820px; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black 0%, transparent 75%); pointer-events: none; }
.hero-glow { position: absolute; width: 650px; height: 650px; right: -130px; top: -180px; background: radial-gradient(circle, rgba(112,117,246,.16), transparent 68%); pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 70px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; }
.hero h1 { margin: 0; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.13; letter-spacing: -.055em; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, #f1f4ff 5%, #9ca4ff 70%, #68d1c5); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 650px; margin: 28px 0 0; font-size: 18px; font-weight: 500; line-height: 1.75; }
.hero-description { max-width: 660px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--muted); font-size: 13px; }
.text-link:hover { color: var(--text); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; color: var(--faint); font: 400 10px var(--font-mono); letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.system-visual { position: relative; min-width: 0; background: linear-gradient(145deg, rgba(20,30,50,.82), rgba(9,15,27,.68)); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px); overflow: hidden; }
.system-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(142,145,255,.06), transparent 30%); pointer-events: none; }
.visual-header, .visual-footer { position: relative; display: flex; justify-content: space-between; padding: 15px 18px; color: var(--faint); font-size: 8px; }
.visual-header { border-bottom: 1px solid var(--line); }
.visual-header div { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.visual-header .status-dot { width: 5px; height: 5px; }
.system-canvas { position: relative; min-height: 420px; background-image: radial-gradient(rgba(142,145,255,.18) 1px, transparent 1px); background-size: 20px 20px; }
.system-node { position: absolute; z-index: 2; min-width: 130px; display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--text); background: rgba(12,19,33,.94); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.25); font-size: 11px; }
.system-node small { display: block; margin-bottom: 2px; color: var(--faint); font: 400 7px var(--font-mono); letter-spacing: .12em; }
.system-node.primary { border-color: rgba(142,145,255,.58); box-shadow: 0 0 35px rgba(112,117,246,.15); }
.node-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); background: rgba(142,145,255,.09); border: 1px solid rgba(142,145,255,.2); border-radius: 6px; font: 500 14px var(--font-mono); }
.node-desktop { top: 46px; left: 20px; }.node-api { top: 175px; left: calc(50% - 70px); }.node-worker { top: 50px; right: 19px; }.node-db { bottom: 38px; left: 22px; }.node-bot { top: 285px; right: 20px; }.node-backup { bottom: 32px; left: calc(50% - 68px); }
.flow-line { position: absolute; z-index: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(142,145,255,.65), transparent); transform-origin: left; }
.line-1 { width: 185px; top: 118px; left: 116px; transform: rotate(34deg); }.line-2 { width: 175px; top: 205px; left: 255px; transform: rotate(-45deg); }.line-3 { width: 190px; top: 245px; left: 95px; transform: rotate(57deg); }.line-4 { width: 170px; top: 255px; left: 260px; transform: rotate(42deg); }
.visual-footer { gap: 12px; border-top: 1px solid var(--line); }.visual-footer .healthy { color: var(--cyan); }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }
.about-copy p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.about-copy p:first-child { color: var(--text); font-size: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-card { min-height: 280px; position: relative; padding: 26px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(142,145,255,.36); }
.feature-number { color: var(--faint); font: 400 9px var(--font-mono); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 42px 0 24px; color: var(--accent); background: rgba(142,145,255,.08); border: 1px solid var(--line); border-radius: 10px; font: 500 21px var(--font-mono); }
.feature-card h3 { margin: 0 0 12px; font-size: 16px; }.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- AI-assisted process ---------- */
.ai-process-section { overflow: hidden; }
.ai-process-section::after { content: "AI"; position: absolute; right: -20px; bottom: -170px; color: rgba(142,145,255,.025); font: 500 360px/1 var(--font-mono); pointer-events: none; }
.process-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.process-step { position: relative; min-height: 250px; padding: 26px; background: linear-gradient(145deg, rgba(18,27,45,.78), rgba(11,18,31,.64)); border: 1px solid var(--line); border-radius: 11px; transition: transform .25s, border-color .25s; }
.process-step:hover { transform: translateY(-4px); border-color: rgba(142,145,255,.38); }
.process-step > span { color: var(--faint); font: 400 9px var(--font-mono); letter-spacing: .12em; }
.process-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 34px 0 22px; color: var(--accent); background: rgba(142,145,255,.08); border: 1px solid rgba(142,145,255,.22); border-radius: 9px; font: 500 14px var(--font-mono); }
.process-step h3 { margin: 0 0 10px; font-size: 18px; }.process-step p { margin: 0; color: var(--muted); font-size: 13px; }
.process-statement { position: relative; z-index: 1; max-width: 920px; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 0; padding: 20px 24px; color: var(--text); background: rgba(142,145,255,.07); border: 1px solid rgba(142,145,255,.25); border-radius: 9px; text-align: center; font-size: 14px; }

/* ---------- Projects ---------- */
.project-list { display: grid; gap: 16px; }
.project-card { display: grid; grid-template-columns: 105px minmax(0,1fr) 280px; gap: 34px; padding: 34px; background: linear-gradient(120deg, rgba(18,27,45,.76), rgba(11,18,31,.76)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(142,145,255,.34); }
.project-number { color: var(--faint); font-size: 9px; }
.project-heading { display: flex; align-items: center; gap: 18px; }.project-heading p { margin: 0 0 3px; font-size: 8px; }.project-heading h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.project-symbol { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); background: rgba(142,145,255,.07); border: 1px solid rgba(142,145,255,.2); border-radius: 9px; font: 500 12px var(--font-mono); }
.project-description { max-width: 610px; margin: 22px 0; color: var(--muted); font-size: 14px; }
.tags, .skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }.tags span, .skill-tags span { padding: 5px 9px; color: #aeb8ca; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 5px; font: 400 9px var(--font-mono); }
.project-details { padding-left: 28px; border-left: 1px solid var(--line); }.detail-label { margin: 0 0 13px; color: var(--faint); font-size: 8px; }.project-details ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }.project-details li { margin: 7px 0; }.project-details li::before { content: "—"; margin-right: 8px; color: var(--accent); }
.architecture-button { min-height: 42px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s; }.architecture-button:hover { background: rgba(142,145,255,.08); border-color: rgba(142,145,255,.48); }

/* ---------- Real-world product ---------- */
.real-work-section { overflow: hidden; background: #090f1c; }
.real-work-section::before { content: ""; position: absolute; width: 700px; height: 700px; right: -300px; top: 80px; background: radial-gradient(circle, rgba(142,145,255,.13), transparent 66%); pointer-events: none; }
.real-work-list { position: relative; display: grid; gap: 28px; }
.windows-tools-card { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr); gap: 0; overflow: hidden; background: linear-gradient(135deg, rgba(18,27,45,.94), rgba(8,14,25,.97)); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.windows-tools-visual { min-width: 0; display: flex; flex-direction: column; padding: 28px; background: radial-gradient(circle at 50% 20%, rgba(142,145,255,.12), transparent 52%), rgba(6,11,20,.68); border-right: 1px solid var(--line); }
.product-image-frame { position: relative; min-height: 570px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 28px; background: radial-gradient(circle at 50% 42%, rgba(142,145,255,.13), transparent 60%), #070c16; border: 1px solid var(--line-strong); border-radius: 11px; }
.product-image-frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: 650px; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.pdf-parser-card .product-image-frame { min-height: 470px; padding: 20px; }.pdf-parser-card .product-image-frame img { width: 100%; max-height: none; }
.concept-label { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; color: #cbd3e2; background: rgba(4,8,15,.82); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; backdrop-filter: blur(8px); font: 500 8px var(--font-mono); letter-spacing: .1em; }
.product-visual-meta { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; color: var(--faint); font: 500 8px var(--font-mono); letter-spacing: .12em; }.product-visual-meta span { display: inline-flex; align-items: center; gap: 7px; }.product-visual-meta i { width: 5px; height: 5px; background: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); }
.windows-tools-content { min-width: 0; padding: clamp(30px, 4vw, 52px); }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }.product-kicker { margin: 0 0 5px; color: var(--accent); font: 500 9px var(--font-mono); letter-spacing: .13em; }.product-title-row h3 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.045em; }.product-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }.version-badge { flex: 0 0 auto; padding: 7px 10px; color: #fff; background: rgba(142,145,255,.12); border: 1px solid rgba(142,145,255,.34); border-radius: 6px; font: 500 10px var(--font-mono); }
.product-intro { margin: 30px 0 0; color: #d5dbe6; font-size: 14px; }.product-intro.secondary { margin-top: 12px; color: var(--muted); }
.product-summary-tags { margin-top: 24px; }
.product-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 0 15px; color: var(--muted); background: rgba(7,12,22,.46); border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease; }.product-toggle:hover { color: var(--text); background: rgba(142,145,255,.07); border-color: rgba(142,145,255,.42); }.product-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }.product-toggle[aria-expanded="true"] { color: var(--text); background: rgba(78,225,193,.055); border-color: rgba(78,225,193,.3); }.toggle-icon { flex: 0 0 auto; color: var(--accent); font: 500 15px var(--font-mono); transition: transform .32s ease-in-out, color .25s ease; }.product-toggle[aria-expanded="true"] .toggle-icon { color: var(--success); transform: rotate(180deg); }
.product-collapsible { height: 0; overflow: hidden; opacity: 0; transition: height .34s ease-in-out, opacity .25s ease; }.product-collapsible.is-open { opacity: 1; }.product-collapsible-inner { min-width: 0; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }.product-collapsible-inner > .product-intro.secondary { margin-top: 0; }
.product-capabilities { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }.product-capabilities ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }.product-capabilities li::before { content: "—"; margin-right: 7px; color: var(--accent); }
.product-tags { margin-top: 26px; }.product-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 25px 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 7px; }.product-facts div { min-width: 0; padding: 12px; background: rgba(7,12,22,.88); }.product-facts dt { color: var(--faint); font: 400 8px var(--font-mono); letter-spacing: .08em; }.product-facts dd { margin: 5px 0 0; color: var(--text); font-size: 10px; overflow-wrap: anywhere; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }.download-status { display: flex; align-items: center; gap: 8px; margin: 17px 0 0; color: var(--faint); font-size: 10px; }.download-links { margin-top: 14px; }.download-links .button { margin-right: 8px; }
.product-modal-panel { width: min(920px,100%); }.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 18px; }.product-modal-grid section, .product-notice { padding: 22px; background: rgba(7,12,22,.52); border: 1px solid var(--line); border-radius: 9px; }.modal-feature-list, .product-notice ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }.modal-feature-list li, .product-notice li { margin-top: 8px; }.modal-feature-list li::before, .product-notice li::before { content: "—"; margin-right: 8px; color: var(--accent); }.modal-requirements { margin: 0; }.modal-requirements div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }.modal-requirements div:last-child { border-bottom: 0; }.modal-requirements dt { color: var(--faint); font-size: 10px; }.modal-requirements dd { margin: 0; color: var(--muted); font-size: 11px; }.product-notice { margin-bottom: 20px; }.modal-actions { display: flex; gap: 10px; margin: 0 0 20px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-card { min-height: 300px; padding: 30px; background: rgba(17,26,43,.72); border: 1px solid var(--line); border-radius: 12px; transition: transform .25s, border-color .25s; }.skill-card:hover { transform: translateY(-4px); border-color: rgba(142,145,255,.34); }
.skill-card.ai-skill { grid-column: 1 / -1; min-height: 260px; background: linear-gradient(135deg, rgba(112,117,246,.13), rgba(17,26,43,.72) 55%); border-color: rgba(142,145,255,.28); }
.skill-card.ai-skill > p { max-width: 760px; }
.skill-top { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font: 400 10px var(--font-mono); }.skill-top i { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); background: rgba(142,145,255,.07); border: 1px solid var(--line); border-radius: 8px; font-style: normal; font-size: 18px; }
.skill-card h3 { margin: 28px 0 12px; font-size: 21px; }.skill-card > p { max-width: 500px; min-height: 54px; margin: 0 0 28px; color: var(--muted); font-size: 13px; }

/* ---------- Principles ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.principle { min-height: 320px; padding: 24px; background: rgba(15,23,39,.46); border: 1px solid var(--line); border-radius: 11px; transition: background .25s, transform .25s, border-color .25s; }.principle:hover { background: rgba(23,33,55,.72); border-color: rgba(142,145,255,.32); transform: translateY(-4px); }
.principle > span { color: var(--faint); font: 400 9px var(--font-mono); }.principle-mark { width: 44px; height: 44px; display: grid; place-items: center; margin: 62px 0 26px; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 50%; }.principle h3 { margin: 0 0 12px; font-size: 19px; }.principle p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Contact & footer ---------- */
.contact-section { overflow: hidden; border-top: 1px solid var(--line); background: #090f1c; }.contact-glow { position: absolute; width: 700px; height: 700px; left: -250px; bottom: -400px; background: radial-gradient(circle, rgba(112,117,246,.14), transparent 65%); }
.contact-layout { position: relative; max-width: 920px; }.contact-copy { padding: clamp(30px, 6vw, 64px); text-align: center; background: linear-gradient(135deg, rgba(18,27,45,.72), rgba(10,17,30,.62)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.contact-copy h2 { margin: 12px auto 22px; font-size: clamp(36px, 5vw, 56px); line-height: 1.25; letter-spacing: -.04em; }.contact-copy > p:not(.section-index) { max-width: 640px; margin-inline: auto; color: var(--muted); }
.contact-links { max-width: 720px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 38px auto 0; text-align: left; }.contact-links a { min-width: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px 18px; color: var(--muted); background: rgba(7,12,22,.36); border: 1px solid var(--line); border-radius: 8px; transition: color .2s, background .2s, border-color .2s, transform .2s; }.contact-links a:hover { color: var(--text); background: rgba(142,145,255,.07); border-color: rgba(142,145,255,.4); transform: translateY(-2px); }.contact-links span { min-width: 0; overflow-wrap: anywhere; }.contact-links small { display: block; color: var(--faint); font: 400 8px var(--font-mono); letter-spacing: .12em; }
.site-footer { padding: 35px 0; border-top: 1px solid var(--line); }.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 28px; }.site-footer .brand-mark { width: 30px; height: 30px; }.site-footer p { margin: 8px 0 0; color: var(--faint); font: 400 9px var(--font-mono); letter-spacing: .05em; }
.back-to-top { position: fixed; z-index: 80; right: 24px; bottom: 24px; width: 44px; height: 44px; color: var(--text); background: rgba(17,26,43,.9); border: 1px solid var(--line-strong); border-radius: 8px; backdrop-filter: blur(12px); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }.modal.open { opacity: 1; visibility: visible; }.modal-backdrop { position: absolute; inset: 0; background: rgba(3,7,14,.82); backdrop-filter: blur(8px); }.modal-panel { position: relative; width: min(720px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow-y: auto; padding: 30px; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(14px) scale(.99); transition: transform .25s; }.modal.open .modal-panel { transform: none; }.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }.modal-header p { margin: 0 0 7px; }.modal-header h2 { margin: 0; font-size: 28px; }.modal-close { width: 44px; height: 44px; flex: 0 0 auto; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 28px; line-height: 1; cursor: pointer; }.modal-close:hover { color: var(--text); border-color: var(--accent); }.modal-description { color: var(--muted); font-size: 14px; }.architecture-flow { display: flex; align-items: stretch; gap: 18px; margin: 28px 0; overflow-x: auto; padding: 4px 2px 16px; }.flow-step { position: relative; min-width: 132px; flex: 1; padding: 16px 14px; background: rgba(7,12,22,.55); border: 1px solid var(--line-strong); border-radius: 8px; }.flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -15px; color: var(--accent); transform: translateY(-50%); }.flow-step small { display: block; margin-bottom: 7px; color: var(--faint); font: 400 8px var(--font-mono); letter-spacing: .1em; }.flow-step strong { display: block; font-size: 12px; }.modal-note { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 18px; color: var(--faint); border-top: 1px solid var(--line); font-size: 10px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { padding-top: 130px; }.hero-layout { grid-template-columns: 1fr; gap: 55px; }.hero-copy { max-width: 800px; }.system-visual { width: min(620px, 100%); margin-inline: auto; }
  .about-layout { grid-template-columns: 1fr; gap: 35px; }.feature-grid { grid-template-columns: repeat(2, 1fr); }.process-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 80px minmax(0,1fr); }.project-details { grid-column: 2; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }.project-details ul { columns: 2; }.architecture-button { max-width: 220px; }
  .windows-tools-card { grid-template-columns: 1fr; }.windows-tools-visual { border-right: 0; border-bottom: 1px solid var(--line); }.product-image-frame { min-height: 0; aspect-ratio: 4 / 5; }
  .pdf-parser-card .product-image-frame { min-height: 0; aspect-ratio: 16 / 10; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }.principle:last-child { grid-column: 1 / -1; min-height: 240px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 32px, 680px); }.section { padding: 86px 0; }
  .brand-role { display: none; }.nav-toggle { display: block; }.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu { position: absolute; top: 76px; left: 16px; right: 16px; display: grid; gap: 0; padding: 8px; background: rgba(12,19,34,.97); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, visibility .2s, transform .2s; }.nav-menu.open { opacity: 1; visibility: visible; transform: none; }.nav-link { min-height: 48px; padding: 13px 14px; border-radius: 6px; }.nav-link::after { display: none; }.nav-link.active { background: rgba(142,145,255,.09); }
  .hero { min-height: auto; padding: 125px 0 76px; }.hero h1 { font-size: clamp(40px, 11vw, 58px); }.hero-lead { font-size: 16px; }.system-canvas { min-height: 390px; }.system-node { min-width: 120px; }.visual-footer span:nth-child(2) { display: none; }
  .section-heading.split { display: block; }.section-heading.split > p { margin-top: 20px; }.feature-grid, .process-grid { grid-template-columns: 1fr; }.feature-card, .process-step { min-height: auto; }.feature-icon, .process-icon { margin: 25px 0 18px; }.process-statement { align-items: flex-start; text-align: left; }
  .project-card { grid-template-columns: 1fr; gap: 20px; padding: 25px; }.project-details { grid-column: auto; }.project-details ul { columns: 1; }.architecture-button { max-width: none; }
  .windows-tools-visual { padding: 16px; }.product-image-frame { padding: 16px; }.windows-tools-content { padding: 28px 22px; }.product-capabilities ul, .product-modal-grid { grid-template-columns: 1fr; }.product-facts { grid-template-columns: 1fr; }.product-visual-meta { flex-direction: column; gap: 7px; }.product-actions .button { flex: 1 1 180px; }.product-toggle { min-height: 48px; }
  .skills-grid { grid-template-columns: 1fr; }.skill-card.ai-skill { grid-column: auto; }.principles-grid { grid-template-columns: 1fr; }.principle, .principle:last-child { grid-column: auto; min-height: 235px; }.principle-mark { margin: 36px 0 20px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }.section { padding: 72px 0; }.section-heading { margin-bottom: 38px; }.section-heading h2 { font-size: 34px; }
  .hero h1 br { display: none; }.hero-actions { align-items: stretch; }.hero-actions .button { width: 100%; }.hero-actions .text-link { justify-content: center; }.hero-meta { gap: 12px 18px; }
  .system-canvas { min-height: 480px; }.system-node { min-width: 132px; }.node-desktop { top: 28px; left: 16px; }.node-worker { top: 28px; right: 16px; }.node-api { top: 156px; left: calc(50% - 66px); }.node-db { bottom: 109px; left: 16px; }.node-bot { top: auto; bottom: 109px; right: 16px; }.node-backup { bottom: 18px; left: calc(50% - 66px); }.flow-line { opacity: .55; }.line-1 { top: 110px; left: 90px; }.line-2 { top: 115px; left: 205px; }.line-3 { top: 250px; left: 85px; }.line-4 { top: 250px; left: 210px; }
  .project-heading { align-items: start; }.project-heading h3 { font-size: 20px; }.project-symbol { width: 48px; height: 48px; }.skill-card { padding: 22px; }
  .product-title-row { display: block; }.version-badge { display: inline-block; margin-top: 14px; }.concept-label { left: 8px; bottom: 8px; font-size: 7px; }.modal-actions { flex-direction: column; }.modal-requirements div { grid-template-columns: 1fr; gap: 3px; }
  .contact-copy { padding: 30px 18px; }.contact-copy h2 { font-size: 36px; }.contact-links { grid-template-columns: 1fr; }.contact-links a { min-height: 70px; font-size: 12px; }.modal { padding: 12px; }.modal-panel { max-height: calc(100vh - 24px); padding: 22px; }.architecture-flow { flex-direction: column; overflow-x: visible; }.flow-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -20px; transform: translateX(50%); }.back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .product-collapsible, .toggle-icon { transition: none !important; }
}

/* =========================
   Hidden system access
========================= */
#system-access-trigger { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
#system-access-trigger .brand-mark { transition: box-shadow .2s, border-color .2s; }
#system-access-trigger.is-access-pressing .brand-mark { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(83,216,199,.1), 0 0 24px rgba(83,216,199,.35); }
.system-access-modal { --access-cyan: #53d8c7; --access-violet: #8e91ff; }
.system-access-backdrop { background: rgba(2,6,13,.9); }
.system-access-panel { width: min(680px, 100%); padding: clamp(24px, 5vw, 38px); overflow: hidden auto; border: 1px solid rgba(142,145,255,.44); border-radius: 4px; background: linear-gradient(145deg, rgba(20,30,50,.98), rgba(7,12,22,.98)); box-shadow: 0 0 0 1px rgba(83,216,199,.07), 0 30px 90px rgba(0,0,0,.55), inset 0 0 45px rgba(83,216,199,.025); clip-path: polygon(0 18px, 18px 0, calc(100% - 54px) 0, calc(100% - 42px) 12px, 100% 12px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 42px 100%, 30px calc(100% - 12px), 0 calc(100% - 12px)); transform: translateY(18px) scale(.96); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.system-access-modal.open .system-access-panel { transform: none; }
.system-access-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .22; background-image: linear-gradient(rgba(83,216,199,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(83,216,199,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 82%); pointer-events: none; }
.system-access-panel::after { content: "ACCESS / PY-01"; position: absolute; top: 8px; right: 72px; color: rgba(148,163,187,.55); font: 400 7px var(--font-mono); letter-spacing: .18em; }
.access-corner { position: absolute; width: 22px; height: 22px; border-color: var(--access-cyan); opacity: .72; pointer-events: none; }
.access-corner-tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.access-corner-tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.access-corner-bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.access-corner-br { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.access-scanline { position: absolute; z-index: 0; inset: -20% 0 auto; height: 30%; opacity: 0; background: linear-gradient(to bottom, transparent, rgba(83,216,199,.07), transparent); pointer-events: none; }
.system-access-modal.open .access-scanline { animation: access-scan 1.25s ease-out .12s 1; }
.system-access-header { position: relative; z-index: 1; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.system-access-header h2 { font: 500 clamp(27px, 6vw, 38px)/1.1 var(--font-mono); letter-spacing: .04em; }
.system-access-close { border-radius: 3px; background: rgba(7,12,22,.55); }
.access-status { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 13px 0 20px; color: var(--faint); font: 400 8px var(--font-mono); letter-spacing: .14em; }
.access-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.access-card { position: relative; min-width: 0; min-height: 190px; display: flex; flex-direction: column; padding: 22px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 4px; background: linear-gradient(135deg, rgba(17,26,43,.86), rgba(7,12,22,.78)); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.access-card::before { content: ""; position: absolute; top: 0; right: 0; width: 38px; height: 1px; background: var(--access-violet); box-shadow: 0 0 12px rgba(142,145,255,.7); }
.access-card:hover, .access-card:focus-visible, .access-card:active { transform: translateY(-3px); border-color: rgba(83,216,199,.55); background: linear-gradient(135deg, rgba(25,37,60,.95), rgba(9,17,29,.9)); box-shadow: 0 14px 35px rgba(0,0,0,.24), inset 3px 0 0 rgba(83,216,199,.45); }
.access-card-index { color: var(--faint); font: 400 8px var(--font-mono); letter-spacing: .14em; }
.access-card-light { position: absolute; top: 23px; right: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--access-cyan); box-shadow: 0 0 11px rgba(83,216,199,.8); }
.access-card strong { margin-top: 28px; font: 500 18px var(--font-mono); letter-spacing: .03em; }
.access-card-description { margin-top: 5px; color: var(--muted); font-size: 12px; }
.access-card-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; color: var(--accent); font: 500 8px var(--font-mono); letter-spacing: .1em; }
.access-card-action b { font-size: 14px; font-weight: 400; }
.access-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font: 400 9px var(--font-mono); letter-spacing: .14em; }
@keyframes access-scan { 0% { opacity: 0; transform: translateY(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(430px); } }

@media (max-width: 520px) {
  .system-access-panel { max-height: calc(100dvh - 24px); padding: 26px 20px 24px; }
  .system-access-panel::after { display: none; }
  .system-access-header { gap: 12px; }
  .system-access-header h2 { font-size: clamp(24px, 8vw, 32px); }
  .access-grid { grid-template-columns: 1fr; }
  .access-card { min-height: 145px; padding: 18px; }
  .access-card strong { margin-top: 18px; }
  .access-card-action { padding-top: 16px; }
}

/* Sequenced hidden-node deployment. The modal remains mounted through closing. */
#system-access-trigger { position: relative; touch-action: pan-y; }
@property --access-hold {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
#system-access-trigger .brand-mark { position: relative; isolation: isolate; }
#system-access-trigger .brand-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border-radius: 11px;
  opacity: 0;
  --access-hold: 0deg;
  background: conic-gradient(from -90deg, var(--cyan) var(--access-hold), rgba(83,216,199,.08) 0deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  pointer-events: none;
}
#system-access-trigger.is-access-pressing .brand-mark::before {
  opacity: 1;
  animation: access-hold-ring 1.5s linear forwards;
}
#system-access-trigger.is-access-cancelling .brand-mark::before { opacity: 0; transform: scale(.82); transition: opacity .16s, transform .16s; }
#system-access-trigger::after {
  content: "ACCESS SIGNAL DETECTED";
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  width: max-content;
  padding: 4px 8px;
  color: var(--cyan);
  background: rgba(5,11,20,.92);
  border-left: 1px solid var(--cyan);
  font: 500 8px var(--font-mono);
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
}
#system-access-trigger.is-access-unlocking .brand-mark { animation: access-logo-unlock .28s ease-out both; }
#system-access-trigger.is-access-unlocking .brand-mark::before { animation: access-logo-sweep .28s ease-out both; }
#system-access-trigger.is-access-unlocking::after { animation: access-signal-label .3s ease-out both; }
#system-access-trigger.is-access-closing .brand-mark { animation: access-logo-close .42s ease-out both; }

.system-access-modal { transition: none; }
.system-access-modal .system-access-backdrop { opacity: 0; backdrop-filter: blur(0); }
.system-access-modal.open { opacity: 1; }
.system-access-modal.opening .system-access-backdrop { animation: access-backdrop-in .38s ease-out forwards; }
.system-access-modal.is-ready .system-access-backdrop { opacity: 1; backdrop-filter: blur(8px); }
.system-access-modal.closing .system-access-backdrop { animation: access-backdrop-out .46s ease-in forwards; }

.access-diagnostic {
  position: absolute;
  z-index: 1;
  top: calc(50% + 78px);
  left: 50%;
  display: grid;
  gap: 3px;
  width: max-content;
  color: rgba(83,216,199,.92);
  font: 500 8px var(--font-mono);
  letter-spacing: .15em;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.access-reticle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 86px;
  opacity: 0;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.access-reticle i { position: absolute; width: 22px; height: 22px; border-color: rgba(83,216,199,.8); }
.access-reticle i:nth-child(1) { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.access-reticle i:nth-child(2) { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.access-reticle i:nth-child(3) { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.access-reticle i:nth-child(4) { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.access-viewport-scan {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 4%;
  right: 4%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(83,216,199,.9), transparent);
  box-shadow: 0 0 18px rgba(83,216,199,.55);
  pointer-events: none;
}
.system-access-modal.opening .access-diagnostic { animation: access-diagnostic-in .42s ease-out .22s both; }
.system-access-modal.opening .access-reticle { animation: access-reticle-in .4s ease-out .24s both; }
.system-access-modal.opening .access-viewport-scan { animation: access-viewport-down .42s ease-in-out .22s both; }
.system-access-modal.closing .access-viewport-scan { animation: access-viewport-up .36s ease-in .06s both; }

.system-access-panel {
  opacity: 0;
  transform: none;
  transition: none;
  -webkit-clip-path: polygon(0 18px, 18px 0, calc(100% - 54px) 0, calc(100% - 42px) 12px, 100% 12px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 42px 100%, 30px calc(100% - 12px), 0 calc(100% - 12px));
  clip-path: polygon(0 18px, 18px 0, calc(100% - 54px) 0, calc(100% - 42px) 12px, 100% 12px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 42px 100%, 30px calc(100% - 12px), 0 calc(100% - 12px));
}
.system-access-modal.opening .system-access-panel { animation: access-shell-open .58s cubic-bezier(.2,.75,.18,1) .5s both; }
.system-access-modal.is-ready .system-access-panel { opacity: 1; transform: none; }
.system-access-modal.closing .system-access-panel { animation: access-shell-close .3s cubic-bezier(.65,0,.8,.3) .08s both; }
.access-door {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 51%;
  opacity: 0;
  background: linear-gradient(135deg, rgba(28,42,65,.99), rgba(7,12,22,.99));
  border-color: rgba(83,216,199,.55);
  pointer-events: none;
}
.access-door-left { left: 0; border-right: 1px solid; transform: translateX(0); }
.access-door-right { right: 0; border-left: 1px solid; transform: translateX(0); }
.system-access-modal.opening .access-door { opacity: 1; }
.system-access-modal.opening .access-door-left { animation: access-door-left .48s cubic-bezier(.3,.75,.2,1) .63s both; }
.system-access-modal.opening .access-door-right { animation: access-door-right .48s cubic-bezier(.3,.75,.2,1) .63s both; }
.system-access-modal.is-ready .access-door { display: none; }
.system-access-modal.closing .access-door { display: block; opacity: 1; }
.system-access-modal.closing .access-door-left { animation: access-door-left-close .28s ease-in .08s both; }
.system-access-modal.closing .access-door-right { animation: access-door-right-close .28s ease-in .08s both; }

.system-access-modal .access-corner { opacity: 0; }
.system-access-modal.opening .access-corner { animation: access-corner-light .45s steps(3,end) .5s both; }
.system-access-modal.is-ready .access-corner { opacity: .72; }
.system-access-modal .system-access-header,
.system-access-modal .access-status,
.system-access-modal .access-footer { opacity: 0; transform: translateY(8px); }
.system-access-modal.opening .system-access-header { animation: access-content-in .28s ease-out 1s both; }
.system-access-modal.opening .access-status { animation: access-content-in .25s ease-out 1.08s both; }
.system-access-modal.opening .access-footer { animation: access-content-in .22s ease-out 1.33s both; }
.system-access-modal.is-ready .system-access-header,
.system-access-modal.is-ready .access-status,
.system-access-modal.is-ready .access-footer { opacity: 1; transform: none; }
.system-access-modal .access-card { opacity: 0; transform: translateX(-28px); pointer-events: none; }
.system-access-modal.opening .access-card:nth-child(1) { animation: access-card-in .3s ease-out 1.1s both; }
.system-access-modal.opening .access-card:nth-child(2) { animation: access-card-in .3s ease-out 1.23s both; }
.system-access-modal.is-ready .access-card { opacity: 1; transform: none; pointer-events: auto; }
.system-access-modal.closing .system-access-header,
.system-access-modal.closing .access-status,
.system-access-modal.closing .access-footer,
.system-access-modal.closing .access-card { animation: access-content-out .09s ease-in both; pointer-events: none; }
.system-access-modal .access-scanline { display: none; }

.access-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 32%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(83,216,199,.12), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}
.access-card:hover::after, .access-card:focus-visible::after { animation: access-card-sweep .55s ease-out; }
.access-card:hover .access-card-action b, .access-card:focus-visible .access-card-action b { transform: translateX(4px); }
.access-card-action b { transition: transform .2s ease; }

@keyframes access-hold-ring { from { --access-hold: 0deg; } to { --access-hold: 360deg; } }
@keyframes access-logo-unlock { 0% { transform: translateX(0); } 25% { border-color: #d9fffa; box-shadow: 0 0 28px rgba(83,216,199,.8); transform: translateX(-1px); } 50% { transform: translateX(2px); } 75% { transform: translateX(-1px); } 100% { border-color: var(--cyan); transform: translateX(0); } }
@keyframes access-logo-sweep { 0% { opacity: 0; transform: scale(.75) rotate(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.55) rotate(180deg); } }
@keyframes access-signal-label { 0%,100% { opacity: 0; transform: translateY(-4px); } 24%,75% { opacity: 1; transform: none; } }
@keyframes access-logo-close { 0%,55% { border-color: #d9fffa; box-shadow: 0 0 24px rgba(83,216,199,.7); } 30%,80% { opacity: .55; } 100% { opacity: 1; } }
@keyframes access-backdrop-in { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; backdrop-filter: blur(8px); } }
@keyframes access-backdrop-out { from { opacity: 1; backdrop-filter: blur(8px); } to { opacity: 0; backdrop-filter: blur(0); } }
@keyframes access-diagnostic-in { 0%,100% { opacity: 0; } 18%,78% { opacity: 1; } }
@keyframes access-reticle-in { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.3); } 25%,80% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.82); } }
@keyframes access-viewport-down { 0% { top: 4%; opacity: 0; } 15%,82% { opacity: .85; } 100% { top: 96%; opacity: 0; } }
@keyframes access-viewport-up { 0% { top: 96%; opacity: 0; } 18%,78% { opacity: .8; } 100% { top: 4%; opacity: 0; } }
@keyframes access-shell-open { 0% { opacity: 0; -webkit-clip-path: inset(48% 49%); clip-path: inset(48% 49%); } 18% { opacity: 1; -webkit-clip-path: inset(47% 26%); clip-path: inset(47% 26%); } 55% { opacity: 1; -webkit-clip-path: inset(8% 0); clip-path: inset(8% 0); } 100% { opacity: 1; -webkit-clip-path: polygon(0 18px,18px 0,calc(100% - 54px) 0,calc(100% - 42px) 12px,100% 12px,100% calc(100% - 18px),calc(100% - 18px) 100%,42px 100%,30px calc(100% - 12px),0 calc(100% - 12px)); clip-path: polygon(0 18px,18px 0,calc(100% - 54px) 0,calc(100% - 42px) 12px,100% 12px,100% calc(100% - 18px),calc(100% - 18px) 100%,42px 100%,30px calc(100% - 12px),0 calc(100% - 12px)); } }
@keyframes access-shell-close { 0% { opacity: 1; } 72% { opacity: 1; -webkit-clip-path: inset(8% 35%); clip-path: inset(8% 35%); } 100% { opacity: 0; -webkit-clip-path: inset(49% 49%); clip-path: inset(49% 49%); } }
@keyframes access-door-left { from { transform: translateX(0); } to { transform: translateX(-103%); } }
@keyframes access-door-right { from { transform: translateX(0); } to { transform: translateX(103%); } }
@keyframes access-door-left-close { from { transform: translateX(-103%); } to { transform: translateX(0); } }
@keyframes access-door-right-close { from { transform: translateX(103%); } to { transform: translateX(0); } }
@keyframes access-corner-light { 0% { opacity: 0; filter: brightness(1); } 45% { opacity: 1; filter: brightness(2); } 100% { opacity: .72; filter: brightness(1); } }
@keyframes access-content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes access-card-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes access-content-out { to { opacity: 0; transform: translateY(-5px); } }
@keyframes access-card-sweep { 0% { left: -45%; opacity: 0; } 18% { opacity: 1; } 100% { left: 118%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  #system-access-trigger.is-access-unlocking .brand-mark,
  #system-access-trigger.is-access-unlocking .brand-mark::before,
  #system-access-trigger.is-access-unlocking::after,
  #system-access-trigger.is-access-closing .brand-mark { animation: none !important; }
  .system-access-modal.opening .system-access-backdrop,
  .system-access-modal.closing .system-access-backdrop,
  .system-access-modal.opening .system-access-panel,
  .system-access-modal.closing .system-access-panel { animation: none !important; transition: opacity .2s ease !important; }
  .system-access-modal.opening .system-access-backdrop,
  .system-access-modal.opening .system-access-panel,
  .system-access-modal.opening .system-access-header,
  .system-access-modal.opening .access-status,
  .system-access-modal.opening .access-footer,
  .system-access-modal.opening .access-card { opacity: 1; transform: none; pointer-events: auto; animation: none !important; }
  .system-access-modal.closing .system-access-backdrop,
  .system-access-modal.closing .system-access-panel { opacity: 0; }
  .system-access-modal .access-door,
  .system-access-modal .access-diagnostic,
  .system-access-modal .access-reticle,
  .system-access-modal .access-viewport-scan { display: none; }
}

/* =========================
   Mecha Intro
========================= */
body.mecha-intro-active { overflow: hidden; }
body.mecha-intro-active > :not(.mecha-intro):not(.modal),
body.mecha-intro-revealing > :not(.mecha-intro):not(.modal) {
  transition: filter .85s ease, transform .85s cubic-bezier(.2,.75,.25,1);
}
body.mecha-intro-active > :not(.mecha-intro):not(.modal) {
  filter: blur(5px) brightness(.48);
  transform: scale(.988);
}

.mecha-intro {
  --mecha-cyan: #53d8c7;
  --mecha-violet: #8e91ff;
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: hidden;
  color: #edf7ff;
  background: #050911;
  font-family: var(--font-mono);
  isolation: isolate;
  animation: mecha-failsafe .01s linear 5s forwards;
}
.mecha-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .24;
  background-image: linear-gradient(rgba(83,216,199,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(83,216,199,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
  pointer-events: none;
}
.mecha-intro.is-complete { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s; }
.mecha-intro.is-skipped { transition-duration: .06s; }

.mecha-hud-frame { position: absolute; z-index: 8; inset: clamp(14px, 2.7vw, 38px); pointer-events: none; }
.hud-corner { position: absolute; width: clamp(32px, 5vw, 74px); height: clamp(32px, 5vw, 74px); border-color: rgba(83,216,199,.54); }
.hud-corner::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--mecha-cyan); box-shadow: 0 0 10px rgba(83,216,199,.7); }
.hud-corner-tl { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }.hud-corner-tl::after { top: -3px; left: -3px; }
.hud-corner-tr { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }.hud-corner-tr::after { top: -3px; right: -3px; }
.hud-corner-bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }.hud-corner-bl::after { bottom: -3px; left: -3px; }
.hud-corner-br { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }.hud-corner-br::after { right: -3px; bottom: -3px; }
.hud-coordinate { position: absolute; color: rgba(188,218,224,.5); font-size: 8px; letter-spacing: .16em; }
.hud-coordinate-tl { top: 11px; left: 14px; }.hud-coordinate-br { right: 14px; bottom: 11px; }

.mecha-door { position: absolute; z-index: 3; top: 0; bottom: 0; width: calc(50% + 2px); overflow: hidden; background: linear-gradient(110deg, #0a111c 0%, #111c2a 46%, #080d16 100%); transition: transform .88s cubic-bezier(.7,0,.18,1); will-change: transform; }
.mecha-door::before { content: ""; position: absolute; inset: 0; opacity: .82; background: repeating-linear-gradient(0deg, transparent 0 78px, rgba(151,170,204,.10) 79px 80px), linear-gradient(90deg, transparent 0 18%, rgba(142,145,255,.04) 18% 19%, transparent 19% 73%, rgba(83,216,199,.035) 73% 74%, transparent 74%); }
.mecha-door::after { content: ""; position: absolute; inset: 13% 12%; border: 1px solid rgba(151,170,204,.12); clip-path: polygon(8% 0,100% 0,100% 90%,92% 100%,0 100%,0 10%); }
.mecha-door-left { left: 0; border-right: 1px solid rgba(83,216,199,.52); box-shadow: 14px 0 28px rgba(0,0,0,.42); }
.mecha-door-right { right: 0; border-left: 1px solid rgba(142,145,255,.52); box-shadow: -14px 0 28px rgba(0,0,0,.42); transform: scaleX(-1); }
.mecha-intro.is-opening .mecha-door-left { transform: translate3d(-104%,0,0); }
.mecha-intro.is-opening .mecha-door-right { transform: translate3d(104%,0,0) scaleX(-1); }
.door-panel { position: absolute; left: 8%; right: 7%; height: 36%; background: linear-gradient(145deg, rgba(30,44,61,.88), rgba(10,17,28,.82)); border: 1px solid rgba(151,170,204,.15); clip-path: polygon(9% 0,100% 0,100% 88%,89% 100%,0 100%,0 12%); }
.door-panel-upper { top: 9%; }.door-panel-lower { bottom: 9%; transform: scaleY(-1); }
.door-panel i { position: absolute; left: 12%; right: 9%; height: 1px; background: linear-gradient(90deg, transparent, rgba(151,170,204,.28), transparent); }
.door-panel i:nth-child(1) { top: 28%; }.door-panel i:nth-child(2) { top: 51%; }.door-panel i:nth-child(3) { top: 74%; }
.door-node { position: absolute; left: 18%; width: 10px; height: 10px; border: 1px solid rgba(151,170,204,.42); border-radius: 50%; box-shadow: inset 0 0 0 2px #0a111c; }
.door-node-a { top: 19%; }.door-node-b { bottom: 19%; }
.door-warning { position: absolute; left: 18%; top: 50%; color: rgba(179,197,211,.35); font-size: 7px; letter-spacing: .22em; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.door-edge { position: absolute; z-index: 2; top: 0; right: 0; width: 4px; height: 100%; background: linear-gradient(180deg, transparent 5%, var(--mecha-cyan) 35%, var(--mecha-violet) 65%, transparent 95%); opacity: .65; box-shadow: 0 0 14px rgba(83,216,199,.42); }

.mecha-scanline { position: absolute; z-index: 7; left: 0; right: 0; top: -4px; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent 8%, rgba(83,216,199,.75), rgba(142,145,255,.7), transparent 92%); box-shadow: 0 0 12px rgba(83,216,199,.4); pointer-events: none; }
.is-running .mecha-scanline { animation: mecha-scan 1.65s ease-in-out .12s 1; }

.mecha-core { position: absolute; z-index: 6; top: 47%; left: 50%; width: clamp(190px, 25vw, 300px); aspect-ratio: 1; transform: translate(-50%,-50%); transition: opacity .28s ease, transform .45s ease; }
.is-opening .mecha-core { opacity: 0; transform: translate(-50%,-50%) scale(1.12); }
.core-hex { position: absolute; inset: 25%; display: grid; place-items: center; background: radial-gradient(circle, rgba(83,216,199,.18), rgba(8,14,24,.96) 65%); border: 1px solid rgba(83,216,199,.7); clip-path: polygon(25% 4%,75% 4%,98% 50%,75% 96%,25% 96%,2% 50%); box-shadow: inset 0 0 22px rgba(83,216,199,.08); }
.core-hex::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(142,145,255,.4); clip-path: inherit; }
.core-hex span { position: relative; color: #f4fbff; font-size: clamp(22px, 4vw, 38px); font-weight: 500; letter-spacing: -.08em; text-shadow: 0 0 16px rgba(83,216,199,.75); }
.core-ring { position: absolute; border: 1px solid rgba(83,216,199,.42); border-radius: 50%; }
.core-ring::before, .core-ring::after { content: ""; position: absolute; inset: -3px 46%; background: var(--mecha-cyan); box-shadow: 0 0 9px rgba(83,216,199,.72); }
.core-ring-outer { inset: 4%; border-style: dashed; border-color: rgba(142,145,255,.42); }
.core-ring-inner { inset: 16%; }
.is-running .core-ring-outer { animation: mecha-rotate 2.8s linear infinite; }.is-running .core-ring-inner { animation: mecha-rotate 1.7s linear infinite reverse; }
.core-reticle { position: absolute; inset: 0; border: 1px solid rgba(151,170,204,.16); border-radius: 50%; }
.core-reticle span { position: absolute; background: rgba(83,216,199,.54); }
.core-reticle span:nth-child(1), .core-reticle span:nth-child(2) { top: 50%; width: 13%; height: 1px; }.core-reticle span:nth-child(1) { left: -3%; }.core-reticle span:nth-child(2) { right: -3%; }
.core-reticle span:nth-child(3), .core-reticle span:nth-child(4) { left: 50%; width: 1px; height: 13%; }.core-reticle span:nth-child(3) { top: -3%; }.core-reticle span:nth-child(4) { bottom: -3%; }

.mecha-boot-copy { position: absolute; z-index: 8; top: calc(47% + clamp(112px, 15vw, 172px)); left: 50%; width: min(340px, calc(100% - 48px)); text-align: center; transform: translateX(-50%); transition: opacity .25s ease; }
.is-opening .mecha-boot-copy { opacity: 0; }
.boot-label { margin: 0 0 9px; color: rgba(174,203,211,.52); font-size: 7px; letter-spacing: .2em; }
.boot-progress { height: 2px; overflow: hidden; background: rgba(151,170,204,.13); }
.boot-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--mecha-cyan), var(--mecha-violet)); transform: scaleX(0); transform-origin: left; }
.is-running .boot-progress span { animation: mecha-progress 1.72s cubic-bezier(.22,.75,.2,1) .08s forwards; }
.boot-status { position: relative; height: 24px; margin-top: 10px; color: var(--mecha-cyan); font-size: 8px; letter-spacing: .15em; }
.boot-status span { position: absolute; inset: 0; opacity: 0; }
.is-running .boot-status span:nth-child(1) { animation: boot-status-1 .62s ease .05s both; }
.is-running .boot-status span:nth-child(2) { animation: boot-status-2 .7s ease .64s both; }
.is-running .boot-status span:nth-child(3) { animation: boot-status-3 .58s ease 1.35s both; }
.mecha-skip { position: absolute; z-index: 10; right: clamp(22px, 4vw, 56px); bottom: clamp(22px, 4vw, 42px); padding: 9px 12px; color: rgba(211,228,234,.64); background: rgba(5,9,17,.32); border: 1px solid rgba(151,170,204,.23); border-radius: 3px; font: 500 9px var(--font-mono); letter-spacing: .14em; cursor: pointer; }
.mecha-skip span { margin-left: 5px; color: rgba(151,170,204,.38); }.mecha-skip:hover { color: #fff; border-color: rgba(83,216,199,.65); background: rgba(83,216,199,.06); }

@keyframes mecha-rotate { to { transform: rotate(360deg); } }
@keyframes mecha-scan { 0% { top: 4%; opacity: 0; } 12%,82% { opacity: .7; } 100% { top: 96%; opacity: 0; } }
@keyframes mecha-progress { to { transform: scaleX(1); } }
@keyframes boot-status-1 { 0%,12% { opacity: 0; } 20%,72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes boot-status-2 { 0%,12% { opacity: 0; } 20%,72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes boot-status-3 { 0%,15% { opacity: 0; } 28%,100% { opacity: 1; } }
@keyframes mecha-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 780px) {
  .mecha-door { width: calc(50% + 1px); }
  .mecha-door::after { inset: 12% 7%; }
  .door-panel { left: 5%; right: 4%; }
  .door-warning { display: none; }
  .mecha-core { top: 45%; width: clamp(180px, 58vw, 250px); }
  .mecha-boot-copy { top: calc(45% + clamp(106px, 33vw, 145px)); }
}

@media (max-height: 520px) and (orientation: landscape) {
  .mecha-core { top: 43%; width: min(42vh, 210px); }
  .mecha-boot-copy { top: auto; bottom: 24px; width: 300px; }
  .mecha-skip { right: 18px; bottom: 16px; }
  .boot-status { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .mecha-intro { animation-delay: .12s !important; }
  .mecha-door, .mecha-core, .mecha-boot-copy { transition: none !important; }
  .mecha-intro.is-reduced-motion { opacity: 1; }
  .mecha-intro.is-reduced-motion .mecha-core,
  .mecha-intro.is-reduced-motion .mecha-boot-copy,
  .mecha-intro.is-reduced-motion .mecha-scanline { display: none; }
  body.mecha-intro-active > :not(.mecha-intro):not(.modal),
  body.mecha-intro-revealing > :not(.mecha-intro):not(.modal) { filter: none; transform: none; }
}
