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

:root {
  --color-bg: #111111;
  --color-surface: #1a1a1a;
  --color-border: #2a2a2a;
  --color-accent: #1e6c93;
  --color-accent-dim: #154f6e;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo:hover { text-decoration: none; color: var(--color-accent); }

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  text-decoration: none;
}

/* Hamburger toggle (created by JS; hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 600px) {
  .nav-collapsible .nav-toggle { display: flex; }

  .nav-collapsible .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
  }

  .nav-collapsible.open .nav-links { display: flex; }

  .nav-collapsible .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .nav-collapsible.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-collapsible.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-collapsible.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ── */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-logo-wrap {
  flex-shrink: 0;
}

.hero-logo {
  width: 380px;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .hero-logo-wrap {
    display: none;
  }
}


.hero {
  padding: 3rem 1.5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--color-accent); }

.hero-bio {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: #3a7ae0;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Section ── */
section {
  padding: 3rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 1.5rem;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover {
  border-color: var(--color-accent-dim);
  transform: translateY(-2px);
}

.project-card-img {
  width: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* For full-page screenshots used as card art: show just the top of the page */
.project-card-img img.crop-top {
  height: 230px;
  object-fit: cover;
  object-position: top;
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Case Study (project pages) ── */
.case-study-hero {
  padding: 3rem 1.5rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
}

.back-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--color-accent); text-decoration: none; }

.case-study-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.case-meta span { display: flex; align-items: center; gap: 0.4rem; }

.case-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.case-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: var(--color-text);
}

.case-body p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.case-body ul {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--color-text-muted);
}

.case-body ul li { margin-bottom: 0.4rem; }

.case-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  color: var(--color-text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.35s ease-out var(--reveal-delay, 0s),
    transform 0.35s ease-out var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.img-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 2rem 0;
  background: var(--color-surface);
}

.case-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 2rem 0;
  background: #111;
  padding: 1rem;
}

.case-image-link {
  display: block;
  cursor: zoom-in;
}
.case-image-link:hover .case-image {
  border-color: var(--color-accent-dim);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.tool-tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 2rem 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── About Photos ── */
.about-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  margin-bottom: 1.75rem;
  display: block;
}

.about-speaking {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-top: 2rem;
  display: block;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.client-tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
}

/* ── Contact / Footer ── */
.contact-section {
  text-align: center;
  padding: 3.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 { margin-bottom: 1rem; }
.contact-section p { color: var(--color-text-muted); margin-bottom: 2rem; }

footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

footer a { color: var(--color-text-muted); }
footer a:hover { color: var(--color-accent); }

/* ── Resume ── */
.resume-section {
  padding: 3rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.resume-block { margin-bottom: 3rem; }

.resume-block h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-entry { margin-bottom: 1.75rem; }

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.resume-entry-title {
  font-weight: 700;
  font-size: 1rem;
}

.resume-entry-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.resume-entry-company {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.resume-entry ul {
  margin-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.resume-entry ul li { margin-bottom: 0.3rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-card { padding: 1rem 1.1rem; font-size: 0.88rem; }
  .hero { padding: 2.5rem 1.5rem 2.5rem; }
  .hero-bio { font-size: 1rem; margin-bottom: 2rem; }
  section { padding: 3rem 1.5rem; }
  .case-study-hero { padding: 2.5rem 1.5rem 2rem; }
  .case-body { padding: 2.5rem 1.25rem 4rem; }
  .case-image { padding: 0.5rem; margin: 1.5rem 0; }
  .contact-section { padding: 4rem 1.5rem; }
  .resume-section { padding: 3rem 1.5rem; }
  .btn { padding: 0.65rem 1.2rem; font-size: 0.88rem; }
}
