/* Brand and motion revision. Source: supplied Arq Tec Haus palette and Moura template. */
:root { --header-height: 112px; --gold: #e5c287; --sand: #e0cfc1; --ease-out: cubic-bezier(.16,1,.3,1); }
.header { height: var(--header-height); min-height: 0; position: sticky; top: 0; padding-top: 10px; padding-bottom: 10px; }
.wordmark { gap: 0; letter-spacing: 0; }
.wordmark img { width: 150px; height: auto; mix-blend-mode: multiply; }
.footer .wordmark img { width: 230px; }
.button { transition: background .25s, color .25s, border-color .25s; }
.button .arrow, .text-link .arrow, .service-list a .arrow { transition: transform .4s var(--ease-out); }
.button:hover .arrow, .text-link:hover .arrow, .service-list a:hover .arrow { transform: translateX(5px); }
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.header nav > a:not(.button) { position: relative; }
.header nav > a:not(.button):after { content: ''; position: absolute; bottom: 7px; left: 0; height: 1px; width: 100%; background: var(--forest); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.header nav > a:not(.button):hover { text-decoration: none; }
.header nav > a:not(.button):hover:after { transform: scaleX(1); transform-origin: left; }
.opening { position: relative; }
.hero { display: block; height: auto; min-height: 0; max-height: none; padding: 0; isolation: auto; }
.hero:after { content: none; }
.hero-stage { position: relative; height: calc(100svh - var(--header-height)); min-height: 560px; padding: 64px var(--gutter) 110px; display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media-inner { position: absolute; inset: 0; transform-origin: center; }
.hero-photo, #hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: auto; }
#hero-video { opacity: 0; transition: opacity .7s; }
#hero-video.is-playing { opacity: 1; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(29,23,19,.7),rgba(29,23,19,.24) 75%),linear-gradient(0deg,rgba(29,23,19,.48),transparent 45%); }
.hero-content { position: relative; }
.line-mask { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.line-mask > span { display: block; }
.hero-foot { padding-right: 180px; }
.hero-foot > a { position: absolute; right: 0; }
.hero-foot > span:nth-child(2) { margin-left: auto; }
.video-toggle { position: absolute; bottom: 28px; right: calc(var(--gutter) + 50px); min-height: 38px; padding: 8px 12px; border: 1px solid #eee9e780; background: rgba(29,23,19,.6); color: #fffdfb; z-index: 5; font-size: 11px; white-space: nowrap; }
.video-toggle:hover { background: #6a4e38; }
.intro-frame { margin: 32px 0 0; }
.intro-frame img { aspect-ratio: 16/9; height: auto; }
.intro-frame figcaption { font-size: 12px; margin-top: 10px; color: var(--muted); }
.intro-copy { align-self: center; }
.opening.has-morph .hero { height: calc(188svh - var(--header-height)); }
.opening.has-morph .hero-stage { position: sticky; top: var(--header-height); }
.opening.has-morph .intro { position: absolute; bottom: 0; width: 100%; height: calc(100svh - var(--header-height)); min-height: 560px; padding-top: 42px; padding-bottom: 42px; grid-template-columns: 1.15fr 1fr; gap: 8vw; z-index: 2; opacity: 0; pointer-events: none; }
.opening.has-morph .intro h2 { font-size: clamp(36px,3.3vw,49px); }
.opening.has-morph .intro-copy { margin-top: 90px; }
.opening.has-morph .intro-frame { border: 10px solid var(--sand); margin-top: 28px; position: relative; }
.opening.has-morph .intro-frame img { opacity: 0; }
.opening.has-morph .intro-frame figcaption { position: absolute; left: -10px; top: calc(100% + 9px); font-size: 11px; }
.gallery { position: relative; }
.gallery-controls { display: none; }
.gallery.is-horizontal .gallery-viewport { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 560px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.gallery.is-horizontal .gallery-grid { display: flex; gap: 36px; width: max-content; }
.gallery.is-horizontal .project { flex: 0 0 clamp(640px,66vw,1020px); width: clamp(640px,66vw,1020px); }
.gallery.is-horizontal .project img { height: clamp(280px,47svh,520px); object-position: center; }
.gallery.is-horizontal .project-main { grid-row: auto; }
.gallery.is-horizontal .gallery-end { display: none; }
.gallery.is-horizontal .gallery-controls, .gallery.is-swipe .gallery-controls { display: flex; align-items: center; gap: 18px; margin-top: 27px; }
.gallery-count { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 56px; }
.gallery-progress { height: 1px; background: var(--line); flex: 1; overflow: hidden; }
.gallery-progress > span { display: block; width: 100%; height: 100%; background: var(--forest); transform: scaleX(0); transform-origin: left; }
.gallery-prev, .gallery-next { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; flex: 0 0 44px; }
.gallery-prev .arrow { transform: rotate(180deg); }
.gallery-prev:hover, .gallery-next:hover { background: var(--sand); }
.gallery-prev:disabled, .gallery-next:disabled { opacity: .35; }
.comparison { padding-top: 80px; background: var(--sand); }
.comparison .section-heading > p { max-width: 350px; font-size: 16px; }
.comparison-view { position: relative; aspect-ratio: 16/9; overflow: hidden; --split: 50%; }
.comparison-view > img, .comparison-sketch, .comparison-sketch img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.comparison-sketch { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-label { position: absolute; top: 18px; padding: 6px 13px; background: var(--paper); color: var(--ink); font-size: 12px; pointer-events: none; }
.label-sketch { left: 18px; }.label-space { right: 18px; }
.comparison-divider { pointer-events: none; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--paper); }
.comparison-divider > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid var(--paper); background: var(--paper); color: var(--ink); font-size: 12px; padding: 12px 17px; border-radius: 30px; }
.comparison-view input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison-view:focus-within { outline: 3px solid var(--forest); outline-offset: 6px; }
.comparison-view input:focus-visible { outline: none; }
.alpha-photo { overflow: hidden; }
.alpha-photo img { height: calc(100% + 60px); top: -30px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold); z-index: 100; transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 1023px), (max-height: 699px) {
  .hero-stage { min-height: 600px; }
  .intro-left h2 { font-size: 40px; }
  .intro-frame { margin-top: 25px; }
  .gallery.is-swipe .gallery-grid { display: flex; width: auto; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
  .gallery.is-swipe .project { width: min(75vw,650px); flex: 0 0 min(75vw,650px); scroll-snap-align: start; }
  .gallery.is-swipe .project img { height: 360px; }
  .gallery.is-swipe .gallery-grid.filtered { display: flex; }
}
@media (max-width: 760px) {
  :root { --header-height: 94px; }
  .header { height: var(--header-height); }
  .header .wordmark img { width: 122px; }
  .footer .wordmark img { width: 190px; }
  .hero-stage { min-height: 610px; height: calc(100svh - var(--header-height)); padding: 50px var(--gutter) 138px; }
  .hero-foot { padding-right: 0; bottom: 24px; padding-top: 14px; }
  .hero-foot > span:first-child { width: 100%; }
  .hero-foot > span:nth-child(2) { margin-left: 0; }
  .hero-foot > a { display: none; }
  .video-toggle { bottom: 19px; right: var(--gutter); }
  .hero h1 { font-size: clamp(42px,10.5vw,65px); }
  .hero-photo, #hero-video { object-position: center; }
  .intro-left h2 { font-size: 38px; }
  .intro-frame figcaption { font-size: 11px; }
  .gallery.is-swipe .gallery-grid { gap: 18px; }
  .gallery.is-swipe .project { flex-basis: 82vw; width: 82vw; }
  .gallery.is-swipe .project img { height: 320px; aspect-ratio: auto; }
  .gallery-controls { gap: 12px; }
  .comparison { padding-top: 60px; }
  .comparison .section-heading h2 { font-size: 38px; }
  .comparison-view { aspect-ratio: 4/3; }
  .comparison-label { top: 12px; font-size: 11px; padding: 4px 10px; }
  .label-sketch { left: 12px; }.label-space { right: 12px; }
  .comparison-divider > span { padding: 10px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  #hero-video { display: none; }
  .hero-media, .hero-media-inner, .hero-content, .hero-foot, .intro, .alpha-photo img { transform: none !important; clip-path: none !important; opacity: 1 !important; }
  .button:hover .arrow, .text-link:hover .arrow, .service-list a:hover .arrow { transform: none; }
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
@media (min-width: 761px) and (max-width: 950px) {
 .menu-toggle { display:flex;align-items:center;gap:14px;background:none;border:1px solid var(--line);padding:10px 12px;min-height:44px;font-size:13px; }
 .menu-lines { width:16px;height:8px;border-top:1px solid;border-bottom:1px solid; }
 .header nav { display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);padding:16px var(--gutter) 26px;border-top:1px solid var(--line);font-size:16px; }
 .header nav.open { display:flex;flex-direction:column;align-items:stretch;gap:4px; }
}
