:root {
  --bg-main: #fdfaf6;
  --bg-accent: #e0f2fe;
  --bg-soft: #ecfdf5;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0f766e;
  --brand-strong: #0b5e58;
  --line: #dbe4ef;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-main) 0%, var(--bg-accent) 45%, var(--bg-soft) 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
}

body::before {
  width: 280px;
  height: 280px;
  background: #fcd34d;
  top: -90px;
  right: -80px;
}

body::after {
  width: 340px;
  height: 340px;
  background: #67e8f9;
  bottom: -140px;
  left: -120px;
}

body[data-bg-design] {
  transition: background 280ms ease;
}

body[data-bg-design="dawn"] {
  background:
    radial-gradient(circle at 18% 16%, rgba(252, 211, 77, 0.4) 0%, rgba(252, 211, 77, 0) 38%),
    radial-gradient(circle at 84% 20%, rgba(251, 146, 60, 0.34) 0%, rgba(251, 146, 60, 0) 30%),
    linear-gradient(155deg, #fff7ed 0%, #fde68a 38%, #ffedd5 100%);
}

body[data-bg-design="dawn"]::before {
  width: 320px;
  height: 320px;
  background: rgba(251, 146, 60, 0.55);
  top: -100px;
  right: -85px;
}

body[data-bg-design="dawn"]::after {
  width: 360px;
  height: 360px;
  background: rgba(251, 191, 36, 0.45);
  bottom: -150px;
  left: -130px;
}

body[data-bg-design="blueprint"] {
  background-color: #eff6ff;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 82% 16%, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 40%),
    linear-gradient(140deg, #f8fbff 0%, #e0f2fe 45%, #eef2ff 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body[data-bg-design="blueprint"]::before {
  width: 300px;
  height: 300px;
  background: rgba(14, 165, 233, 0.34);
  top: -100px;
  right: -90px;
}

body[data-bg-design="blueprint"]::after {
  width: 360px;
  height: 360px;
  background: rgba(99, 102, 241, 0.22);
  bottom: -140px;
  left: -120px;
}

body[data-bg-design="linen"] {
  background-color: #f8f5ee;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(148, 163, 184, 0.08),
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(150deg, #fffaf0 0%, #f8f5ee 45%, #f1f5f9 100%);
}

body[data-bg-design="linen"]::before {
  width: 280px;
  height: 280px;
  background: rgba(251, 191, 36, 0.3);
  top: -95px;
  right: -75px;
}

body[data-bg-design="linen"]::after {
  width: 320px;
  height: 320px;
  background: rgba(56, 189, 248, 0.22);
  bottom: -130px;
  left: -115px;
}

body[data-bg-design="sunset"] {
  background:
    radial-gradient(circle at 18% 14%, rgba(251, 146, 60, 0.45) 0%, rgba(251, 146, 60, 0) 36%),
    radial-gradient(circle at 78% 10%, rgba(244, 63, 94, 0.26) 0%, rgba(244, 63, 94, 0) 34%),
    linear-gradient(160deg, #fff7ed 0%, #fed7aa 38%, #fecaca 100%);
}

body[data-bg-design="sunset"]::before {
  width: 340px;
  height: 340px;
  background: rgba(249, 115, 22, 0.42);
  top: -120px;
  right: -90px;
}

body[data-bg-design="sunset"]::after {
  width: 380px;
  height: 380px;
  background: rgba(244, 63, 94, 0.22);
  bottom: -165px;
  left: -130px;
}

body[data-bg-design="topo"] {
  background-color: #f0fdfa;
  background-image:
    repeating-radial-gradient(circle at 14% 22%, rgba(13, 148, 136, 0.16) 0 2px, transparent 2px 14px),
    repeating-radial-gradient(circle at 82% 78%, rgba(56, 189, 248, 0.12) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, #f8fffc 0%, #ccfbf1 50%, #e0f2fe 100%);
  background-size: 540px 540px, 480px 480px, auto;
}

body[data-bg-design="topo"]::before {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.28);
  top: -95px;
  right: -80px;
}

body[data-bg-design="topo"]::after {
  width: 350px;
  height: 350px;
  background: rgba(14, 165, 233, 0.2);
  bottom: -150px;
  left: -130px;
}

body[data-bg-design="studio"] {
  background-color: #fffdf7;
  background-image:
    linear-gradient(125deg, rgba(251, 191, 36, 0.18) 0 22%, transparent 22% 100%),
    linear-gradient(305deg, rgba(14, 165, 233, 0.16) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.04) 0 28%, transparent 29%),
    linear-gradient(150deg, #fffef8 0%, #fef3c7 48%, #e0f2fe 100%);
}

body[data-bg-design="studio"]::before {
  width: 290px;
  height: 290px;
  background: rgba(234, 179, 8, 0.36);
  top: -95px;
  right: -75px;
}

body[data-bg-design="studio"]::after {
  width: 340px;
  height: 340px;
  background: rgba(6, 182, 212, 0.2);
  bottom: -135px;
  left: -120px;
}

body[data-bg-design="tide"] {
  background-color: #ecfeff;
  background-image:
    repeating-linear-gradient(
      165deg,
      rgba(6, 182, 212, 0.1) 0 12px,
      rgba(14, 116, 144, 0.06) 12px 24px,
      transparent 24px 42px
    ),
    radial-gradient(circle at 85% 15%, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0) 42%),
    linear-gradient(145deg, #f0fdfa 0%, #cffafe 44%, #e2e8f0 100%);
}

body[data-bg-design="tide"]::before {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.32);
  top: -100px;
  right: -85px;
}

body[data-bg-design="tide"]::after {
  width: 360px;
  height: 360px;
  background: rgba(20, 184, 166, 0.2);
  bottom: -150px;
  left: -120px;
}

body[data-bg-design="paper"] {
  background-color: #faf8f2;
  background-image:
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.05) 0 1px, transparent 1px 8px),
    linear-gradient(155deg, #fffaf0 0%, #f8f5ee 55%, #f1f5f9 100%);
}

body[data-bg-design="paper"]::before {
  width: 280px;
  height: 280px;
  background: rgba(245, 158, 11, 0.2);
  top: -90px;
  right: -70px;
}

body[data-bg-design="paper"]::after {
  width: 320px;
  height: 320px;
  background: rgba(125, 211, 252, 0.2);
  bottom: -130px;
  left: -110px;
}

body[data-bg-design="blank"] {
  background: #faf9f6;
}

body[data-bg-design="blank"]::before,
body[data-bg-design="blank"]::after {
  content: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-nav {
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: all 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--brand-strong);
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.hero {
  padding: 2rem 2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-tag {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.13);
  color: var(--brand-strong);
  font-size: 0.79rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-title {
  margin-bottom: 0.4rem;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  color: var(--muted);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.brand-mark {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.panel {
  margin-top: 1.2rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.panel h2 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.panel h3 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.copy p,
.copy li,
.muted-note {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
}

.copy p + p {
  margin-top: 0.85rem;
}

.interest-list {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.interest-list li + li {
  margin-top: 0.4rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 180ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.linkedin-link {
  background: #7dd3fc;
  color: #082f49;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  background: #38bdf8;
  color: #082f49;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list li {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.work-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 28px rgba(15, 23, 42, 0.12);
}

.work-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbeafe;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.work-card:hover .work-thumb img,
.work-card:focus-visible .work-thumb img {
  transform: scale(1.03);
}

.work-content {
  padding: 0.95rem;
}

.work-content h3 {
  margin: 0;
  font-size: 1.07rem;
}

.work-content p {
  margin-top: 0.36rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.static-work {
  border: 1px dashed #9ca3af;
  background: rgba(248, 250, 252, 0.7);
}

.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.subheading {
  margin: 0 0 0.6rem;
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: 0.015em;
}

.video-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
}

.press-link {
  display: block;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.press-link:hover,
.press-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 22px rgba(15, 23, 42, 0.14);
}

.press-image {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-grid .press-link {
  margin-top: 0;
  height: 100%;
}

.muted-note {
  margin-top: 0.8rem;
  color: var(--muted);
}

.fade-in-up {
  animation: fade-in-up 620ms ease both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-main {
    padding-top: 1rem;
  }

  .hero,
  .panel {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .brand-mark {
    height: 28px;
  }
}
