:root {
  --cyan: #22b8f0;
  --cyan-dark: #08a9df;
  --ink: #111820;
  --muted: #66717b;
  --line: #dde4e8;
  --soft: #f4f6f7;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

img,
video {
  max-width: 100%;
}

.site-header {
  align-items: center;
  margin: 7px 0;
  background: var(--cyan);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 7vw;
}

.logo img {
  display: block;
  height: 46px;
  width: auto;
}

.nav {
  align-items: center;
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.88;
  padding: 30px 0 25px;
}

.nav a:hover,
.nav a.active {
  box-shadow: inset 0 -3px 0 white;
  opacity: 1;
}

.hero {
  display: grid;
  min-height: calc(92vh - 82px);
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-content {
  grid-area: 1 / 1;
}

.video-audio-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  bottom: 22px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.03em;
  padding: 10px 15px;
  position: absolute;
  right: 22px;
  text-transform: uppercase;
  z-index: 2;
}

.video-audio-toggle:hover {
  background: #fff;
}

.hero-media {
  min-height: 620px;
  position: relative;
}

.hero-media iframe,
.hero-media img,
.hero-video {
  border: 0;
  height: 100%;
  inset: 0;
  min-height: 620px;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-media::after {
  background: linear-gradient(0deg, rgba(8, 12, 16, 0.42), rgba(8, 12, 16, 0.08));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  align-self: end;
  color: white;
  max-width: 820px;
  padding: 0 7vw 7vw;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
}

.section {
  padding: 70px 7vw;
}

.section.soft,
.page-title {
  background: var(--soft);
}

.services {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.service-icon {
  align-items: center;
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0 auto 10px;
  width: 52px;
}

.service-icon svg {
  height: 42px;
  stroke-width: 2.2;
  width: 42px;
}

.service-item h2 {
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 850;
  line-height: 1.1;
  margin: 0;
}

.home-about {
  background: var(--soft);
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(38px, 6vw, 72px);
}

.home-about p {
  color: var(--ink);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 750;
  margin: 0 auto 54px;
  max-width: 840px;
}

.home-about img {
  border-radius: 999px;
  display: block;
  margin: 0 auto;
  max-width: 760px;
  object-fit: cover;
  width: 100%;
}

.page-title {
  padding: 64px 7vw 42px;
}

.page-title p {
  color: var(--muted);
  font-size: 18px;
  margin: 18px 0 0;
  max-width: 680px;
}

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

.project-card {
  background: white;
  border-bottom: 1px solid var(--line);
}

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

.project-card h2 {
  color: var(--cyan-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 22px 0 8px;
}

.project-meta {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.project-card p {
  color: var(--muted);
  margin: 0 0 22px;
}

.project-detail {
  padding-top: 0;
}

.project-hero img {
  aspect-ratio: 16 / 8;
  display: block;
  object-fit: cover;
  width: 100%;
}

.project-intro {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
  padding: 54px 7vw;
}

.project-intro h1 {
  color: var(--cyan-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 16px;
}

.project-intro p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding: 11px 14px;
  text-transform: uppercase;
}

.tab.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
}

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

.gallery-grid button {
  background: none;
  border: 0;
  cursor: zoom-in;
  padding: 0;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.video-panel {
  margin-top: 44px;
}

.video-panel video {
  background: #000;
  display: block;
  width: 100%;
}

.site-footer {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: 46px 7vw;
}

.site-footer img {
  height: 46px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 14px 0 0;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: fixed;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 92vh;
  max-width: 92vw;
}

.lightbox button {
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  font-size: 42px;
  position: absolute;
  right: 22px;
  top: 10px;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }

  .logo img,
  .site-footer img {
    height: 38px;
  }

  .nav {
    gap: 18px;
    overflow-x: auto;
    width: 100%;
  }

  .nav a {
    padding: 4px 0 10px;
  }

  .hero,
  .hero-media,
  .hero-media iframe,
  .hero-media img,
  .hero-video {
    min-height: 520px;
  }

  .hero-content,
  .section,
  .page-title,
  .project-intro,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services,
  .project-grid,
  .project-intro,
  .site-footer {
    display: block;
  }

  .service-item + .service-item,
  .project-card + .project-card {
    margin-top: 34px;
  }

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

  .footer-contact {
    margin-top: 28px;
    text-align: left;
  }
}

/* Project carousel gallery update: tabs + large carousel */
.project-tabs {
  justify-content: center;
  margin-bottom: 24px;
}

.project-carousel {
  margin: 0 auto;
  max-width: 1180px;
}

.carousel-stage {
  background: #0b1117;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  min-height: 420px;
}

.carousel-main {
  background: #0b1117;
  border: 0;
  cursor: zoom-in;
  display: flex;
  padding: 0;
  width: 100%;
}

.carousel-main img {
  aspect-ratio: 16 / 9;
  display: block;
  max-height: 760px;
  object-fit: contain;
  width: 100%;
}

.carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 54px;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.carousel-thumbs {
  background: white;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  scroll-snap-type: x proximity;
}

.carousel-thumb {
  background: white;
  border: 3px solid transparent;
  cursor: pointer;
  flex: 0 0 122px;
  padding: 0;
  scroll-snap-align: start;
}

.carousel-thumb.active {
  border-color: var(--cyan);
}

.carousel-thumb img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 780px) {
  .carousel-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 260px;
  }

  .carousel-arrow {
    font-size: 38px;
  }

  .carousel-thumbs {
    gap: 8px;
    padding: 10px;
  }

  .carousel-thumb {
    flex-basis: 86px;
  }
}


/* 20260707 tweaks: full-bleed home about section, subtle image corners, overlay carousel arrows */
.home-about-section {
  background: var(--soft);
}

.home-about-section .home-about {
  background: transparent;
}

.project-card img,
.gallery-grid img,
.carousel-thumb,
.carousel-thumb img {
  border-radius: 6px;
}

.carousel-stage {
  display: block;
  height: clamp(420px, 62vw, 760px);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.carousel-main {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.carousel-main img {
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
  object-fit: cover;
  width: 100%;
}

.carousel-arrow {
  background: rgba(10, 16, 22, 0.34);
  border-radius: 999px;
  height: 54px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  z-index: 3;
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.carousel-arrow:hover {
  background: rgba(10, 16, 22, 0.58);
}

.carousel-thumb.active {
  box-shadow: 0 0 0 1px var(--cyan);
}

@media (max-width: 780px) {
  .home-about-section {
    padding-left: 0;
    padding-right: 0;
  }

  .home-about-section .home-about {
    padding-left: 24px;
    padding-right: 24px;
  }

  .carousel-stage {
    height: clamp(260px, 72vw, 520px);
    min-height: 0;
  }

  .carousel-arrow {
    height: 42px;
    width: 42px;
  }

  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }
}

@media (max-width: 720px) {
  .video-audio-toggle {
    bottom: 16px;
    right: 16px;
    padding: 9px 13px;
  }
}


/* 20260707 local video sizing update: show full video width without side cropping */
.hero {
  background: #000;
  display: block;
  min-height: 0;
  position: relative;
}

.hero-media {
  background: #000;
  line-height: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hero-media iframe,
.hero-media img,
.hero-video {
  display: block;
  height: auto;
  inset: auto;
  min-height: 0;
  object-fit: contain;
  position: relative;
  width: 100%;
}

.hero-media::after {
  background: linear-gradient(0deg, rgba(8, 12, 16, 0.52), rgba(8, 12, 16, 0.04));
}

.hero-content {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
}

@media (max-width: 780px) {
  .hero,
  .hero-media,
  .hero-media iframe,
  .hero-media img,
  .hero-video {
    min-height: 0;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.6vw, 42px);
    line-height: 1.02;
    max-width: 560px;
  }
}

@media (max-width: 430px) {
  .hero-content {
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(25px, 8vw, 34px);
  }
}


/* 20260708 homepage video crop: center video at 134% width */
.hero-video {
  display: block;
  width: 134%;
  max-width: none;
  margin-left: -16.3%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  position: relative;
}

/* Homepage hero title reduced about 40% */
.hero .eyebrow {
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-bottom: 11px;
}

.hero h1 {
  font-size: clamp(25px, 4.2vw, 53px);
  line-height: 1.02;
  max-width: 620px;
}

@media (max-width: 780px) {
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 0.14em;
    margin-bottom: 7px;
  }

  .hero h1 {
    font-size: clamp(17px, 5.2vw, 25px);
    max-width: 340px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(15px, 4.8vw, 20px);
  }
}


/* 20260707 update: top white gap only + full-width project carousel */
.site-header {
  margin: 7px 0 !important;
}

.project-detail .section.soft {
  padding-left: 0;
  padding-right: 0;
}

.project-detail .project-tabs {
  padding-left: 7vw;
  padding-right: 7vw;
}

.project-detail .project-carousel {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.project-detail .carousel-stage,
.project-detail .carousel-thumbs {
  border-radius: 0;
}

@media (max-width: 780px) {
  .project-detail .project-tabs {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* 20260708 mobile header + project video prompt updates */
@media (max-width: 780px) {
  .site-header {
    gap: 8px !important;
    min-height: auto !important;
    padding: 12px 24px 10px !important;
  }

  .site-header .logo img,
  .logo img {
    height: 34px !important;
  }

  .nav a {
    padding: 2px 0 6px !important;
  }
}

.video-panel {
  position: relative;
}

.project-video-wrap {
  position: relative;
  width: 100%;
}

.project-video-wrap video {
  display: block;
  width: 100%;
}

.project-video-overlay {
  align-items: center;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .30);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 850;
  inset: 0;
  justify-content: center;
  letter-spacing: .02em;
  line-height: 1.2;
  padding: 24px;
  position: absolute;
  text-align: center;
  text-transform: none;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 2;
}

.project-video-wrap.played .project-video-overlay,
.project-video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


/* 20260708 restore white gap under cyan header */
.site-header {
  margin: 7px 0 !important;
}

/* 20260708 mobile landscape homepage video correction */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-video {
    width: 112%;
    margin-left: -6%;
  }

  .hero-content {
    bottom: 9%;
  }

  .hero h1 {
    font-size: clamp(16px, 3.2vw, 22px) !important;
  }

  .hero .eyebrow {
    font-size: 7px !important;
  }
}
