:root {
  --bg: #f3f3f4;
  --bg-alt: #e9e9eb;
  --text: #444246;
  --text-dark: #2f2d31;
  --muted: #6f6b6f;
  --accent: #bf1e2d;
  --navy: #30364a;
  --sand: #d9d5cb;
  --container: 1120px;
  --container-narrow: 860px;
  --transition: 220ms ease;
  --page-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #dfe1e4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.site-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  background: var(--bg);
  overflow: clip;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.container--narrow {
  width: min(calc(100% - 48px), var(--container-narrow));
}

.container--wide {
  width: min(calc(100% - 48px), 1020px);
}
.container-top {margin-top: 40px;}

.section {
  position: relative;
}

.hero {
  position: relative;
  min-height: 46vw;
  max-height: 560px;
  height: 560px;
  overflow: hidden;
  background: #dedede;
}

.hero__media,
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  overflow: hidden;
}

.hero__image {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
 /* background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)); */
  pointer-events: none;
}

.site-brand {
  position: absolute;
  top: 36px;
  left: clamp(28px, 7vw, 64px);
  z-index: 2;
  max-width: 300px;
  width: 55%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-dark);
  letter-spacing: 0.045em;
  font-weight: 300;
  font-size: clamp(19.5px, 3.3vw, 42px);
  line-height: 1;
}

.logo__text {
  display: block;
}

.logo__mark {
  position: relative;
  display: inline-block;
  width: 0.9em;
  height: 0.7em;
  margin: 0 0.06em 0 0.03em;
}

.logo__mark span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.14em;
  height: 100%;
  background: var(--accent);
  transform-origin: center;
}

.logo__mark span:first-child {
  transform: rotate(35deg) translateX(-0.07em);
}

.logo__mark span:last-child {
  transform: rotate(-35deg) translateX(0.07em);
}

.section--angled-top::before,
.section--angled-both::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -92px; /* -72px; */
  height: 150px;
  background: var(--bg);
  transform: skewY(4deg);
  transform-origin: 0 0;
  z-index: 0;
}

.section--angled-both::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -78px;
  height: 160px;
  background: var(--bg-alt);
  transform: skewY(4deg);
  transform-origin: 100% 100%;
  z-index: 0;
}

.intro {
/*  padding: 132px 0 88px; */
  padding: 62px 0 88px;
  z-index: 1;
}

.intro__inner,
.cta__inner {
  position: relative;
  z-index: 1;
}

.intro h1,
.features h2,
.cta h2 {
  margin: 0;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro h1 {
  font-size: clamp(35.5px, 2.4vw, 42px);
  line-height: 1.18;
  text-align: center;
}

.intro p {
  max-width: 790px; /* 760 */
  margin: 21px auto 0;
  text-align: center;
  font-size: clamp(13.5px, 1.25vw, 15.75px);
  line-height: 1.68;
  font-weight: 400;
  color: var(--muted);
}

.intro__tagline {
  margin-top: 40px !important;
  color: #666166 !important;
  font-weight: 400 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.45 !important;
}

.gallery {
  display: grid;
  grid-template-columns: 27fr 57fr 27fr;
  gap: 14px;
  width: min(100%, 1138px);
  margin: 42px auto 0;
  align-items: stretch; /* key */
}

.gallery__item {
  width: 100%;
  margin: 0;
  min-width: 0;
}

/* NEW: force equal height */
.gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #dbdbdb;
  object-fit: cover; /* crops to maintain visual balance */
}

/* REMOVE these (or override them) */
.gallery__image--square,
.gallery__image--wide {
  aspect-ratio: auto;
}

/* optional: control the height visually */
.gallery {
  height: clamp(220px, 28vw, 360px);
}

/*
.gallery {
  display: grid;
  grid-template-columns: 27fr 57fr 27fr;
  gap: 14px;
  width: min(100%, 1138px);
  margin: 42px auto 0;
  align-items: start;
}

.gallery__item {
  width: 100%;
  margin: 0;
  min-width: 0;
}

.gallery__image {
  display: block;
  width: 100%;
  height: auto;
  background-color: #dbdbdb;
  object-fit: cover;
}

.gallery__image--square {
  aspect-ratio: 1 / 1;
}

.gallery__image--wide {
  aspect-ratio: 570 / 326;
}
*/

