/* Local fonts: no font service or build step required. */
@font-face {
  font-family: National;
  src: url("../fonts/national-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: National;
  src: url("../fonts/national-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: National;
  src: url("../fonts/national-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: National;
  src: url("../fonts/national-semibold-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Original colours, gutters, and typography. */
:root {
  --cream: #f3f2ec;
  --brown: #3d352a;
  --red: #fe3d00;
  --page-padding: 20px;
  --column-gap: 192px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: National, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.two-columns { position: relative; padding: var(--page-padding); }
.hero-title, .lead { font-size: 30px; line-height: 34px; }
.section-title { margin-bottom: 32px; font-size: 50px; line-height: 54px; }
.prose { font-size: 16px; line-height: 22px; }
.prose p + p { margin-top: 20px; }
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 45%, 100% { opacity: 1; }
  50%, 95% { opacity: 0; }
}

/* Small inline SVG arrows inherit their link colour, including on hover. */
.arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 13px;
  height: 12px;
  margin-top: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.arrow-up { width: 14px; height: 16px; margin-top: 0; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 4px 16px 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--red);
  font-size: 16px;
  line-height: 16px;
  text-decoration: none;
  transition: background-color 300ms, color 300ms, border-color 300ms;
}
.button:hover { background: var(--red); border-color: var(--red); color: white; }
.button-light { color: var(--cream); }
.button-light:hover { background: var(--cream); border-color: var(--cream); color: var(--brown); }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 12px;
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Fixed transparent header. GSAP swaps the two buttons at the footer. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 96px;
  padding: 16px;
  pointer-events: none;
}
.site-header a { pointer-events: auto; }
.header-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .site-nav a { font-size: 18px; line-height: 22px; text-decoration: none; }
.header-actions { height: 32px; overflow: hidden; }
.header-buttons { width: 160px; }
.header-buttons .button { display: flex; margin-left: auto; }
.site-nav { display: none; }
.site-nav a { display: flex; align-items: center; gap: 8px; transform: translateX(-20px); }
.site-nav a::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: opacity 200ms;
}
.site-nav a[aria-current="location"]::before { opacity: 1; }
.site-nav a:hover, .brand:hover { text-decoration: underline; }

/* About: the hero and body are separate rows, as in the original. */
.wordmark { margin-top: 100%; margin-bottom: 32px; overflow: hidden; }
.wordmark img { width: 100%; }
.about-content { color: #374151; max-width: 65ch; }
.about-mark { width: 100%; margin-top: 96px; }

/* Team: ScrollTrigger pins the intro while the profiles scroll past. */
.team { z-index: 1; margin-top: 64px; }
.team-intro .section-title { margin-bottom: 96px; }
.team-intro .button { display: flex; margin-top: 32px; }
.team-body { margin-top: 64px; }
.person + .person { margin-top: 96px; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 32px; }
.person-details { width: 98%; color: #000; }
.person-heading { display: grid; grid-template-columns: 1fr 24px; margin-bottom: 16px; }
.person-heading h3, .person-heading p { font-size: 18px; line-height: 22px; }
.person-heading p { grid-column: 1; }
.profile-link { grid-column: 2; grid-row: 1 / 3; width: 24px; height: 25px; color: var(--red); }
.profile-link .arrow { width: 24px; height: 25px; margin: 0; }

/* Portfolio */
.portfolio { margin-top: 64px; margin-bottom: 32px; }
.portfolio-list { margin-top: 32px; border-bottom: 1px solid var(--brown); }
.portfolio-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--brown); }
.portfolio-list h3 { padding-bottom: 4px; font-size: 18px; line-height: 22px; }

/* Static fallback: all content is visible, even if scripts fail to load. */
.site-footer { background: var(--brown); color: var(--cream); }
.footer-content { display: flex; flex-direction: column; }
.footer-contact { margin-block: auto; }
.footer-contact .hero-title { margin-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 5px; }
.footer-mark-mobile { width: 100%; margin-block: 64px; }
.footer-mark { display: none; }

/* GSAP takes over the page-wide colour transition only when available. */
.scroll-effects .site-footer { background: transparent; }

@media (min-width: 768px) {
  :root { --page-padding: 32px; }
  .two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); }
  .right-column { grid-column: 2; }
  .site-header { position: fixed; align-items: center; padding: 32px; }
  .site-nav { display: flex; gap: 32px; }
  .hero-title { font-size: 50px; line-height: 54px; }
  .lead { font-size: 30px; line-height: 38px; }
  .prose { font-size: 18px; }
  .prose p + p { margin-top: 24px; }
  .dot { width: 20px; height: 20px; }
  .about { min-height: 100vh; }
  .wordmark, .about .hero-title { align-self: end; }
  .wordmark { margin: 0; }
  .about-content { font-size: 18px; }
  .team { margin-top: 192px; }
  .team-body { margin-top: 50vh; }
  .person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
  .portrait { margin-bottom: 0; }
  .person-details { width: 100%; }
  .portfolio { margin-top: 50vh; margin-bottom: 128px; }
  .site-footer { min-height: 100vh; }
  .footer-mark-mobile { display: none; }
  .footer-mark { display: block; align-self: end; width: 100%; }
}

/* Match the original desktop layout, but avoid cramped tablet profiles. */
@media (min-width: 768px) and (max-width: 1023px) {
  .person { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .button, .site-nav a::before { transition: none; }
}
