:root {
  --bg: #182b53;
  --bg-deep: #0d1831;
  --bg-soft: #21477d;
  --surface: rgba(16, 27, 48, 0.76);
  --surface-soft: rgba(22, 38, 68, 0.74);
  --surface-strong: rgba(20, 33, 61, 0.88);
  --border: rgba(134, 181, 255, 0.22);
  --border-strong: rgba(195, 230, 255, 0.34);
  --text: #f5f8ff;
  --muted: #b3c2dd;
  --muted-strong: #e1ebff;
  --cyan: #8feeff;
  --cyan-strong: #d3fbff;
  --blue: #8ab7ff;
  --blue-soft: #c3d9ff;
  --amber: #ffb26f;
  --shadow-soft: 0 20px 56px rgba(5, 12, 28, 0.2);
  --shadow-medium: 0 28px 84px rgba(4, 10, 24, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1880px;
  --hero-container: 1880px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.hero,
.section,
.site-footer {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(133, 186, 255, 0.3), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(129, 232, 255, 0.18), transparent 24%),
    radial-gradient(circle at 68% 62%, rgba(255, 189, 132, 0.1), transparent 20%),
    linear-gradient(180deg, #1a2d56 0%, #112042 48%, #091322 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 30% 18%, rgba(131, 184, 255, 0.14), transparent 30%),
    radial-gradient(circle at 76% 70%, rgba(126, 238, 255, 0.11), transparent 26%);
  pointer-events: none;
  z-index: 0;
}

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

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

.dot-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

main,
.section,
.site-footer {
  width: 100%;
}

.site-header {
  width: min(calc(100vw - 40px), var(--hero-container));
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem auto 0;
  padding-inline: clamp(20px, 2.2vw, 34px);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border: 1px solid rgba(150, 190, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(2, 7, 18, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.65rem;
  padding: 0.56rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(172, 219, 255, 0.22);
  background: linear-gradient(135deg, rgba(104, 151, 255, 0.18), rgba(119, 229, 255, 0.1));
  color: var(--cyan-strong);
}

.brand-text {
  color: var(--muted-strong);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.text-link {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a {
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
}

.site-nav a::after,
.footer-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(185, 245, 255, 0.95), rgba(125, 174, 255, 0.82));
  transition: transform 220ms var(--ease-out);
}

.footer-links a::after,
.text-link::after {
  left: 0;
  right: 0;
  bottom: -0.18rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(110px, 13vh, 170px) clamp(68px, 9vh, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(138, 184, 255, 0.22), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(130, 234, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.02), rgba(10, 16, 30, 0.18));
  pointer-events: none;
  z-index: -2;
}

.hero-inner {
  position: relative;
  width: min(calc(100vw - 40px), var(--hero-container));
  max-width: none;
  min-height: calc(100vh - clamp(178px, 22vh, 240px));
  min-height: calc(100svh - clamp(178px, 22vh, 240px));
  margin: 0 auto;
  padding-inline: clamp(20px, 2.8vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(2rem, 4.4vw, 6rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-orb,
.hero-grid-plane,
.hero-copy,
.hero-panel {
  will-change: transform;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
}

.hero-orb-one {
  top: 7%;
  left: -4rem;
  width: min(36vw, 31rem);
  height: min(36vw, 31rem);
  background: radial-gradient(circle, rgba(125, 169, 255, 0.24) 0%, rgba(125, 169, 255, 0.08) 52%, transparent 76%);
}

.hero-orb-two {
  right: -6rem;
  bottom: 0;
  width: min(44vw, 38rem);
  height: min(44vw, 38rem);
  background: radial-gradient(circle, rgba(130, 232, 255, 0.2) 0%, rgba(130, 232, 255, 0.06) 54%, transparent 78%);
}

.hero-grid-plane {
  position: absolute;
  right: clamp(2rem, 5vw, 5rem);
  bottom: clamp(1rem, 4vw, 3rem);
  width: min(42vw, 34rem);
  height: min(24vw, 20rem);
  border-radius: 24px;
  opacity: 0.34;
  background:
    linear-gradient(rgba(166, 207, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 207, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 100%);
}

.hero-copy-shell,
.hero-panel-shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-panel-shell {
  display: flex;
  justify-content: flex-end;
}

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

.hero-copy > .eyebrow {
  margin-bottom: 0.82rem;
  transform: translateY(-6px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--cyan-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.hero h2,
.section-heading h2,
.contact-copy h2,
.portfolio-copy h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h2 {
  margin-top: 1.1rem;
  max-width: 14ch;
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #deebff;
}

.hero-text,
.section-heading p,
.service-card p,
.audience-card p,
.about-copy p,
.about-card p,
.metric-card p,
.highlight-card p,
.contact-copy p,
.portfolio-copy p,
.site-footer p,
.hero-footnote,
.panel-footer-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions,
.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-badges a,
.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 204, 255, 0.16);
  background: rgba(11, 17, 31, 0.5);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-badges a {
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.hero-badges a:hover,
.hero-badges a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 235, 255, 0.28);
  background: rgba(16, 25, 44, 0.84);
  box-shadow: 0 14px 28px rgba(4, 10, 24, 0.16);
}

.hero-footnote {
  max-width: 58ch;
  margin: 1rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

button.button {
  cursor: pointer;
  font: inherit;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #03101d;
  background: linear-gradient(135deg, #f6fdff 0%, #b6f6ff 40%, #96bfff 100%);
  box-shadow: 0 16px 38px rgba(133, 191, 255, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 40px rgba(133, 191, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(17, 27, 46, 0.8);
  border-color: rgba(164, 198, 255, 0.22);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(180, 235, 255, 0.3);
  background: rgba(16, 25, 43, 0.94);
}

.glass-panel {
  background:
    linear-gradient(180deg, rgba(23, 35, 61, 0.82), rgba(13, 20, 36, 0.76)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.service-card,
.audience-card,
.about-copy,
.about-card,
.portfolio-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.service-card::before,
.audience-card::before,
.about-copy::before,
.about-card::before,
.portfolio-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(172, 214, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.hero-panel {
  width: min(100%, 33rem);
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
}

.panel-top,
.panel-footer,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--cyan-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-top strong {
  display: block;
  max-width: 19ch;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 236, 255, 0.16);
  background: rgba(11, 18, 32, 0.74);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-live-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(134, 232, 255, 0.55);
}

.metric-card {
  margin-top: 1rem;
  padding: 1.4rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(91, 136, 246, 0.24), rgba(124, 230, 255, 0.12)),
    rgba(16, 26, 46, 0.84);
  border: 1px solid var(--border-strong);
}

.metric-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cyan-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.48rem;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 0.8rem 0 0;
}

.hero-highlights {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.08rem;
  border-radius: 20px;
  background: rgba(15, 24, 43, 0.72);
  border: 1px solid rgba(145, 183, 255, 0.14);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 18%, rgba(182, 234, 255, 0.16) 50%, transparent 82%);
  opacity: 0;
  transform: translateX(-34%);
  pointer-events: none;
}

.highlight-card:hover,
.highlight-card.is-active {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(182, 234, 255, 0.32);
  background: rgba(15, 24, 42, 0.94);
  box-shadow: 0 22px 42px rgba(2, 7, 18, 0.24);
}

.highlight-card:hover::after,
.highlight-card.is-active::after {
  opacity: 1;
  animation: highlightSweep 880ms var(--ease-out);
}

.highlight-card.is-active {
  animation: highlightCardPulse 900ms var(--ease-out);
}

.highlight-card span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.highlight-card h3,
.service-card h3,
.audience-card h3,
.about-card h3 {
  margin: 0 0 0.78rem;
  font-size: 1.14rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.highlight-card p,
.service-card p,
.audience-card p,
.about-card p,
.about-copy p,
.portfolio-copy p,
.contact-copy p,
.panel-footer-copy p {
  margin: 0;
}

.panel-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(144, 180, 255, 0.12);
}

.panel-footer-copy span {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(72px, 9vw, 108px);
  padding-inline: 0;
}

.section > * {
  width: 100%;
  max-width: var(--hero-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 52px);
}

.section-heading {
  max-width: 780px;
}

.services-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(109, 168, 255, 0.16), rgba(119, 229, 255, 0.08)),
    linear-gradient(180deg, rgba(25, 38, 66, 0.86), rgba(12, 19, 34, 0.82));
}

.section-spotlight {
  overflow: hidden;
  transition:
    transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.section-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 16%, rgba(210, 242, 255, 0.14) 50%, transparent 84%);
  opacity: 0;
  transform: translateX(-38%);
  pointer-events: none;
}

.section-spotlight.is-guided {
  border-color: rgba(195, 230, 255, 0.4);
  box-shadow: 0 28px 78px rgba(7, 14, 30, 0.24);
}

.section-spotlight.is-guided::after {
  animation: spotlightSweep 980ms var(--ease-out);
}

.services-intro-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.services-intro-copy p:last-child {
  margin: 1.15rem 0 0;
  max-width: 60ch;
}

.services-intro-metrics {
  display: grid;
  gap: 0.9rem;
}

.intro-metric {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(12, 21, 38, 0.52);
  border: 1px solid rgba(187, 226, 255, 0.14);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

.section-spotlight .intro-metric:hover,
.section-spotlight .intro-metric:focus-within {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(196, 235, 255, 0.24);
  box-shadow: 0 18px 40px rgba(2, 7, 18, 0.2);
  background: rgba(13, 22, 40, 0.72);
}

.section-spotlight.is-guided .intro-metric {
  animation: spotlightMetricLift 760ms var(--ease-out) both;
}

.section-spotlight.is-guided .intro-metric:nth-child(2) {
  animation-delay: 90ms;
}

.section-spotlight.is-guided .intro-metric:nth-child(3) {
  animation-delay: 180ms;
}

.section-spotlight.is-guided .intro-metric:nth-child(4) {
  animation-delay: 270ms;
}

.intro-metric span {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--cyan-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-metric h3 {
  margin: 0 0 0.62rem;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro-metric p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.spotlight-metrics .intro-metric {
  min-height: 100%;
}

.audience-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.section-heading h2,
.contact-copy h2,
.portfolio-copy h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading p,
.portfolio-copy p {
  margin: 1rem 0 0;
}

.services-grid,
.audience-grid,
.about-points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.service-card,
.audience-card,
.about-card {
  scroll-margin-top: 140px;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 18%, rgba(182, 234, 255, 0.16) 50%, transparent 82%);
  opacity: 0;
  transform: translateX(-34%);
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-within,
.audience-card:hover,
.audience-card:focus-within,
.about-card:hover,
.about-card:focus-within {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(178, 233, 255, 0.24);
  box-shadow: 0 22px 48px rgba(2, 7, 18, 0.22);
  background: linear-gradient(180deg, rgba(19, 29, 50, 0.9), rgba(11, 16, 29, 0.82));
}

.service-card:hover::after,
.service-card:focus-within::after,
.service-card.is-guided-target::after {
  opacity: 1;
  animation: highlightSweep 880ms var(--ease-out);
}

.service-card.is-guided-target {
  animation: guidedCardFocus 980ms var(--ease-out);
  border-color: rgba(191, 235, 255, 0.34);
  box-shadow: 0 24px 56px rgba(4, 10, 24, 0.24);
}

.card-tag {
  margin-bottom: 0.95rem;
}

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

.section-divider {
  width: min(calc(100vw - 20px), var(--hero-container));
  max-width: var(--hero-container);
  margin: 0 auto;
  padding-inline: clamp(16px, 2.4vw, 52px);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 212, 255, 0.42), transparent);
  background-size: 180% 100%;
  animation: dividerFlow 5.8s linear infinite;
}

.section-divider-core {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(175, 231, 255, 0.92);
  box-shadow:
    0 0 0 6px rgba(160, 218, 255, 0.08),
    0 0 20px rgba(153, 224, 255, 0.35);
  animation: dividerPulse 2.8s ease-in-out infinite;
}

.audience-card {
  min-height: 14rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-copy {
  padding: 1.8rem;
  border-radius: var(--radius-xl);
}

.about-copy p + p {
  margin-top: 1rem;
}

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

.portfolio-card,
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.95rem;
  border-radius: var(--radius-xl);
}

.portfolio-copy,
.contact-copy {
  max-width: 58ch;
}

.portfolio-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.8rem);
}

.portfolio-actions,
.contact-actions {
  align-items: center;
  justify-content: flex-start;
}

.portfolio-actions {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
}

.portfolio-showcase {
  position: relative;
  display: block;
  justify-self: start;
  margin-left: -1.45rem;
  width: min(100%, 33rem);
  height: 22.6rem;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.portfolio-showcase:focus-visible {
  outline: 2px solid rgba(180, 231, 255, 0.85);
  outline-offset: 8px;
  border-radius: 16px;
}

.portfolio-showcase-glow {
  position: absolute;
  inset: auto 8% 5% 8%;
  height: 52%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 45%, rgba(129, 221, 255, 0.22), transparent 58%),
    radial-gradient(circle at 70% 50%, rgba(144, 167, 255, 0.2), transparent 58%);
  filter: blur(24px);
}

.portfolio-window {
  position: absolute;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(206, 231, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(3, 8, 20, 0.26);
  transition: transform 340ms var(--ease-out), box-shadow 340ms var(--ease-out);
}

.portfolio-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%, transparent 74%, rgba(8, 14, 28, 0.18)),
    linear-gradient(135deg, rgba(140, 221, 255, 0.06), transparent 56%);
  pointer-events: none;
}

.portfolio-window-back {
  top: 0.65rem;
  width: 74%;
  height: 5.2rem;
  background: linear-gradient(180deg, #ece8df 0%, #dad2c5 100%);
  transform: translateX(-50%) rotate(-5deg);
}

.portfolio-window-mid {
  top: 2.15rem;
  width: 86%;
  height: 6.4rem;
  background: linear-gradient(180deg, #2f3351 0%, #242944 100%);
  transform: translateX(-50%) rotate(-1.3deg);
}

.portfolio-window-main {
  top: 4.15rem;
  width: 100%;
  height: 17.3rem;
  background: linear-gradient(180deg, #315ca6 0%, #295393 21%, #1e3f71 32%, #21375b 54%, #1d2f4f 100%);
  transform: translateX(-50%) rotate(0.6deg);
}

.portfolio-showcase:hover .portfolio-window-back {
  transform: translateX(-50%) translateY(-0.55rem) rotate(-6deg);
}

.portfolio-showcase:hover .portfolio-window-mid {
  transform: translateX(-50%) translateY(-0.38rem) rotate(-1.9deg);
}

.portfolio-showcase:hover .portfolio-window-main {
  transform: translateX(-50%) translateY(-0.24rem) rotate(0.95deg);
  box-shadow: 0 24px 68px rgba(3, 8, 20, 0.32);
}

.portfolio-window-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.48rem 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-window-head-light {
  background: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(90, 88, 83, 0.18);
}

.portfolio-window-head-dark {
  justify-content: space-between;
  background: rgba(11, 14, 28, 0.3);
}

.portfolio-window-head-main {
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
}

.portfolio-window-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.portfolio-window-head-light .portfolio-window-dots span {
  background: rgba(88, 84, 77, 0.38);
}

.portfolio-window-slimbar {
  width: 34%;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.portfolio-window-title {
  color: rgba(227, 236, 255, 0.94);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.portfolio-window-actions span {
  width: 0.8rem;
  height: 0.26rem;
  border-radius: 999px;
  background: rgba(228, 239, 255, 0.46);
}

.portfolio-window-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.62rem;
  padding: 0.74rem;
  min-height: calc(100% - 2rem);
}

.portfolio-scene-panel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #6bb1ff 0%, #3a6cb8 48%, #203a62 100%);
}

.portfolio-scene-horizon {
  position: absolute;
  inset: 58% 0 auto;
  height: 1px;
  background: rgba(224, 240, 255, 0.5);
}

.portfolio-scene-mountain {
  position: absolute;
  left: -8%;
  right: -8%;
  border-radius: 50% 50% 0 0;
}

.mountain-back {
  bottom: 20%;
  height: 34%;
  background: rgba(48, 78, 122, 0.8);
}

.mountain-front {
  bottom: -6%;
  height: 46%;
  background: linear-gradient(180deg, rgba(19, 45, 79, 0.95), rgba(17, 36, 63, 1));
}

.portfolio-scene-grid {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(20, 42, 74, 0), rgba(20, 42, 74, 0.86) 66%),
    repeating-linear-gradient(90deg, rgba(194, 223, 255, 0.12) 0 1px, transparent 1px 32px);
}

.portfolio-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.portfolio-metric-tile {
  display: grid;
  gap: 0.12rem;
  padding: 0.52rem 0.45rem;
  border: 1px solid rgba(169, 211, 255, 0.24);
  border-radius: 6px;
  background: rgba(15, 30, 52, 0.44);
}

.portfolio-metric-tile strong {
  color: rgba(233, 243, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.portfolio-metric-tile span {
  color: rgba(194, 217, 246, 0.82);
  font-size: 0.62rem;
  line-height: 1.3;
}

.portfolio-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.58rem;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(175, 219, 255, 0.26);
  background: rgba(16, 34, 61, 0.56);
  color: rgba(214, 234, 255, 0.92);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-topbar,
.showcase-browser-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.12);
}

.preview-topbar span,
.showcase-browser-top span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.preview-fill,
.showcase-card-fill {
  position: relative;
  overflow: hidden;
  height: calc(100% - 2.2rem);
}

.preview-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%, transparent 72%, rgba(5, 12, 28, 0.22)),
    linear-gradient(135deg, rgba(126, 215, 255, 0.14), transparent 56%);
  pointer-events: none;
}

.preview-topbar strong,
.showcase-browser-top strong,
.live-preview-topbar strong,
.project-preview-topbar strong {
  margin-left: 0.45rem;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-fill img,
.showcase-card-fill img,
.live-preview-poster,
.project-preview-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.preview-fill-cyan,
.template-azure .layer-front,
.template-skyline .layer-front {
  background: linear-gradient(180deg, #7fe9ff 0%, #33aee0 100%);
}

.preview-fill-indigo,
.template-indigo .layer-front,
.template-aurora .layer-front {
  background: linear-gradient(180deg, #8ea4ff 0%, #354fa6 100%);
}

.preview-fill-sunset,
.template-sunset .layer-front,
.template-signal .layer-front {
  background: linear-gradient(180deg, #ffbe8d 0%, #b64f35 55%, #4f2846 100%);
}

.contact-section {
  padding-bottom: clamp(82px, 10vw, 124px);
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.consultation-modal[hidden] {
  display: none;
}

.consultation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.consultation-dialog {
  position: relative;
  width: min(calc(100vw - 32px), 980px);
  max-height: min(90vh, 940px);
  margin: min(6vh, 48px) auto;
  padding: 2rem;
  border-radius: 30px;
  overflow: auto;
  z-index: 1;
}

.consultation-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(184, 224, 255, 0.16);
  border-radius: 50%;
  background: rgba(14, 23, 40, 0.88);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.consultation-head {
  max-width: 68ch;
}

.consultation-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.consultation-head p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.consultation-form {
  margin-top: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field span {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(180, 221, 255, 0.16);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(9, 15, 28, 0.78);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(189, 202, 229, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(157, 223, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(130, 232, 255, 0.08);
  background: rgba(11, 18, 34, 0.92);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input[type="file"] {
  padding: 0.42rem;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(15, 25, 44, 0.92), rgba(10, 18, 34, 0.9)),
    rgba(9, 15, 28, 0.78);
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(159, 220, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(149, 229, 255, 0.22), rgba(119, 167, 255, 0.18));
  color: var(--cyan-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.form-field input[type="file"]::file-selector-button:hover {
  border-color: rgba(188, 237, 255, 0.38);
  background: linear-gradient(135deg, rgba(160, 234, 255, 0.28), rgba(128, 176, 255, 0.22));
}

.form-field small {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.consultation-status {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.consultation-status.is-success {
  color: var(--cyan-strong);
}

.consultation-status.is-pending {
  color: var(--muted-strong);
}

.consultation-status.is-error {
  color: #ffb6c9;
}

body.is-modal-open {
  overflow: hidden;
}

.portfolio-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
}

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

.portfolio-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portfolio-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 28px), 1240px);
  max-height: min(92vh, 980px);
  margin: min(4vh, 30px) auto;
  padding: 1.35rem;
  border-radius: 24px;
  display: grid;
  gap: 0.95rem;
}

.portfolio-preview-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.portfolio-preview-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.portfolio-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-preview-frame-wrap {
  position: relative;
  width: 100%;
  height: min(72vh, 860px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(205, 236, 255, 0.22);
  background: rgba(9, 15, 28, 0.88);
}

.portfolio-preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.portfolio-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: rgba(9, 15, 28, 0.88);
}

.portfolio-preview-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.62rem 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(194, 234, 255, 0.2);
  background: rgba(9, 16, 31, 0.74);
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.4;
}

.portfolio-gallery-head {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.portfolio-gallery-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.portfolio-gallery-head p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.portfolio-gallery-simple {
  padding-top: clamp(138px, 15vh, 182px);
}

.portfolio-gallery-simple .portfolio-grid {
  margin-top: 0;
}

.portfolio-top-highlight {
  max-width: none;
  margin-bottom: 1rem;
}

.portfolio-reference-section {
  padding-top: clamp(24px, 4vw, 54px);
}

.portfolio-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 980px;
}

.portfolio-reference-head .text-link {
  margin-top: 0;
}

.portfolio-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.45rem;
}

.portfolio-reference-card {
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(24, 36, 60, 0.92), rgba(10, 16, 31, 0.84)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 45%);
}

.portfolio-reference-preview {
  margin-bottom: 1rem;
}

.portfolio-reference-crop {
  height: 12rem;
}

.portfolio-reference-crop iframe {
  transform: translateX(-50%) scale(0.205);
}

.portfolio-reference-poster {
  position: absolute;
  inset: 0;
  display: block;
}

.portfolio-reference-poster-one {
  background:
    radial-gradient(circle at 80% 20%, rgba(180, 232, 255, 0.36), transparent 28%),
    linear-gradient(180deg, #1f3867 0%, #243f72 46%, #111c32 100%);
}

.portfolio-reference-poster-two {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 210, 180, 0.26), transparent 28%),
    linear-gradient(180deg, #4d2e3a 0%, #2d213b 48%, #12182e 100%);
}

.portfolio-reference-poster-three {
  background:
    radial-gradient(circle at 72% 18%, rgba(211, 226, 255, 0.24), transparent 32%),
    linear-gradient(180deg, #2f3f63 0%, #273652 42%, #131d2d 100%);
}

.portfolio-reference-card h3 {
  margin: 0.85rem 0 0.7rem;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.portfolio-reference-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.portfolio-template-card {
  min-height: 28rem;
  padding: 1.25rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(24, 36, 60, 0.92), rgba(10, 16, 31, 0.84)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 45%);
  transition:
    transform 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
}

.portfolio-template-card:hover {
  transform: translateY(-8px);
  border-color: rgba(205, 236, 255, 0.3);
  box-shadow: 0 28px 82px rgba(5, 12, 28, 0.26);
}

.live-portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-preview-link {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.live-preview-link:focus-visible {
  outline: 2px solid rgba(182, 236, 255, 0.6);
  outline-offset: 6px;
  border-radius: 14px;
}

.live-preview-shell {
  margin-bottom: 1.35rem;
}

.live-preview-browser,
.project-preview-browser {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(205, 236, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 28, 49, 0.96), rgba(10, 17, 31, 0.92)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 46%);
  box-shadow: 0 20px 56px rgba(4, 10, 24, 0.22);
}

.live-preview-topbar,
.project-preview-topbar {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(205, 236, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.live-preview-topbar span,
.project-preview-topbar span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.live-preview-crop {
  position: relative;
  height: 14.2rem;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.9);
}

.showcase-card-fill {
  position: relative;
  overflow: hidden;
}

.live-preview-poster,
.project-preview-poster {
  position: absolute;
  inset: 0;
}

.live-preview-crop iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 1160px;
  border: 0;
  transform: translateX(-50%) scale(0.225);
  transform-origin: top center;
  pointer-events: none;
  filter: saturate(0.98) contrast(1.02);
  opacity: 0;
  transition: opacity 320ms var(--ease-out), transform 280ms var(--ease-out);
}

.live-preview-crop iframe.is-loaded,
.project-preview-frame iframe.is-loaded {
  opacity: 1;
}

.live-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  min-height: 34%;
  background: linear-gradient(180deg, rgba(6, 11, 22, 0), rgba(6, 11, 22, 0.8));
  pointer-events: none;
}

.live-preview-overlay span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(183, 235, 255, 0.2);
  background: rgba(13, 22, 40, 0.74);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.live-portfolio-card:hover .live-preview-browser {
  border-color: rgba(205, 236, 255, 0.32);
  box-shadow: 0 26px 74px rgba(4, 10, 24, 0.26);
}

.live-portfolio-card:hover .live-preview-crop iframe {
  transform: translateX(-50%) scale(0.232);
}

.portfolio-project-shell {
  display: grid;
  gap: 1.5rem;
}

.project-preview-shell {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.project-preview-copy {
  max-width: 74ch;
}

.project-preview-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.project-preview-copy p {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-preview-browser {
  margin-top: 1.25rem;
}

.project-preview-frame {
  position: relative;
  height: min(80vh, 1100px);
  min-height: 720px;
  background: rgba(11, 18, 32, 0.9);
  overflow: hidden;
}

.project-preview-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}

.project-preview-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.template-stack {
  position: relative;
  height: 14rem;
  margin-bottom: 1.35rem;
}

.template-layer {
  position: absolute;
  inset: auto 0 0 0;
  border: 1px solid rgba(205, 236, 255, 0.22);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(4, 10, 24, 0.22);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.layer-back {
  height: 9.75rem;
  transform: translate3d(-0.9rem, -1.35rem, 0) rotate(-6deg);
  background: linear-gradient(180deg, rgba(223, 246, 255, 0.2), rgba(145, 175, 255, 0.32));
}

.layer-mid {
  height: 10.9rem;
  transform: translate3d(0.25rem, -0.35rem, 0) rotate(-2deg);
  background: linear-gradient(180deg, rgba(249, 218, 195, 0.22), rgba(154, 174, 255, 0.32));
}

.layer-front {
  height: 12.4rem;
  transform: translate3d(0.8rem, 0.9rem, 0) rotate(4deg);
}

.portfolio-template-card:hover .layer-back {
  transform: translate3d(-1.8rem, -2.2rem, 0) rotate(-8deg);
}

.portfolio-template-card:hover .layer-mid {
  transform: translate3d(0.15rem, -0.95rem, 0) rotate(-2.5deg);
}

.portfolio-template-card:hover .layer-front {
  transform: translate3d(1.45rem, 0.25rem, 0) rotate(6deg);
  box-shadow: 0 26px 78px rgba(4, 10, 24, 0.28);
}

.template-copy h3 {
  margin: 0.85rem 0 0.7rem;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.template-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.button-compact {
  min-height: 2.25rem;
  padding: 0.42rem 0.82rem;
  font-size: 0.82rem;
}

.template-azure {
  background:
    linear-gradient(180deg, rgba(35, 54, 93, 0.92), rgba(12, 18, 34, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(123, 229, 255, 0.2), transparent 28%);
}

.template-sunset {
  background:
    linear-gradient(180deg, rgba(58, 40, 45, 0.92), rgba(15, 14, 26, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(255, 182, 111, 0.22), transparent 28%);
}

.template-indigo {
  background:
    linear-gradient(180deg, rgba(30, 38, 84, 0.92), rgba(10, 16, 31, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(144, 172, 255, 0.2), transparent 28%);
}

.template-skyline {
  background:
    linear-gradient(180deg, rgba(28, 62, 92, 0.92), rgba(10, 17, 33, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(128, 230, 255, 0.22), transparent 28%);
}

.template-aurora {
  background:
    linear-gradient(180deg, rgba(28, 46, 88, 0.92), rgba(11, 17, 31, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(159, 214, 255, 0.22), transparent 28%);
}

.template-signal {
  background:
    linear-gradient(180deg, rgba(58, 37, 57, 0.92), rgba(13, 15, 29, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(255, 176, 124, 0.22), transparent 28%);
}

.portfolio-hero-showcase {
  position: relative;
  width: min(100%, 30rem);
  height: 36rem;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #46c7ff 0%, #1b8fe2 54%, #154273 100%);
  box-shadow: 0 30px 90px rgba(7, 16, 36, 0.28);
}

.showcase-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle at 24% 72%, rgba(255, 196, 142, 0.18), transparent 20%);
}

.showcase-card {
  position: absolute;
  left: 50%;
  width: 78%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 72px rgba(10, 20, 42, 0.24);
  transform-origin: center;
  transition: transform 320ms var(--ease-out);
}

.showcase-card-back {
  top: 24%;
  height: 10rem;
  transform: translateX(-50%) rotate(-3deg);
}

.showcase-card-mid {
  top: 31%;
  height: 12rem;
  transform: translateX(-50%) rotate(-1deg);
}

.showcase-card-front {
  top: 41%;
  height: 17rem;
  transform: translateX(-50%) rotate(1.5deg);
}

.portfolio-hero-showcase:hover .showcase-card-back {
  transform: translateX(-50%) translateY(-0.8rem) rotate(-4deg);
}

.portfolio-hero-showcase:hover .showcase-card-mid {
  transform: translateX(-50%) translateY(-0.45rem) rotate(-1.3deg);
}

.portfolio-hero-showcase:hover .showcase-card-front {
  transform: translateX(-50%) translateY(-0.2rem) rotate(2.5deg);
}

.showcase-card-fill-soft {
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.74), rgba(197, 220, 255, 0.46));
}

.showcase-card-fill-ui {
  background:
    linear-gradient(180deg, #5277c3 0%, #2f4b8a 56%, #1d315f 100%);
}

.showcase-card-fill-sunset {
  background:
    linear-gradient(180deg, #d87958 0%, #b65e3d 36%, #8c4733 58%, #2c224f 100%);
}

.site-footer {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 2.5rem;
  padding-inline: 0;
  background:
    linear-gradient(180deg, rgba(15, 24, 43, 0.12), rgba(9, 15, 27, 0.74)),
    radial-gradient(circle at 18% 20%, rgba(136, 208, 255, 0.14), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(166, 227, 255, 0.12), transparent 24%);
  border-top: 1px solid rgba(144, 179, 255, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  pointer-events: none;
}

.footer-cta,
.footer-meta {
  width: 100%;
  max-width: var(--hero-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 52px);
}

.footer-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer-cta-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.footer-cta-copy p:last-of-type {
  margin: 1rem 0 0;
  max-width: 62ch;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.footer-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.48rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 204, 255, 0.16);
  background: rgba(11, 17, 31, 0.42);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.footer-badges a:hover,
.footer-badges a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(183, 235, 255, 0.28);
  background: rgba(16, 25, 44, 0.8);
  box-shadow: 0 14px 28px rgba(4, 10, 24, 0.16);
}

.footer-cta-side {
  display: grid;
  gap: 1rem;
}

.footer-process {
  padding: 1.25rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(167, 204, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 27, 46, 0.72), rgba(11, 18, 32, 0.68)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 48%);
  box-shadow: 0 18px 38px rgba(2, 7, 18, 0.16);
}

.footer-process span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--cyan-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-process p {
  margin: 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(144, 179, 255, 0.12);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes spotlightSweep {
  0% {
    opacity: 0;
    transform: translateX(-38%);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(38%);
  }
}

@keyframes guidedCardFocus {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-8px) scale(1.018);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes dividerFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 180% 50%;
  }
}

@keyframes dividerPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes highlightSweep {
  0% {
    opacity: 0;
    transform: translateX(-34%);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(34%);
  }
}

@keyframes highlightCardPulse {
  0% {
    transform: translateY(0) scale(1);
  }

  48% {
    transform: translateY(-6px) scale(1.02);
  }

  100% {
    transform: translateY(-6px) scale(1.015);
  }
}

@keyframes spotlightMetricLift {
  0% {
    transform: translateY(10px) scale(0.985);
    border-color: rgba(187, 226, 255, 0.14);
    box-shadow: 0 0 0 rgba(2, 7, 18, 0);
  }

  55% {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(196, 235, 255, 0.3);
    box-shadow: 0 18px 38px rgba(2, 7, 18, 0.18);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(187, 226, 255, 0.14);
    box-shadow: 0 0 0 rgba(2, 7, 18, 0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1180px) {
  .hero-inner,
  .services-intro,
  .footer-cta,
  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .hero-panel-shell {
    justify-content: flex-start;
  }

  .hero-panel {
    width: min(100%, 38rem);
  }

  .services-grid,
  .portfolio-grid,
  .portfolio-reference-grid,
  .audience-grid,
  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .portfolio-showcase {
    justify-self: start;
    margin-left: 0;
    width: min(100%, 28.4rem);
    height: 22.8rem;
  }

  .project-preview-frame {
    min-height: 640px;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 0.55rem;
    gap: 0.8rem;
    padding-inline: 0.95rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    border-radius: 26px;
    background: rgba(10, 17, 31, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 22px rgba(2, 7, 18, 0.16);
  }

  .site-header,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    gap: 0.68rem;
  }

  .brand-mark {
    min-width: 3.1rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.88rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    overflow-x: visible;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav.is-overflowing {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.42rem 0.62rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: clamp(108px, 16vh, 140px);
  }

  .hero-inner {
    min-height: auto;
  }

  .services-grid,
  .portfolio-grid,
  .portfolio-reference-grid,
  .audience-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .portfolio-reference-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .audience-metrics {
    grid-template-columns: 1fr;
  }

  .hero-grid-plane {
    width: min(68vw, 26rem);
    height: min(36vw, 12rem);
    right: 1rem;
  }

  .live-preview-crop {
    height: 13.2rem;
  }

  .live-preview-crop iframe {
    transform: translateX(-50%) scale(0.195);
  }

  .project-preview-frame {
    min-height: 560px;
    height: min(72vh, 880px);
  }

  .portfolio-preview-dialog {
    width: min(calc(100vw - 20px), 1240px);
    max-height: min(94vh, 980px);
    margin: 10px auto;
    padding: 1rem;
  }

  .portfolio-preview-frame-wrap {
    height: min(66vh, 700px);
  }

  .portfolio-showcase {
    justify-self: stretch;
    margin-left: 0;
    width: min(100%, 29.4rem);
    height: 21.8rem;
  }

  .portfolio-window-main {
    top: 3.9rem;
    height: 16.9rem;
  }

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

  .portfolio-metric-tile:last-child {
    grid-column: 1 / -1;
  }

  .consultation-dialog {
    width: min(calc(100vw - 20px), 980px);
    margin: 12px auto;
    padding: 1.3rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(calc(100vw - 8px), var(--hero-container));
    margin-top: 0.45rem;
    gap: 0.58rem;
    padding-inline: 0.7rem;
    padding-top: 0.64rem;
    padding-bottom: 0.64rem;
    border-radius: 22px;
  }

  .brand {
    gap: 0.56rem;
  }

  .brand-mark {
    min-width: 2.8rem;
    padding: 0.36rem 0.68rem;
    font-size: 0.82rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.14rem;
    padding-inline: 0.04rem;
  }

  .site-nav a {
    padding: 0.3rem 0.36rem;
    font-size: 0.78rem;
  }

  .form-field input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.7rem;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 58px;
  }

  .hero-inner {
    width: min(calc(100vw - 12px), var(--hero-container));
    padding-inline: 12px;
  }

  .section > *,
  .footer-meta,
  .footer-cta,
  .section-divider {
    padding-inline: 12px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 16vw, 4.6rem);
  }

  .hero h2 {
    max-width: none;
    font-size: 1.38rem;
  }

  .hero-text,
  .section-heading p,
  .portfolio-copy p,
  .contact-copy p,
  .hero-footnote {
    font-size: 0.98rem;
  }

  .hero-panel,
  .services-intro,
  .about-copy,
  .portfolio-card,
  .contact-card {
    padding: 1.28rem;
  }

  .service-card,
  .audience-card,
  .about-card,
  .metric-card,
  .highlight-card,
  .portfolio-template-card {
    padding: 1.15rem;
  }

  .live-preview-crop {
    height: 12.4rem;
  }

  .live-preview-crop iframe {
    transform: translateX(-50%) scale(0.168);
  }

  .project-preview-shell {
    padding: 1.15rem;
  }

  .project-preview-frame {
    min-height: 480px;
    height: min(68vh, 760px);
  }

  .portfolio-preview-dialog {
    padding: 0.85rem;
    border-radius: 18px;
    gap: 0.7rem;
  }

  .portfolio-preview-head h2 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .portfolio-preview-frame-wrap {
    height: min(62vh, 620px);
    border-radius: 12px;
  }

  .button {
    width: 100%;
  }

  .portfolio-hero-showcase {
    height: 30rem;
  }

  .showcase-card {
    width: 88%;
  }

  .portfolio-showcase {
    margin-left: 0;
    width: 100%;
    height: 19.6rem;
  }

  .portfolio-showcase-glow {
    inset: auto 6% 6% 6%;
    height: 48%;
    filter: blur(18px);
  }

  .portfolio-window-back {
    width: 78%;
    height: 4.2rem;
    top: 0.45rem;
  }

  .portfolio-window-mid {
    width: 88%;
    height: 5.2rem;
    top: 1.58rem;
  }

  .portfolio-window-main {
    top: 3rem;
    height: 15.7rem;
  }

  .portfolio-window-head {
    min-height: 1.72rem;
    padding: 0.38rem 0.56rem;
  }

  .portfolio-window-title {
    font-size: 0.64rem;
  }

  .portfolio-window-actions span {
    width: 0.64rem;
    height: 0.22rem;
  }

  .portfolio-window-body {
    padding: 0.5rem;
    gap: 0.42rem;
  }

  .portfolio-scene-panel {
    border-radius: 5px;
  }

  .portfolio-metric-grid {
    grid-template-columns: 1fr;
    gap: 0.34rem;
  }

  .portfolio-metric-tile {
    padding: 0.4rem 0.38rem;
    border-radius: 5px;
  }

  .portfolio-metric-tile strong {
    font-size: 0.65rem;
  }

  .portfolio-metric-tile span {
    font-size: 0.56rem;
  }

  .portfolio-pill-row {
    gap: 0.28rem;
  }

  .portfolio-pill-row span {
    min-height: 1.38rem;
    padding: 0.2rem 0.46rem;
    font-size: 0.54rem;
  }

  .consultation-actions {
    flex-direction: column;
  }

  .hero-orb-one {
    left: -5rem;
    width: 17rem;
    height: 17rem;
  }

  .hero-orb-two {
    right: -7rem;
    width: 20rem;
    height: 20rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
