/* W22 — shared Liquid Glass styles (Day & Night modes) for every page. */
:root {
  color-scheme: dark;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic palette (RGB triplets for Tailwind / <alpha-value>) */
  --c-soft-black: 21 20 20;      /* #151414 obsidian-warm canvas (matches #services) */
  --c-midnight: 25 24 23;        /* #191817 */
  --c-deep-slate: 42 41 39;      /* #2A2927 */
  --c-pure-white: 255 255 255;   /* #FFFFFF */
  --c-off-white: 244 247 251;    /* #F4F7FB */
  --c-silver: 166 177 196;       /* #A6B1C4 */
  --c-ice: 255 94 31;            /* #FF5E1F Signal Orange */
  --c-lilac: 255 177 10;         /* #FFB10A Warm Amber */
  --c-outline: 94 104 124;       /* #5E687C */

  /* Glass surfaces */
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,94,31,0.035) 55%, rgba(255,255,255,0.02));
  --glass-strong-bg: linear-gradient(135deg, rgba(25,24,23,0.88), rgba(21,20,20,0.78));
  --glass-border: rgba(255,255,255,0.14);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -1px 0 rgba(255,255,255,0.05), 0 30px 60px -30px rgba(0,0,0,0.78);

  /* Animated SVG Glass Logo (Clear Water Droplet) */
  --logo-f1: rgba(255, 255, 255, 0.42);
  --logo-f2: rgba(255, 255, 255, 0.16);
  --logo-f3: rgba(255, 255, 255, 0.06);
  --logo-s1: rgba(255, 255, 255, 0.95);
  --logo-s2: rgba(255, 255, 255, 0.45);
  --logo-s3: rgba(255, 255, 255, 0.82);
  --logo-g1: rgba(255, 255, 255, 0.35);
  --logo-g2: rgba(255, 255, 255, 0.12);
  --logo-glow-op: 0.32;

  /* 3D Apple WWDC25 Liquid Glass Lens Tokens (Dark) */
  --lg-d0: rgba(255, 255, 255, 0.44);
  --lg-d1: rgba(212, 222, 234, 0.24);
  --lg-d2: rgba(142, 156, 174, 0.08);
  --lg-d3: rgba(20, 26, 36, 0.50);
  --lg-d4: rgba(240, 245, 252, 0.60);
  --lg-d5: rgba(255, 255, 255, 0.28);
  --lg-arc: rgba(255, 255, 255, 0.96);
  --lg-rim-1: rgba(255, 255, 255, 0.72);
  --lg-rim-2: rgba(148, 163, 184, 0.26);
  --lg-shadow: rgba(0, 0, 0, 0.58);
  --lg-caustic-floor: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] {
  color-scheme: light;

  --c-soft-black: 251 249 247;   /* #FBF9F7 warm porcelain canvas (matches #services) */
  --c-midnight: 244 239 234;     /* #F4EFEA */
  --c-deep-slate: 231 223 214;   /* #E7DFD6 */
  --c-pure-white: 28 25 23;      /* #1C1917 warm ink */
  --c-off-white: 34 30 28;       /* #221E1C */
  --c-silver: 87 83 78;          /* #57534E */
  --c-ice: 234 76 15;            /* #EA4C0F Signal Flame Orange */
  --c-lilac: 217 119 6;          /* #D97706 Warm Amber */
  --c-outline: 120 113 108;      /* #78716C */

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(251,249,247,0.56) 55%, rgba(244,239,234,0.44));
  --glass-strong-bg: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(251,249,247,0.88));
  --glass-border: rgba(15,23,42,0.10);
  --glass-shadow: inset 0 1.5px 0 rgba(255,255,255,0.96), inset 0 -1px 0 rgba(15,23,42,0.05), 0 24px 50px -24px rgba(15,23,42,0.14), 0 4px 14px -4px rgba(234,76,15,0.08);

  --logo-f1: rgba(255, 255, 255, 0.85);
  --logo-f2: rgba(226, 232, 240, 0.42);
  --logo-f3: rgba(148, 163, 184, 0.22);
  --logo-s1: rgba(15, 23, 42, 0.58);
  --logo-s2: rgba(255, 255, 255, 0.95);
  --logo-s3: rgba(51, 65, 85, 0.45);
  --logo-g1: rgba(255, 255, 255, 0.75);
  --logo-g2: rgba(148, 163, 184, 0.28);
  --logo-glow-op: 0.26;

  /* 3D Apple WWDC25 Liquid Glass Lens Tokens (Light) */
  --lg-d0: rgba(255, 255, 255, 0.96);
  --lg-d1: rgba(226, 232, 239, 0.76);
  --lg-d2: rgba(182, 192, 204, 0.34);
  --lg-d3: rgba(108, 120, 134, 0.46);
  --lg-d4: rgba(246, 249, 253, 0.92);
  --lg-d5: rgba(110, 122, 136, 0.56);
  --lg-arc: rgba(255, 255, 255, 0.98);
  --lg-rim-1: rgba(255, 255, 255, 0.95);
  --lg-rim-2: rgba(71, 85, 105, 0.34);
  --lg-shadow: rgba(15, 23, 42, 0.26);
  --lg-caustic-floor: rgba(255, 255, 255, 0.82);
}

html { background: rgb(var(--c-soft-black)); }
body { overflow-x: hidden; }

.theme-anim, .theme-anim * {
  transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out), color 240ms var(--ease-out), box-shadow 320ms var(--ease-out) !important;
}

.material-symbols-outlined {
  display: inline-block; width: 1em; height: 1em; line-height: 1 !important;
  overflow: hidden; white-space: nowrap; direction: ltr; vertical-align: middle;
}

/* ============ Ambient background ============ */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22;
  will-change: transform; animation: blob-drift 26s ease-in-out infinite alternate;
}
.aurora .b1 { width: 46vw; height: 46vw; top: -14vw; left: -8vw; background: radial-gradient(circle, rgba(255,94,31,.28), transparent 65%); }
.aurora .b2 { width: 40vw; height: 40vw; top: 30vh; right: -12vw; background: radial-gradient(circle, rgba(255,177,10,.24), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.aurora .b3 { width: 50vw; height: 50vw; bottom: -20vw; left: 25vw; background: radial-gradient(circle, rgba(240,227,222,.16), transparent 65%); animation-duration: 38s; animation-delay: -14s; }

html[data-theme="light"] .aurora .blob { opacity: .20; }
html[data-theme="light"] .aurora .b1 { background: radial-gradient(circle, rgba(255,94,31,0.20), transparent 65%); }
html[data-theme="light"] .aurora .b2 { background: radial-gradient(circle, rgba(255,177,10,0.18), transparent 65%); }
html[data-theme="light"] .aurora .b3 { background: radial-gradient(circle, rgba(254,215,170,0.34), transparent 65%); }

@keyframes blob-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(6vw,4vh,0) scale(1.12); }
  100% { transform: translate3d(-4vw,8vh,0) scale(.95); }
}

.grid-lines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
html[data-theme="light"] .grid-lines {
  background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
}

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .grain { opacity: .028; }

.cursor-light {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,94,31,.11), rgba(255,177,10,.05) 40%, transparent 70%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: transform 600ms var(--ease-out);
}
html[data-theme="light"] .cursor-light {
  background: radial-gradient(circle, rgba(234,76,15,.10), rgba(217,119,6,.06) 40%, transparent 70%);
}

/* ============ Glass primitives ============ */
:where(.glass) { position: relative; }
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* gradient rim light */
.glass-rim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(255,94,31,.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
html[data-theme="light"] .glass-rim::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 64%, rgba(234,76,15,0.34));
}

.glass-strong {
  background: var(--glass-strong-bg);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}

/* specular spotlight following mouse */
:where(.liquid-glass-card) { position: relative; }
.liquid-glass-card { overflow: hidden; isolation: isolate; }
.liquid-glass-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255,255,255,.12), transparent 60%);
  opacity: 0; transition: opacity 260ms ease;
}
html[data-theme="light"] .liquid-glass-card::before {
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255,255,255,.55), transparent 60%);
}
.liquid-glass-card:hover::before { opacity: 1; }

[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform 500ms var(--ease-out), border-color 300ms ease, box-shadow 300ms ease;
  transform-style: preserve-3d;
}
[data-tilt]:hover {
  --ty: -6px; border-color: rgba(255,255,255,.28);
  box-shadow: var(--glass-shadow), 0 40px 80px -30px rgba(255,94,31,.25);
}
html[data-theme="light"] [data-tilt]:hover {
  border-color: rgba(234,76,15,.32);
  box-shadow: var(--glass-shadow), 0 32px 64px -28px rgba(234,76,15,.22);
}

.glass-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -10px rgba(0,0,0,.6);
  color: #fff;
}
html[data-theme="light"] .glass-icon {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,237,213,.55));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 10px 24px -10px rgba(15,23,42,.14);
  color: #0F172A;
}

.chip {
  padding: 7px 14px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .4px;
  color: #F4F7FB; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.chip:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,94,31,.48);
  transform: translateY(-2px); box-shadow: 0 8px 24px -10px rgba(255,94,31,.5);
}
html[data-theme="light"] .chip {
  color: #334155; background: rgba(255,255,255,.78); border: 1px solid rgba(15,23,42,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 4px 12px -6px rgba(15,23,42,.10);
}
html[data-theme="light"] .chip:hover {
  color: #0F172A; background: rgba(255,255,255,.96); border-color: rgba(234,76,15,.44);
  box-shadow: 0 8px 22px -10px rgba(234,76,15,.32);
}

