:root {
  --bg: #09021f;
  --bg-deep: #050112;
  --surface: rgba(255, 255, 255, 0.085);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #fffaff;
  --muted: rgba(255, 250, 255, 0.72);
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.25);
  --magenta: #ff078f;
  --pink: #ff56c3;
  --violet: #7448ff;
  --cyan: #6de9ff;
  --shadow-sm: 0 18px 48px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.38);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 38% 5%, rgba(255, 0, 145, 0.72) 0, rgba(255, 0, 145, 0.25) 23%, transparent 49%),
    radial-gradient(circle at 91% 79%, rgba(118, 82, 255, 0.58) 0, rgba(118, 82, 255, 0.17) 26%, transparent 51%),
    radial-gradient(circle at 3% 51%, rgba(76, 23, 153, 0.54) 0, transparent 50%),
    linear-gradient(145deg, #251052 0%, #12032f 43%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 27%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.62), transparent 62%);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: rgba(255, 7, 143, 0.72);
}

:focus-visible {
  outline: 3px solid rgba(109, 233, 255, 0.9);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

[id] {
  scroll-margin-top: 112px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -160%);
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: #2b0d58;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.section-shell {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.site-gradient {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.68;
  filter: blur(20px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), rgba(255, 0, 160, 0.075) 34%, transparent 67%);
  transform: translate3d(calc(var(--mx, 58vw) - 50%), calc(var(--my, 34vh) - 50%), 0);
  will-change: transform;
}

.dot-matrix {
  position: fixed;
  z-index: -1;
  width: 104px;
  height: 168px;
  opacity: 0.27;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.45px, transparent 1.6px);
  background-size: 13px 13px;
}

.dot-top {
  top: 54px;
  right: 58px;
}

