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

/* ─── LIGHT MODE (default) ─── */
:root {
  --bg:          #FFFFFF;
  --bg-card:     #F4F4F5;
  --bg-hover:    #E4E4E7;
  --border:      #E4E4E7;
  --border-hover:#D4D4D8;
  --text:        #09090B;
  --text-muted:  #52525B;
  --text-dim:    #A1A1AA;
  --accent:      #C2410C;
  --accent-dim:  rgba(194,65,12,0.08);
  --accent-glow: rgba(194,65,12,0.25);
  --dot-color:   #D4D4D8;
  --nav-bg:      rgba(255,255,255,0.90);
}

/* ─── DARK MODE ─── */
[data-theme="dark"] {
  --bg:          #09090B;
  --bg-card:     #18181B;
  --bg-hover:    #1C1C1F;
  --border:      #27272A;
  --border-hover:#3F3F46;
  --text:        #FAFAFA;
  --text-muted:  #A1A1AA;
  --text-dim:    #71717A;
  --accent:      #FB923C;
  --accent-dim:  rgba(251,146,60,0.12);
  --accent-glow: rgba(251,146,60,0.35);
  --dot-color:   #27272A;
  --nav-bg:      rgba(9,9,11,0.88);
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-left { display: flex; align-items: center; gap: 32px; }

.nav-logo {
  color: var(--text); font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.25s ease;
}

.nav-logo-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(194,65,12,0.25);
  border-radius: 4px;
  font-size: 0.6875rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] .nav-logo-badge {
  border-color: rgba(251,146,60,0.3);
}

.nav-divider { width: 1px; height: 20px; background: var(--border); transition: background 0.25s ease; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 400;
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg-card); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  position: relative;
  width: 52px; height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

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

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="dark"] .toggle-thumb { transform: translateX(24px); }

.toggle-icon { width: 12px; height: 12px; }

.icon-sun { display: block; color: var(--bg); }
.icon-moon { display: none; color: var(--bg); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ─── MOBILE TOGGLE ─── */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-mobile-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all 0.3s;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--bg); padding: 80px 32px 2rem;
  flex-direction: column;
  transition: background 0.25s ease;
}

.mobile-menu.open { display: flex; }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }

.mobile-link {
  display: block; padding: 1.25rem 0;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

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

/* ─── HERO ─── */
.hero {
  padding-top: 60px; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 0%, var(--bg) 80%);
  pointer-events: none;
  transition: background 0.25s ease;
}

.hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 100px 32px;
  width: 100%; position: relative; z-index: 1;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}

.hero-label::before {
  content: ''; display: block;
  width: 16px; height: 1px;
  background: var(--border-hover);
}

.hero-name {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--text); line-height: 1.08;
  max-width: 820px; margin-bottom: 32px;
}

.hero-headline em {
  font-style: normal; color: var(--text-muted);
}

.hero-divider {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 40px 0; max-width: 820px;
  transition: background 0.25s ease;
}

.hero-bottom {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center; max-width: 820px;
}

.hero-intro {
  font-size: 0.9375rem; font-weight: 400;
  color: var(--text-muted); line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

[data-theme="dark"] .btn-primary { color: #1c0800; }

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px 4px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); color: var(--text-muted);
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-hover); }

/* ─── STATS ─── */
.stats-section { border-top: 1px solid var(--border); transition: border-color 0.25s ease; }

.stats-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}

.stat-cell {
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: border-color 0.25s ease;
}

.stat-cell:last-child { border-right: none; }

.stat-cell-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.2s ease;
}

.stat-cell:hover .stat-cell-accent { opacity: 1; }

.stat-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}

.stat-suffix { font-size: 1.25rem; font-weight: 600; color: var(--accent); opacity: 0.6; }

.stat-label { font-size: 0.8125rem; font-weight: 400; color: var(--text-dim); }

/* ─── WORK ─── */
.work-section { padding: 80px 0 100px; border-top: 1px solid var(--border); transition: border-color 0.25s ease; }

.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.section-left { display: flex; align-items: center; gap: 16px; }

.section-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

.section-count {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; font-size: 0.75rem; font-weight: 500;
  color: var(--text-dim); font-variant-numeric: tabular-nums;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* ─── CASE STUDY FILTER BAR ─── */
.cs-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.cs-filter-pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.cs-filter-pill:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--text);
}

.cs-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

