:root {
  --bg: #080808;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.74);
  --soft: rgba(244, 241, 234, 0.5);
  --faint: rgba(244, 241, 234, 0.32);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --panel: rgba(8, 8, 8, 0.34);
  --accent: linear-gradient(90deg, #58d4ff 0%, #d6c79a 52%, #ea8120 100%);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-card-hover: 0 30px 80px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(40px, 6vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(88, 212, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(234, 129, 32, 0.05), transparent 24%),
    var(--bg);
  font-family: 'Manrope', sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(88, 212, 255, 0.12), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(234, 129, 32, 0.08), transparent 24%),
    radial-gradient(circle at 48% 82%, rgba(255, 255, 255, 0.06), transparent 22%);
  filter: blur(18px);
  animation: ambientFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body.particle-ui::after {
  opacity: 0;
}

.site-shell {
  width: min(1280px, calc(100% - 30px));
  margin: 0 auto;
  padding: 22px 0 44px;
  position: relative;
  z-index: 1;
}

body.particle-ui .site-shell {
  min-height: 100vh;
}

.site-particles-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.site-particles-canvas,
.site-particles-glow,
.site-particles-fade {
  position: absolute;
  inset: 0;
}

.site-particles-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  mix-blend-mode: screen;
}

.site-particles-glow {
  background:
    radial-gradient(circle at 22% 24%, rgba(88, 212, 255, 0.08), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.05), transparent 22%);
  filter: blur(10px);
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

.site-particles-fade {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.03), transparent 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2));
}

.site-particles-scene.site-particles-fallback {
  background:
    radial-gradient(circle at 22% 24%, rgba(88, 212, 255, 0.09), transparent 20%),
    radial-gradient(circle at 78% 22%, rgba(234, 129, 32, 0.07), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.04), transparent 24%);
}

body.particle-ui .page-main,
body.particle-ui .luxury-main {
  position: relative;
}

body.particle-ui .site-header,
body.particle-ui .site-footer,
body.particle-ui .panel,
body.particle-ui .project-card,
body.particle-ui .article-card,
body.particle-ui .luxury-note,
body.particle-ui .luxury-links {
  position: relative;
  z-index: 1;
}

.luxury-shell {
  width: min(1320px, calc(100% - 24px));
}

/* ---------- Header / Footer ---------- */

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-header {
  padding: 16px 2px 30px;
  position: relative;
  z-index: 4;
}

.brand,
.main-nav a,
.luxury-button,
.luxury-links a {
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.4s var(--ease);
}

.brand:hover {
  opacity: 0.7;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  position: relative;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.35s var(--ease);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  transform: scaleX(1);
  background: var(--accent);
  height: 2px;
}

.luxury-links a:hover {
  color: var(--text);
}

/* ---------- Layout rhythm ---------- */

.luxury-main,
.page-main {
  display: grid;
  gap: var(--space);
}

.luxury-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
  overflow: hidden;
}

.luxury-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 12px 8px;
}

.hero-kicker,
.note-label,
.section-tag,
.project-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Type scale ---------- */

.luxury-title,
.page-hero h1,
.panel h2,
.project-card h2,
.project-card h3,
.article-card h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.luxury-title {
  font-size: clamp(5rem, 12vw, 9.8rem);
  line-height: 0.9;
}

.luxury-subtitle {
  max-width: 28rem;
  margin: 16px 0 0;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  color: rgba(244, 241, 234, 0.86);
  line-height: 1.6;
}

.luxury-rule {
  width: min(100%, 430px);
  height: 6px;
  margin: 30px 0 28px;
  background: var(--accent);
  border-radius: 999px;
}

.luxury-description,
.page-hero p,
.panel p,
.panel li,
.project-card p,
.article-card p,
.luxury-note p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.luxury-description {
  max-width: 35rem;
  margin: 0;
}

/* lede: lead paragraph under section hero; narrow constrains its measure */
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.82);
  margin: 18px 0 0;
}

.narrow {
  max-width: 36rem;
}

/* ---------- Buttons ---------- */

.luxury-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.luxury-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 160px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 0.45s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.45s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}

.luxury-button-label {
  position: relative;
  z-index: 1;
}

.luxury-button-icon {
  --icon-a: #fff5ea;
  --icon-b: #d57b1f;
  --icon-shadow: rgba(234, 129, 32, 0.4);
  --icon-fg: #17110e;
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  color: var(--icon-fg);
  background: linear-gradient(145deg, var(--icon-a), var(--icon-b));
  box-shadow:
    0 11px 22px var(--icon-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px) rotate(-8deg) perspective(48px) rotateX(12deg);
}

.luxury-button-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translate(3px, 4px);
  background: rgba(0, 0, 0, 0.26);
  opacity: 0.75;
  z-index: -1;
}

.luxury-button-icon::after {
  content: '';
  position: absolute;
  inset: 1px 1px auto auto;
  width: 42%;
  height: 42%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), transparent 70%);
  opacity: 0.65;
  pointer-events: none;
}

.luxury-button-icon svg {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: currentColor;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.42))
    drop-shadow(0 4px 7px rgba(0, 0, 0, 0.26));
}

.luxury-button-icon--github {
  --icon-a: #3a3a43;
  --icon-b: #111115;
  --icon-shadow: rgba(0, 0, 0, 0.42);
  --icon-fg: #f4f1ea;
}

.luxury-button-icon--instagram {
  --icon-a: #feda75;
  --icon-b: #c13584;
  --icon-shadow: rgba(193, 53, 132, 0.4);
  --icon-fg: #fff6f0;
}

.luxury-button-icon--linkedin {
  --icon-a: #7fc4ff;
  --icon-b: #0a66c2;
  --icon-shadow: rgba(10, 102, 194, 0.42);
  --icon-fg: #f4f9ff;
}

.luxury-button-icon--gmail {
  --icon-a: #fff9f3;
  --icon-b: #f0d5c8;
  --icon-shadow: rgba(234, 67, 53, 0.34);
}

