:root {
  --bg: #05070a;
  --bg-soft: #0b0f17;
  --panel-bg: rgba(13, 17, 26, 0.75);
  --panel-bg-hover: rgba(20, 26, 38, 0.95);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f3f4f6;
  --text-soft: #a0aec0;
  --text-muted: #627285;
  --cyan: #05f2c7;
  --cyan-glow: rgba(5, 242, 199, 0.15);
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "Fira Code", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); }
body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--text); 
  font-family: var(--sans); 
  font-size: 16px; 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
  overflow-x: hidden;
  position: relative;
}

/* Background Radial Glow Tracking */
body::before {
  content: "";
  position: fixed;
  top: var(--my, 20%);
  left: var(--mx, 20%);
  width: min(60vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--indigo-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  transition: top 0.15s ease-out, left 0.15s ease-out;
}

body::after {
  content: "";
  position: fixed;
  top: calc(var(--my, 50%) + 100px);
  left: calc(var(--mx, 50%) - 100px);
  width: min(50vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  transition: top 0.2s ease-out, left 0.2s ease-out;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--cyan); color: var(--bg); }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: clamp(96px, 12vw, 180px); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* Custom Cursor styling */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .project-visual, .nav a, .contact-email-btn { cursor: none; }
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s;
  }
  .custom-cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(5, 242, 199, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out, width 0.25s, height 0.25s, border-color 0.25s, background-color 0.25s;
  }
  .custom-cursor-circle.hovered {
    width: 48px;
    height: 48px;
    border-color: var(--indigo);
    background-color: rgba(99, 102, 241, 0.12);
  }
  .custom-cursor-dot.hovered {
    background-color: var(--indigo);
    width: 8px;
    height: 8px;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--cyan), var(--indigo));
  z-index: 999;
}

/* Glassmorphic Header & Nav */
.site-header { position: fixed; inset: 18px 0 auto; z-index: 20; transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1); }
.site-header.hidden { transform: translateY(-130%); }
.nav { 
  width: min(720px, calc(100% - 32px)); 
  height: 58px; 
  padding: 6px 8px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  border: 1px solid var(--border); 
  border-radius: 100px; 
  background: rgba(11, 15, 23, 0.7); 
  backdrop-filter: blur(18px); 
  box-shadow: 0 12px 40px rgba(0,0,0,.35); 
}
.monogram { 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  display: grid; 
  place-items: center; 
  flex: 0 0 auto; 
  background: var(--text); 
  color: var(--bg); 
  font-family: var(--serif); 
  font-size: 1.15rem; 
  font-weight: 500;
  transition: transform 0.4s ease;
}
.monogram:hover {
  transform: rotate(360deg);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-contact { padding: 8px 13px; color: var(--text-soft); font-size: .8rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-contact:hover { color: var(--cyan); }
.nav-contact { margin-left: auto; color: var(--text); border: 1px solid rgba(255,255,255,.05); border-radius: 20px; background: rgba(255,255,255,.02); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.nav-contact:hover { background: rgba(5, 242, 199, 0.1); border-color: rgba(5, 242, 199, 0.3); color: var(--text); }

/* Hero Section */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); display: flex; align-items: center; }
.hero-art, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: saturate(.42) contrast(1.15) brightness(.32); transform: scale(1.05); }
.hero-shade { background: linear-gradient(90deg, rgba(5,7,10,0.96) 0%, rgba(5,7,10,0.85) 45%, rgba(5,7,10,0.4) 100%), linear-gradient(0deg, rgba(5,7,10,0.9), transparent 60%); }
.hero-grid { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); align-items: center; gap: 6vw; padding-block: 140px 100px; width: 100%; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 34px; color: var(--text-soft); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); animation: pulse-glow 2s infinite alternate; }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 4px var(--cyan); }
  100% { box-shadow: 0 0 16px var(--cyan); }
}