.features {
  padding: 40px 0 98px; /* 56px 0 148px; */
}

.features h2 {
  text-align: center;
  font-size: clamp(24px, 1.5vw, 31.5px);
  letter-spacing: 0.2em;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 78px 120px;
  max-width: 980px;
  margin: 72px auto 0;
}

.feature-card {
  text-align: center;
}

.feature-card__icon {
  position: relative;
  width: 31px;
  height: 52px;
  margin: 0 auto 24px;
}

.feature-card__icon span {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 7px;
  height: 40px;
  transform-origin: center;
}

.feature-card__icon span:nth-child(1) {
  left: 8px;
  background: var(--sand);
  transform: rotate(38deg);
}

.feature-card__icon span:nth-child(2) {
  left: 16px;
  background: #c5c1b5;
  transform: rotate(-38deg);
}

.feature-card__icon span:nth-child(3) {
  right: 6px;
  width: 4px;
  height: 19px;
  background: var(--navy);
  transform: rotate(34deg);
}

.feature-card h3 {
  margin: 0 0 12px;
  color: #5a575c;
  font-size: clamp(13.5px, 1.12vw, 15.75px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card p {
  max-width: 310px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(12.5px, 1.01vw, 14px);
  line-height: 1.58;
}

.cta {
  padding: 108px 0 32px;
  background: var(--bg-alt);
}

.cta h2 {
  font-size: clamp(21px, 1.9vw, 36px);
  line-height: 1.2;
  text-align: center;
}

.cta p {
  margin: 18px auto 0;
  text-align: center;
  color: #56525a;
  font-size: clamp(13.5px, 1.25vw, 18px);
  line-height: 1.52;
}

.cta__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
  font-size: clamp(12.75px, 1.12vw, 16.5px);
  color: #4b474d;
}

.cta__links a {
  transition: opacity var(--transition);
}

.cta__links a:hover,
.cta__links a:focus-visible {
  opacity: 0.65;
}

.site-footer {
  padding: 8px 20px 34px;
  background: var(--bg-alt);
  text-align: center;
	position: relative;
	z-index: 100;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #7f7c80;
}

.hide-mobile {
  display: inline;
}

@media (max-width: 650px) {
  .hero {
    height: min(74vw, 520px);
    min-height: 340px;
  }

  .site-brand {
    top: 26px;
    left: 24px;
	width: 45%;
  }

  .section--angled-top::before,
  .section--angled-both::before {
    top: -42px;
    height: 90px;
  }

  .intro {
    padding: 86px 0 70px;
  }

 .gallery {
    grid-template-columns: 1fr;
    height: auto; /* allow natural height when stacked */
  }

  .gallery__image {
    height: auto; /* reset */
  }
	/*
 .gallery {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 14px;
  }

  .gallery__image,
  .gallery__image--square,
  .gallery__image--wide {
    aspect-ratio: 1.55 / 1;
  }
	*/

  .features {
    padding: 30px 0 112px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 52px;
  }

  .cta {
    padding: 88px 0 64px;
  }
}

@media (max-width: 640px) {
  .container,
  .container--narrow,
  .container--wide {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    height: 58vw;
    min-height: 280px;
  }

  .hero__image {
    object-position: 56% center;
  }

  .section--angled-top::before,
  .section--angled-both::before {
    top: -46px; /* -26px; */
    height: 56px;
  }

  .section--angled-both::after {
    bottom: -48px;
    height: 96px;
  }

  .intro {
    padding-top: 64px;
  }

  .intro p {
    margin-top: 18px;
  }

  .intro__tagline {
    margin-top: 34px !important;
  }

  .features h2 {
    letter-spacing: 0.14em;
  }

  .feature-card__icon {
    margin-bottom: 20px;
  }

  .cta__links {
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 30px;
  }

  .hide-mobile {
    display: none;
  }
}
