:root {
  --black: #080a0d;
  --graphite: #11151b;
  --surface: #171c24;
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #101318;
  --muted: #68717f;
  --line: rgba(16, 19, 24, .13);
  --line-dark: rgba(255, 255, 255, .14);
  --blue: #1a63ff;
  --blue-soft: #6e9bff;
  --amber: #d9a45d;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(100% - 48px, 1220px); margin-inline: auto; }
.page-grid { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035; background-image: linear-gradient(rgba(0,0,0,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.5) 1px, transparent 1px); background-size: 64px 64px; mix-blend-mode: multiply; }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; height: 96px; color: var(--white); }
.header-inner { width: 100%; height: 100%; padding-inline: clamp(24px, 3.25vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.wordmark-symbol { display: block; width: 56px; height: 34px; object-fit: contain; }
.wordmark > span:last-child { display: flex; align-items: center; gap: 12px; }
.wordmark strong { font-size: 1.12rem; line-height: 1; letter-spacing: .08em; }
.wordmark small { padding-left: 12px; border-left: 1px solid currentColor; opacity: .55; font-size: .66rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .09em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .86rem; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.76); transition: color .2s ease; }
.site-nav a:hover { color: var(--white); }
.site-nav .nav-action { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: var(--white); }
.menu-button { display: none; width: 46px; height: 46px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: var(--white); transition: transform .2s ease; }

.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--black); }
.hero-image { position: absolute; inset: 0; background: url("/assets/cpui-engineering-hero.webp") 58% center / cover no-repeat; transform: scale(1.015); animation: hero-in 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,12,.96) 0%, rgba(6,8,12,.82) 32%, rgba(6,8,12,.28) 63%, rgba(6,8,12,.08) 100%), linear-gradient(0deg, rgba(6,8,12,.84) 0%, transparent 42%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 154px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kicker span { width: 30px; height: 2px; background: var(--blue); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 980px; margin: 0; font-size: clamp(3.2rem, 7vw, 7.1rem); line-height: .9; letter-spacing: -.065em; font-weight: 670; }
h1 em { color: var(--blue-soft); font-style: normal; font-weight: 420; }
.hero-lead { max-width: 660px; margin: 30px 0 0; color: rgba(255,255,255,.73); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 56px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: #2b70ff; }
.button-secondary { border: 1px solid rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.hero-index { position: absolute; z-index: 2; left: 50%; bottom: 0; display: grid; grid-template-columns: .6fr repeat(3, 1fr); transform: translateX(-50%); border-top: 1px solid rgba(255,255,255,.18); }
.hero-index span { min-height: 72px; display: flex; align-items: center; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.52); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-index span:first-child { padding-left: 0; color: var(--blue-soft); }

.section { padding-top: clamp(86px, 10vw, 150px); padding-bottom: clamp(86px, 10vw, 150px); }
.section-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.section-label span { color: var(--blue); }
.section-label.light { color: rgba(255,255,255,.48); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(50px, 9vw, 130px); margin-top: 55px; }
.statement h2, .approach h2, .contact h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.055em; font-weight: 620; }
.statement-copy { padding-top: 8px; }
.statement-copy p { margin: 0 0 25px; color: #4f5865; font-size: 1.08rem; line-height: 1.7; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles article { min-height: 190px; padding: 28px 30px 28px 0; }
.principles article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.principles span { font-weight: 750; }
.principles p { max-width: 300px; margin: 48px 0 0; color: var(--muted); line-height: 1.55; }

.services { color: var(--white); background: var(--graphite); }
.section-head { display: grid; grid-template-columns: .55fr 1.5fr .8fr; gap: 40px; align-items: end; }
.section-head h2 { max-width: 660px; margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; font-weight: 560; }
.section-head > p { margin: 0; color: rgba(255,255,255,.54); line-height: 1.6; }
.service-list { margin-top: 80px; border-top: 1px solid var(--line-dark); }
.service-row { display: grid; grid-template-columns: .34fr 1.15fr 1fr 32px; gap: 28px; align-items: center; min-height: 132px; border-bottom: 1px solid var(--line-dark); transition: background .2s ease, padding .2s ease; }
.service-row:hover { padding-inline: 18px; background: rgba(255,255,255,.035); }
.service-number { color: var(--blue-soft); font-size: .76rem; }
.service-row h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 590; letter-spacing: -.025em; }
.service-row p { margin: 0; color: rgba(255,255,255,.54); line-height: 1.55; }
.service-mark { color: var(--blue-soft); font-size: 1.2rem; }

.approach-layout { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr); gap: clamp(60px, 10vw, 150px); margin-top: 55px; }
.approach-intro { position: sticky; top: 42px; align-self: start; }
.approach-intro p { max-width: 520px; margin: 26px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--blue); font-size: .75rem; font-weight: 750; }
.steps strong { font-size: 1.12rem; }
.steps p { margin: 9px 0 0; color: var(--muted); line-height: 1.55; }

