:root {
  --ink: #050505;
  --muted: #747474;
  --blue-band: rgba(213, 230, 244, 0.9);
  --green-band: rgba(219, 242, 211, 0.92);
  --gray-band: rgba(241, 241, 241, 0.92);
  --white-band: rgba(255, 255, 255, 0.94);
  --sidebar-width: 33.333%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 44px);
}

.hero {
  width: min(1366px, 100%);
  min-height: min(787px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 290px 1fr;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      var(--white-band) 0 33.333%,
      var(--blue-band) 33.333% 50%,
      var(--green-band) 50% 66.666%,
      var(--gray-band) 66.666% 83.333%,
      var(--white-band) 83.333% 100%
    );
}

.masthead,
.sidebar,
.visual-area,
.overview {
  position: relative;
  z-index: 1;
}

.masthead {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  padding-top: 72px;
}

.brand-mark {
  grid-column: 1 / 3;
  display: flex;
  justify-content: flex-end;
  padding: 9px 28px 0 20px;
}

.brand-mark img {
  width: min(190px, 70%);
  height: auto;
  display: block;
}

.brand-copy {
  grid-column: 3 / 6;
  padding-left: 6px;
}

.brand-copy h1,
.brand-copy h2 {
  margin: 0;
  font-family: Rockwell, Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-copy p {
  margin: 18px 0 0 8px;
  color: #818181;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-copy .home-tagline {
  margin-top: -5px;
  margin-left: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: large;
  line-height: 1.2;
}

.contact-card {
  grid-column: 6 / 7;
  justify-self: center;
  width: min(168px, 86%);
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.contact-card img {
  width: min(118px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 4px;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  grid-column: 1 / 3;
  grid-row: 2;
  padding: 34px clamp(26px, 4vw, 74px) 52px;
  display: flex;
  align-items: flex-start;
}

.sidebar-panel {
  max-width: 330px;
  margin-left: auto;
  color: #404040;
}

.sidebar-panel h2,
.overview h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.sidebar-panel p {
  margin: 0 0 14px;
  color: #505050;
  font-size: 1rem;
  line-height: 1.65;
}

.visual-area {
  grid-column: 3 / 6;
  grid-row: 2;
  display: flex;
  align-items: center;
  padding: 10px 0 66px;
}

.project-strip {
    width: calc(100% + 48px);
    display: inline-flex;
    align-items: flex-start;
    margin-left: -28px;

}

.project-card {
  flex: 10 1 31.5%;
  min-width: 0;


  transform-origin: center top;
}

.project-card + .project-card {
  margin-left: -4px;
}

.project-card--one {
  transform: rotate(-10deg) translateY(4px);
}

.project-card--two {
  transform: rotate(-10deg) translateY(-4px);
}

.project-card--three {
  transform: rotate(-10deg) translateY(-12px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  display: block;
  object-fit: cover;
}

.project-card h3 {
  min-height: 68px;
  margin: 0;
  padding: 12px 14px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.25vw, 1.12rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overview {
  grid-column: 6 / 7;
  grid-row: 2;
  padding: 76px 26px 40px;
  color: #505050;
}

.overview ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
  }

  .hero {
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        var(--white-band) 0 33.333%,
        var(--blue-band) 33.333% 50%,
        var(--green-band) 50% 66.666%,
        var(--gray-band) 66.666% 83.333%,
        var(--white-band) 83.333% 100%
      );
  }

  .masthead {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 24px 16px;
  }

  .brand-mark,
  .brand-copy,
  .contact-card,
  .sidebar,
  .visual-area,
  .overview {
    grid-column: 1;
  }

  .brand-mark {
    justify-content: flex-start;
    padding: 0;
  }

  .brand-mark img {
    width: 154px;
  }

  .brand-copy {
    padding-left: 0;
  }

  .brand-copy h1 {
    white-space: normal;
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .brand-copy p {
    margin-left: 0;
    font-size: clamp(1.15rem, 7vw, 2rem);
  }

  .contact-card {
    justify-self: start;
    width: 150px;
  }

  .sidebar {
    grid-row: 2;
    padding: 20px 24px;
  }

  .sidebar-panel {
    max-width: none;
    margin-left: 0;
  }

  .visual-area {
    grid-row: 3;
    padding: 28px 24px 16px;
    overflow-x: auto;
  }

  .project-strip {
    width: max-content;
    min-width: 680px;
    margin-left: 0;
  }

  .project-card {
    width: 235px;
    flex-basis: 235px;
  }

  .overview {
    grid-row: 4;
    padding: 18px 24px 38px;
  }
}


/* Shared navigation and detail pages */
.site-nav {
  position: absolute;
  top: -34px;
  right: 5px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  font-family: Arial, Helvetica, sans-serif;
}

.site-nav a {
  min-width: 92px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e7f3df;
  outline: none;
}

.detail-page {
  width: min(1366px, 100%);
  min-height: min(787px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 240px 354px 193px;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(
      90deg,
      var(--white-band) 0 33.333%,
      var(--blue-band) 33.333% 50%,
      var(--green-band) 50% 66.666%,
      var(--gray-band) 66.666% 83.333%,
      var(--white-band) 83.333% 100%
    );
}

.detail-masthead {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  padding-top: 32px;
}

.detail-logo {
  grid-column: 1 / 3;
  display: flex;
  justify-content: flex-end;
  padding-right: 32px;
}

.detail-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.detail-title {
  grid-column: 3 / 6;
  padding: 17px 0 0 5px;
}

.detail-title h1 {
  margin: 0;
  font-family: Rockwell, Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.detail-title p {
  margin: 13px 0 0 1px;
  color: #777;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.detail-contact {
  grid-column: 6 / 7;
  justify-self: center;
  width: 184px;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding-top: 0;
  color: #777;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.14;
  text-align: center;
}

.detail-contact img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 6px;
}

.detail-contact a {
  color: inherit;
  text-decoration: none;
}

.detail-copy {
  grid-column: 1 / 3;
  grid-row: 2 / 4;
  padding: 4px 57px 57px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-copy h2 {
  width: 346px;
  margin: 0 0 21px;
  font-family: Rockwell, Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.13;
  letter-spacing: 0;
}

.detail-copy p {
  width: 330px;
  margin: 0;
  color: #555;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
}

.detail-gallery {
  grid-column: 3 / 7;
  grid-row: 2 / 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
}

.detail-case {
  min-width: 0;
  margin: 0;
}

.detail-case img {
  width: 100%;
  height: 354px;
  display: block;
  object-fit: cover;
}

.detail-caption {
  min-height: 193px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 24px 8px 0;
  color: #555;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-caption span,
.detail-caption a {
  display: block;
  color: inherit;
  text-decoration: none;
}


@media (max-width: 980px) {
  .site-nav {
    position: static;
    padding: 10px;
    justify-content: flex-start;
  }

  .site-nav a {
    flex: 1 1 140px;
  }

  .detail-page {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .detail-masthead {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .detail-logo,
  .detail-title,
  .detail-contact,
  .detail-copy,
  .detail-gallery {
    grid-column: 1;
  }

  .detail-logo {
    justify-content: flex-start;
    padding-right: 0;
  }

  .detail-title {
    padding: 0;
  }

  .detail-title h1 {
    white-space: normal;
    font-size: clamp(28px, 9vw, 40px);
  }

  .detail-title p {
    font-size: clamp(16px, 5vw, 24px);
  }

  .detail-contact {
    justify-self: start;
  }

  .detail-copy {
    grid-row: 2;
    padding: 24px;
  }

  .detail-copy h2,
  .detail-copy p {
    width: auto;
    max-width: 560px;
  }

  .detail-gallery {
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  .detail-case img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .detail-caption {
    min-height: 96px;
    padding-bottom: 22px;
  }
}


.youtube-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 14px;
}

.youtube-link img {
  width: 32px;
  height: 32px;
  display: block;
}

.youtube-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
