:root {
  --bg: #1a120b;
  --bg-soft: #241a10;
  --panel: rgba(251, 246, 234, 0.04);
  --line: rgba(251, 246, 234, 0.12);
  --fg: #fbf6ea;
  --muted: #b5a888;
  --gold: #ecdcbd;
  --gold-soft: #f6edd5;
  --sage: #7a6544;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(201, 168, 124, 0.09), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, rgba(122, 101, 68, 0.12), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(122, 101, 68, 0.09), transparent 60%);
}

a {
  color: var(--gold);
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: #1c1612;
}

/* ---------- progress bar ---------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 100;
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.09), transparent 65%);
  transform: translate(-50%, -50%);
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4vw;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: rgba(26, 18, 10, 0.75);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 4vw;
}

nav .logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

nav .logo span {
  color: var(--gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

nav ul a {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}

nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav ul a:hover {
  color: var(--fg);
}

nav ul a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- buttons (transparent liquid glass, caramel edge) ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--fg);
  background: rgba(251, 246, 234, 0.05);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(200, 142, 82, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(240, 190, 140, 0.55),
    inset 0 -1px 0 rgba(120, 70, 24, 0.4),
    inset 0 0 14px -8px rgba(200, 142, 82, 0.6),
    0 0 0 1px rgba(200, 142, 82, 0.12),
    0 10px 30px -14px rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 50% -10%, rgba(240, 196, 148, 0.42), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.btn-gold {
  background: linear-gradient(120deg, rgba(200, 142, 82, 0.16), rgba(120, 70, 24, 0.1));
  border-color: rgba(210, 158, 102, 0.7);
  color: #fdf6e8;
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(240, 196, 148, 0.35), transparent);
  transform: translateX(-130%);
  transition: transform 0.8s ease;
}

.btn-gold:hover::after {
  transform: translateX(130%);
}

.btn-ghost {
  background: rgba(251, 246, 234, 0.04);
  border-color: rgba(200, 142, 82, 0.28);
  color: var(--fg);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(210, 158, 102, 0.5);
  color: var(--gold-soft);
}

.btn:hover,
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(240, 190, 140, 0.65),
    inset 0 -1px 0 rgba(120, 70, 24, 0.42),
    0 16px 40px -14px rgba(0, 0, 0, 0.8),
    0 0 24px -6px rgba(200, 142, 82, 0.55),
    0 0 0 1px rgba(200, 142, 82, 0.3);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 18, 10, 0.55) 0%, rgba(26, 18, 10, 0.35) 45%, var(--bg) 100%),
    radial-gradient(70% 60% at 50% 40%, transparent, rgba(26, 18, 10, 0.55));
}

#aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.aurora-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #241a12, #1a120b, #271c12);
  background-size: 300% 300%;
  animation: auroraShift 18s ease infinite;
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(201, 168, 124, 0.13);
  animation: float1 16s ease-in-out infinite;
}

.orb-2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -80px;
  background: rgba(122, 101, 68, 0.16);
  animation: float2 20s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 50px) scale(1.15); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 4vw;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

.kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero p.lead {
  margin-top: 1.8rem;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.55s forwards;
}

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.scroll-hint .mouse {
  width: 1px;
  height: 44px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: drop 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes drop {
  0% { top: -50%; }
  100% { top: 120%; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 4;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.marquee span::after {
  content: "\2726";
  font-style: normal;
  font-size: 0.7rem;
  color: var(--gold);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
main {
  position: relative;
  z-index: 4;
}

section {
  padding: 8rem 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 4rem;
}

.section-head .kicker { margin-bottom: 1rem; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  max-width: 22ch;
}

.section-head p {
  margin-top: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* paralla drift (decorative letters) */
.drift {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 124, 0.18);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}

.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--gold-soft);
  font-weight: 500;
}

.stat .num sup {
  font-size: 0.5em;
  color: var(--gold);
}

.stat .label {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, background 0.4s;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 124, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.card:hover::after {
  opacity: 1;
}

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .arrow {
  margin-top: 1.4rem;
  display: inline-block;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s;
}

.card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* quote / parallax band */
.band {
  position: relative;
  max-width: 100%;
  padding: 9rem 4vw;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #1d1814, #1c1712);
  overflow: hidden;
}

.band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 auto;
}

.band blockquote .dot {
  color: var(--gold);
}