.project-focus { position: relative; overflow: hidden; color: #252525; background: #eae5df; isolation: isolate; }
.project-focus::before { position: absolute; inset: 0; z-index: -2; content: ""; background: linear-gradient(118deg, rgba(255,255,255,.62), transparent 46%), radial-gradient(circle at 84% 18%, rgba(222,229,76,.23), transparent 28%); }
.focus-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .48fr 1.35fr .82fr; gap: 40px; align-items: center; }
.pl-decor { position: absolute; z-index: -1; display: block; pointer-events: none; user-select: none; }
.pl-orbit { width: clamp(260px, 30vw, 470px); top: -92px; right: 6%; opacity: .72; transform: rotate(18deg); }
.pl-ellipse { width: clamp(112px, 11vw, 178px); right: 31%; bottom: -48px; opacity: .9; transform: rotate(-11deg); }
.pl-star { width: clamp(72px, 8vw, 126px); top: 17%; right: 39%; opacity: .2; transform: rotate(12deg); }
.pl-label { align-self: start; color: rgba(37,37,37,.58); }
.pl-label span { padding: 8px 10px; color: #252525; background: #dee54c; border-radius: 999px; }
.focus-tag { margin: 0 0 17px; color: rgba(37,37,37,.58); font-size: .78rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.pl-lockup { display: flex; align-items: center; gap: 16px; width: fit-content; margin: 0 0 28px; }
.pl-logo { display: block; width: 106px; height: 58px; object-fit: cover; }
.pl-lockup span { font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 900; line-height: .9; letter-spacing: -.055em; }
.pl-lockup strong { color: #252525; font-weight: inherit; }
.focus-copy h2 { max-width: 680px; margin: 0 0 22px; font-size: clamp(2.7rem, 5.1vw, 5.4rem); line-height: .92; letter-spacing: -.065em; font-weight: 650; }
.focus-copy > p:last-child { max-width: 640px; margin-bottom: 0; color: rgba(37,37,37,.68); font-size: 1.05rem; line-height: 1.62; }
.focus-formats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(37,37,37,.2); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.28); backdrop-filter: blur(7px); }
.focus-formats span { min-height: 120px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(37,37,37,.6); font-size: .75rem; font-weight: 740; text-transform: uppercase; }
.focus-formats span + span { border-left: 1px solid rgba(37,37,37,.18); }
.focus-formats strong { color: #252525; font-size: 2.1rem; line-height: 1.1; }

.contact-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(60px, 10vw, 150px); margin-top: 55px; }
.contact-copy > p { max-width: 480px; margin: 26px 0 0; color: var(--muted); font-size: 1.07rem; line-height: 1.65; }
.direct-contacts { display: grid; gap: 10px; margin-top: 44px; }
.direct-contacts a { width: fit-content; color: var(--ink); font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 650; text-underline-offset: 5px; text-decoration-color: rgba(26,99,255,.35); }
.contact-form { padding: 34px; border-radius: var(--radius); color: var(--white); background: var(--graphite); box-shadow: 0 32px 90px rgba(8,10,13,.14); }
.contact-form label { display: grid; gap: 9px; margin-bottom: 22px; color: rgba(255,255,255,.58); font-size: .78rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; outline: 0; background: rgba(255,255,255,.045); color: var(--white); font-size: 1rem; text-transform: none; transition: border .2s ease, background .2s ease; }
.contact-form input { min-height: 56px; padding: 0 15px; }
.contact-form textarea { min-height: 130px; padding: 15px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.31); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-soft); background: rgba(255,255,255,.07); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.form-footer p { max-width: 310px; margin: 0; color: rgba(255,255,255,.37); font-size: .72rem; line-height: 1.45; }
.button-submit { flex: 0 0 auto; color: var(--white); background: var(--blue); }
.button-submit:disabled { opacity: .5; cursor: wait; }
.form-status { min-height: 24px; margin: 18px 0 0; color: var(--blue-soft); font-size: .9rem; }
.form-status.error { color: #ff9d8c; }

.site-footer { padding: 54px 0 26px; color: var(--white); background: var(--black); }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-logo-link { display: block; border-radius: 14px; background: var(--white); overflow: hidden; }
.footer-logo-lockup { display: block; width: 190px; height: 118px; object-fit: contain; object-position: center; }
.to-top { color: rgba(255,255,255,.62); text-underline-offset: 5px; }
.footer-bottom { display: grid; grid-template-columns: 1.2fr .9fr 1fr; gap: 30px; padding-top: 24px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.4); font-size: .73rem; line-height: 1.45; }

