
:root {
  --bg: #050713;
  --bg-2: #090d20;
  --panel: rgba(15, 21, 43, .72);
  --panel-solid: #0d1329;
  --panel-soft: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.105);
  --line-strong: rgba(255,255,255,.18);
  --text: #f8f9ff;
  --muted: #9aa3bd;
  --muted-2: #6f7895;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --lime: #a3e635;
  --gold: #f5c65a;
  --success: #34d399;
  --danger: #fb7185;
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1240px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(139,92,246,.65) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 8%, rgba(34,211,238,.07), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(139,92,246,.10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

::selection {
  background: rgba(139,92,246,.38);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--violet));
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
p { color: var(--muted); }
h1, h2, h3, h4, p { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

#particles {
  position: fixed;
  z-index: -5;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .46;
  pointer-events: none;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.aurora {
  position: fixed;
  z-index: -4;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .12;
}
.aurora-one {
  top: 8vh;
  right: -22vw;
  background: var(--violet);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora-two {
  bottom: -28vw;
  left: -18vw;
  background: var(--cyan);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.cursor-glow {
  --x: -100px;
  --y: -100px;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 440px;
  height: 440px;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,111,255,.09), transparent 66%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.03);
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 18px rgba(139,92,246,.9);
}

.section {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding: 128px 28px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5,7,19,.72);
  backdrop-filter: blur(22px) saturate(140%);
}
.header-inner {
  max-width: var(--max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--violet), var(--magenta)) border-box;
  box-shadow: inset 0 0 26px rgba(80,120,255,.12), 0 0 24px rgba(92,80,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 14px;
  letter-spacing: .04em;
}
.brand-text small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}
.desktop-nav a {
  position: relative;
  color: #b8bfd3;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  transition: color .2s ease;
}
.desktop-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); }

.header-cta {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255,255,255,.045);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.header-cta:hover {
  border-color: rgba(34,211,238,.45);
  background: rgba(34,211,238,.08);
}
.header-cta svg { width: 16px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}
.mobile-nav {
  display: none;
  padding: 10px 28px 24px;
  border-top: 1px solid var(--line);
  background: rgba(5,7,19,.96);
}
.mobile-nav.open { display: grid; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #d6d9e7;
  font-weight: 700;
}

