/* Studio NCEE — Nathan See
   Static portfolio. Display face: Press Start 2P (OFL). Accent: #d1f029. */

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #d1f029;
  --ink: #000000;
  --paper: #ffffff;
  --muted: #3a3a3a;
  --hairline: #000000;
  --header-h: 52px;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --display: var(--pixel);
  --body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 1.5rem;
  --ease: 180ms ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

figure { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.skip-link:focus {
  top: calc(var(--header-h) + 0.5rem);
  color: var(--paper);
  outline-color: var(--lime);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pixel display type stays unsmoothed so the bitmap cells stay crisp. */
.wordmark,
.hero__title,
.series-block__index,
.series-block__title,
.series-page__title,
.page h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}

/* ----- Header: lime bar ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0 var(--pad);
  width: 100%;
  border-bottom: 3px solid var(--ink);
}

.wordmark {
  font-size: clamp(16px, round(4.8vw, 8px), 24px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.9rem 0;
}

.wordmark:hover { text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-variation-settings: "wdth" 125, "wght" 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.9rem 0;
}

.site-nav a:hover { text-decoration: underline; }

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 26rem;
  background: #111;
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1.5rem;
  max-width: 100%;
  color: #fff;
  /* Hard pixel offsets, no blur, so the type stays sharp on the photo. */
  text-shadow:
    4px 4px 0 #000,
    -3px -3px 0 var(--lime);
  font-size: clamp(48px, round(down, 13vw, 8px), 160px);
  line-height: 1.15;
  text-align: center;
}

.hero__title span { display: block; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.hero__arrow svg {
  width: 1.35rem;
  height: 2.6rem;
  display: block;
  margin: 0 auto;
}

.hero__arrow--prev { left: 0.6rem; }
.hero__arrow--next { right: 0.6rem; }

.hero__arrow:hover svg polygon { fill: #fff; }

.hero__arrow[hidden] { display: none; }

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lime);
  cursor: pointer;
}

.hero__scroll svg {
  width: 1.5rem;
  height: 0.85rem;
  display: block;
  margin: 0 auto;
}

/* ----- Statement + series ----- */

.site-main { flex: 1 0 auto; width: 100%; }

.statement {
  padding: 2.25rem var(--pad);
  border-bottom: 2px solid var(--hairline);
}

.statement p {
  margin: 0;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.placeholder-note {
  font-style: italic;
  color: var(--muted);
}

.series-list { margin: 0; padding: 0; list-style: none; }

.series-block {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 2.75rem var(--pad) 3.25rem;
  border-bottom: 3px solid var(--hairline);
}

.series-block:hover { text-decoration: none; }

.series-block__index {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  padding: 0.4rem 0.45rem 0.3rem;
  margin: 0 0 0.85rem;
}

.series-block__title {
  font-size: clamp(16px, round(down, 4.4vw, 8px), 40px);
  line-height: 1.35;
  margin: 0 0 1.25rem;
  max-width: 100%;
}

.series-block:hover .series-block__title {
  background: var(--lime);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.series-block__image {
  background: #111;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.series-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--lead-position, center 35%);
}

.series-block__desc {
  margin: 0;
  font-size: 1rem;
  max-width: 42rem;
}

/* ----- Series page ----- */

.series-page {
  padding: 2.5rem var(--pad) 2.25rem;
}

.series-page__title {
  font-size: clamp(16px, round(down, 4.6vw, 8px), 40px);
  line-height: 1.35;
  margin: 0;
  max-width: 100%;
}

.series-page__desc {
  margin: 0 0 2.25rem;
  max-width: 42rem;
  font-size: 1.0625rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2.75rem 1.5rem;
  padding: 0 var(--pad) 5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 90rem;
  list-style: none;
}

.work-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.work-card__image {
  background: #d6d4cf;
  width: 100%;
}

.work-card__image img { width: 100%; height: auto; }

.work-card:hover .work-card__image,
.work-card:focus-visible .work-card__image {
  outline: 3px solid var(--lime);
  outline-offset: 0;
}

.work-card__caption {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.works-status {
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.works-status[hidden] { display: none; }

/* ----- Lightbox ----- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.94);
  color: #fff;
  padding: 3.5rem 4.5rem 4rem;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__figure img {
  max-width: min(100%, 92vw);
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #222;
}

.lightbox__caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #ddd;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.lightbox__close {
  top: 1rem;
  right: 1.15rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3.5rem;
}

.lightbox__prev { left: 0.4rem; }
.lightbox__next { right: 0.4rem; }

.lightbox__prev svg,
.lightbox__next svg {
  width: 1.2rem;
  height: 2.4rem;
  display: block;
  margin: 0 auto;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--lime); }

.lightbox__prev:hover svg polygon,
.lightbox__next:hover svg polygon { fill: var(--lime); }

.lightbox__count {
  position: absolute;
  left: 1.35rem;
  top: 1.2rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #ddd;
}

body.lightbox-open { overflow: hidden; }

/* ----- Interior pages ----- */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.75rem var(--pad) 5rem;
  width: 100%;
}

.page--wide { max-width: 68rem; }

.page h1,
.page-kicker {
  font-size: clamp(16px, round(down, 5vw, 8px), 32px);
  line-height: 1.4;
  margin: 0 0 1.75rem;
  max-width: 100%;
}

.page p {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 1.15rem;
}

.page p.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.about-portrait { background: #d6d4cf; width: 100%; }
.about-portrait img { width: 100%; }
.about-portrait figcaption {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.cv-section { margin: 0 0 2.25rem; }

.cv-section h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-variation-settings: "wdth" 125, "wght" 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--hairline);
}

.cv-list { list-style: none; margin: 0; padding: 0; }

.cv-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.975rem;
}

.cv-list .year { color: var(--muted); font-variant-numeric: tabular-nums; }


/* ----- Footer ----- */

.site-footer {
  padding: 1.75rem var(--pad);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 600;
  border-top: 2px solid var(--hairline);
}

.site-footer p { margin: 0; }

/* ----- Responsive ----- */

@media (max-width: 800px) {
  :root { --pad: 1.15rem; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-portrait { max-width: 22rem; }
}

@media (max-width: 680px) {
  .site-header {
    flex-wrap: wrap;
    padding: 0.55rem var(--pad) 0.45rem;
    gap: 0.3rem 1rem;
  }

  .wordmark,
  .site-nav a { padding: 0.35rem 0; }

  .hero {
    height: calc(100svh - var(--header-h));
    min-height: 22rem;
  }

  .hero__title {
    /* Stacked "NATHAN" / "SEE" — 6em wide at this size, with side padding */
    font-size: clamp(32px, round(down, 12.2vw, 8px), 56px);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-shadow:
      3px 3px 0 #000,
      -2px -2px 0 var(--lime);
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .lightbox { padding: 4rem 1rem 5rem; }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card:hover .work-card__image,
  .work-card:focus-visible .work-card__image { outline: none; }
}

@media print {
  .site-header { position: static; background: #fff; }
  .hero { height: auto; color: #000; }
  .hero__overlay, .hero__scroll, .hero__arrow, .lightbox, .skip-link { display: none !important; }
  .hero__title { color: #000; text-shadow: none; }
}
