:root {
  --bg: #1E1A2E;
  --bg-2: #252038;
  --bg-card: #2D2845;
  --text: #F2EFE8;
  --muted: rgba(242, 239, 232, 0.56);
  --muted-2: rgba(242, 239, 232, 0.32);
  --stroke: rgba(155, 143, 212, 0.15);

  --accent: #9B8FD4;
  --accent-pink: #E84C7D;
  --accent-yellow: #F5C542;

  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 18px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(800px 500px at 30% 20%, rgba(155,143,212,0.12), transparent 60%),
              radial-gradient(900px 600px at 80% 40%, rgba(232,76,125,0.06), transparent 65%),
              var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }
.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* NAV */
.site-header { padding: 28px 0; }
.nav {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  opacity: 0.9;
}

.brand-text { line-height: 1.05; }
.brand-name {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  display: block;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  display: block;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 38px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn-download {
  padding: 6px 12px;
  border: 1px solid rgba(255, 106, 45, 0.5);
  border-radius: 999px;
  font-weight: 500;
}

/* HERO */
.hero { padding: 90px 0 80px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  width: 100%;
}
.hero-name { font-style: italic; }
.hero-tagline {
  margin-top: 0.75rem;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.cta-link { display: block; margin-top: 8px; }

/* Gradient text effects */
.gradient-cyan {
  font-style: italic;
  background: linear-gradient(90deg, #00d4ff, #7fffd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-pink {
  font-style: italic;
  background: linear-gradient(90deg, #ff69b4, #da70d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-warm {
  font-style: italic;
  background: linear-gradient(90deg, #ffd700, #ff8c00, #32cd32);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* WORK */
.work { padding: 50px 0 96px; }
.section-label {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform 160ms ease, border-color 160ms ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
}

.card[href="#"] {
  cursor: default;
}

.card[href="#"]:hover,
.card-dev-overlay:hover ~ .card-inner,
.card[href="#"]:hover .card-image {
  transform: none;
  border-color: var(--stroke);
}

.card-dev-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 10;
}

.card[href="#"]:hover .card-dev-overlay {
  opacity: 1;
}

.card-dev-overlay span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 12px 24px;
  border: 1px solid rgba(255, 106, 45, 0.5);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.card--green { background: #4f7c63; }
.card--orange { background: #ff6a2d; }

.card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 8px;
  position: relative;
}

.card-image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.card-mockup {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.card-mockup img {
  max-height: 260px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card-mockup img:first-child {
  transform: translateY(-10px);
}

.card-inner {
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1) 80%, transparent);
}

.card-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.pill {
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}
.pill--ghost { opacity: 0.75; }

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.card-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}

/* FIELD NOTES SLIDER */
.field-notes {
  padding: 80px 0;
  border-top: 1px solid var(--stroke);
}

.field-notes-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 48px;
  letter-spacing: 0.01em;
}

.slider {
  position: relative;
  min-height: 280px;
}

.slide {
  display: none;
  flex-direction: column;
  gap: 32px;
  animation: fadeSlide 280ms ease;
}

.slide.active { display: flex; }

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

.slide-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.slide-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.slide-mascot {
  height: calc(clamp(28px, 4vw, 48px) + 10px + 22px + 28px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  margin-top: 12px;
}

.slide-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 3px 8px;
  border-radius: 999px;
}

.slide-name {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-style: italic;
}

.slide-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.slide-col {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.slide-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-col-label.works  { color: #4f7c63; }
.slide-col-label.blocker { color: rgba(255,255,255,0.35); }

.slide-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 160ms ease;
  align-self: flex-start;
}
.slide-link:hover { color: var(--text); }

.slider-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  background: none;
  border: 1px solid var(--stroke);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 160ms ease, color 160ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }

.slider-dots { display: flex; gap: 8px; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
  padding: 0;
}
.dot.active {
  background: rgba(255,255,255,0.8);
  width: 20px;
}

@media (max-width: 640px) {
  .slide-body { grid-template-columns: 1fr; }
  .slide-name { font-size: clamp(24px, 7vw, 36px); }
  .field-notes { padding: 48px 0; }
  .slide-mascot { height: 64px; }
}

/* FOOTER */
.site-footer {
  padding: 34px 0 52px;
  background: rgba(0,0,0,0.28);
  border-top: 1px solid var(--stroke);
}

.footer-top {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.footer-item {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}
.muted { color: rgba(255,255,255,0.55); }

.footer-cta {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cta-accent {
  font-style: italic;
  background: linear-gradient(90deg, #ff7a18, #b64cff, #31d17c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 70px 0 55px; }
  .hero-title {
    font-size: clamp(28px, 7vw, 38px);
  }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .card-image { padding: 16px 12px 0; }
  .card-mockup img { max-height: 160px; }
  .nav-links {
  align-items: center; gap: 22px; }
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
  align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 18px;
    transform: translateX(100%);
    transition: transform 300ms ease;
    z-index: 1000;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .btn-download {
  padding: 6px 12px;
  border: 1px solid rgba(255, 106, 45, 0.5);
  border-radius: 999px;
    padding: 12px 24px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .nav-links a {
    text-align: center;
    width: 100%;
  }
}
