/* Choiceventuregrid — design system
   Palette: eucalyptus #293B35 · ivory #F5F1E8 · sandstone #D4C2A8 · terracotta #B76E52 · charcoal #252724 */

:root {
  --eucalyptus: #293B35;
  --eucalyptus-deep: #1E2C28;
  --ivory: #F5F1E8;
  --ivory-soft: #EFE9DC;
  --sandstone: #D4C2A8;
  --sandstone-soft: #E4D8C6;
  --terracotta: #B76E52;
  --charcoal: #252724;
  --ink: #252724;
  --paper: #F5F1E8;
  --hairline: rgba(37, 39, 36, 0.16);
  --hairline-dark: rgba(37, 39, 36, 0.32);
  --hairline-light: rgba(245, 241, 232, 0.22);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --gutter: clamp(1.25rem, 2.4vw, 2.5rem);
  --shell: min(92vw, 1480px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  text-wrap: balance;
}

p {
  margin: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--eucalyptus);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- shared primitives ---------- */

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow__index {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}

.eyebrow::after {
  content: "";
  flex: 0 0 3.4rem;
  height: 1px;
  background: var(--hairline-dark);
  transform: translateY(-0.28em);
}

.section {
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.section--tight {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--sand {
  background: var(--sandstone-soft);
}

.section--dark {
  background: var(--eucalyptus);
  color: var(--ivory);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ivory);
}

.section--dark .eyebrow__index {
  color: var(--sandstone);
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
}

.headline {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  max-width: 18ch;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.75;
  color: rgba(37, 39, 36, 0.82);
  max-width: 56ch;
}

.section--dark .lead {
  color: rgba(245, 241, 232, 0.82);
}

.small {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(37, 39, 36, 0.66);
}

.caption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.58);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* media */

.media {
  position: relative;
  overflow: hidden;
  background: var(--sandstone-soft);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.media:hover img {
  transform: scale(1.045);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--5x6 { aspect-ratio: 5 / 6; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--fill { aspect-ratio: auto; height: 100%; }

.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.55rem 0.9rem;
  background: var(--ivory);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* links & buttons */

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2em;
  font-weight: 500;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.link-underline:hover {
  color: var(--terracotta);
}

.link-underline:hover::after {
  background: var(--terracotta);
  transform: scaleX(0.4);
}

.section--dark .link-underline::after {
  background: var(--ivory);
}

.section--dark .link-underline:hover::after {
  background: var(--terracotta);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.42s var(--ease);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--ivory);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleY(1);
}

.btn .btn__arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--terracotta {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn--terracotta::before {
  background: var(--terracotta);
}

.btn--terracotta:hover,
.btn--terracotta:focus-visible {
  color: var(--ivory);
}

.btn--light {
  border-color: var(--ivory);
  color: var(--ivory);
}

.btn--light::before {
  background: var(--ivory);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--eucalyptus);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.6rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  white-space: nowrap;
}

.brand::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--terracotta);
  transform: translateY(-0.08em);
  transition: transform 0.4s var(--ease);
}

.brand:hover::after {
  transform: translateY(-0.08em) rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.site-nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(37, 39, 36, 0.78);
  padding-block: 0.4rem;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__link[aria-current="page"] {
  color: var(--charcoal);
}

.site-nav__cta {
  margin-left: 0.6rem;
  padding: 0.62rem 1.2rem;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle__line {
  position: absolute;
  left: 0.55rem;
  width: 1.5rem;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-toggle__line:first-child { transform: translateY(-4px); }
.nav-toggle__line:last-child { transform: translateY(4px); }

body.nav-open .nav-toggle__line:first-child { transform: rotate(45deg); }
body.nav-open .nav-toggle__line:last-child { transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(2.2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.hero__title {
  position: relative;
  z-index: 2;
  max-width: 15ch;
}

.hero__title .serif {
  color: var(--terracotta);
  font-weight: 400;
}

.hero__kicker {
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}

.hero__layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
}

.hero__copy {
  grid-column: 1 / 5;
  padding-bottom: clamp(1rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero__media {
  grid-column: 5 / 13;
}

.hero__aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  padding-top: 0.9rem;
  gap: 0.4rem 1rem;
}

/* subpage hero variant */

.page-hero {
  padding-top: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}

.page-hero__layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  row-gap: 2rem;
}

.page-hero__title {
  grid-column: 1 / 9;
}

.page-hero__intro {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-hero__media {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------- editorial figures ---------- */

.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(2rem, 5vw, 4rem);
}

.editorial__intro {
  grid-column: 1 / 13;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 2rem;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
}

.work {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.work__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--hairline);
}

.work__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--terracotta);
}

.work__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
}

.work__type {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.56);
}

.work__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(37, 39, 36, 0.74);
  max-width: 44ch;
}

