:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #4c4d4b;
  --paper: #ecebe6;
  --line: rgba(18, 18, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f3ef;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4vw 12px;
  pointer-events: none;
}

.brand,
nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  line-height: 0.92;
  transition: color 260ms ease;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: filter 260ms ease;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 28px);
  max-width: min(860px, 72vw);
  padding-top: 3px;
}

nav a {
  position: relative;
  color: #161616;
  font-size: clamp(8px, 0.58vw, 10px);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 260ms ease;
}

.site-header.is-over-dark-section nav a {
  color: #f7f4ee;
}

.site-header.is-light-brand .brand {
  color: #f7f4ee;
}

.site-header.is-light-brand .brand-logo {
  filter: invert(1) brightness(1.25);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

nav a:hover::after,
nav a.is-active::after {
  transform: scaleX(1);
}

.site-sections {
  width: 100%;
}

.section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  background: var(--paper);
  opacity: 0.96;
  transform: translateY(18px);
  transition: opacity 850ms ease, transform 850ms ease;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hero-position, center);
  opacity: 0.98;
  transform: translateY(var(--hero-offset-y, 0)) scale(1.02);
  transition: transform 1200ms ease;
}

.section-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center);
  transform: scale(1.02);
  transition: transform 1200ms ease;
}

.section.is-visible .section-video {
  transform: scale(1);
}

.section.is-visible::before {
  transform: translateY(var(--hero-offset-y, 0)) scale(1);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section.is-entering::after {
  animation: section-veil 850ms ease both;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(243, 242, 237, 0.82), rgba(243, 242, 237, 0.26) 45%, rgba(243, 242, 237, 0.02));
  pointer-events: none;
}

@keyframes section-veil {
  0% {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
  100% {
    opacity: 0.88;
    backdrop-filter: blur(0);
  }
}

.section-01 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_01.png");
  --hero-position: center;
  --content-top: 25%;
  --content-left: 7.5%;
  --content-width: min(500px, 38vw);
}

.section-02 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_02.png");
  --hero-position: center;
  --content-top: 22%;
  --content-left: 7.5%;
  --content-width: min(470px, 38vw);
}

.section-03 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_03.png");
  --hero-position: center;
  --content-top: 21%;
  --content-left: 6%;
  --content-width: min(390px, 32vw);
}

.section-03::before {
  opacity: 0;
}

.section-04 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_04.png");
  --hero-position: center;
  --content-top: 23%;
  --content-left: 7%;
  --content-width: min(430px, 35vw);
}

.section-05 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_05.png");
  --hero-position: center;
  --hero-offset-y: 6%;
  --content-top: 14%;
  --content-left: 7%;
  --content-width: min(520px, 42vw);
}

.section-06 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_06.png");
  --hero-position: center;
  --content-top: 20%;
  --content-left: 7%;
  --content-width: min(460px, 36vw);
}

.section-07 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_07.png");
  --hero-position: center right;
  --content-top: 19%;
  --content-left: 6.5%;
  --content-width: min(430px, 34vw);
}

.section-07 .page-number {
  color: #f7f4ee;
}

.section-08 {
  --hero-image: url("assets/HeroShots_Website/HeroShot_08.png");
  --hero-position: center;
  --content-top: 22%;
  --content-left: 7%;
  --content-width: min(520px, 43vw);
}

.section-08::before {
  background-size: cover;
  background-position: center;
}

.section-04 {
  color: #f5f1e9;
}

.section-04::after {
  background: linear-gradient(90deg, rgba(14, 10, 7, 0.8), rgba(14, 10, 7, 0.34) 48%, rgba(14, 10, 7, 0.16));
}

.section-08::after {
  background: linear-gradient(90deg, rgba(243, 242, 237, 0.92), rgba(243, 242, 237, 0.68) 54%, rgba(243, 242, 237, 0.02) 72%);
}

.section-content {
  position: absolute;
  top: var(--content-top, 27%);
  left: var(--content-left, 7.5%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--content-width, min(490px, 43vw));
  z-index: 3;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section.is-visible .section-content,
.section.is-visible .side-stack,
.section.is-visible .side-list,
.section.is-visible .service-list,
.section.is-visible .case-gallery,
.section.is-visible .contact-card {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  top: var(--content-top, 25%);
}

.section-kicker {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(48px, 5.1vw, 92px);
}

h2 {
  font-size: clamp(34px, 3.45vw, 62px);
}

em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.copy {
  margin: 26px 0 0;
  max-width: 300px;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 16px);
  line-height: 1.45;
}

.dark .copy {
  color: rgba(255, 255, 255, 0.78);
}