.dot-bottom {
  left: 34px;
  bottom: 70px;
  opacity: 0.12;
  transform: rotate(90deg);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(var(--max), calc(100% - 34px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px 9px 16px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 4, 27, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  transition:
    min-height 0.35s var(--ease),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.topbar.scrolled {
  min-height: 68px;
  background: rgba(8, 4, 27, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.brand,
.brand-logo-only {
  width: 74px;
  min-width: 74px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.top-logo,
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 7px 15px rgba(8, 2, 28, 0.42)) drop-shadow(0 0 12px rgba(255, 82, 184, 0.18));
  transform: translateZ(0);
  transition: transform 0.45s var(--ease), filter 0.45s ease;
}

.brand:hover .top-logo {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 10px 20px rgba(8, 2, 28, 0.5)) drop-shadow(0 0 18px rgba(255, 82, 184, 0.27));
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.menu .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 12px 30px rgba(255, 7, 143, 0.25);
}

.menu .nav-cta:hover {
  background: linear-gradient(135deg, #ff2da5, #815bff);
  box-shadow: 0 16px 38px rgba(255, 7, 143, 0.36);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.3s var(--ease);
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-button.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 138px 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 5vw, 62px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero h1,
.hero-title {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(3.85rem, 7.6vw, 7.3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
  text-shadow: 0 28px 75px rgba(0, 0, 0, 0.34);
  overflow: visible;
}

.agasta-word {
  display: inline-block;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  overflow: visible;
}

.agasta-tone-1 {
  color: #fff;
  background: linear-gradient(92deg, #ffffff 0%, #ff88d2 40%, #a891ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agasta-tone-2 { color: #ff8bd9; }
.agasta-tone-3 { color: #ffd1ef; }
.agasta-tone-4 { color: #cbb8ff; }
.agasta-tone-5 { color: #ffb6e4; }

.hero-kicker {
  max-width: 700px;
  margin: 30px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.78;
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.91rem;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
  box-shadow: none;
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 64%, var(--cyan));
  box-shadow: 0 18px 44px rgba(255, 7, 143, 0.27);
}

.btn-primary:hover {
  box-shadow: 0 25px 60px rgba(255, 7, 143, 0.4);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.btn.full {
  width: 100%;
}

.hero-card {
  min-height: 590px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 42px 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 27% 7%, rgba(255, 8, 148, 0.86), transparent 42%),
    radial-gradient(circle at 93% 91%, rgba(124, 95, 255, 0.72), transparent 35%),
    radial-gradient(ellipse at 50% 72%, rgba(2, 0, 14, 0.77), transparent 54%),
    linear-gradient(155deg, #42167a 0%, #190733 46%, #050215 100%);
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
  transition: transform 0.55s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.43);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 28px;
  z-index: -1;
  width: 91px;
  height: 140px;
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.92) 1.55px, transparent 1.7px);
  background-size: 13px 13px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -22%;
  z-index: -1;
  height: 58%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 8%, rgba(0, 0, 0, 0.48), rgba(1, 0, 15, 0.8));
}

.hero-card-label {
  align-self: center;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.hero-card-title {
  max-width: 430px;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(2.05rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-align: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 430px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.hero-social {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: transform 0.3s var(--ease), background 0.25s ease;
}

.hero-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.profile-section,
.event-section,
.workflow-section,
.contact-section,
.seo-section,
.faq-section,
#services {
  padding-top: 96px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-heading p:last-child {
  max-width: 700px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.76;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: stretch;
  gap: 24px;
}

.glass-panel,
.stats-grid article,
.service-card,
.event-item,
.timeline-card,
.contact-panel,
.seo-panel,
.faq-list details {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--shadow-sm);
}

.profile-copy {
  min-height: 330px;
  padding: clamp(30px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.profile-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.19;
  letter-spacing: -0.04em;
}

.profile-copy p {
  margin: 0 0 17px;
  color: var(--muted);
  line-height: 1.82;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stats-grid article {
  min-height: 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.stats-grid article::before,
.service-card::before,
.timeline-card::before,
.seo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 18% 0%, rgba(255, 3, 143, 0.24), transparent 47%);
  transition: opacity 0.4s ease;
}

.stats-grid article:hover,
.service-card:hover,
.timeline-card:hover,
.seo-panel:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.065));
}

.stats-grid article:hover::before,
.service-card:hover::before,
.timeline-card:hover::before,
.seo-panel:hover::before {
  opacity: 1;
}

.stats-grid strong,
.timeline-card strong {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stats-grid span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.35;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 330px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.42s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.09);
  filter: saturate(1.18) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  transition: transform 0.45s var(--ease);
}

.service-card:hover img {
  transform: translateY(-3px) scale(1.04);
}

.service-card span {
  display: inline-block;
  margin-top: 26px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.11em;
}

.service-card h3,
.event-item h3,
.timeline-card h3,
.seo-panel h2,
.seo-panel h3 {
  margin: 13px 0 11px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.service-card h3 a,
.event-item h3 a {
  transition: color 0.25s ease;
}

.service-card h3 a:hover,
.event-item h3 a:hover {
  color: #ffd7ef;
}

.service-card p,
.event-item p,
.timeline-card p,
.seo-panel p,
.faq-list p,
.contact-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 26px;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.event-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.065));
}

.event-item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.085);
}

.event-item h3 {
  margin-top: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.timeline-card {
  min-height: 260px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-md);
  transition: transform 0.42s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.timeline-card > * {
  position: relative;
  z-index: 1;
}

.timeline-card strong {
  color: var(--pink);
  font-size: 2.15rem;
  font-weight: 700;
}

.timeline-card h3 {
  margin-top: 42px;
  font-size: 1.22rem;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.seo-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 29px;
  border-radius: 28px;
  transition: transform 0.42s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.seo-panel > * {
  position: relative;
  z-index: 1;
}

.seo-panel h2,
.seo-panel h3 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2vw, 1.68rem);
}

.seo-panel p + p {
  margin-top: 11px;
}

.internal-link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 26px;
}

.internal-link-grid a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 249, 255, 0.9);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.32s var(--ease), border-color 0.25s ease, background 0.3s ease;
}

.internal-link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 7, 143, 0.4), rgba(110, 60, 255, 0.36));
}