.luxury-button-icon--gmail svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: none;
}

.luxury-button-icon--gmail svg path {
  stroke: none;
}

.luxury-button-primary .luxury-button-icon {
  --icon-a: #fff4e4;
  --icon-b: #e18a2c;
  --icon-shadow: rgba(234, 129, 32, 0.45);
  --icon-fg: #18110d;
}

.luxury-button-primary .luxury-button-icon--gmail {
  --icon-a: #fff9f3;
  --icon-b: #f0d5c8;
  --icon-shadow: rgba(234, 67, 53, 0.34);
}

.luxury-button-primary {
  color: #080808;
  background: #f4f1ea;
  box-shadow: 0 10px 30px rgba(244, 241, 234, 0.12);
}

.luxury-button-primary:hover,
.luxury-button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(244, 241, 234, 0.22);
}

.luxury-button-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.luxury-button-secondary:hover,
.luxury-button-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.luxury-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(88, 212, 255, 0.6);
}

/* ---------- Hero visual ---------- */

.luxury-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 720px;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.three-hero-scene {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.hero-canvas,
.hero-fade,
.portrait-shell,
.hero-particle-glow {
  position: absolute;
}

.hero-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 1;
}

.hero-particle-glow {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 54% 58%, rgba(120, 210, 255, 0.08), transparent 20%);
  filter: blur(12px);
}

.hero-fade {
  inset: -6% -10% -12% -10%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.92;
  /* Keep the portrait embedded in the page background instead of sitting on a hard slab. */
  background:
    radial-gradient(ellipse 84% 92% at 52% 42%, transparent 44%, rgba(8, 8, 8, 0.44) 72%, var(--bg) 100%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.025), transparent 20%),
    radial-gradient(120% 72% at 50% 100%, rgba(8, 8, 8, 0.9), transparent 64%);
}

.portrait-shell {
  left: 78%;
  bottom: -6%;
  width: min(50vw, 700px);
  height: 112%;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 2;
}

.luxury-portrait-shell {
  border: 0;
  box-shadow: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.68);
  opacity: 0.78;
  /* Dissolve the photo's edges into the star-field background on all sides
     so the character emerges from the same dark field as the UI. */
  -webkit-mask-image:
    radial-gradient(ellipse 72% 82% at 54% 40%, #000 38%, transparent 84%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 84%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 26%, rgba(0, 0, 0, 0.42) 62%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 72% 82% at 54% 40%, #000 38%, transparent 84%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 84%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 26%, rgba(0, 0, 0, 0.42) 62%, transparent 92%);
  mask-composite: intersect;
}

.landing-page-block {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  width: min(100%, 600px);
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025) 48%, rgba(88, 212, 255, 0.08)),
    rgba(8, 10, 14, 0.12);
  box-shadow:
    28px 36px 70px rgba(0, 0, 0, 0.34),
    -14px -12px 48px rgba(88, 212, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -28px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(3px) saturate(1.18);
  transform-style: preserve-3d;
  pointer-events: auto;
}

.landing-page-block::before,
.landing-page-block::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.landing-page-block::before {
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(-24px);
}

.landing-page-block::after {
  right: 5%;
  bottom: -26px;
  width: 86%;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.34), transparent 72%);
  filter: blur(8px);
  transform: translateZ(-48px);
}

.landing-page-card {
  --card-accent: #58d4ff;
  --card-a: rgba(88, 212, 255, 0.22);
  position: relative;
  min-height: clamp(150px, 14vw, 200px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.1vw, 28px);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(120% 95% at 50% 6%, color-mix(in srgb, var(--card-accent) 24%, transparent), transparent 60%),
    radial-gradient(130% 100% at 16% 8%, var(--card-a), transparent 54%),
    linear-gradient(160deg, rgba(28, 30, 46, 0.34), rgba(12, 14, 24, 0.22) 50%, rgba(6, 7, 14, 0.4)),
    rgba(8, 9, 16, 0.32);
  box-shadow:
    16px 24px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -22px 36px rgba(0, 0, 0, 0.24),
    inset 0 0 40px color-mix(in srgb, var(--card-accent) 12%, transparent);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  transform: translateZ(34px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* luminous accent border that matches the card's colour */
.landing-page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--card-accent) 80%, #fff) 0%,
    color-mix(in srgb, var(--card-accent) 30%, transparent) 30%,
    rgba(255, 255, 255, 0.03) 58%,
    color-mix(in srgb, var(--card-accent) 40%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  z-index: 1;
}

/* soft colour bloom in the corner behind the icon */
.landing-page-card::after {
  content: '';
  position: absolute;
  top: -28%;
  right: -16%;
  width: 64%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%,
    color-mix(in srgb, var(--card-accent) 55%, transparent), transparent 66%);
  opacity: 0.28;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  z-index: 0;
}