.text-button,
.section-action {
  display: flex;
  align-items: center;
  gap: 22px;
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.text-button {
  width: max-content;
  max-width: 100%;
  margin: clamp(28px, 4.8vh, 52px) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  align-self: flex-start;
  cursor: pointer;
}

.text-button span,
.section-action span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 250ms ease;
}

.text-button:hover span,
.section-action:hover span {
  transform: translateX(4px);
}

.section-action {
  position: absolute;
  left: 15.5%;
  bottom: 9%;
  z-index: 3;
}

.page-number {
  position: absolute;
  right: 6%;
  bottom: 7%;
  z-index: 3;
  font-size: clamp(32px, 2.8vw, 54px);
  font-weight: 400;
}

.page-number.left {
  right: auto;
  left: 5.5%;
}

.side-stack,
.side-list,
.service-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease 120ms, transform 700ms ease 120ms;
}

.side-stack {
  position: absolute;
  top: 60%;
  left: 7.5%;
  z-index: 3;
  width: 300px;
}

.side-list {
  width: 100%;
  border-top: 1px solid var(--line);
}

.side-stack .side-list {
  margin: 0;
  opacity: 1;
  transform: none;
}

.side-stack .text-button {
  margin-top: clamp(18px, 3vh, 28px);
}

.side-list li,
.service-list li {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  font-weight: 600;
}

.side-list span,
.service-list span {
  min-width: 22px;
}

.service-list {
  width: 340px;
  opacity: 1;
  transform: none;
}

.detail-panel {
  position: absolute;
  z-index: 5;
  width: min(390px, 32vw);
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: rgba(244, 243, 239, 0.54);
  color: #151515;
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 24px 80px rgba(18, 18, 18, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.detail-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.methodology-panel {
  top: 24%;
  right: 9%;
}

.services-panel {
  top: 18%;
  right: 8%;
}

.detail-panel .section-kicker {
  margin-bottom: 18px;
}

.detail-panel h3 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.detail-panel p {
  margin: 22px 0 0;
  color: rgba(21, 21, 21, 0.76);
  font-size: 13px;
  line-height: 1.52;
}

.panel-points {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid rgba(20, 20, 20, 0.18);
}

.panel-points span {
  border-bottom: 1px solid rgba(20, 20, 20, 0.18);
  padding: 11px 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #151515;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.case-gallery {
  position: absolute;
  left: 7%;
  right: 0;
  bottom: 12%;
  z-index: 3;
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease 140ms, transform 700ms ease 140ms;
}

.case-gallery-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: min(980px, 86vw);
}

.case-gallery-header .section-kicker {
  margin: 0;
}

.gallery-controls {
  position: absolute;
  top: calc(50% + 15px);
  left: -17px;
  right: 7%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 4;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 241, 233, 0.74);
  border-radius: 50%;
  background: rgba(245, 241, 233, 0.08);
  color: #f5f1e9;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.gallery-arrow:hover:not(:disabled) {
  background: #f5f1e9;
  color: #151515;
  transform: translateY(-1px);
}

.gallery-arrow:disabled {
  cursor: default;
  opacity: 0.34;
}

.case-track {
  display: flex;
  gap: 13px;
  width: 100%;
  max-width: calc(100vw - 7%);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 7% 6px 0;
}

.case-track::-webkit-scrollbar {
  display: none;
}

.case-card {
  position: relative;
  flex: 0 0 clamp(176px, 19.2vw, 256px);
  aspect-ratio: 1;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(245, 241, 233, 0.1);
  color: #f5f1e9;
  outline: none;
}

.case-card-media {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  transform: scale(1.02);
  transition: opacity 240ms ease, transform 420ms ease, filter 420ms ease;
}

.product-shot-01 {
  background-image: url("assets/HeroShots_Products/Product_01.png");
}

.product-shot-02 {
  background-image: url("assets/HeroShots_Products/Product_02.png");
}

.product-shot-03 {
  background-image: url("assets/HeroShots_Products/Product_03.png");
}

.product-shot-04 {
  background-image: url("assets/HeroShots_Products/Product_04.png");
}

.product-shot-05 {
  background-image: url("assets/HeroShots_Products/Product_05.png");
}

.product-shot-06 {
  background-image: url("assets/HeroShots_Products/Product_06.png");
}

.product-shot-07 {
  background-image: url("assets/HeroShots_Products/Product_07.png");
}

.product-shot-08 {
  background-image: url("assets/HeroShots_Products/Product_08.png");
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.04), rgba(10, 8, 6, 0.74));
  pointer-events: none;
}

.case-card:hover .case-card-media,
.case-card:focus-visible .case-card-media,
.case-card.is-detail-visible .case-card-media {
  opacity: 1;
  transform: scale(1.07);
  transition-duration: 0ms, 420ms, 420ms;
}

