/* Oficina das Pedras · sistema visual institucional */
:root {
  --branco: #f6f8f5;
  --papel: #ffffff;
  --nevoa: #e6ede9;
  --verde: #14463a;
  --verde-prof: #0f3a30;
  --latao: #b3893b;
  --latao-txt: #806026;
  --grafite: #252a27;
  --cinza: #5b5f58;
  --borda: #d9e0da;
  --display: Marcellus, Optima, "Optima Nova", Candara, Georgia, serif;
  --corpo: "Instrument Sans", Optima, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sombra: 0 18px 42px rgba(31, 43, 37, .14);
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--branco);
  color: var(--grafite);
  font: 16px/1.65 var(--corpo);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--latao-txt); outline-offset: 4px; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
p { margin-top: 0; }
.wrap { width: min(100%, 1180px); margin-inline: auto; padding-inline: 24px; }

.utility { background: var(--verde); color: #dfe7e0; }
.utility .wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.utility a { color: #f5f3e9; text-decoration: none; }
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(246, 248, 245, .94);
  border-bottom: 1px solid rgba(20, 70, 58, .1);
  backdrop-filter: blur(16px);
}
.site-header.is-compact { box-shadow: 0 12px 34px rgba(31, 43, 37, .08); }
.nav {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  transition: min-height .35s ease;
}
.site-header.is-compact .nav { min-height: 62px; }
.brand {
  position: relative;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name { font: 400 21px/1.2 var(--display); }
.nav-menu { justify-self: end; }
.nav-toggle { display: none; }
.nav-menu:not([open]) > .nav-panel { display: block; }
.nav-location { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: #4c4f48;
  font-size: 11px;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--latao-txt); }
.header-quote {
  position: relative;
  z-index: 42;
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding-inline: 18px;
  background: var(--verde);
  color: #f2f5f1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.floating-quote {
  position: fixed;
  z-index: 35;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: none;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  background: var(--verde);
  box-shadow: 0 14px 36px rgba(15, 58, 48, .28);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(18px);
  transition: opacity .25s ease, transform .25s ease;
  visibility: hidden;
}
.floating-quote span { color: #dfc28f; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.floating-quote strong { font-size: 11px; letter-spacing: .04em; }

.btn-primary, .btn-secondary, .btn-light, .btn-outline-light {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.btn-primary { background: var(--verde); color: #f2f5f1; }
.btn-primary:hover { background: var(--verde-prof); }
.btn-secondary { border-color: var(--latao); color: var(--latao-txt); }
.btn-secondary:hover { background: rgba(179, 137, 59, .1); }
.btn-light { background: #f5f1e7; color: var(--verde-prof); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(245, 241, 231, .7); color: #f5f1e7; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.text-link { color: var(--latao-txt); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-underline-offset: 4px; text-transform: uppercase; }

.hero { padding-block: clamp(52px, 7vw, 96px) 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr); align-items: center; gap: clamp(42px, 7vw, 104px); }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { margin-bottom: 14px; color: var(--latao-txt); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 11ch; margin-bottom: 24px; font-size: clamp(48px, 5.5vw, 78px); line-height: .98; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero .lede { max-width: 55ch; margin-bottom: 28px; color: var(--cinza); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { max-width: 60ch; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--borda); color: var(--cinza); font-size: 14px; }
.hero-note strong { color: var(--grafite); }
.hero-media { min-width: 0; margin: 0; }
.media-mask { height: clamp(500px, 55vw, 690px); overflow: hidden; background: var(--nevoa); box-shadow: var(--sombra); }
.hero-media img { width: 100%; height: 108%; object-fit: cover; transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04); }
.hero-media figcaption { margin-top: 12px; color: var(--cinza); font-size: 12px; }

.hero-reveal-pending,
.reveal-pending { opacity: 0; transform: translate3d(0, 24px, 0); }
.hero-reveal-pending { clip-path: inset(0 0 100% 0); }
.hero-reveal-pending.is-revealed,
.reveal-pending.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), transform .65s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), clip-path .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
}

.trust-bar { background: var(--verde); color: #eef3ee; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-grid p { margin: 0; padding: 22px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust-grid p:last-child { border-right: 1px solid rgba(255, 255, 255, .14); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { margin-bottom: 3px; font: 400 17px/1.35 var(--display); color: #fff; }
.trust-grid span { color: #bed0c7; font-size: 12px; }

.section { padding-block: 88px; }
.section-muted { background: var(--nevoa); }
.section-intro { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-intro h1, .section-intro h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; text-wrap: balance; }
.section-intro > p:last-child { margin-bottom: 0; color: var(--cinza); font-size: 16px; }
.section-action { margin: 36px 0 0; text-align: center; }
.content-note { max-width: 760px; margin: 34px auto 0; color: var(--cinza); font-size: 13px; text-align: center; }

.featured-section { padding-block: 104px; background: var(--verde); color: #eef3ee; }
.editorial-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: end; gap: 48px; margin-bottom: 44px; }
.editorial-heading h2 { max-width: 13ch; margin-bottom: 0; color: inherit; font-size: clamp(38px, 4.8vw, 60px); line-height: 1.02; }
.editorial-heading > div:last-child { max-width: 52ch; justify-self: end; }
.featured-section .editorial-heading > div:last-child p { color: #c8d8d0; }
.featured-section .text-link { color: #dfc28f; }
.featured-work-list { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: repeat(2, minmax(230px, 1fr)); gap: 18px; }
.featured-work { position: relative; min-width: 0; }
.featured-work:first-child { grid-row: 1 / 3; }
.featured-work .work-media { height: 100%; min-height: 0; }
.featured-work .work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.featured-work:not(:first-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr); align-items: end; background: rgba(255,255,255,.06); }
.featured-work:not(:first-child) .work-media { grid-row: 1 / 5; }
.featured-work .work-index,
.featured-work h3,
.featured-work > p:last-child { position: relative; z-index: 1; margin-inline: 18px; }
.featured-work .work-index { margin-top: 18px; color: #dfc28f; font: 400 13px/1 var(--display); }
.featured-work h3 { margin-bottom: 6px; color: #fff; font-size: 20px; }
.featured-work > p:last-child { margin-bottom: 18px; color: #c8d8d0; font-size: 13px; }

.services-section { padding-block: 112px; }
.services-layout { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(54px, 8vw, 118px); }
.services-intro { position: sticky; top: 112px; }
.services-intro h2 { max-width: 10ch; font-size: clamp(38px, 4vw, 54px); line-height: 1.05; }
.services-intro > p:not(.section-kicker) { color: var(--cinza); }
.services-media { margin: 34px 0 0; overflow: hidden; }
.services-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; padding-block: 28px; border-top: 1px solid var(--borda); }
.service-row:last-child { border-bottom: 1px solid var(--borda); }
.service-number { color: var(--latao-txt); font: 400 16px/1.4 var(--display); }
.service-row h3 { margin-bottom: 6px; font-size: clamp(22px, 2.5vw, 31px); }
.service-row p { max-width: 54ch; margin-bottom: 0; color: var(--cinza); font-size: 14px; }
.service-row .text-link { align-self: start; white-space: nowrap; }

.work-media { position: relative; overflow: hidden; }
.work-tag { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; background: rgba(246, 248, 245, .94); border: 1px solid rgba(179, 137, 59, .7); color: var(--grafite); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.materials-section { padding-block: 108px; overflow: hidden; background: #eef2ed; }
.editorial-heading--dark { color: var(--grafite); }
.editorial-heading--dark > p { max-width: 52ch; justify-self: end; color: var(--cinza); }
.rail-shell { position: relative; }
.rail-toolbar { display: none; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 18px; }
.rail-shell.is-enhanced .rail-toolbar { display: flex; }
.materials-rail:focus-visible,
.featured-work-list:focus-visible { outline: 2px solid var(--latao-txt); outline-offset: 4px; }
.featured-work-list:focus-visible { outline-color: #dfc28f; }
.rail-toolbar output { min-width: 62px; margin-right: 6px; color: var(--cinza); font-size: 11px; letter-spacing: .1em; }
.rail-toolbar button { width: 44px; height: 44px; border: 1px solid var(--borda); background: transparent; color: var(--grafite); cursor: pointer; }
.rail-toolbar button:disabled { cursor: default; opacity: .35; }
.materials-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.materials-rail::-webkit-scrollbar { display: none; }
.material-card { flex: 0 0 clamp(250px, 26vw, 340px); min-width: 0; overflow: hidden; scroll-snap-align: start; background: var(--papel); border: 1px solid var(--borda); }
.material-card > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.material-copy { min-height: 250px; display: flex; flex-direction: column; padding: 24px; }
.material-copy .text-link { margin-top: auto; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.material-type { margin-bottom: 6px; color: var(--latao-txt); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.material-copy h3 { margin-bottom: 8px; font-size: 20px; }
.material-copy > p:not(.material-type) { color: var(--cinza); font-size: 14px; }
.material-more { display: flex; align-items: center; background: var(--verde); color: #eef3ee; }
.material-more .material-type, .material-more .text-link { color: #dfc28f; }
.material-more .material-copy > p:not(.material-type) { color: #c8d8d0; }

.process-section { padding-block: 112px; }
.process-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; gap: clamp(48px, 7vw, 96px); }
.process-image { overflow: hidden; }
.process-image img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; transition: transform .65s ease; }
.process-copy h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 46px); }
.process-copy > p:not(.section-kicker) { margin-bottom: 30px; color: var(--cinza); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; padding-block: 18px; border-top: 1px solid var(--borda); }
.process-step > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--latao); border-radius: 50%; color: var(--latao-txt); font: 400 14px/1 var(--display); }
.process-step h3 { margin-bottom: 3px; font-size: 17px; }
.process-step p { margin-bottom: 0; color: var(--cinza); font-size: 14px; }

.compare-section { padding-block: 88px; background: var(--verde); color: #eef3ee; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(42px, 7vw, 86px); }
.compare-copy .section-kicker { color: #dfc28f; }
.compare-copy h2 { max-width: 18ch; margin-bottom: 14px; color: #fff; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; }
.compare-copy p:not(.section-kicker) { max-width: 56ch; margin-bottom: 24px; color: #cedbd5; }
.compare-criteria { padding: clamp(26px, 4vw, 42px); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); }
.compare-criteria h3 { margin-bottom: 14px; color: #fff; font-size: 19px; }
.compare-criteria ul { margin: 0; padding-left: 20px; color: #d7e1dc; }
.compare-criteria li + li { margin-top: 7px; }

.pros-section { padding-block: 70px; border-bottom: 1px solid var(--borda); }
.pros-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.pros-grid h2 { margin-bottom: 8px; font-size: 30px; }
.pros-grid p:not(.section-kicker) { max-width: 70ch; margin-bottom: 0; color: var(--cinza); }

.visit { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.visit-bg, .visit-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.visit-bg { object-fit: cover; }
.visit-overlay { background: linear-gradient(90deg, rgba(15, 58, 48, .94), rgba(15, 58, 48, .64) 58%, rgba(15, 58, 48, .24)); }
.visit-content { position: relative; padding-block: 72px; color: #eef3ee; }
.visit-content .section-kicker { color: #dfc28f; }
.visit-content h2 { margin-bottom: 12px; color: #fff; font-size: clamp(32px, 4vw, 46px); }
.visit-content > p:not(.section-kicker) { max-width: 56ch; margin-bottom: 24px; color: #d7e1dc; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

footer { padding-block: 54px 30px; background: var(--verde-prof); color: #cfdcd3; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 38px; }
.footer-grid h2, .footer-grid h3 { margin-bottom: 8px; color: #f4f1e7; font-size: 18px; }
.footer-grid h2 { font-size: 24px; }
.footer-grid p { margin-bottom: 0; font-size: 14px; }
.footer-grid a { color: #ead8b6; }
.footer-phone { color: #fff !important; font: 400 21px/1.4 var(--display); text-decoration: none; }
.credits { display: flex; justify-content: space-between; gap: 12px 28px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(207, 220, 211, .18); color: #8fa89b; font-size: 11px; }

.portfolio-hero { padding-block: 76px 104px; overflow: hidden; }
.portfolio-hero-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(54px, 8vw, 120px); }
.portfolio-hero-copy h1 { max-width: 10ch; margin-bottom: 20px; font-size: clamp(48px, 5.8vw, 78px); line-height: .98; letter-spacing: -.035em; }
.portfolio-hero-copy > p:not(.section-kicker) { max-width: 48ch; margin-bottom: 28px; color: var(--cinza); }
.portfolio-hero-media { position: relative; min-height: 620px; }
.portfolio-hero-media figure { position: absolute; margin: 0; overflow: hidden; background: var(--nevoa); box-shadow: var(--sombra); }
.portfolio-hero-primary { inset: 0 12% 15% 0; }
.portfolio-hero-secondary { right: 0; bottom: 0; width: 42%; height: 42%; border: 10px solid var(--branco); }
.portfolio-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-showcase { padding-block: 108px; background: #edf1ec; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 70px 24px; }
.portfolio-project { min-width: 0; }
.portfolio-project[data-layout="feature"] { grid-column: span 7; }
.portfolio-project[data-layout="support"] { grid-column: span 5; padding-top: 84px; }
.portfolio-project[data-layout="full"] { grid-column: 2 / 12; }
.portfolio-project .work-media { overflow: hidden; background: var(--borda); }
.portfolio-project[data-layout="feature"] .work-media { aspect-ratio: 16 / 10; }
.portfolio-project[data-layout="support"] .work-media { aspect-ratio: 4 / 5; }
.portfolio-project[data-layout="full"] .work-media { aspect-ratio: 16 / 8; }
.portfolio-project .work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.portfolio-project-copy { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; padding-top: 18px; }
.portfolio-project-copy .work-index { grid-row: 1 / 3; color: var(--latao-txt); font: 400 13px/1.5 var(--display); }
.portfolio-project-copy h2 { margin-bottom: 5px; font-size: clamp(21px, 2.2vw, 29px); }
.portfolio-project-copy > p:last-child { max-width: 54ch; margin-bottom: 0; color: var(--cinza); font-size: 14px; }
.portfolio-callout { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr 1.1fr 1fr auto; align-items: center; gap: 28px; padding: 42px; background: var(--verde); color: #eef3ee; }
.portfolio-callout .section-kicker { color: #dfc28f; }
.portfolio-callout h2,
.portfolio-callout p { margin-bottom: 0; }
.portfolio-callout h2 { color: #fff; font-size: 28px; }
.portfolio-callout > p:not(.section-kicker) { color: #c8d8d0; }
.portfolio-final-quote { padding-block: 92px; }
.portfolio-final-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 72px; }
.portfolio-final-grid h2 { max-width: 17ch; margin-bottom: 0; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.04; }
.portfolio-final-grid > div:last-child p { color: var(--cinza); }

@media (hover: hover) and (pointer: fine) {
  .portfolio-project:hover .work-media img,
  .featured-work:hover .work-media img,
  .material-card:hover > img { transform: scale(1.035); }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 42px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-height: 66px; }
  .utility { display: none; }
  .nav { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
  .site-header.is-compact .nav { min-height: var(--header-height); }
  .brand { min-height: 44px; }
  .brand svg { width: 40px; }
  .brand-name { font-size: 18px; }
  .editorial-heading .text-link,
  .section-action .text-link,
  .service-row .text-link,
  .material-copy .text-link { display: inline-flex; min-height: 44px; align-items: center; }
  .footer-grid a { display: inline-flex; min-height: 44px; align-items: center; }
  .nav-menu { position: static; order: 2; }
  .nav-toggle {
    position: relative;
    z-index: 42;
    display: inline-flex;
    min-width: 48px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav-toggle::-webkit-details-marker { display: none; }
  .nav-toggle-icon { display: grid; gap: 4px; }
  .nav-toggle-icon i { width: 16px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .nav-menu[open] .nav-toggle-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .nav-menu[open] .nav-toggle-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .nav-menu:not([open]) > .nav-panel { display: none; }
  .nav-menu[open] > .nav-panel { display: flex; }
  .nav-panel {
    position: fixed;
    z-index: 41;
    inset: var(--header-height) 0 0;
    flex-direction: column;
    padding: 44px 24px 28px;
    overflow-y: auto;
    background: var(--branco);
  }
  .nav-location { display: block; max-width: 32ch; color: var(--cinza); font-size: 12px; }
  .nav-links { display: grid; justify-content: stretch; gap: 0; margin-top: 24px; }
  .js .nav-menu[open] .nav-links li { animation: nav-item-in .4s both; }
  .js .nav-menu[open] .nav-links li:nth-child(2) { animation-delay: 40ms; }
  .js .nav-menu[open] .nav-links li:nth-child(3) { animation-delay: 80ms; }
  .js .nav-menu[open] .nav-links li:nth-child(4) { animation-delay: 120ms; }
  .js .nav-menu[open] .nav-links li:nth-child(5) { animation-delay: 160ms; }
  .nav-links a {
    display: flex;
    min-height: 58px;
    align-items: center;
    border-top: 1px solid var(--borda);
    font: 400 24px/1.15 var(--display);
    letter-spacing: 0;
    text-transform: none;
  }
  .header-quote { order: 1; min-height: 44px; padding-inline: 12px; font-size: 9px; }
  .floating-quote { display: inline-flex; }
  .floating-quote.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  body:has(.floating-quote.is-visible) { padding-bottom: 76px; }
  .hero-grid, .services-layout,
  .portfolio-hero-grid,
  .portfolio-final-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-media { max-width: 680px; }
  .services-intro { position: static; }
  .services-media { max-width: 560px; }
  .portfolio-hero-media { min-height: 520px; max-width: 680px; }
  .portfolio-callout { grid-template-columns: 1fr 1fr; }
  .process-layout,
  .compare-grid { grid-template-columns: 1fr; }
  .process-image img { min-height: 360px; max-height: 520px; }
}

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 42px 48px; }
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .media-mask { height: min(118vw, 520px); }
  .trust-grid { grid-template-columns: 1fr; padding-block: 4px; }
  .trust-grid p, .trust-grid p:last-child { padding: 16px 0; border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .trust-grid p:last-child { border-bottom: 0; }
  .section, .process-section { padding-block: 68px; }
  .materials-section,
  .process-section { padding-block: 76px; }
  .featured-section { padding-block: 72px; overflow: hidden; }
  .editorial-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .editorial-heading > div:last-child { justify-self: start; }
  .featured-work-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .featured-work-list::-webkit-scrollbar { display: none; }
  .featured-work { flex: 0 0 86%; display: block !important; scroll-snap-align: start; background: transparent !important; }
  .featured-work .work-media { height: auto; aspect-ratio: 4 / 3; }
  .featured-work .work-index,
  .featured-work h3,
  .featured-work > p:last-child { margin-inline: 0; }
  .featured-work .work-index { margin-top: 14px; }
  .service-row { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .service-row .text-link { grid-column: 2; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
  .rail-toolbar { justify-content: space-between; }
  .rail-toolbar button { display: none; }
  .material-card { flex-basis: 84%; }
  .material-copy { min-height: 230px; }
  .process-image { margin-inline: -18px; }
  .process-image img { min-height: 300px; }
  .compare-section { padding-block: 68px; }
  .visit { min-height: 560px; }
  .pros-grid { grid-template-columns: 1fr; gap: 22px; }
  .pros-grid .btn-secondary { justify-self: start; }
  .credits { flex-direction: column; }
  .portfolio-hero { padding-block: 44px 70px; }
  .portfolio-hero-copy h1 { font-size: clamp(42px, 12vw, 56px); }
  .portfolio-hero-media { min-height: 420px; margin-inline: -18px; }
  .portfolio-hero-primary { inset: 0 10% 13% 0; }
  .portfolio-hero-secondary { width: 47%; height: 38%; border-width: 7px; }
  .portfolio-showcase { padding-block: 76px; overflow: hidden; }
  .portfolio-grid { display: block; }
  .portfolio-project { margin-bottom: 68px; padding-top: 0 !important; }
  .portfolio-project:nth-of-type(odd) .work-media { margin-inline: -18px; }
  .portfolio-project[data-layout] .work-media { aspect-ratio: 4 / 3; }
  .portfolio-project:nth-of-type(3n) .work-media { aspect-ratio: 4 / 5; }
  .portfolio-project-copy { padding-inline: 0; }
  .portfolio-project:nth-of-type(odd) .portfolio-project-copy { padding-inline: 14px; }
  .portfolio-callout { display: block; margin: 0 -18px 68px; padding: 38px 24px; }
  .portfolio-callout h2,
  .portfolio-callout > p:not(.section-kicker) { margin-bottom: 18px; }
  .portfolio-final-quote { padding-block: 72px; }
  .portfolio-final-grid { gap: 28px; }
}

@media (max-width:520px) {
  body { font-size: 15px; }
  .hero .lede { font-size: 16px; }
  .hero-actions, .visit-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions a, .visit-actions a { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-image img { min-height: 300px; }
  .pros-grid .btn-secondary { width: 100%; }
}

@media (max-width: 390px) {
  .brand-name { max-width: 9ch; }
  .nav-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-quote { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .js .nav-menu[open] .nav-links li { animation: none !important; }
  .hero-reveal-pending,
  .reveal-pending,
  .hero-reveal-pending.is-revealed,
  .reveal-pending.is-revealed { opacity: 1; transform: none; clip-path: none; }
  [data-parallax] { --parallax-y: 0%; }
  .parallax-media { transform: none; }
}