[data-theme="dark"] .cs-filter-pill.active { color: #1c0800; }

@media (max-width: 640px) {
  .cs-filter-bar { gap: 6px; justify-content: flex-start; margin-left: 0; margin-top: 12px; }
  .cs-filter-pill { font-size: 0.75rem; padding: 5px 12px; }
}

/* ─── MOSAIC GRID ─── */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

[data-theme="dark"] .tile:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Layout positions — first 4 tiles in mosaic */
.tile-pos-0 { grid-column: 1 / 3; grid-row: 1; min-height: 360px; }
.tile-pos-1 { grid-column: 3;     grid-row: 1; min-height: 360px; }
.tile-pos-2 { grid-column: 1;     grid-row: 2; min-height: 260px; }
.tile-pos-3 { grid-column: 2 / 4; grid-row: 2; min-height: 260px; }
/* When only 3 tiles shown (Featured), make tile-pos-2 span full width */
.mosaic:has(.tile:nth-child(3):last-child) .tile-pos-2 { grid-column: 1 / -1; }

/* Tiles 4–7: mirror the first mosaic block (alternating pattern) */
.tile-pos-4 { grid-column: 1;     min-height: 260px; }
.tile-pos-5 { grid-column: 2 / 4; min-height: 260px; }
.tile-pos-6 { grid-column: 1 / 3; min-height: 260px; }
.tile-pos-7 { grid-column: 3;     min-height: 260px; }

/* Tile backgrounds */
.tile-bg-0 .tile-bg {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(251,146,60,0.18) 0%, transparent 60%),
    linear-gradient(145deg, #0d1117 0%, #1a1008 50%, #2a1500 100%);
}

.tile-bg-1 .tile-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(99,102,241,0.2) 0%, transparent 60%),
    linear-gradient(135deg, #0f0c29 0%, #1a1040 60%, #302b63 100%);
}

.tile-bg-2 .tile-bg {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(251,191,36,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #1c1008 0%, #2d1f00 50%, #1a1200 100%);
}

.tile-bg-3 .tile-bg {
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(239,68,68,0.12) 0%, transparent 60%),
    linear-gradient(125deg, #0c1825 0%, #0a1f2e 50%, #082030 100%);
}

.tile-bg-4 .tile-bg {
  background:
    radial-gradient(ellipse 70% 50% at 30% 70%, rgba(16,185,129,0.15) 0%, transparent 60%),
    linear-gradient(150deg, #071a10 0%, #0d2318 50%, #0a1d14 100%);
}

.tile-bg-5 .tile-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(168,85,247,0.15) 0%, transparent 60%),
    linear-gradient(140deg, #120920 0%, #1e0f35 50%, #160828 100%);
}

.tile-bg-6 .tile-bg {
  background:
    radial-gradient(ellipse 60% 80% at 50% 20%, rgba(251,146,60,0.22) 0%, transparent 60%),
    linear-gradient(155deg, #1a0c00 0%, #2e1500 50%, #1f0e00 100%);
}

.tile-bg-7 .tile-bg {
  background:
    radial-gradient(ellipse 90% 50% at 10% 80%, rgba(56,189,248,0.15) 0%, transparent 60%),
    linear-gradient(130deg, #071523 0%, #0a1e30 50%, #06141f 100%);
}

.tile-bg {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}

.tile-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.tile:hover .tile-bg { transform: scale(1.04); }

.tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 45%, transparent 100%);
}

.tile-content {
  position: relative; z-index: 1;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 10px;
}

.tile-num {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

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

.tile-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 0.6875rem; font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tile:hover .tile-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.tile-title {
  font-size: 1.0625rem; font-weight: 600;
  color: #fff; letter-spacing: -0.02em;
  line-height: 1.3;
}

.tile-pos-0 .tile-title { font-size: 1.375rem; }

.tile-desc {
  font-size: 0.8125rem; font-weight: 400;
  color: rgba(255,255,255,0.55); line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: #fff;
  font-size: 1rem;
  align-self: flex-start;
  margin-top: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tile:hover .tile-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(2px, -2px);
}

.tile-glow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
}

/* ─── ABOUT ─── */
.about-section {
  padding: 80px 0;
  background: #09090B;
  color: #FAFAFA;
  border-top: 1px solid #27272A;
}

.about-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

.about-label {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

.about-label::before {
  content: ''; display: block; width: 16px; height: 1px; background: var(--accent);
}

.about-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.12; color: #FAFAFA; margin-bottom: 28px;
}

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

.about-body {
  font-size: 0.9375rem; color: rgba(250,250,250,0.65);
  line-height: 1.85; display: flex; flex-direction: column; gap: 1rem;
}

.about-right { padding-top: 24px; }

.about-photo-wrap {
  margin-bottom: 32px;
  width: 180px; height: 180px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent);
  background: #2a2826; flex-shrink: 0;
}

