:root {
  --blue: #2c6b92;
  --orange: #c95a36;
  --ink: #2f2e2e;
  --muted: #787878;
  --paper: #ffffff;
  --dark: #282828;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: #111;
}

.skip-link:focus {
  transform: none;
}

.hero,
.hero-slides {
  min-height: clamp(320px, 42vw, 570px);
}

.hero-slides {
  position: relative;
  overflow: hidden;
  background: #eee;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 850ms ease, visibility 850ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide figcaption {
  position: absolute;
  top: 50%;
  left: max(1.25rem, calc((100% - var(--content-width)) / 2));
  transform: translateY(-50%);
  padding: 0.45rem 0.8rem;
  color: #2f2e2e;
  background: rgb(255 255 255 / 68%);
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  letter-spacing: 0.025em;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 1.35rem;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #333;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 4rem;
  border: 0;
  color: #fff;
  background: rgb(0 0 0 / 20%);
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.hero-slides:hover .hero-control,
.hero-control:focus-visible {
  opacity: 1;
}

.hero-control:hover {
  background: rgb(0 0 0 / 44%);
}

.hero-previous {
  left: 0;
}

.hero-next {
  right: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100% - 2.5rem));
  min-height: 118px;
  margin: 0 auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.83rem;
  letter-spacing: 0.035em;
}

