:root {
  --ink: #1d2630;
  --muted: #5f6872;
  --paper: #ffffff;
  --soft: #f4f7f7;
  --line: #d7dfdf;
  --cyan: #169dc4;
  --indigo: #41479a;
  --lime: #a8ce43;
  --orange: #f26532;
  --signal-red: #d82027;
  --shadow: 0 18px 45px rgb(22 37 46 / 14%);
  --radius: 20px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(31 42 51 / 10%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(240px, 27vw, 316px);
  height: auto;
  display: block;
  flex: 0 1 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
  transition: 180ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.65rem 0.85rem;
  color: #39434b;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--indigo);
  background: #edf4f4;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(650px, calc(100vh - 74px));
  min-height: max(650px, calc(100svh - 74px));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5rem 1rem calc(5rem + 72px);
  background: #bce5df url("/assets/images/cybertect-ice-water-poster-20260727-v1.webp") center / cover no-repeat;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(188 229 219 / 28%), rgb(113 201 213 / 18%));
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal-red);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px white,
    2px 3px 0 rgb(65 71 154 / 35%);
}

.hero-signature {
  width: min(720px, 92vw);
  margin: 0 0 1rem;
}

.brand-tagline-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo {
  width: min(780px, 94vw);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgb(21 50 63 / 18%));
}

.hero-tagline {
  margin: 1.5rem 0 0;
  color: #7025b2;
  font-size: clamp(1.12rem, 2.7vw, 1.65rem);
  font-style: italic;
  font-weight: 900;
  -webkit-text-stroke: 0.45px currentColor;
  letter-spacing: 0.11em;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.section-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-anchor {
  scroll-margin-top: 74px;
}

.about {
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 3vw, 2.5rem) 1rem;
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-media {
  width: min(100%, 540px);
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  justify-self: center;
}

.about-visual {
  width: 100%;
}

.about-visual img {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.about-copy p {
  color: #38434c;
}

.about-brand-origin .brand-tagline-svg {
  width: min(100%, 410px);
  margin-bottom: 0.65rem;
}

.brand-emphasis {
  color: var(--signal-red);
  font-weight: 900;
}

.service-badges {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.55rem, 2vw, 1rem);
}

.service-badges__trio {
  width: 100%;
  mix-blend-mode: multiply;
}

.service-badges__911 {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  clip-path: circle(50%);
}

.promise {
  min-height: max(560px, calc(100vh - 74px));
  min-height: max(560px, calc(100svh - 74px));
  display: grid;
  place-items: center;
  padding: 5rem 1rem;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgb(3 18 11 / 48%), rgb(3 18 11 / 48%)),
    url("/assets/images/bowmans-tower-forest-background-20260727-v2.webp") 62% center / cover;
  background-attachment: fixed;
}

.promise p {
  max-width: 930px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 5px 20px rgb(0 0 0 / 42%);
}

.promise span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72em;
}

@media (min-width: 881px) {
  .promise {
    place-items: center start;
    padding-inline: clamp(2rem, 7vw, 7rem);
  }

  .promise p {
    max-width: min(720px, 52vw);
    text-align: left;
  }
}

.contact {
  position: relative;
  scroll-margin-top: 74px;
  min-height: max(680px, calc(100vh - 74px));
  min-height: max(680px, calc(100svh - 74px));
  display: flex;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(100deg, rgb(12 17 25 / 74%), rgb(12 17 25 / 32%)),
    url("/assets/images/b7f725_7615f570780c461d8659f743d9be2b45~mv2.webp") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(280px, 1fr);
  gap: 3rem;
  align-items: stretch;
}

.contact-card {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
  border: 1px solid rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-card h2 {
  font-family: inherit;
  font-size: clamp(1.35rem, 2.45vw, 2.25rem);
  font-weight: 900;
  white-space: nowrap;
}

.address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  font-weight: 900;
  text-underline-offset: 5px;
}

.contact-footer {
  position: absolute;
  bottom: 0.7rem;
  left: clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.78rem;
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.stand {
  max-width: 560px;
  align-self: end;
  justify-self: end;
  margin: 0;
  font-size: clamp(0.75rem, 2vw, 1.6rem);
  font-weight: 800;
  text-align: right;
  text-shadow: 0 5px 20px rgb(0 0 0 / 50%);
}

.logo-crawler {
  position: relative;
  isolation: isolate;
  height: 72px;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 18%);
  background:
    linear-gradient(90deg, rgb(8 17 27 / 98%), rgb(25 43 59 / 98%) 50%, rgb(8 17 27 / 98%));
  box-shadow: inset 0 12px 22px rgb(0 0 0 / 18%);
}

.hero > .logo-crawler {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8px;
  left: 0;
  width: 100%;
}

.logo-crawler::before,
.logo-crawler::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(24px, 5vw, 72px);
  pointer-events: none;
}