.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 86px);
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  width: 840px;
  height: 840px;
  right: -360px;
  top: 5%;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255,255,255,.012),
    0 0 0 160px rgba(255,255,255,.008);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #b8c4ff;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px var(--success);
}
.live-dot::after {
  position: absolute;
  content: "";
  inset: -5px;
  border: 1px solid rgba(52,211,153,.6);
  border-radius: inherit;
  animation: pulse-ring 2s ease-out infinite;
}
.display {
  max-width: 850px;
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 860;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, #fff 0%, var(--cyan) 22%, #9f8cff 54%, var(--magenta) 82%, #fff 115%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 8s linear infinite;
}
.hero-lead {
  max-width: 690px;
  margin-bottom: 36px;
  color: #aeb6ce;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.68;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  position: relative;
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .01em;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.18) 46%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(105deg, #106a91, #5d42d8 55%, #be327f);
  box-shadow: 0 18px 45px rgba(86,62,213,.30), inset 0 1px rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 22px 56px rgba(86,62,213,.42), 0 0 28px rgba(34,211,238,.12); }
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
}
.btn-ghost:hover {
  border-color: rgba(34,211,238,.38);
  background: rgba(34,211,238,.07);
}
.hero-signature {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-signature img {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(34,211,238,.18));
}
.hero-signature span {
  max-width: 150px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  perspective: 1500px;
}
.hero-visual::before {
  position: absolute;
  content: "";
  inset: 11% 4% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(139,92,246,.16), rgba(34,211,238,.04) 45%, transparent 66%);
  filter: blur(12px);
}
.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit-one { inset: 9% 0 9%; }
.orbit-two { inset: 19% 10% 19%; border-color: rgba(34,211,238,.08); }
.hero-phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 35px;
  background: #070a14;
  box-shadow:
    0 40px 110px rgba(0,0,0,.65),
    0 0 0 8px rgba(255,255,255,.025),
    inset 0 0 0 2px rgba(255,255,255,.035);
}
.hero-phone::before {
  position: absolute;
  z-index: 3;
  content: "";
  left: 50%;
  top: 8px;
  width: 28%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(2,4,10,.9);
  box-shadow: inset 0 -1px rgba(255,255,255,.07);
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-main {
  z-index: 3;
  width: 290px;
  height: 628px;
  right: 17%;
  top: 1%;
  transform: rotateY(-8deg) rotateZ(2deg);
  animation: phone-float 7s ease-in-out infinite;
}
.phone-left {
  z-index: 2;
  width: 190px;
  height: 410px;
  left: 1%;
  top: 25%;
  opacity: .88;
  transform: rotateY(17deg) rotateZ(-6deg);
  filter: saturate(.9) brightness(.78);
  animation: phone-float 8s ease-in-out infinite .8s;
}
.phone-right {
  z-index: 1;
  width: 185px;
  height: 400px;
  right: -4%;
  top: 27%;
  opacity: .72;
  transform: rotateY(-17deg) rotateZ(7deg);
  filter: saturate(.85) brightness(.7);
  animation: phone-float 9s ease-in-out infinite 1.3s;
}
.phone-sheen {
  position: absolute;
  z-index: 4;
  inset: -20% 55% -20% -20%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.13), transparent);
  transform: rotate(10deg);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
}
.floating-chip {
  position: absolute;
  z-index: 5;
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  background: rgba(8,12,28,.72);
  box-shadow: 0 16px 34px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
  color: #d9dded;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.floating-chip span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.chip-one { left: 8%; top: 13%; }
.chip-two { right: 2%; top: 14%; }
.chip-two span { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.chip-three { left: 3%; bottom: 10%; }
.chip-three span { background: var(--lime); box-shadow: 0 0 12px var(--lime); }

.hero-strip {
  margin-top: 66px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.024);
  backdrop-filter: blur(18px);
}
.hero-strip > div {
  min-width: 0;
  padding: 2px 24px;
  border-right: 1px solid var(--line);
}
.hero-strip > div:last-child { border-right: 0; }
.hero-strip strong {
  display: block;
  color: #f9faff;
  font-size: 17px;
  line-height: 1.2;
}
.hero-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 52px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}
.section-head.centered {
  justify-content: center;
  text-align: center;
}
.section-title {
  margin-bottom: 0;
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 830;
  line-height: 1.03;
  letter-spacing: -.045em;
}
.section-intro {
  max-width: 440px;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.75;
}
.filter-bar {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  color: #858eaa;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .05em;
  transition: all .2s ease;
}
.filter:hover { color: #fff; border-color: var(--line-strong); }
.filter.active {
  border-color: rgba(34,211,238,.3);
  background: linear-gradient(90deg, rgba(34,211,238,.13), rgba(139,92,246,.13));
  color: #fff;
  box-shadow: 0 0 24px rgba(80,110,255,.08);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.project-card {
  --accent-a: var(--cyan);
  --accent-b: var(--violet);
  position: relative;
  grid-column: span 6;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,12,28,.76);
  box-shadow: 0 25px 70px rgba(0,0,0,.24);
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(5) { grid-column: 3 / span 8; }
.project-card[data-accent="violet"] { --accent-a: #22d3ee; --accent-b: #8b5cf6; }
.project-card[data-accent="cyan"] { --accent-a: #2dd4bf; --accent-b: #06b6d4; }
.project-card[data-accent="blue"] { --accent-a: #38bdf8; --accent-b: #3b82f6; }
.project-card[data-accent="gold"] { --accent-a: #e8c35c; --accent-b: #2ca58d; }
.project-card[data-accent="magenta"] { --accent-a: #22d3ee; --accent-b: #ec4899; }
.project-card::before {
  position: absolute;
  z-index: -2;
  content: "";
  width: 420px;
  height: 420px;
  right: -160px;
  top: -170px;
  border-radius: 50%;
  background: var(--accent-b);
  filter: blur(120px);
  opacity: .15;
  transition: opacity .3s ease, transform .5s ease;
}
.project-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 22%, transparent 78%, rgba(255,255,255,.035));
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-a) 38%, transparent);
  box-shadow: 0 35px 90px rgba(0,0,0,.44), 0 0 42px color-mix(in srgb, var(--accent-a) 10%, transparent);
}
.project-card:hover::before { opacity: .25; transform: scale(1.2); }
.project-card.filtered-out { display: none; }

.project-card-top {
  position: relative;
  z-index: 3;
  padding: 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-category {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6cbdf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-category i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-a);
  box-shadow: 0 0 14px var(--accent-a);
}
.project-open {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.project-card:hover .project-open {
  transform: rotate(-35deg);
  border-color: color-mix(in srgb, var(--accent-a) 45%, transparent);
  background: color-mix(in srgb, var(--accent-a) 10%, transparent);
}
.project-stage {
  position: relative;
  height: 330px;
  margin: 16px 0 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-stage::before {
  position: absolute;
  content: "";
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent-a) 18%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.012), 0 0 0 76px rgba(255,255,255,.008);
}
.project-phone {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 368px;
  margin-top: 70px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 29px;
  background: #050914;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 35px color-mix(in srgb, var(--accent-a) 11%, transparent);
  transform: rotate(4deg);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.project-card:hover .project-phone { transform: translateY(-10px) rotate(1deg) scale(1.035); }
.project-phone::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.06) 45%, transparent 65%);
  pointer-events: none;
}
.project-phone img { width: 100%; height: 100%; object-fit: cover; }
.project-logo {
  position: absolute;
  z-index: 4;
  left: 30px;
  bottom: 25px;
  max-width: 88px;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.45));
}
.project-card[data-accent="violet"] .project-logo { left: 35px; bottom: 30px; max-width: 150px; max-height: 54px; }
.project-card-copy {
  position: relative;
  z-index: 4;
  padding: 28px 30px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,9,20,.3), rgba(6,9,20,.78));
  backdrop-filter: blur(16px);
}
.project-card h3 {
  margin-bottom: 4px;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.project-subtitle {
  margin-bottom: 12px;
  color: var(--accent-a);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-card-copy p {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.metric-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.028);
  color: #b9c1d8;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .05em;
}
.metric-pill strong { color: #fff; margin-right: 4px; }

.about { padding-top: 160px; }
.about-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 100px;
}
.about-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}
.portrait-card {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: .78;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 36%, rgba(34,211,238,.13), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(139,92,246,.16), transparent 30%),
    linear-gradient(155deg, #0e1634, #070b1b 55%, #111130);
  box-shadow: var(--shadow), inset 0 0 70px rgba(255,255,255,.02);
}
.portrait-card::before {
  position: absolute;
  content: "";
  inset: 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 27px;
}
.portrait-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  background: linear-gradient(135deg, #dffaff, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(100px, 16vw, 190px);
  font-weight: 950;
  letter-spacing: -.12em;
  text-indent: -.12em;
  filter: drop-shadow(0 0 34px rgba(84,105,255,.25));
}
.scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  top: 20%;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.8), transparent);
  box-shadow: 0 0 18px var(--cyan);
  animation: scan 5s ease-in-out infinite;
}
.portrait-meta {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 36px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.portrait-meta span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
}
.portrait-meta small {
  max-width: 130px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .12em;
  text-align: right;
}
.about-badge {
  position: absolute;
  min-height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(11,16,36,.78);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  color: #dbe1f3;
  font-size: 11px;
  font-weight: 750;
}
.about-badge svg { color: var(--cyan); }
.badge-a { left: -12px; top: 18%; }
.badge-b { right: -14px; bottom: 19%; }
.badge-b svg { color: var(--lime); }

.about-lead {
  color: #d5d9e7;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}
.about-copy > p:not(.about-lead) { max-width: 720px; font-size: 15px; }
.capability-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.capability-list div {
  min-height: 58px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  color: #c4cadc;
  font-size: 11px;
  font-weight: 700;
}
.capability-list svg { color: var(--cyan); }
.about-signature {
  width: 260px;
  margin-top: 28px;
  filter: drop-shadow(0 0 18px rgba(34,211,238,.16));
}

.approach { padding-top: 120px; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.principle-card {
  position: relative;
  min-height: 300px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.048), rgba(255,255,255,.014));
  transition: transform .3s ease, border-color .3s ease;
}
.principle-card:hover { transform: translateY(-7px); border-color: rgba(139,92,246,.32); }
.principle-index {
  color: rgba(255,255,255,.08);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}
.principle-card h3 { margin: 38px 0 12px; font-size: 21px; }
.principle-card p { margin: 0; font-size: 13px; line-height: 1.75; }
.principle-card::after {
  position: absolute;
  content: "";
  width: 130px;
  height: 130px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: var(--violet);
  filter: blur(55px);
  opacity: .16;
}

.tech-marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #59617b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  animation: marquee 32s linear infinite;
}
.marquee-track i { color: rgba(139,92,246,.65); font-style: normal; }

