:root {
  --bg: #f1e9dc;
  --panel: rgba(255, 250, 243, 0.74);
  --panel-strong: rgba(255, 248, 240, 0.92);
  --text: #15120f;
  --muted: #61584f;
  --line: rgba(21, 18, 15, 0.1);
  --line-strong: rgba(21, 18, 15, 0.18);
  --red: #ee513f;
  --yellow: #efc84c;
  --blue: #2478db;
  --shadow: 0 30px 90px rgba(34, 23, 14, 0.13);
  --shadow-soft: 0 18px 44px rgba(34, 23, 14, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(239, 200, 76, 0.3), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(36, 120, 219, 0.18), transparent 22rem),
    linear-gradient(180deg, #f7f0e6 0%, var(--bg) 48%, #ede2d2 100%);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
  z-index: 120;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(239, 81, 63, 0.16), rgba(36, 120, 219, 0.08) 42%, transparent 70%);
  filter: blur(30px);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.noise,
.orb,
.grid-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
}

.grid-veil {
  opacity: 0.22;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 8rem 8rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 75%);
}

.orb {
  filter: blur(90px);
  opacity: 0.76;
  animation: float 14s ease-in-out infinite;
}

.orb-a {
  background: radial-gradient(circle, rgba(239, 81, 63, 0.24), transparent 60%);
  transform: translate(-22%, -10%);
}

.orb-b {
  background: radial-gradient(circle, rgba(36, 120, 219, 0.18), transparent 62%);
  transform: translate(60%, 20%);
  animation-delay: -4s;
}

.topbar,
main {
  position: relative;
}

.topbar {
  z-index: 60;
  width: min(1140px, calc(100vw - 2rem));
  position: sticky;
  top: 0.8rem;
  margin: 1rem auto 0;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition:
    padding 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topbar.is-scrolled {
  padding: 0.82rem 1.15rem;
  background: rgba(255, 248, 239, 0.92);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(34, 23, 14, 0.12);
}

.brand,
.nav a,
.button,
.contact-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Syne", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  box-shadow: 0 0 0 6px rgba(239, 81, 63, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: transform 180ms ease;
}

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

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

main {
  z-index: 1;
  width: min(1140px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

section {
  margin-top: 2rem;
}

.hero,
.about,
.work,
.contact,
.signature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero::before,
.about::before,
.work::before,
.contact::before,
.signature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 35%),
    linear-gradient(315deg, rgba(239, 81, 63, 0.06), transparent 42%);
  pointer-events: none;
}

.hero {
  min-height: 84vh;
  padding: 2rem;
}

.hero-topline,
.section-head,
.hero-footer {
  position: relative;
  z-index: 1;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.mini-badges span,
.project-tag,
.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-grid,
.about-grid,
.signature {
  position: relative;
  z-index: 1;
}

.hero-grid,
.about-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: stretch;
}

.interactive-surface {
  --spot-x: 50%;
  --spot-y: 50%;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.46), transparent 34%);
  transition: opacity 220ms ease;
}

.interactive-surface:hover::after,
.interactive-surface:focus-within::after {
  opacity: 1;
}

.hero-copy {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 0.85rem 0 0.6rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.signal-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(238, 81, 63, 0.34);
  animation: pulse 2.4s infinite;
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-self: stretch;
  padding-top: 4.8rem;
}

.hero-footer {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-band {
  min-height: 5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.54);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-band span,
.hero-note-label,
.card-label,
.project-index,
.stats span,
.signature-card span {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-band strong,
.stats strong,
.signature-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.92;
}

h1 {
  max-width: 8.6ch;
  font-size: clamp(3.3rem, 6.6vw, 6.4rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-size: 1.35rem;
  line-height: 1;
}

.accent {
  display: inline-block;
  color: var(--red);
  text-shadow: 0.05em 0.05em 0 rgba(239, 200, 76, 0.72);
}

.lede,
.about-copy,
.project p,
.contact-panel p,
.card-meta,
.hero-note p,
.signature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.lede {
  max-width: 35rem;
  margin-top: 1.25rem;
  font-size: 1.06rem;
}

.hero-copy .lede::first-line {
  color: var(--text);
  font-weight: 500;
}

.hero-subnote,
.section-support {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-subnote {
  margin-top: 1rem;
  max-width: 32rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  min-height: 3.2rem;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.nav a:hover,
.nav a:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--text);
  color: #fff7ef;
  box-shadow: 0 12px 30px rgba(21, 18, 15, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.54);
}

.magnetic {
  position: relative;
}

.hero-card,
.hero-note,
.contact-panel,
.project,
.stats article,
.signature-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.hero-note,
.stats article,
.project,
.contact-panel,
.signature-card {
  padding: 1.25rem;
}

.hero-card {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 240, 0.92));
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.status-list li:first-child {
  border-top: 0;
}

.pulse-line {
  height: 0.72rem;
  margin: 1.2rem 0 1rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--yellow), var(--red), var(--blue), var(--yellow))
    0 0 / 220% 100%;
  animation: sweep 8s linear infinite;
}

.hero-note {
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 247, 236, 0.86));
}

.accent-note {
  background:
    linear-gradient(135deg, rgba(239, 200, 76, 0.14), rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 236, 0.92));
}