@keyframes hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 0; z-index: -1; padding: 120px 26px 40px; display: flex; flex-direction: column; align-items: stretch; gap: 0; opacity: 0; visibility: hidden; background: rgba(8,10,13,.98); transition: opacity .2s ease, visibility .2s ease; }
  .site-nav.open { z-index: 18; opacity: 1; visibility: visible; }
  .site-nav a { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.4rem; }
  .site-nav .nav-action { min-height: 0; padding: 20px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .menu-button { position: relative; z-index: 25; display: block; }
  .menu-button.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .section-head, .focus-grid { grid-template-columns: 1fr; align-items: start; }
  .section-head h2 { margin-top: 20px; }
  .section-head > p { max-width: 560px; }
  .focus-formats { max-width: 500px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1220px); }
  .header-inner { width: 100%; padding-inline: 16px; }
  .site-header { height: 78px; }
  .wordmark small { display: none; }
  .hero { min-height: 760px; align-items: flex-end; }
  .hero-image { background-position: 66% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,8,12,.95) 0%, rgba(6,8,12,.68) 82%, rgba(6,8,12,.45) 100%), linear-gradient(0deg, rgba(6,8,12,.92) 0%, transparent 58%); }
  .hero-content { padding-bottom: 126px; }
  .kicker { max-width: 300px; line-height: 1.45; }
  h1 { font-size: clamp(3rem, 13.7vw, 5.4rem); }
  .hero-lead { margin-top: 24px; font-size: 1rem; }
  .hero-actions { margin-top: 30px; }
  .button { min-height: 54px; padding-inline: 19px; }
  .hero-index { grid-template-columns: 48px repeat(3, 1fr); }
  .hero-index span { min-height: 58px; padding: 0 8px; font-size: .59rem; }
  .statement-grid, .approach-layout, .contact-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .statement h2, .approach h2, .contact h2 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .principles { grid-template-columns: 1fr; margin-top: 55px; }
  .principles article { min-height: 0; padding: 24px 0; }
  .principles article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .principles p { margin-top: 16px; }
  .service-list { margin-top: 54px; }
  .service-row { grid-template-columns: 42px 1fr 20px; gap: 12px; padding: 22px 0; }
  .service-row p { grid-column: 2 / -1; }
  .service-row:hover { padding-inline: 0; }
  .approach-intro { position: static; }
  .project-focus .section-label { margin-bottom: 26px; }
  .focus-copy h2 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .pl-lockup { margin-bottom: 24px; }
  .pl-logo { width: 82px; height: 46px; }
  .pl-orbit { top: 4%; right: -88px; opacity: .5; }
  .pl-ellipse { right: -36px; bottom: 8%; opacity: .7; }
  .pl-star { top: 40%; right: 8%; opacity: .13; }
  .contact-form { padding: 24px 18px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .button-submit { width: 100%; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 440px) {
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .focus-formats span { min-height: 96px; }
  .focus-formats strong { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
