* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: #171614;
  background: #eef3f7;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(238, 243, 247, 0.88);
  border-bottom: 1px solid rgba(23, 22, 20, 0.08);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-brand,
.site-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-brand {
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-nav a {
  color: rgba(23, 22, 20, 0.64);
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #171614;
}

.hero,
.page-shell,
.section,
.feature-grid,
.about-layout,
.contact-layout,
.portfolio-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 0.5rem 0 4.5rem;
}

.hero__media {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #d9e3ea;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-ready .hero__media img {
  transform: scale(1);
}

.hero__overlay {
  width: min(760px, 100%);
  margin-top: -7rem;
  margin-left: 3rem;
  padding: 2rem 2.25rem;
  border-radius: 1.35rem;
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px rgba(23, 22, 20, 0.08);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(23, 22, 20, 0.52);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.25rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.hero__lead,
.page-lead,
.section-copy p,
.about-copy p,
.portfolio-item__meta p,
.feature-card__body p,
.contact-card p,
.stat p {
  color: rgba(23, 22, 20, 0.68);
}

.hero__lead,
.page-lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.button--solid {
  background: #171614;
  color: #eef3f7;
}

.button--ghost {
  border: 1px solid rgba(23, 22, 20, 0.14);
  background: rgba(247, 250, 252, 0.58);
}

.section {
  padding: 0 0 4.5rem;
}

.section--intro,
.section--stats,
.section--cta {
  display: grid;
  gap: 1.5rem;
}

.split-head {
  display: grid;
  gap: 0.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  padding-bottom: 4.5rem;
}

.feature-card,
.portfolio-item,
.contact-card,
.carousel-card,
.portfolio-highlight {
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(248, 251, 253, 0.66);
  box-shadow: 0 18px 40px rgba(23, 22, 20, 0.04);
}

.feature-card img,
.portfolio-item img,
.about-image img,
.portfolio-highlight__media img,
.carousel-card__media img {
  width: 100%;
  object-fit: cover;
}

.feature-card img {
  aspect-ratio: 4 / 5;
}

.feature-card__body,
.portfolio-item__meta,
.contact-card {
  padding: 1.5rem;
}

.section--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(23, 22, 20, 0.1);
}

.stat span {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.35rem;
}

.section--cta {
  padding-bottom: 5rem;
  justify-items: start;
}

.page-shell {
  padding: 2.5rem 0 5rem;
}

.page-hero {
  padding-bottom: 3rem;
}

.portfolio-highlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin-bottom: 2rem;
}

.portfolio-highlight__media {
  overflow: hidden;
  background: #d7e2ea;
}

.portfolio-highlight__media img {
  aspect-ratio: 16 / 10;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-highlight__copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
}

.portfolio-highlight__copy p:last-child,
.carousel-card__meta p,
.carousel-head p:last-child {
  color: rgba(23, 22, 20, 0.68);
}

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

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item--wide img {
  aspect-ratio: 16 / 9;
}

.portfolio-item img {
  aspect-ratio: 4 / 5;
}

.portfolio-carousel {
  padding-bottom: 4rem;
}

.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.carousel-head h2 {
  max-width: 16ch;
}

.carousel-controls {
  display: flex;
  gap: 0.75rem;
}

.carousel-button {
  min-width: 5.6rem;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(23, 22, 20, 0.12);
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.76);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.86);
}

.carousel-track-wrap {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(34rem, 44rem);
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 22, 20, 0.18) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(23, 22, 20, 0.14);
  border-radius: 999px;
}

.carousel-card {
  scroll-snap-align: start;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.carousel-card:hover,
.portfolio-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(23, 22, 20, 0.06);
}

.carousel-card__media {
  overflow: hidden;
  background: #d7e2ea;
}

.carousel-card__media img {
  --parallax-shift: 0px;
  --hover-scale: 1;
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--parallax-shift), 0) scale(var(--hover-scale));
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
  will-change: transform;
}

.carousel-card:hover .carousel-card__media img,
.portfolio-highlight:hover .portfolio-highlight__media img {
  --hover-scale: 1.025;
  opacity: 0.98;
}

.carousel-card__meta {
  padding: 1.2rem 1.35rem 1.35rem;
}

.carousel-card__meta h3 {
  margin-bottom: 0.45rem;
}

.parallax-media {
  --parallax-shift: 0px;
  --hover-scale: 1;
  transform: translate3d(0, var(--parallax-shift), 0) scale(var(--hover-scale));
  will-change: transform;
}

.portrait-focus-left {
  object-position: 28% center;
}

.portrait-focus-right {
  object-position: 62% center;
}

.encounter-focus-left {
  object-position: 44% center;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.about-copy {
  padding: 1rem 0;
}

.about-copy p + p {
  margin-top: 1.1rem;
}

.about-image img {
  border-radius: 1.35rem;
  aspect-ratio: 4 / 5;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

code {
  padding: 0.18rem 0.4rem;
  border-radius: 0.45rem;
  background: rgba(144, 164, 179, 0.14);
  font-size: 0.92em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  .feature-grid,
  .section--stats,
  .portfolio-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-highlight {
    grid-template-columns: 1fr;
  }

  .carousel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-track {
    grid-auto-columns: minmax(24rem, 86vw);
  }

  .portfolio-item--wide {
    grid-column: span 1;
  }

  .hero__overlay {
    width: calc(100% - 2rem);
    margin: -4rem auto 0;
    padding: 1.5rem;
  }

  .hero__media img,
  .portfolio-item--wide img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero,
  .page-shell,
  .section,
  .feature-grid,
  .about-layout,
  .contact-layout,
  .portfolio-grid {
    width: min(100% - 1rem, 100%);
  }

  .hero__overlay {
    width: calc(100% - 1rem);
    margin-top: -2.5rem;
  }

  .carousel-track {
    grid-auto-columns: 88vw;
  }
}
