:root {
  --bg: #efeff1;        /* newsprint paper gray/
  --bg-soft: #e2e3e4;   /* slightly deeper gray for contrasting sections */
  --ink: #14140f;
  --muted: #8b8c8d;
  --muted-dark: #56575a;
  --line: #d5d6d7;
  --maxw: 1180px;
  --display: "Aboreto", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-weight: 400; line-height: 1.05; }
.display { font-family: var(--display); letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 40px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all .22s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 239, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 55px; }
.brand { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; color: var(--ink); }
.nav-links { display: flex; gap: 44px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-dark); position: relative; padding: 8px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--ink);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); line-height: 1; }

/* ---------- Hero (full-width "Hi" video) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.hero-video {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: var(--bg);
  /* video has a white background; multiply lets the paper-gray page show
     through the white while keeping the black "Hi" — so it blends in */
  mix-blend-mode: multiply;
  /* desaturate so the hand/sphere match the black & white page */
  filter: grayscale(100%);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: var(--muted); }
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(6px);} }

/* ---------- Intro block ---------- */
.intro { padding: 0px 0 100px; text-align: left; }
/* Only the name + role stay centered; everything below reads left-aligned */
.intro h1,
.intro .role { text-align: center; }
.intro h1 { font-family: var(--display); font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: 0em; margin-bottom: 24px; }
/* "I'm" sits small, inline, at the baseline of the big name */
.intro .im { font-family: var(--sans); font-size: 0.26em; letter-spacing: 0.06em; color: var(--muted-dark); vertical-align: baseline; margin-right: 0.15em; }
.intro .role { font-family: var(--sans); font-size: clamp(1.05rem, 1.5vw, 1.35rem); letter-spacing: 0.04em; margin-bottom: 40px; }
/* Cap the width and center it — a comfortable column on desktop that shrinks
   to fit any screen (no fixed side margins that break on mobile) */
.intro-prev { max-width: 760px; margin: 0 auto; }
.intro-prev p { color: var(--muted-dark); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.5rem; }
.intro-prev .label { font-family: var(--body); letter-spacing: normal; text-transform: none; font-size: 1.02rem; color: var(--muted-dark); margin-bottom: 6px; }
.prev-list { list-style: disc; padding-left: 1.5em; margin: 0; }
.prev-list li { color: var(--muted-dark); font-size: 1.02rem; line-height: 1.7; }
.intro .btn { display: flex; width: fit-content; margin: 48px auto 0; }

