/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #db0e75;
  --accent-dark: #b30c5f;
  --accent-light: #db2d84;
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --text: #f2f2f2;
  --text-nav: #000;
  --text-muted: rgba(242, 242, 242, 0.55);
  --text-faint: rgba(242, 242, 242, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --nav-h: 64px;
  --font: "Inter", sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f0efeb;
  --bg-surface: #fafaf9;
  --bg-card: #ffffff;
  --bg-card-hover: #f2f2f2;
  --text: #0a0a0a;
  --text-nav: #fff;
  --text-muted: rgba(10, 10, 10, 0.6);
  --text-faint: rgba(10, 10, 10, 0.35);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color var(--transition),
    color var(--transition);
}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

a {
  color: var(--accent);
}

.accent {
  color: var(--accent);
  font-style: normal;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.9;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.section-headline {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgb(219, 14, 117, 0.2);
  color: var(--accent);
  border: 1px solid rgb(219, 14, 117, 0.4);
  letter-spacing: 0.01em;
}

.tag-sm {
  font-size: 11px;
  padding: 3px 10px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(219, 14, 117, 0.05);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(0, 0, 0, 0.65);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-nav);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-subtitle {
  font-size: 11px;
  color: var(--text-nav);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-nav);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition:
    color var(--transition),
    background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--border);
}

.nav-link-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 7px 16px;
  border-radius: 100px;
}

