.menu-toggle[aria-expanded='true'], .menu-links { background: var(--ink); color: var(--paper); }
.menu-toggle[aria-expanded='true'] { border-radius: 4px 4px 0 0; }
.menu-links { top: 100%; padding: .6rem 1rem 1rem; max-height: calc(100dvh - 6rem); overflow-y: auto; border-radius: 0 0 4px 4px; }
.menu-links a { min-height: 3.65rem; }
.menu-links small { color: #aeb6c2; }
.menu-links a + a { border-color: #ffffff24; }
.menu-links a:hover, .menu-links a[aria-current='page'] { color: var(--accent); }
.menu-links a:focus-visible { outline-color: var(--accent); }
.menu-links a:nth-child(5) { animation-delay: .2s; }
.menu-links a:nth-child(6) { animation-delay: .25s; }

.page-curtain { position: fixed; z-index: 20; inset: 0; overflow: hidden; background: #0b1220; display: grid; place-items: center; transform: translateY(-100%); pointer-events: none; }
.page-curtain span { width: 1rem; height: 1rem; background: var(--accent); }
.page-curtain.is-leaving > * { visibility: hidden; }
.home-page .brand span { display: none; }
.page-intro { padding-top: clamp(9rem, 15vw, 14rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.page-intro h1 { max-width: 70rem; font-size: clamp(2.8rem, 5.1vw, 6rem); line-height: 1.02; font-weight: 500; letter-spacing: -.065em; }
.editorial-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 6vw, 7rem); border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 2.5rem; align-items: start; }
.editorial-row .section-marker { padding-top: .4rem; }
.prose { max-width: 42rem; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.55; letter-spacing: -.025em; }
.prose > * + * { margin-top: 1.3rem; }
.prose .line-link { letter-spacing: 0; }
.draft-note { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.page-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.page-media img { position: absolute; width: 100%; height: 112%; top: -6%; object-fit: cover; transform: translateY(var(--parallax-y, 0px)); }
.subpage .section h2 { font-size: clamp(2.4rem, 4.1vw, 4.5rem); line-height: 1.06; letter-spacing: -.065em; }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.image-pair .page-media { aspect-ratio: 4 / 5; }
.image-pair .page-media:first-child { margin-right: 15%; }
.image-pair .page-media:last-child { margin-top: 20%; }
.next-page { padding-block: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--rule); }
.next-page > a:not(.back-projects) { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.4rem; font-size: clamp(2.1rem, 4.6vw, 5rem); line-height: 1.08; letter-spacing: -.065em; }
.next-page > a:hover { color: #b6470c; }
.next-page .back-projects { margin-bottom: 3.5rem; }
.gallery-more { margin-top: 1.3rem; }
.contact-grid .line-link { margin-top: 1.8rem; }

.service-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: start; margin-bottom: 4rem; }
.service-block { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; padding-block: 3.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 7rem; }
.service-block .page-media { aspect-ratio: 4 / 4.5; }
.service-copy h3 { font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.08; margin-block: 1rem 1.3rem; }
.service-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.plain-list { list-style: none; padding: 0; margin: 1.7rem 0; }
.plain-list li { border-top: 1px solid var(--rule); padding-block: .8rem; line-height: 1.5; font-size: .9rem; }
.offer-scope { background: #eceae3; }
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.scope-grid article { border-top: 1px solid var(--rule); padding-top: 1rem; }
.scope-grid h3 { margin-block: 2rem 1rem; font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; }
.scope-grid p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-bottom: var(--section-space); }
.project-card.featured { grid-column: 1 / -1; }
.project-link { display: block; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 4.3; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.featured .project-image { aspect-ratio: 16 / 8; }
.project-image::after { content: ''; position: absolute; inset: 0; background: #0b122066; opacity: 0; pointer-events: none; }
.project-caption { position: absolute; z-index: 1; inset: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.1rem, 2vw, 2rem); color: white; opacity: 0; pointer-events: none; }
.project-caption h2 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.project-caption > span { font-size: clamp(.75rem, 1vw, .95rem); text-align: right; }
.project-link:hover .project-caption, .project-link:focus-visible .project-caption, .project-link:hover .project-image::after, .project-link:focus-visible .project-image::after { opacity: 1; }
.project-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-caption { inset: auto clamp(1.1rem, 2vw, 2rem); top: var(--caption-y, 50%); padding: 0; transform: translateY(-50%); }
  .project-link:focus-visible:not(:hover) .project-caption { top: 50%; }
}
@media (hover: none) {
  .project-caption, .project-image::after { opacity: 1; }
  .project-image::after { background: linear-gradient(transparent 50%, #0b1220a6); }
  .project-caption { align-items: end; }
}
.project-cover { position: relative; height: 100vh; height: 100dvh; background: #0b1220; color: white; }
.project-cover > img { width: 100%; height: 100%; object-fit: cover; }
.project-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0b122044, transparent 30%, #0b122099); }
.cover-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(2rem, 6vw, 6rem); }
.cover-title h1 { font-size: clamp(3rem, 7.5vw, 9rem); font-weight: 500; letter-spacing: -.07em; line-height: 1; margin-top: 1rem; }
.project-page .brand, .project-page .header-contact { color: white; }
.project-page .brand img { filter: brightness(0) invert(1); }
.project-page .site-header.is-scrolled .brand:focus-visible, .project-page .site-header.is-scrolled .header-contact:focus-visible { color: var(--ink); }
.project-facts { margin: 0; font-size: .9rem; }
.project-facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }
.project-details-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-bottom: var(--section-space); }
.detail-crop { position: relative; height: clamp(20rem, 45vw, 45rem); overflow: hidden; }
.detail-crop img { height: 100%; object-fit: cover; object-position: 20% center; }
.detail-crop:nth-child(2) img { object-position: 85% center; }

.galaxy-project .project-cover > img { object-position: 47% 48%; }
.galaxy-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem) var(--gutter); }
.galaxy-photo { min-width: 0; overflow: hidden; }
.galaxy-photo img { width: 100%; height: auto; }
.galaxy-photo-wide { grid-column: 1 / -1; }
.galaxy-gallery-bottom { padding-bottom: var(--section-space); }

.theme-dark { --paper: #0b1220; --ink: #f7f6f2; --muted: #b7bdc6; --rule: #ffffff26; background: var(--paper); color: var(--ink); }
.theme-dark .brand img, .theme-dark .site-footer img { filter: brightness(0) invert(1); }
.theme-dark .menu-toggle { color: #0b1220; }
.theme-dark .menu-links, .theme-dark .menu-toggle[aria-expanded='true'] { background: #1b293e; color: #fff; }
.theme-dark .menu-links a:hover, .theme-dark .line-link:hover, .theme-dark .next-page > a:hover { color: var(--accent); }
.theme-dark .process-grid > div > .eyebrow { margin-bottom: 1.5rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 6vw, 7rem); padding-bottom: var(--section-space); }
.contact-details h2, .form-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; margin-bottom: 1rem; }
.contact-details { max-width: 27rem; }
.contact-info { display: grid; gap: 1.35rem; margin: 1.5rem 0 0; }
.contact-info dt { margin-bottom: .35rem; color: var(--muted); font-size: .8rem; }
.contact-info dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.contact-info a { overflow-wrap: anywhere; }
.contact-info a:hover { color: #b6470c; }
.contact-checklist { margin-top: 3rem; }
.contact-checklist h3 { font-size: 1rem; font-weight: 500; }
.form-note { font-size: .85rem; line-height: 1.6; color: var(--muted); margin-bottom: 2rem; }
.enquiry-form { display: grid; gap: 1.4rem; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.enquiry-form label { display: grid; align-content: start; gap: .6rem; font-size: .85rem; }
.enquiry-form label span { display: contents; color: var(--muted); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea, .enquiry-result textarea { width: 100%; min-width: 0; padding: .9rem; font: inherit; line-height: 1.5; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 0; }
.enquiry-form textarea, .enquiry-result textarea { resize: vertical; }
.solid-button { display: flex; gap: 1rem; align-items: center; justify-content: space-between; width: fit-content; min-height: 3rem; border: 0; background: var(--ink); color: var(--paper); padding: .9rem 1.3rem; font-size: .9rem; }
.solid-button:hover { background: #26364e; }
.enquiry-result { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.enquiry-result h3 { margin-bottom: 1rem; }
.enquiry-result .solid-button { margin-top: 1rem; }
.copy-status { font-size: .85rem; margin-top: .8rem; }

.site-footer { padding-block: 3.5rem 1.5rem; border-top: 1px solid var(--rule); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; }
.footer-top img { width: 11rem; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .88rem; }
.footer-top a:hover { color: #b6470c; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; }
.footer-bottom .eyebrow { font-size: .59rem; }

@media (prefers-reduced-motion: no-preference) {
  .page-curtain { animation: curtain-open .65s var(--ease-out) both; }
  .home-page .page-curtain { background: var(--paper); animation: home-curtain-clear 2.4s linear both; }
  .home-page .page-curtain.is-leaving { background: #0b1220; }
  .home-page .intro-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(5rem, 18vw, 8rem);
    height: auto;
    fill: #0b1220;
    animation: home-logo-move 2.4s cubic-bezier(.65, 0, .35, 1) both;
  }
  .home-page .intro-logo rect { transform-box: fill-box; transform-origin: center; animation: home-logo-piece .25s var(--ease-out) backwards; }
  .home-page .intro-logo rect:nth-child(1) { animation-delay: .1s; }
  .home-page .intro-logo rect:nth-child(2) { animation-delay: .2s; }
  .home-page .intro-logo rect:nth-child(3) { animation-delay: .3s; }
  .home-page .intro-logo rect:nth-child(4) { animation-delay: .4s; }
  .home-page .intro-logo rect:nth-child(5) { animation-delay: .5s; }
  .home-page .intro-logo rect:nth-child(6) { animation-delay: .6s; }
  .home-page .intro-logo rect:nth-child(7) { animation-delay: .7s; }
  .home-page .intro-logo rect:nth-child(8) { animation-delay: .8s; }
  .home-page .intro-logo .intro-accent { fill: #ff7a2a; }
  .home-page .brand > img { animation: home-header-show 2.16s steps(1, end) both; }
  .home-page .hero-title img { animation-delay: 1.95s; }
  .home-page .hero-intro { animation-delay: 2.05s; }
  .home-page .hero-meta { animation-delay: 2.15s; }
  .page-intro h1, .cover-title { animation: content-enter 1s var(--ease-out) .2s backwards; }
  .page-intro .editorial-row { animation: content-enter 1s var(--ease-out) .35s backwards; }
  .project-image img { transition: transform 1.1s var(--ease-out); }
  .project-image::after, .project-caption { transition: opacity .3s ease; }
  .project-link:hover img { transform: scale(1.04); }
  .scroll-reveal { opacity: var(--reveal-opacity, 1); translate: 0 var(--reveal-y, 0px); }
  .scroll-reveal:is(figure, .project-card, .material) { clip-path: inset(var(--reveal-inset, 0%) 0 0); }
  .scroll-reveal:focus-within { opacity: 1; clip-path: none; }
}
@keyframes curtain-open { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes home-logo-piece {
  from { opacity: 0; transform: scale(.45); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes home-logo-move {
  0%, 48% { transform: translate(-50%, -50%) scale(1); }
  90%, 100% { transform: translate(calc(-50% + var(--logo-shift-x, 0px)), calc(-50% + var(--logo-shift-y, 0px))) scale(var(--logo-target-scale, 1)); }
}
@keyframes home-header-show {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes home-curtain-clear {
  0%, 90% { transform: translateY(0); opacity: 1; }
  99% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(-100%); opacity: 0; }
}
@media (max-width: 740px) {
  .page-intro { padding-top: 8rem; }
  .editorial-row, .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-heading { flex-direction: column; }
  .service-block { grid-template-columns: 1fr; }
  .service-block .page-media { aspect-ratio: 4 / 3; }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .project-details-images { grid-template-columns: 1fr; }
  .galaxy-gallery { grid-template-columns: 1fr; }
  .galaxy-photo-wide { grid-column: auto; }
  .detail-crop { height: 28rem; }
}
@media (max-width: 490px) {
  .menu-links { width: min(88vw, 23rem); }
  .menu-links a { min-height: 3rem; }
  .project-grid, .form-pair { grid-template-columns: 1fr; }
  .project-image, .featured .project-image { aspect-ratio: 4 / 3; }
  .scope-grid { gap: 2rem 1rem; }
  .image-pair { gap: 1rem; }
  .image-pair .page-media:first-child { margin-right: 0; }
  .image-pair .page-media { aspect-ratio: 3 / 5; }
  .footer-bottom { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .page-media img { transform: none; }
  .scroll-reveal { opacity: 1; translate: none; clip-path: none; }
}

/* Home: editorial typography and alignment. */
.home-page .home-section-title { max-width: 70rem; font-size: clamp(2.8rem, 5.1vw, 5.5rem); line-height: 1.04; letter-spacing: -.065em; }
.home-page .home-editorial { display: grid; grid-template-columns: 3fr 2fr 6fr; align-items: start; gap: 0 var(--gutter); border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 2.4vw, 2.5rem); margin-top: clamp(2rem, 3vw, 3rem); }
.home-page .about-copy { margin-top: 0; }
.home-page .home-editorial > .section-marker { grid-column: 1; justify-content: flex-start; padding-top: .25rem; font-size: .92rem; line-height: 1.45; font-weight: 400; }
.home-page .home-editorial > .home-prose { grid-column: 3; width: 100%; max-width: 42rem; }
.home-page .home-prose > p { max-width: none; color: var(--ink); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; letter-spacing: -.015em; }
.home-page .home-prose > p + p { margin-top: 1.2rem; }
.home-page .home-prose > .line-link { margin-top: 1.8rem; }
.home-page .gallery { margin-top: clamp(3rem, 6vw, 6rem); }
.home-page .gallery .project-image { aspect-ratio: 4 / 4.65; }
.home-page .gallery .project-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.home-page .gallery .project-caption h3 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.1; letter-spacing: -.03em; }
.home-page .steps { margin-top: clamp(2rem, 4vw, 3.5rem); }
.home-page .steps summary { grid-template-columns: 1fr 1rem; }
.home-page .steps details p { max-width: 38rem; padding: 0 1.5rem 1.2rem 0; }
.home-page .contact .home-editorial { border-color: #ffffff50; }
.home-page .contact .home-prose > p { color: #e4e3df; }
.home-page .contact .home-section-title span { color: var(--accent); }
@media (max-width: 740px) {
  .home-page .home-editorial { grid-template-columns: 1fr; gap: 1.6rem; }
  .home-page .home-editorial > .section-marker, .home-page .home-editorial > .home-prose { grid-column: 1; }
}
@media (max-width: 490px) {
  .home-page .gallery .project-image { aspect-ratio: 1.1; }
}

.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-status { margin: 1rem 0 0; font-size: .9rem; line-height: 1.5; }
.enquiry-status:empty { display: none; }
.enquiry-status[data-state="error"] { color: #a02e1b; }
.enquiry-status[data-state="success"] { color: #24623a; }
.enquiry-form button:disabled { opacity: .6; cursor: wait; }

.galaxy-project .galaxy-gallery + .galaxy-gallery-bottom { margin-top: clamp(2rem, 4vw, 4rem); }

/* Project headline starts once it enters the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .project-page .cover-title { animation: none; }
  .project-page .project-title-reveal .word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .project-page .project-title-reveal .word-inner { display: inline-block; transform-origin: left bottom; transform: translateY(110%) rotate(7deg); }
  .project-page .project-title-reveal.is-visible .word-inner { animation: project-word-enter 1.1s cubic-bezier(.22, 1, .36, 1) calc(var(--word-index, 0) * 55ms) both; }
}
@keyframes project-word-enter { from { transform: translateY(110%) rotate(7deg); } to { transform: translateY(0) rotate(0); } }

/* Language selector is available on every page. */
.header-actions { justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: clamp(.8rem, 1.8vw, 2rem); }
.language-switch { display: flex; align-items: center; gap: .32rem; }
.language-switch a { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 3px; opacity: .7; }
.language-switch a:hover, .language-switch a[aria-current="page"], .language-switch a:focus-visible { opacity: 1; }
.language-switch a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.language-switch svg { display: block; width: 1.65rem; height: 1.1rem; border: 1px solid #0b122055; box-shadow: 0 0 0 1px #ffffff55; }
.site-header.is-scrolled .language-switch { background: #ecebe6ed; border-radius: 3px; }
@media (max-width: 740px) {
  .site-header { grid-template-columns: auto minmax(6.7rem, 1fr) auto; }
  .header-actions { gap: 0; }
  .header-actions .header-contact { display: none; }
  .language-switch { gap: 0; }
  .language-switch a { width: 1.8rem; height: 2rem; }
  .language-switch svg { width: 1.45rem; height: .97rem; }
}