/* ---------- Portrait parallax ---------- */
.portrait-reveal {
  position: relative;
  height: 91vh;
  min-height: 460px;
  background-image: url("../assets/Pics/portrait.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* Simple parallax: the photo stays fixed to the viewport while the section
     scrolls over it — GPU-smooth, no JavaScript, no jump */
  background-attachment: fixed;
}
/* background-attachment:fixed is unreliable on touch devices, so there the
   photo just scrolls normally as a plain cover image */
@media (max-width: 768px) {
  .portrait-reveal { height: 56vh; min-height: 340px; background-attachment: scroll; }
}

/* ---------- Projects preview ---------- */
.projects-preview {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}
.projects-preview .display {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 60px;
}
.projects-preview .lead { font-family: var(--sans); font-size: 1.15rem; letter-spacing: 0.01em; color: var(--ink); margin: 0 auto 68px; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.area { display: flex; flex-direction: column; align-items: center; }
.area-img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  /*filter: grayscale(100%);*/
  margin-bottom: 28px;
}
.area-title {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 22px;
}
.area p { font-family: var(--sans); color: var(--ink); font-size: 1rem; line-height: 1.7; max-width: 300px; }
.area-more { display: inline-block; margin-top: 22px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: opacity .2s ease; }
.area-more:hover { opacity: 0.5; }

/* award line inside a Garden-style card */
.projects-item .award { display: block; margin-top: 12px; font-family: var(--sans); font-size: 0.82rem; color: var(--ink); }

/* A row of "issue" links for a project with multiple deliverables (e.g. MoCA) */
.project-issues { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.project-issues a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.project-issues a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 768px) {
  .areas { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Generic page head ---------- */
.page-head { padding: 70px 0 20px; text-align: center; }
.page-head .eyebrow { display: block; margin-bottom: 22px; }
.page-head h1 { font-family: var(--display); font-size: clamp(3rem, 4vw, 5rem); letter-spacing: 0.02em; }
.page-head .page-sub { font-family: var(--sans); color: var(--muted); letter-spacing: 0.06em; margin-top: 16px; }
.page-head .lead { font-family: var(--sans); color: var(--muted-dark); max-width: 640px; margin: 22px auto 0; letter-spacing: 0.02em; }

/* ---------- Garden ---------- */
.project-list { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; }
.projects-item { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.projects-item:last-child { border-bottom: 1px solid var(--line); }
.project-thumb { display: block; overflow: hidden; border-radius: 2px; }
.project-thumb img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: filter .4s ease, transform .5s ease;
}
/* Only on devices that can hover (laptops/desktops): start black & white, then
   reveal colour + zoom on hovering the picture or the headline. Touch devices
   have no hover, so they just show the images in full colour. */
@media (hover: hover) {
  .project-thumb img { /*filter: grayscale(100%); */}
  .project-thumb:hover img,
  .projects-item:has(h3 a:hover) .project-thumb img { filter: grayscale(0%); transform: scale(1.04); }
}
.project-tag { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.projects-item h3 { font-family: var(--body); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 14px; }
.projects-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.projects-item p { color: var(--muted-dark); font-size: 1rem; line-height: 1.7; }
@media (max-width: 768px) {
  .projects-item { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
}

/* ---------- Multimedia page ---------- */
.media-section { padding: 60px 0; }
.media-section + .media-section { border-top: 1px solid var(--line); }
.media-heading { font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: 0.02em; margin-bottom: 8px; }
.media-sub { font-family: var(--sans); color: var(--muted-dark); font-size: 1rem; margin-bottom: 32px; margin-top: 20px; max-width: 90%; }

/* Photography — masonry columns */
.photo-grid { columns: 4 200px; column-gap: 14px; }
.photo-grid > * { width: 100%; margin: 0 0 16px; border-radius: 3px; break-inside: avoid; display: block; overflow: hidden; }
.photo-grid img { width: 100%; display: block; }

/* Graphics — masonry (charts/maps shown in full, never cropped) */
.gfx-grid { columns: 4; column-gap: 14px; }
.gfx-grid > * { display: block; break-inside: avoid; margin: 0 0 14px; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); }
.gfx-grid img { width: 100%; height: auto; display: block; }
@media (max-width: 1000px) { .gfx-grid { columns: 3; } }
@media (max-width: 720px) { .gfx-grid { columns: 2; } }

/* Podcast episode list */
.podcast-list { list-style: none; max-width: 820px; margin: 0; }
.podcast-list li { border-top: 1px solid var(--line); }
.podcast-list li:last-child { border-bottom: 1px solid var(--line); }
.podcast-list a {
  display: flex; align-items: center;
  padding: 16px 6px;
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.4; color: var(--ink);
  transition: color .18s ease, padding-left .18s ease;
}
.podcast-list a:hover { color: var(--muted-dark); padding-left: 12px; }

@media (max-width: 640px) {
  .photo-grid { columns: 2 140px; }
  .gfx-grid { columns: 2; }
}

/* ---------- Section shell ---------- */
.section { padding: 90px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 44px 0 36px; text-align: center; }
.socials { display: flex; gap: 16px; justify-content: center; }
.socials a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; transition: all .2s ease; }
.socials a:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 22px; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 55px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 32px; }
  .nav-links a.active::after { display: none; }
  .hero { min-height: 60vh; }
  .intro { padding: 24px 0 80px; }
  .projects-preview { padding: 90px 0; }
  .section { padding: 64px 0; }
}
