:root {
  --bg: #fff9fa;
  --bg-hero: #ffffff;
  --text: #221c1e;
  --muted: rgba(34, 28, 30, 0.7);
  --muted-light: rgba(34, 28, 30, 0.5);
  --accent: #edbec8;
  --accent-soft: rgba(237, 190, 200, 0.25);
  --border-soft: rgba(34, 28, 30, 0.08);

  --container: 1040px;
  --pad: 24px;

  --radius-pill: 999px;
  --radius-card: 24px;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 96px 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
}

/* floating pill nav */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  display: inline-flex;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #221c1e;
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
}

.nav-pill a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-pill a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  text-decoration: none;
}

/* hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 50% 10%, #fde8ee, transparent 60%),
    linear-gradient(180deg, #fff9fa, #ffffff);
  z-index: -1;
}

.hero-inner {
  display: grid;
  gap: 20px;
}

.hero-tagline {
  margin: 0;
  max-width: 40rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-name {
  margin: 0;
  font-size: clamp(64px, 10vw, 112px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-title {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-light);
}

/* metrics */
.metrics-row {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
}

.metric {
  text-align: center;
}

.metric dt {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted-light);
  text-align: center;
}

.section-label {
  margin: 0 0 32px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-light);
}

/* work: stacked cards */
.work-list {
  display: grid;
  gap: 16px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 0% 0%, rgba(237, 190, 200, 0.3), rgba(237, 190, 200, 0.06));
  border: 1px solid rgba(237, 190, 200, 0.3);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.work-card:hover {
  background: radial-gradient(circle at 0% 0%, rgba(237, 190, 200, 0.6), rgba(237, 190, 200, 0.1));
  box-shadow: 0 18px 45px rgba(237, 190, 200, 0.4);
  transform: translateY(-2px);
  border-color: rgba(237, 190, 200, 0.9);
  text-decoration: none;
}

.work-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.work-copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.work-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.work-arrow {
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.work-card:hover .work-copy h3 {
  color: #ffffff;
}

.work-card:hover .work-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* about / IRL */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.about-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.about-photos {
  position: relative;
  height: 260px;
}

.polaroid {
  position: absolute;
  width: 220px;
  padding: 10px 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.polaroid-a {
  top: 0;
  left: -24px;
  transform: rotate(-3deg);
}

.polaroid-b {
  bottom: 30px;
  right: -24px;
  transform: rotate(4deg);
}

.polaroid-image {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  object-fit: cover;
  object-position: center;
  display: block;
}

.polaroid figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-light);
  font-style: italic;
  text-align: center;
}

/* contact */
.contact-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.contact-pill-wrap {
  position: relative;
}

.lets-talk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  background: #221c1e;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 40px rgba(34, 28, 30, 0.4);
  z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lets-talk-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  color: var(--accent);
  box-shadow: 0 18px 46px rgba(237, 190, 200, 0.6);
}

/* project detail pages (Danielsun style) */
.project-main {
  padding-bottom: 120px;
}

.project-header {
  padding-top: 120px;
  padding-bottom: 40px;
}

.project-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted-light);
}

.project-back:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.project-summary {
  margin: 0;
  max-width: 46rem;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.project-hero {
  padding-bottom: 40px;
}

.project-hero-image {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, rgba(237, 190, 200, 0.5), rgba(237, 190, 200, 0.1));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 190px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, rgba(237, 190, 200, 0.4), rgba(237, 190, 200, 0.08));
}

.project-impact {
  padding-top: 60px;
}

.impact-line {
  margin: 0;
  font-size: 14px;
  color: var(--muted-light);
}

.contact-glow {
  position: absolute;
  inset: 6px -10px -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(237, 190, 200, 0.9), transparent 70%);
  opacity: 0.8;
  filter: blur(4px);
  z-index: 0;
}

.contact-email {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* footer */
.site-footer {
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--muted-light);
}

.footer-copy {
  margin: 0;
}

.footer-social {
  display: inline-flex;
  gap: 16px;
}

.footer-social a {
  color: var(--muted-light);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

/* responsive */
@media (max-width: 900px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about-photos {
    position: static;
    height: auto;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
  }
  .about-photos {
    order: 1;
  }
  .about-copy {
    order: 2;
  }
  .polaroid {
    position: static;
    transform: none;
    width: 100%;
    max-width: 220px;
  }
  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 70vh;
  }
  .section {
    padding: 72px 0;
  }
  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }
  .site-header {
    top: 10px;
  }
  .nav-pill {
    padding: 8px 14px;
    gap: 8px;
    font-size: 12px;
  }
  .work-card {
    padding: 18px 18px;
  }
}

