/* V3.2 homepage — dedicated release layer.
   All selectors are homepage-specific so earlier hero generations in global.css
   cannot affect this composition. */

.page-home {
  --header-height: 80px;
  background: var(--paper-soft);
}

.page-home .site-header {
  height: var(--header-height);
  background: rgba(250, 246, 240, .985);
  border-bottom-color: rgba(45, 36, 31, .12);
  backdrop-filter: none;
}

.page-home .site-header.is-scrolled {
  background: rgba(250, 246, 240, .98);
  box-shadow: 0 10px 36px rgba(29, 25, 23, .07);
}

.page-home .site-header .brand__monogram {
  width: 46px;
  height: 48px;
  font-size: 31px;
}

.page-home .site-header .header-actions .button--compact {
  min-width: 166px;
  min-height: 44px;
  padding-inline: 20px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: #eee5da;
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 46% 0 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .08;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: stretch;
  min-height: clamp(670px, calc(100svh - var(--header-height)), 742px);
}

.home-hero__copy {
  align-self: center;
  max-width: 720px;
  padding: 66px clamp(48px, 6vw, 96px) 66px 0;
}

.home-hero__copy .eyebrow {
  margin-bottom: 28px;
}

.home-hero h1 {
  max-width: 700px;
  margin: 0 0 30px;
  font-size: clamp(58px, 5.25vw, 80px);
  font-weight: 410;
  letter-spacing: -.042em;
  line-height: .96;
}

.home-hero__line {
  display: block;
}

.home-hero__line em {
  color: var(--wine);
  font-weight: inherit;
}

.home-hero__lead {
  max-width: 500px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.58;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px 44px;
  flex-wrap: wrap;
}

.home-hero__actions .button {
  min-width: 196px;
  min-height: 56px;
}

.home-hero__actions .text-link {
  color: var(--copper);
}

.home-hero__portrait {
  position: absolute;
  z-index: 1;
  top: 0;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  left: 54%;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(143, 80, 57, .32);
  background: #d4d4d3;
}

.home-hero__portrait-frame,
.home-hero__portrait-frame picture,
.home-hero__portrait-frame img {
  width: 100%;
  height: 100%;
}

.home-hero__portrait-frame img {
  object-fit: cover;
  object-position: 50% 8%;
  filter: none;
}

.home-hero__portrait figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 3.3vw, 54px);
  bottom: 28px;
  display: grid;
  gap: 2px;
  padding: 12px 14px 10px;
  color: var(--ink);
  background: rgba(250, 246, 240, .88);
  border-left: 2px solid var(--copper-line);
  backdrop-filter: blur(8px);
}

.home-hero__portrait figcaption strong {
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero__portrait figcaption span {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  line-height: 1.2;
}

.home-hero__accent {
  position: absolute;
  z-index: 2;
  top: 72px;
  left: calc(54% - 1px);
  width: 1px;
  height: 76px;
  background: var(--copper-line);
  transform: translateX(-50%);
}

.home-expertise {
  position: relative;
  padding: 82px 0 88px;
  overflow: hidden;
  color: var(--paper-soft);
  background: var(--ink);
}

.home-expertise::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 10% 22%, rgba(200, 129, 93, .055), transparent 30%);
  pointer-events: none;
}

.home-expertise__heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .4fr) minmax(420px, 1.45fr) minmax(260px, .62fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: 54px;
}

.home-expertise__heading .eyebrow {
  align-self: start;
  margin: 8px 0 0;
  color: var(--copper-bright);
}

.home-expertise__heading h2 {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(42px, 4.2vw, 62px);
}

.home-expertise__heading > p:last-child {
  margin: 0;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.65;
}

.home-expertise__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-light);
}

.home-expertise__card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 304px;
  padding: 32px clamp(28px, 3vw, 42px);
  border-right: 1px solid var(--line-light);
  transition: color .3s var(--ease);
}

.home-expertise__card:last-child {
  border-right: 0;
}

.home-expertise__number {
  margin-bottom: 38px;
  color: var(--copper-bright);
  font-family: var(--font-display);
  font-size: 19px;
}

