/* ============ FONTS ============ */
@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/Oswald-Variable-latin.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Overused Grotesk';
  src: url('assets/fonts/OverusedGrotesk-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Overused Grotesk';
  src: url('assets/fonts/OverusedGrotesk-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Overused Grotesk';
  src: url('assets/fonts/OverusedGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS / RESET ============ */
:root {
  --periwinkle: #dbe4f8;
  --ink: #0e0e0e;
  --black: #050505;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --title: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Overused Grotesk', 'Helvetica Neue', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 600;
  background: var(--periwinkle);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--periwinkle); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--pad);
  mix-blend-mode: difference;
  color: #dbe4f8;
}
.nav a { text-decoration: none; }
.nav__logo {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: .02em;
}
.nav__links { display: flex; gap: 1.75rem; font-size: 1.2rem; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.5rem var(--pad) 2rem;
}
.hero__roles {
  align-self: flex-end;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
}
.hero__title {
  font-family: var(--title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 13.5vw, 12rem);
  line-height: .88;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title span { display: block; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero__title span:nth-child(2) { animation-delay: .12s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); }
  to   { opacity: 1; transform: none; }
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}
.hero__scroll { text-decoration: none; }
.hero__scroll:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ SECTION TITLES ============ */
.section-title {
  font-family: var(--title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  letter-spacing: .005em;
}
.section-title sup {
  font-size: .4em;
  vertical-align: baseline;
  position: relative;
  top: -1em;
  left: .06em;
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem var(--pad);
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  align-items: stretch;
}
.about__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2.5rem;
}
.about__services {
  list-style: none;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.7;
}
.about__text {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.about__text .section-title { margin-bottom: .3em; }

/* ============ EXPERIENCE ============ */
.experience { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.experience__list { list-style: none; margin-top: 2.5rem; }
.experience__list li {
  display: grid;
  /* fixed columns so roles and years line up across every row */
  grid-template-columns: 1fr 1fr 9em;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 2px solid var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
}
.experience__list li:last-child { border-bottom: 2px solid var(--ink); }
.experience__org { font-family: var(--title); font-weight: 600; text-transform: uppercase; font-size: 1.25em; letter-spacing: .01em; }
.experience__years { text-align: right; white-space: nowrap; }
.experience__note { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.experience__note a { text-underline-offset: 3px; }

/* ============ CLIENTS ============ */
.clients {
  background: var(--black);
  color: var(--periwinkle);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 8rem);
}
.clients .section-title { padding: 0 var(--pad); }
.clients ::selection { background: var(--periwinkle); color: var(--black); }
.marquee {
  margin-top: 2.5rem;
  overflow: hidden;
  border-top: 2px solid var(--periwinkle);
  border-bottom: 2px solid var(--periwinkle);
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  font-family: var(--title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ PROJECTS ============ */
.project {
  background: var(--black);
  color: var(--periwinkle);
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.project + .project { border-top: 1px solid rgba(219, 228, 248, .25); }

.project__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.project__strip img {
  width: 100%;
  height: clamp(160px, 26vw, 340px);
  object-fit: cover;
}
.project__strip img:only-of-type,
.project__strip img:nth-last-child(2):first-child,
.project__strip img:nth-last-child(2):first-child ~ img { grid-column: span 1; }
.project__strip:has(img:nth-last-child(2):first-child) { grid-template-columns: repeat(2, 1fr); }

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.project__title {
  font-family: var(--title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: .005em;
  max-width: 16em;
}
.project__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  flex-shrink: 0;
}
.badge { width: clamp(84px, 9vw, 120px); }
.badge svg { width: 100%; height: auto; animation: spin 24s linear infinite; }
.badge svg:hover { animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge__star { fill: var(--periwinkle); }
.badge svg text {
  font-family: var(--body);
  font-weight: 600;
  font-size: 21px;
  fill: var(--ink);
}
.badge svg text.badge__small { font-size: 17px; }
/* keep badge text upright-ish while star spins is overkill — spin whole badge slowly */
.project__roles { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

.project__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}
/* the text column sets the row height; the photo stretches to match it exactly */
.project__body figure { position: relative; min-height: 320px; }
.project__body figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__text {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 36em;
}
.project__link {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-decoration: underline;
  text-underline-offset: 5px;
  width: fit-content;
}
.project__link:hover { background: var(--periwinkle); color: var(--black); text-decoration: none; }
.project__link--soon { text-decoration: none; opacity: .7; }

/* ============ CONTACT ============ */
.contact {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(4rem, 8vw, 7rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.contact__card {
  align-self: flex-end;
  text-align: right;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  display: flex;
  flex-direction: column;
  gap: .2em;
}
.contact__card a { text-decoration: none; }
.contact__card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__name { font-family: var(--title); font-weight: 600; text-transform: uppercase; font-size: 1.2em; }
.contact__title {
  font-family: var(--title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: .95;
  margin: 2rem 0;
}
.contact__title span { display: block; }
.contact__cta {
  font-family: var(--title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: .6em 1.4em;
  border-radius: 999px;
  width: fit-content;
  transition: background .2s, color .2s;
}
.contact__cta:hover { background: var(--ink); color: var(--periwinkle); }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad);
  border-top: 2px solid var(--ink);
  font-size: 1.15rem;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .badge svg, .hero__title span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; align-items: start; }
  .about__left { gap: 1.75rem; }
  .project__body { grid-template-columns: 1fr; }
  .project__body figure { position: static; min-height: 0; }
  .project__body figure img { position: static; height: auto; }
  .project__head { flex-direction: column; align-items: flex-start; }
  .project__meta { flex-direction: row; align-items: center; gap: 1.25rem; }
  .experience__list li { grid-template-columns: 1fr auto; }
  .experience__role { grid-column: 1 / -1; order: 3; margin-top: -.5rem; opacity: .75; font-size: .85em; }
  .contact__card { align-self: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .nav__links { gap: 1rem; font-size: .85rem; }
  .project__strip { gap: .35rem; }
  .project__strip img { height: 120px; }
}