.landing-page-card:hover,
.landing-page-card:focus-visible {
  transform: translateZ(64px) translateY(-10px) rotateX(2deg);
  border-color: color-mix(in srgb, var(--card-accent) 30%, rgba(255, 255, 255, 0.2));
  box-shadow:
    24px 36px 60px rgba(0, 0, 0, 0.34),
    0 0 48px color-mix(in srgb, var(--card-accent) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.landing-page-card:hover::before,
.landing-page-card:focus-visible::before {
  opacity: 1;
}

.landing-page-card:hover::after,
.landing-page-card:focus-visible::after {
  opacity: 0.5;
  transform: scale(1.1);
}

.landing-page-card:focus-visible {
  outline: none;
}

.landing-page-card--about {
  --card-accent: #58d4ff;
  --card-a: rgba(88, 212, 255, 0.22);
}

.landing-page-card--projects {
  --card-accent: #ffb956;
  --card-a: rgba(255, 185, 86, 0.2);
}

.landing-page-card--blog {
  --card-accent: #b176ff;
  --card-a: rgba(177, 118, 255, 0.2);
}

.landing-page-card--contact {
  --card-accent: #ff6d53;
  --card-a: rgba(255, 109, 83, 0.2);
}

.landing-page-card-index,
.landing-page-card-title,
.landing-page-card-note {
  position: relative;
  z-index: 1;
}

/* ---- Glowing data-stream pipelines through the card cross ---- */
.landing-pipes {
  position: absolute;
  inset: clamp(18px, 2.4vw, 30px);
  z-index: 0;
  pointer-events: none;
}

.pipe {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(var(--pipe-dir, 90deg),
    rgba(88, 212, 255, 0) 0%,
    rgba(88, 212, 255, 0.85) 18%,
    rgba(214, 199, 154, 0.9) 50%,
    rgba(255, 109, 83, 0.85) 82%,
    rgba(255, 109, 83, 0) 100%);
  box-shadow: 0 0 18px rgba(120, 190, 255, 0.7);
  opacity: 0.95;
}

/* horizontal pipe along the middle gutter */
.pipe-h {
  --pipe-dir: 90deg;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
}

/* vertical pipe along the middle gutter */
.pipe-v {
  --pipe-dir: 180deg;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
}

/* a travelling light pulse riding each pipe */
.pipe-h::after,
.pipe-v::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, rgba(136, 200, 255, 0.8) 40%, transparent 72%);
  box-shadow: 0 0 16px rgba(180, 220, 255, 0.9);
}

.pipe-h::after {
  top: 50%;
  width: 30px;
  height: 7px;
  transform: translate(-50%, -50%);
  animation: pipeFlowX 3.6s var(--ease) infinite;
}

.pipe-v::after {
  left: 50%;
  width: 7px;
  height: 30px;
  transform: translate(-50%, -50%);
  animation: pipeFlowY 4.4s var(--ease) infinite;
}

/* glowing junction where the pipes cross */
.pipe-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, rgba(136, 200, 255, 0.7) 45%, transparent 72%);
  box-shadow: 0 0 22px rgba(150, 210, 255, 0.8);
  animation: pipePulse 2.8s ease-in-out infinite;
}

@keyframes pipeFlowX {
  0% { left: 4%; opacity: 0; }
  16% { opacity: 1; }
  84% { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}

@keyframes pipeFlowY {
  0% { top: 4%; opacity: 0; }
  16% { opacity: 1; }
  84% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

@keyframes pipePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-h::after,
  .pipe-v::after,
  .pipe-node {
    animation: none;
  }
}

/* ---- Floating 3D landing icons ---- */
.landing-icon-3d {
  display: none;
}

.landing-icon-block.is-3d-active .landing-page-card {
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.landing-icon-block.is-3d-active .landing-icon-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 9vw, 140px);
  height: clamp(96px, 9vw, 140px);
  margin: auto auto 8px;
  pointer-events: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.landing-icon-block.is-3d-active .landing-icon-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

/* The big serif title is replaced by the floating icon when 3D is live. */
.landing-icon-block.is-3d-active .landing-page-card-title {
  display: none;
}

.landing-icon-block.is-3d-active .landing-page-card-index {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  left: clamp(16px, 1.8vw, 24px);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--card-accent) 70%, rgba(244, 241, 234, 0.7));
  opacity: 0.85;
}

.landing-icon-block.is-3d-active .landing-page-card-note {
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 234, 0.66);
}

.landing-icon-block.is-3d-active .landing-page-card:hover .landing-page-card-note,
.landing-icon-block.is-3d-active .landing-page-card:focus-visible .landing-page-card-note {
  color: color-mix(in srgb, var(--card-accent) 55%, var(--text));
}

.landing-page-card-index,
.landing-page-card-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.58);
}

.landing-page-card-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.landing-page-card-note {
  color: rgba(244, 241, 234, 0.46);
}

.landing-panel-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(760px, 82vh);
  padding: clamp(44px, 7vw, 90px) 0 clamp(54px, 8vw, 110px);
  perspective: 1200px;
}

.landing-panel-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.landing-panel-title {
  margin: 16px 0 0;
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.landing-panel-lead {
  margin: 24px 0 0;
  color: rgba(244, 241, 234, 0.68);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}

.landing-page-block--section {
  position: relative;
  top: auto;
  right: auto;
  width: min(100%, 720px);
  min-height: 470px;
  justify-self: end;
  transform: perspective(1100px) rotateX(8deg) rotateY(-12deg) rotateZ(1deg);
}

/* ---------- Hero bottom row / links ---------- */

.luxury-bottom-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding: 8px 0 0 4px;
}

.luxury-note {
  max-width: 32rem;
}

.note-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.note-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.luxury-note p {
  margin: 14px 0 0;
}

.luxury-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.luxury-links a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 18px 20px 0;
  color: rgba(244, 241, 234, 0.78);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  border-top: 1px solid transparent;
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.luxury-links a::after {
  content: '\2197';
  margin-left: auto;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s var(--ease);
}

.luxury-links a:hover,
.luxury-links a:focus-visible {
  color: var(--text);
  padding-left: 6px;
}

.luxury-links a:hover::after,
.luxury-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--text);
}

.site-footer {
  justify-content: space-between;
  padding-top: 32px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* ---------- Rich site footer ---------- */
.site-footer--rich {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 5vw, 60px) clamp(24px, 3.5vw, 48px) clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 58%),
    rgba(8, 8, 8, 0.34);
  overflow: hidden;
}

.site-footer--rich::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-brand {
  max-width: 34rem;
}

