* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0c1a2b;
  background: #fafaf8;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER / NAV */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e2e0;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

nav a {
  margin-left: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
}

/* PAGE FRAME */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* HERO */

.hero {
  padding: 0 0 3rem;  /* full-bleed hero sits under nav */
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #7b8ba1;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  max-width: 580px;
  font-size: 1.05rem;
  color: #435066;
}

.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #003f7f;
  color: #ffffff;
  border-color: #003f7f;
}

.btn-primary:hover {
  background: #005099;
  border-color: #005099;
}

.btn-ghost {
  background: transparent;
  border-color: #c5a46d;
  color: #704c13;
}

.btn-ghost:hover {
  background: #f3ead9;
}

/* SECTION TITLES */

.section-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #8a96aa;
  margin-bottom: 0.4rem;
}

.section-heading {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

/* CASE GRID (HOME / CASE STUDIES) */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.case-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid #e4e4e0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9aa5b8;
  margin-bottom: 0.35rem;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.case-desc {
  font-size: 0.9rem;
  color: #4b5667;
  margin-bottom: 0.75rem;
}

.case-meta {
  font-size: 0.8rem;
  color: #7b8797;
}

.case-link {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #003f7f;
  display: inline-flex;
  align-items: center;
}

.case-link span {
  margin-left: 0.25rem;
}

/* ABOUT / TWO-COL */

.two-col {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.6fr);
  gap: 2rem;
  margin-top: 2.2rem;
  align-items: flex-start;
}

.about-text p {
  margin: 0 0 0.75rem;
  color: #435066;
}

.about-meta {
  font-size: 0.85rem;
  color: #7e8aa0;
}

.about-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  border: 1px solid #e4e4e0;
}

.about-card h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.list-compact li {
  margin-bottom: 0.3rem;
}

/* CONTACT / FOOTER */

.contact-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0dd;
  font-size: 0.9rem;
  color: #435066;
}

.contact-block a {
  color: #003f7f;
}

footer.site-footer {
  border-top: 1px solid #e2e2e0;
  padding: 1.2rem 1.25rem;
  font-size: 0.8rem;
  color: #9099aa;
  text-align: center;
}

/* CASE STUDY PAGES */

.hero-case {
  padding: 3.2rem 0 2.5rem;
}

.hero-case h1 {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
}

.hero-case-sub {
  max-width: 640px;
  color: #435066;
  font-size: 1rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.stat-pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #f2f2ee;
  font-size: 0.8rem;
  color: #555c66;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(0,1.4fr);
  gap: 2.3rem;
  margin-top: 2.3rem;
}

.case-section {
  margin-bottom: 1.6rem;
}

.case-section h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #7b8797;
  margin-bottom: 0.4rem;
}

.case-section p {
  margin: 0;
  font-size: 0.95rem;
  color: #435066;
}

.case-img-placeholder {
  border-radius: 14px;
  border: 1px dashed #c8c8c0;
  background: linear-gradient(135deg,#f7f7f3,#f0f0ea);
  padding: 1.4rem;
  font-size: 0.85rem;
  color: #7b8797;
  text-align: center;
}

.role-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e4df;
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: #435066;
}

.role-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: #003f7f;
  margin-top: 2rem;
}

.back-link span {
  margin-right: 0.35rem;
}

/* LOGO & IMAGES */

.logo img,
.logo-mark {
  height: 50px;
  display: block;
}

.case-img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.case-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  display: block;
}

/* HERO BANNER (HOME) */

.hero-banner {
  width: 100vw;
  height: 500px;
  object-fit: cover;
  display: block;
  margin: -2.5rem calc(50% - 50vw) 1.75rem;
  border-radius: 0;
}

/* SIMPLE PORTFOLIO GRID (if used anywhere) */

.portfolio-header {
  padding: 3rem 0 1.5rem;
}

.portfolio-intro {
  max-width: 640px;
  font-size: 0.98rem;
  color: #435066;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.portfolio-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e4e4e0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  padding: 0.9rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

.portfolio-caption {
  font-size: 0.86rem;
  color: #435066;
}

/* CASE VIDEO BLOCK */

.case-video {
  margin: 2.5rem 0;
}

.case-video h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7b8797;
  margin: 0 0 0.75rem;
}

.case-video-player {
  width: 100%;
  max-width: 960px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 0.75rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
  background: #000;
}

.case-video-caption {
  font-size: 0.9rem;
  color: #435066;
  max-width: 720px;
}

/* === PORTFOLIO SLIDER (caption below image, full artwork) === */

.portfolio-shell {
  margin-top: 1rem;
}

/* main slider row: arrows + frame */
.portfolio-slider {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* outer frame */
.slider-frame {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #e4e4e0;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* inner figure */
.slider-main {
  margin: 0;
}

/* main image: always fully visible */
.slider-main-image {
  width: 100%;
  height: auto;
  object-fit: contain;    /* show 100% of artwork */
  display: block;
  background: #000;       /* behind any letterboxing */
}

/* video inside slider – square & uncropped */
.slider-main-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #000;
}

/* caption bar UNDER the media */
.slider-caption-bar {
  background: #e4e4e0;
  color: #0c1a2b;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* link under the frame */
.slider-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #003f7f;
}

.slider-link::after {
  content: '↗';
  margin-left: 0.3rem;
  font-size: 0.9em;
}

/* arrows */

.slider-arrow {
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  cursor: pointer;
  font-size: 1.6rem;
  color: #003f7f;
}

.slider-arrow:hover {
  background: #f2f6fb;
}

/* thumbnails */

.slider-thumbs {
  max-width: 1080px;
  margin: 1.6rem auto 0.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.slider-thumb {
  position: relative;
  width: 160px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #ddd;
  padding: 0;
  cursor: pointer;
  opacity: 0.25;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-thumb.is-nearby {
  opacity: 0.55;
}

.slider-thumb.is-active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.portfolio-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e0;
}

.portfolio-subheading {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .two-col,
  .case-layout {
    grid-template-columns: minmax(0,1fr);
  }

  .slider-thumb {
    width: 140px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .case-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .portfolio-slider {
    gap: 0.4rem;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }

  .slider-thumb {
    width: 120px;
  }
}
