/* =========================
   Base tokens / colors
   ========================= */
:root {
  --bg: #EFEBE3;    /* warm off-white */
  --text: #111;     /* main text */
  --muted: #5e5e5e; /* secondary text */
  --ring: #111;     /* accents/borders */
}

/* =========================
   Base resets / type
   ========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, Helvetica, Arial, sans-serif;
}

/* (legacy utility kept; harmless) */
.hide-scroll-bar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll-bar::-webkit-scrollbar { display: none; }

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  background: var(--bg);
}

.logo-mark {
  width: 32px; height: 32px; display: inline-block;
  border-radius: 50%; border: 2px solid var(--text);
}

.site-nav a {
  margin-left: 24px; text-decoration: none; color: inherit;
}
.site-nav a:hover { text-decoration: underline; }

/* =========================
   HOME (Landing)
   ========================= */
.hero {
  position: relative;
  min-height: 100vh;        /* full viewport */
  padding: 10vh 6vw 0;      /* top/side breathing room */
  overflow: hidden;         /* hide overspill on very small screens */
}

/* Layout: empty left column, copy on the right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  min-height: calc(100vh - 18vh);
  position: relative;
  z-index: 1;               /* above the HOME word */
}

/* Copy block */
.hero-copy { max-width: 42rem; justify-self: end; }
.lede {
  margin: 0;
  color: var(--text);               /* black, not grey */
  line-height: 1.32;
  font-size: clamp(18px, 1.8vw, 24px);
  max-width: 40rem;
  font-weight: 400;
}
.lede-strong { font-weight: 450; }

/* Underlined keywords */
.u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Big HOME word across the bottom */
.hero-stamp {
  position: absolute;
  left: 0; right: 0; bottom: 0;   /* sit flush on the bottom */
  z-index: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: .80;               /* avoid clipping */
  white-space: nowrap;
  pointer-events: none;
  opacity: .92;
  font-size: 33vw;                /* spans full width for 4 letters */
}

/* Stack on mobile */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { justify-self: start; }
}

/* =========================
   PROJECTS (Grid / Filters)
   ========================= */
