@font-face {
  font-family: "Subway Berlin Std";
  src: url("assets/fonts/SubwayBerlinStd-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Subway Berlin SC";
  src: url("assets/fonts/SubwayBerlinSC-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #101010;
  --accent: #e4671e;
  --grey: #ebebeb;
  --mint: #dce9dc;
  --green: #446b4f;
  --sepia: #2e2620;
  --line: rgba(16, 16, 16, 0.14);

  --marker: "Subway Berlin SC", "Permanent Marker", cursive;
  --mono: "Courier Prime", "Courier New", monospace;
  --sans: "Inter", system-ui, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1240px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--grey);
  padding: 0.55rem var(--pad);
  transition: transform .35s ease;
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.nav__links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav__links a { text-decoration: none; }
.nav__links a.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.15));
}
.hero__text {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 9vh, 7rem);
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.hero__title {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(2.5rem, 11vh, 10rem);
  color: var(--accent);
  text-shadow: 0 8px 44px rgba(0, 0, 0, 0.55);
}
.hero__title .deg { vertical-align: 0.28em; font-size: 0.4em; }
.hero__sub {
  font-family: var(--marker);
  color: var(--accent);
  font-size: clamp(2.25rem, 12vh, 11rem);
  margin-top: 1rem;
  transform: rotate(-1.5deg);
  line-height: 1.05;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.5);
}

/* ---------- Sections ---------- */
.section { padding: calc(var(--pad) * 3) var(--pad); max-width: var(--max); margin: 0 auto; }

.section__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section__title {
  font-family: var(--marker);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
}
.section__sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}
.section__dash {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin-top: 1.75rem;
}
.section__intro {
  font-family: var(--mono);
  max-width: 58ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: 1.05rem;
}

/* ---------- Two-column mono body ---------- */
.columns {
  columns: 2;
  column-gap: clamp(2.5rem, 5vw, 4rem);
}
.columns p { margin-bottom: 1.1rem; break-inside: avoid; }
.columns a { color: var(--accent); }

/* ---------- Down arrow motif ---------- */
.arrow {
  display: block;
  width: 1px;
  height: 64px;
  background: var(--ink);
  position: relative;
  margin: 3rem 0 0;
}
.arrow::after {
  content: "";
  position: absolute;
  bottom: 0; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
}

/* ---------- Transition (full-width photo band) ---------- */
.transition-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.transition-band img {
  display: block;
  width: 100%;
  height: clamp(14rem, 34vw, 24rem);
  object-fit: cover;
  object-position: center;
}
.transition-band__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ---------- About ---------- */
.about .lead {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}
.about__closing { font-family: var(--mono); }
.about__page {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
}

/* ---------- CV (Resume button) ---------- */
.section--cv {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background-image: url("assets/print-pattern.png");
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
}
.resume-btn {
  display: inline-block;
  font-family: var(--marker);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  padding: 0.7rem 3.5rem 0.85rem;
  transform: rotate(-1deg);
  transition: background .18s ease, color .18s ease;
}
.resume-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Work heading ---------- */
.work-head {
  text-align: center;
  padding-top: clamp(5rem, 12vw, 10rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.work-title {
  font-family: var(--marker);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
}

/* ---------- Divider (school work vs internship) ---------- */
.divider {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.divider__btn {
  position: relative;
  display: block;
  aspect-ratio: 1754 / 2480;
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: left center;
  cursor: pointer;
  overflow: hidden;
  transition: filter .3s ease;
}
.divider__btn:hover { filter: brightness(1.07); }

/* ---------- Projects ---------- */
.project {
  margin-bottom: clamp(4rem, 10vw, 8rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.project__tag {
  font-family: var(--marker);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
  transform: rotate(-1deg);
}
.project__sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin-top: 0.7rem;
}
.project__dash {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-top: 1.4rem;
}
.project__body { columns: 2; column-gap: clamp(2.5rem, 5vw, 4rem); margin: 2rem 0 1.5rem; }
.project__body p { margin-bottom: 1.1rem; break-inside: avoid; }
.project__body a { color: var(--accent); }
.project__caption {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 70ch;
  margin-bottom: 1.75rem;
}

/* ---------- Framed artwork ---------- */
.art { display: flex; gap: clamp(1.25rem, 3vw, 2rem); align-items: flex-start; }
.art__item {
  flex: 1;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(0.6rem, 1.2vw, 1rem);
}
.art__item img { width: 100%; height: auto; display: block; }
.art--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }

/* floor plan line drawing */
.floorplan {
  margin: 0 0 1.75rem;
  max-width: 420px;
}
.floorplan img { width: 100%; height: auto; }
.floorplan figcaption {
  font-family: var(--mono);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* ---------- Full-bleed blocks (internship, contact image) ---------- */
.fullbleed {
  position: relative;
  margin: 0 calc(var(--pad) * -1);
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
}
.fullbleed__bg { position: absolute; inset: 0; }
.fullbleed__bg img { width: 100%; height: 100%; object-fit: cover; }
.fullbleed__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.fullbleed__inner { position: relative; z-index: 2; color: #fff; max-width: 52ch; }
.fullbleed__title {
  font-family: var(--marker);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  transform: rotate(-1deg);
  margin-bottom: 1.25rem;
}
.fullbleed__sub { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; margin-bottom: 1.25rem; }
.fullbleed__inner p { font-family: var(--mono); font-size: 0.98rem; margin-bottom: 1rem; }

/* grain overlay for photo blocks */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Foto wordmark (assignment 4 placeholder) ---------- */
.foto-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--marker);
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  transform: rotate(-1deg);
  margin: 2rem 0 0;
  letter-spacing: 0.01em;
}

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.contact-split__half {
  position: relative;
  display: block;
  min-height: 100vh;
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: left center;
  overflow: hidden;
}
.contact-split__btn { cursor: pointer; transition: filter .3s ease; }
.contact-split__btn:hover { filter: brightness(1.07); }
.contact-split__label {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--marker);
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
  font-family: var(--marker);
}

/* ---------- Reveal ---------- */
.reveal,
.reveal-zoom {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(26px); }
.reveal-zoom { transform: scale(1.04); }
.reveal.in,
.reveal-zoom.in {
  opacity: 1;
  transform: none;
}
.reveal-zoom:nth-child(2) { transition-delay: 0.14s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .columns, .project__body { columns: 1; }
  .contact-split { grid-template-columns: 1fr; }
  .divider { grid-template-columns: 1fr; }
  .art { flex-direction: column; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--grey);
    gap: 2rem;
    font-size: 1.5rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: block; z-index: 60; }
  .art--grid { grid-template-columns: 1fr; }
  .fullbleed { min-height: 60vh; }
}

/* ---------- Work page (stacked work pages) ---------- */
.work-scroll {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
.work-group {
  margin-bottom: clamp(3rem, 8vw, 7rem);
}
.work-group:last-child {
  margin-bottom: 0;
}
.work-group img {
  display: block;
  width: 100%;
  height: auto;
}