.band .attr {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- contact ---------- */
.contact-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact-wrap h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
}

.contact-wrap p {
  color: var(--muted);
  margin: 1.4rem auto 2.6rem;
  max-width: 40ch;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 4;
  background: var(--bg);
}

footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .logo {
  font-family: var(--serif);
  font-size: 1.5rem;
}

footer .logo span { color: var(--gold); }

footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

footer ul a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

footer ul a:hover { color: var(--fg); }

footer .bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

footer .bottom a { font-size: 0.8rem; }

/* ---------- legal pages ---------- */
.legal-hero {
  padding: 10rem 4vw 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.legal-hero .updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 4vw 6rem;
  position: relative;
  z-index: 4;
}

.legal-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 3rem 0 0.8rem;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  max-width: 72ch;
}

.legal-body ul {
  color: var(--muted);
  margin: 0 0 1rem 1.4rem;
}

.legal-body li { margin-bottom: 0.4rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero h1 .line span {
    transform: none;
    animation: none;
  }
  .hero p.lead,
  .hero-cta,
  .scroll-hint {
    opacity: 1;
    animation: none;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  nav ul { gap: 1.3rem; }
  nav ul li:nth-child(n+3) { display: none; }
  section { padding: 5.5rem 6vw; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}

/* ---------- portfolio: hero grid ---------- */
.nav-cta {
  padding: 0.6rem 1.35rem;
  font-size: 0.7rem;
}

.stats-band {
  padding-top: 0;
}

.stat .num.text {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  align-self: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
  align-items: center;
  max-width: 62ch;
}

/* ---------- pulse (live dots) ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 163, 127, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(109, 163, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 163, 127, 0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

.loc-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.socials a:hover {
  color: var(--fg);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ---------- section label numbers ---------- */
.sec-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-right: 0.6rem;
}

/* ---------- featured project ---------- */
.shot-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 3.5rem 0 1.5rem;
}

.shot-frame img {
  display: block;
  width: 100%;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.shot-frame:hover img {
  transform: scale(1.06);
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 16, 0.75));
  pointer-events: none;
}

.shot-meta {
  position: absolute;
  left: 1.8rem;
  bottom: 1.4rem;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.split h3, .gallery figcaption b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 1.1rem;
}

.bullets {
  list-style: none;
  margin: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.bullets li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.result-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.result-item b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.tag.gold {
  color: var(--gold);
  border-color: rgba(201, 168, 124, 0.35);
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.gallery figure {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s;
}

.gallery figure:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 124, 0.35);
}

.gallery img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top;
}

.gallery figcaption {
  padding: 1rem 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery figcaption b {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 0.15rem;
  display: block;
}

.gallery.wide figure:first-child {
  grid-column: span 1;
}

/* ---------- stack clouds ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.8rem;
}

.stack-group h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stack-group h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stack-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.stack-item:hover {
  color: var(--fg);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.stack-item img {
  width: 15px;
  height: 15px;
}

/* ---------- services rows ---------- */
.svc {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: background 0.4s, padding-left 0.4s;
}

.svc:last-of-type {
  border-bottom: 1px solid var(--line);
}

.svc:hover {
  padding-left: 1.2rem;
}

.svc .no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 124, 0.5);
}

.svc h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.svc p {
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.4rem;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--line) 92%, transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 2.6rem;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -2.36rem;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.12);
}

.tl-item .tl-date {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.tl-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
}

.tl-item p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* ---------- contact big ---------- */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.6rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.contact-links .btn-gold svg, .contact-links .btn-ghost svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- portfolio responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { gap: 3rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: auto; max-height: 320px; }
  .svc { grid-template-columns: 56px 1fr; gap: 1rem; }
}

/* ================= interactive layer ================= */

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #1a120b;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}

.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 60%, rgba(201, 168, 124, 0.1), transparent 70%);
}

.preloader.done {
  transform: translateY(-101%);
}

.pre-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.pre-brand {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 4.6rem);
  color: var(--fg);
}

.pre-brand span {
  color: var(--gold);
}

.pre-line {
  width: 200px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.pre-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform-origin: left;
  transform: scaleX(0);
}

.pre-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.2rem;
  color: var(--gold-soft);
  line-height: 1;
}

body.loading {
  overflow: hidden;
}

body.loading *,
body.loading *::before,
body.loading *::after {
  animation-play-state: paused !important;
}

