/* Direção editorial: fotografia, tons da marca e movimentos contidos. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --hero-ink: #f5f0e7;
  --hero-accent: #e2d2b9;
}

.header {
  position: fixed;
  width: 100%;
  background: transparent;
  border-color: #f5f0e726;
  color: var(--hero-ink);
  transition: background .55s, color .55s, border-color .55s, height .55s;
}
.brand img { transition: filter .55s; }
.header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.header.is-scrolled, .header:has(.is-open) {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--line);
}
.header:has(.is-open) .brand img { filter: none; }
.header.is-scrolled { height: 82px; }
.header a:hover { color: inherit; }
.header nav > a:not(.nav-cta) { position: relative; }
.header nav > a:not(.nav-cta)::after {
  content: ''; position: absolute; height: 1px; bottom: -7px; left: 0; right: 0;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.header nav > a:hover::after, .header nav > a:focus-visible::after { transform: scaleX(1); }
.nav-cta { border-color: currentColor; }
.menu-icon { border-color: currentColor; }

.hero {
  display: flex;
  position: relative;
  isolation: isolate;
  min-height: max(800px, 100svh);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; z-index: -2; height: auto; }
.hero-image > img { object-position: 50% 47%; }
.hero-image::after { display: none; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #242924b0, #24292438 64%, #2429240a),
    linear-gradient(180deg, #24292480, transparent 30%, #24292420 60%, #24292485);
}
.hero-copy {
  width: 100%; justify-content: flex-end;
  padding: 180px var(--gutter) 140px;
}
.hero .eyebrow { color: var(--hero-ink); margin-bottom: 30px; font-size: 10px; letter-spacing: .23em; }
.hero h1 { font-size: clamp(46px, 4.8vw, 82px); line-height: 1.07; max-width: 880px; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { color: var(--hero-accent); }
.hero-intro { color: var(--hero-ink); max-width: 560px; margin: 28px 0; font-size: 14px; }
.hero .button {
  color: var(--hero-ink); background: transparent; border-color: #f5f0e780;
  min-width: 260px; backdrop-filter: blur(5px);
}
.hero .button:hover { background: var(--hero-ink); color: var(--forest); }
.hero-bottom {
  position: absolute; bottom: 29px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 21px; border-top: 1px solid #f5f0e73b;
  font-size: 11px; letter-spacing: .06em;
}
.hero-explore { margin: 0; font-size: 11px; gap: 45px; color: var(--hero-ink); }
.hero-explore:hover { color: var(--hero-accent); }
.trust-line { padding-block: 27px; background: var(--paper); }

.section { padding-block: clamp(80px, 9vw, 145px); }
h2 { font-size: clamp(36px, 3.8vw, 60px); letter-spacing: -.04em; text-wrap: balance; }
.about { column-gap: 9%; row-gap: 35px; }
.about-photo { overflow: hidden; }
.about-photo img { height: clamp(570px, 51vw, 760px); }
.about-title h2 { font-size: clamp(36px, 3.55vw, 56px); }
.about-copy { font-size: 14px; line-height: 1.85; }
.muted { color: #7a7b6c; }
.story summary span { transition: transform .5s var(--ease-out); }
.story[open] > div { animation: soft-appear .65s var(--ease-out); }

.details-section { padding-bottom: clamp(80px, 9vw, 145px); overflow: hidden; }
.details-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.details-heading h2 { max-width: 780px; font-size: clamp(36px, 3.35vw, 52px); }
.details-aside { flex-shrink: 0; font-size: 14px; color: var(--slate); }
.motion-toggle { background: transparent; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; margin-top: 18px; font-size: 11px; }
.motion-toggle[hidden] { display: none; }
.motion-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #9a9f94; border-radius: 50%; font-size: 10px; }
.detail-window { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #a9afa3 transparent; }
.detail-track { display: flex; width: max-content; }
.detail-group { display: flex; align-items: flex-start; gap: 36px; padding-right: 36px; }
.detail-item { width: clamp(250px, 26vw, 410px); flex: 0 0 auto; }
.detail-item img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.detail-item figcaption { font-size: 12px; padding-top: 17px; color: #606a62; }
.details-section.has-motion .detail-window { overflow: hidden; }
.details-section.has-motion .detail-track { animation: detail-drift 85s linear infinite; animation-play-state: paused; }
.details-section.is-running .detail-track { animation-play-state: running; }
.details-section.has-motion .detail-window:hover .detail-track,
.details-section.has-motion .detail-window:focus-within .detail-track { animation-play-state: paused; }
.detail-group[aria-hidden="true"] { pointer-events: none; }
@keyframes detail-drift { to { transform: translateX(-50%); } }

.environments { background: var(--wash); }
.environments > .wrap:last-child { max-width: none; padding-inline: 0; }
.env-tabs { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 36px; gap: clamp(25px, 4vw, 64px); }
.env-tabs button { transition: color .4s, border-color .4s; }
.env-panel { display: block; background: var(--forest); min-height: 0; }
.env-visual { position: relative; height: clamp(540px, 53vw, 820px); overflow: hidden; }
.env-visual img { width: 100%; height: 100%; object-fit: cover; }
.env-description { position: absolute; inset: auto 0 0; flex-direction: row; align-items: flex-end; gap: 30px; padding: 100px var(--gutter) 45px; background: linear-gradient(transparent, #172020d9); pointer-events: none; }
.env-description > * { pointer-events: auto; }
.env-description .eyebrow { color: #e2d8c7; margin-bottom: 15px; }
.env-description h3 { font-size: clamp(37px, 4.5vw, 66px); margin-bottom: 14px; }
.env-description p:last-child { color: var(--hero-ink); font-size: 14px; }
.round-link { border-color: #fafaf790; }
.projects .section-heading { margin-bottom: 65px; }
.section-destination { margin-top: 42px; text-align: right; }
.store-selector #store-page-link { max-width: none; margin: 0 0 26px; width: fit-content; }
.about-copy > .text-link { margin-top: 28px; }
.project-grid { grid-template-columns: 1.2fr 1fr; gap: 9%; }
.project-card .image-button > img { height: clamp(510px, 50vw, 740px); }
.project-card-offset { padding-top: 160px; }
.project-card-offset .image-button > img { height: clamp(420px, 39vw, 600px); }
.image-action { background: transparent; color: var(--hero-ink); inset: auto 0 0; padding: 85px 28px 27px; background-image: linear-gradient(transparent, #172020b3); }
.image-button > img, .architect-image img { transition: transform 1.4s var(--ease-out); }
.image-button:hover > img { transform: scale(1.035); }
.image-button:focus-visible { outline-offset: 6px; }
.process { background: var(--forest); }
.steps li { padding-block: 30px; }
.voice { background: transparent; border-top: 1px solid var(--line); padding-top: 25px; transition: background .5s; }
.voice:hover { background: var(--wash); }
.store-photo { height: 620px; }
.store-photo > span { z-index: 2; }
.architect-image { overflow: hidden; }
.architect-image img { height: 650px; }
.contact { background: #e7e9e3; }
.contact-layout { gap: 11%; }
.contact form { padding: 42px; background: #fafaf766; border: 1px solid #2b36371a; }
.contact input, .contact textarea, .contact select, .store-selector select {
  transition: border-color .4s, background-color .4s, box-shadow .4s;
}
.contact input:focus, .contact textarea:focus, .contact select:focus, .store-selector select:focus {
  border-color: var(--forest); box-shadow: 0 1px 0 var(--forest); background-color: #fafaf76b;
}
.button, .text-link, .round-link { transition: background .45s, color .45s, border-color .45s; }
.button > span, .text-link > span, .round-link > span { transition: transform .55s var(--ease-out); }
.button:hover > span, .text-link:hover > span, .round-link:hover > span { transform: translate(3px, -3px); }
.gallery-frame { position: relative; height: 66dvh; overflow: hidden; }
.gallery-frame img { width: 100%; height: 100%; object-fit: contain; }
.image-outgoing { position: absolute !important; inset: 0; pointer-events: none; z-index: 1; }
dialog[open] { animation: dialog-enter .5s var(--ease-out); }
dialog[open]::backdrop { animation: backdrop-enter .4s ease; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Content is visible unless the motion controller explicitly observes it. */
.reveal-ready { opacity: 0; transform: translateY(25px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready.is-visible, .reveal-ready:focus-within { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .header { gap: 20px; }
  .hero h1 { max-width: 720px; font-size: 61px; }
  .about { column-gap: 6%; }
  .about-photo img { height: 650px; }
  .contact form { padding: 30px; }
}
@media (max-width: 900px) {
  .header nav { color: var(--forest); top: 85px; }
  .header.is-scrolled nav { top: 81px; }
  .header nav > a:not(.nav-cta)::after { display: none; }
  .hero h1 { max-width: 640px; font-size: 57px; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-title h2 { font-size: 37px; }
  .about-photo img { height: 720px; }
  .store-photo { height: 560px; }
  .architect-image img { height: 550px; }
}
@media (max-width: 760px) {
  .header, .header.is-scrolled { height: 78px; }
  .header nav, .header.is-scrolled nav { top: 77px; }
  .hero { min-height: max(780px, 100svh); display: flex; }
  .hero-image { height: auto; }
  .hero-image > img { object-position: 67% center; }
  .hero::after { background: linear-gradient(180deg, #24292480, #24292420 25%, #2429246b 45%, #242924db); }
  .hero-copy { padding: 190px var(--gutter) 116px; flex: 1; justify-content: flex-end; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 9px; }
  .hero h1 { max-width: 600px; font-size: clamp(38px, 7.8vw, 57px); line-height: 1.08; }
  .hero-intro { font-size: 13px; max-width: 440px; margin: 22px 0; }
  .hero .button { min-height: 52px; min-width: 246px; }
  .hero-bottom { font-size: 9px; bottom: 22px; padding-top: 18px; }
  .hero-explore { font-size: 10px; margin-top: 0; gap: 20px; }
  .trust-line { font-size: 9px; padding-block: 22px; gap: 8px; }
  .section { padding-block: 76px; }
  h2 { font-size: clamp(35px, 7.5vw, 44px); }
  .about { grid-template-columns: 1fr; row-gap: 30px; }
  .about-title h2 { font-size: clamp(35px, 7.5vw, 44px); }
  .about-photo img { height: auto; aspect-ratio: 4/5; }
  .details-section { padding-bottom: 76px; }
  .details-heading { display: block; margin-bottom: 32px; }
  .details-heading h2 { font-size: 35px; }
  .details-aside { margin-top: 23px; display: flex; gap: 22px; align-items: flex-end; justify-content: space-between; font-size: 12px; }
  .motion-toggle { margin-top: 0; }
  .motion-label { max-width: 65px; text-align: left; line-height: 1.4; }
  .detail-group { gap: 20px; padding-right: 20px; }
  .detail-item { width: 65vw; }
  .detail-item figcaption { font-size: 11px; }
  .env-tabs { margin: 0 var(--gutter) 25px; gap: 27px; }
  .env-visual { height: 540px; }
  .env-description { padding: 100px var(--gutter) 30px; }
  .env-description h3 { font-size: 35px; }
  .env-description p:last-child { font-size: 13px; max-width: 235px; }
  .env-description .round-link { width: 46px; height: 46px; }
  .projects .section-heading { margin-bottom: 35px; }
  .project-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-card .image-button > img { height: 125vw; max-height: 600px; }
  .project-card-offset { padding-top: 0; width: 88%; margin-left: auto; }
  .project-card-offset .image-button > img { height: 108vw; max-height: 530px; }
  .image-action { padding: 70px 20px 23px; }
  .store-photo { height: 450px; }
  .architect-image img { height: 460px; }
  .contact form { padding: 28px 22px; margin-top: 38px; }
  .contact input, .contact select, .contact textarea { font-size: 16px; }
  .gallery-frame { height: 60dvh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
  .details-section.has-motion .detail-window { overflow-x: auto; }
  .detail-track { transform: none !important; }
  .detail-group[aria-hidden="true"] { display: none; }
  .motion-toggle { display: none; }
}