.text-gradient {
  background: linear-gradient(110deg, #ffffff 0%, #FFB10A 28%, #ffffff 46%, #FF5E1F 66%, #FFB10A 82%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-sheen 8s linear infinite;
}
html[data-theme="light"] .text-gradient {
  background: linear-gradient(110deg, #0F172A 0%, #EA4C0F 28%, #0F172A 46%, #D97706 64%, #EA4C0F 82%, #0F172A 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes text-sheen { to { background-position: -250% 0; } }

/* ============ Interactive Apple Liquid Glass Buttons ============ */
:where(.btn-liquid, .theme-toggle, .lang-switch, #mobile-menu-btn, #home a.glass, .filter-chip) {
  position: relative;
}
.btn-liquid,
.theme-toggle,
.lang-switch,
#mobile-menu-btn,
#home a.glass,
.filter-chip {
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(24px) saturate(185%) brightness(1.05);
  backdrop-filter: blur(24px) saturate(185%) brightness(1.05);
  transform-style: preserve-3d;
  transform: perspective(600px) translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateX(var(--brx, 0deg)) rotateY(var(--bry, 0deg)) scaleX(var(--bsx, 1)) scaleY(var(--bsy, 1));
  transition: transform 560ms cubic-bezier(0.18, 1.55, 0.32, 1), box-shadow 300ms var(--ease-out), border-color 260ms ease, background 260ms ease, color 200ms ease;
  will-change: transform;
}
.btn-liquid.is-lg-hover,
.theme-toggle.is-lg-hover,
.lang-switch.is-lg-hover,
#mobile-menu-btn.is-lg-hover,
#home a.glass.is-lg-hover,
.filter-chip.is-lg-hover {
  transition: transform 80ms ease-out, box-shadow 240ms var(--ease-out), border-color 220ms ease, background 220ms ease, color 200ms ease;
}
.btn-liquid:active,
.btn-liquid.is-lg-pressed,
.theme-toggle:active,
.theme-toggle.is-lg-pressed,
.lang-switch:active,
.lang-switch.is-lg-pressed,
#mobile-menu-btn:active,
#mobile-menu-btn.is-lg-pressed,
#home a.glass:active,
#home a.glass.is-lg-pressed,
.filter-chip:active,
.filter-chip.is-lg-pressed {
  --bsx: 1.07;
  --bsy: 0.90;
  transition-duration: 95ms;
}

/* Smoked transparent Liquid Glass capsules (Dark) */
.btn-liquid.glass,
.theme-toggle,
.lang-switch,
#mobile-menu-btn,
#home a.glass,
.filter-chip:not(.is-active) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.52), inset 0 -1.5px 5px rgba(0, 0, 0, 0.42), 0 14px 32px -12px rgba(0, 0, 0, 0.75);
}
html[data-theme="light"] .btn-liquid.glass,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .lang-switch,
html[data-theme="light"] #mobile-menu-btn,
html[data-theme="light"] #home a.glass,
html[data-theme="light"] .filter-chip:not(.is-active) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86) 0%, rgba(235, 240, 247, 0.56) 48%, rgba(205, 215, 228, 0.34) 100%);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.98), inset 0 -2px 6px rgba(15, 23, 42, 0.08), 0 12px 28px -10px rgba(15, 23, 42, 0.20), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
}

/* Primary high-contrast Liquid Glass CTAs */
.btn-liquid:not(.glass) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 240, 234, 0.84) 100%);
  color: #0A0C12;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1.5px 1px #ffffff, inset 0 -2px 6px rgba(15, 23, 42, 0.10), 0 14px 34px -10px rgba(255, 94, 31, 0.24);
}
html[data-theme="light"] .btn-liquid:not(.glass) {
  background: linear-gradient(165deg, rgba(24, 20, 18, 0.92) 0%, rgba(12, 10, 9, 0.86) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.34), inset 0 -2px 6px rgba(0, 0, 0, 0.35), 0 14px 30px -10px rgba(15, 23, 42, 0.32);
}

/* ::before — Cursor-following internal liquid light bloom (sits below button text) */
.btn-liquid::before,
.theme-toggle::before,
.lang-switch::before,
#mobile-menu-btn::before,
#home a.glass::before,
.filter-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(165px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.78), rgba(255, 146, 72, 0.26) 42%, transparent 74%);
  opacity: 0;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
.btn-liquid:not(.glass)::before {
  background: radial-gradient(165px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.94), rgba(255, 177, 10, 0.24) 44%, transparent 74%);
}
html[data-theme="light"] .btn-liquid:not(.glass)::before {
  background: radial-gradient(165px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.32), rgba(255, 94, 31, 0.16) 44%, transparent 74%);
}
.btn-liquid:hover::before,
.btn-liquid.is-lg-hover::before,
.theme-toggle:hover::before,
.theme-toggle.is-lg-hover::before,
.lang-switch:hover::before,
.lang-switch.is-lg-hover::before,
#mobile-menu-btn:hover::before,
#mobile-menu-btn.is-lg-hover::before,
#home a.glass:hover::before,
#home a.glass.is-lg-hover::before,
.filter-chip:hover::before,
.filter-chip.is-lg-hover::before {
  opacity: 1;
}
.btn-liquid:active::before,
.btn-liquid.is-lg-pressed::before,
.theme-toggle:active::before,
.theme-toggle.is-lg-pressed::before,
.lang-switch:active::before,
.lang-switch.is-lg-pressed::before,
#mobile-menu-btn:active::before,
#mobile-menu-btn.is-lg-pressed::before,
#home a.glass:active::before,
#home a.glass.is-lg-pressed::before,
.filter-chip:active::before,
.filter-chip.is-lg-pressed::before {
  opacity: 1;
  transform: scale(1.65);
}

/* ::after — Cursor-tracking Fresnel + warm Orange/Amber perimeter rim */
.btn-liquid::after,
.theme-toggle::after,
.lang-switch::after,
#mobile-menu-btn::after,
#home a.glass::after,
.filter-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(130px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 1) 0%, rgba(255, 146, 72, 0.78) 28%, rgba(255, 200, 77, 0.62) 50%, rgba(255, 94, 31, 0.46) 68%, rgba(255, 255, 255, 0.16) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.48;
  transition: opacity 220ms ease;
}
.btn-liquid:hover::after,
.btn-liquid.is-lg-hover::after,
.theme-toggle:hover::after,
.theme-toggle.is-lg-hover::after,
.lang-switch:hover::after,
.lang-switch.is-lg-hover::after,
#mobile-menu-btn:hover::after,
#mobile-menu-btn.is-lg-hover::after,
#home a.glass:hover::after,
#home a.glass.is-lg-hover::after,
.filter-chip:hover::after,
.filter-chip.is-lg-hover::after {
  opacity: 1;
}

/* Expanding Liquid Glass click ripple */
.lg-press-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 94, 31, 0.36) 45%, rgba(255, 255, 255, 0) 72%);
  border: 1px solid rgba(255, 177, 10, 0.65);
  animation: lg-ripple-burst 580ms var(--ease-out) forwards;
}
@keyframes lg-ripple-burst {
  0%   { opacity: 0.95; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}

/* Theme toggle micro-interaction */
.theme-toggle [data-theme-icon] {
  transition: transform 380ms var(--ease-out), opacity 200ms ease;
}
.theme-toggle.is-toggling [data-theme-icon] {
  transform: rotate(180deg) scale(0.82);
}

/* ============ Interactive Apple Liquid Glass Panels (.lg-panel & .lg-tile) ============ */
:where(.lg-panel) { position: relative; }
.lg-panel {
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(26px) saturate(185%) brightness(1.04);
  backdrop-filter: blur(26px) saturate(185%) brightness(1.04);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.105) 0%, rgba(255, 255, 255, 0.045) 54%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.42),
    inset 0 -1.5px 6px rgba(0, 0, 0, 0.36),
    0 24px 54px -26px rgba(0, 0, 0, 0.72);
  transform-style: preserve-3d;
  transform: perspective(900px) translate3d(var(--ptx, 0px), var(--pty, 0px), 0) rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg)) scaleX(var(--psx, 1)) scaleY(var(--psy, 1));
  transition: transform 560ms cubic-bezier(0.18, 1.55, 0.32, 1), box-shadow 300ms var(--ease-out), border-color 260ms ease, background 260ms ease;
  will-change: transform;
}
.js .reveal.is-visible.lg-panel {
  transform: perspective(900px) translate3d(var(--ptx, 0px), var(--pty, 0px), 0) rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg)) scaleX(var(--psx, 1)) scaleY(var(--psy, 1));
}
html[data-theme="light"] .lg-panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.84) 0%, rgba(251, 249, 247, 0.58) 54%, rgba(244, 239, 234, 0.42) 100%);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1.5px 1px #ffffff,
    inset 0 -2px 6px rgba(28, 25, 23, 0.06),
    0 20px 44px -22px rgba(28, 25, 23, 0.14),
    0 2px 8px -2px rgba(234, 76, 15, 0.06);
}
.lg-panel.is-lg-hover {
  transition: transform 90ms ease-out, box-shadow 260ms var(--ease-out), border-color 240ms ease, background 240ms ease;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.58),
    inset 0 -2px 8px rgba(0, 0, 0, 0.34),
    0 32px 64px -26px rgba(255, 94, 31, 0.24);
}
html[data-theme="light"] .lg-panel.is-lg-hover {
  box-shadow:
    inset 0 2px 1.5px #ffffff,
    inset 0 -2px 6px rgba(28, 25, 23, 0.06),
    0 26px 52px -22px rgba(234, 76, 15, 0.20),
    0 4px 12px -4px rgba(28, 25, 23, 0.10);
}
.lg-panel.is-lg-pressed,
.js .reveal.is-visible.lg-panel.is-lg-pressed {
  --psx: 1.018;
  --psy: 0.976;
  transition-duration: 95ms;
}
.lg-panel.lg-tile.is-lg-pressed,
.js .reveal.is-visible.lg-panel.lg-tile.is-lg-pressed {
  --psx: 1.05;
  --psy: 0.93;
  transition-duration: 95ms;
}
.lg-panel > * {
  position: relative;
  z-index: 2;
}
.lg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(320px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.22), rgba(255, 94, 31, 0.14) 44%, transparent 74%);
  opacity: 0;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
html[data-theme="light"] .lg-panel::before {
  background: radial-gradient(320px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.85), rgba(255, 146, 72, 0.22) 44%, transparent 74%);
}
.lg-panel.is-lg-hover::before,
.lg-panel:hover::before {
  opacity: 1;
}
.lg-panel.is-lg-pressed::before {
  opacity: 1;
  transform: scale(1.25);
}
.lg-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(240px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.96) 0%, rgba(255, 146, 72, 0.78) 28%, rgba(255, 200, 77, 0.58) 50%, rgba(255, 94, 31, 0.42) 68%, rgba(255, 255, 255, 0.14) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.40;
  transition: opacity 220ms ease;
}
.lg-panel.is-lg-hover::after,
.lg-panel:hover::after {
  opacity: 1;
}
.lg-panel .lg-press-ripple {
  z-index: 2;
}
.lg-panel .glass-icon,
#process .lg-panel .tabular-nums {
  transition: transform 320ms var(--ease-out), color 240ms ease, border-color 240ms ease, box-shadow 260ms ease;
}
.lg-panel:hover .glass-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 94, 31, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px -8px rgba(255, 94, 31, 0.34);
}
#process .lg-panel:hover .tabular-nums {
  color: rgb(var(--c-ice));
}