.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }
.page-title { font-size: clamp(28px, 4.5vw, 48px); margin: 12px 0 20px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 28px; }
.chip { border: 1px solid var(--text); background: transparent; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.chip.is-active { background: var(--text); color: var(--bg); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-card {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px; overflow: hidden;
  transition: transform .08s ease, box-shadow .08s ease;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.project-link { display: block; color: inherit; text-decoration: none; height: 100%; }

.project-thumb { aspect-ratio: 16/10; overflow: hidden; background: #e8e5de; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-meta { padding: 14px 14px 18px; }
.project-title { font-size: 1.15rem; margin: 0 0 6px; }
.project-tags { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.project-excerpt { margin: 0; color: #2a2a2a; font-size: .98rem; }


/* --- 1) Move the right-hand text up + start where the "M" begins --- */
.hero { padding-top: 6vh; }             /* was 10vh; moves content up */
.hero-layout{
  grid-template-columns: 1.2fr 1fr;     /* wider empty left column → text starts nearer the "M" */
  align-items: start;                    /* top-align the copy */
  gap: clamp(20px, 4vw, 56px);          /* a bit more breathing room */
}
.hero-copy{ 
  max-width: 44rem; 
  padding: .25rem 0 0;                  /* subtle spacing so it doesn't feel squished */
}

/* --- 2) Make HOME touch the edges without increasing font-size --- */
.hero-stamp{
  left: -1vw;                            /* bleed slightly to the edges */
  right: -1vw;
  letter-spacing: 0.01em;                /* tiny tracking to widen without looking odd */
  transform: scaleX(1.06);               /* horizontal stretch only */
  transform-origin: center bottom;       /* keeps baseline visual */
  line-height: .80;                      /* avoid clipping */
}



/* === HOME fine-tuning (wins over earlier rules) === */

/* 1) Move the right-hand text up, give it room above the big word,
      and start the text where the "M" begins */
body.home .hero {
  padding-top: 6vh !important;            /* move content up */
}
body.home .hero-layout {
  grid-template-columns: 1.35fr 1fr !important; /* pushes start closer to the "M" */
  align-items: start !important;                /* top align text */
  gap: clamp(24px, 5vw, 64px) !important;      /* more breathing room */
  padding-bottom: 12vh;                         /* clear space above HOME */
}
body.home .hero-copy {
  max-width: 46rem;
  padding-top: .5rem;
}

/* 2) Make HOME kiss the edges without increasing font-size */
body.home .hero-stamp {
  left: -2.5vw !important;
  right: -2.5vw !important;
  letter-spacing: 0.025em;          /* widen without looking odd */
  transform: scaleX(1.08);          /* subtle horizontal stretch */
  transform-origin: center bottom;
  line-height: .82;                  /* avoid clipping */
}


/* =========================
   ABOUT — clean final styles
   ========================= */

/* Page ink */
:root { --about-ink: #273859; }

/* Grid (same top alignment for both columns) */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items:start;
  padding: 6vh 6vw 10vh;
}

/* LEFT COLUMN */
.about-left{ position:relative; }

/* Top statement — bold, deep blue, overlaps image a bit */
.about-statement{
  position:relative;           /* sits at the very top */
  z-index:2;
  margin: 0 6% -7% 0;          /* negative bottom margin = 7% overlap */
  max-width:82%;
  color: var(--about-ink);
  font-weight:700;
  font-size: clamp(18px, 1.45vw, 20px);  /* ≈14–20 px */
  line-height:1.42;
}

/* Portrait — full column width, NO grey box, NO aspect ratio */
.about-portrait{
  position:relative;
  z-index:1;
  margin: clamp(240px, 40vh, 520px) 0 0 0;   /* push into bottom third */
  width:100%;
  max-width:none;
  background:none;                /* kill grey box */
  overflow:visible;
}
.about-portrait img{
  display:block;
  width:100% !important;          /* fill the left column */
  height:auto !important;         /* no fixed height */
  object-fit:cover;
  filter:none;                    /* not B/W */
  mix-blend-mode:normal;          /* normal color */
}

/* RIGHT COLUMN (CV) — start with Education, same color) */
.about-right{
  color: var(--about-ink);
  margin-top:0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height:1.5;
}

/* Section titles pop; entries are regular */
.cv-section{ margin: 22px 0; }
.cv-section h2{
  color: var(--about-ink);
  margin: 0 0 10px;
  font-size: .85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
}
.cv-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:12px;
  color: var(--about-ink);
}
.cv-list strong{ font-weight:400; }     /* no bold for lines */
.cv-list span{ font-weight:400; font-size:.98em; }

.cv-section.columns{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

/* Header stays site color (not blue) */
body.about .site-header,
body.about .site-header a { color: var(--text); }

/* Mobile */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-statement{ margin: 0 0 -6% 0; max-width: 100%; }
  .about-portrait{ margin-top: 48px; }
  .cv-section.columns{ grid-template-columns: 1fr 1fr; }
}


/* === ABOUT: bigger statement + stronger overlap === */

/* 18pt ≈ 24px on desktop, still responsive */
body.about .about-statement{
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.38 !important;
  /* increase the negative bottom margin so the image rides under the last lines */
  margin: 0 6% -12% 0 !important;   /* was -7% */
}

/* lift the image a touch so it meets the text nicely */
body.about .about-portrait{
  margin: clamp(200px, 36vh, 480px) 0 0 0 !important; /* was 240px/40vh/520px */
}

/* if the overlap is still shy on very wide screens, give a tiny upward nudge */
@media (min-width: 1200px){
  body.about .about-portrait img{
    transform: translateY(-2%) !important;
  }
}

/* === ABOUT: force bigger statement + 2-line overlap and move image up === */

/* Bigger statement (~18pt ≈ 24px desktop), tighter leading */
body.about .about-left .about-statement {
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.36 !important;
  /* Overlap image by ~2 lines */
  margin: 0 6% -16% 0 !important;   /* negative bottom margin = overlap */
  max-width: 82% !important;
  font-weight: 700 !important;
}

/* Move image up so it meets the text;
   smaller numbers = higher image (so more overlap) */
body.about .about-left .about-portrait {
  margin: clamp(30px, 4vh, 420px) 0 0 0 !important; /* was ~240px/40vh/520px */
}

/* Make sure no previous transforms or fixed sizing interfere */
body.about .about-left .about-portrait img {
  width: 100% !important;
  height: auto !important;
  transform: none !important;   /* cancel any earlier translateY */
}


/* === ABOUT: make placeholder text match image width === */
body.about .about-left .about-statement {
  max-width: 100% !important;     /* full width of the column */
  margin: 0 0 -14% 0 !important;  /* keep the same overlap */
  padding-right: 0 !important;    /* ensure it stretches edge to edge */
  text-align: left;               /* keep alignment clean */
}

