/* ══════════════════════════════════════════════════════════════
   Philip Paulus — Award-Winning Portfolio
   ══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --bg: #FAFAF9;
  --bg-alt: #FFFFFF;
  --text: #1A1A1A;
  --muted: #71717A;
  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-medium: rgba(37, 99, 235, 0.15);
  --cream: #F5F0EB;
  --cream-dark: #EDE8E1;
  --border: #E5E5E5;
  --card: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: min(1200px, 90vw);
  --nav-height: 72px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── Noise Texture Overlay ─────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url('noise.svg');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.035;
}

/* ─── Custom Cursor ─────────────────────────────────────────── */
.cursor {
  display: none;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body { cursor: none; }
  a, button, [role="button"] { cursor: none; }
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
  z-index: 9999;
}

.cursor-ring {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 26, 26, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.3s, background 0.3s;
  z-index: 9998;
}

body.cursor-hover .cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

body.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.05);
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.7;
}

.brand-mark {
  width: auto;
  height: 1.35em;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.nav-brand:hover .brand-mark {
  transform: scale(1.1);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lang-option {
  transition: color 0.2s, font-weight 0.2s;
}

.lang-option.active {
  color: var(--text);
  font-weight: 700;
}

.lang-divider {
  color: var(--border);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.8) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -10px) scale(0.95); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-medium);
  background: var(--accent-soft);
  opacity: 0;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.hero-headline mark {
  color: inherit;
  background: none;
  font-style: normal;
  font-weight: 700;
}

/* Lead */
.hero-lead {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 600;
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25), 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary svg {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero Image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-image-deco {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 1.5px solid var(--accent-medium);
  transform: rotate(3deg);
  transition: transform 0.6s var(--ease-out);
}

.hero-image-wrapper:hover .hero-image-deco {
  transform: rotate(-1deg) scale(1.02);
}

.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(26, 26, 26, 0.12), 0 8px 24px rgba(26, 26, 26, 0.08);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.hero-image-wrapper:hover .hero-img {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(26, 26, 26, 0.15), 0 12px 32px rgba(26, 26, 26, 0.1);
}

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
  contain: layout style;
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ─── Services / Angebot ───────────────────────────────────── */
.services {
  background: var(--cream);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 48ch;
}

/* Bento Grid — 3 equal columns */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

/* Card shell */
.bento-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(26, 26, 26, 0.1),
              0 8px 24px rgba(26, 26, 26, 0.05);
}

/* Gradient border — masked pseudo-element */
.bento-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.bento-card:hover .bento-border {
  opacity: 1;
}

.bento-card[data-accent="blue"] .bento-border {
  background: linear-gradient(135deg, #2563EB 0%, transparent 60%);
}

.bento-card[data-accent="green"] .bento-border {
  background: linear-gradient(135deg, #10B981 0%, transparent 60%);
}

.bento-card[data-accent="amber"] .bento-border {
  background: linear-gradient(135deg, #F59E0B 0%, transparent 60%);
}

/* Background glow */
.bento-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

.bento-card[data-accent="blue"] .bento-glow {
  background: radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.07) 0%, transparent 65%);
}

.bento-card[data-accent="green"] .bento-glow {
  background: radial-gradient(ellipse at 20% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 65%);
}

.bento-card[data-accent="amber"] .bento-glow {
  background: radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
}

/* Card inner content */
.bento-inner {
  position: relative;
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* Badge pill */
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 24px;
}

.bento-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bento-card[data-accent="blue"] .bento-badge {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.bento-card[data-accent="blue"] .bento-badge-dot {
  background: #2563EB;
}

.bento-card[data-accent="green"] .bento-badge {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.bento-card[data-accent="green"] .bento-badge-dot {
  background: #10B981;
}

.bento-card[data-accent="amber"] .bento-badge {
  background: rgba(245, 158, 11, 0.08);
  color: #D97706;
}

.bento-card[data-accent="amber"] .bento-badge-dot {
  background: #F59E0B;
}

/* Icon */
.bento-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-out), background 0.4s, color 0.4s;
}


.bento-card[data-accent="blue"] .bento-icon {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.bento-card[data-accent="green"] .bento-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
}

.bento-card[data-accent="amber"] .bento-icon {
  background: rgba(245, 158, 11, 0.08);
  color: #F59E0B;
}

.bento-card:hover .bento-icon {
  transform: scale(1.1) rotate(-3deg);
}

.bento-card[data-accent="blue"]:hover .bento-icon {
  background: #2563EB;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.35));
}

.bento-card[data-accent="green"]:hover .bento-icon {
  background: #10B981;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.35));
}

.bento-card[data-accent="amber"]:hover .bento-icon {
  background: #F59E0B;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
}

/* Title */
.bento-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* Description */
.bento-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 24px;
}


/* Tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.bento-card:hover .bento-tag {
  transform: translateY(-2px);
}

.bento-card[data-accent="blue"] .bento-tag {
  background: rgba(37, 99, 235, 0.07);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.bento-card[data-accent="green"] .bento-tag {
  background: rgba(16, 185, 129, 0.07);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.bento-card[data-accent="amber"] .bento-tag {
  background: rgba(245, 158, 11, 0.07);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.bento-card:hover .bento-tag {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ─── Process Timeline ─────────────────────────────────────── */
.process {
  text-align: left;
}

.process-header {
  text-align: center;
  margin-bottom: 48px;
}

.process-label-pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.process-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Horizontal process layout */
.proc-horizontal {
  display: flex;
  align-items: flex-start;
}

.proc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proc-col--offset {
  margin-top: 60px;
}

/* Dots */
.proc-dot-h {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 20px;
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, color 0.4s, transform 0.4s var(--ease-out);
}

