:root {
  --ink: #171a18;
  --paper: #f4f2ec;
  --stone: #ddd8ce;
  --rust: #b85f39;
  --moss: #687066;
  --line: rgba(23, 26, 24, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: white; color: black; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); color: white; border-bottom: 1px solid rgba(255,255,255,.24); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-transform: uppercase; }
.brand-logo { display: block; width: 3.85rem; height: auto; filter: brightness(0) invert(1); }
.brand-name { font: 600 .92rem/1.1 "Manrope", sans-serif; letter-spacing: .03em; }
.brand-name small { display: block; margin-top: .26rem; font-size: .57rem; font-weight: 500; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); font-size: .86rem; }
.site-nav > a:not(.nav-contact) { position: relative; }
.site-nav > a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.4rem; height: 1px; background: white; transition: right .25s ease; }
.site-nav > a:not(.nav-contact):hover::after { right: 0; }
.nav-contact { border: 1px solid rgba(255,255,255,.65); padding: .7rem 1.05rem; transition: background .2s, color .2s; }
.nav-contact:hover { background: white; color: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; padding: .5rem 0; }

.hero { position: relative; min-height: 100svh; color: white; display: flex; align-items: flex-end; overflow: hidden; background: #273029; }
.hero-media { position: absolute; inset: 0; background-color: #273029; background-image: url('./assets/mcevoy-project-hero.jpg'); background-size: cover; background-position: center; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,12,.66) 0%, rgba(10,15,12,.24) 55%, rgba(10,15,12,.18) 100%), linear-gradient(0deg, rgba(10,15,12,.42), transparent 55%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 10rem clamp(1.25rem, 7vw, 8rem) 7rem; }
.eyebrow { margin: 0 0 1.35rem; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 1000px; margin: 0; font: 400 clamp(3.1rem, 8vw, 7.3rem)/.96 "Manrope", sans-serif; letter-spacing: -.055em; }
.hero-intro { display: flex; justify-content: flex-end; gap: 5rem; margin: 2.4rem 4vw 0 auto; max-width: 680px; align-items: flex-end; }
.hero-intro p { max-width: 410px; margin: 0; color: rgba(255,255,255,.86); }
.text-link { display: inline-flex; gap: .8rem; align-items: center; white-space: nowrap; font-size: .87rem; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }
.hero-index { position: absolute; z-index: 2; right: clamp(1.25rem,4vw,4.5rem); bottom: 2rem; display: flex; align-items: center; gap: .8rem; font-size: .65rem; letter-spacing: .12em; }
.hero-index i { width: 4rem; height: 1px; background: rgba(255,255,255,.5); }

.section-pad { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.section-label { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; align-items: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.section-label span { color: var(--rust); }
.section-label p { margin: 0; }
.statement { min-height: 750px; display: grid; grid-template-columns: minmax(180px, .62fr) 1.7fr; gap: 4rem; }
.statement-copy { align-self: center; max-width: 980px; }
.lead { margin: 0 0 4rem; max-width: 900px; font: 400 clamp(2.35rem, 5.4vw, 5.2rem)/1.06 "Manrope", sans-serif; letter-spacing: -.045em; }
.statement-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 720px; margin-left: auto; color: #505551; }
.statement-detail p { margin: 0; }

.expertise { background: var(--ink); color: var(--paper); }
.light-label { color: rgba(244,242,236,.72); }
.expertise-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 6rem; align-items: end; margin: 5rem 0 6rem 4.2rem; }
.expertise h2, .behind h2, .process h2, .contact h2 { margin: 0; font: 400 clamp(2.7rem, 6vw, 6rem)/1 "Manrope", sans-serif; letter-spacing: -.05em; }
.expertise-heading p { max-width: 390px; margin: 0 0 .65rem; color: rgba(244,242,236,.64); }
.service-list { border-top: 1px solid rgba(244,242,236,.18); }
.service-list article { display: grid; grid-template-columns: 4.2rem 1fr .8fr; gap: 2rem; align-items: start; padding: 2.3rem 0; border-bottom: 1px solid rgba(244,242,236,.18); }
.service-list article > span { color: var(--rust); font-size: .72rem; }
.service-list h3 { margin: -.25rem 0 0; font: 400 clamp(1.45rem, 2.5vw, 2.4rem)/1.15 "Manrope", sans-serif; letter-spacing: -.03em; }
.service-list p { margin: 0; color: rgba(244,242,236,.62); max-width: 390px; }

.behind { background: var(--paper); overflow: hidden; }
.behind-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 6rem; align-items: end; margin: 5rem 0 5.5rem 4.2rem; }
.behind-heading p { max-width: 390px; margin: 0 0 .65rem; color: #555b56; }
.work-gallery { display: grid; grid-template-columns: .88fr 1.08fr .88fr; gap: clamp(1rem, 2.2vw, 2.4rem); align-items: start; }
.work-gallery figure { margin: 0; }
.work-gallery figure:nth-child(2) { margin-top: 4.5rem; }
.work-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.work-gallery figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); margin-top: .8rem; color: #555b56; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.work-gallery figcaption span:last-child { color: var(--rust); }
.project-note { margin: 3rem 0 0; color: #555b56; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.process { min-height: 850px; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(4rem,10vw,10rem); margin: 5rem 0 0 4.2rem; }
.process-intro { max-width: 480px; margin-top: 2rem; color: #555b56; font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--rust); font-size: .72rem; }
.steps h3 { margin: -.3rem 0 .45rem; font: 500 1.45rem/1.2 "Manrope", sans-serif; }
.steps p { margin: 0; color: #5b605c; max-width: 470px; }

.testimonial { background: #dcd8cf; padding: clamp(4.5rem,8vw,7.5rem) clamp(1.25rem,7vw,8rem); }
.testimonial-shell { max-width: 1280px; margin: auto; }
.testimonial-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.testimonial-head > p { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.testimonial-controls { display: flex; align-items: center; gap: 1rem; }
.testimonial-controls p { margin: 0; min-width: 4rem; text-align: center; color: #555b56; font-size: .72rem; letter-spacing: .1em; }
.testimonial-controls button { width: 2.8rem; height: 2.8rem; border: 1px solid rgba(23,26,24,.3); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.15rem; transition: background .2s, color .2s; }
.testimonial-controls button:hover, .testimonial-controls button:focus-visible { background: var(--ink); color: var(--paper); }
.testimonial-inner { min-height: 520px; display: grid; align-items: center; text-align: center; }
.testimonial-slide { animation: testimonial-in .35s ease both; }
.testimonial-slide[hidden] { display: none; }
.quote-mark { color: var(--rust); font: 400 5rem/1 Georgia, serif; margin: 0 0 .5rem; }
.testimonial blockquote { max-width: 1120px; margin: 0 auto; font: 400 clamp(1.65rem,3.2vw,3.15rem)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.attribution { margin: 2rem 0 0; color: #5b605c; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes testimonial-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.contact { background: var(--rust); color: white; min-height: 620px; display: grid; grid-template-columns: minmax(180px,.62fr) 1.7fr; gap: 4rem; }
.contact .section-label span { color: white; }
.contact-copy { align-self: center; }
.contact h2 { max-width: 900px; }
.email-link { display: flex; justify-content: space-between; gap: 2rem; width: 100%; max-width: 820px; margin-top: 4rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.6); font-size: clamp(1rem,2vw,1.45rem); }
.email-link span { transition: transform .2s; }
.email-link:hover span { transform: translate(4px,-4px); }

.site-footer { display: grid; grid-template-columns: 1.5fr repeat(3, auto); align-items: end; gap: 3rem; padding: 2.5rem clamp(1.25rem,4vw,4.5rem); background: var(--ink); color: rgba(244,242,236,.68); font-size: .72rem; }
.footer-brand { color: var(--paper); justify-self: start; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header { padding: 1.2rem 1.25rem; }
  .brand-logo { width: 3.35rem; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem; background: var(--ink); flex-direction: column; align-items: stretch; gap: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav.open { display: flex; }
  .nav-contact { text-align: center; margin-top: .3rem; }
  .hero { min-height: 780px; }
  .hero-media { background-position: 58% center; }
  .hero-content { padding: 9rem 1.25rem 6rem; }
  .hero h1 { font-size: clamp(3rem,15vw,4.5rem); }
  .hero-intro { display: block; margin: 2rem 0 0; }
  .hero-intro p { margin-bottom: 1.6rem; }
  .hero-index { display: none; }
  .statement, .contact { display: block; min-height: auto; }
  .statement-copy, .contact-copy { margin-top: 4rem; }
  .lead { margin-bottom: 2.5rem; }
  .statement-detail, .expertise-heading, .behind-heading, .process-layout { grid-template-columns: 1fr; gap: 2rem; margin-left: 0; }
  .statement-detail { margin-left: 0; }
  .expertise-heading { margin: 4rem 0; }
  .behind-heading { margin: 4rem 0 3rem; }
  .work-gallery { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-gallery figure:nth-child(2) { margin-top: 0; }
  .work-gallery img { max-height: 720px; }
  .service-list article { grid-template-columns: 2.2rem 1fr; gap: 1rem; }
  .service-list article p { grid-column: 2; }
  .process-layout { margin-top: 4rem; }
  .testimonial { padding-block: 4rem; }
  .testimonial-inner { min-height: 610px; }
  .testimonial-head { align-items: flex-start; }
  .testimonial-controls { gap: .55rem; }
  .testimonial-controls button { width: 2.6rem; height: 2.6rem; }
  .testimonial blockquote { font-size: clamp(1.45rem,6.5vw,2rem); }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1/-1; margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
