html {
  scroll-behavior: auto; /* smooth scroll is handled by js/smooth-scroll.js for a slower, eased feel */
}

html.no-js {
  scroll-behavior: smooth;
}

/* hero load-in */
.hero__heading > *,
.hero__details > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(.2, .7, .3, 1), transform 1.1s cubic-bezier(.2, .7, .3, 1);
}

.hero__media {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(.2, .7, .3, 1), transform 1.1s cubic-bezier(.2, .7, .3, 1);
}

.is-loaded .hero__heading > *:nth-child(1) { transition-delay: .1s; }
.is-loaded .hero__heading > *:nth-child(2) { transition-delay: .25s; }
.is-loaded .hero__media { transition-delay: .35s; }
.is-loaded .hero__details > *:nth-child(1) { transition-delay: .45s; }
.is-loaded .hero__details > *:nth-child(2) { transition-delay: .65s; }

.is-loaded .hero__heading > *,
.is-loaded .hero__details > *,
.is-loaded .hero__media {
  opacity: 1;
  transform: translateY(0);
}

body {
  background: var(--cream);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

/* subtle vignette + grain, matching the mockup's texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(17, 17, 17, .05) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .15;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .06 0 0 0 1.8 -0.7'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 .1 .2 .3 .5 .7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

a {
  color: var(--olive);
}

a:hover {
  color: var(--ink);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--olive);
  z-index: 10001;
  transform-origin: left;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 14px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter) 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--ink);
  position: relative;
  z-index: 10000;
}

.site-nav__mark {
  display: flex;
  position: relative;
  z-index: 10001;
}

.site-nav__mark img {
  display: block;
  width: 36px;
  height: 36px;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.site-nav__mark:hover img {
  transform: scale(1.06);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s ease;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--olive);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  z-index: 10001;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav__menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s cubic-bezier(.2, .7, .3, 1), transform .35s cubic-bezier(.2, .7, .3, 1);
}

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

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }

  .site-nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 24px;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px var(--gutter) 64px;
}

.hero__intro {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1;
  color: var(--ink);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 96px);
  line-height: 0.95;
  color: var(--ink);
  margin-top: clamp(12px, 3vw, 26px);
}

.hero__copy {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: clamp(18px, 3vw, 28px) 0 clamp(24px, 4vw, 34px);
}

.hero__copy .lede {
  color: var(--rust);
  font-weight: 700;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  background: var(--olive);
  padding: 16px 34px;
  border-radius: 30px;
  transition: transform .3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  color: var(--cream);
}

.btn--on-olive {
  color: var(--olive);
  background: var(--cream);
}

.hero__media {
  position: relative;
  z-index: 3;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 6px;
  border-bottom: 5px solid var(--olive);
}

.hero__badge {
  position: absolute;
  left: 14px;
  bottom: 24px;
  background: var(--cream);
  border: 1px solid var(--rust);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--ink);
  line-height: 1.5;
}

/* divider */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: rgba(17, 17, 17, .15);
}

.divider__mark {
  width: 9px;
  height: 9px;
  background: var(--olive);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* in-section divider, e.g. between approach intro and services grid */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(17, 17, 17, .15);
}