.logo-crawler::before {
  left: 0;
  background: linear-gradient(90deg, #08111b, transparent);
}

.logo-crawler::after {
  right: 0;
  background: linear-gradient(270deg, #08111b, transparent);
}

.logo-crawler__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.logo-crawler__track {
  width: max-content;
  height: 100%;
  display: flex;
  animation: logo-crawler-scroll 106s linear infinite;
  will-change: transform;
}

.logo-crawler:hover .logo-crawler__track {
  animation-play-state: paused;
}

.logo-crawler__set {
  height: 100%;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 5px;
}

.logo-crawler__item {
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 6px 11px;
  overflow: hidden;
  border: 1px solid rgb(215 223 223 / 88%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 24%);
}

.logo-crawler__item img {
  width: auto;
  height: 42px;
  max-width: clamp(120px, 14vw, 180px);
  object-fit: contain;
}

@keyframes logo-crawler-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 1rem clamp(3rem, 7vw, 5rem);
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgb(168 206 67 / 18%), transparent 28%),
    radial-gradient(circle at 88% 30%, rgb(22 157 196 / 16%), transparent 30%),
    var(--soft);
}

.page-hero .section-shell {
  max-width: 900px;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
}

.portfolio-page-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.portfolio-page-content {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

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

.portfolio-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
  text-decoration: none;
}

.portfolio-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(transparent 40%, rgb(13 20 26 / 86%));
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
  transform: scale(1.045);
}

.portfolio-card-content {
  width: 100%;
  padding: 2rem;
}

.portfolio-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
}

.portfolio-card p {
  margin: 0.4rem 0 0;
  color: rgb(255 255 255 / 80%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: var(--indigo);
  font-weight: 900;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

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

.photo-card {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgb(22 37 46 / 10%);
}

.photo-card a {
  display: block;
  overflow: hidden;
  background: #e7ecec;
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 300ms ease;
}

.photo-card img:not([width][height]) {
  aspect-ratio: 1 / 1;
}

.photo-card a:hover img,
.photo-card a:focus-visible img {
  transform: scale(1.025);
}

.photo-card figcaption {
  padding: 1rem 1.1rem 1.15rem;
  color: #3f4b54;
  font-weight: 700;
}

.wall-intro {
  max-width: 920px;
  margin: 0 auto 3rem;
}

.wall-feature {
  width: min(100%, 920px);
  margin: 0 auto 2.5rem;
}

.wall-feature img {
  max-height: 680px;
  object-fit: contain;
}

.wall-pair {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.wall-pair .photo-card {
  display: flex;
  flex-direction: column;
}

.wall-pair .photo-card a {
  flex: 1;
}

.wall-pair .photo-card img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.wall-pair .photo-card figcaption {
  text-align: center;
}

.masonry {
  columns: 3 300px;
  column-gap: 1.2rem;
}

.masonry .photo-card {
  margin: 0 0 1.2rem;
  break-inside: avoid;
}

.site-footer {
  padding: 2rem 1rem;
  color: rgb(255 255 255 / 68%);
  background: #202326;
  font-size: 0.83rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.lightbox {
  width: min(94vw, 1100px);
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  color: white;
  border: 0;
  background: #11171d;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgb(0 0 0 / 55%);
}

.lightbox::backdrop {
  background: rgb(4 8 12 / 86%);
  backdrop-filter: blur(5px);
}

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: 94vh;
}

.lightbox img {
  width: 100%;
  height: min(78vh, 900px);
  object-fit: contain;
  background: #0d1217;
}

.lightbox-caption {
  margin: 0;
  padding: 1rem 4rem 1rem 1.25rem;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 44px;
  height: 44px;
  color: white;
  border: 1px solid rgb(255 255 255 / 30%);
  background: rgb(10 15 20 / 72%);
  border-radius: 50%;
  font-size: 1.55rem;
  cursor: pointer;
}

.error-page {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  text-align: center;
  background: var(--soft);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.15rem;
  color: white;
  background: var(--indigo);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    padding: 0.65rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    align-items: stretch;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .stand {
    justify-self: start;
    text-align: left;
  }

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

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

  .promise {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: min(250px, calc(100vw - 120px));
  }

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

  .portfolio-grid,
  .collection-grid,
  .collection-grid.two,
  .wall-pair {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 440px;
  }

  .contact {
    min-height: max(760px, calc(100vh - 74px));
    min-height: max(760px, calc(100svh - 74px));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero-video {
    display: none;
  }

  .logo-crawler::before,
  .logo-crawler::after {
    display: none;
  }

  .logo-crawler__viewport {
    overflow-x: auto;
  }

  .logo-crawler__track {
    animation: none;
    will-change: auto;
  }

  .logo-crawler__set[aria-hidden="true"] {
    display: none;
  }
}