.footer-logo {
  font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 30rem;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  outline: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  margin: 0 0 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-nav a {
  position: relative;
  width: fit-content;
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
  outline: none;
}

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

.footer-nav a[aria-current='page'] {
  color: var(--text);
}

.footer-nav a[aria-current='page']::after {
  transform: scaleX(1);
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 760px) {
  .site-footer.site-footer--rich {
    align-items: stretch;
    gap: 0;
    border-radius: 22px 22px 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------- Panels & cards ---------- */

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: clamp(26px, 3.5vw, 40px);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.05;
}

.panel h2 + p,
.panel h2 + .bullet-list {
  margin-top: 16px;
}

body.particle-ui .panel,
body.particle-ui .project-card,
body.particle-ui .article-card {
  background: rgba(8, 8, 8, 0.12);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

body.particle-ui .site-header,
body.particle-ui .site-footer {
  backdrop-filter: blur(12px);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.project-grid,
.split-section,
.article-list {
  display: grid;
  gap: 20px;
}

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

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

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

.project-card,
.article-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}

.project-card::after,
.article-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.project-card:hover,
.article-card:hover,
.project-card:focus-within,
.article-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card-hover);
}

.project-card:hover::after,
.article-card:hover::after,
.project-card:focus-within::after,
.article-card:focus-within::after {
  transform: scaleX(1);
}

.project-card h2,
.project-card h3,
.article-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.1;
}

.project-card h2 + p,
.project-card h3 + p,
.article-card h2 + p {
  margin-top: 12px;
  margin-bottom: 0;
}

.project-type {
  display: block;
  margin-bottom: 16px;
  color: var(--faint);
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li {
  margin-bottom: 8px;
}

.bullet-list li::marker {
  color: var(--soft);
}

/* ---------- Long-scroll landing blocks (showcase panels) ---------- */

/* perspective context so child translateZ/rotateX reads as depth, not skew */
.luxury-main {
  perspective: 1600px;
  perspective-origin: 50% 30%;
}

/*
 * Each .land-block is a full-bleed rounded SHOWCASE PANEL with its own
 * rich gradient ground, soft gradient hairline, and deep shadow.
 * --accent-1 is the per-section accent; base falls back to cyan and is
 * overridden by the .land-block--* modifiers below.
 */
.land-block {
  --accent-1: #58d4ff;
  --accent-soft: rgba(88, 212, 255, 0.035);
  position: relative;
  width: 100%;
  min-height: 84vh;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: clamp(22px, 2.6vw, 32px);
  padding: clamp(40px, 6vw, 96px) clamp(26px, 5vw, 80px);
  scroll-margin-top: 96px;
  perspective: 1400px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 82% 8%, var(--accent-soft), transparent 52%),
    radial-gradient(120% 120% at 8% 100%, rgba(255, 255, 255, 0.01), transparent 46%),
    linear-gradient(158deg, rgba(20, 22, 28, 0.09), rgba(9, 10, 13, 0.045) 58%, rgba(6, 7, 9, 0.065));
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(1.5px) saturate(1.02);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.02);
}

/* gradient hairline that picks up the section accent */
.land-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent-1) 55%, rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* soft accent glow bleeding off the top-right corner of each panel */
.land-block::after {
  content: '';
  position: absolute;
  top: -18%;
  right: -10%;
  width: 46%;
  height: 70%;
  background: radial-gradient(circle at 60% 40%, var(--accent-1), transparent 62%);
  opacity: 0.035;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ---- per-section accents (multi-color journey) ---- */
.land-block--cyan {
  --accent-1: #58d4ff;
  --accent-soft: rgba(88, 212, 255, 0.035);
}
.land-block--amber {
  --accent-1: #e8b04b;
  --accent-soft: rgba(232, 176, 75, 0.035);
}
.land-block--violet {
  --accent-1: #8b6cff;
  --accent-soft: rgba(139, 108, 255, 0.04);
}
.land-block--ember {
  --accent-1: #ea8120;
  --accent-soft: rgba(234, 129, 32, 0.035);
}

.land-block-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  transform: translateZ(0) rotateX(0deg);
  transform-style: preserve-3d;
  /* subtle settle as the block scrolls into rest; kept gentle */
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  will-change: transform;
}

/* faint giant index numeral sitting behind the title; tinted by accent */
.land-index {
  position: absolute;
  top: -0.35em;
  left: -0.04em;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent-1) 40%, rgba(244, 241, 234, 0.16));
  text-stroke: 1px color-mix(in srgb, var(--accent-1) 40%, rgba(244, 241, 234, 0.16));
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: translateZ(-60px);
}

/* the section tag inside a panel gets an accent dot to anchor the color */
.land-block .section-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--accent-1) 70%, var(--text));
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.land-block .section-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 14px var(--accent-1);
}

.land-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: clamp(2.55rem, 6.7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
}

/* accent hairline tucked under each panel title */
.land-title::after {
  content: '';
  display: block;
  width: clamp(64px, 8vw, 120px);
  height: 4px;
  margin-top: clamp(18px, 1.6vw, 26px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1),
    color-mix(in srgb, var(--accent-1) 30%, transparent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-1) 50%, transparent);
}

.land-lead {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: clamp(18px, 2vw, 28px) 0 0;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}

.land-block .project-card,
.land-block .article-card,
.land-block .luxury-button {
  font-family: 'DM Sans', sans-serif;
}

.land-block .project-card h3,
.land-block .article-card h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.land-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

.land-block--ember .luxury-button {
  min-width: 140px;
}

/* slimmer connective tissue between distinct panels */
.land-divider {
  width: clamp(40px, 8vw, 120px);
  height: 1px;
  border: 0;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34) 50%, transparent);
  opacity: 0.6;
}

.land-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 3vw, 44px);
}

/* project / article grids inside panels sit above the panel's glow + bring spacing */
.land-block .project-grid,
.land-block .article-list {
  position: relative;
  z-index: 1;
  margin-top: clamp(28px, 3.4vw, 52px);
}

/* cards within a panel inherit the section accent for their top bar + glow */
.land-block .project-card::after,
.land-block .article-card::after {
  background: linear-gradient(90deg, var(--accent-1),
    color-mix(in srgb, var(--accent-1) 25%, transparent));
}

.land-block .project-card:hover,
.land-block .article-card:hover,
.land-block .project-card:focus-within,
.land-block .article-card:focus-within {
  border-color: color-mix(in srgb, var(--accent-1) 36%, var(--line-strong));
}

