:root {
  --brand-900: #034569;
  --brand-800: #086ca2;
  --brand-500: #3c9dd0;
  --brand-400: #64aad0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #56636a;
  --surface: #f2f5f7;
  --line: #d7e0e5;
  --header-height: 4.5rem;
  --shell: 76rem;
  --shadow: 0 1.5rem 4rem rgba(3, 69, 105, 0.13);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--brand-900);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  scroll-margin-top: var(--header-height);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand-800);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--brand-900);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.1rem, 12vw, 7.3rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.55rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  color: var(--brand-900);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(3, 69, 105, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  width: min(100% - 2rem, var(--shell));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--white);
  background: var(--brand-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}

.brand-name strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  place-content: center;
  gap: 0.3rem;
  color: var(--brand-900);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(0.42rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(4) {
  transform: translateY(-0.42rem) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: -1rem;
  left: -1rem;
  padding: 0.7rem 1rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1rem 2rem rgba(3, 69, 105, 0.1);
}

.site-nav[hidden] {
  display: none;
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: var(--brand-900);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-800);
}

.site-nav a[aria-current="true"] {
  color: var(--brand-800);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-900);
  scroll-margin-top: var(--header-height);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 48% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 69, 105, 0.98) 0%, rgba(3, 69, 105, 0.78) 54%, rgba(3, 69, 105, 0.25) 100%),
    linear-gradient(0deg, rgba(3, 69, 105, 0.65) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5.5rem 4.75rem;
}

.hero .eyebrow,
.contact-section .eyebrow {
  color: #acd8ef;
}

.hero h1 {
  max-width: none;
  color: var(--white);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.45;
}

.hero-subline {
  margin-bottom: 2rem;
  color: #d8edf8;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--brand-900);
  background: var(--white);
}

.button-primary:hover {
  color: var(--white);
  background: var(--brand-800);
}

.hero-index {
  position: absolute;
  z-index: 1;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.intro-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  gap: 2rem;
}

.section-heading {
  max-width: 48rem;
}

.intro-copy {
  color: #354249;
  font-size: 1.05rem;
}

.intro-copy p:last-child,
.process-heading p:last-child {
  margin-bottom: 0;
}

.portrait-card {
  position: relative;
  margin: 1rem 0 0;
  background: var(--brand-900);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 354 / 510;
  object-fit: cover;
  object-position: center top;
}

.portrait-card figcaption {
  padding: 1rem 1.15rem 1.15rem;
  color: var(--white);
}

.portrait-card figcaption strong,
.portrait-card figcaption span {
  display: block;
}

.portrait-card figcaption span {
  margin-top: 0.15rem;
  color: #cbe7f6;
  font-size: 0.85rem;
}

.highlights {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.highlights li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.highlights li::before {
  position: absolute;
  top: 1.05rem;
  left: 0;
  color: var(--brand-800);
  content: "✓";
}

.projects-section {
  background: var(--surface);
}

.projects-heading {
  display: grid;
  max-width: none;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.projects-heading h2 {
  margin-bottom: 0;
}

.projects-heading > p {
  max-width: 32rem;
  margin-bottom: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}

.project-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--brand-900);
  border: 0;
  cursor: zoom-in;
}

.project-image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 350ms ease, opacity 350ms ease;
}

.project-image-button:hover img,
.project-image-button:focus-visible img {
  opacity: 0.88;
  transform: scale(1.035);
}

.photo-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.6rem;
  color: var(--white);
  background: rgba(3, 69, 105, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
}

.project-content {
  flex: 1;
  padding: 1.25rem 1.2rem 1.45rem;
}

.project-year {
  margin-bottom: 0.55rem;
  color: var(--brand-800);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 0.65rem;
}

.project-content > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.process-section {
  overflow: hidden;
  background: var(--white);
}

.process-heading {
  margin-bottom: 3rem;
}

.process-heading > p:last-child {
  max-width: 42rem;
  color: var(--muted);
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.process-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-top: 4px solid var(--brand-400);
}

.process-number {
  margin-bottom: 1.25rem;
  color: var(--brand-400);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1;
}

.process-card h3 {
  margin-bottom: 1.25rem;
}

.process-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-top: 1px solid var(--line);
  color: #354249;
  line-height: 1.5;
}

.process-card li::before {
  position: absolute;
  top: 0.7rem;
  left: 0;
  color: var(--brand-800);
  content: "—";
}

.contact-section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  color: var(--white);
  background: var(--brand-900);
  scroll-margin-top: var(--header-height);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-intro h2 {
  color: var(--white);
}

.contact-intro > p:last-child {
  color: #cbe7f6;
}