/* ============ Glass animated logo ============ */
:where(.glass-logo) { display: block; position: relative; }
.glass-logo svg { width: 100%; height: 100%; overflow: visible; display: block; }
.gl-rotor { transform-box: view-box; transform-origin: 50% 50%; animation: gl-spin var(--spin, 30s) linear infinite; }
.glass-logo.is-paused .gl-rotor { animation-play-state: paused; }
.glass-logo .blade {
  transform-box: view-box; transform-origin: 50% 50%;
  animation: blade-in 1.4s var(--ease-out) calc(var(--i) * 80ms + var(--intro-delay, 0s)) both;
}
.glass-logo .gl-body .blade {
  animation: blade-in 1.4s var(--ease-out) calc(var(--i) * 80ms + var(--intro-delay, 0s)) both,
             blade-pulse 4.8s ease-in-out calc(var(--i) * 0.6s + 1.5s) infinite;
}
@keyframes gl-spin { to { transform: rotate(360deg); } }
@keyframes blade-in {
  0%   { opacity: 0; transform: rotate(-75deg) scale(.25); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes blade-pulse {
  0%, 100% { fill-opacity: 1; }
  50%      { fill-opacity: .45; }
}

.logo-float { animation: orb-float 8s ease-in-out infinite; }
@keyframes orb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

:where(.logo-orb) { position: relative; }
.logo-orb {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at var(--hx, 30%) var(--hy, 22%), rgba(255,255,255,.42), rgba(255,255,255,.08) 32%, rgba(255,255,255,.015) 60%),
    radial-gradient(circle at 72% 82%, rgba(255,94,31,.24), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,177,10,.20), transparent 45%);
  -webkit-backdrop-filter: blur(18px) saturate(195%);
  backdrop-filter: blur(18px) saturate(195%);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.6),
    inset 0 -24px 50px rgba(255,94,31,.16),
    inset 0 24px 60px rgba(255,255,255,.08),
    0 50px 90px -30px rgba(0,0,0,.8),
    0 0 90px rgba(255,94,31,.18);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--orb-scale, 1));
  transition: transform 550ms var(--ease-out), box-shadow 450ms var(--ease-out), border-color 400ms ease;
}
.logo-orb:hover {
  border-color: rgba(255,255,255,.48);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.75),
    inset 0 -26px 55px rgba(255,94,31,.24),
    inset 0 24px 60px rgba(255,177,10,.14),
    0 55px 100px -25px rgba(0,0,0,.85),
    0 0 110px rgba(255,94,31,.32),
    0 0 60px rgba(255,177,10,.22);
}
html[data-theme="light"] .logo-orb {
  background:
    radial-gradient(circle at var(--hx, 30%) var(--hy, 22%), rgba(255,255,255,.94), rgba(255,255,255,.66) 36%, rgba(255,237,213,.44) 68%),
    radial-gradient(circle at 72% 82%, rgba(234,76,15,.22), transparent 52%),
    radial-gradient(circle at 20% 80%, rgba(217,119,6,.18), transparent 48%);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.98),
    inset 0 -22px 46px rgba(234,76,15,.14),
    inset 0 22px 54px rgba(255,255,255,.55),
    0 34px 70px -26px rgba(15,23,42,.22),
    0 0 80px rgba(234,76,15,.20);
}
html[data-theme="light"] .logo-orb:hover {
  border-color: #ffffff;
  box-shadow:
    inset 0 2px 3px #ffffff,
    inset 0 -24px 50px rgba(234,76,15,.22),
    inset 0 24px 58px rgba(217,119,6,.12),
    0 42px 84px -24px rgba(15,23,42,.26),
    0 0 96px rgba(234,76,15,.26),
    0 0 54px rgba(217,119,6,.18);
}

.logo-orb.is-pulsing { --orb-scale: 1.06; }
.logo-orb::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255,255,255,.92) 18%, transparent 30%, transparent 55%, rgba(255,94,31,.85) 65%, transparent 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gl-spin 7s linear infinite;
}
html[data-theme="light"] .logo-orb::before {
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255,255,255,.98) 18%, transparent 30%, transparent 55%, rgba(234,76,15,.78) 65%, transparent 78%);
}
.logo-orb:hover::before { animation-duration: 3.4s; }
.logo-orb::after {
  content: ""; position: absolute; top: 7%; left: 16%; width: 42%; height: 22%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0));
  filter: blur(4px); transform: rotate(-24deg);
  translate: var(--lx, 0px) var(--ly, 0px);
  transition: translate 500ms var(--ease-out);
}
html[data-theme="light"] .logo-orb::after {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0));
}

.orb-caustic {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(140px circle at var(--orb-x, 35%) var(--orb-y, 30%), rgba(255,255,255,.32), rgba(255,94,31,.14) 45%, transparent 75%);
  opacity: .7; transition: opacity 300ms ease;
}
html[data-theme="light"] .orb-caustic {
  mix-blend-mode: normal;
  background: radial-gradient(140px circle at var(--orb-x, 35%) var(--orb-y, 30%), rgba(255,255,255,.65), rgba(234,76,15,.16) 45%, transparent 75%);
}
.logo-orb:hover .orb-caustic { opacity: 1; }

.orb-inner-ring {
  position: absolute; inset: 9%; border-radius: 50%; padding: 1px; pointer-events: none;
  background: conic-gradient(from 90deg, rgba(255,255,255,.55), transparent 28%, rgba(255,177,10,.5) 55%, transparent 80%, rgba(255,94,31,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gl-spin 24s linear infinite reverse;
}
html[data-theme="light"] .orb-inner-ring {
  background: conic-gradient(from 90deg, rgba(234,76,15,.45), transparent 28%, rgba(217,119,6,.42) 55%, transparent 80%, rgba(15,23,42,.28));
}

.orb-ripple {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255,94,31,.75);
  box-shadow: 0 0 24px rgba(255,94,31,.45);
  opacity: 0; transform: scale(1);
}
html[data-theme="light"] .orb-ripple {
  border-color: rgba(234,76,15,.75);
  box-shadow: 0 0 24px rgba(234,76,15,.38);
}
.logo-orb.is-pulsing .orb-ripple { animation: orb-shockwave 600ms var(--ease-out) forwards; }
@keyframes orb-shockwave {
  0%   { opacity: .95; transform: scale(.96); }
  100% { opacity: 0; transform: scale(1.42); }
}

.logo-orb .glass-logo {
  position: absolute; inset: 17%;
  transform: translateZ(18px);
  filter: drop-shadow(0 0 12px rgba(255,94,31,.28));
}
html[data-theme="light"] .logo-orb .glass-logo {
  filter: drop-shadow(0 6px 14px rgba(15,23,42,.18)) drop-shadow(0 0 10px rgba(234,76,15,.22));
}

.orb-ring {
  position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14);
  animation: gl-spin 60s linear infinite reverse; pointer-events: none;
}
html[data-theme="light"] .orb-ring { border-color: rgba(15,23,42,.16); }
.orb-ring::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 4px rgba(255,94,31,.8);
}
html[data-theme="light"] .orb-ring::before {
  background: #EA4C0F; box-shadow: 0 0 14px 4px rgba(234,76,15,.55);
}

/* ============ Borderless 3D Sculpted Emblem ============ */
.logo-orb.is-3d-emblem,
html[data-theme="light"] .logo-orb.is-3d-emblem {
  aspect-ratio: 1;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 16deg)) rotateY(var(--ry, -14deg)) scale3d(var(--orb-scale, 1), var(--orb-scale, 1), var(--orb-scale, 1));
}
.logo-orb.is-3d-emblem:hover,
html[data-theme="light"] .logo-orb.is-3d-emblem:hover {
  border-color: transparent;
  box-shadow: none;
  --orb-scale: 1.04;
}
.logo-orb.is-3d-emblem.is-pulsing { --orb-scale: 1.1; }
.logo-orb.is-3d-emblem::before,
.logo-orb.is-3d-emblem::after {
  display: none;
  content: none;
}
.logo-orb.is-3d-emblem .glass-logo,
html[data-theme="light"] .logo-orb.is-3d-emblem .glass-logo {
  position: absolute;
  inset: 0;
  transform: none;
  filter: none;
  transform-style: preserve-3d;
}

.gl3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: gl3d-sway 10s ease-in-out infinite;
}
#hero-stage.is-tracking .gl3d-scene { animation-play-state: paused; }
.gl3d-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: gl3d-spin var(--spin, 30s) linear infinite;
}
.glass-logo.is-paused .gl3d-scene,
.glass-logo.is-paused .gl3d-rotor,
.glass-logo.is-paused .gl3d-layer .blade,
.glass-logo.is-paused .gl3d-glow-plane { animation-play-state: paused; }
.gl3d-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(var(--z, 0px));
  pointer-events: none;
  overflow: visible;
}
.logo-orb.is-3d-emblem .gl3d-glow-plane {
  animation: gl3d-glow-breathe 6s ease-in-out infinite alternate;
}
.logo-orb.is-3d-emblem.is-pulsing .gl3d-glow-plane g {
  opacity: 0.95;
  transition: opacity 250ms ease;
}

/* Formly-inspired cascaded diagonal sweep entrance + continuous liquid glass wave */
html.js:not(.hero-ready) .logo-orb.is-3d-emblem .gl3d-layer .blade {
  opacity: 0;
  transform: translate(340px, 160px) rotate(-72deg) scale(0.38);
}
html.hero-ready .logo-orb.is-3d-emblem .gl3d-layer .blade {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation:
    petal-sweep-in 1250ms var(--ease-out) calc(var(--i) * 115ms + 80ms) both,
    petal-glass-wave 5.2s ease-in-out calc(var(--i) * 0.42s + 1.5s) infinite;
}
html.hero-ready .logo-orb.is-3d-emblem .gl3d-face .gl-body .blade {
  animation:
    petal-sweep-in 1250ms var(--ease-out) calc(var(--i) * 115ms + 80ms) both,
    petal-glass-wave 5.2s ease-in-out calc(var(--i) * 0.42s + 1.5s) infinite,
    petal-glass-shimmer 4.6s ease-in-out calc(var(--i) * 0.55s + 1.6s) infinite;
}
@keyframes petal-sweep-in {
  0%   { opacity: 0; transform: translate(420px, 180px) rotate(-65deg) scale(0.45); }
  65%  { opacity: 1; transform: translate(-10px, -6px) rotate(4deg) scale(1.04); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes petal-glass-wave {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.055) rotate(3.8deg); }
}
@keyframes petal-glass-shimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.86; }
}
@keyframes gl3d-glow-breathe {
  from { opacity: 0.78; }
  to   { opacity: 1; }
}
@keyframes gl3d-spin {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}
@keyframes gl3d-sway {
  0%   { transform: rotateX(-6deg) rotateY(5deg); }
  25%  { transform: rotateX(4deg) rotateY(7deg); }
  50%  { transform: rotateX(7deg) rotateY(-5deg); }
  75%  { transform: rotateX(-3deg) rotateY(-7deg); }
  100% { transform: rotateX(-6deg) rotateY(5deg); }
}