.home-expertise__card h3 {
  margin: 0 0 18px;
  color: var(--paper-soft);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.15vw, 33px);
  font-weight: 430;
  letter-spacing: -.02em;
}

.home-expertise__card p {
  max-width: 350px;
  margin: 0 0 24px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.62;
}

.home-expertise__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .06em;
}

.home-expertise__link svg,
.home-contact__index svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .3s var(--ease);
}

.home-expertise__card::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--copper-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.home-expertise__card:hover::after,
.home-expertise__card:focus-visible::after {
  transform: scaleX(1);
}

.home-expertise__card:hover .home-expertise__link svg,
.home-expertise__card:focus-visible .home-expertise__link svg {
  transform: translateX(5px);
}

.home-expertise__footer {
  margin-top: 34px;
}

.home-expertise__footer .text-link {
  color: var(--paper-soft);
}

.home-method {
  padding: clamp(104px, 10vw, 150px) 0;
  color: var(--ink);
  background: #ede4d9;
}

.home-method__grid {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(520px, 1.14fr);
  gap: clamp(72px, 9vw, 150px);
  align-items: start;
}

.home-method__heading {
  max-width: 470px;
}

.home-method__heading h2 {
  margin-bottom: 28px;
  font-size: clamp(50px, 5.1vw, 72px);
}

.home-method__heading > p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--text-muted);
}

.home-method__list {
  border-bottom: 1px solid var(--line);
}

.home-method__item {
  display: grid;
  grid-template-columns: 54px minmax(150px, .72fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 27px 0 25px;
  border-top: 1px solid var(--line);
}

.home-method__item > span {
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 17px;
}

.home-method__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 430;
  letter-spacing: -.025em;
}

.home-method__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.62;
}

.home-profile {
  position: relative;
  padding: clamp(96px, 9vw, 136px) 0;
  overflow: hidden;
  color: var(--paper-soft);
  background: var(--wine-deep);
}

.home-profile__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(440px, 1.2fr) minmax(340px, .8fr);
  gap: clamp(72px, 10vw, 160px);
  align-items: start;
}

.home-profile .eyebrow {
  color: #cb8562;
}

.home-profile h2 {
  max-width: 720px;
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(50px, 5.3vw, 74px);
}

.home-profile__copy {
  padding-top: 36px;
  border-top: 1px solid rgba(248, 240, 231, .24);
}

.home-profile__copy p {
  color: var(--stone);
  font-size: 15px;
}

.home-profile__copy .text-link {
  margin-top: 16px;
  color: var(--paper-soft);
}

.home-contact {
  padding: clamp(96px, 9vw, 138px) 0;
  color: var(--ink);
  background: var(--paper-soft);
}

.home-contact__grid {
  display: grid;
  grid-template-columns: minmax(440px, 1.08fr) minmax(420px, .92fr);
  gap: clamp(72px, 10vw, 160px);
  align-items: start;
}

.home-contact__copy h2 {
  max-width: 690px;
  margin-bottom: 30px;
  font-size: clamp(54px, 5.5vw, 78px);
}

.home-contact__copy > p:last-child {
  max-width: 510px;
  margin: 0;
  color: var(--text-muted);
}

.home-contact__index {
  border-bottom: 1px solid var(--line);
}

.home-contact__index > a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.home-contact__index > a > span {
  color: var(--copper);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-contact__index > a > strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 560;
}

.home-contact__index > a:hover svg,
.home-contact__index > a:focus-visible svg {
  transform: translateX(5px);
}

.home-contact__actions {
  display: flex;
  align-items: center;
  gap: 18px 30px;
  padding-top: 30px;
  flex-wrap: wrap;
}

.home-contact__actions .text-link {
  color: var(--copper);
}

@media (max-width: 1120px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  }

  .home-hero__copy {
    padding-right: 54px;
  }

  .home-hero h1 {
    font-size: clamp(56px, 6vw, 70px);
  }

  .home-hero__portrait {
    left: 56%;
  }

  .home-hero__accent {
    left: calc(56% - 1px);
  }

  .home-expertise__heading {
    grid-template-columns: 140px 1fr;
  }

  .home-expertise__heading > p:last-child {
    grid-column: 2;
    max-width: 540px;
  }

  .home-method__grid,
  .home-profile__grid,
  .home-contact__grid {
    gap: 64px;
  }
}