.contact { padding-bottom: 120px; }
.contact-shell {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 72px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% -10%, rgba(34,211,238,.16), transparent 37%),
    radial-gradient(circle at 85% 85%, rgba(236,72,153,.15), transparent 32%),
    linear-gradient(145deg, rgba(18,27,60,.84), rgba(7,10,25,.93));
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-shell::before,
.contact-shell::after {
  position: absolute;
  content: "";
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
}
.contact-shell::before { left: -260px; top: -260px; }
.contact-shell::after { right: -250px; bottom: -280px; }
.contact-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--violet);
  filter: blur(100px);
  opacity: .16;
}
.contact h2 {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.contact p {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-bottom: 32px;
  font-size: 16px;
}
.contact-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact-signature {
  position: relative;
  z-index: 2;
  width: 250px;
  margin-top: 32px;
  opacity: .9;
}

.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  padding: 34px 28px 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 17px 0 0; font-size: 11px; }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  color: var(--muted-2);
  font-size: 10px;
}
.footer-right a { color: #c5cbdf; }

.project-modal {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100svh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: rgba(7,10,24,.96);
  color: var(--text);
  box-shadow: 0 50px 160px rgba(0,0,0,.8);
  backdrop-filter: blur(30px);
}
.project-modal::backdrop {
  background: rgba(1,3,10,.82);
  backdrop-filter: blur(14px);
}
.modal-shell {
  position: relative;
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-close {
  position: sticky;
  z-index: 40;
  top: 18px;
  left: calc(100% - 62px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5,8,19,.88);
  cursor: pointer;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
}
.modal-content { margin-top: -44px; }
.modal-hero {
  --modal-a: var(--cyan);
  --modal-b: var(--violet);
  position: relative;
  min-height: 540px;
  padding: 72px 66px 56px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--modal-b) 22%, transparent), transparent 34%),
    radial-gradient(circle at 15% 100%, color-mix(in srgb, var(--modal-a) 14%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(17,24,51,.82), rgba(7,10,24,.95));
}
.modal-hero[data-accent="cyan"] { --modal-a: #2dd4bf; --modal-b: #06b6d4; }
.modal-hero[data-accent="blue"] { --modal-a: #38bdf8; --modal-b: #3b82f6; }
.modal-hero[data-accent="gold"] { --modal-a: #f5c65a; --modal-b: #2ca58d; }
.modal-hero[data-accent="magenta"] { --modal-a: #22d3ee; --modal-b: #ec4899; }
.modal-kicker {
  margin-bottom: 14px;
  color: var(--modal-a);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.modal-hero h2 {
  margin-bottom: 6px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -.055em;
}
.modal-subtitle {
  margin-bottom: 22px;
  color: #d5daec;
  font-size: 15px;
  font-weight: 700;
}
.modal-summary {
  max-width: 650px;
  color: #aeb6ce;
  font-size: 15px;
  line-height: 1.8;
}
.modal-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.modal-device-wrap {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}
.modal-device-wrap::before {
  position: absolute;
  content: "";
  width: 360px;
  height: 360px;
  border: 1px solid color-mix(in srgb, var(--modal-a) 20%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.012), 0 0 0 90px rgba(255,255,255,.008);
}
.modal-device {
  position: relative;
  z-index: 2;
  width: 205px;
  height: 444px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 34px;
  background: #02040b;
  box-shadow: 0 34px 80px rgba(0,0,0,.55), 0 0 42px color-mix(in srgb, var(--modal-a) 14%, transparent);
  transform: rotate(3deg);
}
.modal-device img { width: 100%; height: 100%; object-fit: cover; }
.modal-logo {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 12px;
  max-width: 135px;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.4));
}
.modal-metrics {
  padding: 28px 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.modal-metric {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.modal-metric:first-child { padding-left: 0; }
.modal-metric:last-child { border-right: 0; }
.modal-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 25px;
}
.modal-metric span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.modal-body {
  padding: 62px 66px 76px;
}
.modal-block-title {
  margin-bottom: 25px;
  font-size: 29px;
  letter-spacing: -.025em;
}
.modal-highlights {
  margin-bottom: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.highlight-item {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
  color: #c5cbde;
  font-size: 12px;
  line-height: 1.65;
}
.highlight-item::before {
  content: "✦";
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}
.detail-accordion {
  display: grid;
  gap: 10px;
}
.detail-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.detail-trigger {
  width: 100%;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.detail-trigger span {
  font-size: 14px;
  font-weight: 780;
}
.detail-trigger svg { transition: transform .25s ease; }
.detail-item.open .detail-trigger svg { transform: rotate(180deg); }
.detail-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.detail-item.open .detail-panel { grid-template-rows: 1fr; }
.detail-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.detail-copy {
  padding: 0 22px 24px;
  border-top: 1px solid var(--line);
}
.detail-copy p {
  margin: 18px 0 13px;
  color: #aeb6ce;
  font-size: 13px;
}
.detail-copy ul {
  margin: 0;
  padding-left: 18px;
  color: #8f98b3;
  font-size: 12px;
}
.detail-copy li { margin: 8px 0; }
.modal-gallery {
  margin-top: 58px;
}
.gallery-shell {
  position: relative;
  padding: 28px 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery-track {
  width: max-content;
  display: flex;
  gap: 17px;
  padding: 0 2px 18px;
}
.gallery-card {
  width: 220px;
  scroll-snap-align: start;
}
.gallery-phone {
  height: 476px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 31px;
  background: #02040b;
  box-shadow: 0 22px 54px rgba(0,0,0,.38);
}
.gallery-phone img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card p {
  margin: 12px 8px 0;
  color: #8f98b3;
  font-size: 10px;
  line-height: 1.55;
}
.tech-stack {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.025);
  color: #b8c0d6;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
}
.disclaimer {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(245,198,90,.19);
  border-radius: 16px;
  background: rgba(245,198,90,.055);
  color: #c8bea2;
  font-size: 11px;
  line-height: 1.65;
}
.modal-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.modal-footer img { width: 205px; }
.modal-footer span { color: var(--muted-2); font-size: 10px; }

.toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  min-width: 220px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(10,15,34,.92);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 11px;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.noscript {
  position: fixed;
  z-index: 10000;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #11182f;
  text-align: center;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(5vw,-4vh,0) scale(1.12); }
}
@keyframes pulse-ring {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes gradient-shift { to { background-position: 200% center; } }
@keyframes phone-float {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes sheen {
  0%,65% { transform: translateX(-160%) rotate(10deg); }
  100% { transform: translateX(250%) rotate(10deg); }
}
@keyframes scan {
  0%,100% { top: 18%; opacity: .2; }
  50% { top: 78%; opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-cta { justify-self: end; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-signature { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 590px; max-width: 700px; width: 100%; margin: 10px auto 0; }
  .phone-main { right: calc(50% - 145px); }
  .phone-left { left: 8%; }
  .phone-right { right: 7%; }
  .project-card,
  .project-card:nth-child(n) { grid-column: span 6; }
  .about-grid { gap: 56px; }
  .principles-grid { grid-template-columns: repeat(2,1fr); }
  .modal-hero { grid-template-columns: 1fr .8fr; padding-inline: 46px; }
  .modal-body { padding-inline: 46px; }
  .modal-metrics { padding-inline: 46px; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .section { padding: 96px 20px; }
  .header-inner { min-height: var(--header-h); padding-inline: 20px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; justify-self: end; }
  .hero { padding-top: 120px; }
  .display { font-size: clamp(44px, 12vw, 68px); }
  .hero-visual { min-height: 520px; }
  .phone-main { width: 235px; height: 509px; right: calc(50% - 117px); }
  .phone-left, .phone-right { width: 145px; height: 314px; top: 31%; }
  .floating-chip { transform: scale(.9); }
  .hero-strip { grid-template-columns: repeat(2,1fr); gap: 16px 0; }
  .hero-strip > div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .hero-strip > div:last-child { grid-column: span 2; border-bottom: 0; }
  .section-head { display: block; }
  .section-intro { margin-top: 24px; }
  .project-card,
  .project-card:nth-child(n) { grid-column: 1 / -1; }
  .project-card { min-height: 600px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 520px; }
  .about-copy { text-align: left; }
  .capability-list { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 230px; }
  .contact-shell { padding-inline: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .modal-hero { grid-template-columns: 1fr; padding: 72px 28px 42px; text-align: center; }
  .modal-actions { justify-content: center; }
  .modal-summary { margin-inline: auto; }
  .modal-device-wrap { min-height: 360px; }
  .modal-device { width: 185px; height: 400px; }
  .modal-metrics { grid-template-columns: repeat(2,1fr); padding: 24px 28px; gap: 18px 0; }
  .modal-metric:nth-child(2) { border-right: 0; }
  .modal-metric:nth-child(3) { padding-left: 0; }
  .modal-body { padding: 48px 28px 60px; }
  .modal-highlights { grid-template-columns: repeat(2,1fr); }
  .modal-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .brand-text small { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { padding-inline: 16px; }
  .hero-actions { display: grid; width: 100%; }
  .btn { width: 100%; }
  .hero-signature { flex-direction: column; }
  .hero-signature span { max-width: none; }
  .hero-visual { min-height: 470px; margin-top: 0; }
  .phone-main { width: 205px; height: 444px; right: calc(50% - 102px); }
  .phone-left { width: 115px; height: 250px; left: -5%; }
  .phone-right { width: 110px; height: 238px; right: -5%; }
  .chip-two { right: -4%; top: 12%; }
  .chip-one { left: -3%; }
  .chip-three { left: -2%; bottom: 7%; }
  .hero-strip { padding: 17px 14px; }
  .hero-strip > div { padding-inline: 12px; }
  .section-title { font-size: clamp(34px, 11vw, 48px); }
  .project-card { min-height: 560px; border-radius: 22px; }
  .project-card-top { padding: 22px 22px 0; }
  .project-stage { height: 300px; }
  .project-logo { left: 22px; }
  .project-card-copy { padding: 23px 22px 25px; }
  .about-visual { min-height: 430px; }
  .portrait-card { width: 290px; }
  .badge-a { left: 0; top: 10%; }
  .badge-b { right: 0; bottom: 10%; }
  .contact h2 { font-size: 42px; }
  .contact-actions { width: 100%; }
  .project-modal { width: calc(100% - 10px); max-height: calc(100svh - 10px); border-radius: 22px; }
  .modal-shell { max-height: calc(100svh - 10px); }
  .modal-close { top: 10px; left: calc(100% - 54px); }
  .modal-content { margin-top: -44px; }
  .modal-hero { padding-inline: 20px; }
  .modal-hero h2 { font-size: 44px; }
  .modal-metrics { padding-inline: 20px; }
  .modal-metric { padding-inline: 12px; }
  .modal-body { padding-inline: 20px; }
  .modal-highlights { grid-template-columns: 1fr; }
  .gallery-card { width: 190px; }
  .gallery-phone { height: 411px; }
  .modal-footer img { width: 180px; }
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
  .magnetic { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  #particles, .cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
}


/* Performance and personal-brand refinements */
.brand-mark {
  overflow: hidden;
  padding: 2px;
  border-radius: 50%;
  background:
    linear-gradient(#080b19,#080b19) padding-box,
    linear-gradient(135deg,var(--cyan),var(--violet),var(--magenta)) border-box;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(.96) contrast(1.04);
}
.portrait-card::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(3,5,15,.84) 100%),
    radial-gradient(circle at 50% 28%, transparent 30%, rgba(5,7,19,.18) 80%);
  pointer-events: none;
}
.portrait-meta,
.scan-line { z-index: 3; }

.hero-signature img,
.about-signature,
.contact-signature,
.modal-footer img {
  background: transparent;
  object-fit: contain;
}

.project-card,
.principle-card,
.portrait-card,
.contact-shell,
.modal-device,
.gallery-card {
  contain: layout paint style;
}

.noise {
  opacity: .018;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.34) 0 .45px, transparent .65px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}
.aurora {
  filter: none;
  opacity: .62;
  transform: translateZ(0);
}
.aurora-one {
  background: radial-gradient(circle, rgba(139,92,246,.16), rgba(139,92,246,.05) 42%, transparent 72%);
}
.aurora-two {
  background: radial-gradient(circle, rgba(34,211,238,.13), rgba(34,211,238,.04) 42%, transparent 72%);
}
.project-card::before {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-b) 24%, transparent), transparent 68%);
  filter: none;
}
.principle-card::after {
  background: radial-gradient(circle, rgba(139,92,246,.18), transparent 70%);
  filter: none;
}
.contact-glow {
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%);
  filter: none;
}
.site-header.scrolled { backdrop-filter: blur(12px) saturate(120%); }
.btn-ghost,
.floating-chip,
.hero-strip,
.about-badge,
.modal-close,
.toast { backdrop-filter: blur(8px); }
.project-card-copy { backdrop-filter: none; }
.project-modal { backdrop-filter: blur(16px); }
.project-modal::backdrop { backdrop-filter: blur(5px); }

html.low-power #particles,
html.low-power .cursor-glow { display: none; }
html.low-power .aurora,
html.low-power .phone-main,
html.low-power .phone-left,
html.low-power .phone-right,
html.low-power .phone-sheen,
html.low-power .scan-line,
html.low-power .gradient-text,
html.low-power .marquee-track,
html.low-power .live-dot::after {
  animation: none !important;
}
html.low-power .aurora { opacity: .42; }
html.low-power .site-header.scrolled,
html.low-power .btn-ghost,
html.low-power .floating-chip,
html.low-power .hero-strip,
html.low-power .about-badge,
html.low-power .project-modal,
html.low-power .project-modal::backdrop,
html.low-power .modal-close,
html.low-power .toast {
  backdrop-filter: none;
}
html.low-power .gradient-text { background-position: 42% center; }

@media (max-width: 820px), (pointer: coarse) {
  #particles,
  .cursor-glow { display: none !important; }
  .aurora,
  .phone-main,
  .phone-left,
  .phone-right,
  .phone-sheen,
  .scan-line,
  .live-dot::after {
    animation: none !important;
  }
  .aurora { opacity: .38; }
  .site-header.scrolled,
  .btn-ghost,
  .floating-chip,
  .hero-strip,
  .about-badge,
  .project-modal,
  .project-modal::backdrop,
  .modal-close,
  .toast {
    backdrop-filter: none;
  }
  .project-card:hover,
  .principle-card:hover { transform: none; }
}

@media (prefers-reduced-data: reduce) {
  #particles,
  .noise,
  .cursor-glow { display: none !important; }
  .aurora,
  .phone-main,
  .phone-left,
  .phone-right,
  .phone-sheen,
  .scan-line,
  .gradient-text,
  .marquee-track { animation: none !important; }
}

.scroll-progress span { width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; }

.brand-wordmark {
  width: 112px;
  height: 35px;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.brand-text small { margin-top: 0; }
@media (max-width: 540px) {
  .brand-wordmark { width: 100px; height: 31px; }
}


/* =========================================================
   ANIMATED PRO UI — neon interactions + mobile-native modal
   ========================================================= */

:root {
  --press-ease: cubic-bezier(.2,.9,.2,1);
  --neon-cyan: rgba(34,211,238,.72);
  --neon-violet: rgba(139,92,246,.68);
  --neon-magenta: rgba(236,72,153,.62);
}

/* Keep the animated typography alive while using only GPU-friendly properties. */
.gradient-text {
  background-size: 260% auto;
  will-change: background-position;
}

.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -12px;
  width: min(170px, 48%);
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  background-size: 240% 100%;
  box-shadow: 0 0 18px rgba(87,89,255,.42);
  transform-origin: left center;
}

.hero-signature img,
.about-signature,
.contact-signature,
.modal-footer img {
  will-change: transform;
  filter:
    drop-shadow(0 0 10px rgba(34,211,238,.22))
    drop-shadow(0 0 24px rgba(139,92,246,.12));
}

/* Premium neon button system */
.btn,
.header-cta,
.filter,
.menu-toggle,
.modal-close,
.detail-trigger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn > *,
.header-cta > *,
.filter > *,
.menu-toggle > *,
.modal-close > *,
.detail-trigger > * {
  position: relative;
  z-index: 3;
}

.btn {
  transform: translateZ(0);
  box-shadow:
    0 13px 34px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.16);
  transition:
    transform .16s var(--press-ease),
    border-color .24s ease,
    box-shadow .24s ease,
    filter .24s ease;
}

.btn::after {
  position: absolute;
  z-index: 1;
  content: "";
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  background-size: 260% 100%;
  pointer-events: none;
  opacity: .72;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.btn-primary {
  background-size: 240% 100%;
  box-shadow:
    0 18px 44px rgba(86,62,213,.34),
    0 0 24px rgba(34,211,238,.12),
    inset 0 1px rgba(255,255,255,.26);
}
.btn-primary:hover {
  filter: saturate(1.12) brightness(1.06);
  box-shadow:
    0 23px 58px rgba(86,62,213,.46),
    0 0 34px rgba(34,211,238,.24),
    0 0 58px rgba(236,72,153,.12),
    inset 0 1px rgba(255,255,255,.3);
}
.btn-ghost {
  box-shadow:
    0 12px 34px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 22px rgba(34,211,238,.055);
}

.btn:active,
.btn.is-pressed,
.btn.keyboard-press,
.header-cta:active,
.header-cta.is-pressed,
.filter:active,
.filter.is-pressed,
.menu-toggle:active,
.menu-toggle.is-pressed,
.modal-close:active,
.modal-close.is-pressed,
.detail-trigger:active,
.detail-trigger.is-pressed {
  transform: translateY(2px) scale(.965);
  filter: brightness(.94);
  box-shadow:
    0 4px 12px rgba(0,0,0,.28),
    inset 0 3px 10px rgba(0,0,0,.28),
    0 0 22px rgba(34,211,238,.18);
}

.btn:focus-visible,
.header-cta:focus-visible,
.filter:focus-visible,
.menu-toggle:focus-visible,
.modal-close:focus-visible,
.detail-trigger:focus-visible,
.project-card:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(5,7,19,.94),
    0 0 0 5px rgba(34,211,238,.72),
    0 0 30px rgba(139,92,246,.36);
}

.header-cta,
.filter.active,
.menu-toggle,
.modal-close {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 22px rgba(72,92,255,.09);
}
.header-cta:hover,
.filter:hover,
.menu-toggle:hover,
.modal-close:hover {
  border-color: rgba(34,211,238,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 22px rgba(34,211,238,.18),
    0 0 42px rgba(139,92,246,.1);
}

.press-ripple {
  position: absolute !important;
  z-index: 2 !important;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.52) 0%, rgba(34,211,238,.24) 26%, rgba(139,92,246,.12) 48%, transparent 72%);
  transform: scale(0);
  opacity: .9;
  animation: press-ripple .68s var(--press-ease) forwards !important;
}

/* Project cards retain motion and gain tactile depth. */
.project-card {
  transform: translateZ(0);
  will-change: transform;
}
.project-card:active {
  transform: translateY(-2px) scale(.988);
  transition-duration: .1s;
}
.project-card:hover .project-phone {
  transform: translateY(-8px) rotate(-1deg) scale(1.02);
}
.project-phone {
  transition: transform .55s var(--press-ease), box-shadow .45s ease;
}
.project-card:hover .project-open {
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent-a) 34%, transparent),
    inset 0 0 16px color-mix(in srgb, var(--accent-b) 12%, transparent);
}

/* Dialog motion and reading progress */
.project-modal {
  overscroll-behavior: contain;
}
.project-modal[open] {
  animation: dialog-enter .38s var(--press-ease) both;
}
.project-modal[open]::backdrop {
  animation: backdrop-enter .3s ease both;
}
.modal-content {
  min-width: 0;
}
.modal-progress {
  position: sticky;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}
.modal-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 18px rgba(139,92,246,.85);
  transition: transform .08s linear;
}

.modal-hero h2 {
  color: transparent;
  background:
    linear-gradient(110deg, #fff 0%, var(--modal-a) 28%, var(--modal-b) 58%, #fff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
.modal-device {
  will-change: transform;
}
.modal-device-wrap::before {
  will-change: transform, opacity;
}
.modal-highlights .highlight-item,
.detail-item,
.gallery-card {
  transition:
    transform .28s var(--press-ease),
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}
.highlight-item:hover,
.detail-item:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,.2);
  background: rgba(255,255,255,.035);
  box-shadow: 0 15px 34px rgba(0,0,0,.18);
}

.detail-trigger::after {
  position: absolute;
  content: "";
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.36), rgba(139,92,246,.28), transparent);
  transform: scaleX(0);
  transition: transform .34s ease;
}
.detail-item.open .detail-trigger::after {
  transform: scaleX(1);
}