.glass-art > .ga-emblem-3d {
  width: 64cqmin;
  height: 64cqmin;
  left: calc(50% - 32cqmin);
  top: calc(50% - 32cqmin);
  border-radius: 0;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(14deg) rotateY(-12deg);
  translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 22px);
  animation: orb-float 8s ease-in-out infinite;
  transition: translate 600ms var(--ease-out);
}
.ga-emblem-3d .glass-logo {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* ============ Full-Page Hero Liquid Glass Stage ============ */
.hero-fullbleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.06) 0%, rgba(25, 24, 23, 0.36) 55%, rgba(21, 20, 20, 0.92) 100%);
}
html[data-theme="light"] .hero-fullbleed {
  background: linear-gradient(125deg, #fbf9f7 0%, #efe9e2 54%, #bdb4aa 100%);
}
.hero-fullbleed-canvas {
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(460px, 120vw, 680px);
  height: clamp(460px, 120vw, 680px);
  transform: translate(-50%, -50%);
}
@media (min-width: 768px) {
  .hero-fullbleed-canvas {
    top: 50%;
    left: auto;
    inset-inline-end: -10vw;
    width: clamp(640px, 76vw, 1180px);
    height: clamp(640px, 76vw, 1180px);
    transform: translateY(-50%);
  }
}
.logo-orb.is-3d-emblem.is-fullbleed {
  width: 100%;
  height: 100%;
  cursor: default;
}
.hero-readability-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 20, 20, 0.86) 0%, rgba(21, 20, 20, 0.48) 42%, rgba(21, 20, 20, 0.02) 100%);
}
[dir="rtl"] .hero-readability-scrim {
  background: linear-gradient(270deg, rgba(21, 20, 20, 0.86) 0%, rgba(21, 20, 20, 0.48) 42%, rgba(21, 20, 20, 0.02) 100%);
}
html[data-theme="light"] .hero-readability-scrim {
  background: linear-gradient(90deg, rgba(251, 249, 247, 0.88) 0%, rgba(251, 249, 247, 0.48) 42%, rgba(251, 249, 247, 0.02) 100%);
}
html[data-theme="light"][dir="rtl"] .hero-readability-scrim {
  background: linear-gradient(270deg, rgba(251, 249, 247, 0.88) 0%, rgba(251, 249, 247, 0.48) 42%, rgba(251, 249, 247, 0.02) 100%);
}

:where(.hero-tilt) { position: relative; }
.hero-tilt {
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--hrx, 0deg)) rotateY(var(--hry, 0deg));
  transition: transform 900ms var(--ease-out);
}
#hero-stage.is-tracking .hero-tilt { transition-duration: 220ms; }
.hero-backdrop {
  background: radial-gradient(circle at 60% 42%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 55%, transparent 100%);
}
html[data-theme="light"] .hero-backdrop {
  background: radial-gradient(circle at 60% 42%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 55%, transparent 100%);
}
.hero-halo {
  position: absolute; width: 70%; aspect-ratio: 1; inset-inline-end: -6%; top: 8%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.16), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.08), transparent 60%);
  filter: blur(42px);
  translate: var(--bx, 0px) var(--by, 0px);
  transition: translate 900ms var(--ease-out);
}
html[data-theme="light"] .hero-halo {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.78), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(226,232,240,.42), transparent 60%);
}
.hero-ring {
  position: absolute; width: var(--w); aspect-ratio: 1;
  left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) / 2);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.16);
  box-shadow: 0 0 22px rgba(255,94,31,.10), inset 0 0 22px rgba(255,255,255,.06);
  transform: scaleY(var(--s));
  rotate: var(--a);
  translate: var(--bx, 0px) var(--by, 0px);
  animation: hero-ring-spin var(--dur) linear infinite;
  transition: translate 900ms var(--ease-out);
}
html[data-theme="light"] .hero-ring {
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 0 18px rgba(234,76,15,.10), inset 0 0 18px rgba(255,255,255,.45);
}
.hero-ring.r1 { --w: 92%;  --s: .42; --a: 18deg;  --dur: 40s; }
.hero-ring.r2 { --w: 106%; --s: .55; --a: -32deg; --dur: 56s; animation-direction: reverse; border-color: rgba(255,255,255,.10); }
.hero-ring.r3 { --w: 76%;  --s: .34; --a: 72deg;  --dur: 70s; border-color: rgba(255,94,31,.24); }
html[data-theme="light"] .hero-ring.r2 { border-color: rgba(15,23,42,.08); }
html[data-theme="light"] .hero-ring.r3 { border-color: rgba(234,76,15,.26); }

@keyframes hero-ring-spin { from { rotate: var(--a); } to { rotate: calc(var(--a) + 360deg); } }
.hero-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.16), transparent 60%);
  opacity: 0; transition: opacity 400ms ease;
}
html[data-theme="light"] .hero-glare {
  mix-blend-mode: normal;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.55), transparent 60%);
}
#hero-stage.is-tracking .hero-glare { opacity: 1; }
.hero-orb-shift { translate: var(--ox, 0px) var(--oy, 0px) 50px; transition: translate 700ms var(--ease-out); }
.hero-chip { translate: var(--cx2, 0px) var(--cy2, 0px) 80px; transition: translate 700ms var(--ease-out); }
#hero-stage.is-tracking .hero-orb-shift,
#hero-stage.is-tracking .hero-chip,
#hero-stage.is-tracking .hero-halo,
#hero-stage.is-tracking .hero-ring { transition-duration: 200ms; }

/* ============ Glass graphics (replace photos) ============ */
.glass-art {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  background: radial-gradient(circle at 50% 55%, #2a2927 0%, #191817 48%, #151414 88%);
}
html[data-theme="light"] .glass-art {
  background: radial-gradient(circle at 50% 55%, #ffffff 0%, #fbf9f7 50%, #ede6de 92%);
}
.glass-art > * { position: absolute; left: calc(50% - var(--d) / 2); top: calc(50% - var(--d) / 2); width: var(--d); height: var(--d); border-radius: 50%; }
.ga-halo {
  --d: 115cqmin;
  background: radial-gradient(circle at 34% 34%, var(--c1), transparent 55%), radial-gradient(circle at 68% 70%, var(--c2), transparent 55%);
  filter: blur(26px);
  translate: calc(var(--px, 0) * -30px) calc(var(--py, 0) * -30px);
  transition: translate 700ms var(--ease-out);
}
.ga-ring {
  border: 1.5px solid rgba(255,255,255,.15);
  box-shadow: 0 0 20px rgba(255,94,31,.08), inset 0 0 20px rgba(255,255,255,.05);
  transform: scaleY(var(--s)); rotate: var(--a);
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -14px);
  animation: hero-ring-spin var(--dur) linear infinite;
  transition: translate 700ms var(--ease-out);
}
html[data-theme="light"] .ga-ring {
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 0 18px rgba(234,76,15,.10), inset 0 0 18px rgba(255,255,255,.45);
}
.ga-ring.r1 { --d: 118cqmin; --s: .40; --a: 20deg;  --dur: 44s; }
.ga-ring.r2 { --d: 150cqmin; --s: .52; --a: -30deg; --dur: 60s; animation-direction: reverse; border-color: rgba(255,255,255,.09); }
.ga-ring.r3 { --d: 88cqmin;  --s: .34; --a: 72deg;  --dur: 72s; border-color: rgba(255,94,31,.24); }
html[data-theme="light"] .ga-ring.r2 { border-color: rgba(15,23,42,.08); }
html[data-theme="light"] .ga-ring.r3 { border-color: rgba(234,76,15,.26); }

.ga-orb {
  --d: 50cqmin;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at calc(30% + var(--px, 0) * 50%) calc(22% + var(--py, 0) * 50%), rgba(255,255,255,.40), rgba(255,255,255,.07) 34%, rgba(255,255,255,.015) 62%),
    radial-gradient(circle at 72% 82%, rgba(255,94,31,.20), transparent 50%);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -18px 40px rgba(255,94,31,.14), 0 30px 60px -24px rgba(0,0,0,.85);
  translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 22px);
  animation: orb-float 8s ease-in-out infinite;
  transition: translate 600ms var(--ease-out);
}
html[data-theme="light"] .ga-orb {
  background:
    radial-gradient(circle at calc(30% + var(--px, 0) * 50%) calc(22% + var(--py, 0) * 50%), rgba(255,255,255,.96), rgba(255,255,255,.68) 38%, rgba(255,237,213,.48) 68%),
    radial-gradient(circle at 72% 82%, rgba(234,76,15,.18), transparent 50%);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: inset 0 2px 2px #ffffff, inset 0 -14px 30px rgba(234,76,15,.12), 0 22px 44px -18px rgba(15,23,42,.20);
}

