:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #f4f6f4; background: #111; font-synthesis: none; font-weight: 300;
  --lime: #d7fb0a; --aqua: #3bffed; --muted: #acb7b0;
  --gutter: clamp(22px, 5.5vw, 80px);
  --section-space: clamp(80px, 9vw, 130px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
main { max-width: 1440px; margin: auto; overflow: visible; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; background: none; border: 0; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--aqua); outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--lime); }
.section { position: relative; isolation: isolate; margin-inline: var(--gutter); margin-bottom: var(--section-space); }
.heading { position: relative; z-index: 1; }
.eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: .035em; font-weight: 400; color: #57c8bd; }
.spark { display: inline-block; margin-left: 8px; color: var(--aqua); font-size: 16px; text-shadow: 0 0 10px var(--aqua); }
h2 { font-size: clamp(25px, 2.45vw, 35px); line-height: 1.22; font-weight: 500; margin-top: 15px; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 500; }

/* Hero proportions follow the canvas; copy stays independent of the artwork. */
.hero { height: clamp(700px, 70vw, 960px); position: relative; isolation: isolate; --pointer-x: 0px; --pointer-y: 0px; }
header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-inline: clamp(22px, 3.2vw, 46px); height: 106px; }
.logo { font-size: clamp(26px, 2.5vw, 34px); font-weight: 500; white-space: nowrap; letter-spacing: -.035em; }
nav { display: flex; gap: clamp(18px, 2.3vw, 33px); font-size: 14px; }
nav a { color: #b7bcb8; position: relative; padding-block: 10px; transition: color .25s; white-space: nowrap; }
nav a:after { content: ''; position: absolute; bottom: 3px; left: 0; width: 100%; height: 1px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
nav a:hover, nav a:focus-visible { color: #fff; }
nav a:hover:after, nav a:focus-visible:after { transform: scaleX(1); }
.header-cta { border: 1px solid #515637; border-radius: 30px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: 14px; white-space: nowrap; transition: background .3s, border-color .3s; }
.header-cta:hover { background: #d7fb0a0b; border-color: #d7fb0a90; }
.header-cta svg { transition: transform .3s var(--ease); }
.header-cta:hover svg { transform: translate(2px,-2px); }
.menu { display: none; }
.hero-art { position: absolute; left: -3%; top: 0; width: 93%; height: auto; pointer-events: none; animation: arrival 1.4s var(--ease) both; translate: var(--pointer-x) var(--pointer-y); transition: translate 1.1s var(--ease); }
.hero-orbit { position: absolute; left: 17.2%; top: 12%; width: 44%; height: auto; pointer-events: none; opacity: .8; }
.orbit-lower { position: absolute; left: 6%; top: 45%; width: 66%; height: 37%; border: 1px solid #b8b8b85c; border-radius: 50%; transform: rotate(20deg); mask-image: linear-gradient(120deg,#000,transparent 55%,#000); pointer-events: none; animation: orbit-breathe 14s ease-in-out infinite; }
.hero-glow { position: absolute; width: 72%; height: 66%; left: 3%; top: 30%; background: radial-gradient(ellipse,#02d1bd60,transparent 67%); animation: glow-breathe 9s ease-in-out infinite; pointer-events: none; }
.hero:after { content: ''; position: absolute; z-index: -1; left: 10%; top: 12%; width: 44%; height: 48%; background: radial-gradient(ellipse,#05554d,transparent 69%); opacity: .5; pointer-events: none; }
.hero-intro { position: absolute; left: 6.7%; top: 18%; font-size: 14px; line-height: 1.45; color: #c4cec8; animation: arrival .9s .12s var(--ease) both; }
.hero-intro span { position: absolute; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; left: -14px; top: 7px; }
.hero-intro:first-line { text-transform: uppercase; }
.hero h1 { position: absolute; left: 25%; top: 19%; font-family: 'EB Garamond',Georgia,serif; font-size: clamp(150px,15.6vw,225px); line-height: .8; font-weight: 400; letter-spacing: -.035em; background: linear-gradient(135deg,#d7fb0a,#f7fcd7 29%,#3bffed 56%,#b2f4ee 70%,#f3fcbb); background-clip: text; color: transparent; z-index: 2; animation: arrival 1.2s .15s var(--ease) both; }
.hero-copy { position: absolute; left: 73%; right: 3%; top: 37%; font-size: 15px; line-height: 1.45; color: #c4cec8; animation: arrival 1s .3s var(--ease) both; }
.hero-copy p { white-space: nowrap; font-size: clamp(11px,1.12vw,16px); margin-bottom: 18px; display: flex; align-items: center; gap: 3px; }
.hero-copy p>b { color: var(--aqua); position: absolute; left: -25px; text-shadow: 0 0 8px var(--aqua); }
.hero-copy svg { width: 12px; height: 12px; flex: 0 0 auto; }
.hero-copy em { color: var(--aqua); }








.hero-star { position: absolute; left: 30%; top: 83%; color: #ddd; text-shadow: 0 0 10px #fff; animation: twinkle 5s ease-in-out infinite; }

/* Shared controls */
.pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; width: fit-content; max-width: 100%; border: 1px solid #4b5350; border-radius: 50px; background: linear-gradient(90deg,transparent,#3bffed38); font-size: 14px; line-height: 1.4; padding: 0 0 0 17px; transition: box-shadow .35s, translate .35s var(--ease), border-color .35s; }
.pill i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--aqua); color: #163e37; flex-shrink: 0; transition: transform .4s var(--ease); }
.pill i svg { transition: transform .4s var(--ease); }
.pill:hover { translate: 0 -3px; border-color: #3bffed80; box-shadow: 0 8px 28px #3bffed13; }
.pill:hover i svg { transform: translate(2px,-2px); }
.pill:active { translate: 0 0; }
.lime { background: linear-gradient(90deg,transparent,#d7fb0a38); }
.lime i { background: var(--lime); }
.round { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #53635e; border-radius: 50%; transition: background .25s,color .25s,transform .25s; }
.round:hover { background: var(--aqua); color: #111; transform: rotate(-35deg); }

/* Content grids grow with their contents instead of fixed section heights. */
.services { padding-top: 12px; }
.services:before { content: ''; position: absolute; z-index: -1; width: clamp(800px,75vw,1500px); height: clamp(690px,55vw,1050px); top: -210px; right: clamp(-650px,-30vw,-250px); background: radial-gradient(ellipse closest-side,#05554d88 0%,#05554d45 35%,#05554d16 65%,#05554d00 100%); pointer-events: none; }
.all-services { position: absolute; right: 0; top: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,2vw,28px); margin-top: 34px; }
.service-card { min-width: 0; min-height: 340px; border: 1px solid #35433e; border-radius: 12px; padding: 25px; position: relative; display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(135deg,#14211b50,#092c251a); box-shadow: inset 0 0 10px #8abdae0a; transition: translate .45s var(--ease),border-color .35s,box-shadow .35s; }
.service-card:hover { translate: 0 -7px; border-color: #3bffed70; box-shadow: 0 18px 40px #0002,inset 0 0 30px #3bffed07; }
.service-icon { display: block; stroke-width: 1.3; color: #d2dfd7; }
.number { position: absolute; right: 24px; top: 23px; color: #70867a; font-size: 25px; line-height: 1; font-weight: 300; }
.service-card h3 { margin-top: 27px; min-height: 48px; text-wrap: balance; }
.service-card p { font-size: 15px; line-height: 1.55; margin-top: 15px; color: var(--muted); margin-bottom: 24px; }
.service-card .round { margin-top: auto; }
.work { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,2.5fr); grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 28px; align-items: start; }
.work>.heading { grid-column: 1; grid-row: 1; }
.work h2 { font-size: clamp(24px,2.1vw,30px); }
.work-all { grid-column: 1; grid-row: 2; }
.categories { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; width: min(100%,220px); }
.categories button { text-align: left; min-height: 46px; font-size: 14px; color: #969f99; border-bottom: 1px solid #28362d; display: flex; gap: 15px; align-items: center; padding: 8px 0; transition: color .25s,border-color .25s,padding-left .25s; }
.categories button[aria-selected=true] { color: #fff; border-color: var(--lime); }
.categories button:hover { color: var(--aqua); padding-left: 5px; }
.categories button span { color: #819086; font-size: 13px; }
.projects { position: relative; grid-column: 2; grid-row: 1/4; min-width: 0; width: 100%; align-self: center; aspect-ratio: 1.85; animation: panel-enter .6s var(--ease) both; }
.projects:before { content: ''; position: absolute; inset: -30% -15%; background: radial-gradient(ellipse at 35% 55%,#759e2460,transparent 55%),radial-gradient(ellipse at 65% 60%,#14695160,transparent 60%); mask-image: radial-gradient(ellipse,#000 25%,transparent 72%); z-index: -1; pointer-events: none; }
.project { position: absolute; height: auto; border-radius: 7px; transition: translate .55s var(--ease),filter .5s,box-shadow .5s; box-shadow: 0 12px 25px #0003; }
.project:hover { translate: 0 -9px; filter: brightness(1.08); box-shadow: 0 24px 40px #0005; }
.project-0 { left: 11%; top: 16%; width: 66%; z-index: 4; }
.project-1 { left: 0; top: 25%; width: 44%; z-index: 2; }
.project-2 { left: 36%; top: 20%; width: 52%; z-index: 3; }
.project-3 { right: 0; top: 29%; width: 40%; z-index: 1; }
.projects.expanded { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; aspect-ratio: auto; align-content: start; }
.expanded .project { position: static; width: 100%; border: 1px solid #314b40; animation: panel-enter .5s var(--ease) both; }
.empty-projects { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #b1bdb5; font-size: 16px; line-height: 1.6; }
.about { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); grid-template-rows: auto auto auto; column-gap: 60px; align-items: start; }
.about>.heading { grid-column: 1; grid-row: 1; }
.about-text { grid-column: 1; grid-row: 2; max-width: 36ch; font-size: 16px; line-height: 1.6; color: #bdc7c0; margin-top: 28px; }
.stats { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); position: relative; z-index: 1; margin-top: 32px; }
.stats div { display: flex; flex-direction: column; padding-inline: clamp(12px,2vw,28px); border-right: 1px solid #536057; gap: 5px; }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border: 0; padding-right: 0; }
.stats strong { font-size: clamp(30px,3vw,42px); line-height: 1.15; color: var(--lime); font-weight: 500; letter-spacing: -.045em; }
.stats span { font-size: 14px; line-height: 1.5; }
.about-art { grid-column: 2; grid-row: 1/4; width: 100%; max-width: 540px; align-self: center; justify-self: center; margin-top: -48px; margin-bottom: -48px; pointer-events: none; }
.about:before { content: ''; position: absolute; right: clamp(-650px,-30vw,-250px); top: -140px; width: clamp(850px,78vw,1550px); height: clamp(740px,58vw,1100px); background: radial-gradient(ellipse closest-side,#d7fb0a24 0%,#d7fb0a13 35%,#d7fb0a06 65%,#d7fb0a00 100%); z-index: -1; pointer-events: none; }
.about-note { position: absolute; bottom: -5px; right: 2%; font-size: 14px; line-height: 1.4; padding: 15px 20px; border: 1px solid #8e98574d; border-radius: 9px; background: linear-gradient(120deg,#3bffed20,#d7fb0a30); backdrop-filter: blur(8px); }
.about-note span { position: absolute; right: -9px; bottom: -11px; text-shadow: 0 0 8px #fff; animation: twinkle 5s 1s ease-in-out infinite; }
.process { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.process:before { content: ''; position: absolute; left: clamp(-700px,-33vw,-280px); top: -200px; width: clamp(835px,76vw,1500px); height: clamp(700px,55vw,1050px); background: radial-gradient(ellipse closest-side,#30613b70 0%,#30613b38 35%,#30613b12 65%,#30613b00 100%); z-index: -1; pointer-events: none; }
.process-more { align-self: start; justify-self: end; }
.steps { grid-column: 1/-1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(20px,3vw,40px); border-top: 1px solid #308b7c; padding-top: 26px; }
.steps article { position: relative; }
.steps article>span { font-size: 26px; color: #83968a; font-weight: 300; transition: color .3s; }
.steps article:hover>span { color: var(--aqua); }
.steps h3 { margin-top: 18px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.process-details { grid-column: 1/-1; font-size: 16px; line-height: 1.7; padding: 24px; background: #15352c60; border: 1px solid #325344; border-radius: 12px; animation: panel-enter .45s var(--ease) both; }
.process-details a { color: var(--aqua); display: block; margin-top: 12px; }
.contact { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); column-gap: 48px; grid-template-rows: auto auto 1fr; padding-bottom: 36px; margin-bottom: 56px; }
.contact>.heading { grid-column: 1; grid-row: 1; }
.contact-intro { grid-column: 1; grid-row: 2; font-size: 16px; line-height: 1.6; max-width: 28ch; margin-top: 28px; color: #bdc7c0; }
.contact-links { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; gap: 22px; margin-top: 48px; align-self: start; position: relative; z-index: 2; }
.contact-links a,.telegram-contact { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; width: fit-content; }
.contact-links a { transition: color .25s,translate .25s; }
.contact-links a:hover { color: var(--aqua); translate: 3px 0; }
.contact-links svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--lime); }
.contact-art { position: absolute; width: 25%; left: 27%; top: 100px; pointer-events: none; animation: float 8s ease-in-out infinite; }
.contact:before { content: ''; position: absolute; width: 362px; height: 370px; left: 25%; top: 40px; z-index: -1; background: radial-gradient(ellipse,#05554d90,transparent 70%); pointer-events: none; }
.contact-arrow { position: absolute; left: 44%; top: 330px; width: clamp(56px,6vw,82px); aspect-ratio: 1; border-radius: 50%; background: #3bffedc9; color: #125c51; display: grid; place-items: center; transition: transform .5s var(--ease),background .3s; }
.contact-arrow svg { width: 58%; height: 58%; }
.contact-arrow:hover { transform: rotate(45deg); background: var(--aqua); }
form { grid-column: 2; grid-row: 1/4; width: 100%; border: 1px solid #3a4943; border-radius: 14px; padding: clamp(24px,3vw,40px); background: #081f1c33; box-shadow: inset 0 0 10px #91ad9e0a; align-self: start; }
input,textarea { display: block; width: 100%; background: #081f1c33; color: white; border: 1px solid #34463e; border-radius: 8px; padding: 18px; font-size: 16px; font-weight: 300; transition: background .25s,border-color .25s,box-shadow .25s; }
input { min-height: 60px; margin-bottom: 16px; }
textarea { height: 180px; resize: vertical; min-height: 150px; max-height: 350px; }
input:focus,textarea:focus { background: #0d2921; border-color: #3bffed90; box-shadow: 0 0 24px #3bffed08; }
input::placeholder,textarea::placeholder { color: #b6beb9; opacity: 1; }
.submit { width: 100%; margin-top: 18px; min-height: 54px; padding-left: 16px; }
.submit span { flex: 1; text-align: center; font-weight: 500; }
.submit i { height: 54px; width: 54px; }
.form-status { font-size: 14px; line-height: 1.5; color: var(--aqua); }
.form-status:not(:empty) { margin-top: 15px; animation: panel-enter .3s ease both; }

/* Motion uses opacity/transform; static content stays available without observers. */
.reveal, .service-card, .steps article { opacity: 1; }
@media(prefers-reduced-motion:no-preference) {
  .reveal:not(.visible), .service-card:not(.visible), .steps article:not(.visible) { opacity: 0; transform: translateY(24px); }
  .reveal { transition: opacity .8s var(--ease),transform .8s var(--ease); }
  .service-card, .steps article { transition: opacity .65s var(--ease),transform .65s var(--ease),translate .4s var(--ease),border-color .3s,box-shadow .3s; }
  .service-card.visible, .steps article.visible { transition-delay: calc(var(--order,0)*65ms),calc(var(--order,0)*65ms),0s,0s,0s; }
}
.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; }
.skip { position: fixed; z-index: 20; top: -100px; left: 20px; background: var(--aqua); color: #111; padding: 10px; }
.skip:focus { top: 15px; }
dialog { background: #14221d; color: white; border: 1px solid #406e5d; border-radius: 18px; max-width: 520px; width: calc(100% - 40px); max-height: 85dvh; padding: 40px; }
dialog[open] { animation: dialog-enter .35s var(--ease) both; }
dialog::backdrop { background: #000b; backdrop-filter: blur(7px); }
dialog>p:not(.eyebrow) { font-size: 17px; line-height: 1.6; margin: 24px 0; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; }
@keyframes arrival { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 18px #d7fb0a70; transform: scale(.8); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes glow-breathe { 50% { opacity: .55; transform: scale(.93); } }
@keyframes orbit-breathe { 50% { transform: rotate(24deg) scale(.98); } }
@keyframes twinkle { 50% { opacity: .35; scale: .8; } }

@media(max-width:1100px) {
  header { gap: 16px; } nav { gap: 18px; } .header-cta { padding: 11px 12px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .service-card { min-height: 315px; padding: 28px; }
  .service-card h3 { min-height: 0; }
  .service-card p { max-width: 36ch; }
  .work { grid-template-columns: minmax(240px,.85fr) minmax(0,2fr); gap: 24px; }
  .about { column-gap: 32px; }
  .about-art { margin-block: 0; }
  .about-note { bottom: -15px; font-size: 13px; padding: 12px 16px; }
  .contact { column-gap: 28px; }
  .contact-art { width: 21%; left: 30%; top: 145px; }
  .contact-arrow { left: 44%; top: 330px; }
  .contact-links a,.telegram-contact { font-size: 14px; }
  .steps { gap: 20px; }
  .steps h3 { font-size: 16px; }
}
@media(max-width:900px) {
  :root { --gutter: clamp(24px,5vw,44px); --section-space: 88px; }
  header { height: 90px; margin-inline: var(--gutter); }
  .header-cta { margin-left: auto; }
  .menu { display: grid; place-items: center; width: 44px; height: 44px; }
  nav { display: none; position: absolute; right: 0; top: 78px; width: 240px; padding: 20px; background: #15231ff5; border: 1px solid #355c4b; border-radius: 12px; flex-direction: column; gap: 8px; box-shadow: 0 20px 50px #0006; }
  nav.open { display: flex; animation: panel-enter .3s var(--ease) both; }
  nav a { padding: 10px; }
  .hero { height: clamp(730px,98vw,850px); }
  .hero-art { width: 112%; left: -13%; top: 30px; }
  .hero h1 { left: 28%; top: 25%; font-size: clamp(145px,20vw,180px); }
  .hero-intro { left: calc(var(--gutter) + 14px); top: 122px; }
  .hero-copy { left: var(--gutter); right: auto; top: auto; bottom: 65px; font-size: 15px; }
  .hero-copy p { font-size: 14px; }
  .hero-copy p>b { position: static; margin-right: 5px; }
  .hero-orbit { left: 12%; top: 18%; width: 56%; }
  .orbit-lower { left: 9%; top: 45%; width: 74%; height: 32%; }
  .hero-glow { top: 25%; width: 90%; height: 62%; left: 0; }
  .hero-star { top: 70%; left: 28%; }
  
  
  .work { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; row-gap: 25px; }
  .work-all { grid-column: 2; grid-row: 1; align-self: start; }
  .categories { grid-column: 1/-1; grid-row: 2; flex-direction: row; width: 100%; gap: 28px; }
  .categories button { min-width: 100px; }
  .projects { grid-column: 1/-1; grid-row: 3; width: 100%; max-width: 740px; justify-self: center; aspect-ratio: 2.25; }
  .projects.expanded { aspect-ratio: auto; }
  .about { grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 20px; }
  .about-text { font-size: 15px; }
  .stats { grid-column: 1/-1; grid-row: 4; max-width: 430px; margin-top: 30px; }
  .about-note { bottom: 80px; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
  .contact { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .contact-intro { max-width: 100%; }
  .contact-art, .contact-arrow { display: none; }
  .contact-links { margin-top: 35px; }
  form { padding: 24px; }
  .submit { font-size: 13px; }
}
@media(max-width:600px) {
  :root { --gutter: 24px; --section-space: 76px; }
  header { gap: 10px; height: 82px; }
  .logo { font-size: 26px; }
  .header-cta { font-size: 12px; padding: 10px; gap: 3px; }
  .header-cta svg { width: 16px; }
  .menu { width: 40px; height: 44px; flex-shrink: 0; }
  .hero { height: clamp(660px,170vw,790px); }
  .hero-art { width: 145%; left: -28%; top: 58px; }
  .hero h1 { left: 22%; top: 27%; font-size: clamp(92px,27vw,155px); }
  .hero-intro { top: 104px; font-size: 13px; line-height: 1.4; }
  .hero-copy { bottom: 45px; font-size: 14px; }
  .hero-copy p { font-size: 12px; margin-bottom: 12px; gap: 2px; }
  .hero-copy svg { width: 10px; }
  .hero-orbit { left: 6%; width: 74%; top: 20%; }
  .orbit-lower { left: 4%; width: 86%; height: 30%; top: 43%; }
  .hero-glow { top: 28%; height: 50%; width: 100%; }
  .hero-star { top: 71%; }
  
  
  
  
  
  
  h2 { font-size: clamp(24px,6vw,31px); line-height: 1.25; }
  .eyebrow { font-size: 13px; }
  .all-services { position: static; margin-top: 22px; }
  .pill { font-size: 13px; min-height: 44px; padding-left: 14px; gap: 9px; }
  .pill i { width: 44px; height: 44px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .service-card { min-height: 290px; padding: 25px; }
  .service-card h3 { margin-top: 22px; font-size: 18px; }
  .service-card p { margin-top: 14px; font-size: 16px; line-height: 1.55; }
  .number { top: 26px; }
  .work { grid-template-columns: 1fr; row-gap: 24px; }
  .work-all { grid-column: 1; grid-row: 2; }
  .categories { grid-column: 1; grid-row: 3; gap: 18px; }
  .categories button { flex: 1; min-width: 0; font-size: 14px; gap: 8px; }
  .projects { grid-column: 1; grid-row: 4; aspect-ratio: 1.85; }
  .projects.expanded { grid-template-columns: 1fr; gap: 18px; }
  .project-0 { left: 8%; width: 75%; }
  .project-1 { width: 48%; }
  .project-2 { width: 55%; left: 39%; }
  .empty-projects { font-size: 15px; padding: 20px; }
  .about { grid-template-columns: 1fr; }
  .about-text { grid-column: 1; grid-row: 2; font-size: 16px; margin-top: 24px; max-width: 100%; }
  .stats { grid-column: 1; grid-row: 3; width: 100%; margin-top: 28px; }
  .stats div { padding-inline: 17px; }
  .stats strong { font-size: 32px; }
  .stats span { font-size: 13px; }
  .about-art { grid-column: 1; grid-row: 4; width: 100%; max-width: 400px; margin: 16px 0 -22px; }
  .about-note { bottom: 12px; right: 0; padding: 12px 16px; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .process-more { grid-column: 1; grid-row: 2; justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .steps article { padding: 24px 0 24px 58px; border-bottom: 1px solid #2c3e32; }
  .steps article>span { position: absolute; top: 23px; left: 0; font-size: 24px; }
  .steps h3 { margin-top: 0; font-size: 17px; }
  .steps p { margin-top: 8px; font-size: 15px; max-width: 30ch; }
  .contact { grid-template-columns: 1fr; margin-bottom: 0; padding-bottom: 56px; }
  .contact>.heading { grid-column: 1; grid-row: 1; }
  .contact-intro { grid-column: 1; grid-row: 2; font-size: 16px; max-width: 100%; margin-top: 24px; }
  .contact-links { grid-column: 1; grid-row: 3; margin-top: 28px; gap: 20px; }
  .contact-links a,.telegram-contact { font-size: 15px; }
  form { grid-column: 1; grid-row: 4; margin-top: 24px; padding: 23px; }
  .contact-art { display: block; position: relative; grid-column: 1; grid-row: 5; left: auto; top: auto; width: 58%; max-width: 220px; justify-self: center; margin-top: 32px; }
  .submit { font-size: 14px; min-height: 50px; padding-left: 8px; }
  .submit i { width: 50px; height: 50px; }
  .contact:before { left: 0; top: auto; bottom: 0; width: 100%; }
  .service-card:hover { translate: none; }
  .projects.expanded .project:hover { translate: none; }
}
@media(max-width:380px) {
  :root { --gutter: 20px; }
  .header-cta { display: none; }
  .menu { margin-left: auto; }
  .hero-copy p { font-size: 11px; }
  
  .stats div { padding-inline: 10px; }
  .stats strong { font-size: 30px; }
  .stats span { font-size: 12px; }
  form { padding: 18px; }
  .submit { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*:before,*:after { animation: none!important; transition: none!important; }
  .reveal,.service-card,.steps article { opacity: 1; transform: none; }
  .hero-art { translate: none; }
}


/* A native vertical range keeps the document progress draggable and keyboard accessible. */
.reading-rail { position: fixed; z-index: 8; left: max(8px, calc((100vw - 1440px) / 2 + 12px)); top: 12vh; height: 76vh; width: 26px; color: #a4b5aa; font-size: 12px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.rail-start,.rail-end { line-height: 20px; flex-shrink: 0; }
.rail-end { margin-top: auto; }
.rail-track { position: absolute; top: 34px; bottom: 34px; width: 1px; background: #7a948440; }
.rail-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--progress)); background: linear-gradient(var(--lime),var(--aqua)); }
.rail-thumb { position: absolute; left: -3px; top: calc(var(--progress) * 100%); width: 7px; height: 7px; transform: translateY(-50%); border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px #3bffed70; }
.rail-input { position: absolute; pointer-events: auto; top: 22px; bottom: 22px; left: 0; width: 26px; height: calc(100% - 44px); min-height: 0; margin: 0; padding: 0; writing-mode: vertical-lr; direction: ltr; appearance: none; background: transparent; border: 0; border-radius: 16px; cursor: ns-resize; box-shadow: none; }
.rail-input::-webkit-slider-runnable-track { background: transparent; width: 26px; }
.rail-input::-webkit-slider-thumb { appearance: none; width: 26px; height: 24px; background: transparent; border: 0; }
.rail-input::-moz-range-track { background: transparent; width: 26px; }
.rail-input::-moz-range-thumb { width: 26px; height: 24px; background: transparent; border: 0; }
.rail-input:focus { background: transparent; box-shadow: none; }
.rail-input:focus-visible { outline: 1px solid #3bffed90; outline-offset: 1px; }
.scroll-hint { position: fixed; z-index: 7; right: max(26px,calc((100vw - 1440px) / 2 + 35px)); bottom: 28px; width: 60px; padding: 0; display: flex; align-items: center; flex-direction: column; gap: 9px; opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .35s,transform .35s,visibility .35s; }
.scroll-hint.is-idle { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.scroll-hint i { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #75887380; border-radius: 50%; background: #111b; backdrop-filter: blur(8px); transition: border-color .3s; }
.scroll-hint b { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.scroll-hint span { font-family: 'EB Garamond',Georgia,serif; font-size: 15px; line-height: 1.2; color: #dbe7df; text-shadow: 0 1px 6px #000; }
.scroll-hint.is-idle b,.scroll-hint.is-idle span { animation: hint-blink 2.4s ease-in-out infinite; }
.scroll-hint:hover i { border-color: var(--lime); }
.scroll-hint:hover b,.scroll-hint:hover span,.scroll-hint:focus-visible b,.scroll-hint:focus-visible span { animation-play-state: paused; }
@keyframes hint-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.site-footer { max-width: calc(1440px - 2 * var(--gutter)); margin: 0 auto; width: calc(100% - 2 * var(--gutter)); border-top: 1px solid #34483b; display: flex; align-items: center; gap: 28px; padding: 25px 84px 25px 0; color: #94a599; font-size: 13px; line-height: 1.6; }
.site-footer p { margin-right: auto; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--aqua); }
.footer-top { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media(max-width:900px) {
 .reading-rail { left: 3px; width: 17px; font-size: 10px; }
 .rail-input { width: 17px; }
 .rail-input::-webkit-slider-thumb { width: 17px; }
 .rail-input::-moz-range-thumb { width: 17px; }
 .rail-thumb { width: 5px; height: 5px; left: -2px; }
 .scroll-hint { right: 16px; bottom: 20px; width: 48px; }
 .scroll-hint i { width: 42px; height: 42px; }
 .scroll-hint span { font-size: 14px; }
 .site-footer { gap: 18px; padding-right: 65px; }
}
@media(max-width:600px) {
 .site-footer { flex-wrap: wrap; gap: 10px 20px; font-size: 12px; padding-block: 20px 25px; }
 .site-footer p { flex-basis: 100%; margin-right: 0; }
 .reading-rail { left: 1px; }
}
@media(prefers-reduced-motion:reduce) {
 .scroll-hint,.scroll-hint b,.scroll-hint span { animation: none!important; transition: none!important; }
}


/* Portfolio: layered, swipeable previews with direct project links. */
.projects.carousel-host { aspect-ratio: auto; }
.work-carousel { min-width: 0; border-radius: 12px; }
.work-carousel:focus-visible { outline: 1px solid #3bffed80; outline-offset: 8px; }
.carousel-stage { position: relative; aspect-ratio: 1.9; width: 100%; touch-action: pan-y pinch-zoom; }
.carousel-slide { position: absolute; top: 10%; left: 12%; width: 76%; aspect-ratio: 2.04; padding: 0; border: 1px solid #80b39440; border-radius: 10px; background: #17251f; box-shadow: 0 18px 42px #0006; overflow: hidden; transition: transform .65s var(--ease),opacity .5s,filter .5s; transform-origin: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; user-select: none; }
.carousel-slide.active { z-index: 4; transform: translateX(0) scale(1); opacity: 1; }
.carousel-slide.previous { z-index: 2; transform: translateX(-24%) scale(.77); filter: brightness(.55); }
.carousel-slide.next { z-index: 2; transform: translateX(24%) scale(.77); filter: brightness(.55); }
.carousel-slide.back { z-index: 1; transform: translateY(7%) scale(.7); opacity: 0; pointer-events: none; }
.carousel-slide.previous:hover,.carousel-slide.next:hover { filter: brightness(.8); }
.slide-visit { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--aqua); color: #153c31; opacity: 0; transform: translateY(8px); transition: opacity .25s,transform .25s; }
.carousel-slide.active:hover .slide-visit,.carousel-slide.active:focus-visible .slide-visit { opacity: 1; transform: none; }
.carousel-caption { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 0 12%; min-height: 88px; }
.carousel-caption h3 { font-size: 17px; line-height: 1.4; text-wrap: balance; }
.carousel-caption a { display: inline-flex; align-items: center; gap: 6px; color: #98b5a7; font-size: 14px; margin-top: 8px; }
.carousel-caption a:hover { color: var(--aqua); }
.carousel-counter { white-space: nowrap; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--aqua); padding-top: 2px; }
.carousel-counter span { color: #758b7d; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; }
.carousel-controls .round:hover { transform: none; }
.carousel-dots { display: flex; }
.carousel-dots button { width: 32px; height: 44px; display: grid; place-items: center; padding: 0; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 10px; background: #506a5b; transition: width .3s,background .3s; }
.carousel-dots button[aria-pressed=true] span { width: 22px; background: var(--aqua); }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
.work-grid-card { display: block; min-width: 0; }
.work-grid-card img { display: block; width: 100%; aspect-ratio: 2.04; object-fit: cover; object-position: top; border: 1px solid #3a5847; border-radius: 9px; transition: translate .3s; }
.work-grid-card:hover img { translate: 0 -4px; }
.work-grid-card>span { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 15px; line-height: 1.4; }
.work-grid-card svg { flex-shrink: 0; color: var(--aqua); }
.work-grid-card small { display: block; font-size: 13px; color: #98b5a7; margin-top: 6px; }
.carousel-host>.empty-projects { position: relative; min-height: 280px; }
@media(max-width:600px) {
 .carousel-stage { aspect-ratio: 1.7; }
 .carousel-slide { left: 8%; width: 84%; top: 14%; border-radius: 7px; }
 .carousel-slide.previous { transform: translateX(-17%) scale(.8); }
 .carousel-slide.next { transform: translateX(17%) scale(.8); }
 .carousel-caption { padding: 0 4%; gap: 12px; min-height: 102px; }
 .carousel-caption h3 { font-size: 16px; }
 .carousel-caption a { font-size: 13px; }
 .carousel-counter { font-size: 13px; }
 .carousel-controls { margin-top: 8px; gap: 18px; }
 .slide-visit { width: 32px; height: 32px; right: 8px; bottom: 8px; opacity: 1; transform: none; }
 .slide-visit svg { width: 18px; }
 .work-grid { grid-template-columns: 1fr; }
}

.slide-link { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; }
.carousel-slide.active:focus-within .slide-visit { opacity: 1; transform: none; }


[hidden] { display: none!important; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rail-input { font-size: 16px; }
#contact-detail::placeholder { font-size: 14px; }
@media(max-width:380px) { #contact-detail::placeholder { font-size: 12px; } }

/* Carousel arrows: sit on the slide's vertical centre, over the side previews */
.work-carousel { position: relative; container-type: inline-size; }
.carousel-controls { margin-top: 4px; }
.carousel-controls>.round { position: absolute; z-index: 6; top: calc(23.9cqw - 26px); width: 52px; height: 52px; background: #111a17d9; border-color: #6f8a80; backdrop-filter: blur(6px); box-shadow: 0 8px 24px #0007; }
.carousel-controls>.round:first-child { left: 1.5%; }
.carousel-controls>.round:last-child { right: 1.5%; }
.carousel-controls>.round svg { width: 22px; height: 22px; }
.carousel-controls>.round:hover { background: var(--aqua); border-color: var(--aqua); color: #111; }
.carousel-controls>.round:active { scale: .92; }
.carousel-controls>.round:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.slide-visit svg { width: 22px; height: 22px; }
@media(max-width:600px) {
  .carousel-controls>.round { top: calc(28.8cqw - 20px); width: 40px; height: 40px; }
  .carousel-controls>.round:first-child { left: 0; }
  .carousel-controls>.round:last-child { right: 0; }
  .carousel-controls>.round svg { width: 18px; height: 18px; }
}
.form-consent { margin-top: 14px; font-size: 12px; line-height: 1.5; color: #8fa197; }
.form-consent a { color: #bdc7c0; text-decoration: underline; text-underline-offset: 3px; }
.form-consent a:hover { color: var(--aqua); }

/* Simple pages: privacy policy, 404 */
.page-header { max-width: 1440px; margin: 0 auto; position: relative; z-index: 10; }
.page-simple { width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(40px, 7vw, 90px) 0 90px; min-height: calc(100vh - 220px); }
.page-simple h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 400; text-transform: uppercase; }
.page-simple h1 em { font-style: normal; color: var(--lime); }
.page-simple h2 { font-size: 18px; font-weight: 500; margin-top: 36px; }
.page-simple p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: #bdc7c0; }
.page-simple p a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 14px!important; color: #758b7d!important; margin-top: 16px!important; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; }
.not-found-code { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(110px, 20vw, 200px)!important; line-height: 1; color: var(--aqua)!important; margin: 0 0 12px!important; }
.not-found .pill { margin-top: 32px; }
@media(max-width:600px) {
  .site-footer { flex-wrap: wrap; }
}