/* ---------- cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  display: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(226, 207, 168, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s, border-color 0.35s;
}

.cursor-ring.active {
  width: 88px;
  height: 88px;
  background: rgba(201, 168, 124, 0.12);
  border-color: rgba(226, 207, 168, 0.9);
}

.c-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.25s;
  text-align: center;
}

.cursor-ring.active .c-label {
  opacity: 1;
}

body.cursor-on,
body.cursor-on a,
body.cursor-on .btn {
  cursor: none;
}

/* ---------- spin badge ---------- */
.spin-badge {
  position: absolute;
  right: -30px;
  top: -22px;
  width: 152px;
  height: 152px;
  z-index: 6;
}

.spin-badge svg {
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}

.spin-badge text {
  font-family: var(--sans);
  font-size: 8.2px;
  letter-spacing: 2.4px;
  fill: var(--gold);
  text-transform: uppercase;
}

.spin-star {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- scrub titles ---------- */
.scrub-title {
  overflow: hidden;
  padding-bottom: 0.15em;
}

.scrub-title .sw {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
}

.scrub-title .swi {
  display: inline-block;
  mask-image: linear-gradient(to right, #000 var(--r, 0%), transparent var(--r, 0%));
  -webkit-mask-image: linear-gradient(to right, #000 var(--r, 0%), transparent var(--r, 0%));
  will-change: mask-image, -webkit-mask-image;
}

/* ---------- magnetic ---------- */
[data-magnet] {
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, color 0.3s, border-color 0.3s, background 0.4s;
}

/* ---------- velocity skew ---------- */
.marquee {
  transform: skewX(calc(var(--vel, 0) * 3deg));
  transition: transform 0.4s ease;
}

/* ---------- horizontal scroll ---------- */
.h-scroll {
  position: relative;
  height: 360vh;
  padding: 0;
  max-width: 100%;
  margin: 0;
  overflow: clip;
}

.h-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.h-inner {
  width: 100%;
  padding: 0 4vw;
}

.h-track {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
  width: max-content;
  padding: 2rem 0 4rem;
  will-change: transform;
}

.h-track .card {
  min-width: min(56vw, 430px);
  display: flex;
  flex-direction: column;
}

.h-track .card .tags {
  margin-top: auto;
}

.h-track .card .arrow {
  margin-top: 1rem;
}

.card-end {
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
}

.h-progress {
  position: absolute;
  bottom: 3.2rem;
  left: 4vw;
  right: 4vw;
  height: 1px;
  background: var(--line);
}

.h-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* ---------- spotlight ---------- */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight img {
  display: block;
  width: 100%;
}

.s-base {
  filter: grayscale(1) contrast(0.92) brightness(0.92);
}

.s-cover {
  position: absolute;
  inset: 0;
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}

.s-cover img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.02) brightness(1.02);
}

.spotlight.show-full .s-cover {
  clip-path: none;
}

/* ---------- github board ---------- */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 0.5rem 0 0.2rem;
  box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.6);
  animation: pulse 2s infinite;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.board-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.6rem;
  background: var(--panel);
}

.board-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.board-sig {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sig-live {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.5);
  animation: pulse 2s infinite;
}

.sig-done {
  background: var(--fg);
}

.sig-hold {
  background: #8a7a60;
}

.board-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.08em;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.repo-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  background: var(--bg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.45s;
}

.repo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 124, 0.45);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.repo-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.repo-top .r-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--fg);
}

.repo-top .r-fork {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.r-desc {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.r-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.r-meta .r-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
}

.r-meta .r-lang::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.r-meta .r-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.r-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.r-topics span {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.board-empty {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- responsive interactive ---------- */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (max-width: 900px) {
  .board-grid { grid-template-columns: 1fr; }
  .h-scroll { height: auto; overflow: visible; }
  .h-sticky { position: static; height: auto; display: block; padding: 5.5rem 6vw; }
  .h-inner { padding: 0; }
  .h-track { flex-wrap: wrap; gap: 1.4rem; width: 100%; padding: 0 0 1rem; }
  .h-track .card { min-width: 100%; }
  .h-progress { display: none; }
  .spin-badge { width: 112px; height: 112px; right: -8px; top: -16px; }
  .scrub-title .swi {
    mask-image: none;
    -webkit-mask-image: none;
  }
}