/* Dependency-free Liquid Glass Core tier with modern CSS extensions */

@property --specular-angle {
  syntax: "<angle>";
  initial-value: 135deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --page: #07111f;
  --text: #f6f8fc;
  --muted: #b8c2d6;
  --accent: #8ad7ff;
  --lg-fill: rgb(17 29 49 / .58);
  --lg-fill-fallback: rgb(17 29 49 / .94);
  --lg-stroke: rgb(255 255 255 / .24);
  --lg-highlight: rgb(255 255 255 / .48);
  --lg-edge-dark: rgb(0 0 0 / .18);
  --lg-shadow: 0 18px 48px rgb(0 5 18 / .24), 0 3px 12px rgb(0 5 18 / .14);
  --lg-blur: 16px;
  --lg-saturate: 135%;
  --lg-radius: 28px;
  --motion: 220ms cubic-bezier(.2,.8,.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #eaf2fb;
  --text: #07111f;
  --muted: #42536a;
  --lg-fill: rgb(255 255 255 / .52);
  --lg-fill-fallback: rgb(247 250 255 / .96);
  --lg-stroke: rgb(255 255 255 / .72);
  --lg-highlight: rgb(255 255 255 / .9);
  --lg-edge-dark: rgb(32 52 78 / .1);
  --lg-shadow: 0 18px 48px rgb(45 71 104 / .18), 0 3px 12px rgb(45 71 104 / .1);
}

/* 🎨 Preset Glass Theme Tokens */
.lg-theme-vision {
  --lg-fill: rgb(255 255 255 / .12);
  --lg-stroke: rgb(255 255 255 / .35);
  --lg-highlight: rgb(255 255 255 / .65);
  --lg-shadow: 0 24px 64px rgb(0 0 0 / .28);
}
.lg-theme-obsidian {
  --lg-fill: rgb(10 14 23 / .78);
  --lg-stroke: rgb(255 255 255 / .15);
  --lg-highlight: rgb(255 255 255 / .32);
  --lg-shadow: 0 20px 50px rgb(0 0 0 / .6);
}
.lg-theme-aurora {
  --lg-fill: rgb(16 38 64 / .55);
  --lg-stroke: rgb(138 215 255 / .42);
  --lg-highlight: rgb(194 138 255 / .62);
  --lg-shadow: 0 20px 48px rgb(14 30 54 / .4);
}
.lg-theme-emerald {
  --lg-fill: rgb(11 38 31 / .58);
  --lg-stroke: rgb(92 230 188 / .38);
  --lg-highlight: rgb(173 255 228 / .6);
  --lg-shadow: 0 20px 48px rgb(4 24 19 / .45);
}
.lg-theme-amber {
  --lg-fill: rgb(44 28 12 / .58);
  --lg-stroke: rgb(255 184 108 / .4);
  --lg-highlight: rgb(255 221 168 / .65);
  --lg-shadow: 0 20px 48px rgb(28 16 5 / .45);
}

/* 🧪 Tier-2 SVG Refraction Filter Class */
.lg-refract {
  backdrop-filter: url("#glass-refraction-subtle") blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: url("#glass-refraction-subtle") blur(var(--lg-blur)) saturate(var(--lg-saturate));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(56vmax 56vmax at 4% 4%, rgb(20 103 216 / .72), transparent 62%),
    radial-gradient(48vmax 58vmax at 100% 42%, rgb(163 47 187 / .52), transparent 66%),
    radial-gradient(58vmax 48vmax at 48% 108%, rgb(235 125 51 / .34), transparent 65%),
    var(--page);
  background-repeat: no-repeat;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 82%, white);
  outline-offset: 3px;
}

/* Core Surface */
.lg-surface {
  --lg-x: 50%;
  --lg-y: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  background: var(--lg-fill);
  border: 1px solid var(--lg-stroke);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
}

.lg-surface::before,
.lg-surface::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg-surface::before {
  z-index: -1;
  box-shadow: inset 0 1px 0 var(--lg-highlight), inset 0 -1px 0 var(--lg-edge-dark);
}
.lg-surface::after {
  z-index: -1;
  background: radial-gradient(280px circle at var(--lg-x) var(--lg-y), rgb(255 255 255 / .27), transparent 58%);
  opacity: .78;
  mix-blend-mode: screen;
  transition: opacity var(--motion);
}