/* asymmetric placement helpers (12-col grid) */
.col-a { grid-column: 1 / 7; }
.col-b { grid-column: 8 / 12; align-self: end; }
.col-c { grid-column: 2 / 7; align-self: start; margin-top: clamp(-6rem, -4vw, -2rem); }
.col-d { grid-column: 7 / 13; }
.col-e { grid-column: 1 / 6; }
.col-f { grid-column: 6 / 13; align-self: end; margin-top: clamp(-8rem, -6vw, -3rem); }

/* ---------- studio intro ---------- */

.intro-statement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 3rem;
  align-items: start;
}

.intro-statement__head {
  grid-column: 1 / 8;
}

.intro-statement__headline {
  margin-top: 1.6rem;
}

.intro-statement__body {
  grid-column: 9 / 12;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 0.4rem;
}

.intro-statement__media {
  grid-column: 8 / 12;
  margin-top: clamp(2rem, 6vw, 5rem);
}

.intro-statement__quote {
  grid-column: 2 / 7;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.45;
  color: var(--eucalyptus);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-left: 1.4rem;
  border-left: 1px solid var(--terracotta);
}

/* ---------- philosophy ---------- */

.philosophy {
  position: relative;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
}

.philosophy__head {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.philosophy__list {
  grid-column: 1 / 8;
  counter-reset: principle;
  border-top: 1px solid var(--hairline-light);
}

.principle {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline-light);
}

.principle__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sandstone);
}

.principle__title {
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.principle__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.72);
  max-width: 46ch;
}

.philosophy__media {
  grid-column: 9 / 13;
  align-self: start;
}

.philosophy__media--second {
  grid-column: 8 / 11;
  margin-top: clamp(-5rem, -3vw, -1.5rem);
  align-self: end;
}

/* ---------- services list ---------- */

.services-list {
  border-top: 1px solid var(--hairline);
}

.services-list__item {
  display: grid;
  grid-template-columns: 4rem 1fr minmax(0, 34rem) 2rem;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.services-list__item:hover,
.services-list__item:focus-within {
  background: var(--sandstone-soft);
  padding-inline: 1.1rem;
}

.services-list__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--terracotta);
}

.services-list__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

.services-list__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(37, 39, 36, 0.72);
}

.services-list__arrow {
  justify-self: end;
  font-size: 1.3rem;
  color: var(--charcoal);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.services-list__item:hover .services-list__arrow {
  transform: translateX(6px);
  color: var(--terracotta);
}

.services-list__link {
  display: contents;
}

/* ---------- materials ---------- */

.materials {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: start;
}

.materials__head {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 7rem;
}

.materials__grid {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.material {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.material:nth-child(1) { grid-column: 1 / 4; }
.material:nth-child(2) { grid-column: 4 / 7; margin-top: clamp(2rem, 5vw, 4rem); }
.material:nth-child(3) { grid-column: 1 / 4; }
.material:nth-child(4) { grid-column: 4 / 7; margin-top: clamp(2rem, 5vw, 4rem); }
.material:nth-child(5) { grid-column: 1 / 4; }
.material:nth-child(6) { grid-column: 4 / 7; margin-top: clamp(2rem, 5vw, 4rem); }

.material__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}

.material__note {
  font-size: 0.8rem;
  color: rgba(37, 39, 36, 0.62);
  line-height: 1.55;
}

/* ---------- cta band ---------- */

.cta {
  position: relative;
  overflow: hidden;
}

.cta__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: center;
  row-gap: 2.5rem;
}

.cta__copy {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.cta__title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}

.cta__media {
  grid-column: 9 / 13;
}

/* ---------- filter bar & works grid ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.filter-btn {
  position: relative;
  padding: 0.3rem 0;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(37, 39, 36, 0.6);
  transition: color 0.3s var(--ease);
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.filter-btn:hover {
  color: var(--charcoal);
}

.filter-btn.is-active {
  color: var(--charcoal);
}

.filter-btn.is-active::after {
  transform: scaleX(1);
}

.filter-count {
  margin-left: auto;
  align-self: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.55);
}

.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(3rem, 6vw, 5rem);
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.work-item.is-filtered {
  opacity: 0;
  transform: translateY(14px);
}

.work-item[hidden] {
  display: none;
}

.work-item--w6 { grid-column: span 6; }
.work-item--w7 { grid-column: span 7; }
.work-item--w5 { grid-column: span 5; }
.work-item--w4 { grid-column: span 4; }
.work-item--w8 { grid-column: span 8; }

.work-item--offset-a { margin-top: clamp(2rem, 6vw, 5rem); }
.work-item--offset-b { margin-top: clamp(-4rem, -3vw, -1.5rem); }

/* ---------- services page ---------- */

.service-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 2rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--hairline);
  align-items: center;
}

