:root {
  --ivory: #F5EFE4;
  --parchment: #EAE0CF;
  --ink: #1F1A17;
  --sepia: #6B5E52;
  --gold: #A8834A;
  --brick: #A8322F;
  --line: rgba(31, 26, 23, 0.18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 4vw;
  --section-y: 9rem;
  --nav-h: 6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, blockquote, ol { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
em { font-style: italic; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
*:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.label { display: block; font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sepia); margin-bottom: 1.25rem; }
.ornament { display: block; width: 1rem; height: 1rem; margin: 0 auto 1.5rem; color: var(--gold); }
.numeral { font-family: var(--serif); font-style: italic; color: var(--gold); }
.section-head { text-align: center; padding: 0 var(--gutter); margin-bottom: 5rem; }

.arch { display: block; overflow: hidden; border-radius: 100vmax 100vmax 0 0; background: var(--parchment); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.9rem; padding-bottom: 0.35rem; border-bottom: 1px solid currentColor; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.link-arrow .arrow { width: 2.75rem; height: 0.625rem; transition: transform 0.4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }

.button {
  display: inline-block; padding: 1.1rem 2.25rem; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; transition: background-color 0.3s ease, color 0.3s ease;
}
.button:hover { background: transparent; color: var(--ink); }
.button--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.button--light:hover { background: transparent; color: var(--ivory); }

[data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr; height: var(--nav-h);
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.nav__cell { display: flex; align-items: center; padding: 0 var(--gutter); }
.nav__cell--left { border-right: 1px solid var(--line); }
.nav__cell--right { justify-content: flex-end; border-left: 1px solid var(--line); }
.nav__logo { display: flex; align-items: center; padding: 0 3.5rem; }
.nav__logo img { height: 3.75rem; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2.5rem; }
.nav__link, .dropdown__toggle { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__link:hover, .dropdown__toggle:hover { color: var(--brick); }
.nav__link--mobile { display: none; }
.nav__burger { display: none; }

.dropdown { position: relative; }
.dropdown__toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; }
.dropdown__chevron { width: 0.875rem; height: 0.875rem; transition: transform 0.3s ease; }
.dropdown.is-open .dropdown__chevron { transform: rotate(180deg); }
.dropdown__list {
  position: absolute; top: calc(100% + 1.85rem); left: calc(var(--gutter) * -1); min-width: 22rem;
  padding: 1rem 0; background: var(--ivory); border: 1px solid var(--line); border-top: 0;
  visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s 0.35s;
}
.dropdown.is-open .dropdown__list { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s; }
.dropdown__list a { display: block; padding: 0.6rem var(--gutter); font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.dropdown__list a:hover { color: var(--brick); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 0.7rem 0; white-space: nowrap; }
.ticker__track { display: inline-flex; align-items: center; animation: ticker 70s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--sepia); padding: 0 1.5rem; }
.ticker .ornament { width: 0.55rem; height: 0.55rem; margin: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Arch hero */
.arch-hero { padding: 6rem var(--gutter) var(--section-y); }
.arch-hero__head { position: relative; z-index: 2; text-align: center; }
.arch-hero__head .label a:hover { color: var(--brick); }
.arch-hero__title { font-size: clamp(3.25rem, 8.4vw, 9.5rem); line-height: 0.92; margin-bottom: -0.32em; }
.arch-hero__title span { display: block; }
.arch-hero__title em { color: var(--brick); }
.arch-hero__grid { display: grid; grid-template-columns: 1fr minmax(0, 32rem) 1fr; gap: 4vw; align-items: stretch; }
.arch-hero__media { position: relative; z-index: 1; aspect-ratio: 3 / 4; }
.arch-hero__media img { transform-origin: 50% 50%; }
.arch-hero__side { display: flex; flex-direction: column; gap: 1.5rem; max-width: 15rem; color: var(--sepia); font-size: 0.8125rem; }
.arch-hero__side--left { justify-self: end; justify-content: flex-end; text-align: right; align-items: flex-end; padding-bottom: 3rem; }
.arch-hero__side--right { justify-self: start; justify-content: center; align-items: flex-start; padding-top: 10rem; }
.arch-hero__side .link-arrow { color: var(--ink); }
.project-index { display: grid; border-top: 1px solid var(--line); margin-top: -0.5rem; }
.project-index a { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.125rem; line-height: 1.25; color: var(--ink); }
.project-index a:hover { color: var(--brick); }
.project-index .numeral { font-size: 0.9375rem; }

/* Statement */
.statement { padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.statement__text { max-width: 62rem; margin: 0 auto; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.22; }
.statement__text .word { display: inline-block; }

/* Services: split rows with a vertical rule */
.services { padding-top: var(--section-y); border-top: 1px solid var(--line); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.split:nth-of-type(even) .split__media { order: -1; }
.split__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 6rem 8vw; }
.split__text h3 { font-size: clamp(2.25rem, 3.6vw, 3.5rem); margin-bottom: 1.75rem; }
.split__text h3 a:hover { color: var(--brick); }
.split__text h3 em { color: var(--brick); }
.split__text > p:not(.label) { max-width: 26rem; color: var(--sepia); margin-bottom: 2.5rem; }
.split__media { display: flex; justify-content: center; align-items: center; padding: 6rem 4vw; }
.split__media .arch { width: min(100%, 24rem); aspect-ratio: 3 / 4; }
.split__media .arch img { transition: transform 1.4s var(--ease); }
.split__media .arch:hover img { transform: scale(1.05); }

/* Process: three columns divided by rules */
.process { padding: var(--section-y) 0 0; border-top: 1px solid var(--line); }
.process__steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process__steps li { padding: 4rem 4vw 5rem; text-align: center; }
.process__steps li + li { border-left: 1px solid var(--line); }
.process__steps .numeral { display: block; font-size: 2rem; margin-bottom: 1.25rem; }
.process__steps h3 { font-size: 2rem; margin-bottom: 1rem; }
.process__steps p { max-width: 20rem; margin: 0 auto; color: var(--sepia); }

/* Quote */
.quote { padding: var(--section-y) var(--gutter); background: var(--parchment); text-align: center; border-top: 1px solid var(--line); }
.quote blockquote { max-width: 56rem; margin: 0 auto; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.2; margin-bottom: 2rem; }
.quote .label { margin: 0; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.contact__media-col { display: flex; justify-content: center; align-items: center; padding: var(--section-y) 6vw; }
.page-head { padding: 6rem var(--gutter) 5rem; text-align: center; }
.page-head h1 { font-size: clamp(3rem, 7vw, 7.5rem); line-height: 0.95; }
.page-head h1 em { color: var(--brick); }
.contact__media { width: min(100%, 22rem); aspect-ratio: 3 / 4; }
.contact__info { display: flex; flex-direction: column; justify-content: center; padding: var(--section-y) 8vw; }
.contact__info > p { max-width: 26rem; color: var(--sepia); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.contact__direct { display: grid; gap: 2.25rem; margin-top: 3.5rem; }
.contact__direct a { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.1; }
.contact__direct a:hover { color: var(--brick); }
.contact__direct .label { margin-bottom: 0.4rem; }

/* Footer */
.footer { background: var(--ink); color: var(--parchment); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.footer__top > * { padding: 5rem var(--gutter); }
.footer__top > * + * { border-left: 1px solid rgba(234, 224, 207, 0.15); }
.footer__logo { display: inline-block; margin-bottom: 1.75rem; }
.footer__logo img { height: 4rem; width: auto; }
.footer__brand p { max-width: 22rem; color: rgba(234, 224, 207, 0.7); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer__col .label { color: rgba(234, 224, 207, 0.55); }
.footer__col a { font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { padding: 1.75rem var(--gutter); border-top: 1px solid rgba(234, 224, 207, 0.15); font-size: 0.75rem; color: rgba(234, 224, 207, 0.55); }

/* Service page */
.projects { border-top: 1px solid var(--line); }
.project { padding: 6rem var(--gutter); }
.project + .project { border-top: 1px solid var(--line); }
.project__head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 4rem;
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.project__head > div { padding-right: 4vw; }
.project__head h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.project__head > p { max-width: 28rem; padding-left: 4vw; color: var(--sepia); }
.gallery { columns: 3; column-gap: 1.5rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1.5rem; }
.gallery__item a { display: block; overflow: hidden; cursor: zoom-in; background: var(--parchment); }
.gallery__item img { width: 100%; transition: transform 1s var(--ease); }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { padding-top: 0.7rem; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.3; color: var(--sepia); }
.note { padding: 5rem var(--gutter); background: var(--parchment); border-top: 1px solid var(--line); text-align: center; }
.note p:last-child { max-width: 46rem; margin: 0 auto; font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }

.cta { padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line); }
.cta__inner { max-width: 72rem; margin: 0 auto; padding: 6rem 8%; background: var(--ink); color: var(--ivory); text-align: center; border-radius: 100vmax 100vmax 0 0; }
.cta h2 { margin-bottom: 1.25rem; }
.cta p { color: rgba(245, 239, 228, 0.7); margin-bottom: 2.75rem; }

.others { border-top: 1px solid var(--line); padding-top: 4rem; }
.others .label { text-align: center; }
.others__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.others__item { display: flex; flex-direction: column; gap: 1.25rem; padding: 3rem 4vw; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.others__item + .others__item { border-left: 1px solid var(--line); }
.others__item .numeral { font-size: 1.25rem; }
.others__item .arrow { width: 2.75rem; height: 0.625rem; transition: transform 0.4s var(--ease); }
.others__item:hover { color: var(--brick); }
.others__item:hover .arrow { transform: translateX(6px); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 17, 15, 0.97); color: var(--ivory); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 17, 15, 0.97); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: calc(100vw - 9rem); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; object-fit: contain; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; font-size: 1.25rem; min-height: 1.5rem; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--ivory); opacity: 0.75; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Tablet */
@media (max-width: 991px) {
  :root { --section-y: 6rem; --nav-h: 5rem; }
  .nav__burger { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; margin-left: -0.5rem; }
  .nav__burger span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(-45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(45deg); }
  .nav__logo { padding: 0 2rem; }
  .nav__logo img { height: 3rem; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; display: block; height: calc(100dvh - var(--nav-h));
    padding: 1rem var(--gutter) 3rem; background: var(--ivory); border-top: 1px solid var(--line); overflow: auto;
    visibility: hidden; opacity: 0; transition: opacity 0.4s ease, visibility 0s 0.4s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transition: opacity 0.4s ease, visibility 0s; }
  .nav__link, .dropdown__toggle { display: flex; width: 100%; padding: 1.25rem 0; font-family: var(--serif); font-size: 2.25rem; letter-spacing: 0; text-transform: none; font-weight: 400; border-bottom: 1px solid var(--line); }
  .nav__link--mobile { display: flex; }
  .dropdown__toggle { justify-content: space-between; }
  .dropdown__chevron { width: 1.25rem; height: 1.25rem; }
  .dropdown__list { position: static; min-width: 0; padding: 0; border: 0; visibility: visible; opacity: 1; transform: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
  .dropdown.is-open .dropdown__list { grid-template-rows: 1fr; }
  .dropdown__list-inner { min-height: 0; overflow: hidden; }
  .dropdown__list a { padding: 0.75rem 0 0.75rem 1.25rem; white-space: normal; color: var(--sepia); }
  .dropdown__list a:first-child { margin-top: 0.75rem; }
  .dropdown__list a:last-child { margin-bottom: 1rem; }
  .nav__cell--right .link-arrow .arrow { display: none; }

  .arch-hero__grid { grid-template-columns: 1fr minmax(0, 24rem) 1fr; gap: 3vw; }
  .arch-hero__side--right { padding-top: 6rem; }
  .split__text { padding: 5rem 5vw; }
  .split__media { padding: 5rem 4vw; }
  .contact__media-col, .contact__info { padding: var(--section-y) 5vw; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__top > .footer__col:nth-child(2) { border-left: 0; border-top: 1px solid rgba(234, 224, 207, 0.15); }
  .footer__top > .footer__col:nth-child(3) { border-top: 1px solid rgba(234, 224, 207, 0.15); }
  .gallery { columns: 2; }
  .others__list { grid-template-columns: 1fr; }
  .others__item + .others__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --section-y: 4.5rem; --nav-h: 4.25rem; --gutter: 5vw; }
  .nav__logo { padding: 0 1rem; }
  .nav__logo img { height: 2.5rem; }
  .nav__cell { padding: 0 var(--gutter); }
  .nav__cell--right .link-arrow { border: 0; padding: 0; }
  .ticker { padding: 0.5rem 0; }
  .ticker span { font-size: 0.875rem; padding: 0 1rem; }
  .section-head { margin-bottom: 3rem; }

  .arch-hero { padding-top: 3.5rem; }
  .arch-hero__title { font-size: clamp(2.75rem, 13vw, 4.5rem); margin-bottom: -0.28em; }
  .arch-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .arch-hero__media { width: 78vw; justify-self: center; order: -1; }
  .arch-hero__side, .arch-hero__side--left, .arch-hero__side--right { max-width: none; justify-self: stretch; text-align: center; align-items: center; padding: 0; font-size: 0.875rem; }
  .project-index { width: 100%; text-align: left; }

  .split, .contact, .project__head { grid-template-columns: 1fr; background: none; }
  .split__media, .split:nth-of-type(even) .split__media { order: -1; }
  .split__media { padding: 3.5rem var(--gutter) 0; }
  .split__media .arch { width: 72vw; }
  .split__text { padding: 2.5rem var(--gutter) 3.5rem; align-items: center; text-align: center; }
  .split__text > p:not(.label) { margin-bottom: 2rem; }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps li { padding: 3rem var(--gutter); }
  .process__steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .page-head { padding: 3.5rem var(--gutter) 3rem; }
  .contact__media { width: 60vw; }
  .contact__media-col { padding: 3rem var(--gutter) 0; }
  .contact__info { padding: 2.5rem var(--gutter) var(--section-y); text-align: center; align-items: center; }
  .contact__info > p { font-size: 1.25rem; }
  .contact__direct a { font-size: 1.875rem; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__top > * { padding: 3rem var(--gutter); }
  .footer__top > * + * { border-left: 0; border-top: 1px solid rgba(234, 224, 207, 0.15); }
  .project { padding: 4rem var(--gutter); }
  .project__head { margin-bottom: 2.5rem; gap: 1rem; }
  .project__head > div, .project__head > p { padding: 0; }
  .gallery { column-gap: 0.75rem; }
  .gallery__item { margin-bottom: 0.75rem; }
  .gallery__item figcaption { font-size: 0.9375rem; }
  .note { padding: 3.5rem var(--gutter); }
  .note p:last-child { font-size: 1.25rem; }
  .cta__inner { padding: 5rem 1.5rem 3.5rem; }
  .others__item { padding: 2rem var(--gutter); font-size: 1.5rem; }
  .lightbox figure { max-width: 100vw; }
  .lightbox img { max-height: calc(100dvh - 10rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
}
