/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #111;
  background-color: #eef1f5;
  line-height: 1.5;
}

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

:root {
  --header-height: 72px;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --glass-shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.1);
  --glass-backdrop: blur(28px) saturate(180%);
}

.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;
}

.container {
  width: min(1300px, calc(100% - 1rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.5rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.25s ease;
}

.site-header:not(.is-open) {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-header.is-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}

.site-header.header-hidden {
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 5;
  background: transparent;
  border-bottom: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.menu-panel-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--header-height) + 0.9rem) 0.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
}

.menu-panel a {
  text-decoration: none;
  color: #051a59;
  font-weight: 700;
  text-align: right;
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.wrapper-menu {
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 330ms ease-out;
}

.wrapper-menu.open {
  transform: rotate(-45deg);
}

.line-menu {
  background-color: #051a59;
  border-radius: 5px;
  width: 100%;
  height: 2px;
}

.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}

.wrapper-menu.open .line-menu.start {
  transform: rotate(-90deg) translateX(3px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.wrapper-menu.open .line-menu.end {
  transform: rotate(-90deg) translateX(-3px);
}

.site-nav a {
  text-decoration: none;
  color: #051a59;
  font-weight: 700;
}

.site-nav a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.section > h2,
.section > .subtitle,
.skills-grid,
.contact-grid {
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  position: relative;
  height: calc(100vh + var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(93, 63, 211, 0.5), transparent 60%),
    radial-gradient(120% 90% at 80% 30%, rgba(16, 185, 129, 0.45), transparent 65%),
    radial-gradient(140% 100% at 50% 80%, rgba(255, 115, 179, 0.35), transparent 60%),
    linear-gradient(135deg, #0d1117 0%, #0b0f16 50%, #0a0e15 100%);
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 21, 0.32) 0%, rgba(10, 14, 21, 0.2) 45%, rgba(10, 14, 21, 0.26) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

.hero-content p {
  margin: 0;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0;
  line-height: 1.05;
  color: #ffffff;
}

.hero-content .light-title {
  font-weight: 300;
  font-size: 2.4rem;
  color: #ffffff;
}

.hero-mobile-break {
  display: inline;
}

.hero-typing {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  letter-spacing: 0.01em;
  text-align: center;
  margin-top: 6rem;
}

.typing-prefix {
  opacity: 0.8;
  font-weight: 300;
  display: block;
}

.typing-roller {
  position: relative;
  display: inline-block;
  width: 44ch;
  min-height: 1.3em;
}

.typing-output {
  display: inline-block;
  width: 100%;
  min-height: 1.3em;
  padding-right: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1.05em;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

html {
  scroll-behavior: smooth;
}

/* Sections & spacing */
.section {
  padding: 5rem 1.5rem;
  background: transparent;
}

#about.section {
  padding-bottom: 2.5rem;
}

.section.light {
  background-color: transparent;
}

.full-width-white {
  width: 100%;
  background-color: #ffffff;
}

#logos {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 300;
  color: #4b5563;
  line-height: 1.6;
}

.section-subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: #4b5563;
  line-height: 1.6;
}

.contact-header .section-subtitle {
  margin-bottom: 0.75rem;
}

/* Grids */
.skills-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.skills-grid-mini {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 220px);
  column-gap: 3.5rem;
  row-gap: 0.75rem;
  justify-content: center;
}

.skills-mini-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.skill-mini-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  width: 220px;
  height: 52px;
  padding: 0 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  color: #4b5563;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .skills-grid-mini {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    column-gap: 1rem;
  }

  .skill-mini-card {
    width: 100%;
    max-width: 240px;
    justify-self: center;
  }
}

.js .skill-mini-card {
  opacity: 0;
  transform: translateY(14px);
}

.js .skill-mini-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-mini-card:hover {
  transform: scale(1.06);
}


.skill-mini-icon {
  font-size: 1.1rem;
}

.skill-mini-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(360px, 720px);
  align-items: start;
  gap: 2rem;
  justify-items: stretch;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 220px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: none;
  align-self: start;
  justify-self: end;
  margin-top: 1.2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.30;
  font-weight: 300;
  max-width: 100ch;
  margin: 0 auto;
  text-align: left;
}

.client-logos {
  margin-top: 3rem;
  text-align: center;
}

.cv-section {
  background: #f2f3f5;
  color: #4b5563;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #d9dde3;
}

.cv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #d9dde3;
}

.cv-role {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cv-icon {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.2rem;
}

.cv-role h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b5563;
}

.cv-meta {
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 300;
}

.cv-details {
  text-align: left;
}

.cv-place {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 300;
}

.cv-date {
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 300;
}

.logos-title {
  margin: 0 0 0.9rem 0;
  font-size: 1.2rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.05rem 0.1rem;
}

