.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 2.2rem 1.5rem 1.6rem; color: var(--white); background: var(--ink); }
.sidebar__top { padding-left: .25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--white); font-size: 1.05rem; font-weight: 800; letter-spacing: -.06em; }
.brand b { color: var(--blue-light); }
.brand-mark { position: relative; display: inline-block; width: 1.65rem; height: 1.5rem; overflow: hidden; transform: skewX(-12deg); }
.brand-mark i { position: absolute; bottom: .1rem; width: .67rem; border-style: solid; border-width: 0 .23rem .23rem 0; border-color: currentColor; }
.brand-mark i:first-child { left: .05rem; height: 1.28rem; color: var(--white); transform: rotate(-45deg); }
.brand-mark i:last-child { right: .12rem; height: .85rem; color: var(--blue-light); transform: rotate(-45deg); }
.sidebar__eyebrow { margin: 1.2rem 0 0; color: var(--muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; line-height: 1.7; text-transform: uppercase; }
.side-nav { display: grid; gap: .3rem; margin: auto 0; }
.side-nav__link { position: relative; display: flex; align-items: center; gap: .8rem; padding: .7rem .65rem; color: #9aaabe; font-size: .86rem; font-weight: 600; transition: color .2s ease, background-color .2s ease; }
.side-nav__link::before { position: absolute; left: 0; width: 2px; height: 0; background: var(--blue-light); content: ""; transition: height .2s ease; }
.side-nav__link span { width: 1.3rem; color: #607188; font-family: var(--mono); font-size: .58rem; transition: color .2s ease; }
.side-nav__link:hover, .side-nav__link.is-active { color: var(--white); background: rgba(255,255,255,.045); }
.side-nav__link:hover span, .side-nav__link.is-active span { color: var(--blue-light); }
.side-nav__link.is-active::before { height: 1.55rem; }
.sidebar__bottom { display: flex; align-items: center; gap: .55rem; padding: .9rem .25rem 0; color: #9aaabe; border-top: 1px solid rgba(255,255,255,.1); font-size: .62rem; }
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #56e39f; box-shadow: 0 0 0 .25rem rgba(86,227,159,.12); }

main, .footer { margin-left: var(--sidebar); }
.section > * { width: min(100%, var(--content-max)); margin-right: auto; margin-left: auto; }
.mobile-header, .scrim { display: none; }

.section--hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); align-items: center; min-height: max(44rem, 100vh); overflow: hidden; color: var(--white); background: var(--ink); }
.section--hero::after { position: absolute; z-index: 0; right: -12rem; bottom: -12rem; width: 35rem; height: 35rem; border: 1px solid rgba(54,116,255,.22); border-radius: 50%; content: ""; }
.hero__grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(148,172,205,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,172,205,.07) 1px, transparent 1px); background-size: 3.5rem 3.5rem; -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 78%); mask-image: linear-gradient(90deg, #000 10%, transparent 78%); }
.hero__copy, .hero-visual, .scroll-hint { position: relative; z-index: 1; }
.hero__copy { margin: 0; padding: 5rem 0 5rem max(0rem, 3vw); }
.hero h1 { max-width: 45rem; margin-bottom: 1.5rem; font-size: clamp(3.25rem, 7vw, 7rem); }
.hero__lead { max-width: 35rem; margin-bottom: 2.25rem; color: #b8c7da; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__actions .text-link { color: var(--white); }
.hero-visual { justify-self: end; width: min(100%, 33rem); margin: 0 0 0 auto; }
.hero-visual__frame { position: relative; display: grid; place-items: center; width: min(100%, 27rem); aspect-ratio: 1; margin-left: auto; overflow: hidden; border: 1px solid rgba(184,199,218,.24); border-radius: 50%; background: #0c1c30; }
.hero-visual__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: screen; }
.hero-visual__orbit { position: absolute; border: 1px solid rgba(54,116,255,.52); border-radius: 50%; }
.orbit--one { top: 9%; right: 6%; width: 76%; aspect-ratio: 1; border-right-color: transparent; transform: rotate(20deg); }
.orbit--two { top: 18%; right: -5%; width: 53%; aspect-ratio: 1; border-color: rgba(184,199,218,.2); border-left-color: transparent; transform: rotate(-60deg); }
.hero-visual__label { margin: 1rem 0 0 auto; padding-right: .2rem; color: var(--white); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; line-height: 1.7; text-align: right; }
.hero-visual__label span { color: var(--blue-light); }
.scroll-hint { position: absolute; bottom: 2.3rem; left: clamp(1.5rem, 5vw, 6rem); display: flex; align-items: center; gap: .75rem; color: var(--muted); font-family: var(--mono); font-size: .63rem; letter-spacing: .09em; text-transform: uppercase; }
.scroll-hint span { width: 2.6rem; height: 1px; background: var(--muted); }

.section--about { background: var(--surface); }
.about-layout { display: grid; grid-template-columns: minmax(15rem, .65fr) minmax(22rem, 1.35fr); gap: clamp(3rem, 8vw, 10rem); margin-top: clamp(3rem, 6vw, 5rem); }
.about-layout__statement { margin-bottom: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.35; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-card { min-height: 15rem; padding: 1.5rem; background: var(--surface); }
.value-card__number { color: var(--blue); font-family: var(--mono); font-size: .68rem; }
.value-card h3 { margin: 2.6rem 0 .55rem; font-size: 1.25rem; }
.value-card p { margin-bottom: 0; color: var(--text-muted); font-size: .82rem; }

.section--services { color: var(--white); background: var(--ink); }
.section-heading--split { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading__support { max-width: 21rem; margin-bottom: .4rem; color: #b8c7da; font-size: .9rem; }
.section--services .section-heading h2 { max-width: 44rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; background: rgba(184,199,218,.19); border: 1px solid rgba(184,199,218,.19); }
.service-card { display: grid; grid-template-columns: auto 1fr; align-content: start; min-height: 21rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: #0d2035; transition: background-color .25s ease; }
.service-card:hover { background: #102a48; }
.service-card--featured { color: var(--ink); background: var(--blue); }
.service-card--featured:hover { background: var(--blue-light); }
.service-card--accent { background: #102a48; }
.service-card__icon { grid-row: span 2; display: grid; width: 2.9rem; height: 2.9rem; margin-right: 1rem; place-items: center; border: 1px solid currentColor; color: var(--blue-light); font-size: 1.25rem; }
.service-card--featured .service-card__icon { color: var(--white); }
.service-card__index { margin: .1rem 0 1.5rem; color: #8fa2ba; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.service-card--featured .service-card__index { color: #dbe7ff; }
.service-card h3 { grid-column: 1 / -1; margin: 2.75rem 0 .8rem; font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.service-card > p:not(.service-card__index) { grid-column: 1 / -1; max-width: 29rem; margin-bottom: 1.8rem; color: #b8c7da; font-size: .88rem; }
.service-card--featured > p:not(.service-card__index) { color: #e3edff; }
.card-link { grid-column: 1 / -1; align-self: end; margin-top: auto; color: var(--white); }
.service-card--featured .card-link span { color: var(--white); }

.section--projects { background: var(--surface); }
.projects-list { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.project-card { overflow: hidden; background: var(--white); box-shadow: 0 .7rem 2rem rgba(10,29,52,.05); }
.project-card--large { grid-row: span 2; }
.project-card__visual { position: relative; display: grid; height: 16rem; overflow: hidden; place-items: center; color: var(--white); }
.project-card--large .project-card__visual { height: 28rem; }
.project-card__visual > span { position: absolute; z-index: 2; top: 1.1rem; left: 1.2rem; color: rgba(255,255,255,.7); font-family: var(--mono); font-size: .67rem; }
.visual--atlas { background: #0d2340; }
.visual-shape { position: relative; width: 47%; aspect-ratio: 1; border: clamp(1rem, 3vw, 1.8rem) solid var(--blue-light); transform: rotate(45deg); }
.visual-shape::after { position: absolute; inset: 22%; border: 1px solid var(--white); content: ""; }
.visual--pulse { background: #1558f5; }
.pulse-lines { width: 72%; height: 42%; border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: skewY(-14deg); }
.pulse-lines::after { display: block; height: 50%; border-bottom: 3px solid #8eb0ff; content: ""; }
.visual--nexo { background: #e5edf9; }
.nexo-grid { width: 64%; aspect-ratio: 1.4; background-image: linear-gradient(#1558f5 1px, transparent 1px), linear-gradient(90deg, #1558f5 1px, transparent 1px); background-size: 24% 34%; border: 1px solid #1558f5; }
.project-card__body { padding: 1.5rem; }
.project-card__body > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.project-card__type { margin-bottom: .5rem; color: var(--blue); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .8rem; font-size: 1.6rem; }
.project-card__body > p { margin-bottom: 1.3rem; color: var(--text-muted); font-size: .83rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.tags li { padding: .3rem .45rem; color: var(--text-muted); border: 1px solid var(--line); font-family: var(--mono); font-size: .58rem; }

.section--tech { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); color: var(--white); background: #102a48; }
.tech-copy { margin: 0; }
.tech-copy h2 { margin-bottom: 1.5rem; font-size: clamp(2.4rem, 4.4vw, 4.5rem); }
.tech-copy > p:last-child { max-width: 27rem; margin-bottom: 0; color: #b8c7da; font-size: .9rem; }
.tech-cloud { display: flex; flex-wrap: wrap; align-content: center; gap: .75rem; min-height: 21rem; margin: 0; padding: 1.5rem; border: 1px solid rgba(184,199,218,.22); background-image: radial-gradient(circle at 70% 50%, rgba(21,88,245,.18), transparent 45%); }
.tech-cloud span { display: inline-flex; align-items: center; padding: .7rem .85rem; border: 1px solid rgba(184,199,218,.26); color: #c9d8ee; font-family: var(--mono); font-size: .7rem; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.tech-cloud span:nth-child(3n+1) { color: var(--white); border-color: var(--blue-light); background: rgba(21,88,245,.16); }
.tech-cloud span:hover { color: var(--white); border-color: var(--blue-light); background: var(--blue); }

.section--process { background: var(--surface); }
.process-list { padding: 0; margin: clamp(3rem, 6vw, 5rem) auto 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 12% 1fr auto; gap: 2rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding .2s ease; }
.process-list li:hover { padding-right: .6rem; padding-left: .6rem; background: rgba(21,88,245,.035); }
.process-list__number { color: var(--blue); font-family: var(--mono); font-size: .69rem; }
.process-list h3 { margin-bottom: .35rem; font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.process-list p { max-width: 40rem; margin-bottom: 0; color: var(--text-muted); font-size: .88rem; }
.process-list__arrow { color: var(--blue); font-size: 1.35rem; }

.section--contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(22rem, 1.15fr); gap: clamp(3rem, 8vw, 10rem); color: var(--white); background: var(--ink); }
.contact-copy, .contact-form { margin: 0; }
.contact-copy h2 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 4.7vw, 4.8rem); }
.contact-copy > p:not(.eyebrow) { max-width: 29rem; margin-bottom: 2rem; color: #b8c7da; font-size: .92rem; }
.contact-email { display: inline-flex; gap: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--blue-light); color: var(--white); font-weight: 700; }
.contact-email span { color: var(--blue-light); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid rgba(184,199,218,.18); background: #0d2035; }
.form-field { display: grid; gap: .5rem; }
.form-field:nth-child(3), .form-field:nth-child(4), .contact-form .button, .form-note, .form-status { grid-column: 1 / -1; }
.form-field label { color: #c9d8ee; font-size: .78rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: .75rem 0; border: 0; border-bottom: 1px solid rgba(184,199,218,.35); border-radius: 0; outline: 0; color: var(--white); background: transparent; font-size: .88rem; transition: border-color .2s ease; }
.form-field select { color: var(--white); }
.form-field select:invalid { color: #8394aa; }
.form-field option { color: var(--ink); background: var(--white); }
.form-field textarea { min-height: 6rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #75879d; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-light); }
.contact-form .button { justify-self: start; margin-top: .25rem; }
.form-note, .form-status { margin: 0; color: #8498b0; font-size: .7rem; line-height: 1.45; }
.form-status { color: #91e7bd; }

.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem clamp(1.5rem, 5vw, 6rem); color: #8194aa; background: #081625; font-family: var(--mono); font-size: .62rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--white); }

@media (max-width: 75rem) {
  .about-layout { grid-template-columns: .75fr 1.25fr; gap: 3rem; }
  .section--hero { grid-template-columns: 1fr .8fr; }
  .hero-visual { width: 26rem; }
  .projects-list { grid-template-columns: 1fr 1fr; }
  .project-card--large { grid-column: 1 / -1; grid-row: auto; }
  .project-card--large .project-card__visual { height: 23rem; }
}

@media (max-width: 61rem) {
  :root { --sidebar: 0rem; }
  .sidebar { width: min(20rem, 85vw); padding-top: 5.6rem; transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .25s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-header { position: fixed; z-index: 30; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; padding: 0 1.25rem; color: var(--white); background: rgba(11,26,43,.92); backdrop-filter: blur(14px); }
  .brand--compact { font-size: .98rem; }
  .menu-toggle { display: grid; width: 2.65rem; height: 2.65rem; padding: .75rem; border: 1px solid rgba(184,199,218,.3); color: var(--white); background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; align-self: center; height: 1px; background: currentColor; transition: transform .2s ease; }
  body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .scrim { position: fixed; z-index: 19; inset: 0; background: rgba(2,10,19,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.menu-open .scrim { display: block; opacity: 1; pointer-events: auto; }
  main, .footer { margin-left: 0; }
  .section--hero { min-height: 48rem; padding-top: 6.5rem; }
  .section--tech, .section--contact { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .section { padding-right: 1.25rem; padding-left: 1.25rem; }
  .section--hero { display: block; min-height: 48rem; padding-top: 7rem; }
  .hero__copy { padding: 0; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.9rem); letter-spacing: -.065em; }
  .hero__lead { max-width: 33ch; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-visual { width: min(20rem, 73vw); margin-top: 3rem; }
  .hero-visual__frame { width: 100%; }
  .scroll-hint { bottom: 1.5rem; left: 1.25rem; }
  .section-heading--split { display: block; }
  .section-heading__support { margin-top: 1.25rem; }
  .about-layout, .section--tech, .section--contact { gap: 2.5rem; }
  .about-layout { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .value-card h3 { margin-top: 1.6rem; }
  .services-grid, .projects-list { grid-template-columns: 1fr; }
  .service-card { min-height: 19rem; }
  .project-card--large { grid-column: auto; }
  .project-card--large .project-card__visual, .project-card__visual { height: 16rem; }
  .project-card__body > div { display: block; }
  .tech-cloud { min-height: 15rem; }
  .process-list li { grid-template-columns: 2.3rem 1fr; gap: 1rem; }
  .process-list__arrow { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field:nth-child(3), .form-field:nth-child(4), .contact-form .button, .form-note, .form-status { grid-column: auto; }
  .footer { display: grid; padding: 1.25rem; }
}