.nav-link-cta:hover {
  background: var(--accent-light) !important;
  color: #000 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-link {
  color: var(--text);
  text-decoration: none;
  font-size: 32px;
  font-weight: 600;
  padding: 8px 0;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.mobile-menu-link:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

/* Portrait */
.hero-portrait-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: heroBgIn 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroBgIn {
  from {
    opacity: 0;
    transform: scale(1.08) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-portrait-manga {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(to right, black 0%, black var(--morph-pos, 0%), transparent calc(var(--morph-pos, 0%) + 16%), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black var(--morph-pos, 0%), transparent calc(var(--morph-pos, 0%) + 16%), transparent 100%);
  will-change: mask-image;
}

/* Scrolling name marquee — sits over portrait with difference blend */
.hero-marquee-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  animation: heroMarqueeIn 1.2s ease 0.5s forwards;
}

@keyframes heroMarqueeIn {
  to {
    opacity: 1;
  }
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 90s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-marquee-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(120px, 26vw, 440px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
}

/* Bottom gradient */
.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.6s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

/* Accessible h1 */
.hero-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bottom-left: location */
.hero-location-wrap {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 10;
  opacity: 0;
  transform: translateY(12px);
  animation: heroBottomIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

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

.hero-location {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Bottom-right: role lines slide up from clipped container */
.hero-roles-wrap {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  text-align: right;
}

.hero-role-clip {
  overflow: hidden;
  padding-bottom: 2px;
}

.hero-role-line {
  color: rgba(242, 242, 242, 0.95);
  font-size: clamp(28px, 3.8vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  transform: translateY(110%);
  display: block;
  animation: heroRoleSlide 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.hero-role-delay {
  animation-delay: 0.82s;
}

@keyframes heroRoleSlide {
  to {
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-portrait {
    object-position: center 30%;
  }

  .hero-marquee-text {
    font-size: clamp(80px, 70vw, 180px);
  }

  .hero-marquee-track {
    animation-duration: 50s;
  }

  .hero-location-wrap {
    bottom: auto;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
  }

  .hero-location {
    display: none;
  }

  .hero-roles-wrap {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding: 16px;
  }

  .hero-role-line {
    font-size: clamp(28px, 9vw, 48px);
  }
}

/* ═══════════════════════════════════════
   WELCOME
═══════════════════════════════════════ */
.welcome-section {
  background: var(--bg);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.welcome-headline h2 {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.welcome-body p {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.welcome-tagline {
  font-style: italic;
  color: var(--text-faint) !important;
  font-size: clamp(14px, 1.2vw, 17px) !important;
}

/* ═══════════════════════════════════════
   knowledge
═══════════════════════════════════════ */
.knowledge-section {
  background: var(--bg-surface);
}

.knowledge-header {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 720px;
}

.knowledge-header h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.knowledge-subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 48px);
  transition:
    border-color var(--transition),
    background var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.service-pre {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.service-title {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.service-desc {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text-muted);
  line-height: 1.7;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.project-card-alt {
  background: var(--bg-surface);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card-alt .project-card-inner {
  direction: rtl;
}

.project-card-alt .project-card-inner > * {
  direction: ltr;
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.project-year {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-title {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.project-description {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.project-bullets {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-bullets li {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.project-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.project-cta {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    opacity var(--transition),
    gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-cta:hover {
  opacity: 0.75;
}

.project-card-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.experience-link {
  text-align: center;
  padding-top: clamp(40px, 5vw, 64px);
}

/* ═══════════════════════════════════════
   ALL WORK
═══════════════════════════════════════ */
.experience-section {
  background: var(--bg);
}

.experience-subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.experience-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  transition: border-color var(--transition);
}

.experience-item:hover {
  border-color: var(--border-hover);
}

.experience-year {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.experience-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.experience-desc {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ═══════════════════════════════════════
   connect
═══════════════════════════════════════ */
.connect-section {
  background: var(--bg-surface);
}

.connect-headline {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.connect-subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  transition: border-color var(--transition);
}

.connect-card:hover {
  border-color: var(--border-hover);
}

.connect-card h3 {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.connect-card p {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonials-section {
  background: var(--bg);
  overflow: hidden;
}

.testimonials-section .container {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.testimonials-marquee-text {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.testimonials-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonials-cards {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding: 0 clamp(20px, 5vw, 80px);
  padding-bottom: 32px;
}

.testimonial-card {
  flex: 0 0 clamp(320px, 40vw, 560px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 44px);
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-card blockquote p {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial-card blockquote p:last-child {
  margin-bottom: 0;
}

.testimonial-author {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-section {
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  margin-bottom: 40px;
}

.about-headline {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.about-left p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.about-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgb(219, 14, 117, 0.2);
  color: var(--accent);
  border: 1px solid rgb(219, 14, 117, 0.4);
}

.about-tag-muted {
  background: rgba(242, 242, 242, 0.05);
  color: var(--text-muted);
  border-color: var(--border);
}

[data-theme="light"] .about-tag-muted {
  background: rgba(10, 10, 10, 0.04);
}

.about-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 32px;
  background: var(--bg-card);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-fact:last-child {
  border-bottom: none;
}

.about-fact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 2px;
}

.about-fact-value {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.colleagues-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: clamp(24px, 3vw, 40px) 0;
}

/* ═══════════════════════════════════════
   VALUES
═══════════════════════════════════════ */
.values-section {
  background: var(--bg);
}

.values-section h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.values-subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px);
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: var(--accent);
}

.value-card h3 {
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}

.value-card p {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   LOOKING FOR
═══════════════════════════════════════ */
.looking-section {
  background: var(--bg-surface);
}

.looking-section h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.looking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.looking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 2.5vw, 36px);
  transition:
    border-color var(--transition),
    background var(--transition);
}

.looking-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.looking-card h3 {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.looking-card p {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-section {
  background: var(--bg);
}

.contact-headline {
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-email {
  display: block;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  transition: opacity var(--transition);
}

.contact-email:hover {
  opacity: 0.75;
}

.contact-linkedin {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.contact-linkedin:hover {
  color: var(--accent);
}

.contact-email-notice {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 440px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  background-color: var(--bg);
  border: 0px;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   LEGAL DIALOG
═══════════════════════════════════════ */
.legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.legal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.legal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 901;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  padding: 0;
  width: min(560px, calc(100vw - 40px));
  max-height: min(80vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity var(--transition),
    transform var(--transition);
  pointer-events: none;
}

.legal-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.legal-dialog::backdrop {
  display: none;
}

.legal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
  z-index: 1;
}

.legal-close:hover {
  color: var(--text);
}

.legal-body {
  padding: clamp(28px, 5vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-title {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.legal-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
  font-style: italic;
}

.legal-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 24px 0 6px;
}

.legal-heading:first-of-type {
  margin-top: 0;
}

.legal-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 50;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .project-card-alt .project-card-inner {
    direction: ltr;
  }

  .project-card-image {
    order: -1;
    aspect-ratio: 16/9;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
  }

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

  .about-photo-wrap {
    aspect-ratio: 16/9;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .looking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-role1 {
    font-size: clamp(36px, 10vw, 60px);
  }

  .hero-role2 {
    font-size: clamp(24px, 7vw, 42px);
  }

  .looking-grid {
    grid-template-columns: 1fr;
  }

  .about-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --radius: 12px;
  }

  .nav-subtitle {
    display: none;
  }

  .testimonials-cards {
    padding: 0 20px 32px;
  }

  .testimonial-card {
    flex: 0 0 85vw;
  }
}

/* Active nav link */
.nav-link-active {
  color: var(--text) !important;
}

/* Testimonials drag affordance */
.testimonials-track {
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-marquee-track {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
