@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090b0e;
  --surface: #11151b;
  --surface-2: #161c25;
  --line: rgba(233, 240, 247, 0.14);
  --line-strong: rgba(233, 240, 247, 0.25);
  --text: #f1f4f5;
  --muted: #9ca6af;
  --blue: #4b75ff;
  --blue-bright: #7895ff;
  --lime: #d7ff75;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-noise { position: fixed; inset: 0; pointer-events: none; opacity: 0.045; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.section-pad { padding-left: 7vw; padding-right: 7vw; }
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 7vw; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--bg); background: var(--lime); font-family: var(--sans); font-size: 16px; font-weight: 800; }
.brand-name b { color: var(--blue-bright); font-weight: 400; }
.main-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 42px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.main-nav a, .top-contact, .text-link, .contact-link, .footer a { transition: color 180ms ease; }
.main-nav a:hover, .top-contact:hover, .text-link:hover, .footer a:hover { color: var(--lime); }
.top-contact { display: inline-flex; gap: 9px; align-items: center; color: var(--text); font-size: 13px; }
.top-contact span { color: var(--lime); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr); gap: 7vw; align-items: center; min-height: 790px; padding-top: 92px; padding-bottom: 106px; border-bottom: 1px solid var(--line); background: linear-gradient(108deg, rgba(13, 20, 32, 0.88), rgba(9, 11, 14, 0.98) 62%); }
.hero:after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .6; }
.eyebrow { margin: 0 0 26px; color: var(--blue-bright); font-family: var(--mono); font-size: 11px; letter-spacing: 0; }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; margin-right: 9px; background: var(--lime); vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0; }
h1 { max-width: 720px; margin-bottom: 28px; font-size: 70px; line-height: 1.03; }
h1 em, h2 em { color: var(--blue-bright); font-style: normal; }
.hero-lead { max-width: 470px; margin-bottom: 40px; color: #bcc4cb; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 18px; min-height: 50px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.button-primary:hover { background: #e4ff9f; }
.button-ghost { color: var(--text); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: var(--blue-bright); background: rgba(75,117,255,.1); }
.button-icon { font-size: 18px; font-weight: 400; line-height: 1; }
.hero-note { display: flex; gap: 18px; align-items: flex-start; margin-top: 78px; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.hero-note > span:first-child { color: var(--lime); }
.hero-visual { position: relative; min-height: 510px; border: 1px solid var(--line-strong); background: rgba(14, 20, 30, 0.7); overflow: hidden; }
.visual-topline { position: absolute; z-index: 2; inset: 20px 22px auto; display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.signal-grid { position: absolute; inset: 0; opacity: .58; background-image: linear-gradient(rgba(99, 126, 173, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 126, 173, .15) 1px, transparent 1px); background-size: 58px 58px; transform: perspective(500px) rotateX(58deg) scale(1.25) translateY(90px); transform-origin: center bottom; }
.hero-visual:before { content: ''; position: absolute; inset: 24% 7% auto; height: 1px; background: var(--line-strong); box-shadow: 0 120px var(--line); }
.orbit-line { position: absolute; border: 1px solid rgba(120, 149, 255, .55); border-radius: 50%; transform: rotate(-21deg); }
.orbit-line-one { width: 80%; height: 57%; top: 23%; left: 11%; }
.orbit-line-two { width: 62%; height: 43%; top: 31%; left: 19%; border-color: rgba(215, 255, 117, .38); transform: rotate(38deg); }
.visual-core { position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 132px; height: 132px; top: 36%; left: calc(50% - 66px); padding: 17px; color: var(--bg); background: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 500; box-shadow: 0 0 0 12px rgba(215,255,117,.07), 0 0 50px rgba(215,255,117,.12); }
.core-index { align-self: flex-end; font-size: 18px; }
.visual-node { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 1px solid var(--line-strong); background: rgba(9,11,14,.86); font-family: var(--mono); }
.visual-node span { color: var(--lime); font-size: 10px; }
.visual-node b { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.visual-node small { color: var(--muted); font-size: 10px; }
.node-idea { top: 24%; left: 8%; }
.node-build { top: 22%; right: 8%; }
.node-launch { right: 12%; bottom: 19%; }
.visual-caption { position: absolute; right: 22px; bottom: 20px; left: 22px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.caption-line { display: inline-block; width: 20px; height: 1px; background: var(--lime); }
.intro-strip { display: grid; grid-template-columns: 13% 1fr auto; gap: 28px; align-items: start; padding-top: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.strip-index { color: var(--lime); font-family: var(--mono); font-size: 11px; }
.intro-strip p { max-width: 740px; margin: 0; font-size: 25px; line-height: 1.35; }
.strip-arrow { color: var(--blue-bright); font-size: 29px; line-height: 1; }
.projects, .capabilities, .approach, .about, .future { padding-top: 150px; padding-bottom: 150px; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 68px; }
.section-heading h2 { margin-bottom: 24px; font-size: 54px; line-height: 1.08; }
.section-heading > p:last-child { max-width: 540px; color: var(--muted); font-size: 17px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 38px 6vw; margin-bottom: 24px; padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.project:last-child { margin-bottom: 0; }
.project-main { display: flex; flex-direction: column; align-items: flex-start; min-height: 320px; }
.project-topline, .visual-card-header, .service-footer, .pelmen-footer { display: flex; justify-content: space-between; width: 100%; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.project-topline span:last-child { color: var(--lime); }
.project h3 { margin: 46px 0 13px; font-size: 56px; line-height: 1; }
.project-summary { max-width: 560px; color: #c9d0d5; font-size: 18px; line-height: 1.45; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 35px; }
.project-tags span { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.text-link { display: inline-flex; gap: 11px; margin-top: 26px; padding-bottom: 5px; border-bottom: 1px solid var(--blue-bright); color: var(--text); font-size: 13px; }
.text-link span { color: var(--lime); }
.project-visual { position: relative; min-height: 320px; overflow: hidden; }
.acwos-visual { padding: 20px; border: 1px solid rgba(120,149,255,.45); background: linear-gradient(130deg, #111b37, #0e121d 72%); }
.status { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); }
.status i { display: inline-block; width: 5px; height: 5px; background: var(--lime); }
.service-word { position: absolute; top: 31%; left: 14%; color: #f3f5f6; font-size: 69px; font-weight: 800; line-height: .78; letter-spacing: 0; }
.service-word span { color: var(--blue-bright); }
.service-rule { position: absolute; top: 53%; right: 14%; left: 14%; height: 1px; background: rgba(215,255,117,.6); transform: rotate(-9deg); }
.service-footer { position: absolute; right: 20px; bottom: 20px; left: 20px; }
.pelmen-visual { padding: 20px; border: 1px solid rgba(215,255,117,.5); background: linear-gradient(130deg, #2c2920, #141410 72%); }
.pelmen-stamp { position: absolute; top: 22%; left: 15%; padding: 20px 24px; border: 1px solid var(--lime); color: var(--lime); font-family: var(--mono); font-size: 15px; line-height: 1.05; transform: rotate(-7deg); }
.pelmen-stamp strong { color: var(--text); font-family: var(--sans); font-size: 24px; font-weight: 700; }
.pelmen-lines { position: absolute; right: -15%; bottom: 5%; width: 80%; height: 70%; opacity: .35; background: repeating-linear-gradient(122deg, transparent 0 17px, var(--lime) 18px 19px, transparent 20px 38px); transform: rotate(-10deg); }
.pelmen-footer { position: absolute; right: 20px; bottom: 20px; left: 20px; }
.project-details { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr 1.15fr 1fr; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-label { color: var(--blue-bright); font-family: var(--mono); font-size: 10px; }
.project-details p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.split-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 8vw; max-width: none; align-items: end; }
.split-heading > p { margin: 0 0 4px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability { position: relative; min-height: 250px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background 180ms ease; }
.capability:hover { background: var(--surface); }
.capability-number { color: var(--lime); font-family: var(--mono); font-size: 11px; }
.capability h3 { margin: 47px 0 11px; font-size: 23px; }
.capability p { max-width: 290px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.capability-arrow { position: absolute; right: 25px; bottom: 23px; color: var(--blue-bright); font-size: 22px; }
.workflow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px 5vw; padding-top: 28px; }
.workflow-line { position: absolute; top: 45px; right: 3%; left: 3%; height: 1px; background: linear-gradient(90deg, var(--lime), var(--blue), var(--lime)); opacity: .7; }
.workflow-step { position: relative; }
.workflow-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 29px; color: var(--bg); background: var(--lime); font-family: var(--mono); font-size: 10px; }
.workflow-step h3 { margin: 0 0 8px; font-size: 19px; }
.workflow-step p { max-width: 250px; margin: 0; color: var(--muted); font-size: 14px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .67fr); gap: 9vw; align-items: center; }
.about-copy h2 { margin-bottom: 30px; font-size: 52px; line-height: 1.08; }
.about-copy > p:not(.eyebrow) { max-width: 610px; color: #c1c9cf; font-size: 17px; }
.about-copy > p + p { color: var(--muted); font-size: 15px; }
.about-signature { display: flex; gap: 15px; align-items: center; margin-top: 45px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.signature-line { width: 42px; height: 1px; background: var(--lime); }
.portrait-wrap { margin: 0; }
.portrait-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: #171411; }
.portrait-frame:after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(215,255,117,.35); pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: auto; filter: saturate(.84) contrast(1.04); }
.portrait-wrap figcaption { margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; }
.future-list { border-top: 1px solid var(--line); }
.future-item { display: grid; grid-template-columns: 8% 1fr auto; gap: 25px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.future-item > span, .future-item small { color: var(--blue-bright); font-family: var(--mono); font-size: 11px; }
.future-item p { margin: 0; font-size: 18px; }
.future-item small { color: var(--muted); }
.contact { padding-top: 118px; padding-bottom: 118px; }
.contact-panel { position: relative; padding: 75px 7vw; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(115deg, #101b37, #11151b 68%); }
.contact-panel:after { content: 'LET\A BUILD'; position: absolute; right: 5%; bottom: -18px; color: rgba(120,149,255,.1); white-space: pre; font-size: 95px; font-weight: 800; line-height: .78; text-align: right; }
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h2 { margin-bottom: 22px; font-size: 60px; line-height: 1.02; }
.contact-panel > p:not(.eyebrow) { max-width: 500px; margin-bottom: 42px; color: #c2cad3; font-size: 17px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-link { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; min-width: 300px; padding: 16px 18px; border: 1px solid var(--line-strong); background: rgba(9,11,14,.35); }
.contact-link:hover { border-color: var(--lime); }
.contact-link span:first-child { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.contact-link b { font-size: 13px; font-weight: 600; }
.contact-link span:last-child { color: var(--lime); font-size: 18px; }
.footer { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 30px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.footer a { color: var(--text); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 60px; min-height: 0; padding-top: 90px; }
  .hero-visual { width: min(100%, 680px); min-height: 460px; }
  .project { grid-template-columns: 1fr; }
  .project-main { min-height: 0; }
  .project-visual { min-height: 320px; }
  .project-details { grid-template-columns: repeat(3, 1fr); }
  .about { gap: 6vw; }
}

@media (max-width: 760px) {
  .section-pad { padding-left: 5vw; padding-right: 5vw; }
  .topbar { height: 72px; padding: 0 5vw; }
  .brand-name { display: none; }
  .main-nav { gap: 15px; margin-right: 15px; font-size: 10px; }
  .top-contact { font-size: 11px; }
  h1 { font-size: 49px; }
  .hero { padding-top: 76px; padding-bottom: 78px; }
  .hero-lead { font-size: 17px; }
  .hero-note { margin-top: 52px; }
  .hero-visual { min-height: 390px; }
  .visual-core { width: 105px; height: 105px; left: calc(50% - 52px); font-size: 9px; }
  .visual-node { padding: 8px 9px; }
  .visual-node b { font-size: 12px; }
  .visual-node small { font-size: 9px; }
  .node-idea { top: 23%; left: 5%; }
  .node-build { top: 18%; right: 5%; }
  .node-launch { right: 6%; bottom: 16%; }
  .visual-caption { right: 14px; bottom: 14px; left: 14px; font-size: 9px; }
  .intro-strip { grid-template-columns: 40px 1fr; gap: 18px; }
  .strip-arrow { display: none; }
  .intro-strip p { font-size: 20px; }
  .projects, .capabilities, .approach, .about, .future { padding-top: 96px; padding-bottom: 96px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .about-copy h2 { font-size: 40px; }
  .split-heading, .about { grid-template-columns: 1fr; gap: 38px; }
  .project { padding: 22px; }
  .project h3 { margin-top: 38px; font-size: 43px; }
  .project-summary { font-size: 16px; }
  .project-details { grid-template-columns: 1fr; gap: 23px; }
  .project-visual { min-height: 265px; }
  .service-word { font-size: 55px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability { min-height: 230px; padding: 19px; }
  .capability h3 { margin-top: 37px; font-size: 19px; }
  .capability p { font-size: 13px; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 50px 25px; }
  .workflow-line { display: none; }
  .workflow-step > span { margin-bottom: 18px; }
  .workflow-step h3 { font-size: 17px; }
  .workflow-step p { font-size: 13px; }
  .about-copy > p:not(.eyebrow) { font-size: 16px; }
  .portrait-wrap { width: min(100%, 430px); }
  .future-item { grid-template-columns: 32px 1fr; gap: 15px; }
  .future-item small { grid-column: 2; }
  .contact { padding-top: 80px; padding-bottom: 80px; }
  .contact-panel { padding: 50px 25px; }
  .contact-panel h2 { font-size: 43px; }
  .contact-panel > p:not(.eyebrow) { font-size: 15px; }
  .contact-link { min-width: 0; width: 100%; }
  .footer { flex-wrap: wrap; gap: 13px; }
}

@media (max-width: 460px) {
  .main-nav { display: none; }
  .top-contact { margin-left: auto; }
  h1 { font-size: 42px; }
  .hero-visual { min-height: 330px; }
  .visual-topline { inset: 14px; }
  .visual-node small { display: none; }
  .node-idea { top: 22%; }
  .node-build { top: 18%; }
  .node-launch { bottom: 18%; }
  .visual-caption { font-size: 8px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 205px; }
  .workflow { grid-template-columns: 1fr; gap: 34px; }
  .workflow-step > span { margin-bottom: 13px; }
  .contact-panel:after { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 760px) {
  .contact-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Contact CTA + modal */
.contact-link.contact-modal-trigger {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: rgba(9,11,14,.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.contact-link.contact-modal-trigger b { color: var(--text); }
.contact-link.contact-modal-trigger span:first-child { color: var(--muted); font: 10px var(--mono); }
.contact-link.contact-modal-trigger span:last-child { color: var(--lime); font-size: 18px; }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(4,7,11,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-modal-panel {
  position: relative;
  z-index: 2;
  width: min(620px,100%);
  padding: 52px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(125deg,#101b37,#11151b 72%);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  transform: translateY(18px) scale(.98);
  transition: transform 220ms ease;
}
.contact-modal.is-open .contact-modal-panel { transform: translateY(0) scale(1); }
.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(9,11,14,.35);
  font: 400 25px/1 var(--sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.contact-modal-close:hover { border-color: var(--lime); color: var(--lime); }
.contact-modal-panel h2 { margin: 0 0 18px; font-size: 52px; line-height: 1.02; }
.contact-modal-lead { margin: 0 0 30px; color: #c2cad3; font-size: 16px; }
.contact-modal-links { display: grid; gap: 10px; }
.contact-modal-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(9,11,14,.35);
}
.contact-modal-link span:first-child { color: var(--muted); font: 10px var(--mono); }
.contact-modal-link b { color: var(--text); font-size: 13px; font-weight: 600; }
.contact-modal-link span:last-child { color: var(--lime); font-size: 18px; }
body.contact-modal-open { overflow: hidden; }
@media (max-width:760px) {
  .contact-modal { padding: 16px; }
  .contact-modal-panel { padding: 44px 22px 24px; }
  .contact-modal-panel h2 { font-size: 42px; }
  .contact-modal-link { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .contact-modal-link span:first-child, .contact-modal-link b { grid-column: 1; }
  .contact-modal-link span:last-child { grid-column: 2; grid-row: 1 / span 2; }
}


/* Services page */
.services-page { max-width: 1180px; margin: 0 auto; padding: 10rem 2rem 6rem; }
.services-hero { max-width: 850px; padding-bottom: 5rem; }
.services-hero h1 { margin: .8rem 0 1.4rem; font-size: clamp(2.8rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.055em; }
.services-hero h1 span { opacity: .48; }
.services-hero p { max-width: 650px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.eyebrow { font: 600 .72rem/1 var(--mono, "DM Mono", monospace); letter-spacing: .12em; color: var(--muted); }

.services-list { display: grid; gap: 1rem; }
.service-card { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem; background: var(--surface, #11151b); border: 1px solid rgba(255,255,255,.07); border-radius: 24px; }
.service-number { font: 600 1rem/1 var(--mono, "DM Mono", monospace); color: var(--blue-bright, #7895ff); padding-top: .3rem; }
.service-main h2 { margin: 0 0 .55rem; font-size: clamp(1.65rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.service-price { font: 600 .95rem/1.4 var(--mono, "DM Mono", monospace); color: var(--blue-bright, #7895ff); }
.service-price span { color: var(--muted); }
.service-top { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.service-tag { padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: var(--muted); font: 600 .62rem/1 var(--mono, "DM Mono", monospace); white-space: nowrap; }
.service-main > p { max-width: 760px; margin: 1.5rem 0; color: var(--muted); line-height: 1.7; font-size: 1rem; }
.service-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1.6rem 0; background: rgba(255,255,255,.07); border-radius: 16px; overflow: hidden; }
.service-details > div { padding: 1rem; background: var(--surface-2, #161c25); }
.service-details span { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .75rem; }
.service-details strong { font-size: .9rem; }
.service-details a { color: var(--text); text-decoration: none; }
.service-note { max-width: 800px; padding: 1rem 1.1rem; border-left: 2px solid var(--blue, #4b75ff); background: rgba(75,117,255,.06); color: var(--muted); line-height: 1.65; font-size: .9rem; }
.service-note strong { color: var(--text); }
.service-cta { margin-top: 1.5rem; padding: .85rem 1.15rem; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: transparent; color: var(--text) !important; font: 600 .85rem/1 var(--mono, "DM Mono", monospace); cursor: pointer; text-decoration: none; }
.service-cta:hover { background: rgba(255,255,255,.06); }
.services-bottom { margin-top: 1rem; padding: 2.5rem; border-radius: 24px; background: var(--surface-2, #161c25); display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.services-bottom h2 { margin: .8rem 0 .7rem; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.services-bottom p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.65; }
.service-cta-large { margin-top: 0; white-space: nowrap; }

.contact-modal { position: fixed; inset: 0; z-index: 1000; display: none; isolation: isolate; }
.contact-modal.is-open { display: block; }
.contact-modal-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(3,5,8,.76); backdrop-filter: blur(12px); }
.contact-modal-panel { position: relative; z-index: 2; width: min(560px, calc(100% - 2rem)); margin: 12vh auto 0; padding: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: var(--surface, #11151b); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.contact-modal-close { position: absolute; top: .8rem; right: .9rem; border: 0; background: transparent; color: var(--text) !important; font-size: 1.8rem; cursor: pointer; }
.contact-modal-panel h2 { margin: .9rem 0 .6rem; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; }
.contact-modal-panel p { color: var(--muted); }
.contact-modal-links { display: grid; gap: .7rem; margin-top: 1.5rem; }
.contact-modal-links a { display: flex; justify-content: space-between; padding: 1rem; border-radius: 14px; background: var(--surface-2, #161c25); color: var(--text); text-decoration: none; }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .services-page { padding: 7rem 1rem 4rem; }
  .service-card { grid-template-columns: 1fr; padding: 1.3rem; gap: .7rem; border-radius: 18px; }
  .service-number { padding-top: 0; }
  .service-top { flex-direction: column; gap: 1rem; }
  .service-details { grid-template-columns: 1fr; }
  .services-bottom { padding: 1.4rem; border-radius: 18px; align-items: flex-start; flex-direction: column; }
  .service-cta-large { margin-top: .5rem; }
}


/* =========================================================
   SERVICES PAGE — visual layer
   ========================================================= */
.services-body {
  --services-bg: #090b0e;
  --services-surface: #10141a;
  --services-surface-2: #151b23;
  --services-text: #f1f4f5;
  --services-muted: #929ca7;
  --services-blue: #4b75ff;
  --services-blue-bright: #7895ff;
  --services-lime: #d7ff75;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 7%, rgba(75,117,255,.09), transparent 29rem),
    radial-gradient(circle at 8% 46%, rgba(75,117,255,.045), transparent 24rem),
    var(--services-bg);
  color: var(--services-text);
}

.services-body a { color: inherit; }
.services-body button { font: inherit; }


.services-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.4rem 2rem 5rem;
}

.services-hero {
  padding: 1.5rem 0 4rem;
}
.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 5rem;
  align-items: end;
}
.services-kicker {
  color: var(--services-muted);
  font: 600 .67rem/1.2 "DM Mono", monospace;
  letter-spacing: .14em;
}
.services-hero h1 {
  margin: .95rem 0 0;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.065em;
}
.services-hero h1 span { color: var(--services-blue-bright); opacity: 1; }
.services-hero-side {
  padding-bottom: .25rem;
}
.services-index {
  color: var(--services-blue-bright);
  font: 500 .75rem/1 "DM Mono", monospace;
  margin-bottom: 1rem;
}
.services-hero-side p {
  margin: 0;
  color: var(--services-muted);
  font-size: .92rem;
  line-height: 1.65;
}
.services-hero-line {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.09);
  color: var(--services-muted);
  font: 500 .61rem/1.2 "DM Mono", monospace;
  letter-spacing: .1em;
}
.services-hero-line span:first-child { color: var(--services-blue-bright); }

.services-list { display: grid; gap: .9rem; }
.service-item {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.service-item:hover {
  transform: translateY(-2px);
  border-color: rgba(120,149,255,.22);
  background: linear-gradient(135deg, rgba(75,117,255,.07), rgba(255,255,255,.014));
}
.service-item-featured {
  border-color: rgba(120,149,255,.2);
  background:
    radial-gradient(circle at 90% 0%, rgba(75,117,255,.11), transparent 24rem),
    var(--services-surface);
}
.service-item-development { opacity: .76; }
.service-item-number {
  padding-top: .25rem;
  color: var(--services-blue-bright);
  font: 600 .75rem/1 "DM Mono", monospace;
}
.service-item-content { min-width: 0; }
.service-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.service-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  font: 600 .58rem/1 "DM Mono", monospace;
  letter-spacing: .11em;
}
.service-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.service-status-active { color: var(--services-lime); }
.service-status-dev { color: var(--services-muted); }
.service-item h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.service-price {
  padding-top: 1.55rem;
  white-space: nowrap;
  color: var(--services-blue-bright);
  font: 600 .78rem/1.3 "DM Mono", monospace;
}
.service-price span { color: var(--services-muted); }
.service-future {
  padding-top: 1.55rem;
  color: var(--services-muted);
  font: 600 .62rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
}
.service-description {
  max-width: 790px;
  margin: 1.35rem 0 1.6rem;
  color: var(--services-muted);
  font-size: .96rem;
  line-height: 1.7;
}
.service-meta {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.065);
}
.service-meta-two { grid-template-columns: 1.2fr .8fr; }
.service-meta-block {
  min-width: 0;
  padding: 1rem 1.05rem;
  background: var(--services-surface-2);
}
.service-meta-block span {
  display: block;
  margin-bottom: .45rem;
  color: var(--services-muted);
  font: 500 .58rem/1 "DM Mono", monospace;
  letter-spacing: .09em;
}
.service-meta-block strong,
.service-meta-block a {
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
}
.service-meta-block a { color: var(--services-text); }
.service-explanation {
  display: flex;
  gap: .8rem;
  max-width: 790px;
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-left: 2px solid var(--services-blue);
  background: rgba(75,117,255,.055);
}
.service-explanation-mark {
  color: var(--services-blue-bright);
  font: 600 .8rem/1.4 "DM Mono", monospace;
}
.service-explanation p {
  margin: 0;
  color: var(--services-muted);
  font-size: .78rem;
  line-height: 1.65;
}
.service-explanation strong { color: var(--services-text); }
.services-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 178px;
  margin-top: 1.25rem;
  padding: .82rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--services-text) !important;
  cursor: pointer;
  font: 600 .7rem/1 "DM Mono", monospace;
  transition: background .2s ease, border-color .2s ease;
}
.services-button:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.2);
}
.services-contact {
  margin-top: .9rem;
  padding: 2.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(75,117,255,.12), transparent 20rem),
    var(--services-surface-2);
}
.services-contact h2 {
  margin: .8rem 0 .55rem;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.services-contact p { margin: 0; color: var(--services-muted); line-height: 1.6; }
.services-button-light {
  margin: 0;
  background: var(--services-text);
  color: #090b0e !important;
  border-color: transparent;
}
.services-button-light:hover { background: #dce3e7; }
.services-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--services-muted);
  font: 500 .58rem/1.3 "DM Mono", monospace;
  letter-spacing: .08em;
}
.services-footer a { text-decoration: none; }

.services-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  isolation: isolate;
}
.services-modal.is-open { display: block; }
.services-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3,5,8,.78);
  backdrop-filter: blur(12px);
}
.services-modal-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 2rem));
  margin: 12vh auto 0;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: var(--services-surface);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.services-modal-close {
  position: absolute;
  top: .7rem;
  right: .8rem;
  border: 0;
  background: transparent;
  color: var(--services-text) !important;
  font-size: 1.8rem;
  cursor: pointer;
}
.services-modal-panel h2 {
  margin: .9rem 0 .55rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.services-modal-panel p { color: var(--services-muted); }
.services-modal-links { display: grid; gap: .65rem; margin-top: 1.4rem; }
.services-modal-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 13px;
  background: var(--services-surface-2);
  text-decoration: none;
}
.services-modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .services-header { padding: 1rem; }
  .services-header-label { display: none; }
  .services-page { padding: 2.2rem 1rem 3.5rem; }
  .services-hero { padding-bottom: 3rem; }
  .services-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .services-hero-side { max-width: 430px; }
  .services-hero-line { margin-top: 2.5rem; gap: 1rem; }
  .services-hero-line span:last-child { text-align: right; }
  .service-item {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 1.25rem;
    border-radius: 18px;
  }
  .service-item-number { padding: 0; }
  .service-heading-row { flex-direction: column; gap: .8rem; }
  .service-price, .service-future { padding-top: 0; }
  .service-meta, .service-meta-two { grid-template-columns: 1fr; }
  .services-contact {
    padding: 1.35rem;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }
  .services-button-light { margin-top: .3rem; }
  .services-footer { padding: 0 1rem 1.5rem; flex-direction: column; }
}


/* Contact controls on services page */
.services-body .top-contact {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.services-body .top-contact span { color: inherit; }

.services-body a.services-button {
  box-sizing: border-box;
}
.services-body .services-button-light {
  background: #f1f4f5;
  color: #090b0e !important;
  border-color: #f1f4f5;
  outline: none;
  box-shadow: none;
}
.services-body .services-button-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #090b0e !important;
}
.services-body .services-button-light:focus,
.services-body .services-button-light:focus-visible {
  outline: none;
  box-shadow: none;
}

.services-body button.services-button-light {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #f1f4f5;
  background: #f1f4f5;
  color: #090b0e !important;
}
.services-body button.services-button-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #090b0e !important;
}
.services-body button.services-button-light:focus,
.services-body button.services-button-light:focus-visible {
  outline: none;
  box-shadow: none;
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  .services-body .topbar,
  body .topbar {
    position: relative;
    z-index: 120;
  }

  .main-nav,
  .top-contact {
    display: none !important;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: var(--text, #f1f4f5);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    background: rgba(5,7,10,.72);
    backdrop-filter: blur(14px);
    transition: opacity .22s ease, visibility .22s ease;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu-inner {
    min-height: 100%;
    box-sizing: border-box;
    padding: 5.8rem 1rem 1rem;
    background:
      radial-gradient(circle at 85% 8%, rgba(75,117,255,.14), transparent 18rem),
      #0b0e13;
    transform: translateY(-12px);
    transition: transform .24s ease;
  }

  .mobile-menu.is-open .mobile-menu-inner {
    transform: translateY(0);
  }

  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted, #9ca6af);
    font: 600 .63rem/1 "DM Mono", monospace;
    letter-spacing: .13em;
  }

  .mobile-menu-top button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: var(--text, #f1f4f5);
    font-size: 1.55rem;
    line-height: 1;
  }

  .mobile-menu-nav {
    display: grid;
    margin-top: 2.3rem;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .mobile-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem .1rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: var(--text, #f1f4f5);
    text-decoration: none;
    font-size: 1.55rem;
    letter-spacing: -.035em;
  }

  .mobile-menu-nav a span,
  .mobile-menu-contact span {
    color: var(--blue-bright, #7895ff);
    font-family: "DM Mono", monospace;
  }

  .mobile-menu-contact {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.05rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: var(--surface-2, #161c25);
    color: var(--text, #f1f4f5) !important;
    font-size: .9rem;
    cursor: pointer;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* WebP portrait */
picture:has(> img[src*="bogdan-portrait.webp"]) {
  display: block;
  width: 100%;
}
picture:has(> img[src*="bogdan-portrait.webp"]) img {
  display: block;
}

/* Services page entrance animation */
.services-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: servicesReveal .65s cubic-bezier(.22,1,.36,1) forwards;
}
.services-reveal-1 { animation-delay: .04s; }
.services-reveal-2 { animation-delay: .10s; }
.services-reveal-3 { animation-delay: .16s; }
.services-reveal-4 { animation-delay: .22s; }
.services-reveal-5 { animation-delay: .28s; }
.services-reveal-6 { animation-delay: .34s; }

@keyframes servicesReveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .services-reveal { opacity: 1; transform: none; animation: none; }
}

/* Unified explanation / publication panel */
.service-explanation-publishing {
  display: block;
  max-width: 790px;
  padding: 0;
  overflow: hidden;
}
.service-explanation-main {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1rem;
}
.service-explanation-main p {
  margin: 0;
}
.service-explanation-more {
  border-top: 1px solid rgba(255,255,255,.07);
}
.service-explanation-more summary {
  list-style: none;
  cursor: pointer;
  padding: .95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--services-text, #f2f5fa);
  font-size: .86rem;
  font-weight: 600;
}
.service-explanation-more summary::-webkit-details-marker { display: none; }
.service-explanation-more-toggle {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--services-blue-bright);
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform .25s ease, background .25s ease;
}
.service-explanation-more[open] .service-explanation-more-toggle {
  transform: rotate(45deg);
  background: rgba(75,117,255,.08);
}
.service-explanation-details {
  padding: 0 1rem 1rem;
  display: grid;
  gap: .9rem;
}
.service-info-section {
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.055);
}
.service-info-label {
  display: block;
  margin-bottom: .4rem;
  color: var(--services-blue-bright);
  font: 600 .65rem/1.2 "DM Mono", monospace;
  letter-spacing: .11em;
}
.service-info-section p {
  margin: 0;
  max-width: 100%;
  color: var(--services-muted);
  font-size: .86rem;
  line-height: 1.58;
}
.service-info-section p + p { margin-top: .55rem; }
.service-info-muted { opacity: .82; }

@media (max-width: 760px) {
  .service-explanation-publishing { max-width: none; }
  .service-explanation-main { padding: .9rem 1rem; }
  .service-explanation-more summary {
    padding: .85rem 1rem;
    font-size: .86rem;
  }
  .service-explanation-details {
    padding: 0 1rem .9rem;
    gap: .7rem;
  }
  .service-info-section { padding-top: .75rem; }
  .service-info-section p {
    font-size: .84rem;
    line-height: 1.55;
  }
}