.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
  scale: 1.55;
  transform-origin: 50% 12%;
}

.role-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid rgba(250,250,250,0.1);
}

.role-item:first-child { border-top: 1px solid rgba(250,250,250,0.1); }

.role-company {
  font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
  font-weight: 500;
}

.role-title { font-size: 0.9375rem; font-weight: 400; color: #FAFAFA; line-height: 1.4; }

.role-duration {
  font-size: 0.8125rem; color: rgba(250,250,250,0.35);
  white-space: nowrap; padding-top: 2px;
}

.about-edu {
  margin-top: 28px; padding: 20px 24px;
  border: 1px solid rgba(250,250,250,0.1); border-radius: 8px;
}

.edu-label {
  font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(250,250,250,0.4); margin-bottom: 16px;
}

.edu-item { margin-bottom: 12px; }
.edu-item:last-child { margin-bottom: 0; }
.edu-degree { font-size: 0.875rem; color: #FAFAFA; line-height: 1.4; font-weight: 400; }
.edu-school { font-size: 0.8125rem; color: rgba(250,250,250,0.45); margin-top: 2px; }

/* ─── PRINCIPLES ─── */
.principles-section { padding: 80px 0; border-top: 1px solid var(--border); transition: border-color 0.25s ease; }

.principles-grid {
  max-width: 1280px; margin: 32px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.principle-card {
  background: var(--bg-card); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  border-radius: 10px; border: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.principle-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.principle-num {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

.principle-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); line-height: 1.3;
  letter-spacing: -0.01em;
}

.principle-desc {
  font-size: 0.8125rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 80px 0; border-top: 1px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}

.contact-label {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

.contact-label::before {
  content: ''; display: block; width: 16px; height: 1px; background: var(--accent);
}

.contact-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.1; color: var(--text); margin: 20px 0 16px;
}

.contact-sub {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75;
}

.contact-links { display: flex; flex-direction: column; gap: 0; }

.contact-link-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.contact-link-item:last-child { border-bottom: none; }

.contact-link-label {
  font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  color: var(--text-dim);
}

.contact-link-val {
  font-size: 1rem; color: var(--text);
  text-decoration: none; transition: color 0.2s;
  font-weight: 400;
}

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

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}

.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.footer-sep { width: 4px; height: 4px; background: var(--text-dim); border-radius: 50%; }
.footer-role { font-size: 0.8125rem; color: var(--text-dim); }

.footer-links { display: flex; gap: 4px; list-style: none; }

.footer-links a {
  color: var(--text-dim); font-size: 0.8125rem;
  text-decoration: none; padding: 6px 10px; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

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

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links, .nav-divider { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding: 0 20px; }
  .nav-left { gap: 16px; }

  .hero-inner { padding: 80px 20px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; }
  .stat-cell:last-child { border-bottom: none; }

  .section-inner { padding: 0 20px; }
  .work-section { padding: 60px 0 80px; }
  .tile-content { padding: 20px; }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .tile-pos-0 { grid-column: 1 / 3; grid-row: auto; min-height: 280px; }
  .tile-pos-3 { grid-column: 1 / 3; grid-row: auto; min-height: 220px; }
  .tile-pos-6 { grid-column: 1 / 3; grid-row: auto; min-height: 220px; }
  .tile-pos-1,
  .tile-pos-2,
  .tile-pos-4,
  .tile-pos-5,
  .tile-pos-7 { grid-column: auto; grid-row: auto; min-height: 220px; }

  .about-inner { padding: 0 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { padding-top: 0; }
  .about-section { padding: 60px 0; }

  .principles-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .principles-section { padding: 60px 0; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; padding: 0 20px; }
  .contact-section { padding: 60px 0; }

  .footer-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile-pos-0,
  .tile-pos-1,
  .tile-pos-2,
  .tile-pos-3,
  .tile-pos-4,
  .tile-pos-5,
  .tile-pos-6,
  .tile-pos-7 { grid-column: 1; min-height: 220px; }

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

  .hero-inner { padding: 80px 20px 60px; }
  .hero-headline { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}
