:root {
  --ink: #141414;
  --ink-soft: #343434;
  --muted: #6d6d6d;
  --paper: #ffffff;
  --paper-soft: #f6f4f1;
  --line: #dedbd5;
  --dark: #080808;
  --accent: #d8d8d8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.06);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.home .site-header:not(.is-scrolled),
.dark-top .site-header:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
}

.dark-top .site-header:not(.is-scrolled) {
  color: #f4f4f4;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0 28px;
}

.mobile-brand {
  display: none;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 46px);
}

.nav-links a {
  position: relative;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.home-hero {
  position: relative;
  min-height: min(900px, 100vh);
  background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.06)), url("../images/hero-heather-w17.jpg");
  background-position: center top;
  background-size: cover;
}

.hero-logo-card {
  position: absolute;
  top: clamp(96px, 14vh, 130px);
  left: clamp(80px, 10vw, 140px);
  width: min(312px, calc(100vw - 56px));
}

.hero-logo-card img {
  width: 100%;
  height: auto;
}

.mission {
  padding: 56px 0 24px;
}

.mission blockquote {
  width: min(880px, 100%);
  margin: 0 auto;
  color: #4f4f4f;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
}

.section-heading {
  margin: 0 0 32px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.section-heading.small {
  font-family: inherit;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.projects-preview,
.projects-listing {
  padding: 88px 0 96px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #111;
  color: #fff;
  aspect-ratio: 460 / 324;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, opacity 420ms ease;
}

.project-card .project-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 24px;
  background: rgba(16, 16, 16, 0.88);
  text-align: center;
  transform: translateY(100%);
  transition: transform 240ms ease;
}

.project-card:hover img,
.project-card:focus-within img {
  opacity: 0.68;
  transform: scale(1.035);
}

.project-card:hover .project-caption,
.project-card:focus-within .project-caption {
  transform: translateY(0);
}

.project-card h3 {
  margin: 0 0 8px;
  color: #f3f3f3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: #c9c9c9;
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.page-intro {
  padding: 132px 0 44px;
  text-align: center;
}

.page-intro .intro-logo {
  width: min(256px, 62vw);
  margin: 0 auto 48px;
}

.portfolio-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: end center;
  padding: 128px 0 54px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.74)), url("../images/contact-bg.jpg");
  background-position: center;
  background-size: cover;
  color: #f5f5f5;
  text-align: center;
}

.portfolio-hero h1 {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-hero p {
  max-width: 780px;
  margin: 14px auto 0;
  color: #c9c9c9;
  font-size: 18px;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-detail {
  padding: 72px 0 90px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.project-copy {
  position: sticky;
  top: 106px;
}

.project-copy h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-copy p {
  margin: 0 0 18px;
}

.project-copy ul {
  margin: 0;
  padding-left: 18px;
}

.project-copy li + li {
  margin-top: 7px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid #bdbdbd;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.project-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  background: #eee;
}

.project-gallery img:first-child {
  grid-column: 1 / -1;
  min-height: 390px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 42px;
}

.project-nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-nav a:hover {
  color: var(--ink);
}

.contact-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 118px 0 72px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.65)), url("../images/contact-bg.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.contact-logo {
  width: 200px;
  margin: 0 0 36px;
}

.contact-hero h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.58em;
  text-transform: uppercase;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 122px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-points address {
  font-style: normal;
}

.contact-points a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: #6c6c6c;
  font-size: 13px;
  text-align: center;
}

.not-found {
  min-height: calc(100vh - 77px);
  display: grid;
  place-items: center;
  padding: 120px 20px 60px;
  text-align: center;
}

.not-found img {
  width: 180px;
  margin: 0 auto 36px;
}

.not-found h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 70px;
  font-weight: 400;
}

.not-found p {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .mission blockquote {
    font-size: 26px;
  }

  .section-heading {
    font-size: 58px;
  }

  .section-heading.small {
    font-size: 30px;
  }

  .portfolio-hero h1 {
    font-size: 40px;
  }

  .portfolio-hero p {
    font-size: 16px;
  }

  .nav-inner {
    justify-content: flex-start;
    min-height: 68px;
  }

  .mobile-brand,
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--ink);
    box-shadow: 0 20px 28px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    visibility: hidden;
    transform: translateY(calc(-100% - 90px));
    transition: transform 220ms ease, visibility 0s linear 220ms;
  }

  .nav-open .nav-links {
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: transform 220ms ease;
  }

  .nav-links a {
    padding: 13px 0;
    text-align: center;
  }

  .hero-logo-card {
    left: 28px;
    top: 108px;
  }

  .project-layout,
  .contact-points {
    grid-template-columns: 1fr;
  }

  .project-copy {
    position: static;
  }

  .contact-points {
    margin-top: 72px;
  }

}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .mission blockquote {
    font-size: 22px;
  }

  .section-heading {
    font-size: 42px;
  }

  .section-heading.small {
    font-size: 25px;
  }

  .portfolio-hero h1 {
    font-size: 32px;
  }

  .portfolio-hero p {
    font-size: 14px;
  }

  .home-hero {
    min-height: 680px;
    background-position: 58% top;
  }

  .hero-logo-card {
    width: calc(100vw - 56px);
    padding: 22px 28px;
  }

  .mission {
    padding: 42px 0 0;
  }

  .projects-preview,
  .projects-listing {
    padding: 64px 0 72px;
  }

  .project-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 270px;
  }

  .project-card .project-caption {
    transform: none;
    padding: 22px 18px;
    background: rgba(16, 16, 16, 0.82);
  }

  .page-intro {
    padding-top: 112px;
  }

  .portfolio-hero {
    min-height: 300px;
    padding-top: 112px;
  }

  .project-detail {
    padding: 52px 0 68px;
  }

  .project-gallery img:first-child,
  .project-gallery img {
    min-height: 250px;
  }

  .project-nav {
    display: grid;
  }

  .contact-hero {
    padding-top: 104px;
  }

  .contact-logo {
    width: 156px;
  }

  .contact-hero h1 {
    font-size: 19px;
    letter-spacing: 0.34em;
  }

  .not-found h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
