/* Architectural motion: shared by the homepage and careers page. */
:root { --motion-ease: cubic-bezier(.22,.68,.23,1); }
.hero-grid { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.care, .gallery-card img, .principle:nth-child(n) { animation: none; }
.hero .photo { position: relative; isolation: isolate; }
.hero .photo img { transform: scale(1.045) translateY(var(--hero-shift, 0px)); }
.hero .photo::after { content: ''; position: absolute; inset: 22px; border: 1px solid #ffffff59; border-radius: inherit; pointer-events: none; }
.hero-copy { animation: riseIn 1.1s var(--motion-ease) both; }
.hero-visual { animation: riseIn 1.4s .12s var(--motion-ease) both; }
.scroll-measure { position: fixed; inset: 0 0 auto; height: 2px; background: #2f6da3; transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; }
.motion-toggle { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #cad9e6; border-radius: 100px; background: #ffffffed; color: #365670; font: 500 11px/1.4 'DM Sans', sans-serif; box-shadow: 0 3px 18px #173f690a; cursor: pointer; z-index: 50; }
.motion-toggle svg { width: 12px; height: 12px; }
.motion-toggle:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #2f6da3; outline-offset: 5px; }
.motion-enabled .motion-reveal { opacity: 0; transform: translateY(20px); transition: opacity .85s var(--motion-ease) var(--reveal-delay, 0ms), transform 1s var(--motion-ease) var(--reveal-delay, 0ms); }
.motion-enabled .motion-reveal.is-visible { opacity: 1; transform: none; }
.motion-enabled .motion-reveal:focus-within { opacity: 1; transform: none; }
.section-head { position: relative; }
.section-head::after { content: ''; position: absolute; bottom: -24px; left: 0; width: 70px; height: 1px; background: #91b3cf; transform-origin: left; }
.motion-enabled .section-head.motion-reveal::after { transform: scaleX(0); transition: transform 1.3s var(--motion-ease) .18s; }
.motion-enabled .section-head.is-visible::after { transform: scaleX(1); }
.industry-icon svg path { stroke-dasharray: 180; stroke-dashoffset: 0; }
.motion-enabled .industry:not(.is-visible) svg path { stroke-dashoffset: 180; }
.motion-enabled .industry.is-visible svg path { transition: stroke-dashoffset 1.7s var(--motion-ease) .15s; }
.gallery-card { margin: 0; }
.gallery-card img { transition: transform 1.3s var(--motion-ease); }
.gallery-card:hover img { transform: scale(1.035); }
/* Supplied design boards keep their complete image and embedded labels visible. */
.gallery-card.gallery-card--supplied { grid-column: span 6; min-height: 0; background: #fff; border: 1px solid var(--line); }
.gallery-card.gallery-card--wide { grid-column: 1 / -1; }
.gallery-image-link { display: block; background: var(--mist); }
.gallery-image-link:focus-visible { outline-offset: -5px; }
.gallery-card--supplied img { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-card--supplied:hover img { transform: none; }
.gallery-card--supplied .gallery-caption { position: static; padding: 20px 22px 22px; color: var(--ink); background: #fff; }
.gallery-card--supplied .gallery-caption span { color: var(--green2); }
.gallery-card--supplied .gallery-caption small { display: block; margin-top: 7px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
@media (max-width: 560px) { .gallery .gallery-controls { flex-wrap: wrap; overflow: visible; } .gallery .gallery-filter { padding: 9px 14px; font-size: .82rem; } .gallery-card--supplied .gallery-caption { padding: 17px 18px 19px; } }
.home-display:hover, .service-display:hover { transform: none; }

/* One scroll-led architectural study, with ordinary scrolling throughout. */
.architectural-story { position: relative; min-height: 780px; padding: 90px 0; background: #f5f8fb; border-bottom: 1px solid var(--line); }
.story-stage { display: grid; grid-template-columns: .76fr 1.24fr; gap: 48px; align-items: center; }
.story-copy h2 { font: 500 clamp(2.4rem, 4vw, 3.65rem)/1.08 Manrope, sans-serif; letter-spacing: -.055em; margin: 0 0 24px; }
.story-copy > p { color: var(--muted); max-width: 360px; margin: 0 0 30px; font-size: 1rem; }
.build-stages { display: grid; border-top: 1px solid #d2deea; }
.build-stage { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 10px; color: #688095; text-align: left; border: 0; border-bottom: 1px solid #d2deea; background: transparent; padding: 18px 0; cursor: pointer; font: inherit; transition: color .4s, opacity .4s; }
.build-stage .stage-number { font-size: .68rem; padding-top: 4px; letter-spacing: .08em; }
.build-stage strong { display: block; font: 600 .98rem Manrope; }
.build-stage small { display: block; color: #62778a; font-size: .8rem; line-height: 1.5; margin-top: 5px; }
.build-stage[aria-pressed='true'] { color: #123e6b; }
.build-stage[aria-pressed='true'] .stage-number { color: #bd8853; }
.build-stage:hover { color: #123e6b; }
.build-stages:has(button:focus-visible) { outline: none; }
.model-figure { margin: 0; min-width: 0; }
.model-viewport { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #d6e2ec; border-radius: 22px; background: radial-gradient(ellipse at 50% 38%, #ffffff 0, #f0f5fa 75%); }
.model-viewport::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#7a9eba0a 1px, transparent 1px), linear-gradient(90deg,#7a9eba0a 1px,transparent 1px); background-size: 32px 32px; pointer-events: none; }
.model-meta { position: absolute; top: 24px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: center; color: #5c7890; font: 500 .63rem Manrope; letter-spacing: .13em; text-transform: uppercase; z-index: 1; }
.model-meta span:last-child { font-size: .72rem; letter-spacing: .08em; }
.residence-model { display: none; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: visible; }
.model-ready .residence-model { display: block; }
.model-fallback { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.model-ready .model-fallback { display: none; }
.model-foot { position: absolute; left: 25px; right: 25px; bottom: 23px; display: flex; justify-content: space-between; gap: 20px; align-items: end; font-size: .69rem; color: #6c8294; }
.model-foot strong { display: block; color: #274e6e; font: 600 .8rem Manrope; margin-bottom: 3px; }
.model-progress { height: 2px; background: #dce6ee; }
.model-progress span { display: block; height: 100%; background: #3677a9; transform: scaleX(var(--build-progress, 1)); transform-origin: left; transition: transform .35s ease-out; }
.model-figure figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 15px; color: #6f8293; font-size: .71rem; }
.story-scroll-hint { display: none; }
.model-floor, .model-roof, .model-finishes, .model-frame, .model-plan { transition: transform .38s ease-out, opacity .38s ease-out; }
.model-shadow { transition: opacity .4s; }
.model-dimension { stroke: #83a6bf; fill: none; stroke-width: .7; }
.model-dimension-label { fill: #7591a6; font: 8px Manrope, sans-serif; letter-spacing: 1.7px; }
.model-glass { stroke: #60879e; stroke-width: .7; }
.model-frame { stroke: #486d8a; stroke-width: 1.35; fill: none; stroke-linejoin: round; }
.model-plan { stroke: #8eacc4; stroke-width: .85; fill: none; }
.home-model { min-width: 0; background: #edf3f8; position: relative; display: grid; align-items: center; }
.home-model .model-viewport { border: 0; border-radius: 0; background: transparent; }
.home-model .residence-model { aspect-ratio: 1.45; }
.home-model .model-meta { top: 18px; left: 24px; right: 24px; }
.home-model-note { position: absolute; bottom: 16px; left: 24px; margin: 0; color: #6f8293; font-size: .65rem; }
.model-swap { animation: modelSettle .7s var(--motion-ease) both; }
@keyframes modelSettle { from { opacity: .15; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 901px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .motion-enabled .architectural-story { height: 150vh; min-height: 980px; padding: 0; }
  .motion-enabled .story-stage { position: sticky; top: max(24px, calc((100vh - 600px) / 2)); min-height: 600px; padding: 36px 0; }
  .motion-enabled .story-scroll-hint { display: inline; }
}
@media(max-width: 1050px) { .story-stage { gap: 28px; grid-template-columns: .85fr 1.15fr; } .story-copy h2 { font-size: 2.7rem; } .model-foot { font-size: .6rem; } .model-foot strong { font-size: .7rem; } }
@media(max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .story-stage { grid-template-columns: 1fr; gap: 30px; } .architectural-story { min-height: auto; padding: 72px 0; } .story-copy > p { max-width: 560px; } .build-stages { grid-template-columns: repeat(3, 1fr); gap: 15px; } .build-stage { grid-template-columns: 1fr; gap: 6px; } .build-stage small { font-size: .74rem; } .home-model .residence-model { max-height: 430px; } }
@media(max-width: 600px) { .hero .photo::after { inset: 14px; } .story-copy h2 { font-size: 2.35rem; } .architectural-story { padding: 60px 0; } .build-stage strong { font-size: .84rem; } .build-stage { padding: 16px 0; } .build-stage small { font-size: .7rem; } .model-meta { top: 16px; left: 17px; right: 17px; font-size: .52rem; } .model-foot { left: 17px; right: 17px; bottom: 16px; } .model-foot > span:last-child { display: none; } .model-figure figcaption { font-size: .65rem; } .home-model-note { bottom: 12px; } .motion-toggle { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 10px; padding: 8px 10px; } }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused .motion-reveal { opacity: 1; transform: none; }
.motion-paused .hero .photo img { transform: none; }
.motion-paused .architectural-story { height: auto; min-height: 0; padding: 72px 0; }
.motion-paused .story-stage { position: static; min-height: 0; padding: 0; }
.motion-paused .story-scroll-hint { display: none; }
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-enabled .motion-reveal { opacity: 1; transform: none; }
  .hero .photo img, .gallery-card:hover img, .industry:hover .industry-icon, .principle:hover, .job:hover { transform: none; }
  .story-scroll-hint { display: none; }
}