.land-block .project-card a,
.land-block .article-card a {
  color: color-mix(in srgb, var(--accent-1) 60%, var(--text));
}

/* ---------- Featured Work card (the hero of the grid) ---------- */

.project-card.is-featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(240px, 26vw, 340px);
  padding: clamp(30px, 3.4vw, 48px);
  border-radius: clamp(20px, 2vw, 28px);
  border-color: color-mix(in srgb, var(--accent-1) 30%, var(--line-strong));
  background:
    radial-gradient(110% 130% at 88% 6%, color-mix(in srgb, var(--accent-1) 6%, transparent), transparent 56%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.003) 50%),
    rgba(12, 13, 16, 0.07);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px color-mix(in srgb, var(--accent-1) 22%, transparent),
    0 24px 80px color-mix(in srgb, var(--accent-1) 22%, transparent);
}

.project-card.is-featured h3 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.project-card.is-featured p {
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
}

.project-card.is-featured .project-type {
  color: color-mix(in srgb, var(--accent-1) 75%, var(--text));
}

.project-card.is-featured:hover,
.project-card.is-featured:focus-within {
  transform: translateY(-8px) translateZ(40px) scale(1.012);
  border-color: color-mix(in srgb, var(--accent-1) 55%, var(--line-strong));
  box-shadow:
    var(--shadow-card-hover),
    0 0 0 1px color-mix(in srgb, var(--accent-1) 40%, transparent),
    0 36px 110px color-mix(in srgb, var(--accent-1) 34%, transparent);
}

/* ---------- Decorative glowing orb ---------- */

.land-orb {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -6vw, -40px);
  width: clamp(280px, 34vw, 520px);
  height: clamp(280px, 34vw, 520px);
  transform: translateY(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  filter: blur(2px);
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, color-mix(in srgb, var(--accent-1) 60%, transparent) 41%, transparent 58%),
    conic-gradient(from 0deg,
      var(--accent-1),
      color-mix(in srgb, var(--accent-1) 10%, transparent) 30%,
      transparent 55%,
      color-mix(in srgb, var(--accent-1) 40%, transparent) 80%,
      var(--accent-1));
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 40%, #000 60%, transparent 64%);
  mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 40%, #000 60%, transparent 64%);
  animation: orbSpin 38s linear infinite;
}

.land-orb::before {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--accent-1) 55%, #fff), var(--accent-1) 42%, transparent 72%);
  filter: blur(14px);
  opacity: 0.7;
}

@keyframes orbSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ---------- Background depth (lift off flat black) ---------- */

body {
  background:
    radial-gradient(circle at 20% 12%, rgba(88, 212, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(234, 129, 32, 0.05), transparent 24%),
    radial-gradient(140% 120% at 50% -10%, rgba(28, 34, 44, 0.55), transparent 55%),
    linear-gradient(180deg, #0b0d11 0%, var(--bg) 38%, #060606 100%);
}

/* ---------- Glassmorphism cards (depth, restraint) ---------- */

.project-card,
.article-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006) 46%),
    rgba(12, 13, 16, 0.16);
  backdrop-filter: blur(7px) saturate(1.08);
  -webkit-backdrop-filter: blur(7px) saturate(1.08);
  transform: translateZ(0);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}

/* layered gradient hairline border (over the existing accent ::after bar) */
.project-card::before,
.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover,
.article-card:hover,
.project-card:focus-within,
.article-card:focus-within {
  transform: translateY(-6px) translateZ(28px) scale(1.012);
  box-shadow: var(--shadow-card-hover);
}

body.particle-ui .project-card,
body.particle-ui .article-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.002) 46%),
    rgba(8, 8, 8, 0.055);
  backdrop-filter: blur(1.5px) saturate(1.03);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.03);
}

/* ---------- Inner-page cinematic gradient glass blocks ---------- */
.inner-glass-panel,
.inner-glass-card,
.inner-page-contact .panel-keep-original {
  --inner-accent: #74d4ff;
  --inner-accent-soft: rgba(116, 212, 255, 0.18);
  --inner-accent-glow: rgba(116, 212, 255, 0.12);
  --inner-accent-deep: rgba(14, 33, 52, 0.22);
  --inner-highlight: rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--inner-accent) 20%, rgba(255, 255, 255, 0.16));
  background:
    radial-gradient(140% 115% at 0% 0%, var(--inner-accent-soft), transparent 44%),
    radial-gradient(120% 130% at 100% 0%, color-mix(in srgb, var(--inner-accent) 10%, transparent), transparent 52%),
    linear-gradient(112deg,
      rgba(18, 39, 56, 0.30) 0%,
      rgba(13, 28, 43, 0.18) 38%,
      rgba(9, 16, 28, 0.10) 72%,
      rgba(8, 11, 20, 0.06) 100%),
    linear-gradient(180deg, var(--inner-highlight), transparent 42%),
    var(--inner-accent-deep);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.16),
    0 0 0 1px color-mix(in srgb, var(--inner-accent) 8%, transparent),
    0 18px 42px var(--inner-accent-glow);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

/* Luminous full-perimeter accent border (the signature edge-light from the brief). */
.inner-glass-panel::after,
.inner-glass-card::after,
.inner-page-contact .panel-keep-original::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--inner-accent) 95%, #ffffff) 0%,
    color-mix(in srgb, var(--inner-accent) 45%, transparent) 26%,
    rgba(255, 255, 255, 0.04) 52%,
    color-mix(in srgb, var(--inner-accent) 55%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* Soft corner light bleeding into the block, like the reference hero. */
.inner-glass-panel::before,
.inner-glass-card::before,
.inner-page-contact .panel-keep-original::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -12%;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%,
    color-mix(in srgb, var(--inner-accent) 60%, transparent),
    transparent 64%);
  opacity: 0.4;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

.inner-glass-panel--cyan {
  --inner-accent: #74d4ff;
  --inner-accent-soft: rgba(116, 212, 255, 0.20);
  --inner-accent-glow: rgba(116, 212, 255, 0.12);
  --inner-accent-deep: rgba(13, 36, 56, 0.22);
}

