:root {
  color-scheme: light;
  --ink: #0d2045;
  --ink-soft: #354564;
  --navy: #102c4a;
  --gold: #bc7e32;
  --paper: #f6f6f9;
  --line: #d5dbe6;
  --shadow: 0 3px 5px #162c5133, 0 12px 30px #253a6010;
  --header-height: 62px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 18% 43%, #e4e8f2, transparent 48%), linear-gradient(114deg,#eef1f7,#f9f8fa 55%,#eef0f6); }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.5; }
:focus-visible { outline: 3px solid #0367a3; outline-offset: 4px; }
main:focus { outline: none; }
main { min-height: 70vh; }
[id] { scroll-margin-top: calc(var(--header-height) + 14px); }
#home { scroll-margin-top: var(--header-height); }
.shell { width: min(94%, 1392px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 30; top: .7rem; left: .7rem; padding: .7rem 1rem; background: #fff; }

.masthead { position: sticky; z-index: 10; top: 0; min-height: var(--header-height); background: linear-gradient(104deg,#a9adc0 0%,#929caf 18%,#355473 38%,#173757 72%,#1c3a58 100%); box-shadow: 0 2px 7px #18274932; }
.header-inner { display: flex; align-items: center; min-height: var(--header-height); justify-content: space-between; gap: clamp(.7rem, 2.6vw, 2.8rem); }
.brand { position: relative; display: block; flex: 0 1 clamp(172px, 22.5vw, 263px); }
.brand img { width: 100%; height: auto; max-height: var(--header-height); object-fit: contain; mask-image: linear-gradient(to right, transparent, #000 7%, #000 94%, transparent); }
.brand-orbit { position: absolute; inset: 12% 67% 4% 3%; pointer-events: none; }
.brand-orbit::after { content: ""; position: absolute; inset: 0 auto auto 0; width: 4px; aspect-ratio: 1; border-radius: 50%; background: #fff7de; box-shadow: 0 0 5px 2px #ffdfa2, 0 0 11px 3px #ffc06c77; offset-path: ellipse(43% 39% at 50% 51%); opacity: 0; animation: brand-glint 10s ease-in-out infinite; }
@keyframes brand-glint {
  0%, 6% { offset-distance: 0%; opacity: 0; }
  12%, 28% { opacity: .75; }
  36%, 100% { offset-distance: 100%; opacity: 0; }
}
#navigation { display: flex; justify-content: center; align-self: stretch; gap: clamp(.8rem, 2.55vw, 2.6rem); margin-inline: auto; }
#navigation a { color: #fff; text-decoration: none; font-size: clamp(.9rem, 1.35vw, 1.05rem); white-space: nowrap; position: relative; display: grid; align-items: center; }
#navigation a[hidden] { display: none; }
#navigation a::after { position: absolute; content: ""; bottom: 8px; left: -4%; right: -4%; height: 2px; opacity: 0; background: linear-gradient(90deg,transparent,#ffe1a0,transparent); box-shadow: 0 0 7px #f5ad63; transition: opacity .18s; }
#navigation a:hover::after, #navigation a[aria-current]::after { opacity: 1; }
.menu-toggle { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: .55em 1.45em; border-radius: 100px; border: 1px solid #b07733; text-decoration: none; font-weight: 650; line-height: 1.15; text-align: center; transition: filter .18s, box-shadow .18s; cursor: pointer; }
.button:hover { filter: brightness(1.13); }
.button:disabled { cursor: wait; opacity: .7; }
.primary { color: #fff; background: linear-gradient(180deg,#244766,#0b2139 62%,#33526c); border-color: #f0be75; box-shadow: inset 0 0 0 2px #ffffff26, 0 2px 0 #75441e, 0 4px 10px #12233b40; }
.secondary { color: var(--ink); background: linear-gradient(#fff,#ebedf4); box-shadow: 0 2px 0 #895322a0,0 3px 6px #273b5d28; }
.header-cta { flex: 0 0 auto; min-height: 34px; font-size: clamp(.84rem, 1.25vw, 1rem); }

.hero { position: relative; max-width: 1600px; margin-inline: auto; isolation: isolate; background: #c6d1df; }
.hero-art { position: relative; }
.hero-scene { width: 100%; height: auto; aspect-ratio: 1024/408; }
.hero-portrait-frame, .hero-signature { display: none; }
.cloud-frame { position: absolute; inset: 0; pointer-events: none; }
.hero-art .cloud-frame { overflow: hidden; }
.cloud-drift { width: 100%; mask-image: radial-gradient(ellipse 11% 23% at 94% 24%, #000 30%, transparent 100%); opacity: 0; animation: cloud-drift 8s linear -2.12s infinite; }
@keyframes cloud-drift {
  0% { transform: translateX(0); opacity: 0; }
  22%, 62% { opacity: .72; }
  100% { transform: translateX(var(--cloud-travel, 1.45%)); opacity: 0; }
}
.neural-lights { position: absolute; inset: 0; pointer-events: none; }
.neural-lights span { position: absolute; left: var(--x); top: var(--y); width: clamp(12px, 2vw, 25px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6e2 4%, #ffdcaa94 22%, #ffc68932 44%, transparent 68%); transform: translate(-50%, -50%); mix-blend-mode: screen; opacity: 0; animation: neural-pulse 7.5s ease-in-out var(--delay) infinite; }
@keyframes neural-pulse {
  0%, 100% { opacity: 0; }
  30% { opacity: .7; }
  58% { opacity: .13; }
}
.motto-wave { position: absolute; inset: 50% 54% 32% 5%; pointer-events: none; background: linear-gradient(105deg, transparent 38%, #ffe1a55c 47%, #fff5dbbd 50%, #ffe1a55c 53%, transparent 62%) 100% 50% / 235% 100% no-repeat; mask-image: radial-gradient(ellipse 57% 55% at center, #000 55%, transparent 99%); mix-blend-mode: overlay; opacity: 0; animation: motto-glint 12s ease-in-out infinite; }
@keyframes motto-glint {
  0%, 13% { background-position: 100% 50%; opacity: 0; }
  20%, 40% { opacity: .9; }
  50%, 100% { background-position: 0% 50%; opacity: 0; }
}
.hero-cta { position: absolute; left: 10.65%; top: 72.65%; width: 24.25%; height: 11.1%; min-height: 0; padding: 0; font-size: clamp(.9rem, 1.83vw, 1.72rem); border-width: 2px; box-shadow: inset 0 0 0 2px #ffffff38, 0 2px 1px #80491f, 0 5px 10px #12233b34; }
.hero-custom { position: absolute; display: grid; align-content: center; gap: .35em; left: 0; top: 16.9%; width: 46.7%; min-height: 53.5%; padding: 1.1% 2% 1.1% 5%; background: radial-gradient(ellipse at 34% 55%,#fbf5ec 46%,#e2e7ef 70%,transparent); }
.hero-custom span { max-width: 19ch; font-size: clamp(1.1rem,2.8vw,3rem); font-weight: 750; }
.hero-custom p { position: relative; font: italic clamp(1.1rem, 3vw, 3.3rem)/1.12 Georgia, serif; color: #805322; overflow-wrap: anywhere; }
.hero-custom .motto-wave { inset: 0; mix-blend-mode: screen; }
.features { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .4rem; padding: clamp(.7rem,1.5vw,1.2rem) 0 .35rem; }
.features-viewport { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.features-track { display: flex; width: max-content; animation: features-drift var(--features-duration) linear infinite; }
.features-list { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15.25rem,23vw,22rem); flex: none; margin: 0; padding: .5rem 0; list-style: none; }
@keyframes features-drift {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.features.is-paused .features-track { animation-play-state: paused; }
@media (hover: hover) {
  .features-viewport:hover .features-track { animation-play-state: paused; }
}
.features-toggle { width: 2.5rem; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff8; color: var(--navy); }
.features-toggle:hover { background: #fff; }
.feature { display: flex; align-items: center; gap: .7rem; padding-left: .15rem; }
.features-list .feature { padding-inline: .9rem; }
.feature-icon { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #a65f18; background: radial-gradient(circle at 30% 20%,#fff,#f8f5f0 62%,#e8e9f0); border: 1px solid #fff9; box-shadow: 0 4px 17px #fff9; }
.feature-icon { width: clamp(38px,4.8vw,68px); aspect-ratio: 1; font-size: clamp(1.55rem,3.35vw,3.2rem); line-height: 1; }
.feature:nth-child(odd) .feature-icon { color: #126994; }
.feature strong { display: block; font-size: clamp(.88rem,1.2vw,1.08rem); }
.feature p { margin-top: .18rem; font-size: clamp(.875rem,1.11vw,1rem); line-height: 1.2; color: var(--ink-soft); }

.section { padding: clamp(1.35rem, 2.55vw, 2.75rem) 0 0; }
.section-title { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem,2vw,1.8rem); margin: 0 0 clamp(.95rem,1.85vw,1.75rem); font-size: clamp(1.45rem,3.1vw,2.8rem); line-height: 1.1; letter-spacing: -.035em; text-align: center; }
.section-title::before, .section-title::after { content: ""; height: 2px; flex: 0 1 5.6rem; background: linear-gradient(90deg,transparent,#ca924f 85%,#925415); }
.section-title::after { transform: scaleX(-1); }

.service-showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.2rem, 4vw, 4.25rem); padding: clamp(.3rem,1.5vw,1.25rem) clamp(.15rem,1.7vw,1.5rem); }
.service-group { border-top: 1px solid #c8d0de; }
.service-group:last-child { border-bottom: 1px solid #c8d0de; }
.service-group summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 3.25rem; padding: .65rem .2rem; list-style: none; }
.service-group summary::-webkit-details-marker { display: none; }
.service-group h3 { font-size: clamp(1.1rem,2vw,1.75rem); line-height: 1.15; letter-spacing: -.035em; }
.service-group[open] summary, .service-group summary:hover { color: #81521f; }
.service-group-marker { display: grid; place-items: center; flex: 0 0 1.9rem; aspect-ratio: 1; border: 1px solid #9b733d80; border-radius: 50%; }
.service-group-marker::before, .service-group-marker::after { content: ""; grid-area: 1 / 1; width: .7rem; height: 1px; background: currentColor; }
.service-group-marker::after { transform: rotate(90deg); transition: transform .2s; }
.service-group[open] .service-group-marker::after { transform: rotate(0); }
.service-links { margin: .05rem 0 .95rem .25rem; padding: 0 0 0 clamp(.65rem,1.55vw,1.35rem); border-left: 1px solid #b48349a6; list-style: none; }
.service-links a { display: block; padding: .4rem .2rem .5rem; text-decoration: none; overflow-wrap: anywhere; }
.service-links strong { font-size: clamp(1rem,1.3vw,1.15rem); line-height: 1.2; }
.service-links a:hover strong { text-decoration: underline; text-decoration-color: #ad7c43; text-underline-offset: .2em; }
.service-links p { margin-top: .17rem; color: var(--ink-soft); font-size: clamp(.875rem,1.18vw,1rem); line-height: 1.35; }
.service-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.55; background: #d8e0ea; border: 1px solid #ffffffb3; box-shadow: 0 15px 36px #253a6022; }
.service-art, .portfolio-section-art { border-radius: 24% 5% 22% 5% / 32% 7% 29% 7%; }
.service-art::after { content: ""; position: absolute; inset: .55rem; z-index: 1; border: 1px solid #fff8; border-radius: inherit; pointer-events: none; }
.service-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .38s ease; }
.service-art-image.is-current { opacity: 1; }
.service-art-image:first-child { inset: 0 auto 0 50%; width: auto; object-fit: contain; transform: translateX(-50%); mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent); }
.service-art-backdrop { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.72); transform: scale(1.12); opacity: 0; transition: opacity .38s ease; }
.service-art-image:first-child.is-current ~ .service-art-backdrop { opacity: 1; }
.project-card { border: 1px solid #fff9; border-radius: clamp(.85rem,1.55vw,1.5rem); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(123deg,#fffaf8,#e7eaf1); transition: box-shadow .2s, transform .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 21px #22355033; }
.project-card:focus-visible { outline: 3px solid #0367a3; outline-offset: 3px; }
.section-action { display: flex; justify-content: center; margin-top: 1.1rem; }
.portfolio-home { padding-bottom: clamp(1rem,2vw,2rem); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.project-card { display: block; text-decoration: none; }
.project-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(155deg,#b6c8dd,#e5d5c8); }
.project-cover img, .project-media button img { width: 100%; height: 100%; object-fit: cover; }
.demo-label { display: inline-flex; align-items: center; width: fit-content; padding: .29rem .53rem; border-radius: 40px; border: 1px solid #e6cb9b; color: #61401f; background: #fff7e8; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.project-cover .demo-label { position: absolute; top: .5rem; left: .5rem; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border: 1px solid #fff8; border-radius: 50%; color: #fff2d5; background: #112744b7; padding-left: .16rem; font-size: 1rem; }
.project-caption { display: grid; gap: .3rem; padding: .8rem .9rem; }
.project-caption span { color: var(--ink-soft); font-size: .9rem; }

.portfolio-home > .section-title { width: min(94%,1392px); margin-inline: auto; }
.portfolio-home > .empty { width: min(94%,1392px); margin-inline: auto; }
.portfolio-home { position: relative; }
.portfolio-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-color: #ac9b80 #e6eaf1; }
.ribbon-stack {
  --ribbon-height: clamp(356.5px,34.5vw,523.25px);
  position: relative;
  min-width: 790px;
  height: calc(var(--ribbon-height) * 1.52);
  isolation: isolate;
}
.portfolio-ribbon {
  position: absolute;
  inset: 0 0 auto;
  height: var(--ribbon-height);
  pointer-events: none;
  isolation: isolate;
}
.portfolio-ribbon[data-direction="1"] { z-index: 1; }
.portfolio-ribbon[data-direction="-1"] { top: calc(var(--ribbon-height) * .52); }
.portfolio-wave {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  background: #152c47;
  clip-path: url(#portfolio-wave-clip);
  clip-path: shape(from 0% 30%, curve to 50% 25% with 17% -9% / 31% -1%, curve to 100% 30% with 65% 46% / 82% 55%, line to 100% 82%, curve to 50% 77% with 82% 107% / 65% 98%, curve to 0% 82% with 31% 51% / 17% 43%, close);
}
.ribbon-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ribbon-rim use { fill: none; }
.ribbon-gold { stroke: #ae722b; stroke-width: 3.5px; filter: drop-shadow(0 0 1.5px #f5d188); }
.ribbon-glint {
  opacity: 0;
  stroke: #ffedac;
  stroke-linecap: round;
  stroke-width: 5px;
  filter: drop-shadow(0 0 3px #ffc347) drop-shadow(0 0 7px #fbb234);
  mask: linear-gradient(90deg,transparent,#000 42%,#000 58%,transparent) no-repeat -24% 0 / 18% 100%;
}
.ribbon-track { display: flex; width: 200%; height: 100%; transform: translate3d(-50%,0,0); }
.ribbon-group { display: flex; flex: 0 0 50%; min-width: 0; height: 100%; }
.ribbon-group .compact {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #22354b;
  --ribbon-center: 55%;
}
.ribbon-group .compact + .compact,
.ribbon-group + .ribbon-group .compact:first-child { border-left: 1px solid #f7f0e89c; }
.ribbon-group .compact:hover { transform: none; box-shadow: none; }
.ribbon-group .project-cover {
  position: absolute;
  inset: var(--ribbon-center) 0 auto;
  height: 89%;
  translate: 0 -50%;
  aspect-ratio: auto;
}
.portfolio-ribbon:is([data-frames="1"],[data-frames="2"],[data-frames="3"]) .project-cover { inset: 0; height: 100%; translate: none; }
.ribbon-group .project-cover img { display: block; object-position: center; transition: transform .45s ease; }
.ribbon-group .compact:hover .project-cover img { transform: scale(1.035); }
.ribbon-group .play { top: calc(50% - 2.65rem); width: 2.35rem; }
.portfolio-ribbon:is([data-frames="1"],[data-frames="2"],[data-frames="3"]) .play { top: calc(var(--ribbon-center) - 2.65rem); }
.ribbon-group .project-caption {
  position: absolute;
  top: calc(var(--ribbon-center) + .65rem);
  left: 4%;
  width: 92%;
  translate: 0 -50%;
  justify-items: center;
  padding: .38rem .16rem;
  border-radius: .7rem;
  color: white;
  background: radial-gradient(ellipse at center,#0a1833e8 14%,#1221419c 59%,transparent 78%);
  text-align: center;
  font-size: clamp(.85rem,1.4vw,1.24rem);
  line-height: 1.12;
  text-shadow: 0 1px 3px #0b1935;
  overflow-wrap: anywhere;
}
.ribbon-group .demo-label { color: #fff1d4; background: #101d35dd; border-color: #fff5d988; font-size: .72rem; }
.ribbon-group .compact:focus-visible { outline: none; }
.ribbon-group .compact:focus-visible .project-caption { outline: 2px solid white; background: #0a2451; }
.ribbon-toggle {
  display: none;
  position: absolute;
  z-index: 2;
  right: max(4%,calc((100% - 1392px) / 2));
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #b7895266;
  border-radius: 50%;
  color: #704c23;
  background: #fcf8f0;
}
.ribbon-toggle span { width: .65rem; height: .83rem; border-inline: 2px solid currentColor; }
.ribbon-toggle.is-paused span {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0,100% 50%,0 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .ribbon-toggle { display: grid; place-items: center; }
  .ribbon-glint { animation: ribbon-gold-travel 14s linear infinite paused; }
  .ribbon-glint[href="#ribbon-middle"] { animation-delay: -2s; }
  .portfolio-ribbon[data-direction="-1"] .ribbon-glint { animation-direction: reverse; animation-delay: -4s; }
  .ribbon-playing .ribbon-glint { animation-play-state: running; }
  @keyframes ribbon-gold-travel {
    0%, 8% { opacity: 0; mask-position: -24% 0; }
    16% { opacity: 1; mask-position: -8% 0; }
    67% { opacity: 1; mask-position: 108% 0; }
    75%, 100% { opacity: 0; mask-position: 124% 0; }
  }
}
.about { background: #ebedf3 url("assets/ribbons.webp") right center / auto 100% no-repeat; color: var(--ink); box-shadow: inset 0 1px 0 #fff9; }
.about-inner { display: grid; grid-template-columns: auto minmax(0, 38rem); align-items: center; gap: clamp(1rem,3vw,3rem); min-height: 155px; padding: .55rem 0; }
.seal { width: clamp(105px,15vw,170px); border-radius: 50%; }
.about h2, .contact-section h2 { font-size: clamp(1.55rem, 2.65vw, 2.35rem); letter-spacing: -.035em; }
.about p, .contact-section p { margin-top: .3rem; max-width: 54ch; }
.reviews {
  padding-block: clamp(2rem,4vw,4.25rem);
  background: radial-gradient(ellipse at 50% 10%, #fffdf8, transparent 65%), linear-gradient(115deg,#e8eef5,#f6f3ef 70%,#e8edf5);
}
.review-carousel { width: min(100%, 50rem); margin-inline: auto; }
.review-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 11.5rem;
  padding: clamp(1.45rem,4vw,3.1rem);
  overflow: hidden;
  border: 1px solid #cfab7e;
  border-bottom: 2px solid #c99a60;
  border-radius: 1.4rem 3.75rem 1.4rem 3.75rem;
  background: linear-gradient(118deg,#fdfefe,#f4f1ec 70%,#d9e4ef);
  box-shadow: 0 12px 32px #19385b14;
}
.review-slide::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -7% auto auto;
  width: min(24rem,65%);
  aspect-ratio: 1.9;
  transform: rotate(-21deg);
  border-top: 1px solid #a7733f4d;
  border-radius: 50%;
  box-shadow: 0 -7px 0 -6px #fff, 0 -16px 0 -15px #b0bace;
}
@property --review-glint-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -72deg;
}
@supports (mask-composite: exclude) {
  .review-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    padding: 3px;
    opacity: 0;
    background: conic-gradient(from var(--review-glint-angle), transparent, #cd8a34 14deg, #ffdda0 25deg, #fff4cc 31deg, #e8ac49 38deg, transparent 60deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}
.review-entry { margin: 0; overflow-wrap: anywhere; }
.review-entry blockquote { margin: 0; font-size: clamp(1.05rem,2.2vw,1.45rem); line-height: 1.55; white-space: pre-line; }
.review-entry figcaption { display: flex; flex-wrap: wrap; column-gap: .8em; margin-top: .85rem; color: var(--ink-soft); }
.review-entry figcaption span:first-child { font-weight: 650; }
.review-controls { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1rem; }
.review-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #b98a55;
  border-radius: 50%;
  background: linear-gradient(#fff,#edf1f6);
  font-size: 1.22rem;
  transition: box-shadow .18s, background-color .18s;
}
.review-arrow:hover { box-shadow: 0 3px 10px #8f68372d; background: #fff7e8; }
.review-count { min-width: 3.5ch; color: var(--ink-soft); text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .review-slide::after { animation: review-gold-travel 14s linear infinite; }
  @keyframes review-gold-travel {
    0% { --review-glint-angle: -72deg; opacity: 0; }
    6%, 61% { opacity: 1; }
    67%, 100% { --review-glint-angle: 288deg; opacity: 0; }
  }
}
.about p { text-shadow: 0 1px 5px #fff; }
.contact-section { background: #f7f7fa; color: var(--ink); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: clamp(1.35rem,4vw,3.5rem) 0; }
.contact-inner .button { flex-shrink: 0; }
.footer-contact-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.7rem,2vw,1.5rem); }
.footer-social { display: flex; flex-wrap: wrap; gap: 0 clamp(.05rem,.7vw,.45rem); padding: 0; margin: 0; list-style: none; }
.footer-social a, .footer-social-item { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 50%; }
.footer-social .contact-icon {
  width: 2rem;
  border: 1px solid #fff;
  color: #fff;
  background: var(--social-color);
  box-shadow: 0 2px 5px #142b4926;
}
.footer-social .contact-icon svg { width: 1.18rem; }
.footer-social a:hover .contact-icon { box-shadow: 0 3px 8px #142b4948; }
.footer-social [data-social="youtube"] { --social-color: #ce222a; }
.footer-social [data-social="telegram"] { --social-color: #087ba8; }
.footer-social [data-social="vk"] { --social-color: #086bd9; }
.footer-social [data-social="instagram"] { --social-color: linear-gradient(135deg,#6551bd,#b82c70 55%,#b6531e); }
.footer-social [data-social="facebook"] { --social-color: #2456ad; }
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,10.5rem),1fr));
  gap: .9rem;
  max-width: 62rem;
  padding: 0;
  margin: clamp(1.4rem,4vw,2.65rem) 0 0;
  list-style: none;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: .65rem;
  height: 100%;
  min-height: 5.6rem;
  padding: .9rem .8rem;
  border: 1px solid #fff;
  border-bottom-color: #c7a575;
  border-radius: 1.05rem 1.9rem 1.05rem 1.9rem;
  background: linear-gradient(115deg,#fff,#e7eef5);
  box-shadow: 0 6px 22px #19385b12;
  text-decoration: none;
}
a.contact-method:hover { border-color: #b98a55; }
a.contact-method:hover strong { text-decoration: underline; text-underline-offset: .17em; }
.contact-icon {
  display: grid;
  flex: 0 0 2.4rem;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #c7a575;
  border-radius: 50%;
  color: #805120;
  background: #fffaf2;
}
.contact-icon svg { width: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.contact-placeholder { margin-top: 1rem; color: var(--ink-soft); }
.contact-community { margin-top: .85rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.contact-direct a { overflow-wrap: anywhere; }
.site-footer { background: #122c49; color: #eef2fa; }
.footer-inner { min-height: 62px; display: flex; gap: .8rem 1.3rem; justify-content: space-between; align-items: center; padding: .7rem 0; flex-wrap: wrap; font-size: .9rem; }
.footer-inner strong { color: #f6d49a; letter-spacing: .1em; }
.footer-copyright { margin-inline-start: auto; }

.inner-page { max-width: 1150px; padding: clamp(1.5rem,4vw,3rem) 0 3rem; }
.inner-page h1 { font-size: clamp(2rem,4.6vw,3.65rem); line-height: 1.05; letter-spacing: -.045em; }
.about-page-copy {
  max-width: 68ch;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
}
.about-page-copy h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; }
.about-page-copy p { margin-top: .95rem; line-height: 1.62; color: var(--ink-soft); }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--ink-soft); text-underline-offset: .2em; }
.filters, .editor-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 1.35rem 0 1.5rem; }
.filter { display: inline-flex; min-height: 39px; align-items: center; font-size: .9rem; font-weight: 650; border: 1px solid #c8d2e1; border-radius: 50px; background: #fff9; text-align: start; text-decoration: none; padding: .43rem .85rem; line-height: 1.2; }
.filter:hover { border-color: var(--gold); }
.filter[aria-current], .filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.portfolio-group summary { cursor: pointer; font-size: clamp(1.1rem,2vw,1.75rem); font-weight: 700; }
.portfolio-group > :is(.project-grid,.empty) { margin-bottom: 1rem; }
.portfolio-direction-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1.1rem,2vw,1.75rem);
  font-weight: 700;
  text-decoration: none;
  min-height: 4.75rem;
  margin-bottom: .55rem;
  padding: .45rem clamp(.5rem,1.5vw,1rem);
  gap: clamp(.5rem,1.5vw,1rem);
  border: 1px solid #c8d0de;
  border-radius: 1rem;
  background: linear-gradient(115deg,#e5ecf5,#fffbf4);
}
.portfolio-direction-link:is(:hover,:focus-visible) { border-color: var(--gold); color: #81521f; }
.portfolio-section-art {
  flex: 0 0 auto;
  width: clamp(3.75rem,12vw,7rem);
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 3px 9px #253a6026;
}
.portfolio-direction-link .portfolio-section-title { flex: 1; min-width: 0; }
.direction-portfolio-banner { position: relative; overflow: hidden; margin-top: clamp(1rem,3vw,2rem); border: 1px solid #fff; border-radius: 1rem; box-shadow: var(--shadow); }
.direction-portfolio-hero { width: 100%; height: auto; }
.direction-portfolio-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) {
  .direction-portfolio-glow { display: none; }
}
.direction-portfolio-description { max-width: 65ch; }
.video-offer {
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 3vw, 1.75rem);
  margin-top: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #d7ddea;
  border-bottom-color: #c7a575;
  border-radius: 1rem;
  background: linear-gradient(115deg, #fdfefe, #f7f3eb 60%, #e6edf6);
}
.video-offer h2 { font-size: clamp(1.25rem, 2.05vw, 1.7rem); line-height: 1.24; text-wrap: balance; }
.video-offer-ending { white-space: nowrap; }
@media (max-width: 340px) {
  .video-offer-ending { white-space: normal; }
}
.video-offer-lit-letter {
  animation: offer-letter-warmth 7s ease-in-out infinite;
}
.video-offer-lit-letter + .video-offer-lit-letter {
  animation-delay: .2s;
}
.video-offer-crystal {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-start: .06em;
  vertical-align: -.12em;
  animation: offer-crystal-light 7s ease-in-out infinite;
}
@keyframes offer-letter-warmth {
  0%, 4%, 30%, 100% { color: inherit; text-shadow: 0 0 .16em transparent, 0 0 .38em transparent; }
  15% { color: #82500b; text-shadow: 0 0 .16em #ffdb82, 0 0 .38em #e99e4180; }
}
@keyframes offer-crystal-light {
  0%, 11%, 95%, 100% { opacity: .45; transform: scale(.77); filter: drop-shadow(0 0 .22em transparent); }
  22% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 .22em #e9a635b3); }
  36% { opacity: .83; transform: scale(.95); filter: drop-shadow(0 0 .22em #e9a63535); }
}
@media (prefers-reduced-motion: reduce) {
  .video-offer-lit-letter, .video-offer-crystal { animation: none; }
}
.video-offer p { margin-top: .65rem; color: var(--ink-soft); }
.idea-button {
  position: relative;
  max-width: 100%;
  margin-top: 1rem;
  padding-inline: clamp(.8rem, 3vw, 1.5rem);
  border-color: #cba059;
  background: radial-gradient(ellipse at 32% -8%, #4671f0 0%, #254cc9 37%, transparent 75%),
    linear-gradient(112deg, #102577, #234ac4 56%, #102783);
}
.idea-button-label { display: grid; }
.idea-button-label > span { grid-area: 1 / 1; }
.idea-button-glint { visibility: hidden; pointer-events: none; }
@property --offer-rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -100deg;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (mask-composite: exclude) {
    .idea-button::after {
      position: absolute;
      inset: -1px;
      padding: 2px;
      border-radius: inherit;
      pointer-events: none;
      content: "";
      opacity: 0;
      background: conic-gradient(from var(--offer-rim-angle), transparent, #dfaa50 22deg, #fff0b6 38deg, #dfaa50 53deg, transparent 78deg);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      animation: offer-rim-glint 18s linear infinite;
    }
  }
  @supports (mask-image: linear-gradient(#000, transparent)) {
    .idea-button-glint {
      visibility: visible;
      margin: -.2em;
      padding: .2em;
      color: #fff;
      opacity: 0;
      text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 11px #dceaff;
      mask: linear-gradient(105deg, transparent, #000 43% 57%, transparent) -80% 0 / 45% 100% no-repeat;
      animation: offer-text-glint 18s linear infinite;
    }
  }
}
@keyframes offer-rim-glint {
  0%, 14% { --offer-rim-angle: -100deg; opacity: 0; }
  19%, 39% { opacity: 1; }
  45%, 100% { --offer-rim-angle: 260deg; opacity: 0; }
}
@keyframes offer-text-glint {
  0%, 20% { mask-position: -85% 0; opacity: 0; }
  21%, 38% { opacity: 1; }
  39%, 100% { mask-position: 185% 0; opacity: 0; }
}
.direction-portfolio-work { margin-top: clamp(1.4rem,4vw,2.75rem); }
.direction-portfolio-work h2 { margin-bottom: .85rem; }
.video-topics { list-style: none; margin: 0; padding: 0; }
.video-topic { border: 1px solid #fff; border-bottom-color: #c7a575; border-radius: 1rem; background: #fff9; box-shadow: var(--shadow); }
.video-topic a { display: block; overflow: hidden; border-radius: inherit; text-decoration: none; }
.video-topic a:hover .video-topic-title { color: #81521f; }
.video-topic-caption { padding: .75rem .9rem; }
.video-topic-title { font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.video-topic-description { margin-top: .25rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.35; }
.video-topic-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: clamp(1rem, 3vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 930px) {
  .video-topic-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .video-topic-works { grid-template-columns: minmax(0, 1fr); }
}
.video-topic-work {
  padding: clamp(.55rem, 1.8vw, .9rem);
  border: 1px solid #fff;
  border-bottom-color: #c7a575;
  border-radius: 1rem;
  background: #fff9;
  box-shadow: var(--shadow);
}
.video-topic-work-title {
  margin: .65rem .2rem .1rem;
  font-size: clamp(.95rem, 1.45vw, 1.15rem);
  line-height: 1.35;
}
.youtube-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .65rem;
  background: #111f37;
}
.video-topic-work-short { width: 100%; max-width: 19rem; }
.video-topic-work-short .youtube-player { aspect-ratio: 9 / 16; }
.empty { padding: 2rem; text-align: center; background: #fff9; border: 1px solid var(--line); border-radius: 1rem; }
.empty a { display: inline-block; margin-top: .5rem; }
.project-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.category, .intro { margin-top: .7rem; color: var(--ink-soft); }
.news-entry { max-width: 68ch; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.news-entry time { display: block; margin-bottom: .35rem; color: var(--ink-soft); font-size: .9rem; }
.news-entry p { margin-top: .55rem; white-space: pre-line; }
.project-description { max-width: 68ch; margin: .75rem 0 1.4rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap: 1.2rem; }
.project-media { margin: 0; min-width: 0; }
.project-media button { position: relative; display: block; padding: 0; border: 1px solid #fff; border-radius: 1rem; overflow: hidden; width: 100%; aspect-ratio: 16/9; background: #cbd9e8; box-shadow: var(--shadow); }
.project-media button:hover .play { background: #172f4d; }
.project-media figcaption { color: var(--ink-soft); margin-top: .5rem; font-size: .92rem; }
.project-fallback { border-radius: 1rem; max-height: 70vh; }
.video-placeholder { display: grid; place-items: center; min-height: 100%; }
.project-page .section-action { justify-content: flex-start; }

dialog { position: fixed; overflow: auto; border: 1px solid #c3a47d; padding: clamp(1.15rem,4vw,2rem); background: #f8f8fb; color: var(--ink); border-radius: 1.25rem; width: min(92%,35rem); max-height: 92dvh; box-shadow: 0 16px 55px #07152e70; }
dialog::backdrop { background: #0b1e3ed1; }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { max-width: calc(100% - 2.2rem); font-size: clamp(1.35rem,4vw,1.8rem); margin-bottom: .65rem; }
dialog p { color: var(--ink-soft); }
.close { position: absolute; top: .65rem; right: .65rem; width: 2.45rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.55rem; line-height: 1; }
#request-form { display: grid; gap: .75rem; margin-top: 1rem; }
#request-form .button { justify-self: start; }
#media-dialog { width: fit-content; max-width: min(94%,1050px); }
.media-body > * { display: block; height: auto; max-width: 100%; max-height: 73dvh; margin: auto; }
.media-body video { width: min(76vw,800px); background: #07182b; }
label { display: grid; font-weight: 650; gap: .35rem; min-width: 0; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; border: 1px solid #bfcadd; border-radius: .55rem; background: #fff; color: var(--ink); padding: .58rem .65rem; font-weight: 400; }
input:not([type=checkbox]), select { min-height: 41px; }
textarea { resize: vertical; }
.status { font-size: .92rem; color: #234b6d; min-height: 1.3em; overflow-wrap: anywhere; }
.editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.editor-status { margin-top: .65rem; }
.editor-panel { padding: clamp(.85rem,3vw,1.45rem); border: 1px solid var(--line); background: #fdfdffad; border-radius: .9rem; }
.editor-fields { display: grid; gap: .85rem; min-width: 0; }
.editor-item + .editor-item { border-top: 1px solid var(--line); }
.editor-item summary { padding: .8rem .15rem; font-weight: 650; }
.editor-item .editor-fields { padding: .1rem 0 1rem; }
.media-field { display: flex; gap: .8rem; align-items: start; min-width: 0; }
.media-field img { width: min(23%,9rem); aspect-ratio: 3/2; object-fit: cover; border-radius: .4rem; margin-top: 1.6rem; }
.media-field > div { flex: 1; min-width: 0; }
.upload-label { margin: .55rem 0 0; font-size: .9rem; }
.upload-label input[type=file] { font-size: .9rem; min-height: auto; }
.file-attached { font-size: .86rem; color: var(--ink-soft); padding-top: .3rem; }
.import-label { position: relative; }
.import-label:focus-within { outline: 3px solid #0367a3; outline-offset: 4px; }
.import-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.editor-project-layout { display: grid; grid-template-columns: minmax(10rem, .36fr) minmax(0, 1fr); gap: 1rem; }
.editor-projects { display: flex; flex-direction: column; gap: .35rem; }
.editor-projects .button { margin-bottom: .55rem; align-self: start; }
.editor-project-choice { display: block; width: 100%; text-align: start; background: transparent; border: 1px solid transparent; padding: .55rem; border-radius: .45rem; overflow-wrap: anywhere; }
.editor-project-choice[aria-pressed=true] { background: #e1eafa; border-color: #9faec4; }
.editor-media-row { padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; display: grid; gap: .65rem; }
.check { display: flex; align-items: center; gap: .45rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.editor-subheading { font-size: 1.2rem; }
.text-button { color: #844734; background: transparent; border: 0; padding: .5rem; width: fit-content; text-decoration: underline; text-underline-offset: .15em; }

@media (max-width: 930px) {
  :root { --header-height: 55px; }
  .header-inner { gap: .8rem; }
  #navigation { gap: .9rem; }
}
@media (max-width: 750px) {
  :root { --header-height: 58px; }
  .shell { width: 92%; }
  .brand { flex-basis: min(47vw,220px); }
  .header-cta { margin-left: auto; min-height: 36px; padding-inline: .78rem; }
  .menu-toggle { display: grid; gap: 4px; align-content: center; width: 42px; aspect-ratio: 1; flex: 0 0 auto; background: #173858; color: #fff; border-radius: .55rem; border: 1px solid #ffffff57; padding: 9px; order: 3; }
  .menu-toggle span { display: block; height: 2px; background: currentColor; border-radius: 3px; }
  #navigation { position: absolute; display: none; top: 100%; right: 0; left: 0; padding: .45rem 4% .85rem; background: #153552; box-shadow: 0 8px 15px #1626444a; }
  #navigation.open { display: grid; justify-content: stretch; gap: .1rem; }
  #navigation a { min-height: 43px; padding: 0 .8rem; border-radius: .4rem; }
  #navigation a[aria-current] { background: #ffffff1a; }
  #navigation a::after { display: none; }
  .hero-art { display: none; }
  .hero-portrait-frame { position: relative; display: block; overflow: hidden; container-type: inline-size; }
  .hero-portrait { display: block; width: 100%; height: clamp(230px,57vw,390px); object-fit: cover; object-position: 50% 36%; }
  .hero-portrait-frame :is(.neural-lights, .cloud-frame) { inset: 36% auto auto 50%; width: max(100cqw, calc(clamp(230px, 57vw, 390px) * 548 / 407)); aspect-ratio: 548 / 407; transform: translate(-50%, -36%); }
  .hero-portrait-frame .cloud-drift { --cloud-travel: 2.7%; mask-image: radial-gradient(ellipse 20% 23% at 88% 24%, #000 30%, transparent 100%); }
  .hero-content { display: grid; min-height: 165px; place-items: center; padding: .55rem 1rem 1.1rem; background: radial-gradient(ellipse at 48% 26%,#fffbf2 5%,#e6e8f1 72%,#c4d3e6); }
  .hero-signature { position: relative; display: block; width: min(78vw,330px); margin-top: -.42rem; mask-image: radial-gradient(ellipse 75% 67% at center, #000 73%,transparent 99%); }
  .hero-signature .motto-wave { inset: 61% 3% 3%; }
  .hero-cta { position: relative; inset: auto; width: min(85%,292px); height: auto; min-height: 43px; padding: .55em; font-size: 1rem; }
  .hero-custom { position: relative; inset: auto; width: 100%; min-height: 0; justify-items: center; text-align: center; padding: .65rem 0 1rem; background: none; }
  .hero-custom span { max-width: none; font-size: 1.35rem; }
  .hero-custom p { font-size: 1.55rem; }
  .feature { padding: 0; gap: .45rem; }
  .feature-icon { width: 38px; }
  .feature strong { font-size: .875rem; }
  .feature p { font-size: .875rem; }
  .service-showcase { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .service-art { grid-row: 1; aspect-ratio: 1.75; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about { background-position: 120% center; }
}
@media (max-width: 460px) {
  .header-cta { display: none; }
  .hero-portrait { height: 58vw; min-height: 185px; }
  .hero-portrait-frame :is(.neural-lights, .cloud-frame) { width: max(100cqw, calc(max(58vw, 185px) * 548 / 407)); }
  .hero-content { min-height: 0; }
  .hero-signature { width: min(82vw,300px); }
  .features { padding-top: .65rem; }
  .feature-icon { width: 32px; font-size: 1.4rem; }
  .section-title::before, .section-title::after { flex-basis: 2rem; }
  .project-grid { gap: .65rem; }
  .project-caption { padding: .55rem; }
  .project-caption span { font-size: .8rem; }
  .about-inner { align-items: start; padding: 1.1rem 0; gap: .8rem; }
  .about { background-image: linear-gradient(100deg,#edf0f7cf,#f1e9dfd0),url("assets/ribbons.webp"); background-position: center,right center; background-size: cover; }
  .seal { width: 76px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .editor-project-layout { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .brand-orbit, .neural-lights, .motto-wave, .cloud-frame { display: none; }
  .features { grid-template-columns: minmax(0,1fr); }
  .features-viewport { overflow: visible; mask-image: none; }
  .features-track { width: auto; animation: none; }
  .features-list { flex: 1; grid-auto-flow: row; grid-template-columns: repeat(auto-fit,minmax(min(100%,15.25rem),1fr)); gap: .85rem; }
  .features-list .feature { padding: 0; }
  .features-copy, .features-toggle { display: none; }
}