.gallery-phone {
  transition:
    transform .38s var(--press-ease),
    border-color .3s ease,
    box-shadow .3s ease;
}
.gallery-card:hover .gallery-phone {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,.26);
  box-shadow:
    0 27px 64px rgba(0,0,0,.48),
    0 0 32px rgba(73,95,255,.12);
}

.modal-body,
.modal-hero,
.modal-metrics,
.detail-copy,
.gallery-shell {
  min-width: 0;
}
.modal-summary,
.detail-copy p,
.detail-copy li,
.highlight-item {
  overflow-wrap: anywhere;
}

/* Restore the visual motion on touch/mobile without restoring costly blur work. */
@media (prefers-reduced-motion: no-preference) {
  .gradient-text {
    animation: text-spectrum 8s linear infinite !important;
  }
  .section-title::after {
    animation: line-spectrum 5.5s linear infinite;
  }
  .btn-primary {
    animation:
      button-spectrum 5.6s linear infinite,
      neon-breathe 3.2s ease-in-out infinite;
  }
  .btn::after {
    animation: border-spectrum 4.8s linear infinite;
  }
  .hero-signature img,
  .about-signature,
  .contact-signature,
  .modal-footer img {
    animation: signature-hover 6s ease-in-out infinite;
  }
  .modal-hero h2 {
    animation: text-spectrum 7s linear infinite;
  }
  .modal-device {
    animation: modal-device-float 6.4s ease-in-out infinite;
  }
  .modal-device-wrap::before {
    animation: modal-orbit-breathe 5.8s ease-in-out infinite;
  }
  html.low-power .gradient-text {
    animation: text-spectrum 9s linear infinite !important;
  }
  html.low-power .marquee-track {
    animation: marquee 40s linear infinite !important;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference),
       (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .aurora-one {
    animation: drift 22s ease-in-out infinite alternate !important;
  }
  .aurora-two {
    animation: drift 26s ease-in-out infinite alternate-reverse !important;
  }
  .phone-main {
    animation: phone-float 7.5s ease-in-out infinite !important;
  }
  .phone-left {
    animation: phone-float 8.4s ease-in-out infinite .8s !important;
  }
  .phone-right {
    animation: phone-float 9.2s ease-in-out infinite 1.3s !important;
  }
  .phone-sheen {
    animation: sheen 7s ease-in-out infinite !important;
  }
  .scan-line {
    animation: scan 5.2s ease-in-out infinite !important;
  }
  .live-dot::after {
    animation: pulse-ring 2.2s ease-out infinite !important;
  }
  .marquee-track {
    animation: marquee 36s linear infinite !important;
  }
}

/* Mobile-native project detail experience */
@media (max-width: 700px) {
  .project-modal {
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #060916;
    box-shadow: none;
  }
  .project-modal::backdrop {
    background: #02040b;
  }
  .modal-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
    -webkit-overflow-scrolling: touch;
  }
  .modal-progress {
    position: fixed;
    top: 0;
    height: calc(3px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(4,7,18,.9);
  }
  .modal-close {
    position: fixed;
    z-index: 110;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    left: auto;
    width: 46px;
    height: 46px;
    border-color: rgba(255,255,255,.16);
    background:
      linear-gradient(145deg, rgba(18,25,52,.96), rgba(7,10,24,.96));
    box-shadow:
      0 10px 28px rgba(0,0,0,.42),
      0 0 24px rgba(34,211,238,.12);
  }
  .modal-content {
    margin-top: 0;
    width: 100%;
  }
  .modal-hero {
    min-height: auto;
    padding:
      calc(82px + env(safe-area-inset-top))
      18px
      38px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    text-align: left;
    background:
      radial-gradient(circle at 94% 2%, color-mix(in srgb, var(--modal-b) 26%, transparent), transparent 31%),
      radial-gradient(circle at 0% 72%, color-mix(in srgb, var(--modal-a) 16%, transparent), transparent 40%),
      linear-gradient(165deg, rgba(17,24,51,.94), rgba(6,9,22,.98));
  }
  .modal-hero::after {
    position: absolute;
    content: "";
    top: calc(18px + env(safe-area-inset-top));
    left: 50%;
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,.2);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(34,211,238,.14);
  }
  .modal-kicker {
    max-width: calc(100% - 58px);
    margin-bottom: 12px;
    font-size: 9px;
    line-height: 1.5;
  }
  .modal-hero h2 {
    max-width: 100%;
    margin-right: 0;
    font-size: clamp(38px, 12vw, 56px);
    line-height: .98;
    letter-spacing: -.05em;
  }
  .modal-subtitle {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
  }
  .modal-summary {
    font-size: 14px;
    line-height: 1.72;
  }
  .modal-actions {
    width: 100%;
    margin-top: 23px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-actions .btn {
    width: 100%;
    min-height: 56px;
  }
  .modal-device-wrap {
    width: 100%;
    min-height: 355px;
    margin-top: -2px;
    overflow: visible;
  }
  .modal-device-wrap::before {
    width: min(330px, 82vw);
    height: min(330px, 82vw);
    box-shadow:
      0 0 0 30px rgba(255,255,255,.01),
      0 0 0 60px rgba(255,255,255,.006);
  }
  .modal-device {
    width: min(184px, 47vw);
    height: auto;
    aspect-ratio: 205 / 444;
    border-radius: 30px;
    transform: rotate(2deg);
    box-shadow:
      0 28px 66px rgba(0,0,0,.62),
      0 0 36px color-mix(in srgb, var(--modal-a) 17%, transparent);
  }
  .modal-logo {
    right: max(8px, 4vw);
    bottom: 8px;
    max-width: min(128px, 34vw);
    max-height: 70px;
  }

  .modal-metrics {
    width: 100%;
    padding: 17px 18px 21px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(144px, 46vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
    background: rgba(255,255,255,.012);
  }
  .modal-metrics::-webkit-scrollbar {
    display: none;
  }
  .modal-metric,
  .modal-metric:first-child,
  .modal-metric:nth-child(3) {
    min-height: 96px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
    scroll-snap-align: start;
  }
  .modal-metric:nth-child(2),
  .modal-metric:last-child {
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .modal-metric strong {
    font-size: 23px;
  }
  .modal-metric span {
    font-size: 8px;
    line-height: 1.5;
  }

  .modal-body {
    width: 100%;
    padding: 40px 18px 54px;
  }
  .modal-block-title {
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 1.18;
  }
  .modal-highlights {
    margin-bottom: 44px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .highlight-item {
    min-height: 0;
    padding: 17px;
    border-radius: 16px;
    font-size: 12px;
  }
  .detail-accordion {
    gap: 9px;
  }
  .detail-item {
    border-radius: 16px;
  }
  .detail-trigger {
    min-height: 65px;
    padding: 0 17px;
    gap: 14px;
  }
  .detail-trigger span {
    font-size: 13px;
    line-height: 1.35;
  }
  .detail-copy {
    padding: 0 17px 21px;
  }
  .detail-copy p {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .detail-copy ul {
    padding-left: 17px;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .modal-gallery {
    margin-top: 46px;
  }
  .gallery-shell {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding: 22px 0 8px 18px;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }
  .gallery-shell::-webkit-scrollbar {
    display: none;
  }
  .gallery-track {
    gap: 13px;
    padding-right: 18px;
  }
  .gallery-card {
    width: min(72vw, 255px);
  }
  .gallery-phone {
    width: 100%;
    height: auto;
    aspect-ratio: 220 / 476;
    border-radius: 28px;
  }
  .gallery-card p {
    margin: 10px 5px 0;
    font-size: 9.5px;
  }

  .tech-stack {
    margin-top: 42px;
    gap: 7px;
  }
  .tech-chip {
    padding: 7px 10px;
    font-size: 8.5px;
  }
  .disclaimer {
    margin-top: 25px;
    padding: 16px;
    font-size: 10.5px;
  }
  .modal-footer {
    margin-top: 40px;
    padding-top: 23px;
    gap: 18px;
  }
  .modal-footer img {
    width: min(190px, 58vw);
  }
  .modal-footer span {
    font-size: 9px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .modal-hero {
    padding-inline: 15px;
  }
  .modal-body {
    padding-inline: 15px;
  }
  .modal-hero h2 {
    font-size: 38px;
  }
  .modal-device-wrap {
    min-height: 325px;
  }
  .modal-device {
    width: 168px;
  }
  .modal-metrics {
    padding-inline: 15px;
    grid-auto-columns: minmax(138px, 55vw);
  }
}

/* Respect accessibility settings even though the regular experience is animated. */
@media (prefers-reduced-motion: reduce) {
  .project-modal[open],
  .project-modal[open]::backdrop,
  .gradient-text,
  .section-title::after,
  .btn-primary,
  .btn::after,
  .hero-signature img,
  .about-signature,
  .contact-signature,
  .modal-footer img,
  .modal-hero h2,
  .modal-device,
  .modal-device-wrap::before {
    animation: none !important;
  }
  .modal-shell {
    scroll-behavior: auto;
  }
}

/* Keyframes */
@keyframes text-spectrum {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
@keyframes line-spectrum {
  0% { background-position: 0% 50%; transform: scaleX(.78); opacity: .7; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { background-position: 240% 50%; transform: scaleX(.78); opacity: .7; }
}
@keyframes button-spectrum {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}
@keyframes border-spectrum {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
@keyframes neon-breathe {
  0%, 100% {
    box-shadow:
      0 18px 44px rgba(86,62,213,.30),
      0 0 18px rgba(34,211,238,.10),
      inset 0 1px rgba(255,255,255,.24);
  }
  50% {
    box-shadow:
      0 21px 52px rgba(86,62,213,.42),
      0 0 30px rgba(34,211,238,.22),
      0 0 48px rgba(236,72,153,.10),
      inset 0 1px rgba(255,255,255,.28);
  }
}
@keyframes signature-hover {
  0%, 100% { transform: translate3d(0,0,0) rotate(-.2deg); }
  50% { transform: translate3d(0,-4px,0) rotate(.2deg); }
}
@keyframes modal-device-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -9px; rotate: .35deg; }
}
@keyframes modal-orbit-breathe {
  0%, 100% { transform: scale(.96); opacity: .66; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes press-ripple {
  0% { transform: scale(0); opacity: .8; }
  70% { opacity: .3; }
  100% { transform: scale(1); opacity: 0; }
}


/* =========================================================
   Signature Final — top-left + bottom artistic animated signature
   ========================================================= */

.brand-signature-wrap {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  overflow: visible;
}
.brand-wordmark,
.brand-text small {
  display: none !important;
}

.signature-name {
  position: relative;
  display: inline-block;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", "Apple Chancery", "Lucida Handwriting", cursive;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  line-height: .88;
  letter-spacing: .01em;
  color: transparent;
  background: linear-gradient(90deg, #71ccff 0%, #86a6ff 22%, #d26cff 54%, #66dbff 78%, #b476ff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 12px rgba(95, 197, 255, .18),
    0 0 28px rgba(181, 96, 255, .12);
  filter:
    drop-shadow(0 0 10px rgba(63, 194, 255, .15))
    drop-shadow(0 0 22px rgba(213, 97, 255, .10));
  will-change: transform, background-position, filter;
  animation:
    signatureShimmer 7s linear infinite,
    signatureFloat 5.8s ease-in-out infinite;
}

.signature-name::after {
  content: "";
  position: absolute;
  left: .03em;
  right: .02em;
  bottom: -.08em;
  height: .055em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(95, 202, 255, .30), rgba(186, 102, 255, .45), rgba(88, 234, 255, .22));
  transform-origin: left center;
  animation: signatureUnderline 4.8s ease-in-out infinite;
}

.signature-name--header {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.signature-name--hero {
  font-size: clamp(4rem, 11.5vw, 6.7rem);
  line-height: .9;
}

.signature-line {
  position: relative;
  display: block;
  width: 100%;
  pointer-events: none;
}

.signature-line::before,
.signature-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transform-origin: left center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.signature-line--header {
  width: 132px;
  height: 12px;
}
.signature-line--hero {
  width: min(330px, 100%);
  height: 18px;
  margin-top: 4px;
}

.signature-line::before {
  inset: auto 0 0 0;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 46'%3E%3Cpath d='M8 29c17 0 30-10 48-10 12 0 20 7 32 7 18 0 28-10 45-10 16 0 24 8 39 8 16 0 26-7 40-7 18 0 29 10 47 10 14 0 23-5 34-12 6-4 16-10 27-10' fill='none' stroke='rgba(105,207,255,0.95)' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 8px rgba(68, 196, 255, .34));
  animation: signatureStrokeIn 3.2s ease-out both, signatureGlowA 5.5s ease-in-out infinite;
}
.signature-line::after {
  inset: auto 62% 0 auto;
  width: 42%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 46'%3E%3Cpath d='M12 24c14 0 20 13 34 13 14 0 19-7 30-15 7-5 15-9 31-9' fill='none' stroke='rgba(228,99,218,0.95)' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: .92;
  filter: drop-shadow(0 0 8px rgba(228, 99, 218, .30));
  animation: signatureStrokeTail 3.7s ease-out both, signatureGlowB 5.5s ease-in-out infinite;
}

.signature-hero-wrap {
  margin-top: 24px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}
.signature-hero-wrap .signature-name {
  max-width: 100%;
}
.signature-hero-wrap .signature-line--hero {
  max-width: 100%;
}

@media (max-width: 800px) {
  .signature-name--header {
    font-size: clamp(1.7rem, 6vw, 2.15rem);
  }
  .signature-name--hero {
    font-size: clamp(3.4rem, 14.5vw, 5rem);
  }
  .signature-line--hero {
    width: min(255px, 100%);
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-name,
  .signature-name::after,
  .signature-line::before,
  .signature-line::after {
    animation: none !important;
  }
}

@keyframes signatureShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
@keyframes signatureFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(-.3deg) scale(1); }
  50% { transform: translate3d(0,-3px,0) rotate(.25deg) scale(1.012); }
}
@keyframes signatureUnderline {
  0%,100% { transform: scaleX(.72); opacity: .08; }
  50% { transform: scaleX(1); opacity: .24; }
}
@keyframes signatureStrokeIn {
  0% { transform: scaleX(.02); opacity: 0; }
  20% { opacity: .95; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes signatureStrokeTail {
  0%,28% { transform: scaleX(.01); opacity: 0; }
  45% { opacity: .82; }
  100% { transform: scaleX(1); opacity: .95; }
}
@keyframes signatureGlowA {
  0%,100% { filter: drop-shadow(0 0 8px rgba(68, 196, 255, .28)); }
  50% { filter: drop-shadow(0 0 13px rgba(68, 196, 255, .44)); }
}
@keyframes signatureGlowB {
  0%,100% { filter: drop-shadow(0 0 8px rgba(228, 99, 218, .20)); }
  50% { filter: drop-shadow(0 0 13px rgba(228, 99, 218, .34)); }
}


/* =========================================================
   Refined fountain-pen signature — more masculine, professional
   ========================================================= */

.signature-line,
.signature-line::before,
.signature-line::after {
  display: none !important;
  content: none !important;
}

.brand-text small {
  display: none !important;
}

.brand-signature-wrap,
.signature-block,
.signature-hero-wrap,
.modal-signature {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.signature-name {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  line-height: .9;
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Lucida Handwriting", "Palatino Linotype", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .012em;
  color: transparent;
  background: linear-gradient(96deg,
    #f4f7ff 0%,
    #cad6ef 12%,
    #88bfff 31%,
    #d6dde9 49%,
    #91a8cf 64%,
    #7dc8ff 81%,
    #f2f5ff 100%);
  background-size: 190% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(124, 197, 255, .10),
    0 0 28px rgba(94, 126, 191, .07);
  filter:
    drop-shadow(0 0 8px rgba(131, 198, 255, .10))
    drop-shadow(0 0 18px rgba(147, 162, 214, .05));
  will-change: transform, background-position, filter;
  animation:
    penInkFlow 10.5s linear infinite,
    penFloat 6.8s ease-in-out infinite;
}

.signature-name::after {
  content: none !important;
}

.signature-name--header {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  letter-spacing: .01em;
}

.signature-name--hero {
  font-size: clamp(3.5rem, 10.5vw, 5.9rem);
  line-height: .9;
}

.signature-name--section {
  font-size: clamp(3rem, 8.2vw, 4.6rem);
  line-height: .92;
}

.signature-name--contact {
  font-size: clamp(3rem, 8vw, 4.4rem);
  line-height: .92;
}

.signature-name--modal {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: .92;
}

.brand-signature-wrap {
  overflow: visible;
}

.hero-signature.signature-hero-wrap {
  margin-top: 24px !important;
  gap: 0 !important;
}

.about-signature,
.contact-signature {
  width: auto !important;
  max-width: 100%;
  margin-top: 28px;
  opacity: 1;
  filter: none !important;
}

.about-signature .signature-name,
.contact-signature .signature-name,
.modal-signature .signature-name {
  white-space: normal;
}

.modal-footer {
  gap: 14px;
}
.modal-footer img {
  display: none !important;
}
.modal-signature {
  align-self: flex-start;
}
.modal-signature .signature-name {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .signature-name--header {
    font-size: clamp(1.8rem, 5.7vw, 2.2rem);
  }
  .signature-name--hero {
    font-size: clamp(3.15rem, 13vw, 4.7rem);
  }
  .signature-name--section,
  .signature-name--contact {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }
}

@media (max-width: 560px) {
  .signature-name {
    letter-spacing: .008em;
  }
  .signature-name--header {
    font-size: clamp(1.95rem, 7vw, 2.25rem);
  }
  .signature-name--hero {
    font-size: clamp(2.9rem, 13.6vw, 4.2rem);
  }
  .signature-name--section,
  .signature-name--contact {
    font-size: clamp(2.5rem, 11.2vw, 3.7rem);
  }
  .signature-name--modal {
    font-size: clamp(2rem, 8.2vw, 2.55rem);
  }
  .hero-signature.signature-hero-wrap {
    margin-top: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-name {
    animation: none !important;
  }
}

@keyframes penInkFlow {
  0% { background-position: 0% 50%; filter: drop-shadow(0 0 6px rgba(131, 198, 255, .08)) drop-shadow(0 0 14px rgba(147, 162, 214, .04)); }
  50% { background-position: 92% 50%; filter: drop-shadow(0 0 9px rgba(131, 198, 255, .14)) drop-shadow(0 0 20px rgba(147, 162, 214, .06)); }
  100% { background-position: 190% 50%; filter: drop-shadow(0 0 6px rgba(131, 198, 255, .08)) drop-shadow(0 0 14px rgba(147, 162, 214, .04)); }
}
@keyframes penFloat {
  0%, 100% { transform: translate3d(0,0,0) rotate(-.3deg) scale(1); }
  50% { transform: translate3d(0,-2px,0) rotate(.18deg) scale(1.006); }
}