.inner-glass-panel--amber {
  --inner-accent: #d6c79a;
  --inner-accent-soft: rgba(214, 199, 154, 0.16);
  --inner-accent-glow: rgba(214, 199, 154, 0.1);
  --inner-accent-deep: rgba(37, 33, 24, 0.2);
}

.inner-glass-panel--violet {
  --inner-accent: #8fa8ff;
  --inner-accent-soft: rgba(143, 168, 255, 0.18);
  --inner-accent-glow: rgba(143, 168, 255, 0.11);
  --inner-accent-deep: rgba(20, 26, 48, 0.2);
}

.inner-glass-panel--ember {
  --inner-accent: #dca77f;
  --inner-accent-soft: rgba(220, 167, 127, 0.16);
  --inner-accent-glow: rgba(220, 167, 127, 0.1);
  --inner-accent-deep: rgba(40, 28, 22, 0.2);
}

/* Per-page base mood — different, but all within the same cinematic family. */
.inner-page-about .inner-glass-panel,
.inner-page-about .inner-glass-card {
  --inner-accent: #76d7ff;
  --inner-accent-soft: rgba(118, 215, 255, 0.20);
  --inner-accent-glow: rgba(118, 215, 255, 0.12);
  --inner-accent-deep: rgba(13, 38, 58, 0.22);
}

.inner-page-projects .inner-glass-panel,
.inner-page-projects .inner-glass-card {
  --inner-accent: #d6c79a;
  --inner-accent-soft: rgba(214, 199, 154, 0.16);
  --inner-accent-glow: rgba(214, 199, 154, 0.1);
  --inner-accent-deep: rgba(36, 32, 23, 0.2);
}

.inner-page-blog .inner-glass-panel,
.inner-page-blog .inner-glass-card {
  --inner-accent: #8fb1ff;
  --inner-accent-soft: rgba(143, 177, 255, 0.18);
  --inner-accent-glow: rgba(143, 177, 255, 0.11);
  --inner-accent-deep: rgba(18, 28, 48, 0.2);
}

.inner-page-contact .inner-glass-panel,
.inner-page-contact .inner-glass-card,
.inner-page-contact .panel-keep-original {
  --inner-accent: #d8b49b;
  --inner-accent-soft: rgba(216, 180, 155, 0.16);
  --inner-accent-glow: rgba(216, 180, 155, 0.1);
  --inner-accent-deep: rgba(40, 30, 25, 0.2);
}

/* Subtle per-block variation inside each page, still restrained like the reference. */
.inner-page-about .inner-glass-panel:nth-of-type(3n + 2),
.inner-page-about .inner-glass-card:nth-of-type(3n + 2) {
  --inner-accent: #97e3dc;
  --inner-accent-soft: rgba(151, 227, 220, 0.16);
  --inner-accent-glow: rgba(151, 227, 220, 0.1);
  --inner-accent-deep: rgba(13, 38, 40, 0.2);
}

.inner-page-about .inner-glass-panel:nth-of-type(3n),
.inner-page-about .inner-glass-card:nth-of-type(3n) {
  --inner-accent: #9bb0f4;
  --inner-accent-soft: rgba(155, 176, 244, 0.16);
  --inner-accent-glow: rgba(155, 176, 244, 0.1);
  --inner-accent-deep: rgba(18, 29, 48, 0.2);
}

.inner-page-projects .inner-glass-card:nth-of-type(4n + 2),
.inner-page-projects .inner-glass-panel:nth-of-type(4n + 2) {
  --inner-accent: #d8b49b;
  --inner-accent-soft: rgba(216, 180, 155, 0.15);
  --inner-accent-glow: rgba(216, 180, 155, 0.1);
  --inner-accent-deep: rgba(40, 29, 24, 0.2);
}

.inner-page-projects .inner-glass-card:nth-of-type(4n + 3),
.inner-page-projects .inner-glass-panel:nth-of-type(4n + 3) {
  --inner-accent: #cbb88c;
  --inner-accent-soft: rgba(203, 184, 140, 0.15);
  --inner-accent-glow: rgba(203, 184, 140, 0.1);
  --inner-accent-deep: rgba(35, 32, 24, 0.2);
}

.inner-page-projects .inner-glass-card:nth-of-type(4n),
.inner-page-projects .inner-glass-panel:nth-of-type(4n) {
  --inner-accent: #bfc8dc;
  --inner-accent-soft: rgba(191, 200, 220, 0.14);
  --inner-accent-glow: rgba(191, 200, 220, 0.09);
  --inner-accent-deep: rgba(22, 28, 39, 0.2);
}

.inner-page-blog .inner-glass-card:nth-of-type(4n + 2),
.inner-page-blog .inner-glass-panel:nth-of-type(4n + 2) {
  --inner-accent: #c6b6e9;
  --inner-accent-soft: rgba(198, 182, 233, 0.15);
  --inner-accent-glow: rgba(198, 182, 233, 0.1);
  --inner-accent-deep: rgba(26, 24, 42, 0.2);
}

.inner-page-blog .inner-glass-card:nth-of-type(4n + 3),
.inner-page-blog .inner-glass-panel:nth-of-type(4n + 3) {
  --inner-accent: #91c6ef;
  --inner-accent-soft: rgba(145, 198, 239, 0.15);
  --inner-accent-glow: rgba(145, 198, 239, 0.1);
  --inner-accent-deep: rgba(17, 31, 45, 0.2);
}

.inner-page-blog .inner-glass-card:nth-of-type(4n),
.inner-page-blog .inner-glass-panel:nth-of-type(4n) {
  --inner-accent: #a6a8de;
  --inner-accent-soft: rgba(166, 168, 222, 0.15);
  --inner-accent-glow: rgba(166, 168, 222, 0.1);
  --inner-accent-deep: rgba(20, 24, 43, 0.2);
}