.case-card.is-detail-visible .case-card-media {
  filter: brightness(0.55);
}

.case-card-caption,
.case-card-detail {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.case-card-caption {
  bottom: 16px;
  display: grid;
  gap: 5px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.case-card-caption span,
.case-card-caption p {
  color: rgba(245, 241, 233, 0.72);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.case-card-caption h3,
.case-card-caption p,
.case-card-detail h4,
.case-card-detail p {
  margin: 0;
}

.case-card-caption h3,
.case-card-detail h4 {
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.08;
}

.case-card-detail {
  top: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.case-card-detail p {
  max-width: 30ch;
  color: rgba(245, 241, 233, 0.82);
  font-size: 12px;
  line-height: 1.42;
}

.case-card.is-detail-visible .case-card-caption {
  opacity: 0;
  transform: translateY(8px);
}

.case-card.is-detail-visible .case-card-detail {
  opacity: 1;
  transform: translateY(0);
}

.process-heading {
  top: var(--content-top, 17%);
  width: min(560px, 45vw);
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(77px, 1fr));
  gap: 10px 13px;
  margin-top: 25px;
  color: #202020;
  font-size: 7px;
  font-weight: 600;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: #151515;
  text-transform: uppercase;
}

.tool-item img {
  display: block;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: contain;
}

.contact-card {
  position: absolute;
  top: 46%;
  right: 22%;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: 230px;
  color: #1d1d1d;
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease 160ms, transform 700ms ease 160ms;
}

.contact-card a,
.contact-card span {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: inherit;
  text-decoration: none;
}

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

  .section,
  .section::before,
  .section-video,
  .section-content,
  .detail-panel,
  .case-gallery,
  .case-card-media,
  .case-card-caption,
  .case-card-detail,
  .side-list,
  .service-list,
  .contact-card {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px;
    background: linear-gradient(rgba(244, 243, 239, 0.9), rgba(244, 243, 239, 0));
  }

  nav {
    gap: 16px;
    max-width: 68vw;
  }

  .section {
    min-height: 100svh;
  }

  .section-content {
    top: 24%;
    left: 6%;
    width: min(460px, 58vw);
  }

  .hero-content {
    top: 29%;
  }

  .side-stack,
  .side-list,
  .contact-card {
    right: 6%;
  }

  .side-stack {
    left: 6%;
    right: auto;
    width: 255px;
  }

  .side-list {
    width: 100%;
  }

  .case-gallery {
    left: 6%;
    bottom: 8%;
  }

  .case-gallery-header {
    width: 88vw;
  }

  .case-track {
    max-width: 94vw;
    padding-right: 6%;
  }

  .gallery-controls {
    right: 6%;
  }

  .detail-panel {
    width: min(360px, 42vw);
  }

  .methodology-panel,
  .services-panel {
    right: 6%;
  }
}

@media (max-width: 620px) {
  html {
    scroll-snap-type: none;
  }

  .site-header {
    position: fixed;
    align-items: center;
    padding: 14px 16px;
    background: rgba(244, 243, 239, 0.9);
    backdrop-filter: blur(12px);
  }

  .brand {
    font-size: 10px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  nav {
    flex-wrap: nowrap;
    gap: 14px;
    max-width: 58vw;
    overflow-x: auto;
    padding: 6px 0;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    font-size: 9px;
  }

  .section {
    min-height: 100svh;
  }

  .section-content {
    top: 20%;
    left: 6%;
    width: 75vw;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .copy {
    max-width: 230px;
  }

  .section-action {
    left: 6%;
  }

  .side-list,
  .service-list,
  .contact-card {
    display: none;
  }

  .side-stack {
    top: auto;
    bottom: 15%;
    left: 6%;
    width: auto;
  }

  .side-stack .text-button {
    margin-top: 0;
  }

  .tool-row {
    gap: 10px;
    max-width: 161px;
  }

  .section-04 .section-content {
    top: 17%;
  }

  .case-gallery {
    left: 6%;
    bottom: 9%;
    gap: 12px;
  }

  .case-gallery-header {
    width: 88vw;
  }

  .case-card {
    flex-basis: 58vw;
  }

  .case-card-detail p {
    font-size: 11px;
  }

  .detail-panel {
    left: 6%;
    right: 6%;
    top: auto;
    bottom: 14%;
    width: auto;
    max-height: 54vh;
    overflow-y: auto;
    padding: 22px;
  }

  .detail-panel h3 {
    font-size: 24px;
  }

  .tool-row {
    grid-template-columns: repeat(2, minmax(77px, 1fr));
    gap: 8px;
    max-width: none;
  }
}