.proc-dot-h--active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.proc-col:hover .proc-dot-h {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.12);
}

.proc-dot-ping {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: procPing 2s var(--ease-out) infinite;
}

@keyframes procPing {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Curved connectors */
.proc-curve {
  flex: 0 0 60px;
  height: 160px;
  align-self: flex-start;
  margin-top: 10px;
}

.proc-curve svg {
  width: 100%;
  height: 100%;
}

/* Cards */
.proc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.4s;
}

.proc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-medium);
  box-shadow: 0 20px 48px rgba(26, 26, 26, 0.08),
              0 6px 16px rgba(26, 26, 26, 0.04);
}

.proc-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.proc-badge--free {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.proc-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.proc-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}

.proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.proc-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-medium);
  transition: transform 0.3s var(--ease-out);
}

.proc-card:hover .proc-tag {
  transform: translateY(-1px);
}

/* ─── Experience ────────────────────────────────────────────── */
.experience {
  background: var(--bg);
}

/* Timeline layout */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-medium) 40%, var(--border));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 2;
  transition: border-color 0.3s, background 0.3s;
}

.timeline-item:first-child .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
}

/* Pulsing dot for current role */
.timeline-dot-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.4; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Experience cards (inside timeline) */
.exp-card {
  width: 100%;
}

.exp-card-inner {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.4s;
}

.exp-card-inner:hover {
  transform: translateY(-4px);
  border-color: var(--accent-medium);
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.08), 0 8px 24px rgba(26, 26, 26, 0.04);
}

/* Current card highlight */
.exp-card--current {
  border-color: var(--accent-medium);
  background: linear-gradient(135deg, var(--card) 0%, rgba(37, 99, 235, 0.03) 100%);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.exp-card--current:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.12), 0 8px 24px rgba(37, 99, 235, 0.06);
}

.exp-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-medium);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.exp-logo--current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.exp-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.exp-content {
  flex: 1;
  min-width: 0;
}

.exp-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.exp-company {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  padding: 2px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.exp-role--current {
  background: var(--accent);
  color: #fff;
}

.exp-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.exp-desc strong {
  color: var(--text);
  font-weight: 600;
}

.contact-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Skills / Marquee ──────────────────────────────────────── */
.skills {
  background: var(--cream);
  padding-bottom: 80px;
  overflow: hidden;
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -16px;
}

.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

/* Marquee Animations */
.marquee[data-direction="left"] .marquee-track {
  animation: marquee-left 45s linear infinite;
}

.marquee[data-direction="right"] .marquee-track {
  animation: marquee-right 40s linear infinite;
}

.marquee[data-speed="slow"] .marquee-track {
  animation-duration: 55s;
}

.marquee[data-speed="fast"] .marquee-track {
  animation-duration: 35s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(0); }
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  flex-shrink: 0;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill--filled {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.pill--filled:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.pill--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.pill--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill--cream {
  background: var(--bg-alt);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06);
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact {
  background: var(--cream);
  padding-top: 40px;
  padding-bottom: 100px;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-email {
  display: block;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.4s;
  will-change: transform;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-medium);
  box-shadow: 0 20px 48px rgba(26, 26, 26, 0.08), 0 8px 20px rgba(26, 26, 26, 0.04);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 32px 0 40px;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

.footer-links a:hover {
  color: var(--text);
}

.footer-dot {
  color: var(--border);
}

/* ─── Magnetic Effect Base ──────────────────────────────────── */
.magnetic {
  will-change: transform;
}

/* ─── 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::before, .hero::after {
    animation: none;
  }

  .marquee-track {
    animation: none !important;
  }

  .timeline-dot-ping {
    animation: none;
  }
}

/* ─── Responsive ────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .tag-row {
    justify-content: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 320px;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -32px;
  }

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

  .proc-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .proc-col {
    width: 100%;
    max-width: 440px;
  }

  .proc-col--offset {
    margin-top: 0;
  }

  .proc-curve {
    display: none;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .hero-image-wrapper {
    max-width: 280px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .exp-card-inner {
    padding: 24px;
    gap: 16px;
  }

  .contact-headline {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
    --container: 92vw;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    max-width: 240px;
  }

  .hero-image-deco {
    inset: -8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -28px;
    width: 12px;
    height: 12px;
  }

  .timeline-line {
    left: 5px;
  }

  .exp-card-inner {
    flex-direction: column;
    padding: 20px;
    gap: 14px;
  }

  .exp-logo {
    width: 52px;
    height: 52px;
  }

  .exp-logo img {
    width: 36px;
    height: 36px;
  }

  .exp-company {
    font-size: 1.05rem;
  }

  .exp-desc {
    font-size: 0.88rem;
  }

  .contact-headline {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .contact-email {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }

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

  .bento-inner {
    padding: 24px 20px;
  }

  .bento-title {
    font-size: 1.1rem;
  }

  .bento-desc {
    font-size: 0.85rem;
  }

  .proc-card {
    padding: 20px 16px;
  }

  .proc-title {
    font-size: 0.95rem;
  }

  .proc-desc {
    font-size: 0.8rem;
  }

  .pill {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav-brand {
    font-size: 1.15rem;
  }

  .brand-mark {
    height: 1.2em;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 1.35rem;
  }

  .hero-image-wrapper {
    max-width: 200px;
  }

  .tag {
    padding: 5px 10px;
    font-size: 0.68rem;
  }

  .bento-inner {
    padding: 20px 16px;
  }

  .contact-headline {
    font-size: 2rem;
  }
}

/* ─── Legal Page Styles ─────────────────────────────────────── */
.legal {
  padding: calc(var(--nav-height) + 48px) 0 80px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .legal-notice {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 40px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-medium);
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  opacity: 0.8;
}
