:root {
  --bg: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-2: #0d0d0d;
  --text: #ededed;
  --text-bright: #fafafa;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #5eead4;
  --accent-border: rgba(94, 234, 212, 0.3);
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent); color: var(--bg); }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

.accent { color: var(--accent); }
.accent-text { color: var(--accent); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px clamp(18px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.nav-links a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) clamp(18px, 5vw, 56px) clamp(44px, 7vw, 88px);
}

.hero-photo {
  width: clamp(140px, 16vw, 176px);
  height: clamp(140px, 16vw, 176px);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-photo .media-placeholder {
  border: none;
  padding: 0;
  font-size: 12px;
  text-align: center;
}

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

h1 {
  margin: 0;
  font-size: clamp(40px, 8.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.tagline {
  margin: 26px 0 0;
  font-size: clamp(20px, 3.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 18ch;
  color: var(--text-bright);
}

.role-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

.role-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.lede {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 58ch;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 44px;
}

.card {
  flex: 1 1 280px;
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-accent {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), rgba(94, 234, 212, 0.01));
}

.card-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.card-accent .card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
}

.card-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 56px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
  border-top: 1px solid var(--border-strong);
  padding-top: 26px;
  flex-wrap: wrap;
}

.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: auto;
}

/* ===== TRUSTED BY ===== */
.logo-bar-section {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(18px, 5vw, 56px) clamp(72px, 11vw, 116px);
}

.logo-bar-caption {
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 38px;
}

.logo-bar-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-bar-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(32px, 6vw, 64px);
  animation: logo-bar-scroll 30s linear infinite;
}

.logo-bar-marquee:hover .logo-bar-track,
.logo-bar-marquee:focus-within .logo-bar-track {
  animation-play-state: paused;
}

.logo-bar-set {
  display: contents;
}

@keyframes logo-bar-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-bar-track { animation: none; }
}

.logo-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-chip {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo-bar-item img {
  display: block;
  max-height: 46px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-chip.has-logo {
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logo-bar-item:hover .logo-chip.has-logo {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -18px rgba(94, 234, 212, 0.45);
}

.logo-chip.plain img {
  max-height: 38px;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.logo-bar-item:hover .logo-chip.plain img {
  opacity: 1;
}

.logo-item-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  text-align: center;
  max-width: 165px;
  line-height: 1.4;
}

.logo-bar-item.placeholder {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.32);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  padding: 12px 20px;
  border-radius: 9px;
  white-space: nowrap;
}

/* ===== FEATURED STORY ===== */
.featured-card {
  border: 1px solid var(--accent-border);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.05), rgba(94, 234, 212, 0.01));
  border-radius: 16px;
  padding: clamp(24px, 4.5vw, 44px);
}

.featured-title {
  margin: 9px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-bright);
  max-width: 22ch;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.tl-entry {
  position: relative;
  margin-bottom: 14px;
}

.tl-entry summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.16s ease, background 0.16s ease;
  position: relative;
}

.tl-entry summary::-webkit-details-marker { display: none; }

.tl-entry summary:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: #101312;
}

.tl-dot {
  position: absolute;
  left: -30px;
  top: 21px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.tl-dot-upcoming {
  left: -31px;
  top: 20px;
  width: 13px;
  height: 13px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15);
  border: none;
}

.tl-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.tl-case-link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

.upcoming-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 2px 9px;
}

.tl-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 7px;
  letter-spacing: -0.01em;
}

.tl-blurb {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 3px;
}

.tl-metric {
  margin-top: 11px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
}

.tl-metric-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.tl-static {
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  border-radius: 12px;
  padding: 15px 18px;
  position: relative;
}

/* ===== CASE STUDY (expanded <details>) ===== */
.tl-case {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--bg-card);
}

.case-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-case h3 {
  margin: 9px 0 0;
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

.case-tagline {
  margin-top: 7px;
  font-size: 15px;
  color: var(--text-muted);
}

.case-media {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
}

.case-media video,
.case-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  object-fit: cover;
}

.case-block { margin-top: 26px; }

.case-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.case-block p {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.case-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.case-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.case-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.outcome-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.outcome {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.outcome-value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.outcome-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.case-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  border-left: 2px solid rgba(94, 234, 212, 0.4);
  padding-left: 14px;
}

.stack-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-strong);
  padding: 9px 14px;
  border-radius: 8px;
}

.case-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== PROJECTS ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.project-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 24px 60px -28px rgba(94, 234, 212, 0.25);
  transform: translateY(-3px);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080808;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 11px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* To add a real screenshot, replace .media-placeholder with:
   <img src="your-image.png" alt="..." style="position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block"> */
.media-placeholder {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.32);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 6px;
}

.proof-media {
  flex-direction: column;
  gap: 5px;
  padding: 20px 24px;
  text-align: center;
}

.proof-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.proof-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--text-bright);
  margin: 2px 0 8px;
}

.proof-stats {
  display: flex;
  align-items: baseline;
  gap: 30px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proof-value {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.proof-stat-accent .proof-value {
  color: var(--accent);
}

.proof-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}

.proof-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}

.project-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent-border);
}

.inline-link:hover {
  text-decoration-color: var(--accent);
}

.project-link-row {
  margin-top: auto;
  padding-top: 18px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 7px;
  transition: all 0.15s ease;
}

.repo-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== SOCIAL PROOF ===== */
.proof-lede {
  margin: -14px 0 30px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  max-width: 62ch;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 22px 24px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.testimonial-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 24px 60px -28px rgba(94, 234, 212, 0.25);
  transform: translateY(-3px);
}

.testimonial-quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: #0d0d0d;
}

.testimonial-avatar-logo {
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.14);
}

.testimonial-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
}

.testimonial-role {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}

.skill-cat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.tag {
  font-size: 13.5px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.02);
}

/* ===== CONTACT ===== */
.contact-section {
  padding-bottom: clamp(60px, 9vw, 120px);
}

.section-divider {
  border-top: 1px solid var(--border-strong);
  padding-top: 46px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 14px;
}

.contact-heading {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 16ch;
  line-height: 1.05;
}

.contact-lede {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 52ch;
}

.footer-note {
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
}