.brand img {
  width: 58px;
  height: 61px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  padding: 0.25rem 0.9rem;
  color: var(--blue);
  border-left: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.site-header nav a+a {
  border-left-color: #9ab5c4;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.is-current {
  color: var(--orange);
}

.content-column {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.intro {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.down-arrow {
  height: 3rem;
  margin: 0 0 3rem;
  color: #7ba2bd;
  font-size: 4rem;
  font-weight: 200;
  line-height: 0.5;
}

h1,
h2,
.project-number,
.project-date {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.intro h1 {
  margin: 0 0 1.6rem;
  color: var(--orange);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.intro p:last-child {
  max-width: 780px;
  margin: 0 auto;
  color: #555;
}

.projects {
  padding-bottom: 3rem;
}

.project {
  padding: 4.5rem 0;
  border-top: 1px solid #ddd;
}

.project-heading {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: start;
  margin-bottom: 2rem;
}

.project-number {
  margin: 0;
  color: #aac0cc;
  font-size: 1.45rem;
  font-weight: 700;
}

.project h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
}

.project-date {
  margin: 0.45rem 0 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-image,
.project-gallery img {
  width: 100%;
  border: 1px solid #e5e5e5;
}

.project-image-wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-image-portrait {
  width: min(620px, 100%);
  max-height: 720px;
  margin-inline: auto;
  object-fit: cover;
}

.project-copy {
  margin: 2rem 0;
  column-count: 2;
  column-gap: 3.5rem;
}

.project-copy p {
  margin: 0 0 1.25rem;
  break-inside: avoid;
}

.project-gallery {
  display: grid;
  gap: 1.25rem;
}

.project-gallery.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.project-gallery img {
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.site-footer {
  padding: 1rem 1.25rem;
  color: var(--blue);
  background: #efefef;
  text-align: center;
  font-size: 0.67rem;
}

.site-footer p {
  margin: 0;
}

.contact-page {
  min-height: 100vh;
  color: #eee;
  /*background: var(--dark) url("images/contact-background.jpg") center / cover fixed;*/
  background: var(--dark);
}

/*

.contact-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.contact-page > *:not(.contact-background-video) {
  position: relative;
  z-index: 1;
}

.contact-panel {
  min-height: 560px;
}

.contact-form-wrap {
  width: min(400px, 100%);
}

.contact-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.8rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

*/

/*
.contact-main {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(280px, 1fr);
  grid-template-areas:
    "form video"
    "identity identity";
  align-items: start;
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 3.8rem;
  min-height: 560px;
}

.contact-background-video {
  grid-area: video;
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
  pointer-events: none;
}

*/

.contact-main {
  /* Slightly wider overall, with thinner outer margins */
  width: min(1040px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 0;
}

.contact-panel {
  display: grid;

  /* Slightly narrower form column, giving more room to the video */
  grid-template-columns: minmax(0, 380px) minmax(300px, 1fr);

  grid-template-areas:
    "form video"
    "identity identity";

  align-items: start;

  /* Slightly less space between the columns */
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: 3.8rem;
  min-height: 560px;
}

/* This is replaced with the new video zooming effect below (along with the new .contact-video-frame), this is kept in case it's needed.
.contact-background-video {
  grid-area: video;
  display: block;
  width: 100%;

  /* Previously 440px
  max-width: 480px;

  height: auto;

  /* Aligns the video with the top of the Name input
  margin: 5.9rem auto 0;

  pointer-events: none;
}
*/

.contact-video-frame {
  grid-area: video;
  width: 100%;
  max-width: 480px;
  margin: 5.9rem auto 0;
  overflow: hidden;
}

.contact-background-video {
  display: block;

  /* Enlarges the video, causing its sides to be cropped */
  width: 150%;
  max-width: none;
  height: auto;

  /* Keeps the enlarged video centered in the cropping frame */
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  pointer-events: none;
}

.contact-form-wrap {
  grid-area: form;
  width: 100%;
  max-width: 400px;
}

.contact-identity {
  grid-area: identity;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact-form-wrap h1 {
  margin: 0 0 2.25rem;
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1.3;
}

.contact-form {
  display: grid;
}

.contact-form label {
  margin: 0.45rem 0 0.1rem;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: rgb(50 50 50 / 92%);
  box-shadow: 0 1px 6px rgb(0 0 0 / 50%);
  font: inherit;
}

.contact-form input {
  height: 2.2rem;
  padding: 0.25rem 0.65rem;
}

.contact-form textarea {
  min-height: 8rem;
  padding: 0.55rem 0.65rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.contact-form button {
  justify-self: end;
  margin-top: 0.8rem;
  padding: 0.25rem 0.55rem;
  border: 0;
  border-radius: 8px;
  color: var(--orange);
  background: #303030;
  box-shadow: 0 1px 6px rgb(0 0 0 / 55%);
  text-transform: uppercase;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: #fff;
  background: var(--orange);
}

.form-note {
  margin: 0.55rem 0 0;
  color: #aaa;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.contact-name {
  margin: 0;
  text-align: right;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.contact-rule {
  width: 1px;
  height: 4.4rem;
  background: var(--orange);
}

.contact-identity a {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 700;
}

.site-header-dark {
  min-height: 96px;
}

.contact-footer {
  background: rgb(239 239 239 / 72%);
}

@media (max-width: 720px) {

  .hero,
  .hero-slides {
    min-height: 330px;
  }

  .hero-slide figcaption {
    top: auto;
    bottom: 3rem;
    left: 1rem;
    transform: none;
  }

  .site-header {
    align-items: flex-start;
    min-height: 0;
    padding: 1.25rem 0;
  }

  .brand span {
    display: none;
  }

  .project-heading {
    grid-template-columns: 3.4rem 1fr;
  }

  .project-copy {
    column-count: 1;
  }

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

  .contact-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .contact-name {
    text-align: left;
  }

  .contact-rule {
    width: 4.4rem;
    height: 1px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "video"
      "form"
      "identity";
    row-gap: 2.5rem;
  }

  /*
Removed for zooming the video, the two blocks below this replace it:
  .contact-background-video {
    max-width: 100%;
    margin: 0 auto;
  }
 
  */

  .contact-video-frame {
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-background-video {
    max-width: 150%;
    margin: 0 auto;
  }

  .contact-form-wrap {
    max-width: none;
  }
}

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

  .hero-slide {
    transition: none;
  }
}