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

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 840px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* NAV */
nav {
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}

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

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-light);
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* FULL WIDTH HERO IMAGE */
.hero-img-full {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* PAGE HEADER */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
}

.page-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

/* DIVIDER */
hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2.5rem 0;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 2rem 0;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  background: var(--bg-secondary);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 6rem;
}

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

footer .footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

footer .footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* PROJECT PAGE */
.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 2.5rem;
}

.body-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.goal-block {
  border-left: 3px solid var(--text-primary);
  padding-left: 1.5rem;
  margin: 2rem 0 2.5rem;
}

.goal-block p {
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.wide img { height: 280px; object-fit: cover; object-position: center 40%; }

.caption {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 8px 12px;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  margin-top: 2rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text-primary); }

/* PROJECT NAV */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0 2rem;
}

.project-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.project-nav a:hover { color: var(--text-primary); }

/* TWEET CARD */
.tweet-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
  max-width: 540px;
  background: var(--bg-secondary);
}

.tweet-card img { width: 100%; display: block; }

/* PROJECT CARDS - HOMEPAGE */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 4rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.project-card:hover .project-card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.project-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CAREER HIGHLIGHT BOXES */
.highlight-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2.5rem 0 3.5rem;
}

.highlight-box {
  background: linear-gradient(145deg, #0a1628 0%, #2e4a7a 100%);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #1a3a5c;
  border-left: 1px solid #b5d4f4;
  border-right: 1px solid #b5d4f4;
  border-bottom: 1px solid #b5d4f4;
  transition: background 0.15s;
}

.highlight-box:hover {
  background: linear-gradient(145deg, #152038 0%, #3a5a8e 100%);
}

.highlight-box.no-hover:hover {
  background: linear-gradient(145deg, #0a1628 0%, #2e4a7a 100%);
}

.highlight-box .card-big {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.highlight-box .card-small {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  display: block;
  flex: 1;
}

.highlight-box .card-arrow {
  display: block;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  margin-top: 1.25rem;
}

.highlight-box:hover .card-arrow {
  color: rgba(255,255,255,0.7);
}

/* VIDEO EMBED */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  background: var(--bg-secondary);
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* SCREENSHOT */
.screenshot-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: block;
  margin: 1.5rem 0;
}

/* PRESS PAGE */
.press-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.press-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
}

.press-card:first-child { border-top: 1px solid var(--border-light); }

.press-quote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.press-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.press-pub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.press-date { font-size: 13px; color: var(--text-tertiary); }

.press-link {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 20px;
  transition: background 0.15s;
}

.press-link:hover { background: var(--bg-secondary); }

.press-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.press-pub-italic {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-tertiary);
}

/* FEATURE ARTICLES */
.feature-articles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.feature-card--chronicle { border-top: 4px solid #1a3a5c; }
.feature-card--wired { border-top: 4px solid #6B21A8; }

.feature-pub {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-pub--chronicle {
  font-family: Georgia, "Times New Roman", serif;
  color: #1a3a5c;
}

.feature-pub--wired {
  font-size: 17px;
  font-weight: 900;
  color: #6B21A8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.feature-card .feature-pub,
.feature-card .feature-headline,
.feature-card .feature-desc {
  padding: 0;
}

.feature-card > .feature-pub,
.feature-card > h2.feature-headline,
.feature-card > p.feature-desc {
  padding: 0 2rem;
}

.feature-card > .feature-pub { padding-top: 2rem; }
.feature-card > p.feature-desc { padding-bottom: 1.5rem; }

.feature-headline {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  padding: 0 2rem;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  padding: 0 2rem 1.5rem;
}

.feature-quote-band {
  padding: 1.5rem 2rem 1.75rem;
}

.feature-quote-band--chronicle {
  background: linear-gradient(145deg, #0a1628 0%, #2e4a7a 100%);
}

.feature-quote-band--wired {
  background: linear-gradient(145deg, #2d0a4e 0%, #6B21A8 100%);
}

.feature-quote-mark {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.7;
  color: #ffffff;
  opacity: 0.25;
  display: block;
  margin-bottom: 0.4rem;
}

.feature-quote-text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.75;
  font-style: italic;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-quote-cite {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  display: block;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-light);
}

.feature-date { font-size: 13px; color: var(--text-tertiary); }

.press-link-plain {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.press-link-plain:hover { color: var(--text-primary); }

/* AWARDS */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 2.5rem 0;
}

.award-card {
  background: linear-gradient(145deg, #0a1628 0%, #2e4a7a 100%);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border-top: 4px solid #1a3a5c;
  border-left: 1px solid #b5d4f4;
  border-right: 1px solid #b5d4f4;
  border-bottom: 1px solid #b5d4f4;
  display: flex;
  flex-direction: column;
}

.award-medal {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.award-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  flex: 1;
}

.award-org {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 0.75rem;
}

/* RANKINGS */
.rankings-callout {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ranking-item { flex: 1; min-width: 160px; }

.ranking-num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.ranking-context { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ranking-source { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* COMING SOON */
.coming-soon {
  padding: 8rem 0;
  text-align: center;
}

.coming-soon h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.coming-soon p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* MOBILE */
@media (max-width: 680px) {
  nav { padding: 0 1rem; }
  .nav-tagline { display: none; }
  .container { padding: 0 1.25rem; }
  .hero-img-full { height: 260px; }
  .hero-img { height: 240px; }
  .page-header h1 { font-size: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .highlight-boxes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .awards-grid { grid-template-columns: 1fr; }
  .rankings-callout { flex-direction: column; gap: 1.5rem; }
  .project-nav { flex-direction: row; }
  .stats { grid-template-columns: 1fr 1fr; }
}