.ga-icon {
  font-size: 22cqmin; width: auto; height: auto;
  font-variation-settings: 'FILL' 0, 'wght' 300;
  background: linear-gradient(160deg, #ffffff 0%, #fed7aa 50%, #a9b2c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(255,94,31,.35));
  translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 10px);
  transition: translate 600ms var(--ease-out);
}
html[data-theme="light"] .ga-icon {
  background: linear-gradient(160deg, #0F172A 0%, #EA4C0F 55%, #D97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(15,23,42,.18)) drop-shadow(0 0 10px rgba(234,76,15,.18));
}

.card-art-fade {
  background: linear-gradient(to top, #151414, rgba(21,20,20,.22) 45%, transparent);
}
html[data-theme="light"] .card-art-fade {
  background: linear-gradient(to top, rgba(251,249,247,.94), rgba(251,249,247,.18) 45%, transparent);
}

/* nav logo mark (borderless — no circle) */
:where(.nav-medallion) { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-medallion {
  width: 34px; height: 34px; flex-shrink: 0;
  transition: transform 500ms var(--ease-out), filter 300ms ease;
  filter: drop-shadow(0 0 10px rgba(255,94,31,.28));
}
html[data-theme="light"] .nav-medallion {
  filter: drop-shadow(0 2px 6px rgba(234,76,15,.22));
}
.nav-medallion .glass-logo { position: absolute; inset: 0; }
a:hover > .nav-medallion { transform: rotate(-20deg) scale(1.08); }

/* ============ Loader ============ */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(var(--c-soft-black));
  transition: opacity 700ms var(--ease-out), visibility 700ms;
}
#loader.done { opacity: 0; visibility: hidden; }
html:not(.js) #loader { display: none; }
.loader-bar { width: 140px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: loader-slide 1.1s ease-in-out infinite; }
html[data-theme="light"] .loader-bar { background: rgba(15,23,42,.10); }
html[data-theme="light"] .loader-bar span { background: linear-gradient(90deg, transparent, #EA4C0F, #0F172A, transparent); }
@keyframes loader-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

/* ============ Marquee ============ */
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
html[data-theme="light"] .marquee img { filter: invert(1); opacity: 0.42; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Progress / nav ============ */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgb(var(--c-ice)), rgb(var(--c-pure-white)), rgb(var(--c-lilac)));
}
:where(.nav-links-track) { position: relative; }
.nav-links-track { isolation: isolate; gap: 4px; }
:where(.nav-link) { position: relative; }
.nav-link {
  z-index: 1;
  padding: 7px 14px;
  border-radius: 9999px;
  transition: color 220ms ease;
}
.nav-link.is-active { color: rgb(var(--c-pure-white)); }

/* Apple WWDC 2025 sliding Liquid Glass nav capsule (replaces blue dot) */
.nav-glass-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--pill-w, 0px);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  transform: translate3d(var(--pill-x, 0px), 0, 0) scaleX(var(--pill-sx, 1)) scaleY(var(--pill-sy, 1));
  transition:
    transform 560ms cubic-bezier(0.18, 1.55, 0.32, 1),
    width 480ms cubic-bezier(0.22, 1.28, 0.36, 1),
    opacity 220ms ease,
    box-shadow 260ms ease;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.58), inset 0 -1.5px 4px rgba(0, 0, 0, 0.38), 0 8px 22px -8px rgba(0, 0, 0, 0.75);
}
html[data-theme="light"] .nav-glass-pill {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 238, 246, 0.62) 52%, rgba(208, 218, 230, 0.38) 100%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1.5px 1px #ffffff, inset 0 -1.5px 4px rgba(15, 23, 42, 0.08), 0 8px 20px -8px rgba(15, 23, 42, 0.20), 0 1px 4px rgba(15, 23, 42, 0.08);
}
.nav-glass-pill.is-ready { opacity: 1; }
.nav-glass-pill.is-instant { transition: none !important; }
.nav-glass-pill.is-gliding { --pill-sx: 1.12; --pill-sy: 1.09; }
.nav-glass-pill.is-pressed { --pill-sx: 1.12; --pill-sy: 0.86; transition-duration: 100ms; }
.nav-glass-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(125px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.80), rgba(255, 146, 72, 0.28) 44%, transparent 74%);
  opacity: 0.36;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
.nav-glass-pill.is-gliding::before,
.nav-links-track:hover .nav-glass-pill::before { opacity: 0.95; }
.nav-glass-pill.is-pressed::before { opacity: 1; transform: scale(1.55); }
.nav-glass-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;
  pointer-events: none;
  background: radial-gradient(120px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 1) 0%, rgba(255, 146, 72, 0.78) 28%, rgba(255, 200, 77, 0.62) 50%, rgba(255, 94, 31, 0.46) 68%, rgba(255, 255, 255, 0.16) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
  transition: opacity 220ms ease;
}
.nav-links-track:hover .nav-glass-pill::after { opacity: 1; }

#site-header nav,
#site-header.is-scrolled nav {
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 34px -20px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] #site-header nav,
html[data-theme="light"] #site-header.is-scrolled nav {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 30px -18px rgba(15, 23, 42, 0.10);
}

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(5px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out), filter 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

.img-zoom { transition: transform 1200ms var(--ease-out); }
.group:hover .img-zoom { transform: scale(1.07); }

/* modal */
#project-modal .modal-panel { transform: translateY(20px) scale(.97); opacity: 0; transition: all 450ms var(--ease-out); }
#project-modal.is-open .modal-panel { transform: none; opacity: 1; }

/* ============ Interactive Split Process Stage (#process) ============ */
.proc-rail {
  position: relative;
  padding-inline-start: 22px;
}
.proc-track {
  position: absolute;
  top: 14px;
  bottom: 14px;
  inset-inline-start: 4px;
  width: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
html[data-theme="light"] .proc-track {
  background: rgba(28, 25, 23, 0.10);
}
.proc-track-fill {
  display: block;
  width: 100%;
  height: 20%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgb(var(--c-ice)), rgb(var(--c-lilac)));
  box-shadow: 0 0 12px rgba(255, 94, 31, 0.55);
  transition: height 480ms var(--ease-out);
}
.proc-step-btn {
  width: 100%;
  text-align: start;
  border-radius: 22px;
  padding: 15px 18px;
  cursor: pointer;
  opacity: 0.78;
}
.proc-step-btn:hover,
.proc-step-btn.is-active {
  opacity: 1;
}
.proc-step-btn.is-active {
  border-color: rgba(255, 94, 31, 0.42);
}
html[data-theme="light"] .proc-step-btn.is-active {
  border-color: rgba(234, 76, 15, 0.34);
}
.proc-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.proc-step-num {
  color: rgba(var(--c-pure-white) / 0.28);
  transition: color 240ms ease;
}
.proc-step-btn.is-active .proc-step-num {
  color: rgb(var(--c-ice));
}
.proc-step-btn.is-active .glass-icon {
  border-color: rgba(255, 94, 31, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px -8px rgba(255, 94, 31, 0.36);
}
.proc-step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-out);
}
.proc-step-body > div {
  overflow: hidden;
}
.proc-step-body p {
  padding-top: 10px;
}
.proc-step-btn.is-active .proc-step-body {
  grid-template-rows: 1fr;
}

.proc-stage {
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}
.proc-stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
html[data-theme="light"] .proc-stage-bar {
  border-bottom-color: rgba(28, 25, 23, 0.08);
}
.proc-bar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proc-bar-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(var(--c-pure-white) / 0.18);
}
.proc-path {
  color: rgb(var(--c-silver));
  font-size: 11px;
  margin-inline-start: 4px;
}
.proc-live-dot {
  margin-inline-start: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--c-ice));
  box-shadow: 0 0 10px 2px rgba(255, 94, 31, 0.72);
}
.proc-stage-canvas {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  background-image: radial-gradient(rgba(var(--c-pure-white) / 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}
@media (min-width: 1024px) {
  .proc-stage-canvas {
    min-height: 400px;
    padding: 32px;
  }
}
.proc-scene {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 380ms var(--ease-out), transform 440ms var(--ease-out);
}
.proc-scene.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Scene 1: Discovery Constellation */
.proc-s1-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.proc-s1-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgb(var(--c-pure-white));
  pointer-events: none;
}
.proc-dash-flow {
  animation: proc-dash 16s linear infinite;
}
@keyframes proc-dash { to { stroke-dashoffset: -160; } }
.proc-s1-nodes {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.proc-s1-bottom {
  position: relative;
  z-index: 1;
}
.proc-s1-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 16px;
}
.proc-s1-hub {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 22px;
  border-color: rgba(255, 94, 31, 0.36);
}
.proc-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 94, 31, 0.36);
  opacity: 0;
  pointer-events: none;
  animation: proc-ring-out 3.2s var(--ease-out) infinite;
}
.proc-pulse-ring.r2 { animation-delay: 1.6s; }
@keyframes proc-ring-out {
  0%   { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.38); }
}

/* Scene 2: Architecture Stack */
.proc-s2-stack {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.proc-tier {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 420ms var(--ease-out) var(--td, 0ms), opacity 340ms ease var(--td, 0ms);
}
.proc-scene.is-active .proc-tier {
  transform: none;
  opacity: 1;
}
.proc-bus {
  width: 2px;
  height: 22px;
  background: rgba(var(--c-pure-white) / 0.14);
  overflow: hidden;
  position: relative;
}
.proc-bus span {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 55%;
  background: rgb(var(--c-ice));
  animation: proc-bus-drop 1.8s ease-in-out infinite;
}
@keyframes proc-bus-drop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* Scene 3: Code & UI Split */
.proc-s3-split {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .proc-s3-split { grid-template-columns: 1fr 1fr; }
}
.proc-code-win,
.proc-ui-preview {
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proc-code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 11px/16px ui-monospace, monospace;
  color: rgb(var(--c-silver));
}
.proc-code-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.proc-code-lines span {
  height: 8px;
  border-radius: 9999px;
  background: rgba(var(--c-pure-white) / 0.14);
}
.proc-code-lines .l1 { width: 78%; background: rgba(255, 94, 31, 0.55); }
.proc-code-lines .l2 { width: 58%; }
.proc-code-lines .l3 { width: 88%; background: rgba(255, 177, 10, 0.45); }
.proc-code-lines .l4 { width: 64%; }
.proc-code-lines .l5 { width: 42%; background: rgba(255, 94, 31, 0.40); }
.proc-ui-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(var(--c-pure-white) / 0.05);
  border: 1px solid rgba(var(--c-pure-white) / 0.10);
}
.proc-ui-card .u-bar {
  height: 9px;
  border-radius: 9999px;
  background: rgba(var(--c-pure-white) / 0.16);
}
.proc-ui-card .u-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}
.proc-ui-card .u-pill {
  width: 48px;
  height: 16px;
  border-radius: 9999px;
  background: rgba(var(--c-pure-white) / 0.14);
}
.proc-ui-card .u-cta {
  width: 56px;
  height: 20px;
  border-radius: 9999px;
  background: rgb(var(--c-ice));
  box-shadow: 0 4px 12px rgba(255, 94, 31, 0.35);
}