.faq-list {
  max-width: 920px;
  display: grid;
  gap: 13px;
  margin: 27px auto 0;
}

.faq-list details {
  overflow: hidden;
  padding: 0 20px;
  border-radius: 21px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-list details[open] {
  border-color: rgba(255, 255, 255, 0.23);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.06));
}

.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 42px 20px 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.faq-list details[open] summary::after {
  background: rgba(255, 7, 143, 0.3);
  transform: translateY(-50%) rotate(45deg);
}

.faq-list p {
  padding: 0 0 20px;
}

.contact-section {
  padding-bottom: 30px;
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.76fr);
  gap: 30px;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 36px;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 7, 143, 0.28), transparent 43%),
    radial-gradient(circle at 96% 100%, rgba(116, 72, 255, 0.28), transparent 40%);
}

.contact-copy,
.contact-form {
  min-width: 0;
}

.contact-copy {
  align-self: center;
}

.contact-copy h2 {
  max-width: 630px;
}

.contact-copy p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 18px;
  font-size: 0.98rem;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(5, 2, 20, 0.28);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input,
.contact-form select {
  min-height: 49px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.contact-form select option {
  color: #15101f;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: rgba(109, 233, 255, 0.65);
  background: rgba(255, 255, 255, 0.105);
  box-shadow: 0 0 0 4px rgba(109, 233, 255, 0.1);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-block: 68px 38px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand,
.footer-brand-centered {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-full,
.footer img.footer-logo-full {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 13px;
  filter: drop-shadow(0 7px 16px rgba(10, 2, 30, 0.34)) drop-shadow(0 0 9px rgba(255, 82, 184, 0.15));
}

.footer-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-copy p,
.footer p.footer-company-name,
.footer p.footer-experience,
.footer p.footer-copyright,
.footer p.footer-tagline {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.55;
}

.footer-company-name {
  color: rgba(255, 250, 255, 0.98);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.footer-company-name strong {
  font-weight: 800;
}

.footer-experience {
  color: rgba(255, 250, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-copyright {
  color: rgba(255, 250, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-tagline {
  color: rgba(255, 250, 255, 0.68);
  font-size: 0.86rem;
}

.footer-links,
.footer-links-centered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.footer-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.service-page-hero {
  min-height: auto;
  padding-top: 170px;
  padding-bottom: 72px;
}

.service-page-copy {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.service-page-copy h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-align: center;
}

.service-page-copy .hero-kicker,
.service-page-copy .hero-text {
  margin-inline: auto;
  text-align: center;
}

.service-page-copy .hero-actions {
  justify-content: center;
}

.service-detail-section {
  padding-top: 20px;
}

.service-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (max-width: 1120px) {
  .menu a {
    padding-inline: 10px;
    font-size: 0.77rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .profile-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-card {
    min-height: 500px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-grid,
  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-copy h2,
  .contact-copy p:not(.eyebrow) {
    max-width: 720px;
  }
}

@media (max-width: 1080px) {
  html {
    scroll-padding-top: 94px;
  }

  [id] {
    scroll-margin-top: 94px;
  }

  .topbar {
    top: 12px;
    min-height: 66px;
    padding: 7px 9px 7px 12px;
  }

  .topbar.scrolled {
    min-height: 62px;
  }

  .brand,
  .brand-logo-only {
    width: 60px;
    min-width: 60px;
    height: 52px;
  }

  .top-logo,
  .brand img {
    width: 44px;
    height: 44px;
  }

  .menu-button {
    display: block;
  }

  .menu {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: grid;
    gap: 7px;
    max-height: calc(100svh - 98px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(8, 4, 27, 0.95);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.35s var(--ease);
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .menu a {
    width: 100%;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 0.88rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 88px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-title,
  .hero-kicker,
  .hero-text {
    margin-inline: auto;
    text-align: center;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(3rem, 11vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    min-height: 470px;
    padding: 36px 25px;
    border-radius: 30px;
  }

  .hero-card-title {
    font-size: clamp(2rem, 7vw, 3.3rem);
  }

  .hero-social {
    position: static;
    justify-content: center;
    margin-top: 34px;
  }

  .section-heading:not(.center) {
    margin-inline: auto;
    text-align: center;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy {
    text-align: center;
  }

  .contact-copy h2,
  .contact-copy p:not(.eyebrow) {
    margin-inline: auto;
    text-align: center;
  }

  .contact-buttons {
    justify-content: center;
  }

  .service-page-hero {
    padding-top: 132px;
    padding-bottom: 56px;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .dot-matrix {
    display: none;
  }

  .profile-section,
  .event-section,
  .workflow-section,
  .contact-section,
  .seo-section,
  .faq-section,
  #services {
    padding-top: 74px;
  }

  .eyebrow {
    margin-bottom: 14px;
    letter-spacing: 0.19em;
    font-size: 0.68rem;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.55rem, 12.4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.048em;
  }

  .hero-kicker {
    margin-top: 24px;
    font-size: clamp(1.22rem, 6vw, 1.75rem);
    line-height: 1.24;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .hero-actions,
  .contact-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    min-height: 430px;
    gap: 23px;
  }

  .hero-card-title {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
    line-height: 1.16;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 9.5vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.042em;
  }

  .profile-copy,
  .contact-panel,
  .seo-panel {
    padding: 24px;
  }

  .stats-grid,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    min-height: 128px;
  }

  .service-card {
    min-height: 300px;
    padding: 24px;
  }

  .event-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 17px;
  }

  .event-item img {
    width: 64px;
    height: 64px;
    padding: 10px;
    border-radius: 18px;
  }

  .timeline-card {
    min-height: 220px;
    padding: 24px;
  }

  .timeline-card h3 {
    margin-top: 30px;
  }

  .contact-panel {
    border-radius: 28px;
  }

  .contact-form {
    padding: 18px;
    border-radius: 20px;
  }

  .internal-link-grid {
    justify-content: stretch;
  }

  .internal-link-grid a {
    width: 100%;
  }

  .footer {
    padding-top: 54px;
  }
}

@media (max-width: 390px) {
  .section-shell {
    width: min(100% - 22px, var(--max));
  }

  .topbar {
    width: calc(100% - 20px);
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.3rem, 12.8vw, 3.25rem);
    line-height: 1.07;
  }

  .hero-card {
    min-height: 400px;
    padding-inline: 20px;
  }

  .hero-tags span {
    font-size: 0.7rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.85rem, 9.7vw, 2.65rem);
  }

  .event-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-item img {
    margin-inline: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }

  .hero-card:hover,
  .stats-grid article:hover,
  .service-card:hover,
  .event-item:hover,
  .timeline-card:hover,
  .seo-panel:hover,
  .btn:hover,
  .internal-link-grid a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar,
  .glass-panel,
  .stats-grid article,
  .service-card,
  .event-item,
  .timeline-card,
  .contact-panel,
  .seo-panel,
  .faq-list details {
    background: rgba(18, 7, 48, 0.94);
  }
}


/* === LOCAL SEO & NETLIFY PRODUCTION ADDITIONS === */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.local-page-hero { padding-bottom: 56px; }

.breadcrumb {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
  color: rgba(255, 250, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.breadcrumb a { color: rgba(255, 250, 255, 0.88); transition: color .25s ease; }
.breadcrumb a:hover { color: #fff; }

.local-info-section { padding-top: 74px; }
.local-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.local-info-card { padding: clamp(26px, 4vw, 38px); border-radius: var(--radius-lg); }
.local-info-card h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.04em; }
.check-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 29px; color: var(--muted); line-height: 1.62; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pink); font-weight: 900; }
.local-note { max-width: 900px; margin: 23px auto 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: rgba(255,255,255,.055); line-height: 1.75; text-align: center; }

.local-area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.local-area-card { min-height: 275px; display: flex; flex-direction: column; }
.local-area-card > span { color: var(--pink); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.local-area-card h3 { margin-top: 18px; }
.local-area-card h3 a { transition: color .25s ease; }
.local-area-card h3 a:hover { color: #ffd7ef; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 22px; color: #fff; font-size: .9rem; font-weight: 800; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.contact-panel-single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.contact-panel-single .contact-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.contact-panel-single .contact-copy p:not(.eyebrow) { margin-inline: auto; }
.contact-panel-single .contact-buttons { justify-content: center; }

.utility-page { min-height: 100vh; display: grid; place-items: center; padding-block: 42px; }
.utility-panel { max-width: 780px; padding: clamp(32px, 6vw, 66px); border-radius: var(--radius-lg); text-align: center; }
.utility-panel img { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 22px; }
.utility-panel h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 1.06; letter-spacing: -.055em; }
.utility-panel > p:not(.eyebrow) { max-width: 630px; margin: 22px auto 0; color: var(--muted); line-height: 1.75; }
.utility-panel .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .local-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .local-info-grid, .local-area-grid { grid-template-columns: 1fr; }
  .local-area-card { min-height: auto; }
}
@media (max-width: 620px) {
  .local-info-section { padding-top: 58px; }
  .local-info-card { padding: 24px; }
  .local-note { padding: 18px; text-align: left; }
  .breadcrumb { margin-bottom: 22px; }
}


/* === TYPOGRAPHY STABILITY & PORTFOLIO CMS === */
body {
  font-synthesis: none;
  font-kerning: normal;
}

h1, h2, h3, .hero-card-title, .menu a, .btn {
  overflow-wrap: break-word;
  word-break: normal;
}

.hero h1,
.hero-title {
  line-height: 1.075;
  letter-spacing: -0.045em;
}

.service-page-copy h1 {
  max-width: 980px;
  font-size: clamp(2.75rem, 5.65vw, 5.35rem);
  line-height: 1.12;
  letter-spacing: -0.044em;
}

.section-heading h2,
.contact-copy h2 {
  line-height: 1.17;
  letter-spacing: -0.042em;
}

.menu a {
  line-height: 1.3;
}

.portfolio-section {
  padding-top: 76px;
}

.portfolio-page-hero {
  padding-bottom: 46px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
}

.portfolio-filter {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,250,255,.82);
  background: rgba(255,255,255,.07);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
  transition: transform .3s var(--ease), background .25s ease, border-color .25s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,7,143,.68), rgba(116,72,255,.64));
}

.portfolio-filter:hover { transform: translateY(-2px); }

.portfolio-grid {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-inline: auto;
}

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-sm);
  transition: transform .42s var(--ease), border-color .3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.portfolio-card[hidden] { display: none; }

.portfolio-image {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #12072d;
  cursor: zoom-in;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .3s ease;
}

.portfolio-image::after {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,1,20,.68);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-size: 1rem;
  line-height: 1;
  opacity: .86;
  transition: transform .3s var(--ease), opacity .25s ease;
}

.portfolio-image:hover::after,
.portfolio-image:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
}

.portfolio-image:focus-visible {
  outline: 3px solid rgba(109,233,255,.7);
  outline-offset: -3px;
}

.portfolio-card:hover .portfolio-image img { transform: scale(1.035); filter: brightness(.92); }

.portfolio-card-body {
  padding: clamp(18px, 2.4vw, 24px);
}

.portfolio-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.portfolio-card-topline span,
.portfolio-card-topline strong {
  color: var(--pink);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-card-topline strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(116,72,255,.55);
  letter-spacing: .05em;
}

.portfolio-card h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.75vw, 1.58rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.portfolio-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
}

.portfolio-card .portfolio-meta {
  margin-top: 10px;
  color: rgba(255,250,255,.87);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.55;
}

.portfolio-empty {
  grid-column: 1 / -1;
  padding: clamp(34px, 6vw, 64px);
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 30px;
  background: rgba(255,255,255,.055);
  text-align: center;
}

.portfolio-empty h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.portfolio-empty p {
  max-width: 620px;
  margin: 15px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.portfolio-empty a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.portfolio-dialog {
  width: min(1100px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  background: #080319;
  box-shadow: 0 34px 100px rgba(0,0,0,.65);
}

.portfolio-dialog::backdrop { background: rgba(2,0,10,.82); backdrop-filter: blur(8px); }
.portfolio-dialog img { width: 100%; max-height: calc(100svh - 30px); object-fit: contain; }
.portfolio-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,1,20,.78);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.admin-link { opacity: .74; }

@media (max-width: 1080px) {
  .service-page-copy h1 { font-size: clamp(2.7rem, 7vw, 4.8rem); line-height: 1.13; }
}

@media (max-width: 1040px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-filter { flex: 1 1 auto; }
}

@media (max-width: 620px) {
  .hero h1, .hero-title { line-height: 1.13; letter-spacing: -.038em; }
  .service-page-copy h1 { font-size: clamp(2.25rem, 10.8vw, 3.45rem); line-height: 1.15; letter-spacing: -.038em; }
  .section-heading h2, .contact-copy h2 { line-height: 1.2; }
  .portfolio-section { padding-top: 62px; }
  .portfolio-card { border-radius: 24px; }
  .portfolio-card-body { padding: 22px; }
}

@media (max-width: 390px) {
  .hero h1, .hero-title, .service-page-copy h1 { line-height: 1.17; letter-spacing: -.03em; }
}


/* === AGASTA FRONT TITLE CLIPPING FIX === */
.hero h1 .agasta-word,
.hero-title .agasta-word {
  padding: 0.08em 0.08em 0.12em 0.035em;
  margin: -0.08em -0.08em -0.12em -0.035em;
  overflow: visible;
}
/* === SOCIAL, KEYWORD COLORS & SMOOTH EXPERIENCE V2 === */
:root {
  --keyword-show-management: #75e7ff;
  --keyword-event-management: #75e7ff;
  --keyword-event: #75e7ff;
  --keyword-creative: #75e7ff;
  --keyword-agasta: #75e7ff;
}

html {
  scroll-padding-top: 112px;
}

@keyframes agasta-page-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html.js body {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: agasta-page-enter 0.72s 0.04s var(--ease) forwards;
}

html.js body.page-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: none;
  transition:
    opacity 0.58s ease,
    transform 0.72s var(--ease);
}

html.js body.page-leaving {
  opacity: 0;
  transform: translate3d(0, 7px, 0);
  animation: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

main,
section,
article,
.glass-panel,
.seo-panel,
.service-card,
.event-card,
.timeline-card,
.portfolio-card {
  transform: translateZ(0);
}

.keyword-accent,
.agasta-word {
  display: inline;
  color: inherit;
  font-weight: inherit;
  text-shadow: 0 0 18px color-mix(in srgb, currentColor 22%, transparent);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.keyword-show-management {
  color: var(--keyword-show-management);
}

.keyword-event-management {
  color: var(--keyword-event-management);
}

.keyword-event {
  color: var(--keyword-event);
}

.keyword-creative {
  color: var(--keyword-creative);
}

.keyword-agasta,
.agasta-word {
  color: var(--keyword-agasta) !important;
}

.hero-social {
  gap: 12px;
}

.hero-social > span {
  color: rgba(255, 255, 255, 0.76);
}

.hero-social .instagram-link {
  width: auto;
  min-width: 198px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 79, 177, 0.24), rgba(116, 72, 255, 0.22));
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 12px 34px rgba(2, 0, 14, 0.2);
}

.instagram-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5ab7, #8b66ff);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: lowercase;
}

.instagram-handle {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-social .instagram-link:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 79, 177, 0.36), rgba(116, 72, 255, 0.33));
  box-shadow: 0 16px 42px rgba(2, 0, 14, 0.3);
}

.topbar,
.btn,
.menu a,
.hero-card,
.glass-panel,
.seo-panel,
.service-card,
.event-card,
.timeline-card,
.portfolio-card,
.footer a {
  backface-visibility: hidden;
}

@media (max-width: 820px) {
  .hero-social {
    position: static;
    justify-content: center;
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js body,
  html.js body.page-ready,
  html.js body.page-leaving {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .keyword-accent,
  .agasta-word {
    transition: none;
  }
}