.section-divider__mark {
  width: 8px;
  height: 8px;
  background: var(--olive);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* section rhythm */
section {
  padding: 72px var(--gutter);
}

.section--white {
  background: var(--white);
}

.section__title {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
}

/* about */
.about-inner[data-reveal] {
  opacity: 1;
  transform: none;
}

.about-inner .about__lead,
.about-inner .about__text > *,
.about-inner .about__media {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.about-inner.is-visible .about__lead,
.about-inner.is-visible .about__text > *,
.about-inner.is-visible .about__media {
  opacity: 1;
  transform: translateY(0);
}

.about-inner.is-visible .about__lead { transition-delay: 0s; }
.about-inner.is-visible .about__text > *:nth-child(1) { transition-delay: .2s; }
.about-inner.is-visible .about__text > *:nth-child(2) { transition-delay: .34s; }
.about-inner.is-visible .about__media { transition-delay: .26s; }

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 800px;
  text-align: center;
  text-wrap: balance;
}

.about__break {
  display: none;
}

@media (min-width: 900px) {
  .about__break {
    display: inline;
  }
}

.about__highlight {
  color: var(--olive);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about__media {
  position: relative;
  z-index: 3;
  padding-top: 20px;
  max-width: 260px;
  margin: 0 auto;
}

.about__media-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: right;
  border-radius: 4px;
  border-bottom: 4px solid var(--olive);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.about__media-secondary {
  width: 56%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border-bottom: 4px solid var(--olive);
  position: absolute;
  right: -16px;
  bottom: -24px;
  box-shadow: 0 20px 36px rgba(17, 17, 17, .15);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.about__media:hover .about__media-main {
  transform: scale(1.03);
}

.about__media:hover .about__media-secondary {
  transform: scale(1.05) rotate(-1.5deg);
}

/* approach */
.approach__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.approach__lead {
  font-size: clamp(26px, 4.5vw, 40px);
  margin-bottom: 32px;
}

.approach__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: left;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* offerings grid */
.section__heading {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 auto 40px;
  max-width: 600px;
  text-align: center;
}

.engagement-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.offerings__cta {
  text-align: center;
  margin-top: 48px;
}

.engagement-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, .08);
  padding: 34px 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

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

.engagement-card:nth-child(1) { transition-delay: 0s; }
.engagement-card:nth-child(2) { transition-delay: .12s; }

.engagement-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.engagement-card__rule {
  width: 28px;
  height: 3px;
  background: var(--olive);
  margin: 16px 0 20px;
}

.engagement-card__intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.engagement-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: rgba(17, 17, 17, .08);
}

@media (min-width: 560px) {
  .engagement-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.engagement-list li {
  background: var(--cream);
  padding: 18px 20px;
}

.engagement-list__title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.engagement-list__body {
  display: block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.engagement-item__summary {
  list-style: none;
  cursor: default;
}

.engagement-item__summary::-webkit-details-marker {
  display: none;
}

.engagement-item__summary::marker {
  content: "";
}

.engagement-item__chevron {
  display: none;
}

/* tap-to-expand — mobile only (<640px) */
@media (max-width: 639px) {
  .engagement-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
  }

  .engagement-item__chevron {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .engagement-item__chevron::before,
  .engagement-item__chevron::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform .3s ease, opacity .3s ease;
  }

  .engagement-item__chevron::before {
    width: 14px;
    height: 1.5px;
  }

  .engagement-item__chevron::after {
    width: 1.5px;
    height: 14px;
  }

  .engagement-item[open] .engagement-item__chevron::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
  }

  .engagement-list__title {
    margin-bottom: 0;
  }

  .engagement-list__body {
    padding-top: 10px;
  }
}

/* testimonials */
.testimonials__title {
  font-size: clamp(22px, 3.5vw, 28px);
  margin-bottom: 40px;
  text-align: center;
}

.testimonials__cta {
  text-align: center;
}

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1) 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.marquee__item {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 1.3px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee__item img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}

.marquee__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.marquee__fallback {
  display: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, .08);
  padding: 30px 26px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: box-shadow .3s ease, transform .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, .08);
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.testimonial-card__brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  color: var(--olive);
  margin-top: 22px;
}

/* CTA band */
.cta-band {
  background: var(--olive);
  text-align: center;
}

.cta-band__title {
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.2;
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto 20px;
}

.cta-band .btn {
  margin-top: 12px;
}

/* contact */
.contact {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact {
    flex-direction: row;
    gap: 80px;
  }
}

.contact__intro {
  flex: 1;
  min-width: 260px;
}

.contact__title {
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 20px;
}

.contact__intro-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 360px;
}

.contact__form {
  flex: 1.2;
  min-width: 260px;
}

.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__fields[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--ink);
}

.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, .25);
  background: transparent;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--olive);
}

.field textarea {
  resize: vertical;
}

.form-submit {
  display: inline-block;
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  background: var(--olive);
  padding: 15px 32px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: transform .3s ease;
  font-family: var(--font-body);
}

.form-submit:hover,
.form-submit:focus-visible {
  transform: translateY(-3px);
}

.form-status {
  font-size: 14px;
  color: var(--olive);
  margin-top: 24px;
}

.form-status[hidden] {
  display: none;
}

.form-confirm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-confirm[hidden] {
  display: none;
}

.form-confirm__title {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.form-confirm__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-confirm__details > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, .1);
}

.form-confirm__details dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--ink-soft);
}

.form-confirm__details dd {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  word-break: break-word;
}

.form-confirm__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-confirm__edit {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}

.form-confirm__edit:hover,
.form-confirm__edit:focus-visible {
  color: var(--ink);
}

.contact__form--sent .contact__fields {
  display: none;
}

.contact__form--sent .form-status {
  font-size: 20px;
  font-weight: 500;
}

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

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

[data-split] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-split].is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* larger screens: restore the two-column hero/about layout from the mockup */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "heading media"
      "details media";
    align-items: stretch;
    align-content: space-between;
    column-gap: 64px;
    row-gap: 0;
    padding: 56px var(--gutter) 96px;
  }

  .hero__heading {
    grid-area: heading;
    min-width: 420px;
  }

  .hero__details {
    grid-area: details;
    min-width: 420px;
  }

  .hero__media {
    grid-area: media;
    min-width: 300px;
    align-self: stretch;
  }

  .about__body {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    max-width: 980px;
    margin: 0 auto;
  }

  .about__text {
    flex: 1.3;
    min-width: 280px;
  }

  .about__media {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .hero__name {
    font-size: 96px;
  }
}