.inner-page-contact .inner-glass-panel:nth-of-type(3n + 2),
.inner-page-contact .inner-glass-card:nth-of-type(3n + 2),
.inner-page-contact .panel-keep-original:nth-of-type(3n + 2) {
  --inner-accent: #e0c69f;
  --inner-accent-soft: rgba(224, 198, 159, 0.14);
  --inner-accent-glow: rgba(224, 198, 159, 0.09);
  --inner-accent-deep: rgba(42, 34, 24, 0.2);
}

.inner-page-contact .inner-glass-panel:nth-of-type(3n),
.inner-page-contact .inner-glass-card:nth-of-type(3n),
.inner-page-contact .panel-keep-original:nth-of-type(3n) {
  --inner-accent: #c8b6d8;
  --inner-accent-soft: rgba(200, 182, 216, 0.14);
  --inner-accent-glow: rgba(200, 182, 216, 0.09);
  --inner-accent-deep: rgba(31, 24, 36, 0.2);
}

.inner-page .panel h1,
.inner-page .panel h2,
.inner-page .project-card h2,
.inner-page .article-card h2 {
  color: rgba(250, 247, 241, 0.98);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.inner-page .panel p,
.inner-page .panel li,
.inner-page .project-card p,
.inner-page .article-card p {
  color: rgba(244, 241, 234, 0.88);
}

.inner-page .section-tag,
.inner-page .project-type {
  color: rgba(255, 245, 224, 0.82);
}

.inner-page .panel a,
.inner-page .project-card a,
.inner-page .article-card a {
  color: rgba(255, 251, 244, 0.98);
}

.inner-page .bullet-list li::marker {
  color: rgba(255, 245, 224, 0.78);
}

/* Leave the social panel on Contact exactly on its old styling. */
.panel-keep-original,
body.particle-ui .panel-keep-original {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-keep-original::after {
  content: none;
}

/* Projects page: hide raw-link feel and move actions into button-like CTAs. */
.project-actions {
  margin: 18px 0 0;
}

.project-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 46%, rgba(0, 0, 0, 0.06)),
    rgba(10, 12, 18, 0.28);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 8px 0 rgba(5, 6, 10, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.14);
  color: rgba(255, 250, 242, 0.98);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(0) translateZ(0);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.project-cta-button:hover,
.project-cta-button:focus-visible {
  transform: translateY(2px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 46%, rgba(0, 0, 0, 0.05)),
    rgba(10, 12, 18, 0.34);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 4px 0 rgba(5, 6, 10, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 28px rgba(255, 255, 255, 0.06);
  outline: none;
}

.project-cta-button--hero {
  min-width: 190px;
}

/* ---------- Focus visibility (a11y) ---------- */

a:focus-visible {
  outline: 2px solid rgba(88, 212, 255, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}

@keyframes ambientFloat {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(1%, 1.5%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(2%, -1%, 0) scale(1.08);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root {
    --space: clamp(36px, 5vw, 64px);
  }

  .luxury-hero,
  .luxury-bottom-row,
  .luxury-links,
  .project-grid,
  .project-grid-page,
  .split-section {
    grid-template-columns: 1fr;
  }

  .luxury-hero-visual {
    min-height: 620px;
  }

  .landing-panel-section {
    grid-template-columns: 1fr;
  }

  .landing-page-block--section {
    justify-self: center;
    width: min(100%, 620px);
    transform: perspective(950px) rotateX(7deg) rotateY(-8deg);
  }

  .portrait-shell {
    left: 72%;
    width: min(60vw, 620px);
    height: 105%;
  }

  .luxury-links {
    gap: 0;
  }

  .luxury-links a {
    border-top: 1px solid var(--line);
    padding: 18px 4px;
  }

  .luxury-links a:first-child {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .luxury-shell {
    width: min(100% - 18px, 1320px);
  }

  /* nav wraps onto its own line under the brand, never crashing into it */
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav {
    width: 100%;
    gap: 16px 20px;
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 6px 0;
  }

  .luxury-hero {
    gap: 8px;
    min-height: auto;
  }

  .luxury-hero-copy {
    padding: 4px 0;
    order: 1;
  }

  /* portrait sits below the copy on phones, sized so it never dominates */
  .luxury-hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    min-height: 64vw;
    max-height: 460px;
  }

  .landing-panel-section {
    min-height: auto;
  }

  .landing-page-block--section {
    width: min(100%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 28px;
    transform: perspective(820px) rotateX(5deg) rotateY(-5deg);
  }

  .landing-page-card {
    min-height: clamp(112px, 26vw, 148px);
    border-radius: 22px;
  }

  .luxury-title {
    font-size: clamp(3.6rem, 17vw, 6.4rem);
  }

  .luxury-subtitle {
    font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  }

  .three-hero-scene {
    inset: 2% -4% -6% -4%;
  }

  .portrait-shell {
    left: 50%;
    width: min(92vw, 480px);
    height: 104%;
  }

  /* CTAs become comfortable full-width tap targets that wrap cleanly */
  .luxury-actions {
    gap: 12px;
  }

  .luxury-actions .luxury-button {
    flex: 1 1 100%;
  }

  .luxury-button {
    min-height: 48px;
    padding: 14px 24px;
  }

  .luxury-bottom-row {
    gap: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* ---- inner pages: comfortable single-column padding ---- */
  .panel {
    padding: clamp(22px, 6vw, 32px);
    border-radius: 20px;
  }

  /* ---- landing showcase panels ---- */
  .land-block {
    min-height: auto;
    border-radius: clamp(18px, 4vw, 24px);
    padding: clamp(30px, 8vw, 48px) clamp(20px, 6vw, 32px);
  }

  .land-block::after {
    width: 70%;
    height: 50%;
  }

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

  .land-title {
    font-size: clamp(2.3rem, 9vw, 3.6rem);
  }

  .project-card.is-featured {
    min-height: auto;
  }

  .land-index {
    top: -0.25em;
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

  /* CTA buttons inside panels go full-width too for easy tapping */
  .land-cta {
    gap: 12px;
  }

  .land-cta .luxury-button {
    flex: 1 1 100%;
  }

  /* orb pulled in tight / dimmed so it never overflows a narrow panel */
  .land-orb {
    right: -34%;
    width: 64vw;
    height: 64vw;
    opacity: 0.38;
  }
}

/* ---------- Tablets (481–820px): keep two-up where it reads well ---------- */

@media (min-width: 481px) and (max-width: 820px) {
  .project-grid-page,
  .split-section,
  .land-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* project-grid (homepage showcase, 3-up) stays single-column for breathing room */
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* CTAs need not be full-width on roomier tablets */
  .luxury-actions .luxury-button,
  .land-cta .luxury-button {
    flex: 0 1 auto;
  }
}

/* ---------- Small phones (320–480px) ---------- */

@media (max-width: 480px) {
  /* guard against any horizontal overflow on the smallest screens */
  html,
  body {
    overflow-x: hidden;
  }

  .site-shell,
  .luxury-shell {
    width: min(100% - 14px, 1320px);
    padding: 18px 0 36px;
  }

  /* nav: tighter type/letter-spacing so 5 links fit two comfortable rows */
  .brand {
    font-size: 1.4rem;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .main-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }

  /* hero copy stays readable; title clamps so the name never overflows */
  .luxury-title {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-kicker {
    margin-bottom: 16px;
    letter-spacing: 0.16em;
  }

  .luxury-rule {
    margin: 22px 0 22px;
  }

  .luxury-actions {
    margin-top: 26px;
  }

  .luxury-hero-visual {
    min-height: 72vw;
    max-height: 380px;
  }

  .landing-page-block--section {
    padding: 14px;
    gap: 12px;
    transform: none;
  }

  .landing-page-card {
    padding: 16px;
  }

  .landing-page-card-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .portrait-shell {
    width: min(96vw, 380px);
  }

  /* keep the scene inside the viewport — no negative-inset overflow */
  .three-hero-scene {
    inset: 2% 0 -4% 0;
  }

  /* landing panels: tighter radius + padding, smaller numerals/titles */
  .land-block {
    border-radius: 16px;
    padding: clamp(26px, 7vw, 36px) clamp(16px, 5vw, 22px);
    scroll-margin-top: 72px;
  }

  .land-index {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
    top: -0.18em;
  }

  .land-title {
    font-size: clamp(2rem, 8.4vw, 3rem);
  }

  .land-lead {
    font-size: 1rem;
  }

  .project-card,
  .article-card {
    border-radius: 16px;
    padding: 22px;
  }

  .project-card.is-featured {
    padding: 24px;
  }

  .project-card.is-featured h3 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  /* inner-page hero headline scaled for narrow measure */
  .page-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .panel {
    padding: 20px;
    border-radius: 16px;
  }

  /* hero link list: roomier rows, smaller serif so arrows never wrap */
  .luxury-links a {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
    padding: 16px 2px;
  }

  .land-orb {
    display: none;
  }
}

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

  body::after,
  .site-particles-glow {
    animation: none;
  }

  .luxury-button,
  .project-card,
  .article-card,
  .main-nav a,
  .main-nav a::after,
  .luxury-links a,
  .luxury-links a::after,
  .project-card::after,
  .article-card::after,
  .land-block-inner {
    transition: none;
  }

  /* disable 3D / parallax depth — keep layout flat and static */
  .luxury-main {
    perspective: none;
  }

  .land-block {
    perspective: none;
  }

  .land-block-inner,
  .land-index {
    transform: none;
  }

  .project-card:hover,
  .article-card:hover,
  .project-card:focus-within,
  .article-card:focus-within {
    transform: translateY(-4px);
  }

  /* kill decorative + showcase motion and 3D depth */
  .land-orb {
    animation: none;
  }

  .project-card.is-featured:hover,
  .project-card.is-featured:focus-within {
    transform: translateY(-4px);
  }
}

/* ---------- Scroll progress light ---------- */

.scroll-line {
  --scroll-progress: 0;
  position: fixed;
  top: 18vh;
  right: clamp(10px, 1.4vw, 24px);
  width: 3px;
  height: 64vh;
  z-index: 20;
  pointer-events: none;
}

.scroll-line__rail,
.scroll-line__traveler {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
}

.scroll-line__rail {
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.scroll-line__traveler {
  top: 0;
  height: clamp(72px, 12vh, 112px);
  background: linear-gradient(180deg, transparent, #58d4ff 30%, #f4f1ea 62%, #ea8120);
  box-shadow:
    0 0 8px rgba(88, 212, 255, 0.95),
    0 0 22px rgba(88, 212, 255, 0.62),
    0 0 42px rgba(234, 129, 32, 0.28);
  will-change: transform;
}

.scroll-line__head {
  position: absolute;
  right: 50%;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff8e8;
  box-shadow:
    0 0 7px #fff,
    0 0 16px #58d4ff,
    0 0 28px #ea8120;
  transform: translateX(50%);
}

@media (max-width: 720px) {
  .scroll-line {
    top: 22vh;
    right: 5px;
    height: 56vh;
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line {
    display: none;
  }
}

/* 3D Social Icons */
.contact-social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 25px;
  justify-items: center;
}

.social-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-icon-3d {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  position: relative;
}

.social-icon-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon-3d:hover::before {
  opacity: 1;
}

.social-icon-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

.social-icon-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.3s ease;
}

.social-icon-wrapper:hover .social-icon-label {
  color: var(--text);
}

.contact-social-icons-fallback {
  margin-top: 25px;
}

.contact-social-icons-fallback p {
  margin: 15px 0;
}

@media (max-width: 760px) {
  .contact-social-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .social-icon-3d {
    width: 100px;
    height: 100px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .contact-social-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .social-icon-3d {
    width: 90px;
    height: 90px;
    border-radius: 12px;
  }

  .social-icon-label {
    font-size: 0.8rem;
  }
}
