:root {
  --bg: #1a1a1c;
  --bg-alt: #232326;
  --card: #2a2a2e;
  --border: #3a3a3f;
  --orange: #ff6b35;
  --orange-light: #ff8c5a;
  --text: #f2f0ec;
  --text-muted: #a8a8ad;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Hero */
.hero {
  padding: 3.5rem 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.12), transparent 60%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero p.tagline {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-bio p {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-looking-heading {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-list {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.hero-bullet {
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: #1a1a1c;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-heading span {
  color: var(--orange);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 560px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.project-image {
  height: 140px;
  margin: -2rem -2rem 0.5rem;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-image--light {
  background: #ffffff;
}

.project-image--dark {
  background: #1e1743;
}

.project-image--cover {
  padding: 0;
}

.project-image--cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.project-image--nts {
  background-image: url('nts-texture.jpg');
  background-size: cover;
  background-position: center;
}

.nts-wordmark {
  font-weight: 700;
  font-size: 3rem;
  color: #f57315;
  line-height: 1;
  padding: 0.15em 0.1em;
  border-top: 3px solid #f57315;
  border-bottom: 3px solid #f57315;
}

.nts-letter {
  margin-right: 0.2em;
}

.nts-letter:last-child {
  margin-right: 0;
}

.project-tag {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.project-role {
  color: var(--orange-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-card p.desc {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Past Work */
.past-work-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.past-work-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.past-work-table th {
  text-align: left;
  padding: 0.9rem 1.25rem;
  background: var(--bg-alt);
  color: var(--orange);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.past-work-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}

.past-work-table tbody tr:last-child td {
  border-bottom: none;
}

.past-work-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.past-work-table td:nth-child(1) {
  width: 112px;
  padding-right: 0.5rem;
}

.past-work-table td:nth-child(2) {
  padding-left: 0.5rem;
}

.past-work-table th:nth-child(2) {
  padding-left: 0.5rem;
}

.pw-role {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.pw-learned {
  color: var(--text-muted);
}

.pw-company {
  display: flex;
  align-items: center;
}

.pw-logo {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.pw-company:hover .pw-logo {
  transform: scale(1.05);
}

.pw-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.past-logo--white {
  background: #ffffff;
}

.past-logo--gray-light {
  background: #f2f2f2;
}

.past-logo--dark {
  background: #1c3939;
}

.past-logo--coral {
  background: #fa5a50;
}

.past-logo--blue {
  background: #005eb8;
}

.past-logo--seafoam-pink {
  background: linear-gradient(135deg, #ffd6e0 0%, #b8ece0 100%);
}

.past-logo--navy {
  background: #1f2d3d;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* Hacks & Experiments */
.hacks-list {
  list-style: none;
  max-width: 720px;
  border-top: 1px solid var(--border);
}

.hacks-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.hacks-bullet {
  color: var(--orange);
  font-size: 1.4rem;
  line-height: 1.4;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hacks-item:hover .hacks-bullet {
  transform: translateX(4px);
}

.hacks-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.hacks-title:hover {
  color: var(--orange-light);
}

.hacks-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Places */
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.place-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.place-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.place-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.25rem 1.5rem 0.4rem;
}

.place-desc {
  font-size: 0.95rem;
  margin: 0 1.5rem 1.5rem;
}

/* School Days */
.school-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.school-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.school-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.school-logo {
  height: 110px;
  margin: -1.5rem -1.5rem 1rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.school-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.school-logo--light {
  background: #ffffff;
}

.school-logo--navy {
  background: #1f2d3d;
}

.school-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.school-desc {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--orange-light);
}

/* Desktop */
@media (min-width: 769px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }

  .hero-photo {
    margin: 0;
  }

  .hero p.tagline {
    margin-left: 0;
  }

  .hero-bio p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-looking-heading {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-list {
    margin-left: 0;
    margin-right: 0;
  }

  .btn-row {
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-photo {
    width: 130px;
    height: 130px;
  }

  .project-grid,
  .places-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .project-image--cover img {
    object-fit: contain;
  }

  .past-work-table {
    min-width: 0;
  }

  .past-work-table td:nth-child(1) {
    width: 96px;
    padding: 0.85rem 0.4rem 0.85rem 0.75rem;
  }

  .past-work-table td:nth-child(2) {
    padding: 0.85rem 0.75rem 0.85rem 0.4rem;
  }

  .past-work-table th:nth-child(2) {
    padding-left: 0.4rem;
  }

  section {
    padding: 3.5rem 0;
  }
}
