/* ============================================================
   Lauren Lee Portfolio — Shared Styles
   ============================================================ */

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

@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('assets/fonts/AlteHaasGrotesk.woff2') format('woff2'),
       url('assets/fonts/AlteHaasGrotesk.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('assets/fonts/AlteHaasGrotesk_Bold.woff2') format('woff2'),
       url('assets/fonts/AlteHaasGrotesk_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --bg:           #1c1c1c;
  --bg-card:      #2a2a2a;
  --bg-card-hover:#313131;
  --text-primary: #e8e4dc;
  --text-muted:   #8a8a8a;
  --text-dim:     #4a4a4a;
  --grid-line:    rgba(52, 52, 52, 0.6);
  --border:       #333;
  --accent-color: #EAA7C8; /* overridden per-page */
  --radius:       8px;
  --nav-height:   70px;
  --ruler-height: 44px;
  --footer-height:80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Background Grid Lines ---- */
.bg-grid {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  pointer-events: none;
  z-index: -1;
  display: flex;
  justify-content: space-evenly;
  padding: 0 50px;
}
.bg-grid__line {
  width: 1px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--grid-line) 0px,
    var(--grid-line) 10px,
    transparent 10px,
    transparent 18px
  );
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 50px;
  background: var(--bg);
}
.nav__right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}
.nav__logo {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s;
}
.nav__links a[data-page="work"]:hover   { color: #EAA7C8; }
.nav__links a[data-page="ai"]:hover     { color: #9ED7E0; }
.nav__links a[data-page="about"]:hover  { color: #808BC3; }
.nav__links a[data-page="resume"]:hover { color: #EBC21A; }
.nav__links a[data-page="email"]:hover  { color: var(--text-primary); }
.nav__links a.active {
  color: var(--accent-color);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
}
.nav__cta {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: transparent;
  border: 1px solid #444;
  color: var(--text-primary);
  padding: 8px 18px;
  margin-left: 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__cta:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

/* ---- 12-col Grid ---- */
.page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  padding: 0 50px;
}

/* ---- Ruler ---- */
.ruler {
  width: 100%;
  height: var(--ruler-height);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
}
.ruler__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ruler__tick {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}
.ruler__tick-line {
  width: 1px;
  height: 8px;
  background: var(--grid-line);
}
.ruler__tick-label {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ---- Footer ---- */
.footer {
  width: 100%;
  height: var(--footer-height);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 50px;
}
.footer__right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 16px;
  color: var(--text-dim);
  font-family: 'Alte Haas Grotesk', sans-serif;
  margin-right: 32px;
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 16px;
  color: var(--text-muted);
  font-family: 'Alte Haas Grotesk', sans-serif;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent-color); }
.footer__counter {
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #3a3a3a;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Alte Haas Grotesk', sans-serif;
  user-select: none;
}
.footer__counter:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   Work Page
   ============================================================ */
body.page-work { --accent-color: #EAA7C8; }

.work-hero {
  padding: 72px 50px 60px;
  margin-top: 15vh;
}
.work-hero__headline {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.work-hero__headline .accent {
  color: var(--accent-color);
}
.work-hero__headline .glyph {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.85em;
}

.work-grid {
  padding: 0 50px 15vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.case-card:hover {
  transform: translateY(-2px);
}
.case-card__thumb {
  width: 100%;
  aspect-ratio: 16/11;
  background: #2f2f2f;
  border-radius: var(--radius);
}
.case-card__body {
  padding: 14px 4px 20px;
}
.case-card__title {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color 0.2s;
}
.case-card__tags {
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.case-card:hover .case-card__title {
  color: var(--accent-color);
}

/* ============================================================
   About Page
   ============================================================ */
body.page-about { --accent-color: #808BC3; }

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  padding: 72px 50px 56px;
  margin-top: 15vh;
  align-items: start;
}

.about-hero {
  width: 90%;
}
.about-hero__eyebrow {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about-hero__headline {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--accent-color);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-hero__headline .glyph {
  display: inline-block;
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 0.55em;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.9;
}
.about-hero__bio {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.7;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-info__col {}
.about-info__bio {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}
.about-info__section {
  margin-bottom: 28px;
}
.about-info__label {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.about-info__role {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}
.about-info__company {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 2px;
}
.about-info__clients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-info__clients li {
  font-size: 18px;
  color: var(--text-primary);
}
.about-info__resume-btn {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 400;
  background: transparent;
  border: 1px solid #444;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.about-info__resume-btn:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

/* Photo grid */
.about-photo-grid {
  padding: 0 50px 15vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.photo-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-card--tall-left {
  grid-row: span 2;
}
.photo-card__inner {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #2c2c2c;
}
.photo-card--tall-left .photo-card__inner { min-height: 480px; }
.photo-card__img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-card--short .photo-card__inner     { min-height: 180px; }
.photo-card--med .photo-card__inner       { min-height: 240px; }

/* ============================================================
   AI / Résumé Hold Pages
   ============================================================ */
body.page-ai     { --accent-color: #9ED7E0; }
body.page-resume { --accent-color: #EBC21A; }

.hold-page {
  padding: 120px 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hold-page__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hold-page__title {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}
.hold-page__accent { color: var(--accent-color); }
.hold-page__sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }
.anim-delay-4 { animation-delay: 0.32s; }
.anim-delay-5 { animation-delay: 0.44s; }
.anim-delay-6 { animation-delay: 0.56s; }

/* ---- Hamburger ---- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 30px;
  gap: 4px;
}
.nav__mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 8px;
  transition: color 0.2s;
}
.nav__mobile-menu__close:hover { color: var(--text-primary); }
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: 'Alte Haas Grotesk', sans-serif;
  font-size: clamp(32px, 10vw, 48px);
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__mobile-menu a.active              { color: var(--accent-color); }
.nav__mobile-menu a[data-page="work"]:hover   { color: #EAA7C8; }
.nav__mobile-menu a[data-page="ai"]:hover     { color: #9ED7E0; }
.nav__mobile-menu a[data-page="about"]:hover  { color: #808BC3; }
.nav__mobile-menu a[data-page="resume"]:hover { color: #EBC21A; }
.nav__mobile-menu__contact {
  margin-top: 0;
  font-size: inherit;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__mobile-menu__contact:hover { color: var(--text-primary); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { gap: 18px; }
  .page-grid { padding: 0 20px; }
  .work-hero, .hold-page { padding-left: 20px; padding-right: 20px; }
  .work-grid { padding: 0 20px 60px; grid-template-columns: 1fr; }
  .about-top { padding: 40px 20px 40px; grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; gap: 0px; }
  .about-photo-grid { padding: 0 20px 60px; grid-template-columns: 1fr; }
  .about-hero {width: 100%; margin-bottom: 20px;}
  .photo-card--tall-left { grid-row: auto; }
  .bg-grid { padding: 0 20px; }
  .bg-grid__line:nth-child(2),
  .bg-grid__line:nth-child(5) { display: none; }
  .ruler { padding: 0; }
  .footer {
    padding: 16px 20px;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 6px;
  }
  .footer__copy { display: block; }
  .footer__right { grid-column: 1; }
}

@media (max-width: 500px) {
  .nav { padding: 0 20px; }
  .nav__right { display: none; }
  .nav__hamburger { display: flex; }
}