.hero h1 { margin: 0; font: 400 clamp(4.4rem, 9vw, 8rem)/.8 var(--serif); letter-spacing: -.05em; color: var(--text); }
.hero h1 em, h2 em, h3 em { color: var(--cyan); font-weight: 400; font-style: italic; }
.hero-role { max-width: 580px; margin: 38px 0 0; color: var(--text-soft); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; border-radius: 100px; font-size: .85rem; font-weight: 600; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.button-light { background: var(--text); color: var(--bg); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.button-light:hover { transform: translateY(-2px); background: var(--cyan); box-shadow: 0 8px 25px rgba(5, 242, 199, 0.35); }
.text-link { color: var(--text-soft); font-size: .85rem; transition: color 0.3s; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
.text-link:hover { color: var(--text); }
.text-link:hover span { transform: translateY(4px); }

/* Hero Right: Tech Console */
.hero-console-container { display: flex; align-items: center; justify-content: center; }
.console-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  font-family: var(--mono);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color .3s, transform .3s;
}
.console-card:hover {
  border-color: rgba(5, 242, 199, 0.25);
  transform: translateY(-4px);
}
.console-header {
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.console-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.console-title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .05em;
}
.console-body {
  padding: 18px;
  font-size: .78rem;
  color: #c5c9db;
  line-height: 1.5;
}
.console-line {
  margin: 0 0 10px;
}
.console-line .prompt {
  color: var(--cyan);
  margin-right: 8px;
}
.console-output {
  margin: 0 0 14px;
}
.text-success {
  color: #4ade80;
}
.console-json {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  color: #e2e8f0;
  overflow-x: auto;
}
.json-key { color: #818cf8; }
.json-val { color: var(--cyan); }
.console-logs {
  background: rgba(0,0,0,.15);
  border-left: 2px solid var(--indigo);
  padding-left: 12px;
  margin-top: 6px;
  font-size: .7rem;
  color: var(--text-soft);
}
.console-logs p {
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-index { position: absolute; z-index: 2; inset: auto 0 24px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

/* Intro / About Section */
.intro { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; }
.section-mark { display: flex; gap: 18px; color: var(--text-muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.section-mark span:first-child { color: var(--cyan); }
.section-mark.light, .section-mark.light span:first-child { color: var(--text-soft); }
.intro-copy h2, .section-heading h2, .practice h2, .visuals h2, .contact h2 { margin: 0; font: 400 clamp(3rem, 6.5vw, 6.2rem)/.95 var(--serif); letter-spacing: -.03em; }
.intro-copy h2 { max-width: 980px; }
.intro-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; max-width: 820px; margin: 72px 0 0 auto; color: var(--text-soft); font-size: 1.05rem; }
.intro-detail p { margin: 0; }

/* Projects Section */
.work { padding-top: 40px; }
.section-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; align-items: start; margin-bottom: 80px; }
.section-heading h2 { font-size: clamp(2.8rem, 5.8vw, 5.5rem); }
.project { 
  display: grid; 
  min-height: 600px; 
  margin-bottom: 48px; 
  border: 1px solid var(--border); 
  border-radius: 28px; 
  overflow: hidden; 
  background: var(--panel-bg); 
  backdrop-filter: blur(12px);
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.project:hover {
  border-color: rgba(255,255,255,.14);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.project-primary { grid-template-columns: 1.25fr .75fr; }
.project-secondary { grid-template-columns: .8fr 1.2fr; }
.project-copy { padding: clamp(34px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; margin-bottom: auto; color: var(--text-muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.project-copy h3 { margin: 45px 0 20px; font: 400 clamp(2.6rem, 4.5vw, 4.8rem)/.9 var(--serif); letter-spacing: -.03em; }
.project-copy > p { max-width: 500px; color: var(--text-soft); font-size: .95rem; }
.project-copy .role { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .92rem; }
.project-copy .role strong { display: block; margin-bottom: 4px; color: var(--text); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 26px 0 0; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px; color: var(--cyan); background: rgba(5, 242, 199, 0.03); font-family: var(--mono); font-size: .7rem; }
.project-note { margin-top: auto; padding-top: 30px; color: var(--text) !important; font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.project-note::before { content: "★"; color: var(--cyan); }
.arrow-link { margin-top: auto; padding-top: 30px; font-size: .8rem; font-weight: 600; color: var(--cyan); transition: transform 0.2s; }
.arrow-link span { display: inline-block; transition: transform .25s ease; }
.arrow-link:hover span { transform: translate(4px, -4px); }

/* Project Visual Area */
.project-visual { position: relative; min-height: 480px; overflow: hidden; }

/* JuanDerQuest API simulation visual */
.project-juander { 
  background: #06120e; 
  background-image: radial-gradient(circle at 68% 23%, rgba(5, 242, 199, 0.12), transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.network-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 24px 24px;
}
.api-console {
  width: 90%;
  max-width: 380px;
  background: rgba(5, 7, 10, 0.85);
  border: 1px solid rgba(5, 242, 199, 0.15);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--mono);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  z-index: 1;
}
.api-console-header {
  font-size: .65rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-glow 1.5s infinite alternate;
}
.log-entry {
  font-size: .7rem;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.log-time { color: var(--text-muted); }
.log-method { font-weight: 600; }
.log-method.GET { color: #4ade80; }
.log-method.POST { color: #60a5fa; }
.log-method.SEC { color: #f87171; }
.log-status { margin-left: auto; }
.status-200 { color: #4ade80; }
.status-201 { color: #60a5fa; }
.project-glyph { position: absolute; inset: auto auto -20px -20px; font: 400 clamp(8rem, 16vw, 15rem)/1 var(--serif); letter-spacing: -.08em; color: rgba(255,255,255,.02); pointer-events: none; }
.visual-caption { position: absolute; right: 24px; bottom: 20px; color: var(--text-muted); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; z-index: 2; }

/* Night Shift CCTV Horrors visual */
.project-night { display: block; background: #030508; }
.project-night img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.4) contrast(1.25); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity .8s ease; }
.project-night:hover img { transform: scale(1.05); opacity: .7; }
.night-title { position: absolute; left: 8%; bottom: 8%; color: #d9e5ee; font: 400 clamp(3.2rem, 8vw, 7.5rem)/.7 var(--serif); letter-spacing: -.05em; text-shadow: 0 8px 30px #000; z-index: 2; }
.cctv-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 0, 0, 0.15);
  box-shadow: inset 0 0 100px rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.cctv-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .65rem;
  color: #ff5f56;
  text-shadow: 0 0 6px #ff5f56;
}
.cctv-rec {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 8px #ff5f56;
  animation: blink 1s infinite alternate;
}
@keyframes blink {
  0% { opacity: 0.1; }
  100% { opacity: 1; }
}
.cctv-static {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.cctv-time {
  font-family: var(--mono);
  font-size: .65rem;
  color: #ff5f56;
  text-shadow: 0 0 6px #ff5f56;
  align-self: flex-start;
}

/* Practice Section */
.practice { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.practice-head { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 10vw; margin: 68px 0 80px; }
.practice-head p { max-width: 360px; margin: 0 0 10px; color: var(--text-soft); }

.practice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.practice-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.practice-card:hover {
  border-color: rgba(5, 242, 199, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,.3);
}
.practice-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}
.practice-top span {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: .8rem;
}
.practice-card h3 {
  margin: 0;
  font: 400 2.2rem var(--serif);
  color: var(--text);
}
.practice-card p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: .95rem;
  flex-grow: 1;
}
.practice-code-preview {
  margin: 0 0 24px;
  padding: 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border-left: 2px solid var(--cyan);
  font-family: var(--mono);
  font-size: .7rem;
  color: #cbd5e1;
  overflow-x: auto;
}
.practice-code-preview pre {
  margin: 0;
}
.practice-card small {
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .02em;
}

/* Visual Work Gallery */
.visuals-heading { grid-template-columns: .7fr 2fr 1fr; align-items: end; }
.visuals-heading p { margin: 0 0 8px; color: var(--text-soft); }
.gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 370px 370px; gap: 24px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: #080b11; border: 1px solid var(--border); transition: border-color .3s; }
.gallery figure:hover { border-color: var(--border-hover); }
.gallery-wide { grid-row: span 1; }.gallery-tall { grid-row: span 2; }
.gallery figure:last-child { grid-column: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) contrast(1.1); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter .8s ease; }
.gallery figure:hover img { transform: scale(1.03); filter: saturate(0.9); }
.gallery figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 12px; border-radius: 100px; background: rgba(5, 7, 10, 0.8); color: var(--text); font-size: .7rem; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.05); z-index: 2; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.archive-link { display: flex; justify-content: space-between; margin-top: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 500; color: var(--text-soft); transition: color .2s; }
.archive-link:hover { color: var(--cyan); }

/* Contact Section */
.contact { position: relative; overflow: hidden; background: #0c1424; color: var(--text); border-top: 1px solid var(--border); }
.contact-orbit { position: absolute; width: min(75vw, 980px); aspect-ratio: 1; right: -14vw; top: 50%; border: 1.5px dashed rgba(5, 242, 199, 0.12); border-radius: 50%; transform: translateY(-50%); animation: spin 120s linear infinite; }
.contact-orbit::before, .contact-orbit::after { content: ""; position: absolute; border: 1.5px dashed rgba(99, 102, 241, 0.08); border-radius: 50%; }
.contact-orbit::before { inset: 15%; animation: spin 80s linear infinite reverse; }
.contact-orbit::after { inset: 32%; background: rgba(5, 242, 199, 0.015); border-style: dotted; animation: spin 50s linear infinite; }

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

.contact-inner { position: relative; z-index: 1; }
.contact .kicker { color: var(--text-soft); }
.contact h2 { font-size: clamp(3.2rem, 8vw, 7.8rem); line-height: .9; }
.contact h2 em { color: var(--cyan); }

.contact-email-wrapper {
  margin-top: 50px;
}
.contact-email-btn {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 100px;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.contact-email-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 242, 199, 0.3);
  background-color: var(--panel-bg-hover);
}
.contact-email-btn .copy-icon {
  color: var(--text-muted);
  transition: color 0.3s;
  display: flex;
}
.contact-email-btn:hover .copy-icon {
  color: var(--cyan);
}

/* Toast alert popup */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(5, 7, 10, 0.9);
  color: var(--cyan);
  border: 1px solid rgba(5, 242, 199, 0.2);
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer styling */
.footer { min-height: 110px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: .75rem; border-top: 1px solid var(--border); padding-block: 40px; }
.footer div { display: flex; gap: 24px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--cyan); }

/* Reveal animations on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
[data-reveal].visible { opacity: 1; transform: none; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-content: center; gap: 40px; }
  .hero-console-container { order: 2; margin-top: 20px; }
  .hero-copy { order: 1; }
  .intro, .section-heading { grid-template-columns: 1fr; }
  .intro-copy h2, .section-heading h2 { margin-top: 30px; }
  .project-primary, .project-secondary { grid-template-columns: 1fr; }
  .project-primary .project-visual { order: 1; }.project-primary .project-copy { order: 2; }
  .project-secondary .project-copy { order: 2; }.project-secondary .project-visual { order: 1; }
  .practice-list { grid-template-columns: 1fr; gap: 20px; }
  .visuals-heading { grid-template-columns: 1fr; }.visuals-heading p { margin-top: 20px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1240px); }
  .site-header { inset-block-start: 10px; }
  .nav { width: calc(100% - 20px); height: 54px; }
  .monogram { width: 40px; height: 40px; }
  .nav-links a { display: none; }
  .nav-links a:first-child { display: block; }
  .nav-contact { padding-inline: 8px; }
  .hero-grid { padding-block: 100px 70px; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5.2rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(5,7,10,0.96) 0%, rgba(5,7,10,0.85) 60%, rgba(5,7,10,0.5)); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-index span:last-child { display: none; }
  .section { padding-block: 80px; }
  .intro-detail { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .project { min-height: 0; border-radius: 20px; }
  .project-visual { min-height: 380px; }
  .project-copy { min-height: auto; padding: 28px; }
  .project-copy h3 { margin-top: 30px; }
  .practice-head { grid-template-columns: 1fr; gap: 20px; margin: 40px 0 50px; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -12px; padding-right: 12px; gap: 16px; height: auto; grid-template-rows: none; }
  .gallery figure { min-width: 82vw; height: 440px; scroll-snap-align: start; }
  .contact-email-btn { font-size: .85rem; padding: 12px 20px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; padding-block: 28px; }
  .footer div { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body::before, body::after { display: none; }
}
