@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&family=Sora:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.7);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.82);
  --line: rgba(24, 32, 48, 0.12);
  --text: #1b1f29;
  --muted: rgba(27, 31, 41, 0.6);
  --accent: #f7c4e0;
  --accent-2: #b4d6ff;
  --shadow: 0 24px 60px rgba(30, 50, 90, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Helvetica Neue", "Arial", sans-serif;
}

body {
  background:
    radial-gradient(1600px 800px at 10% -10%, rgba(90, 160, 255, 0.6), transparent 60%),
    radial-gradient(1400px 700px at 90% 0%, rgba(255, 140, 200, 0.62), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 120px 96px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 96px;
}

.logo {
  font-family: "Space Grotesk", "Helvetica Neue", "Arial", sans-serif;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 200ms ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 120px;
}

.title {
  font-family: "Space Grotesk", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.lead {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}

.meta a {
  color: var(--text);
  font-weight: 500;
}

.section {
  margin-top: 64px;
}

.section.center-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.projects-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.experience-row {
  display: flex;
  gap: 18px;
  padding-bottom: 16px;
  overflow: visible;
  margin-top: 44px;
  margin-bottom: 120px;
  flex-wrap: nowrap;
}

.chip-field {
  margin: 24px 0 120px;
}

#chip-pile {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden;
}

#chip-pile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(24, 32, 48, 0.12);
}

.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  color: #1b1f29;
  background: #ffffff;
  border: 1px solid #1b1f29;
  white-space: nowrap;
  will-change: transform;
}

.chip span {
  display: block;
}

.exp-card {
  width: auto;
  flex: 1;
  height: 360px;
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: transparent;
  border: 1px solid var(--line);
  transition: transform 240ms ease, box-shadow 240ms ease;
  position: relative;
  overflow: hidden;
  align-items: start;
  text-align: left;
}

.exp-card:nth-child(2) {
  background: transparent;
}

.exp-card:nth-child(3) {
  background: transparent;
}



.exp-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
}


.exp-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.exp-icon {
  display: grid;
  place-items: center;
  color: rgba(27, 31, 41, 0.7);
  position: relative;
  width: 100%;
  margin: 0;
  align-self: center;
}

.exp-icon svg {
  width: 46px;
  height: 46px;
}

.exp-icon img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.gradient-mask {
  animation: slow-rotate 12s linear infinite;
  transform-origin: 50% 50%;
}

.no-rotate {
  animation: none;
}

@keyframes slow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



.exp-desc {
  font-size: 14px;
  color: rgba(27, 31, 41, 0.8);
  margin: 0;
  line-height: 1.4;
}

.projects-divider {
  width: 100%;
  height: 1px;
  background: rgba(24, 32, 48, 0.12);
  margin-bottom: 44px;
}

.projects-list {
  display: grid;
}

.project-row-link {
  display: block;
  padding: 28px 40px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 200ms ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
}

.project-row-link:hover {
  background: transparent;
  border-color: var(--line);
}

.project-row-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
}

.project-text {
  display: grid;
  gap: 8px;
}

.project-name {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.project-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.project-action {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #1b1f29;
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: transform 200ms ease, border 200ms ease;
}

.project-row-link:hover .project-action {
  border-color: #1b1f29;
  transform: translateX(3px);
}

.row-divider {
  width: 100%;
  height: 1px;
  background: rgba(24, 32, 48, 0.12);
  margin-top: 28px;
}

.project-thumb {
  height: 120px;
  border-radius: 14px;
  border: none;
  background-color: transparent;
  overflow: hidden;
  box-shadow: none;
  outline: none;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}


.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
}

.case-hero {
  background: linear-gradient(160deg, rgba(180, 214, 255, 0.28), rgba(247, 196, 224, 0.22));
  border: 1px solid rgba(24, 32, 48, 0.12);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 40px;
}

.case-hero h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 300;
  margin: 0 0 12px;
}

.case-hero p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

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

.case-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(24, 32, 48, 0.12);
}

.case-card h4 {
  margin: 0 0 8px;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.case-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.case-section-title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  margin: 0 0 16px;
}

.case-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.pdf-stack {
  display: grid;
  gap: 28px;
}