@media (max-width: 900px) {
  .home-hero__inner {
    display: block;
    min-height: auto;
  }

  .home-hero__copy {
    max-width: 720px;
    padding: 72px 0 54px;
  }

  .home-hero__portrait {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(calc(100% + var(--gutter)), 680px);
    height: min(112vw, 780px);
    margin-right: calc(var(--gutter) * -1);
    margin-left: auto;
    border-top: 1px solid rgba(143, 80, 57, .32);
    border-left: 0;
  }

  .home-hero__portrait-frame img {
    object-position: 50% 6%;
  }

  .home-hero__accent {
    top: auto;
    bottom: calc(min(112vw, 780px) - 1px);
    left: var(--gutter);
    width: 88px;
    height: 1px;
    transform: none;
  }

  .home-expertise__grid {
    grid-template-columns: 1fr;
  }

  .home-expertise__card {
    min-height: 232px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .home-expertise__card:last-child {
    border-bottom: 0;
  }

  .home-method__grid,
  .home-profile__grid,
  .home-contact__grid {
    grid-template-columns: 1fr;
  }

  .home-method__heading {
    max-width: 660px;
  }

  .home-method__list {
    max-width: none;
  }

  .home-profile__copy {
    max-width: 680px;
    padding-top: 30px;
  }

  .home-contact__index {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .page-home {
    --header-height: 76px;
  }

  .page-home .site-header .brand__monogram {
    width: 40px;
    height: 42px;
    font-size: 28px;
  }

  .home-hero__copy {
    padding: 54px 0 44px;
  }

  .home-hero__copy .eyebrow {
    margin-bottom: 22px;
  }

  .home-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 13.3vw, 58px);
    line-height: .98;
  }

  .home-hero__line {
    display: contents;
  }

  .home-hero__lead {
    margin-bottom: 30px;
    font-size: 15px;
  }

  .home-hero__actions {
    align-items: stretch;
    gap: 12px;
  }

  .home-hero__actions .button {
    width: 100%;
  }

  .home-hero__actions .text-link {
    justify-content: space-between;
    width: 100%;
  }

  .home-hero__portrait {
    height: min(128vw, 720px);
  }

  .home-hero__portrait-frame img {
    object-position: 50% 5%;
  }

  .home-hero__portrait figcaption {
    right: 20px;
    bottom: 20px;
  }

  .home-hero__accent {
    display: none;
  }

  .home-expertise {
    padding: 64px 0 70px;
  }

  .home-expertise__heading {
    display: block;
    margin-bottom: 38px;
  }

  .home-expertise__heading .eyebrow {
    margin: 0 0 20px;
  }

  .home-expertise__heading h2 {
    margin-bottom: 20px;
    font-size: clamp(40px, 12vw, 52px);
  }

  .home-expertise__heading > p:last-child {
    max-width: 500px;
  }

  .home-expertise__card {
    min-height: 250px;
    padding: 30px 0;
  }

  .home-expertise__number {
    margin-bottom: 28px;
  }

  .home-method,
  .home-profile,
  .home-contact {
    padding: 80px 0;
  }

  .home-method__grid,
  .home-profile__grid,
  .home-contact__grid {
    gap: 50px;
  }

  .home-method__heading h2,
  .home-profile h2,
  .home-contact__copy h2 {
    font-size: clamp(44px, 12.6vw, 58px);
  }

  .home-method__item {
    grid-template-columns: 42px 1fr;
    gap: 10px 18px;
    padding: 24px 0;
  }

  .home-method__item p {
    grid-column: 2;
  }

  .home-contact__index > a {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .home-contact__actions {
    align-items: stretch;
  }

  .home-contact__actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .home-contact__index > a {
    grid-template-columns: 1fr auto;
  }

  .home-contact__index > a > span {
    grid-column: 1 / -1;
  }

  .home-contact__index > a > strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-expertise__card::after,
  .home-expertise__link svg,
  .home-contact__index svg {
    transition: none;
  }
}