/* Scene 4: Performance & QA Score */
.proc-s4-grid {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 640px) {
  .proc-s4-grid { flex-direction: row; justify-content: space-between; }
}
.proc-gauge {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.proc-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.proc-gauge-bg {
  fill: none;
  stroke: rgba(var(--c-pure-white) / 0.10);
  stroke-width: 7;
}
.proc-gauge-ring {
  fill: none;
  stroke: rgb(var(--c-ice));
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 900ms var(--ease-out) 120ms;
  filter: drop-shadow(0 0 10px rgba(255, 94, 31, 0.45));
}
.proc-scene.is-active .proc-gauge-ring { stroke-dashoffset: 0; }
.proc-gauge-val {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.proc-qa-list {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proc-qa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 15px;
}

/* Scene 5: Launch & Growth Curve */
.proc-s5-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proc-s5-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
}
.proc-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--c-ice));
  box-shadow: 0 0 0 4px rgba(255, 94, 31, 0.25);
}
.proc-s5-chart { width: 100%; height: auto; overflow: visible; }
.proc-curve {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  transition: stroke-dashoffset 950ms var(--ease-out) 120ms;
}
.proc-scene.is-active .proc-curve { stroke-dashoffset: 0; }
.proc-curve-dot {
  opacity: 0;
  transition: opacity 300ms ease 820ms;
  filter: drop-shadow(0 0 10px rgba(255, 94, 31, 0.8));
}
.proc-scene.is-active .proc-curve-dot { opacity: 1; }
.proc-s5-foot { display: flex; justify-content: flex-start; }

/* Stage Footer: Chips & Progress Dots */
.proc-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
html[data-theme="light"] .proc-stage-foot {
  border-top-color: rgba(28, 25, 23, 0.08);
}
.proc-tags {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}
.proc-tags.is-active {
  display: flex;
}
.proc-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.proc-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(var(--c-pure-white) / 0.22);
  transition: width 280ms var(--ease-out), background-color 220ms ease;
}
.proc-dot.is-active {
  width: 24px;
  background: rgb(var(--c-ice));
}

@media (prefers-reduced-motion: reduce) {
  .proc-scene, .proc-tier, .proc-gauge-ring, .proc-curve { transition: none !important; }
  .proc-pulse-ring, .proc-dash-flow, .proc-bus span { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .gl3d-scene, .gl3d-rotor, .gl3d-glow-plane, .logo-orb.is-3d-emblem .gl3d-layer .blade { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn-liquid, .theme-toggle, .lang-switch, #mobile-menu-btn, #home a.glass, .filter-chip, .lg-panel { transform: none !important; }
  .nav-glass-pill.is-gliding, .nav-glass-pill.is-pressed { --pill-sx: 1; --pill-sy: 1; }
  .lg-press-ripple { display: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .cursor-light { display: none; }
}

/* ============ Arabic / RTL (any page with <html lang="ar" dir="rtl">) ============ */
html[lang="ar"] body,
html[lang="ar"] .font-display, html[lang="ar"] .font-headline,
html[lang="ar"] .font-body, html[lang="ar"] .font-label {
  font-family: "IBM Plex Sans Arabic", "Manrope", "Inter", sans-serif;
}
html[lang="ar"] * { letter-spacing: 0 !important; }
.brand-wordmark,
html[lang="ar"] .brand-wordmark {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em !important;
  display: inline-block;
}
.brand-wordmark--nav {
  font-size: 1.15rem;
}
.brand-wordmark--footer {
  font-size: 0.92rem;
}
.nav-brand-logo {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
}
.footer-brand-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
}
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.3; }
html[lang="ar"] h1 { padding-block: .1em; }
[dir="rtl"] .flip-rtl { scale: -1 1; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] #scroll-progress { transform-origin: 100% 50%; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ============ Projects: filters, cards ============ */
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 600; color: #A6B1C4;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.filter-chip:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255,94,31,.48); }
.filter-chip.is-active {
  color: #0A0C12; background: #F4F7FB; border-color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255,255,255,.45);
}
.filter-count {
  min-width: 22px; padding: 0 6px; border-radius: 9999px; font-size: 11px; line-height: 20px; text-align: center;
  background: rgba(255,255,255,.10);
}
.filter-chip.is-active .filter-count { background: rgba(10,12,18,.12); }

html[data-theme="light"] .filter-chip {
  color: #334155; background: rgba(255,255,255,.78); border-color: rgba(15,23,42,.12);
}
html[data-theme="light"] .filter-chip:hover {
  color: #0F172A; border-color: rgba(234,76,15,.45);
}
html[data-theme="light"] .filter-chip.is-active {
  color: #FFFFFF; background: #0F172A; border-color: #0F172A;
  box-shadow: 0 10px 28px -10px rgba(15,23,42,.35);
}
html[data-theme="light"] .filter-count { background: rgba(15,23,42,.08); }
html[data-theme="light"] .filter-chip.is-active .filter-count { background: rgba(255,255,255,.18); }

.project-card.filter-in { animation: filter-in 520ms var(--ease-out) both; }
@keyframes filter-in { from { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* service lists */
.svc-list li { display: flex; gap: 10px; align-items: flex-start; }
.svc-list li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%;
  background: rgb(var(--c-ice)); box-shadow: 0 0 10px 2px rgba(255,94,31,.6);
}
html[data-theme="light"] .svc-list li::before {
  box-shadow: 0 0 8px 1px rgba(234,76,15,.38);
}

/* ---------- Project screenshots: browser / phone frames ---------- */
.browser-frame {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #0d0e11;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04) inset;
}
html[data-theme="light"] .browser-frame {
  background: #ffffff;
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 24px 60px -22px rgba(15,23,42,.20), 0 0 0 1px rgba(255,255,255,.8) inset;
}
.bf-bar {
  display: flex; align-items: center; gap: 6px; flex: none;
  height: 30px; padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
html[data-theme="light"] .bf-bar {
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.94));
  border-bottom-color: rgba(15,23,42,.08);
}
.bf-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
html[data-theme="light"] .bf-bar > i { background: rgba(15,23,42,.18); }
.bf-url {
  flex: 1; max-width: 60%; margin-inline: auto; height: 18px; border-radius: 9px;
  background: rgba(255,255,255,.07); color: rgba(220,226,236,.75);
  font: 500 10.5px/18px Inter, system-ui, sans-serif; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
html[data-theme="light"] .bf-url {
  background: rgba(15,23,42,.06); color: #475569;
}
.bf-screen { position: relative; flex: 1; overflow: hidden; }
.bf-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-stage .browser-frame {
  position: absolute; inset-inline: 8%; top: 13%; bottom: -8%;
  transition: transform 900ms var(--ease-out);
}
.group:hover .shot-stage .browser-frame { transform: translateY(-10px) scale(1.015); }
.phone-frame {
  width: 100%; max-width: 250px; margin-inline: auto; padding: 8px;
  border-radius: 38px; background: #0d0e11;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
}
html[data-theme="light"] .phone-frame {
  background: #1e293b; border-color: rgba(15,23,42,.18);
  box-shadow: 0 24px 56px -20px rgba(15,23,42,.26);
}
.phone-frame > img { display: block; width: 100%; height: auto; border-radius: 30px; }
.doc-frame { max-width: 300px; margin-inline: auto; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); }
html[data-theme="light"] .doc-frame { box-shadow: 0 24px 56px -20px rgba(15,23,42,.22); }
.doc-frame > img { display: block; width: 100%; height: auto; }
.logo-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
html[data-theme="light"] .logo-tile { background: linear-gradient(135deg, #0F172A, #1E293B); border-color: rgba(15,23,42,.18); }
.logo-tile.is-light { background: #F4F5F7; }
html[data-theme="light"] .logo-tile.is-light { background: #FFFFFF; border-color: rgba(15,23,42,.10); }

/* ============ Service Landing Pages & Internal Linking ============ */
.svc-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; font-weight: 600;
  color: rgb(var(--c-ice));
  transition: color 200ms ease, gap 240ms var(--ease-out);
}
.svc-cta-link:hover { color: rgb(var(--c-pure-white)); gap: 12px; }
.svc-cta-link .material-symbols-outlined { transition: transform 240ms var(--ease-out); }
.svc-cta-link:hover .material-symbols-outlined { transform: translateX(3px); }
[dir="rtl"] .svc-cta-link:hover .material-symbols-outlined { transform: translateX(-3px); }

.breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; line-height: 20px; color: rgb(var(--c-silver));
}
.breadcrumb a { color: rgb(var(--c-silver)); transition: color 180ms ease; }
.breadcrumb a:hover { color: rgb(var(--c-pure-white)); }
.breadcrumb [aria-current="page"] { color: rgb(var(--c-pure-white)); font-weight: 600; }

.faq-item {
  border-radius: 22px; overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.faq-item[open] { border-color: rgba(255,94,31,.38); }
html[data-theme="light"] .faq-item[open] { border-color: rgba(234,76,15,.34); }
.faq-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 600; color: rgb(var(--c-pure-white));
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:focus-visible { outline: 2px solid rgb(var(--c-ice)); outline-offset: -2px; border-radius: 22px; }
.faq-chevron {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: rgb(var(--c-ice)); transition: transform 300ms var(--ease-out), background 200ms ease;
}
html[data-theme="light"] .faq-chevron {
  background: rgba(234,76,15,.08); border-color: rgba(234,76,15,.18);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 24px 22px; color: rgb(var(--c-silver));
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px;
}
html[data-theme="light"] .faq-body { border-top-color: rgba(15,23,42,.08); }

/* ============ Koto-Inspired Editorial Projects Gallery & Case Study ============ */
.koto-divider {
  height: 1px; width: 100%; border: 0;
  background: rgba(255,255,255,0.12);
}
html[data-theme="light"] .koto-divider { background: rgba(15,23,42,0.10); }

.koto-mono {
  font-size: 11.5px; line-height: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.koto-bracket-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  font-size: 12px; line-height: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgb(var(--c-pure-white));
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background 220ms ease, border-color 220ms ease, transform 240ms var(--ease-out), color 200ms ease;
}
.koto-bracket-link:hover {
  background: rgb(var(--c-pure-white)); color: rgb(var(--c-soft-black));
  border-color: rgb(var(--c-pure-white)); transform: translateY(-2px);
}
html[data-theme="light"] .koto-bracket-link {
  background: rgba(255,255,255,0.82); border-color: rgba(15,23,42,0.16);
  box-shadow: 0 8px 20px -12px rgba(15,23,42,0.16);
}
html[data-theme="light"] .koto-bracket-link:hover {
  background: #0F172A; color: #FFFFFF; border-color: #0F172A;
}

/* Left-rail vertical filter rows */
.koto-filter-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 14px; text-align: start;
  color: rgb(var(--c-silver)); background: transparent;
  border: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, color 200ms ease, transform 220ms var(--ease-out);
}
.koto-filter-row:hover {
  color: rgb(var(--c-pure-white)); background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10); transform: translateX(4px);
}
[dir="rtl"] .koto-filter-row:hover { transform: translateX(-4px); }
html[data-theme="light"] .koto-filter-row:hover {
  background: rgba(255,255,255,0.75); border-color: rgba(15,23,42,0.09);
}
.koto-filter-row.is-active {
  color: rgb(var(--c-pure-white));
  background: var(--glass-bg);
  border-color: rgba(255,94,31,0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 26px -18px rgba(255,94,31,0.42);
}
html[data-theme="light"] .koto-filter-row.is-active {
  background: rgba(255,255,255,0.92);
  border-color: rgba(234,76,15,0.34);
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 24px -14px rgba(234,76,15,0.22);
}
.koto-filter-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: currentColor; opacity: 0.25; transition: all 220ms ease;
}
.koto-filter-row.is-active .koto-filter-dot {
  background: rgb(var(--c-ice)); opacity: 1;
  box-shadow: 0 0 10px 2px rgba(255,94,31,0.72);
}

/* Editorial Project Card */
:where(.koto-card) { position: relative; }
.koto-card {
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none;
}
.koto-media {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 500ms var(--ease-out), border-color 300ms ease, box-shadow 350ms ease;
}
.koto-card:hover .koto-media {
  transform: translateY(-4px); border-color: rgba(255,255,255,0.28);
  box-shadow: var(--glass-shadow), 0 36px 70px -28px rgba(255,94,31,0.26);
}
html[data-theme="light"] .koto-card:hover .koto-media {
  border-color: rgba(234,76,15,0.36);
  box-shadow: var(--glass-shadow), 0 28px 54px -24px rgba(234,76,15,0.20);
}
.koto-card .koto-arrow {
  transition: transform 320ms var(--ease-out), color 200ms ease;
}
.koto-card:hover .koto-arrow {
  color: rgb(var(--c-ice)); transform: translate(3px, -3px);
}
[dir="rtl"] .koto-card:hover .koto-arrow { transform: translate(-3px, -3px); }

.just-seen-pill {
  padding: 5px 11px; border-radius: 9999px;
  font-size: 11px; line-height: 14px; font-weight: 600;
  color: #FFFFFF; background: rgba(10,12,18,0.72);
  border: 1px solid rgba(255,94,31,0.48);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
html[data-theme="light"] .just-seen-pill {
  color: #0F172A; background: rgba(255,255,255,0.90);
  border-color: rgba(234,76,15,0.40);
}

/* Case Study Sticky Sidebar & Chapter Nav */
.case-chapter-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 14px; line-height: 20px; font-weight: 500;
  color: rgb(var(--c-silver)); transition: color 200ms ease, transform 200ms ease;
}
.case-chapter-link::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: currentColor; opacity: 0.28; transition: all 220ms ease;
}
.case-chapter-link:hover { color: rgb(var(--c-pure-white)); }
.case-chapter-link.is-active { color: rgb(var(--c-pure-white)); font-weight: 600; }
.case-chapter-link.is-active::before {
  background: rgb(var(--c-ice)); opacity: 1;
  box-shadow: 0 0 10px 2px rgba(255,94,31,0.75);
}

.case-mobile-pill {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 45; max-width: calc(100vw - 32px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 9999px;
}

.case-quote-panel {
  background: linear-gradient(135deg, rgba(255,94,31,0.08), rgba(255,177,10,0.06) 60%, rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
}
html[data-theme="light"] .case-quote-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,237,213,0.65));
  border-color: rgba(234,76,15,0.22);
}

