:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-raised: #0e1928;
  --panel: #111e2d;
  --panel-raised: #162538;
  --line: #26374a;
  --text: #eef4fb;
  --muted: #91a2b5;
  --accent: #62a8ff;
  --accent-bright: #83c0ff;
  --accent-soft: rgba(98, 168, 255, .12);
  --cyan: #86dcf4;
  --violet: #baa0ff;
  --mono: "DM Mono", "Consolas", monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: #07111f; background: var(--accent); }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #07111f; background: var(--accent); border-radius: 7px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(177, 202, 231, .1); background: rgba(11, 18, 32, .9); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; color: var(--accent); background: #14263b; border: 1px solid rgba(98, 168, 255, .28); border-radius: 11px; font-size: 15px; font-weight: 800; letter-spacing: -.09em; }
.brand-mark > span { color: #dcecff; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 12px; font-weight: 800; letter-spacing: -.025em; }
.brand-copy > span { color: #8699ad; font-size: 9px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 31px; }
.site-nav > a { color: #a4b3c3; font-size: 10px; font-weight: 700; transition: color .2s ease; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: var(--accent-bright); }
.site-nav .nav-contact { display: inline-flex; align-items: center; gap: 13px; margin-left: 4px; padding: 10px 14px 10px 16px; color: #081321; background: var(--accent); border-radius: 6px; transition: background .2s ease, transform .2s ease; }
.site-nav .nav-contact span { font-size: 14px; }
.site-nav .nav-contact:hover { color: #081321; background: var(--accent-bright); transform: translateY(-1px); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 78px 0 0; background: radial-gradient(ellipse at 77% 30%, rgba(38, 88, 145, .14), transparent 34%), var(--bg); }
.hero::before { position: absolute; z-index: -1; top: 6%; right: -180px; width: 610px; height: 610px; border: 1px solid rgba(98, 168, 255, .08); border-radius: 50%; content: ""; }
.hero::after { position: absolute; z-index: -1; top: 18%; right: -90px; width: 430px; height: 430px; border: 1px solid rgba(98, 168, 255, .06); border-radius: 50%; content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(450px, 1.05fr); align-items: center; gap: clamp(42px, 7vw, 94px); }
.hero-copy { position: relative; z-index: 1; padding: 4px 0 27px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: #a1b2c3; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .1em; }
.eyebrow-mark { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 13px rgba(98, 168, 255, .7); }
.eyebrow-slash { color: #516c8b; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(43px, 5.55vw, 69px); font-weight: 700; letter-spacing: -.075em; line-height: 1.08; }
.hero h1 span { color: var(--accent); font-weight: 600; }
.hero-summary { max-width: 520px; margin: 22px 0 0; color: #a7b5c4; font-size: 12px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 800; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #081321; background: var(--accent); box-shadow: 0 5px 20px rgba(54, 130, 218, .16); }
.button-primary > span { font-size: 14px; }
.button-primary:hover { background: var(--accent-bright); box-shadow: 0 9px 25px rgba(54, 130, 218, .24); }
.button-secondary { color: #dce8f3; background: rgba(255, 255, 255, .025); border-color: #33445a; }
.button-secondary:hover { background: #142338; border-color: #6287b3; }
.button-secondary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin: 25px 0 0; color: #8395a9; font-size: 9px; font-weight: 600; }
.hero-footnote span { color: var(--accent); font-family: var(--mono); font-size: 8px; }
.hero-visual { --pointer-x: 50%; --pointer-y: 50%; position: relative; min-height: 455px; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 47%, rgba(32, 88, 151, .2), transparent 52%); }
.hero-visual::after { position: absolute; z-index: -1; inset: 0; background: radial-gradient(260px circle at var(--pointer-x) var(--pointer-y), rgba(98, 168, 255, .14), transparent 75%); content: ""; opacity: .8; transition: opacity .3s ease; }
.visual-grid { position: absolute; z-index: -2; inset: 7% 2% 9%; background-image: linear-gradient(rgba(168, 197, 231, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 197, 231, .045) 1px, transparent 1px); background-size: 28px 28px; border: 1px solid rgba(98, 168, 255, .1); border-radius: 44% 56% 61% 39% / 49% 38% 62% 51%; mask-image: radial-gradient(ellipse, #000 28%, transparent 73%); transform: rotate(-12deg); }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgba(98, 168, 255, .19); border-radius: 50%; pointer-events: none; }
.orbit-a { top: 8%; right: 2%; width: 91%; height: 78%; border-color: rgba(98, 168, 255, .24); transform: rotate(-23deg); animation: orbit-drift 28s ease-in-out infinite alternate; }
.orbit-b { top: 15%; right: 8%; width: 77%; height: 67%; border-style: dashed; border-color: rgba(134, 220, 244, .17); transform: rotate(18deg); animation: orbit-drift 23s ease-in-out infinite alternate-reverse; }
.visual-top { position: absolute; top: 9%; right: 7%; left: 7%; display: flex; align-items: center; justify-content: space-between; color: #9cb3ce; font-family: var(--mono); font-size: 7px; letter-spacing: .11em; }
.visual-top i { color: var(--accent); font-style: normal; }
.visual-top > span:last-child { color: #728eac; }
.visual-core { position: absolute; top: 44%; left: 49%; display: grid; width: 252px; height: 252px; place-items: center; margin: 0; background: radial-gradient(circle at 36% 28%, #286cb0, #15395f 58%, #112941 100%); border: 1px solid rgba(139, 196, 255, .65); border-radius: 39% 61% 58% 42% / 43% 39% 61% 57%; box-shadow: 0 0 0 9px rgba(98, 168, 255, .055), 0 0 75px rgba(45, 120, 202, .3); transform: translate(-50%, -50%) rotate(-11deg); animation: monogram-float 7s ease-in-out infinite; }
.visual-core::before, .visual-core::after { position: absolute; inset: -17px; border: 1px solid rgba(132, 190, 249, .24); border-radius: 48% 52% 59% 41% / 43% 48% 52% 57%; content: ""; transform: rotate(18deg); }
.visual-core::after { inset: -30px; border-color: rgba(134, 220, 244, .12); transform: rotate(-18deg); }
.visual-core > span { color: #f0f7ff; font-size: 104px; font-weight: 800; letter-spacing: -.13em; line-height: 1; transform: rotate(11deg) translateX(-5px); text-shadow: 0 12px 35px rgba(0, 0, 0, .2); }
.visual-core > span > span { color: #a8d4ff; }
.visual-core > i { position: absolute; top: 11%; right: 16%; width: 8px; height: 8px; background: #d3efff; border-radius: 50%; box-shadow: 0 0 17px 4px rgba(134, 220, 244, .45); }
.visual-stamp { position: absolute; bottom: 17%; left: 7%; display: grid; gap: 7px; padding-left: 13px; border-left: 2px solid var(--accent); }
.stamp-line { width: 19px; height: 2px; background: var(--accent); }
.stamp-kicker { color: #8aa8c8; font-family: var(--mono); font-size: 6px; letter-spacing: .12em; }
.visual-stamp strong { color: #e9f3ff; font-size: 15px; font-weight: 700; letter-spacing: -.04em; line-height: 1.25; }
.visual-stamp em { color: var(--accent-bright); font-style: normal; }
.visual-spark { position: absolute; color: var(--accent-bright); font-family: var(--mono); text-shadow: 0 0 15px rgba(98, 168, 255, .8); }
.spark-a { top: 23%; right: 17%; font-size: 22px; animation: spark-pulse 3.4s ease-in-out infinite; }
.spark-b { top: 47%; left: 12%; color: var(--cyan); font-size: 24px; animation: spark-pulse 4s ease-in-out infinite reverse; }
.visual-bottom { position: absolute; right: 7%; bottom: 10%; display: flex; align-items: center; gap: 8px; color: #819bb8; font-family: var(--mono); font-size: 6px; letter-spacing: .07em; }
.visual-bottom i { width: 17px; height: 1px; background: var(--accent); box-shadow: 0 0 7px rgba(98, 168, 255, .65); }
.hero-bottom { display: flex; align-items: center; gap: 14px; margin-top: 42px; padding-bottom: 18px; color: #72869a; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.hero-bottom i { width: 100%; height: 1px; background: linear-gradient(90deg, #29425a, rgba(41, 66, 90, .08)); }
.hero-bottom span:last-child { color: #657b92; white-space: nowrap; }

/* Shared sections */
.section-pad { padding: 91px 0; }
.about { background: #0d1724; border-block: 1px solid rgba(167, 194, 224, .055); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 9vw, 125px); align-items: center; }
.section-number { color: var(--accent); }
.section-heading h2, .contact-copy h2 { margin: 0; color: var(--text); font-size: clamp(34px, 4.2vw, 51px); font-weight: 700; letter-spacing: -.065em; line-height: 1.16; }
.section-heading h2 span, .contact-copy h2 span { color: #8193a8; font-weight: 500; }
.about-copy { max-width: 520px; }
.about-copy > p { margin: 0 0 12px; color: #9eafc0; font-size: 11px; line-height: 1.95; }
.about-copy > p:first-child { color: #d7e1ec; font-size: 13px; font-weight: 700; line-height: 1.75; }
.approach-line { display: flex; align-items: center; gap: 11px; margin-top: 24px; padding-top: 17px; color: #8699ad; border-top: 1px solid var(--line); font-size: 9px; }
.approach-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(98, 168, 255, .14); border-radius: 6px; font-size: 15px; }
.expertise { background: var(--bg); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-top .eyebrow { margin-bottom: 18px; }
.section-aside { max-width: 300px; margin: 0 0 5px; color: #8497ab; font-size: 9px; line-height: 1.8; text-align: right; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 12px; }
.expertise-card { min-height: 138px; background: linear-gradient(145deg, #121f2e, #101b29); border: 1px solid #26374a; border-radius: 8px; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.expertise-card:hover, .expertise-card[open] { background: #142338; border-color: #42658a; box-shadow: 0 12px 28px rgba(0, 0, 0, .15); transform: translateY(-2px); }
.expertise-card summary { display: grid; grid-template-columns: 21px 37px minmax(0, 1fr) 19px; align-items: center; gap: 10px; min-height: 136px; padding: 17px; list-style: none; cursor: pointer; }
.expertise-card summary::-webkit-details-marker { display: none; }
.expertise-index { align-self: start; padding-top: 4px; color: #6d86a0; font-family: var(--mono); font-size: 7px; }
.expertise-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(98, 168, 255, .12); border-radius: 8px; }
.expertise-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.icon-devices { color: var(--cyan); background: rgba(134, 220, 244, .09); border-color: rgba(134, 220, 244, .12); }
.icon-automation { color: var(--violet); background: rgba(186, 160, 255, .09); border-color: rgba(186, 160, 255, .12); }
.expertise-title { display: grid; gap: 5px; }
.expertise-title strong { color: #e4edf6; font-size: 10px; line-height: 1.5; }
.expertise-title small { color: #8295a8; font-size: 8px; line-height: 1.55; }
.expand-icon { display: grid; width: 19px; height: 19px; place-items: center; color: #8298af; border: 1px solid #354a60; border-radius: 50%; font-size: 12px; transition: transform .2s ease, color .2s ease, background .2s ease; }
.expertise-card[open] .expand-icon { color: #081321; background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.expertise-detail { padding: 0 18px 19px 48px; animation: reveal-detail .25s ease both; }
.expertise-detail p { margin: 0 0 12px; color: #a3b2c1; font-size: 8px; line-height: 1.8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-tags span { padding: 4px 6px; color: #9fb6ce; background: rgba(98, 168, 255, .07); border: 1px solid rgba(98, 168, 255, .12); border-radius: 4px; font-size: 6px; font-weight: 700; }

/* Project cards */
.projects { background: #0d1724; border-block: 1px solid rgba(167, 194, 224, .055); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.project-card { overflow: hidden; background: #111e2c; border: 1px solid #26374a; border-radius: 8px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.project-card:hover { border-color: #4a76a5; box-shadow: 0 18px 38px rgba(0, 0, 0, .2); transform: translateY(-4px); }
.project-art { position: relative; display: grid; min-height: 180px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 22%, rgba(64, 125, 194, .2), transparent 64%), #0d1927; border-bottom: 1px solid rgba(138, 173, 213, .1); }
.project-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(152, 189, 230, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 189, 230, .035) 1px, transparent 1px); background-size: 22px 22px; content: ""; mask-image: linear-gradient(145deg, #000, transparent 85%); }
.leave-art { background: radial-gradient(ellipse at 76% 17%, rgba(98, 168, 255, .34), transparent 37%), radial-gradient(ellipse at 18% 90%, rgba(117, 91, 218, .18), transparent 49%), #0d1927; }
.inventory-art { background: radial-gradient(ellipse at 77% 17%, rgba(134, 220, 244, .24), transparent 40%), radial-gradient(ellipse at 12% 85%, rgba(64, 112, 201, .17), transparent 50%), #0d1927; }
.flow-art { background: radial-gradient(ellipse at 82% 20%, rgba(186, 160, 255, .22), transparent 38%), radial-gradient(ellipse at 18% 90%, rgba(98, 168, 255, .18), transparent 45%), #0d1927; }
.mini-window, .mini-inventory { position: relative; z-index: 1; width: 76%; max-width: 248px; padding: 0 12px 10px; background: #121f2f; border: 1px solid rgba(126, 172, 224, .26); border-radius: 6px; box-shadow: 0 14px 32px rgba(0, 0, 0, .26); transform: rotate(-1deg); transition: transform .3s ease; }
.project-card:hover .mini-window { transform: rotate(0) translateY(-2px); }
.mini-window-head { display: flex; align-items: center; gap: 4px; height: 26px; border-bottom: 1px solid rgba(148, 180, 215, .12); }
.mini-window-head i { width: 4px; height: 4px; background: #516a87; border-radius: 50%; }
.mini-window-head span { margin-left: 7px; color: #86a7cc; font-family: var(--mono); font-size: 6px; letter-spacing: .08em; }
.mini-calendar { display: grid; grid-template-columns: 30px 1fr; gap: 9px; height: 73px; padding-top: 9px; }
.mini-calendar-side { display: grid; align-content: start; gap: 6px; padding-right: 6px; border-right: 1px solid rgba(148, 180, 215, .12); }
.mini-calendar-side b, .mini-calendar-side i { height: 3px; background: #304158; border-radius: 3px; }
.mini-calendar-side b { background: #4f8bd0; }
.mini-calendar-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 5px; }
.mini-calendar-grid i { height: 3px; background: #304158; border-radius: 3px; }
.mini-calendar-grid b { height: 12px; background: rgba(98, 168, 255, .2); border: 1px solid rgba(98, 168, 255, .15); border-radius: 2px; }
.mini-caption { color: #718ba7; font-family: var(--mono); font-size: 5px; letter-spacing: .08em; }
.mini-caption span { color: var(--accent); }
.mini-inventory { padding: 12px; transform: rotate(1deg); }
.project-card:hover .mini-inventory { transform: rotate(0) translateY(-2px); }
.mini-inventory-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: #8ca5c1; font-family: var(--mono); font-size: 6px; letter-spacing: .08em; }
.mini-inventory-head span:last-child { color: var(--accent); }
.mini-device-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid rgba(148, 180, 215, .1); }
.mini-device-row > span { display: grid; gap: 2px; }
.mini-device-row b { color: #cbd9e8; font-size: 6px; }
.mini-device-row small { color: #758ba3; font-size: 5px; }
.device-screen, .device-printer, .device-server { position: relative; display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; background: rgba(98, 168, 255, .1); border-radius: 5px; }
.device-screen::before { width: 10px; height: 7px; border: 1px solid #62a8ff; border-radius: 1px; content: ""; }
.device-printer { background: rgba(134, 220, 244, .09); }
.device-printer::before { width: 11px; height: 8px; border: 1px solid #86dcf4; border-radius: 2px; content: ""; }
.device-server { background: rgba(186, 160, 255, .1); }
.device-server::before { width: 8px; height: 12px; border: 1px solid #baa0ff; border-radius: 2px; content: ""; }
.device-state { width: 4px; height: 4px; margin-left: auto; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
.flow-track { position: relative; z-index: 1; display: flex; align-items: center; width: 82%; max-width: 270px; }
.flow-step { display: grid; width: 64px; min-height: 55px; align-content: center; gap: 3px; padding: 7px; background: #142235; border: 1px solid #314862; border-radius: 5px; box-shadow: 0 9px 18px rgba(0, 0, 0, .2); transition: border-color .2s ease, transform .2s ease; }
.project-card:hover .flow-step { transform: translateY(-3px); }
.flow-step > span { color: #738ca8; font-family: var(--mono); font-size: 5px; }
.flow-step b { color: #cbd9e8; font-size: 6px; }
.flow-step-active { background: #172f49; border-color: rgba(98, 168, 255, .65); box-shadow: 0 0 18px rgba(98, 168, 255, .12); }
.flow-step-active > span, .flow-step-active b { color: var(--accent-bright); }
.flow-connector { width: 25px; height: 1px; background: #4d80b5; }
.flow-connector::after { display: block; width: 4px; height: 4px; margin: -1.5px 0 0 11px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); content: ""; }
.flow-note { position: absolute; z-index: 1; bottom: 18px; color: #6f859f; font-family: var(--mono); font-size: 5px; letter-spacing: .08em; }
.flow-note span { color: var(--accent); }
.project-info { padding: 17px 17px 19px; }
.project-label { display: flex; justify-content: space-between; margin: 0 0 9px; color: #7f96ae; font-family: var(--mono); font-size: 6px; letter-spacing: .09em; }
.project-label span { color: #58718d; }
.project-info h3 { margin: 0; color: #e2ebf5; font-size: 12px; font-weight: 800; letter-spacing: -.025em; }
.project-info > p:last-child { min-height: 42px; margin: 7px 0 0; color: #91a2b3; font-size: 8px; line-height: 1.8; }

/* Tools and contact */
.tools-section { padding: 28px 0; background: #0a111d; border-bottom: 1px solid rgba(167, 194, 224, .07); }
.tools-inner { display: flex; align-items: center; gap: 26px; }
.tools-inner .eyebrow { flex: 0 0 auto; margin: 0; color: #7390af; font-size: 7px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tags span { padding: 5px 8px; color: #a9bbcd; background: rgba(255, 255, 255, .025); border: 1px solid #26374a; border-radius: 4px; font-size: 7px; font-weight: 700; }
.contact-section { padding: 78px 0; background: radial-gradient(ellipse at 83% 50%, rgba(51, 110, 176, .13), transparent 34%), #0b1220; }
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 54px; }
.contact-copy .eyebrow { margin-bottom: 16px; }
.contact-copy h2 { font-size: clamp(36px, 4.4vw, 54px); }
.contact-copy > p:last-child { max-width: 375px; margin: 15px 0 0; color: #94a6b8; font-size: 9px; line-height: 1.9; }
.contact-card { position: relative; display: grid; min-height: 150px; align-content: space-between; padding: 20px 22px; overflow: hidden; background: linear-gradient(135deg, #142943, #101e30); border: 1px solid rgba(98, 168, 255, .35); border-radius: 8px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contact-card::after { position: absolute; right: -35px; bottom: -65px; width: 165px; height: 165px; border: 1px solid rgba(98, 168, 255, .13); border-radius: 50%; box-shadow: 0 0 0 16px rgba(98, 168, 255, .025), 0 0 0 32px rgba(98, 168, 255, .018); content: ""; }
.contact-card:hover { border-color: var(--accent); box-shadow: 0 13px 30px rgba(0, 0, 0, .2); transform: translateY(-3px); }
.contact-card-label { color: #8faac6; font-family: var(--mono); font-size: 6px; letter-spacing: .1em; }
.contact-card strong { position: relative; z-index: 1; color: #eaf3fc; font-size: clamp(16px, 2vw, 22px); font-weight: 700; letter-spacing: -.045em; line-height: 1.35; }
.contact-card-arrow { position: absolute; z-index: 1; right: 21px; bottom: 19px; display: grid; width: 29px; height: 29px; place-items: center; color: #081321; background: var(--accent); border-radius: 50%; font-size: 12px; transition: transform .2s ease; }
.contact-card:hover .contact-card-arrow { transform: rotate(45deg); }
.email-break { display: none; }
.site-footer { background: #080e18; border-top: 1px solid rgba(167, 194, 224, .07); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 69px; gap: 15px; }
.footer-brand { gap: 8px; font-size: 8px; }
.brand-mark.small { width: 27px; height: 27px; border-radius: 7px; font-size: 11px; }
.footer-brand strong { font-weight: 700; }
.footer-inner > p, .footer-copy { margin: 0; color: #718297; font-size: 7px; }
.footer-copy { font-family: var(--mono); }

/* Creative motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes reveal-detail { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-drift { from { translate: 0 0; } to { translate: 5px -8px; } }
@keyframes monogram-float { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -9px; rotate: 1deg; } }
@keyframes spark-pulse { 0%, 100% { opacity: .55; scale: .9; } 50% { opacity: 1; scale: 1.15; } }

@media (max-width: 960px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .hero { padding-top: 57px; }
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: 30px; }
  .hero h1 { font-size: clamp(40px, 5.8vw, 57px); }
  .hero-visual { min-height: 420px; }
  .visual-core { width: 222px; height: 222px; }
  .visual-core > span { font-size: 91px; }
  .section-pad { padding: 76px 0; }
  .expertise-card summary { grid-template-columns: 18px 32px minmax(0, 1fr) 18px; gap: 7px; padding: 13px; }
  .expertise-icon { width: 32px; height: 32px; }
  .expertise-title strong { font-size: 9px; }
  .expertise-detail { padding-left: 39px; }
  .project-art { min-height: 160px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy > span { font-size: 8px; }
  .menu-toggle { position: relative; z-index: 22; display: grid; width: 38px; height: 38px; align-content: center; justify-items: center; gap: 5px; padding: 0; background: transparent; border: 1px solid #34465a; border-radius: 7px; cursor: pointer; }
  .menu-toggle span { width: 15px; height: 1.5px; background: #dce8f3; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; gap: 0; padding: 8px 20px 16px; background: rgba(11, 18, 32, .98); border-bottom: 1px solid var(--line); box-shadow: 0 15px 24px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease, visibility .18s; visibility: hidden; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; visibility: visible; }
  .site-nav > a { padding: 11px 3px; border-bottom: 1px solid rgba(167, 194, 224, .09); font-size: 10px; }
  .site-nav .nav-contact { justify-content: space-between; margin: 11px 0 0; padding: 11px 13px; border: 0; }
  .hero { padding-top: 43px; }
  .hero-grid { grid-template-columns: 1fr; gap: 33px; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { margin-bottom: 17px; font-size: 7px; }
  .hero h1 { max-width: 570px; font-size: clamp(42px, 9.4vw, 61px); }
  .hero-summary { margin-top: 17px; font-size: 11px; }
  .hero-actions { margin-top: 20px; }
  .hero-footnote { margin-top: 20px; }
  .hero-visual { min-height: 410px; }
  .visual-core { width: 220px; height: 220px; }
  .visual-core > span { font-size: 90px; }
  .visual-stamp { bottom: 15%; }
  .hero-bottom { margin-top: 27px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-copy { max-width: 570px; }
  .section-top { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 25px; }
  .section-aside { margin: 0; text-align: left; }
  .expertise-grid { grid-template-columns: 1fr; gap: 8px; }
  .expertise-card, .expertise-card summary { min-height: 92px; }
  .expertise-card summary { grid-template-columns: 24px 37px minmax(0, 1fr) 19px; gap: 10px; padding: 15px; }
  .expertise-title strong { font-size: 10px; }
  .expertise-title small { font-size: 8px; }
  .expertise-detail { padding: 0 17px 17px 86px; }
  .expertise-detail p { font-size: 8px; }
  .detail-tags span { font-size: 7px; }
  .project-grid { grid-template-columns: 1fr; gap: 10px; }
  .project-card { display: grid; grid-template-columns: .85fr 1.15fr; }
  .project-art { min-height: 164px; height: 100%; border-right: 1px solid rgba(138, 173, 213, .1); border-bottom: 0; }
  .project-info { display: flex; flex-direction: column; justify-content: center; padding: 14px; }
  .project-info > p:last-child { min-height: 0; }
  .tools-inner { align-items: start; flex-direction: column; gap: 12px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { min-height: 136px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; min-height: 72px; padding-block: 14px; }
  .footer-inner > p { order: 3; width: 100%; }
}

@media (max-width: 430px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .hero-visual { min-height: 385px; }
  .visual-core { width: 196px; height: 196px; }
  .visual-core > span { font-size: 80px; }
  .visual-stamp { bottom: 12%; left: 5%; }
  .visual-stamp strong { font-size: 13px; }
  .visual-bottom { right: 5%; bottom: 7%; gap: 5px; font-size: 5px; }
  .orbit-a { right: -3%; width: 96%; }
  .orbit-b { right: 3%; width: 82%; }
  .hero-bottom { gap: 9px; font-size: 6px; }
  .hero-bottom span:last-child { text-align: right; }
  .section-heading h2, .contact-copy h2 { font-size: 36px; }
  .expertise-card summary { grid-template-columns: 19px 33px minmax(0, 1fr) 18px; gap: 8px; }
  .expertise-title strong { font-size: 9px; }
  .expertise-detail { padding-left: 78px; }
  .project-card { grid-template-columns: 1fr; }
  .project-art { min-height: 170px; border-right: 0; border-bottom: 1px solid rgba(138, 173, 213, .1); }
  .project-info { padding: 15px; }
  .contact-card strong { font-size: 18px; }
  .email-break { display: initial; }
  .footer-copy { font-size: 6px; }
}

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

/* Optional, more vivid preview: add ?vivid=1 to the page URL. */
html.vivid-demo {
  --accent-bright: #a3eaff;
  --accent-soft: rgba(98, 168, 255, .16);
  --cyan: #63f0dc;
}
html.vivid-demo .hero {
  background: radial-gradient(ellipse at 77% 28%, rgba(66, 195, 221, .16), transparent 35%), radial-gradient(ellipse at 16% 80%, rgba(55, 119, 222, .09), transparent 40%), var(--bg);
}
html.vivid-demo .hero::before { border-color: rgba(99, 240, 220, .15); animation: vivid-ring 9s ease-in-out infinite alternate; }
html.vivid-demo .hero::after { border-color: rgba(98, 168, 255, .15); animation: vivid-ring 7s ease-in-out infinite alternate-reverse; }
html.vivid-demo .hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #65aaff 3%, #79d8ff 51%, #63f0dc 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
html.vivid-demo .hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 10% 3%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg at 50% 48%, transparent 0deg 17deg, rgba(99, 240, 220, .2) 17.4deg 17.8deg, transparent 18.2deg 34deg);
  content: "";
  mask-image: radial-gradient(ellipse, transparent 15%, #000 24%, #000 58%, transparent 74%);
  pointer-events: none;
  animation: network-turn 54s linear infinite;
}
html.vivid-demo .hero-visual { background: radial-gradient(ellipse at 50% 47%, rgba(32, 134, 169, .26), transparent 57%); }
html.vivid-demo .hero-visual::after { background: radial-gradient(280px circle at var(--pointer-x) var(--pointer-y), rgba(99, 240, 220, .2), transparent 76%); }
html.vivid-demo .visual-grid {
  background-image: linear-gradient(rgba(99, 240, 220, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 168, 255, .07) 1px, transparent 1px);
  border-color: rgba(99, 240, 220, .16);
}
html.vivid-demo .visual-orbit { border-color: rgba(99, 240, 220, .28); }
html.vivid-demo .orbit-a { animation: orbit-drift 28s ease-in-out infinite alternate, orbit-turn-a 52s linear infinite; }
html.vivid-demo .orbit-b { border-color: rgba(98, 168, 255, .3); animation: orbit-drift 23s ease-in-out infinite alternate-reverse, orbit-turn-b 44s linear infinite; }
html.vivid-demo .visual-core {
  background: radial-gradient(circle at 34% 26%, #398fb9, #194f70 57%, #113548 100%);
  border-color: rgba(116, 255, 231, .72);
  box-shadow: 0 0 0 9px rgba(99, 240, 220, .08), 0 0 85px rgba(45, 168, 190, .38);
  animation: monogram-float 7s ease-in-out infinite, core-glow 5s ease-in-out infinite;
}
html.vivid-demo .visual-core::before, html.vivid-demo .visual-core::after { border-color: rgba(99, 240, 220, .33); }
html.vivid-demo .visual-core::after { border-color: rgba(98, 168, 255, .25); }
html.vivid-demo .visual-core > span > span { color: var(--cyan); }
html.vivid-demo .visual-stamp { border-color: var(--cyan); }
html.vivid-demo .visual-stamp em, html.vivid-demo .spark-a { color: var(--cyan); }
html.vivid-demo .spark-b { color: #a3eaff; }
html.vivid-demo .visual-bottom i { background: var(--cyan); box-shadow: 0 0 10px rgba(99, 240, 220, .85); }
html.vivid-demo .button-primary, html.vivid-demo .site-nav .nav-contact {
  background: linear-gradient(110deg, #68aaff 0%, #62d4ef 55%, #63e9d2 100%);
  box-shadow: 0 7px 24px rgba(60, 190, 205, .2);
}
html.vivid-demo .button-primary:hover, html.vivid-demo .site-nav .nav-contact:hover { background: linear-gradient(110deg, #8cc0ff, #8df1e3); }
html.vivid-demo .expertise-card:hover, html.vivid-demo .expertise-card[open] {
  border-color: rgba(99, 240, 220, .58);
  box-shadow: 0 13px 32px rgba(24, 141, 150, .16), 0 0 0 1px rgba(99, 240, 220, .08);
}
html.vivid-demo .expertise-card:hover .expertise-icon { transform: rotate(-6deg) scale(1.08); }
html.vivid-demo .expertise-icon { transition: transform .25s ease, background .25s ease; }
html.vivid-demo .icon-devices, html.vivid-demo .icon-automation { color: var(--cyan); background: rgba(99, 240, 220, .1); border-color: rgba(99, 240, 220, .19); }
html.vivid-demo .project-card:hover { border-color: rgba(99, 240, 220, .48); box-shadow: 0 18px 38px rgba(0, 0, 0, .22), 0 0 28px rgba(45, 168, 190, .12); }
html.vivid-demo .leave-art { background: radial-gradient(ellipse at 76% 17%, rgba(98, 168, 255, .35), transparent 37%), radial-gradient(ellipse at 18% 90%, rgba(99, 240, 220, .2), transparent 49%), #0d1927; }
html.vivid-demo .inventory-art { background: radial-gradient(ellipse at 77% 17%, rgba(99, 240, 220, .28), transparent 40%), radial-gradient(ellipse at 12% 85%, rgba(64, 112, 201, .2), transparent 50%), #0d1927; }
html.vivid-demo .flow-art { background: radial-gradient(ellipse at 82% 20%, rgba(99, 240, 220, .24), transparent 38%), radial-gradient(ellipse at 18% 90%, rgba(98, 168, 255, .2), transparent 45%), #0d1927; }
html.vivid-demo .contact-card:hover { border-color: rgba(99, 240, 220, .55); box-shadow: 0 17px 36px rgba(16, 119, 132, .15); }

@keyframes network-turn { to { transform: rotate(360deg); } }
@keyframes orbit-turn-a { from { transform: rotate(-23deg); } to { transform: rotate(337deg); } }
@keyframes orbit-turn-b { from { transform: rotate(18deg); } to { transform: rotate(-342deg); } }
@keyframes vivid-ring { from { opacity: .55; scale: .98; } to { opacity: 1; scale: 1.02; } }
@keyframes core-glow { 0%, 100% { box-shadow: 0 0 0 9px rgba(99, 240, 220, .08), 0 0 85px rgba(45, 168, 190, .32); } 50% { box-shadow: 0 0 0 13px rgba(99, 240, 220, .11), 0 0 108px rgba(45, 168, 190, .48); } }

@media (prefers-reduced-motion: reduce) {
  html.vivid-demo *, html.vivid-demo *::before, html.vivid-demo *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reference-inspired personal portfolio concept, enabled with ?portfolio=1. */
.portfolio-demo-title, .portfolio-demo-role, .profile-console, .terminal-section { display: none; }
html.portfolio-demo {
  --bg: #080c12;
  --bg-raised: #0c131b;
  --panel: #0e1721;
  --panel-raised: #121f2b;
  --line: #223341;
  --accent: #68b8ff;
  --accent-bright: #9ce9ff;
  --accent-soft: rgba(104, 184, 255, .12);
  --cyan: #63ecd3;
}
html.portfolio-demo body { background: #080c12; }
html.portfolio-demo .site-header { background: rgba(8, 12, 18, .94); border-color: rgba(129, 169, 203, .12); }
html.portfolio-demo .hero { padding-top: 67px; background: radial-gradient(ellipse at 78% 38%, rgba(34, 102, 144, .17), transparent 38%), #080c12; }
html.portfolio-demo .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); gap: clamp(36px, 6vw, 76px); }
html.portfolio-demo #hero-title { display: none; }
html.portfolio-demo .portfolio-demo-title { display: block; max-width: 600px; font-size: clamp(66px, 8.5vw, 105px); font-weight: 700; letter-spacing: -.095em; line-height: .91; }
html.portfolio-demo .portfolio-demo-title span { color: var(--cyan); }
html.portfolio-demo .portfolio-demo-role { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; color: #a7bacb; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; }
html.portfolio-demo .portfolio-demo-role i { color: var(--accent); font-style: normal; }
html.portfolio-demo .hero-summary { max-width: 440px; margin-top: 16px; color: #9aabba; font-size: 11px; }
html.portfolio-demo .hero-footnote { padding-top: 14px; border-top: 1px solid rgba(129, 169, 203, .14); }
html.portfolio-demo .hero-visual { display: grid; min-height: 410px; place-items: center; background: radial-gradient(ellipse at 54% 47%, rgba(40, 122, 148, .18), transparent 63%); }
html.portfolio-demo .hero-visual::after { background: radial-gradient(300px circle at var(--pointer-x) var(--pointer-y), rgba(99, 236, 211, .12), transparent 75%); }
html.portfolio-demo .hero-visual > :not(.profile-console) { display: none; }
html.portfolio-demo .profile-console { position: relative; display: block; width: min(100%, 490px); overflow: hidden; color: #dce9f3; background: linear-gradient(145deg, rgba(15, 27, 39, .98), rgba(9, 16, 24, .98)); border: 1px solid rgba(105, 166, 202, .27); border-radius: 10px; box-shadow: 0 28px 65px rgba(0, 0, 0, .34), 0 0 55px rgba(44, 143, 159, .09); transform: perspective(1000px) rotateY(-4deg) rotateX(1deg); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
html.portfolio-demo .profile-console:hover { border-color: rgba(99, 236, 211, .48); box-shadow: 0 30px 70px rgba(0, 0, 0, .38), 0 0 56px rgba(44, 178, 171, .16); transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-4px); }
.profile-console-bar, .terminal-window-bar { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 14px; color: #8fa6b8; background: rgba(255, 255, 255, .025); border-bottom: 1px solid rgba(129, 169, 203, .12); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.profile-console-bar > span:nth-child(2), .terminal-window-bar > span:nth-child(2) { flex: 1; }
.profile-console-bar > span:last-child, .terminal-window-bar > span:last-child { color: #627f92; }
.console-lights { display: inline-flex; gap: 4px; }
.console-lights i { width: 6px; height: 6px; background: #ff766e; border-radius: 50%; }
.console-lights i:nth-child(2) { background: #efc46b; }
.console-lights i:nth-child(3) { background: #63d8b4; }
.profile-console-body { padding: 23px 25px 20px; }
.console-comment, .console-command { margin: 0 0 13px; color: #738b9d; font-family: var(--mono); font-size: 8px; }
.console-command { color: #c7d9e7; }
.console-command span, .console-status { color: var(--cyan); }
.console-rule { height: 1px; margin: 18px 0 8px; background: linear-gradient(90deg, rgba(99, 236, 211, .35), rgba(99, 236, 211, .02)); }
.console-skill { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid rgba(129, 169, 203, .1); }
.console-skill > span { color: #557184; font-family: var(--mono); font-size: 7px; }
.console-skill strong { color: #d6e4ee; font-size: 10px; }
.console-skill small { color: #8199aa; font-family: var(--mono); font-size: 7px; }
.console-status { display: flex; align-items: center; gap: 8px; padding-top: 18px; color: #90c9d0; font-family: var(--mono); font-size: 6px; letter-spacing: .11em; }
.console-status > span { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 11px rgba(99, 236, 211, .8); }
.console-status i { margin-left: auto; color: var(--accent); font-size: 12px; font-style: normal; }
html.portfolio-demo .hero-bottom { margin-top: 35px; }
html.portfolio-demo .about, html.portfolio-demo .projects { background: #0b1118; border-color: rgba(129, 169, 203, .1); }
html.portfolio-demo .section-heading h2 span, html.portfolio-demo .contact-copy h2 span { color: #7892a5; }
html.portfolio-demo .expertise-card { background: linear-gradient(145deg, #0e1822, #0b141d); border-color: #20313f; border-radius: 6px; }
html.portfolio-demo .expertise-card:hover, html.portfolio-demo .expertise-card[open] { background: #111f2b; border-color: rgba(99, 236, 211, .45); box-shadow: 0 15px 35px rgba(0, 0, 0, .22), 0 0 22px rgba(37, 134, 148, .09); }
html.portfolio-demo .expertise-icon, html.portfolio-demo .icon-devices, html.portfolio-demo .icon-automation { color: var(--cyan); background: rgba(99, 236, 211, .07); border-color: rgba(99, 236, 211, .18); }
html.portfolio-demo .project-card { background: #0c151e; border-color: #20313f; border-radius: 6px; }
html.portfolio-demo .project-card:hover { border-color: rgba(99, 236, 211, .42); box-shadow: 0 18px 42px rgba(0, 0, 0, .25), 0 0 25px rgba(37, 134, 148, .08); }
html.portfolio-demo .project-art { filter: saturate(.86); }
html.portfolio-demo .tools-section { border-block-color: rgba(129, 169, 203, .1); background: #080c12; }
html.portfolio-demo .nav-cv { display: inline-flex; align-items: center; gap: 7px; }
html.portfolio-demo .nav-cv span { color: var(--cyan); }
html.portfolio-demo .site-nav .nav-contact { color: #061018; background: var(--cyan); }
html.portfolio-demo .site-nav .nav-contact:hover { color: #061018; background: #a7fff0; }
html.portfolio-demo .terminal-section { display: block; background: #080c12; border-top: 1px solid rgba(129, 169, 203, .1); }
html.portfolio-demo .terminal-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
html.portfolio-demo .terminal-hint { max-width: 390px; margin: 20px 0 0; color: #8194a5; font-size: 9px; line-height: 2; }
html.portfolio-demo .terminal-hint button { padding: 2px 5px; color: var(--cyan); background: rgba(99, 236, 211, .07); border: 1px solid rgba(99, 236, 211, .16); border-radius: 3px; font-family: var(--mono); font-size: 8px; cursor: pointer; }
html.portfolio-demo .terminal-hint button:hover { background: rgba(99, 236, 211, .16); }
html.portfolio-demo .terminal-window { overflow: hidden; background: #090f15; border: 1px solid rgba(105, 166, 202, .25); border-radius: 8px; box-shadow: 0 24px 58px rgba(0, 0, 0, .3); }
.terminal-window-bar { min-height: 41px; }
.terminal-output { display: flex; min-height: 210px; max-height: 260px; flex-direction: column; gap: 9px; overflow-y: auto; padding: 20px 21px 14px; color: #acbdca; font-family: var(--mono); font-size: 8px; line-height: 1.9; scrollbar-color: #344b5a transparent; scrollbar-width: thin; }
.terminal-output p { margin: 0; white-space: pre-wrap; }
.terminal-output code { color: var(--cyan); font: inherit; }
.terminal-welcome { color: #8296a7; }
.terminal-entry { color: #d1e1eb; }
.terminal-entry span { color: var(--cyan); }
.terminal-response { color: #a4b7c5; }
.terminal-error { color: #f0a1a1; }
.terminal-result-link { align-self: flex-start; color: var(--accent-bright); border-bottom: 1px solid rgba(104, 184, 255, .3); font-size: 8px; }
.terminal-result-link:hover { color: var(--cyan); }
.terminal-form { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 0 15px; background: rgba(255, 255, 255, .025); border-top: 1px solid rgba(129, 169, 203, .13); }
.terminal-prompt { color: var(--cyan); font-family: var(--mono); font-size: 7px; white-space: nowrap; }
.terminal-form input { min-width: 0; flex: 1; color: #e2edf5; background: transparent; border: 0; outline: 0; font-family: var(--mono); font-size: 8px; }
.terminal-form input::placeholder { color: #536a7b; }
.terminal-form button { display: grid; width: 28px; height: 28px; place-items: center; color: #061018; background: var(--cyan); border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.terminal-form button:hover { background: #a7fff0; transform: translateX(2px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
html.portfolio-demo .contact-section { background: radial-gradient(ellipse at 78% 56%, rgba(28, 103, 130, .13), transparent 40%), #0a1017; }

@media (max-width: 900px) {
  html.portfolio-demo .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr); gap: 30px; }
  html.portfolio-demo .portfolio-demo-title { font-size: clamp(62px, 8vw, 82px); }
  html.portfolio-demo .console-skill { grid-template-columns: 24px 1fr; gap: 8px; padding-block: 5px; }
  html.portfolio-demo .console-skill small { grid-column: 2; margin-top: -8px; }
  html.portfolio-demo .terminal-grid { grid-template-columns: 1fr 1.1fr; gap: 30px; }
}
@media (max-width: 720px) {
  html.portfolio-demo .hero { padding-top: 43px; }
  html.portfolio-demo .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  html.portfolio-demo .portfolio-demo-title { font-size: clamp(67px, 15vw, 92px); }
  html.portfolio-demo .portfolio-demo-role { margin-top: 15px; }
  html.portfolio-demo .hero-visual { min-height: 360px; }
  html.portfolio-demo .profile-console { max-width: 500px; transform: none; }
  html.portfolio-demo .terminal-grid { grid-template-columns: 1fr; gap: 27px; }
  html.portfolio-demo .terminal-section { padding-block: 70px; }
  html.portfolio-demo .terminal-output { min-height: 180px; }
}
@media (max-width: 430px) {
  html.portfolio-demo .hero-visual { min-height: 325px; }
  .profile-console-body { padding: 18px 16px 16px; }
  .console-skill { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; min-height: 47px; }
  .console-skill strong { font-size: 9px; }
  .console-skill small { grid-column: auto !important; margin-top: 0 !important; font-size: 6px; }
  .terminal-form { gap: 7px; padding-inline: 10px; }
  .terminal-prompt { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html.portfolio-demo *, html.portfolio-demo *::before, html.portfolio-demo *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
