:root {
  color-scheme: dark;
  --bg: #020507;
  --surface: #060b10;
  --text: #f4f7fb;
  --muted: #a6b0bb;
  --line: rgba(158, 187, 213, 0.18);
  --blue: #00a9ff;
  --blue-bright: #42c6ff;
  --max-width: 1168px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 72% 0%, rgba(0, 108, 174, 0.13), transparent 34%), radial-gradient(circle at 16% 34%, rgba(0, 40, 68, 0.14), transparent 34%); content: ""; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; }
img { max-width: 100%; }
.container { width: min(calc(100% - 96px), var(--max-width)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; height: var(--header-height); }
.site-header__inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 1.32rem; font-weight: 650; letter-spacing: -0.04em; text-decoration: none; }
.brand--image { width: 124px; }
.brand--image img { width: 100%; height: auto; display: block; mix-blend-mode: screen; }
.brand__mark { width: 23px; height: 29px; display: inline-flex; }
.brand__mark svg { width: 100%; height: 100%; fill: none; stroke: #eaf5ff; stroke-linecap: square; stroke-width: 2.4; }
.brand__mark-accent { stroke: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 54px); margin-left: auto; margin-right: clamp(28px, 6vw, 90px); }
.desktop-nav a, .footer-nav a { color: #d9e2eb; font-size: 0.79rem; text-decoration: none; transition: color 180ms ease; }
.desktop-nav a:hover, .footer-nav a:hover { color: var(--blue-bright); }
.header-cta { min-width: 146px; height: 34px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px 0 28px; border: 1px solid var(--blue); border-radius: 999px; box-shadow: 0 0 18px rgba(0, 169, 255, 0.12); color: var(--text); font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: background 180ms ease, box-shadow 180ms ease; }
.header-cta span:last-child { color: var(--blue-bright); font-size: 1.05rem; }
.header-cta:hover { background: rgba(0, 169, 255, 0.11); box-shadow: 0 0 26px rgba(0, 169, 255, 0.22); }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 5, 7, 0.97) 0%, rgba(2, 5, 7, 0.78) 32%, rgba(2, 5, 7, 0.15) 68%, rgba(2, 5, 7, 0.4) 100%); }
.hero__visual { position: absolute; right: 0; bottom: 0; z-index: -1; width: min(87vw, 1320px); height: auto; min-height: 100%; object-fit: cover; object-position: right center; opacity: 0.93; mix-blend-mode: screen; }
.hero__content { position: relative; z-index: 1; padding-top: 58px; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 14px; color: #d0deea; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.33em; line-height: 1.3; text-transform: uppercase; }
.eyebrow span { width: 27px; height: 1px; display: inline-block; background: currentColor; opacity: 0.65; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(3.7rem, 7vw, 6.8rem); font-weight: 700; letter-spacing: -0.083em; line-height: 0.88; }
.hero h1 span, .services h2 span, .about h2 span, .contact h2 span { color: var(--blue); }
.hero h1 b { color: var(--blue); font-weight: inherit; }
.hero__description { max-width: 390px; margin: 24px 0 0; color: #edf3f8; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.45; }
.hero__actions { display: flex; align-items: center; gap: 30px; margin-top: 28px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 21px; border-radius: 999px; font-size: 0.79rem; font-weight: 700; text-decoration: none; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--light { min-width: 145px; background: #f7f9fb; box-shadow: 0 0 20px rgba(255,255,255,0.15); color: #101419; }
.button--light:hover { background: var(--blue-bright); box-shadow: 0 0 28px rgba(0, 169, 255, 0.28); }
.button--light span { font-size: 1.15rem; font-weight: 400; }
.text-link { position: relative; padding: 10px 0; color: #e5edf3; font-size: 0.83rem; text-decoration: none; }
.text-link::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--blue); content: ""; transform: scaleX(0.22); transform-origin: left; transition: transform 180ms ease; }
.text-link:hover::after { transform: scaleX(1); }
.text-link span { margin-left: 6px; color: var(--blue-bright); }
.scroll-cue { position: absolute; bottom: 28px; left: max(48px, calc((100% - var(--max-width)) / 2)); display: flex; align-items: center; gap: 12px; color: #dae5ec; font-size: 0.58rem; letter-spacing: 0.35em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left top; }
.scroll-cue span:last-child { color: var(--blue-bright); font-size: 1.05rem; letter-spacing: 0; transform: rotate(90deg); }
.hero__note { position: absolute; top: 110px; right: max(24px, calc((100% - var(--max-width)) / 2 + 20px)); margin: 0; color: #e2ebf3; font-size: 0.59rem; font-weight: 700; letter-spacing: 0.34em; line-height: 1.65; text-transform: uppercase; }
.hero__note span, .about__note span { width: 29px; height: 2px; display: block; margin-top: 14px; background: currentColor; }

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section h2 { margin: 0; font-size: clamp(2.15rem, 4.2vw, 3.4rem); font-weight: 680; letter-spacing: -0.07em; line-height: 0.95; }
.section h2 em { color: #6e7b89; font-style: normal; }
.section-link { display: inline-flex; align-items: center; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--blue); color: #edf3f8; font-size: 0.77rem; text-decoration: none; }
.section-link span { color: var(--blue-bright); font-size: 1.05rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(10, 18, 25, 0.76), rgba(2, 6, 8, 0.86)); transition: border-color 220ms ease, transform 220ms ease, background 220ms ease; }
.project-card:hover { border-color: rgba(0, 169, 255, 0.58); background: linear-gradient(145deg, rgba(13, 27, 38, 0.9), rgba(3, 8, 11, 0.95)); transform: translateY(-4px); }
.project-card__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 11px; color: #aab7c4; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }
.project-card__top span:first-child { color: #dce8f1; }
.project-card__media { height: 278px; margin: 0 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(156, 189, 215, 0.12); border-radius: 6px; background: #050a0e; }
.project-card__media img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform 400ms ease; }
.project-card:hover .project-card__media img { transform: scale(1.025); }
.project-card__media--relay { background: #fdf8ff; }
.project-card__media--relay img { width: auto; height: 100%; }
.project-card__media--pitchform img, .project-card__media--formleaf img { object-fit: cover; object-position: center top; }
.project-card__copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 20px; }
.project-card h3 { margin: 0; font-size: 1.26rem; letter-spacing: -0.04em; }
.project-card__copy p { max-width: 200px; margin: 3px 0 0; color: #aab6c1; font-size: 0.82rem; line-height: 1.35; }
.icon-link { width: 30px; height: 30px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-bright); font-size: 0.95rem; text-decoration: none; transition: background 180ms ease, border-color 180ms ease; }
.icon-link:hover { border-color: var(--blue); background: rgba(0, 169, 255, 0.12); }

.services { padding-top: 58px; padding-bottom: 60px; }
.services__layout { display: grid; grid-template-columns: minmax(220px, 0.8fr) 2fr; gap: 52px; align-items: center; }
.services h2 { font-size: clamp(2.2rem, 4vw, 3.55rem); line-height: 0.87; }
.services__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-item { min-height: 150px; padding: 2px 20px 0; border-left: 1px solid var(--line); }
.service-item:first-child { padding-left: 0; border-left: 0; }
.service-item__number { display: block; margin: 0 0 24px; color: #a9b8c5; font-size: 0.58rem; letter-spacing: 0.16em; }
.service-item__icon { height: 30px; color: #f4f8fb; font-size: 2rem; font-weight: 200; line-height: 1; }
.service-item__icon--code { font-size: 1.4rem; letter-spacing: -0.12em; }
.service-item h3 { margin: 17px 0 2px; font-size: 0.85rem; letter-spacing: -0.02em; }
.service-item p { margin: 0; color: #a9b4be; font-size: 0.75rem; line-height: 1.35; }

.about { padding-top: 0; padding-bottom: 0; }
.about__layout { min-height: 350px; display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr); gap: 42px; align-items: stretch; }
.about__copy { padding: 58px 0; }
.about h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 0.94; }
.about__copy > p:not(.eyebrow) { max-width: 335px; margin: 18px 0 24px; color: #c0cbd4; font-size: 0.9rem; line-height: 1.45; }
.about__visual { position: relative; min-height: 350px; overflow: hidden; }
.about__visual > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.88; }
.about__visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 25%, transparent 72%, rgba(2,5,7,0.18) 100%); content: ""; }
.about__mark { position: absolute; right: 12%; bottom: 12%; z-index: 2; width: 110px; height: 110px; border: 1px solid rgba(0, 169, 255, 0.34); border-radius: 50%; object-fit: cover; object-position: center; mix-blend-mode: screen; opacity: 0.72; }
.about__note { position: absolute; top: 53px; right: 3%; z-index: 2; margin: 0; color: #e2ebf3; font-size: 0.59rem; font-weight: 700; letter-spacing: 0.32em; line-height: 1.65; text-transform: uppercase; }

.contact { padding: 44px 0; }
.contact__layout { display: grid; grid-template-columns: 1.05fr 1fr auto; gap: 34px; align-items: center; }
.contact h2 { font-size: clamp(2.25rem, 4vw, 3.3rem); line-height: 0.91; }
.contact__pitch { padding-left: 34px; border-left: 1px solid var(--line); color: #e0e8ef; font-size: 0.95rem; }
.contact .button { min-width: 170px; }
.site-footer { padding: 29px 0 24px; background: rgba(0, 3, 5, 0.72); }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; }
.footer-brand .brand { font-size: 1.32rem; }
.footer-brand p { margin: 7px 0 0; color: #8f9ca8; font-size: 0.76rem; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.footer-socials { display: flex; align-items: center; gap: 15px; }
.footer-socials a { color: #dce6ee; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(158, 187, 213, 0.12); color: #687582; font-size: 0.67rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 56px), var(--max-width)); }
  .desktop-nav { gap: 22px; margin-right: 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card__media { height: min(62vw, 370px); }
  .services__layout { grid-template-columns: 1fr; gap: 35px; }
  .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .service-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .about__layout { grid-template-columns: 0.8fr 1.2fr; }
  .contact__layout { grid-template-columns: 1fr 1fr; }
  .contact__layout .button { justify-self: start; }
}

@media (max-width: 650px) {
  :root { --header-height: 64px; }
  .container { width: min(calc(100% - 36px), var(--max-width)); }
  .site-header { background: linear-gradient(180deg, rgba(2,5,7,0.88), transparent); }
  .site-header__inner { gap: 16px; }
  .brand--image { width: 108px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { width: 40px; height: 40px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 15px; height: 1px; display: block; background: currentColor; transition: transform 180ms ease; }
  .site-header.is-open .menu-toggle > span:not(.sr-only):first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .site-header.is-open .menu-toggle > span:not(.sr-only):last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: absolute; inset: var(--header-height) 0 auto; display: grid; gap: 4px; padding: 14px 18px 20px; background: rgba(3,8,12,0.97); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 180ms ease, transform 180ms ease; }
  .mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid rgba(158, 187, 213, 0.12); color: #eff5f9; font-size: 0.93rem; text-decoration: none; }
  .hero { min-height: 680px; align-items: flex-start; padding-top: 160px; }
  .hero__visual { width: 175vw; min-height: 72%; right: -64vw; bottom: 0; object-position: right bottom; opacity: 0.72; }
  .hero__backdrop { background: linear-gradient(180deg, rgba(2,5,7,0.98) 0%, rgba(2,5,7,0.78) 51%, rgba(2,5,7,0.1) 100%); }
  .hero__content { padding-top: 0; }
  .eyebrow { font-size: 0.52rem; letter-spacing: 0.24em; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero__description { max-width: 300px; margin-top: 20px; font-size: 0.98rem; }
  .hero__actions { gap: 22px; margin-top: 24px; }
  .button { min-height: 44px; }
  .scroll-cue, .hero__note { display: none; }
  .section { padding: 56px 0; }
  .section-heading { display: block; }
  .section-link { margin-top: 20px; }
  .project-grid { margin-top: 26px; }
  .project-card__media { height: 260px; }
  .services { padding-top: 44px; padding-bottom: 44px; }
  .services__list { row-gap: 24px; }
  .service-item { min-height: 140px; padding-right: 12px; padding-left: 16px; }
  .service-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .service-item__number { margin-bottom: 18px; }
  .service-item h3 { font-size: 0.8rem; }
  .service-item p { font-size: 0.69rem; }
  .about__layout { display: block; }
  .about__copy { padding: 56px 0 34px; }
  .about__visual { min-height: 255px; margin: 0 -18px; }
  .about__visual::after { background: linear-gradient(90deg, var(--bg) 0%, transparent 30%, rgba(2,5,7,0.25) 100%); }
  .about__mark { right: 22%; bottom: 10%; width: 82px; height: 82px; }
  .about__note { top: 30px; right: 4%; font-size: 0.5rem; }
  .contact__layout { display: block; }
  .contact__pitch { margin: 28px 0; padding: 0; border: 0; font-size: 0.9rem; }
  .site-footer__top { display: block; }
  .footer-nav { justify-content: flex-start; gap: 22px; margin-top: 25px; }
  .footer-socials { margin-top: 22px; }
  .site-footer__bottom { display: block; line-height: 1.8; }
  .site-footer__bottom span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