.contact-details {
  font-style: normal;
}

.contact-company {
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.contact-details dl {
  margin: 1.7rem 0 0;
}

.contact-details dl div {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details dt {
  color: #acd8ef;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0.15rem 0 0;
}

.contact-details a,
.contact-links a,
.site-footer a {
  text-decoration-color: var(--brand-400);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.contact-details a:hover,
.contact-links a:hover,
.site-footer a:hover {
  color: #cbe7f6;
}

.contact-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-links a {
  font-weight: 700;
}

.site-footer {
  padding-block: 1.5rem;
  color: #d9eaf2;
  background: #023653;
  font-size: 0.8rem;
}

.footer-inner,
.footer-inner div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 0.75rem;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 25, 39, 0.94);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 78rem);
  max-height: calc(100vh - 1.5rem);
  flex-direction: column;
  color: var(--white);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
}

.lightbox-topbar h2 {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.lightbox-close {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-stage {
  display: grid;
  min-height: 0;
  align-items: center;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  gap: 0.35rem;
}

.lightbox-stage figure {
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  align-items: center;
  flex-direction: column;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  object-fit: contain;
}

.lightbox-stage figcaption {
  width: 100%;
  padding-top: 0.65rem;
  color: #d8edf8;
  font-size: 0.83rem;
  text-align: center;
}

.lightbox-nav {
  width: 2.75rem;
  height: 3.5rem;
  font-size: 1.3rem;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  color: var(--brand-900);
  background: var(--white);
}

.lightbox-nav[hidden] {
  visibility: hidden;
}

@media (min-width: 42rem) {
  .shell,
  .header-inner {
    width: min(100% - 3rem, var(--shell));
  }

  .site-nav {
    right: -1.5rem;
    left: -1.5rem;
    padding-inline: 1.5rem;
  }

  .hero-content {
    padding-block: 7rem 6rem;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.55fr);
    column-gap: clamp(3rem, 8vw, 7rem);
  }

  .intro-grid .section-heading,
  .intro-copy,
  .highlights {
    grid-column: 1;
  }

  .portrait-card {
    grid-row: 1 / span 3;
    grid-column: 2;
    align-self: start;
    margin-top: 0;
  }

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

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card:last-child {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1.25fr 1fr;
    column-gap: clamp(3rem, 8vw, 8rem);
  }

  .contact-links {
    grid-column: 2;
  }

  .footer-inner {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .footer-inner div {
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
  }

  .lightbox {
    padding: 1.5rem;
  }

  .lightbox-stage {
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    gap: 1rem;
  }

  .lightbox-nav {
    width: 3.5rem;
  }
}

@media (min-width: 60rem) {
  :root {
    --header-height: 5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[hidden] {
    position: static;
    display: flex;
    padding: 0;
    align-items: center;
    gap: clamp(1rem, 2.1vw, 2.1rem);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    position: relative;
    padding: 1rem 0;
    font-size: 0.84rem;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0.55rem;
    left: 0;
    height: 2px;
    background: var(--brand-400);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a[aria-current="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 69, 105, 0.98) 0%, rgba(3, 69, 105, 0.82) 39%, rgba(3, 69, 105, 0.12) 76%),
      linear-gradient(0deg, rgba(3, 69, 105, 0.4) 0%, transparent 42%);
  }

  .hero-content {
    padding-bottom: 7rem;
  }

  .hero-index {
    right: calc(2rem + env(safe-area-inset-right, 0px));
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .projects-heading {
    align-items: end;
    grid-template-columns: 1fr 0.72fr;
    gap: 4rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-card,
  .process-card:last-child {
    grid-column: auto;
  }

  .process-card {
    padding: 2rem 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1.35fr 0.9fr 0.8fr;
    align-items: start;
  }

  .contact-links {
    grid-column: auto;
  }
}

@media (min-width: 90rem) {
  .shell,
  .header-inner {
    width: min(100% - 6rem, var(--shell));
  }
}

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

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

@media print {
  .site-header,
  .hero,
  .intro-section,
  .projects-section,
  .process-section,
  .site-footer,
  .lightbox {
    display: none !important;
  }

  .contact-section {
    padding: 1.5cm 0;
    color: #000000;
    background: #ffffff;
  }

  .contact-section .eyebrow,
  .contact-intro h2,
  .contact-intro > p:last-child,
  .contact-details dt {
    color: #000000;
  }

  .contact-grid {
    display: block;
  }

  .contact-details,
  .contact-links {
    margin-top: 1cm;
  }

  .contact-details a,
  .contact-links a {
    color: #000000;
  }
}