.pdf-page {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(24, 32, 48, 0.12);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.image-center {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.image-center img {
  width: min(720px, 90%);
  height: auto;
  display: block;
}

.page .project-subheader {
  text-align: left;
  font-size: clamp(18px, 2.6vw, 32px);
  font-weight: 400;
  margin: 24px auto 28px;
  max-width: 820px;
}

.hl-line {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hl-line::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  height: 14px;
  bottom: 1px;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 16' preserveAspectRatio='none'><path d='M1 11 C 12 9, 22 13, 32 11 S 52 9, 62 11 S 82 13, 92 11 S 112 9, 132 11' stroke='rgba(120,182,255,0.5)' stroke-width='9' stroke-linecap='round' fill='none'/><path d='M4 11 C 14 10, 24 12, 34 11 S 54 10, 64 11 S 84 12, 94 11 S 114 10, 134 11' stroke='rgba(120,182,255,0.35)' stroke-width='6' stroke-linecap='round' fill='none' opacity='0.75'/><path d='M0 11 L6 11' stroke='rgba(120,182,255,0.45)' stroke-width='10' stroke-linecap='round' /><path d='M134 11 L140 11' stroke='rgba(120,182,255,0.45)' stroke-width='10' stroke-linecap='round' /></svg>");
}

.invoice-title {
  font-family: "Space Grotesk", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 16px auto 0;
  max-width: 820px;
  text-align: center;
  cursor: pointer;
}

.invoice-title .char {
  display: inline-block;
  transform-origin: 50% 100%;
  transition: transform 220ms ease;
}

.invoice-title:hover .char {
  animation: bounce-letter 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 30ms);
}

@keyframes bounce-letter {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-8px) rotate(-4deg);
  }
  70% {
    transform: translateY(2px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}


.case-section {
  max-width: 820px;
  margin: 40px auto 0;
  color: var(--text);
}

.case-section h2 {
  font-family: "Space Grotesk", "Helvetica Neue", "Arial", sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 14px;
}

.case-section p {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.desc {
  font-size: 14px;
  color: rgba(27, 31, 41, 0.5);
  line-height: 20px;
}

.case-section ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.insight {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px;
  border-radius: 18px;
  background: rgba(255, 140, 200, 0.2);
}

.insight-emoji {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #1b1f29;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.insight p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #1b1f29;
}

.case-section a {
  color: var(--text);
  font-weight: 600;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid rgba(24, 32, 48, 0.12);
}

.metrics-table th,
.metrics-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(24, 32, 48, 0.12);
  border-right: 1px solid rgba(24, 32, 48, 0.12);
  font-size: 15px;
  line-height: 1.6;
}

.metrics-table th:last-child,
.metrics-table td:last-child {
  border-right: none;
}

.metrics-table th {
  background: rgba(120, 182, 255, 0.18);
  font-weight: 600;
  font-size: 14px;
}

.metrics-table tr:last-child td {
  border-bottom: none;
}

.flow-title {
  font-size: 22px;
  font-weight: 400;
  margin: 18px 0 8px;
}

.case-image {
  margin-top: 16px;
  margin-bottom: 12px;
}

.media-block {
  margin-bottom: 20px;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 16px;
}

.gallery-grid img:first-child {
  grid-column: 1 / -1;
}

.gallery-grid.one-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
}

.gallery-grid.one-row img:first-child {
  grid-column: auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  height: auto;
  width: auto;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  cursor: zoom-out;
}

.case-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(120, 182, 255, 0.6);
  background: rgba(120, 182, 255, 0.08);
  color: var(--text);
  font-style: normal;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  transform: translate(-50%, -50%);
  animation: sparkle-float 800ms ease-out forwards;
  text-shadow: 0 1px 4px rgba(120, 182, 255, 0.35);
}

@keyframes sparkle-float {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -12px))) scale(0.4) rotate(12deg);
  }
}

.sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.sparkle-capture {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: transparent;
  z-index: 5;
}


@media (max-width: 900px) {
  .metrics-table,
  .metrics-table thead,
  .metrics-table tbody,
  .metrics-table th,
  .metrics-table td,
  .metrics-table tr {
    display: block;
    width: 100%;
  }

  .metrics-table thead {
    display: none;
  }

  .metrics-table tr {
    border-bottom: 1px solid rgba(24, 32, 48, 0.12);
    padding: 12px 0;
  }

  .metrics-table td {
    border: none;
    padding: 8px 0;
  }

  .metrics-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
  }
}

.footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .project-row-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 22px 80px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .title {
    font-size: 36px;
  }
}
.info-block {
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