.case-next-up { padding-top: 48px; }

/* Gallery Lightbox */
.w22-lightbox {
  position: fixed; inset: 0; z-index: 95; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,14,0.84);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity 280ms var(--ease-out);
}
html[data-theme="light"] .w22-lightbox { background: rgba(251, 249, 247, 0.88); }
.w22-lightbox.is-open { opacity: 1; }
.w22-lightbox.hidden { display: none; }
.w22-lightbox-panel {
  position: relative; max-width: 1120px; width: 100%; max-height: 90vh;
  border-radius: 28px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  transform: scale(0.96); transition: transform 320ms var(--ease-out);
}
.w22-lightbox.is-open .w22-lightbox-panel { transform: none; }
.w22-lightbox-panel img {
  max-height: 76vh; width: 100%; object-fit: contain; border-radius: 18px;
}

/* ============ Services: Cloudflare Platforms Palette & Transitions ============ */
#services.cf-services {
  --cf-bg: #151414;
  --cf-surface: #191817;
  --cf-surface-2: #2a2927;
  --cf-node-bg: #1a1209;
  --cf-node-border: #3d2e1f;
  --cf-border: rgba(240, 227, 222, 0.14);
  --cf-border-strong: rgba(240, 227, 222, 0.28);
  --cf-fg: #f0e3de;
  --cf-fg-muted: rgba(240, 227, 222, 0.72);
  --cf-fg-subtle: #9a9390;
  --cf-accent: #ff5e1f;
  --cf-accent-2: #ff7038;
  --cf-orange: #ff5010;
  --cf-orange-bg: #3d1f0f;
  --cf-amber: #ffc84d;
  --cf-amber-bg: #3d2f0f;

  background: var(--cf-bg);
  color: var(--cf-fg);
  border-top: 1px solid var(--cf-border);
  border-bottom: 1px solid var(--cf-border);
}

html[data-theme="light"] #services.cf-services {
  --cf-bg: #fbf9f7;
  --cf-surface: #f4efea;
  --cf-surface-2: #e7dfd6;
  --cf-node-bg: #fff5ef;
  --cf-node-border: rgba(234, 76, 15, 0.28);
  --cf-border: rgba(28, 25, 23, 0.13);
  --cf-border-strong: rgba(28, 25, 23, 0.26);
  --cf-fg: #1c1917;
  --cf-fg-muted: #57534e;
  --cf-fg-subtle: #78716c;
  --cf-accent: #ea4c0f;
  --cf-accent-2: #ff5e1f;
  --cf-orange: #ea4c0f;
  --cf-orange-bg: rgba(255, 94, 31, 0.12);
  --cf-amber: #d97706;
  --cf-amber-bg: rgba(245, 158, 11, 0.15);
}

.cf-services .cf-eyebrow {
  color: var(--cf-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.cf-services .cf-title { color: var(--cf-fg); }
.cf-services .cf-sub { color: var(--cf-fg-muted); }
.cf-services .cf-subtle { color: var(--cf-fg-subtle); }
.cf-services .text-gradient {
  background: linear-gradient(110deg, var(--cf-fg) 0%, var(--cf-accent) 36%, var(--cf-amber) 62%, var(--cf-fg) 88%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cloudflare CopyLink Heading Action */
.cf-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--cf-fg) 42%, transparent);
  background: transparent;
  border: 1px solid transparent;
  opacity: 0;
  cursor: pointer;
  transition: opacity 200ms cubic-bezier(0, 0, 0.2, 1), color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 140ms ease;
}
.cf-heading-group:hover .cf-copy-btn,
.cf-heading-group:focus-within .cf-copy-btn,
.cf-copy-btn.is-copied {
  opacity: 1;
}
.cf-copy-btn:hover {
  color: var(--cf-fg-muted);
  background: var(--cf-surface);
  border-color: var(--cf-border);
}
.cf-copy-btn:active { transform: scale(0.9); }
.cf-copy-btn .cf-icon-link,
.cf-copy-btn .cf-icon-check {
  position: absolute;
  transition: transform 200ms cubic-bezier(0, 0, 0.2, 1), opacity 200ms ease;
}
.cf-copy-btn .cf-icon-check { color: var(--cf-accent); opacity: 0; transform: scale(0); }
.cf-copy-btn.is-copied .cf-icon-link { opacity: 0; transform: scale(0); }
.cf-copy-btn.is-copied .cf-icon-check { opacity: 1; transform: scale(1); }

/* Architectural Hairline Bento + Corner Nodes */
.cf-bento-wrap { position: relative; }
.cf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  z-index: 4;
  pointer-events: none;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.cf-corner.c-tl { top: -6px; left: -6px; }
.cf-corner.c-tr { top: -6px; right: -6px; }
.cf-corner.c-bl { bottom: -6px; left: -6px; }
.cf-corner.c-br { bottom: -6px; right: -6px; }
.cf-bento-wrap:hover .cf-corner { border-color: var(--cf-border-strong); }

.cf-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--cf-border);
  border: 1px solid var(--cf-border);
}
@media (min-width: 1024px) {
  .cf-bento {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.cf-rail {
  position: relative;
  background: var(--cf-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  gap: 24px;
}
@media (min-width: 1024px) {
  .cf-rail {
    grid-row: 1 / span 2;
    padding: 36px;
  }
}
.cf-rail-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--cf-fg) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(to bottom, transparent 22%, rgba(0, 0, 0, 0.85) 100%);
  mask-image: linear-gradient(to bottom, transparent 22%, rgba(0, 0, 0, 0.85) 100%);
}
html[data-theme="light"] .cf-rail-pattern { opacity: 0.11; }

.cf-tools .chip {
  background: var(--cf-surface);
  border-color: var(--cf-border);
  color: var(--cf-fg-muted);
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.cf-tools .chip:hover {
  color: var(--cf-accent);
  border-color: var(--cf-accent);
  background: var(--cf-surface-2);
  transform: translateY(-1px);
}

.cf-card {
  position: relative;
  background: var(--cf-bg);
  display: flex;
  flex-direction: column;
  transition: background-color 260ms cubic-bezier(0, 0, 0.2, 1);
}
.cf-card:hover { background: color-mix(in srgb, var(--cf-surface) 60%, var(--cf-bg)); }

.cf-node {
  position: absolute;
  top: -7px;
  inset-inline-start: -7px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  z-index: 3;
  pointer-events: none;
  transition: border-color 260ms ease, background-color 260ms ease;
}
.cf-card:hover .cf-node {
  border-color: var(--cf-accent);
  background: var(--cf-node-bg);
}

.cf-graphic {
  position: relative;
  height: 224px;
  background: var(--cf-surface);
  border-bottom: 1px solid var(--cf-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(var(--cf-border) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cf-card-num {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--cf-fg-muted);
  background: var(--cf-surface-2);
  border: 1px solid var(--cf-border);
  transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease;
}
.cf-card:hover .cf-card-num {
  color: var(--cf-accent);
  border-color: var(--cf-accent);
  background: var(--cf-node-bg);
}

.cf-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.cf-card-body h3 { color: var(--cf-fg); }
.cf-card-body p { color: var(--cf-fg-muted); }
.cf-services .svc-list { color: var(--cf-fg); }
.cf-services .svc-list li::before {
  background: var(--cf-accent);
  box-shadow: 0 0 10px 1px rgba(255, 94, 31, 0.45);
}
.cf-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cf-border);
}
.cf-services .svc-cta-link {
  color: var(--cf-fg);
  transition: color 200ms cubic-bezier(0, 0, 0.2, 1), gap 240ms var(--ease-out);
}
.cf-services .svc-cta-link:hover {
  color: var(--cf-accent);
}
.cf-services .svc-cta-link .material-symbols-outlined {
  color: var(--cf-accent);
}

/* ============ Cloudflare Graphic Animations ============ */
.cf-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  overflow: visible;
  transition: transform 350ms cubic-bezier(0, 0, 0.2, 1);
}

/* Graphic 01: CodeSecurely */
.cf-gfx-code .cf-code-svg { opacity: 0; transform: scale(0.96); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.cf-card.is-visible .cf-gfx-code .cf-code-svg { opacity: 1; transform: scale(1); }
.cf-gfx-code .cf-code-side { transition: transform 300ms ease-out, opacity 300ms ease-out; }
.cf-gfx-code .cf-code-center {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.92);
  transition: transform 320ms ease-out, stroke 300ms ease-out;
}
.cf-card.is-visible .cf-gfx-code .cf-code-center { transform: scale(1); }
.cf-gfx-code .cf-code-divider {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 550ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}
.cf-card.is-visible .cf-gfx-code .cf-code-divider { stroke-dashoffset: 0; }
.cf-gfx-code .cf-code-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cf-card.is-visible .cf-gfx-code .cf-code-dot.d1 { transition-delay: 140ms; transform: scale(1); }
.cf-card.is-visible .cf-gfx-code .cf-code-dot.d2 { transition-delay: 220ms; transform: scale(1); }
.cf-card.is-visible .cf-gfx-code .cf-code-dot.d3 { transition-delay: 300ms; transform: scale(1); }
.cf-gfx-code .cf-code-lock {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity 400ms ease-out 180ms, transform 300ms ease-out, filter 300ms ease-out;
}
.cf-card.is-visible .cf-gfx-code .cf-code-lock { opacity: 1; }
.cf-card:hover .cf-gfx-code .cf-code-side.is-left { transform: translate(-4px, -2px); }
.cf-card:hover .cf-gfx-code .cf-code-side.is-right { transform: translate(4px, 2px); }
.cf-card:hover .cf-gfx-code .cf-code-side.is-top { transform: translateY(-4px); }
.cf-card:hover .cf-gfx-code .cf-code-center { transform: scale(1.03); }
.cf-card:hover .cf-gfx-code .cf-code-lock {
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(255, 94, 31, 0.45));
  animation: cf-lock-wiggle 260ms ease-in-out infinite alternate;
}
@keyframes cf-lock-wiggle {
  from { transform: scale(1.08) rotate(0deg); }
  to   { transform: scale(1.08) rotate(-2.5deg); }
}