.logos-grid img {
  height: 130px;
  width: 100%;
  flex: 0 0 calc(25% - 0.5rem);
  max-width: calc(25% - 0.1rem);
  object-fit: contain;
  opacity: 1;
  filter: none;
}

@media (max-width: 1000px) {
  .logos-grid {
    gap: 0.5rem 0.75rem;
  }
  .logos-grid img {
    flex: 0 0 calc(33.333% - 0.75rem);
    max-width: calc(33.333% - 0.75rem);
  }

  .cv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cv-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .cv-details {
    text-align: right;
  }
}

@media (max-width: 700px) {
  .skills-grid-mini {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .skill-mini-card {
    width: 100%;
    max-width: 320px;
    justify-self: center;
  }

  .skill-mini-more {
    display: flex;
    width: 100%;
    max-width: 320px;
    height: 52px;
    border-radius: 12px;
    align-self: center;
    justify-self: center;
  }

  .pan-frame {
    aspect-ratio: 4 / 3;
    min-height: 320px;
    padding: 0.9rem;
  }

  .pan-frame-title {
    margin: 0.5rem 0 0.75rem;
    padding-left: 0;
    font-size: 0.75rem;
  }

  .pan-frame img {
    width: 160%;
    --pan-x: 0%;
  }

}

@media (max-width: 600px) {
  .logos-grid {
    gap: 0.4rem 0.6rem;
  }
  .logos-grid img {
    flex: 0 0 calc(50% - 0.6rem);
    max-width: calc(50% - 0.6rem);
  }

  .about-text {
    text-align: center;
  }

  .project-desc-break span {
    display: block;
  }

}

.skill-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}


.skill-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tags span {
  background: #fff;
  color: #0f172a;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Project cards grid */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(60px) scale(0.985);
  transition:
    opacity 0.85s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.project-card:hover::after {
  background: rgba(0, 0, 0, 0.12);
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.project-card-content {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: transparent;
  color: #0b0f16;
  padding: 0;
  border-radius: 0;
  display: grid;
  gap: 0.2rem;
  text-align: right;
  align-items: end;
  max-width: 40%;
}

.project-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 3;
  background: transparent;
  color: #2f4f8b;
  border: 1px solid #2f4f8b;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.project-card_top .project-card-content {
  top: 12px;
  bottom: auto;
}

.project-card_right .project-card-content {
  top: auto;
  bottom: 12px;
  right: auto;
  left: 12px;
  text-align: left;
  align-items: flex-start;
}

.project-card-content h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: #4b5563;
}

.project-card-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 100%;
  line-height: 1.20;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 1 / 1;
  }

  .project-card-content {
    right: 10px;
    bottom: 10px;
    max-width: 62%;
  }

  .project-card-content h3 {
    font-size: 1.2rem;
  }

  .project-card-content p {
    font-size: 0.95rem;
  }
}

/* Contact */
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h2,
.contact-header .subtitle {
  color: #4b5563;
  font-weight: 300;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: transparent;
  padding: 0;
}

.contact-form h3 {
  margin: 0 0 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #111827;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.75rem;
  background: #000;
  color: #fff;
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-circle {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  box-shadow: none;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-circle:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: #cbd5e1;
}

.contact-circle::after {
  content: attr(data-label);
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #111827;
  color: #f8fafc;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.contact-circle:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 701px) {
  .skill-mini-more {
    display: none;
  }

  .skills-mini-actions {
    display: none;
  }
}

.skill-mini-more.contact-circle::after {
  content: none;
}

.skill-mini-more {
  animation: dice-nudge 2.2s ease-in-out infinite;
}

@keyframes dice-nudge {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-3px);
  }
  85% {
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 0.8rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px) saturate(140%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Case study */
.eyebrow {
  margin: 0;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.9rem;
}

.intro-card {
  position: relative;
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
  border-radius: 28px;
}

.intro-card .project-status-badge {
  top: 16px;
  right: 16px;
}

.intro-top {
  display: flex;
  justify-content: flex-start;
}

.intro-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}

.intro-body {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: space-between;
}

.intro-text h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  align-items: start;
}

.intro-meta .meta-label {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.intro-meta .meta-value {
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
}

.meta-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.2);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.meta-link:hover,
.meta-link:focus-visible {
  color: #0f172a;
  border-color: #0f172a;
}

