/* =============================================
   Michelle Trame Portfolio / GitHub Pages
   Harvey.ai-inspired design system
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* --- TOKENS --- */
:root {
  --dark:        #0f0e0d;
  --dark-soft:   #1c1b19;
  --cream:       #f2f1ec;
  --cream-dark:  #e8e6de;
  --white:       #ffffff;
  --text-dark:   #1a1917;
  --text-muted:  #7a7670;
  --border:      rgba(26, 25, 23, 0.1);
  --border-light: rgba(255, 255, 255, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;

  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 80px) 48px 80px;
  gap: 80px;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  font-weight: 300;
}

.hero-text p strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-text a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.hero-text a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-cue {
  margin-top: 48px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

/* --- WORK SECTION --- */
.work {
  background: var(--cream);
  padding: 72px 48px 96px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--cream-dark);
}

/* --- PROJECT CARD --- */
.work-card {
  display: block;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.work-card:hover {
  box-shadow: 0 12px 40px rgba(15, 14, 13, 0.14);
  z-index: 1;
}

.work-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-dark);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.04);
}

.work-card-tags {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: rgba(15, 14, 13, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 2px;
}

.work-card-body {
  padding: 22px 26px 26px;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.work-card-company {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.featured-marker {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  transition: color 0.2s;
}

.work-card:hover .work-card-title {
  color: #000;
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-height) + 80px) 48px 64px;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- ABOUT CONTENT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 72px 48px 96px;
  align-items: start;
}

.about-image img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 300;
}

.about-text a {
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.about-text a:hover {
  border-color: var(--text-dark);
}

/* ETHOS SECTION */
.ethos {
  background: var(--dark);
  padding: 80px 48px;
}

.ethos-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.ethos h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 600px;
}

.ethos p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 640px;
  margin-bottom: 20px;
  font-weight: 300;
}

/* --- DIVIDER --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
}

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

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

.footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- SHOW MORE --- */
.work-card-extra {
  display: none;
}

.show-more-row {
  display: flex;
  justify-content: center;
  padding: 48px 0 0;
}

.show-more-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.show-more-btn:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .hero {
    flex-direction: column;
    padding: calc(var(--nav-height) + 48px) 24px 64px;
    gap: 48px;
    text-align: center;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .work {
    padding: 48px 24px 64px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    padding: 48px 24px 64px;
    gap: 48px;
  }

  .about-image {
    display: none;
  }

  .page-hero,
  .ethos,
  .connect {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }
}