/* Anti-Banding Micro-Noise Filter Overlay */
.glass-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

.lg-interactive { transition: transform var(--motion); }
.lg-interactive:hover { transform: translateY(-1px); }
.lg-interactive:active { transform: translateY(0) scale(.99); }

.site-header { position: fixed; inset: 18px 0 auto; z-index: 20; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-surface { width: min(720px, 100%); min-height: 64px; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 20px; pointer-events: auto; transition: transform var(--motion); }
.site-header.is-compact .nav-surface { transform: translateY(-7px); }
.brand { font-weight: 760; letter-spacing: -.02em; margin-right: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: calc(var(--lg-radius) - 12px); }
.nav-links a[aria-current="page"] { background: rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); cursor: pointer; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 96svh; display: grid; align-content: center; justify-items: start; padding: 150px 0 80px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.02; letter-spacing: -.045em; }
h1 { max-width: 920px; font-size: clamp(3.4rem, 8vw, 7.6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 5rem); max-width: 800px; }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.lede { max-width: 680px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.actions { display: inline-flex; gap: 6px; padding: 6px; --lg-radius: 999px; margin-top: 22px; }
.actions .primary-action { background: var(--text); color: var(--page); font-weight: 760; }

.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 100px 0; }
.section-copy { grid-column: 1 / -1; margin-bottom: 28px; }
.project-card { background: color-mix(in srgb, var(--page) 76%, white 7%); border: 1px solid rgb(255 255 255 / .1); border-radius: 32px; overflow: hidden; }
.project-art { aspect-ratio: 4 / 3; background-size: cover; }
.art-one { background: radial-gradient(circle at 65% 20%, #9fe8ff, transparent 18%), linear-gradient(145deg, #0f2a58 10%, #156ec1 50%, #0c1638); }
.art-two { background: radial-gradient(circle at 38% 32%, #ffe4a0, transparent 17%), linear-gradient(145deg, #4c1832 10%, #e47b35 54%, #29152c); }
.project-copy { padding: 28px; }
.project-copy p { color: var(--muted); margin: 0 0 8px; }

.system-section { padding: 110px 0 140px; }
.inspector { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.inspector > div { min-height: 190px; padding: 28px; background: rgb(4 12 25 / .22); }
.inspector p { color: var(--muted); margin-bottom: 0; }
.token-dot { display: block; width: 34px; height: 34px; border-radius: 12px; margin-bottom: 30px; }
.token-dot.fill { background: var(--lg-fill); border: 1px solid var(--lg-stroke); }
.token-dot.rim { border: 1px solid var(--lg-highlight); box-shadow: inset 0 1px 0 white; }
.token-dot.sheen { background: radial-gradient(circle at 30% 20%, white, transparent 55%); }
.token-dot.shadow { background: rgb(255 255 255 / .16); box-shadow: var(--lg-shadow); }
footer { padding: 36px 20px 70px; color: var(--muted); text-align: center; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg-surface { background: var(--lg-fill-fallback); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { min-height: 92svh; }
  .content-grid { grid-template-columns: 1fr; }
  .inspector { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  main { width: min(100% - 28px, 1120px); }
  .actions { width: 100%; }
  .actions a { flex: 1; padding-inline: 10px; }
  .inspector { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .lg-interactive:hover, .lg-interactive:active, .site-header.is-compact .nav-surface { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --lg-fill: rgb(12 22 38 / .88); --lg-stroke: rgb(255 255 255 / .72); }
  :root[data-theme="light"] { --lg-fill: rgb(255 255 255 / .94); --lg-stroke: rgb(0 0 0 / .55); }
}
@media (forced-colors: active) {
  .lg-surface, .project-card, .actions, .nav-surface {
    background: Canvas;
    color: CanvasText;
    border: 1px solid ButtonBorder;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  a:focus-visible, button:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
  .lg-surface::before, .lg-surface::after { display: none; }
}