.service-block:first-of-type {
  border-top: 0;
}

.service-block__body {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.service-block__media {
  grid-column: 8 / 13;
}

.service-block:nth-of-type(even) .service-block__body {
  grid-column: 7 / 13;
  order: 2;
}

.service-block:nth-of-type(even) .service-block__media {
  grid-column: 1 / 6;
  order: 1;
}

.service-block__index {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--terracotta);
}

.service-block__index::after {
  content: "";
  flex: 0 0 2.6rem;
  height: 1px;
  background: var(--hairline-dark);
  transform: translateY(-0.28em);
}

.service-block__title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.service-block__tasks {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.service-block__task {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: rgba(37, 39, 36, 0.78);
}

.service-block__task::before {
  content: "";
  flex: 0 0 0.45rem;
  height: 0.45rem;
  margin-top: 0.55em;
  border: 1px solid var(--terracotta);
}

.service-block__cta {
  margin-top: 0.4rem;
}

/* ---------- studio page ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: center;
}

.split__media {
  grid-column: 1 / 6;
}

.split__body {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.split--flip .split__media {
  grid-column: 8 / 13;
  order: 2;
}

.split--flip .split__body {
  grid-column: 1 / 7;
  order: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline-dark);
}

.step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terracotta);
}

.step__title {
  font-size: 1.12rem;
}

.step__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(37, 39, 36, 0.72);
}

/* ---------- contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 3rem;
  align-items: start;
}

.contact-layout__info {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 7rem;
}

.contact-layout__form {
  grid-column: 7 / 13;
}

.contact-detail {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-detail__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.56);
}

.contact-detail__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* form */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.72);
}

.field__input,
.field__select,
.field__textarea {
  appearance: none;
  width: 100%;
  padding: 0.95rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-dark);
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.field__input[aria-invalid="true"],
.field__select[aria-invalid="true"],
.field__textarea[aria-invalid="true"] {
  border-bottom-color: var(--terracotta);
}

.field__textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field__select {
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 10px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}

.field__error {
  display: none;
  font-size: 0.82rem;
  color: var(--terracotta);
}

.field__error.is-visible {
  display: block;
}

.form__note {
  font-size: 0.8rem;
  color: rgba(37, 39, 36, 0.58);
  line-height: 1.6;
}

/* modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 44, 40, 0.55);
}

.modal__panel {
  position: relative;
  width: min(92vw, 30rem);
  background: var(--ivory);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal__title {
  font-size: 1.5rem;
}

.modal__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(37, 39, 36, 0.78);
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 0.6rem;
}

.modal__close {
  align-self: flex-end;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.legal p,
.legal ul {
  margin-top: 1rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(37, 39, 36, 0.8);
}

.legal ul {
  list-style: none;
  padding-left: 0;
}

.legal li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--terracotta);
}

.legal .placeholder {
  padding: 0.1em 0.35em;
  background: var(--sandstone-soft);
  border-bottom: 1px dashed var(--terracotta);
  font-style: italic;
}

.legal__meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 39, 36, 0.55);
  margin-top: 1rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--eucalyptus-deep);
  color: var(--ivory);
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.site-footer a {
  color: rgba(245, 241, 232, 0.78);
}

.site-footer a:hover {
  color: var(--ivory);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.site-footer__brand {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.site-footer__logo::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--terracotta);
}

.site-footer__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.66);
  max-width: 34ch;
}

.site-footer__nav {
  grid-column: 7 / 9;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__heading {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 0.7rem;
}

.site-footer__contact {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__email {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  padding-block: 1.4rem;
  border-top: 1px solid var(--hairline-light);
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.55);
}

.site-footer__legal a {
  color: rgba(245, 241, 232, 0.66);
}

.site-footer__legal .sep {
  margin-inline: auto;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .media img {
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .services-list__item {
    grid-template-columns: 3rem 1fr 2rem;
  }
  .services-list__desc {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: clamp(2rem, 8vw, 4rem);
    background: var(--ivory);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s var(--ease);
  }

  .site-nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8vw, 3rem);
    font-weight: 500;
    color: var(--charcoal);
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__layout {
    align-items: start;
    row-gap: 2.2rem;
  }

  .hero__copy {
    grid-column: 1 / 8;
    order: 2;
  }

  .hero__media {
    grid-column: 1 / 13;
    order: 1;
  }

  .page-hero__title { grid-column: 1 / 13; }
  .page-hero__intro { grid-column: 1 / 9; }

  .col-a, .col-b, .col-c, .col-d, .col-e, .col-f {
    grid-column: 1 / 13;
    margin-top: 0;
  }

  .intro-statement__head { grid-column: 1 / 13; }
  .intro-statement__body { grid-column: 1 / 10; }
  .intro-statement__media { grid-column: 4 / 13; margin-top: 0; }
  .intro-statement__quote { grid-column: 1 / 9; margin-top: 0; }

  .philosophy__head { grid-column: 1 / 13; }
  .philosophy__list { grid-column: 1 / 13; }
  .philosophy__media { grid-column: 1 / 9; }
  .philosophy__media--second { grid-column: 5 / 13; margin-top: 0; }

  .materials__head { grid-column: 1 / 13; position: static; }
  .materials__grid { grid-column: 1 / 13; }
  .material:nth-child(n) { grid-column: span 3; margin-top: 0; }

  .cta__copy { grid-column: 1 / 13; }
  .cta__media { grid-column: 1 / 10; }

  .split__media,
  .split__body,
  .split--flip .split__media,
  .split--flip .split__body {
    grid-column: 1 / 13;
    order: initial;
  }

  .service-block__body,
  .service-block__media,
  .service-block:nth-of-type(even) .service-block__body,
  .service-block:nth-of-type(even) .service-block__media {
    grid-column: 1 / 13;
    order: initial;
  }

  .work-item--w4,
  .work-item--w5,
  .work-item--w6,
  .work-item--w7,
  .work-item--w8 {
    grid-column: span 6;
  }

  .work-item--offset-a,
  .work-item--offset-b {
    margin-top: 0;
  }

  .contact-layout__info { grid-column: 1 / 13; position: static; }
  .contact-layout__form { grid-column: 1 / 13; }

  .site-footer__brand { grid-column: 1 / 13; }
  .site-footer__nav { grid-column: 1 / 6; }
  .site-footer__contact { grid-column: 7 / 13; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(6, 1fr); }

  .hero__copy { grid-column: 1 / 13; }
  .intro-statement__body { grid-column: 1 / 13; }
  .intro-statement__media { grid-column: 1 / 13; }
  .intro-statement__quote { grid-column: 1 / 13; }
  .philosophy__media { grid-column: 1 / 13; }
  .philosophy__media--second { grid-column: 1 / 13; }
  .cta__media { grid-column: 1 / 13; }

  .material:nth-child(n) { grid-column: span 6; }

  .services-list__item {
    grid-template-columns: 1fr 2rem;
  }
  .services-list__num { display: none; }
  .services-list__desc { grid-column: 1 / 2; }

  .steps { grid-template-columns: 1fr; }

  .work-item--w4,
  .work-item--w5,
  .work-item--w6,
  .work-item--w7,
  .work-item--w8 {
    grid-column: 1 / 13;
  }

  .filter-bar { gap: 0.2rem 1.4rem; }
  .filter-count { width: 100%; margin-left: 0; padding-top: 0.4rem; }

  .site-footer__nav { grid-column: 1 / 13; }
  .site-footer__contact { grid-column: 1 / 13; }
  .site-footer__legal .sep { display: none; }
}