.intro-visual {
  background: #0f172a;
  border-radius: 12px;
  min-height: 200px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.meta-block {
  display: grid;
  gap: 0.25rem;
}

.image-frame {
  position: relative;
  overflow: hidden;
}

.plain-frame {
  border-radius: 18px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.image-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.image-frame img.frame-align-left {
  object-position: 0% center;
}

.placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-wide {
  border-radius: 18px;
  min-height: 320px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(218, 11%, 65%);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.placeholder-tall {
  border-radius: 18px;
  min-height: 420px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.case-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.case-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.case-section {
  background: transparent;
  padding: 2.75rem 1.5rem;
  margin: 0.75rem 0;
}

.case-section .image-frame {
  background: #fff;
  box-shadow: none;
}

.zoom-frame {
  max-width: 100%;
  width: 100%;
  margin: 1.5rem auto 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.zoom-frame img {
  transition: transform 1.6s ease, transform-origin 0.16s ease;
  transform-origin: center;
  transform: scale(1);
}

.zoom-frame.is-zoomed img {
  transform: scale(3);
}

.case-section .image-card,
.case-section .intro-visual {
  box-shadow: none;
}

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

.case-card.span-2 {
  grid-column: span 2;
}

.case-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  color: #111827;
}

.case-card.flush-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.text-card {
  margin: 2rem auto;
  padding: 5rem 5rem;
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 400;
  color: #111;
  letter-spacing: -0.015em;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.status-card {
  text-align: center;
}

.status-card .status-title {
  text-align: left;
  display: block;
}

.status-card.scroll-reveal {
  opacity: 1;
  transform: none;
}

.case-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.case-card p {
  margin: 1.5;
  color: #4b5563;
  line-height: 1.2;
}

.text-card p {
  color: #111827;
}

.text-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #8b1247;
  margin-top: -0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.next-card {
  padding: 3.5rem 3.8rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.next-project-link {
  text-decoration: none;
  color: #051a59;
  font-weight: 700;
  display: inline-block;
}

.next-project-link h3 {
  color: inherit;
}

.next-project-link:hover {
  opacity: 0.7;
}

.text-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 300;
  color: #4b5563;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.discovery-italic {
  font-style: italic;
}



.emoji-highlight {
  display: inline-block;
  margin: 0 0.35rem;
  font-size: 1.35em;
  line-height: 1;
  vertical-align: middle;
}

.text-lead .muted {
  color: #4b5563;
  font-weight: 700;
}

.description-card {
  margin: 1.75rem auto;
  padding: 3.5rem 3.8rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  color: #4b5563;
}

.wide-media-card {
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto;
  box-sizing: border-box;
}

.description-body {
  margin: 2;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  text-indent: 1.25rem;
}

.description-strong {
  font-weight: 700;
}

.description-strong em {
  font-style: italic;
}

.description-body-list {
  list-style: disc;
  padding-left: 2rem;
  margin: 0.4rem 0 0.6rem 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 300;
}

.description-body-list li {
  line-height: 1.2;
  color: inherit;
}

.description-body-list li + li {
  margin-top: 0.3rem;
}

.steps-list {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 2rem;
  margin-left: 0;
  margin: 0.4rem 0 0.6rem 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 300;
  counter-reset: steps;
}

.steps-list li {
  line-height: 1.2;
  color: inherit;
  counter-increment: steps;
  padding-left: 0;
  position: relative;
}

.steps-list li::before {
  content: counter(steps) ".";
  position: absolute;
  left: -1.2rem;
  top: 0;
  font-weight: 300;
  color: inherit;
}

.steps-list li + li {
  margin-top: 0.6rem;
}

.dot-accent {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4338ca;
}

.case-card strong {
  color: #111827;
}

.case-card ul {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: inherit;
  line-height: 1.6;
}

.description-card .description-body-list {
  display: block;
  list-style: disc;
  padding-left: 2rem;
  margin: 0.4rem 0 0.6rem 0;
  gap: 0;
}

.metric-list {
  display: grid;
  gap: 0.8rem;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.metric-value {
  font-weight: 800;
  font-size: 1.2rem;
}

.metric-label {
  color: #6b7280;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: #4b5563;
  line-height: 1.5;
}

.quad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.quad-item {
  border-radius: 16px;
  min-height: 220px;
  height: 220px;
  overflow: hidden;
}

.pan-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.25rem 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
}

.pan-frame-title {
  margin: 0.75rem 0 1rem 0;
  padding-left: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.pan-frame img {
  width: 140%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  --pan-x: -20%;
  transform: translateX(var(--pan-x));
  transition: transform 0.08s linear;
  will-change: transform;
}

.horizontal-scroll {
  width: 100%;
  border-radius: 20px;
  padding: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
}

.horizontal-scroll-track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-track img {
  display: block;
  height: auto;
  max-height: 85vh;
  width: auto;
  max-width: none;
}

.horizontal-scroll-track::-webkit-scrollbar {
  height: 10px;
}

.full-bleed-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.full-bleed-frame {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.full-bleed-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-card {
  min-height: 380px;
  border-radius: 20px;
}

.triple-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.square-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.square-card {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.square-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-card {
  border-radius: 16px;
  min-height: 200px;
}

.case-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0 1rem;
  }

  .site-logo img {
    height: 35px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header.is-open + .menu-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .case-section {
    padding: 2rem 1rem;
    margin: 0.75rem 0;
  }

  .intro-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .intro-visual {
    min-height: 180px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-meta {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .text-lead {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
  }

  .image-card {
    min-height: 260px;
  }

  .quad-item,
  .mini-card {
    min-height: 160px;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: var(--header-height) 1.25rem 0;
    margin-top: calc(-1 * var(--header-height));
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    max-width: 34ch;
    justify-content: center;
    min-height: 100%;
    padding-bottom: 3rem;
  }

  .hero-content .btn {
    margin-top: 0;
    white-space: nowrap;
  }

  .hero .btn {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-typing {
    min-height: 6rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .light-title {
    font-size: 1.65rem;
  }

  .hero-mobile-break {
    display: block;
    height: 0;
  }

  .hero-typing {
    margin-top: 6rem;
    align-items: center;
    text-align: center;
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    justify-content: flex-start;
    min-height: 4.8rem;
  }

  .typing-roller {
    min-width: auto;
    max-width: 22ch;
    height: 2.8rem;
    display: block;
    align-self: center;
    text-align: center;
  }

  .typing-output {
    white-space: normal;
    text-align: center;
  }

  .btn {
    align-self: center;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    align-items: center;
  }

  .about-img {
    max-width: 130px;
    justify-self: center;
    margin: 0 auto;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .contact-grid {
    gap: 1.25rem;
  }

  .contact-form h3,
  .contact-links h3 {
    text-align: left;
  }

  .case-next {
    flex-direction: column;
    align-items: flex-start;
  }

  .quad-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 600px) {
  .section-header h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .intro-back {
    width: 38px;
    height: 38px;
  }

  .intro-text h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .intro-meta {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 1.8rem 1.1rem;
  }

  .description-card {
    background: transparent;
    box-shadow: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  .wide-media-card {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  .text-card {
    font-size: 1rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
  }

  .hide-mobile {
    display: none !important;
  }

  .case-section {
    padding: 1.2rem 1.1rem;
    margin: 0.2rem 0;
  }

  .case-card {
    padding: 1.1rem;
  }

  .next-card {
    padding: 1.1rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
  }

  .intro-back {
    display: none;
  }

  .quad-grid,
  .triple-cards {
    gap: 0.5rem;
  }

  .image-card {
    min-height: 0;
    height: auto;
  }

  .image-card img {
    height: auto;
    object-fit: contain;
  }

  .plain-frame {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .stacked-images {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  footer {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1.5rem 1.25rem;
    font-size: 0.95rem;
    text-align: center;
  }

  footer .footer-note,
  footer .footer-year {
    margin-left: 0;
    text-align: center;
  }

  footer a {
    display: inline-block;
  }

  footer .footer-note {
    width: 100%;
    max-width: none;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

}

/* Footer */
footer {
  padding: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #4b5563;
  background-color: #eef1f5;
  border-top: 1px solid #eee;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  }

  footer a:hover {
    text-decoration: underline;
  }

footer .footer-note {
  text-align: left;
}

footer .footer-year {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  footer .footer-note,
  footer .footer-year {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }
}

footer .footer-note .footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.12em;
  cursor: default;
}

footer .footer-note .footer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

footer .footer-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.4rem;
  min-width: 1.2rem;
  line-height: 1;
  pointer-events: auto;
  z-index: 1;
  padding: 0 0.2rem;
}

footer .footer-tooltip::after {
  content: attr(data-label);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #ffffff;
  color: #111827;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 300;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

footer .footer-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  footer .footer-tooltip::after {
    display: none;
  }
}

.footer-tooltip-bubble {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #111827;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 300;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Parallax test page */
.parallax-demo {
  position: relative;
  min-height: 180vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090d14;
  color: #f8fafc;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 25% 30%, rgba(93, 63, 211, 0.4), transparent 60%),
    radial-gradient(90% 80% at 75% 25%, rgba(16, 185, 129, 0.35), transparent 65%),
    radial-gradient(100% 90% at 50% 80%, rgba(255, 115, 179, 0.3), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0a0f1c 50%, #070c16 100%);
  filter: saturate(120%) blur(0px);
  z-index: 0;
  will-change: transform;
}

.parallax-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding: 6rem 0 8rem;
  text-align: left;
}

.parallax-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.parallax-content .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.parallax-block {
  will-change: transform;
}

/* Scroll reveal (test page) */
/* Template project test animations */