/* Graphic 02: Llm Network */
.cf-gfx-llm .cf-llm-svg { transform: scale(0.96); transition: transform 400ms ease-out; }
.cf-card.is-visible .cf-gfx-llm .cf-llm-svg { transform: scale(1); }
.cf-card:hover .cf-gfx-llm .cf-llm-svg { transform: scale(1.02); }
.cf-gfx-llm .cf-llm-hub {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(16px) scale(0.65);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease-out;
}
.cf-card.is-visible .cf-gfx-llm .cf-llm-hub { transform: translateY(0) scale(1); opacity: 1; }
.cf-card:hover .cf-gfx-llm .cf-llm-hub { transform: scale(1.06); }
.cf-gfx-llm .cf-llm-core-icon {
  transform-box: fill-box;
  transform-origin: center;
}
.cf-card:hover .cf-gfx-llm .cf-llm-core-icon {
  animation: cf-hub-pulse 1.5s ease-in-out infinite;
}
@keyframes cf-hub-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.14) scaleY(1.06); }
}
.cf-gfx-llm .cf-llm-line {
  stroke-dasharray: 6 6;
  stroke-dashoffset: 0;
  opacity: 0.55;
  transition: opacity 250ms ease;
}
.cf-card:hover .cf-gfx-llm .cf-llm-line {
  opacity: 1;
  animation: cf-dash-march 12s linear infinite;
}
@keyframes cf-dash-march {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -48; }
}
.cf-gfx-llm .cf-llm-sat {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 280ms ease;
}
.cf-card.is-visible .cf-gfx-llm .cf-llm-sat.s1 { transform: scale(1); opacity: 1; transition-delay: 80ms; }
.cf-card.is-visible .cf-gfx-llm .cf-llm-sat.s2 { transform: scale(1); opacity: 1; transition-delay: 140ms; }
.cf-card.is-visible .cf-gfx-llm .cf-llm-sat.s3 { transform: scale(1); opacity: 1; transition-delay: 200ms; }
.cf-card.is-visible .cf-gfx-llm .cf-llm-sat.s4 { transform: scale(1); opacity: 1; transition-delay: 260ms; }
.cf-gfx-llm .cf-llm-sat-box {
  stroke: var(--cf-fg);
  stroke-opacity: 0.22;
  transition: stroke 250ms ease-in-out, stroke-opacity 250ms ease-in-out, fill 250ms ease-in-out;
}
.cf-gfx-llm .cf-llm-sat-glyph {
  fill: var(--cf-fg);
  opacity: 0.28;
  transition: fill 250ms ease-in-out, opacity 250ms ease-in-out;
}
.cf-card:hover .cf-gfx-llm .cf-llm-sat-box {
  stroke: var(--cf-accent);
  stroke-opacity: 0.65;
  fill: var(--cf-node-bg);
  animation: cf-dash-march 18s linear infinite;
}
.cf-card:hover .cf-gfx-llm .cf-llm-sat-glyph {
  fill: var(--cf-accent);
  opacity: 1;
}

/* Graphic 03: Messaging Morph (POS & Workflows) */
.cf-gfx-msg .cf-msg-primary {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: translateY(44px) scale(0.65) rotate(-8deg);
  transition: transform 780ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 350ms ease-out, filter 300ms ease;
}
.cf-card.is-visible .cf-gfx-msg .cf-msg-primary {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
.cf-card:hover .cf-gfx-msg .cf-msg-primary {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 10px 22px rgba(255, 94, 31, 0.32));
}
.cf-gfx-msg .cf-msg-secondary {
  transform-box: fill-box;
  transform-origin: left center;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 440ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease-out;
}
.cf-card.is-visible .cf-gfx-msg .cf-msg-secondary {
  opacity: 1;
  transform: scale(1);
}
.cf-gfx-msg .cf-msg-bg {
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cf-card:hover .cf-gfx-msg .cf-msg-bg {
  transform: scaleX(0.46) scaleY(0.86);
}
.cf-gfx-msg .cf-msg-lines { transition: opacity 220ms ease; }
.cf-card:hover .cf-gfx-msg .cf-msg-lines { opacity: 0; }
.cf-gfx-msg .cf-msg-dots { opacity: 0; transition: opacity 240ms ease 100ms; }
.cf-card:hover .cf-gfx-msg .cf-msg-dots { opacity: 1; }
.cf-gfx-msg .cf-typing-dot {
  animation: cf-dot-pulse 460ms ease-in-out infinite alternate;
  animation-play-state: paused;
}
.cf-gfx-msg .cf-typing-dot.dt2 { animation-delay: 110ms; }
.cf-gfx-msg .cf-typing-dot.dt3 { animation-delay: 220ms; }
.cf-card:hover .cf-gfx-msg .cf-typing-dot { animation-play-state: running; }
@keyframes cf-dot-pulse {
  from { opacity: 0.32; transform: translateY(0); }
  to   { opacity: 1; transform: translateY(-1.5px); }
}

/* Graphic 04: Collaborative Cursors (Branding & Design) */
.cf-gfx-collab .cf-col-box-1,
.cf-gfx-collab .cf-col-box-2 {
  transform-box: fill-box;
  transform-origin: top left;
  opacity: 0;
  transform: scale(0.7);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1) 140ms, opacity 400ms ease 140ms, filter 400ms ease;
}
.cf-card.is-visible .cf-gfx-collab .cf-col-box-1,
.cf-card.is-visible .cf-gfx-collab .cf-col-box-2 {
  opacity: 1;
  transform: scale(1);
}
.cf-card.is-visible .cf-gfx-collab .cf-col-box-1 {
  filter: drop-shadow(0 0 12px rgba(255, 80, 10, 0.25));
}
.cf-card.is-visible .cf-gfx-collab .cf-col-box-2 {
  filter: drop-shadow(0 0 12px rgba(255, 177, 10, 0.25));
}
.cf-card:hover .cf-gfx-collab .cf-col-box-1 {
  filter: drop-shadow(0 0 18px rgba(255, 80, 10, 0.45));
}
.cf-card:hover .cf-gfx-collab .cf-col-box-2 {
  filter: drop-shadow(0 0 18px rgba(255, 177, 10, 0.42));
}
.cf-gfx-collab .cf-col-cursor-1,
.cf-gfx-collab .cf-col-cursor-2 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity 450ms ease, transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cf-gfx-collab .cf-col-cursor-1 { transform: translate(-20px, -16px) rotate(-30deg) scale(0.85); }
.cf-gfx-collab .cf-col-cursor-2 { transform: translate(20px, 16px) rotate(30deg) scale(0.85); }
.cf-card.is-visible .cf-gfx-collab .cf-col-cursor-1,
.cf-card.is-visible .cf-gfx-collab .cf-col-cursor-2 {
  opacity: 1;
  transform: none;
}
.cf-card:hover .cf-gfx-collab .cf-col-cursor-1 {
  animation: cf-cursor-float-1 2.5s ease-in-out infinite alternate;
}
.cf-card:hover .cf-gfx-collab .cf-col-cursor-2 {
  animation: cf-cursor-float-2 2.5s ease-in-out 0.3s infinite alternate;
}
@keyframes cf-cursor-float-1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-6px, 8px); }
}
@keyframes cf-cursor-float-2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(6px, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .cf-card .cf-code-svg,
  .cf-card .cf-code-center,
  .cf-card .cf-code-dot,
  .cf-card .cf-code-lock,
  .cf-card .cf-llm-hub,
  .cf-card .cf-llm-sat,
  .cf-card .cf-msg-primary,
  .cf-card .cf-msg-secondary,
  .cf-card .cf-col-box-1,
  .cf-card .cf-col-box-2,
  .cf-card .cf-col-cursor-1,
  .cf-card .cf-col-cursor-2 {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .cf-card *,
  .cf-card *::before,
  .cf-card *::after {
    animation: none !important;
  }
}