.hero-card,
.hero-note,
.contact-panel,
.signature-card,
.stat-card,
.project {
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.hero-note:hover,
.hero-note:focus-within,
.contact-panel:hover,
.contact-panel:focus-within,
.signature-card:hover,
.signature-card:focus-within,
.stat-card:hover,
.stat-card:focus-within {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px rgba(34, 23, 14, 0.1);
}

.about,
.work,
.contact,
.signature {
  padding: 2rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.about-grid {
  align-items: start;
}

.about-copy {
  max-width: 40rem;
  font-size: 1.08rem;
}

.stats {
  display: grid;
  gap: 1rem;
}

.work-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.project {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  z-index: -2;
}

.project::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  z-index: -1;
}

.project-one::before {
  background:
    linear-gradient(135deg, rgba(239, 200, 76, 0.4), rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 70% 20%, rgba(238, 81, 63, 0.8), transparent 28%),
    linear-gradient(180deg, #fff4e8, #e8d3bf);
}

.project-one::after {
  background: radial-gradient(circle, rgba(239, 200, 76, 0.36), transparent 70%);
}

.project-two::before {
  background:
    linear-gradient(135deg, rgba(36, 120, 219, 0.4), rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 68% 28%, rgba(238, 81, 63, 0.62), transparent 26%),
    linear-gradient(180deg, #eef4ff, #d7deec);
}

.project-two::after {
  background: radial-gradient(circle, rgba(36, 120, 219, 0.26), transparent 70%);
}

.project-three::before {
  background:
    linear-gradient(135deg, rgba(36, 120, 219, 0.24), rgba(255, 255, 255, 0) 60%),
    linear-gradient(45deg, rgba(239, 200, 76, 0.28), transparent 40%),
    linear-gradient(180deg, #f4fbff, #dfe8ec);
}

.project-three::after {
  background: radial-gradient(circle, rgba(238, 81, 63, 0.22), transparent 70%);
}

.project p {
  margin: 0.9rem 0 1.25rem;
}

.project:hover,
.project:focus-within {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 48px rgba(34, 23, 14, 0.12);
}

.project-tag {
  margin-top: auto;
  width: fit-content;
}

.project-link {
  margin-top: 0.7rem;
  width: fit-content;
  color: var(--text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
}

.signature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.signature-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.15rem;
}

.signature-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.accent-card {
  background: linear-gradient(135deg, rgba(239, 200, 76, 0.2), rgba(255, 255, 255, 0.82));
}

.marquee {
  padding: 1rem 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: marquee 18s linear infinite;
}

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

.marquee-track span::after {
  content: "•";
  margin-left: 2rem;
  color: var(--red);
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.4rem 2rem;
  padding: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 245, 233, 0.92));
}

.contact-copy {
  max-width: 36rem;
  display: grid;
  gap: 0.9rem;
}

.contact-cta {
  display: grid;
  justify-items: end;
  gap: 1rem;
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.contact-link {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  transition: letter-spacing 180ms ease, transform 180ms ease;
}

.contact-panel:hover .contact-link,
.contact-panel:focus-within .contact-link {
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sweep {
  to {
    background-position: 220% 0;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(20px) scale(1.04);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 81, 63, 0.34);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(238, 81, 63, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(238, 81, 63, 0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .work-grid,
  .signature {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .hero-footer,
  .signature-stack {
    grid-template-columns: 1fr 1fr;
    align-content: stretch;
  }

  .hero-side {
    grid-template-rows: none;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-cta {
    justify-items: start;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 8vw, 5rem);
  }
}

@media (max-width: 720px) {
  .topbar {
    width: min(100vw - 1rem, 1140px);
    top: 0.5rem;
    padding: 0.95rem 1rem;
    border-radius: 1.4rem;
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  main {
    width: min(100vw - 1rem, 1140px);
    padding: 1rem 0 3rem;
  }

  section {
    margin-top: 1rem;
  }

  .hero,
  .about,
  .work,
  .contact,
  .signature {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .mini-badges {
    justify-content: flex-start;
  }

  .hero-grid,
  .about-grid,
  .work-grid,
  .hero-side,
  .hero-footer,
  .signature-stack {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .hero-side {
    padding-top: 0;
  }

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

  h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 11vw, 4.1rem);
    line-height: 0.95;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .lede,
  .about-copy,
  .project p,
  .contact-panel p,
  .card-meta,
  .hero-note p,
  .signature-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-kicker {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project {
    min-height: 0;
  }

  .contact-panel {
    gap: 1.1rem;
  }

  .contact-cta {
    width: 100%;
    justify-items: stretch;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-link {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    overflow-wrap: anywhere;
  }

  .marquee-track {
    font-size: clamp(1.15rem, 6vw, 1.7rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-glow,
  .grid-veil {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .project:hover,
  .stat-card:hover,
  .project:focus-within,
  .button:hover,
  .button:focus-visible,
  .contact-link:hover,
  .contact-link:focus-visible,
  .nav a:hover,
  .nav a:focus-visible,
  .hero-note:hover,
  .hero-note:focus-within,
  .contact-panel:hover,
  .contact-panel:focus-within,
  .signature-card:hover,
  .signature-card:focus-within,
  .project-link:hover,
  .project-link:focus-visible {
    transform: none;
  }
}
