/* Tetroyd Architects — Charcoal and bronze */
:root {
  --bg: #131313;
  --bg-2: #1a1a1a;
  --bg-3: #222222;
  --line: #2e2e2e;
  --line-2: #444444;
  --text: #edebe6;
  --muted: #a3a09a;
  --grey: #858585;
  --bronze: #b08a5f;
  --bronze-2: #c9a273;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--bronze-2); outline-offset: 3px; }
::selection { background: var(--bronze); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display, .display-sm, .statement, .slide-title, .card-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; margin: 0; }
.display em { font-style: italic; color: var(--bronze-2); }
.display-sm { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin: 0; }
.page-title { font-size: clamp(42px, 7vw, 96px); line-height: 1; }
.statement { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; margin: 0 0 1.2em; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; margin: 24px 0 0; font-weight: 300; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  background: var(--bronze); color: #141210;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border: 1px solid var(--bronze);
}
.btn:hover { background: var(--bronze-2); border-color: var(--bronze-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(237, 235, 230, .45); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
  transition: border-color .3s, color .3s;
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--bronze-2); border-color: var(--bronze-2); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(19, 19, 19, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-solid { background: rgba(19, 19, 19, .92); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 6px; }
.logo-word { width: 104px; height: auto; }
.brand-sub { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); line-height: 1; }

.la { fill: var(--text); }
.lb { fill: var(--grey); }
.lw { fill: #c4c2bd; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  white-space: nowrap;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; position: relative; transition: color .3s;
}
.site-nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--text); }
.site-nav ul a[aria-current]::after, .site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .logo-mark { width: 38px; }
  .logo-word { width: 88px; }
  .nav-toggle { display: block; z-index: 2; }
  /* Pop-up menu panel under the menu button */
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: var(--gutter); z-index: 1;
    width: min(340px, calc(100vw - 32px));
    flex-direction: column; align-items: stretch; gap: 22px;
    padding: 18px 24px 24px;
    background: rgba(24, 24, 24, .97); border: 1px solid var(--line-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li + li { border-top: 1px solid var(--line); }
  .site-nav ul a {
    display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
    font-family: var(--serif); font-size: 28px; letter-spacing: 0; text-transform: none; color: var(--text);
  }
  .site-nav ul a::after { position: static; content: '→'; height: auto; background: none; transform: none; font-family: var(--sans); font-size: 16px; color: var(--bronze-2); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current]::after { opacity: 1; }
  .site-nav ul a[aria-current] { color: var(--bronze-2); }
  .site-nav .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: rgba(19, 19, 19, .92); border-color: var(--line); }
}
/* Blurred backdrop behind the open menu */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(10, 10, 10, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ---------- Image frames with placeholders ---------- */
.frame {
  position: relative; margin: 0; overflow: hidden;
  background:
    linear-gradient(101deg, transparent 0 34%, rgba(255,255,255,.025) 34% 52%, transparent 52% 70%, rgba(255,255,255,.04) 70%),
    linear-gradient(180deg, #1d1d1d, #161616);
}
.frame::before {
  content: 'Image pending · ' attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 80%; text-align: center;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #5f5d5a; line-height: 1.6;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.frame--card { aspect-ratio: 4 / 3; }
.frame--gallery { aspect-ratio: 3 / 2; }
.frame--hero { position: absolute; inset: 0; }
.frame--hero::before { top: calc(var(--header-h) + 48px); transform: translateX(-50%); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 1.4s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide .frame img { transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .frame img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19,19,19,.78) 0%, rgba(19,19,19,.5) 38%, rgba(19,19,19,0) 70%),
    linear-gradient(180deg, rgba(19,19,19,.6) 0%, rgba(19,19,19,0) 22%, rgba(19,19,19,0) 45%, rgba(19,19,19,.9) 100%);
}
.hero-content, .proj-hero-content, .slide-caption { text-shadow: 0 1px 18px rgba(0,0,0,.45); }
@media (max-width: 960px) {
  .hero-shade { background: linear-gradient(180deg, rgba(19,19,19,.6) 0%, rgba(19,19,19,.3) 35%, rgba(19,19,19,.45) 60%, rgba(19,19,19,.92) 100%); }
}
.hero-content { position: relative; z-index: 3; padding-bottom: 150px; }
.hero-title { font-size: clamp(44px, 7vw, 104px); max-width: 14ch; }
.hero-lede { max-width: 52ch; color: #cfcdc8; font-weight: 300; font-size: clamp(16px, 1.4vw, 19px); margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.slide-caption {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 150px;
  display: flex; align-items: flex-end; gap: 18px; max-width: 360px;
  flex-wrap: wrap;
}
.slide-num { font-family: var(--serif); font-size: 44px; line-height: .9; color: var(--bronze-2); }
.slide-title { font-size: 24px; margin: 0; line-height: 1.2; }
.slide-sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.slide-caption .link-arrow { flex-basis: 100%; justify-content: flex-start; width: max-content; font-size: 12px; }

.hero-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 48px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.hero-arrow { width: 44px; height: 44px; border: 1px solid rgba(237,235,230,.35); display: grid; place-items: center; transition: background .3s, color .3s; }
.hero-arrow:hover { background: var(--text); color: var(--bg); }
.hero-count { font-size: 13px; letter-spacing: .12em; color: var(--muted); min-width: 60px; text-align: center; }
.hero-bars { display: flex; gap: 8px; margin-left: auto; }
.hero-bar { width: 56px; height: 24px; display: flex; align-items: center; }
.hero-bar span { display: block; width: 100%; height: 1px; background: rgba(237,235,230,.25); position: relative; overflow: hidden; }
.hero-bar span::after { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.hero-bar.is-active span::after { animation: bar var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-bar.is-active span::after { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero { min-height: 760px; }
  .slide-caption { left: var(--gutter); right: var(--gutter); bottom: 100px; max-width: none; gap: 12px; }
  .slide-num { font-size: 30px; }
  .slide-title { font-size: 20px; }
  .slide-sub { display: none; }
  .slide-caption .link-arrow { flex-basis: auto; margin-left: auto; }
  .hero-content { padding-bottom: 180px; }
  .frame--hero::before { display: none; }
  .hero-bars { display: none; }
  .hero-controls { bottom: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }

.intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.intro-grid > div { max-width: 760px; }
.intro-grid .muted { margin-bottom: 36px; }

.page-head { padding: calc(var(--header-h) + 40px) 0 clamp(64px, 8vw, 120px); }
.has-hero .page-head { padding-top: calc(var(--header-h) + 80px); }
.page-head-center { min-height: 70vh; display: flex; align-items: center; }
.site-header + main .page-head { padding-top: clamp(64px, 9vw, 140px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; }
.card .frame img { transition: transform 1.1s var(--ease), opacity .4s; }
.card:hover .frame img { transform: scale(1.04); }
.card-meta { display: flex; gap: 16px; padding-top: 18px; border-top: 1px solid transparent; }
.card-num { font-family: var(--serif); font-size: 22px; color: var(--bronze-2); line-height: 1.2; min-width: 28px; }
.card-title { font-size: 26px; line-height: 1.2; margin: 0; transition: color .3s; }
.card:hover .card-title { color: var(--bronze-2); }
.card-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card.is-hidden { display: none; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.filter {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--line-2); color: var(--muted);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: all .3s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Services ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.service-list li { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.service-list li:last-child { border-right: 0; margin-right: 0; }
.service-list h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 16px 0 10px; }
.service-list p { color: var(--muted); font-size: 15px; }
.service-num, .step-num { font-size: 12px; letter-spacing: .16em; color: var(--bronze-2); font-weight: 500; }
@media (max-width: 960px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list li:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .service-list li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}

.svc-rows { border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.svc-row p { color: var(--muted); max-width: 56ch; }
.tick-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.tick-list li { position: relative; padding-left: 22px; font-size: 15px; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--bronze-2); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tick-list { grid-template-columns: minmax(0, 1fr); }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.steps li { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; max-width: 34ch; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Regions / principles ---------- */
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.region { border-top: 1px solid var(--line-2); padding-top: 32px; }
.region .display-sm { margin-bottom: 16px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; }
.principle { border-top: 1px solid var(--line-2); padding-top: 28px; }
.principle .display-sm { margin-bottom: 12px; }
@media (max-width: 760px) { .regions, .principles, .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-logo { padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); background: var(--bg-2); }
.about-logo svg { width: 100%; height: auto; }
@media (max-width: 760px) { .about-hero { grid-template-columns: minmax(0, 1fr); } .about-logo { max-width: 320px; } }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 128px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-inner .display { max-width: 16ch; }
.cta-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ---------- Project page ---------- */
.proj-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; display: flex; align-items: flex-end; }
.proj-hero-content { position: relative; z-index: 3; padding-bottom: clamp(48px, 7vw, 96px); }
.proj-hero .lede { margin-top: 12px; color: #cfcdc8; }
.status {
  display: inline-block; margin-top: 24px; padding: 7px 12px; border: 1px solid rgba(201,162,115,.6);
  color: var(--bronze-2); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.proj-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.proj-text p:not(.statement) { color: var(--muted); max-width: 62ch; }
.spec { border-top: 1px solid var(--line-2); }
.spec dl { margin: 0; }
.spec dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; }
.spec-note { font-size: 12px; color: #77746f; margin-top: 16px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.gallery-item:nth-child(1) { grid-column: 1 / -1; }
.gallery-item:nth-child(1) .frame { aspect-ratio: 21 / 9; }
.gallery-item:nth-child(even):last-child { grid-column: 1 / -1; }
.gallery-item:nth-child(even):last-child .frame { aspect-ratio: 21 / 9; }
.caption { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.detail-grid > div { border-top: 1px solid var(--line-2); padding-top: 24px; }
.detail-grid .tick-list { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.detail-grid p { color: var(--muted); font-size: 15px; }
.proj-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.proj-nav-link { display: flex; flex-direction: column; }
.proj-nav-link .eyebrow { margin-bottom: 6px; }
.proj-nav-link:hover .display-sm { color: var(--bronze-2); }
.proj-nav-next { text-align: right; }
.proj-nav-all { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proj-nav-all:hover { color: var(--text); }
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-item:nth-child(1) .frame { aspect-ratio: 3 / 2; }
  .proj-nav { grid-template-columns: 1fr 1fr; }
  .proj-nav-all { display: none; }
  .proj-nav .display-sm { font-size: 20px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0;
  padding: 13px 14px; transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #66635f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-2); background: var(--bg-3); }
.field input[type="date"] { color-scheme: dark; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); cursor: pointer; transition: all .25s; }
.choice input:checked + span { border-color: var(--bronze-2); color: var(--text); background: rgba(176,138,95,.12); }
.choice input:focus-visible + span { outline: 1px solid var(--bronze-2); outline-offset: 3px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 13px; color: #77746f; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.contact-side { display: grid; gap: 32px; }
.contact-item { border-top: 1px solid var(--line-2); padding-top: 22px; }
.contact-item .eyebrow { margin-bottom: 8px; }
.contact-item a.display-sm { word-break: break-word; transition: color .3s; }
.contact-item a.display-sm:hover { color: var(--bronze-2); }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer-logo { width: 120px; height: auto; margin-bottom: 24px; }
.footer-brand p, .footer-note { color: var(--muted); font-size: 14px; }
.footer-h { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .3s; word-break: break-word; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 32px; }
.footer-base p { margin: 0; font-size: 12px; color: #77746f; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Drawings ---------- */
.drawings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.drawing { display: block; }
.drawing-sheet { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f4f2ee; padding: clamp(12px, 2vw, 24px); transition: outline-color .3s; outline: 1px solid transparent; outline-offset: 4px; }
.drawing-sheet img { max-width: 100%; max-height: 100%; object-fit: contain; }
.drawing:hover .drawing-sheet { outline-color: var(--bronze-2); }
.pdf-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
@media (max-width: 600px) { .drawings { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logo intro (first visit) ---------- */
/* Covers the page until the intro starts; fades by itself if the script never runs. */
html.intro body::before {
  content: ''; position: fixed; inset: 0; z-index: 200; background: var(--bg);
  animation: intro-failsafe .5s 3.5s forwards;
}
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-screen {
  position: fixed; inset: 0; z-index: 201; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.intro-screen.is-done { opacity: 0; visibility: hidden; }
.intro-screen svg { width: min(240px, 52vw); height: auto; overflow: visible; }
.intro-screen .la, .intro-screen .lb {
  transform-box: fill-box; opacity: 0; transform: translateY(-36px);
  animation: facet-in 1s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms);
}
.intro-screen .lw > * { opacity: 0; animation: letter-in .6s ease forwards; animation-delay: calc(800ms + var(--i) * 45ms); }
@keyframes facet-in { to { opacity: 1; transform: none; } }
@keyframes letter-in { to { opacity: 1; } }

/* ---------- Page transitions (browsers that support cross-page view transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: page-out .35s var(--ease) both; }
  ::view-transition-new(root) { animation: page-in .6s var(--ease) both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Gallery viewer ---------- */
.gallery .frame:has(img) { cursor: zoom-in; }
.gallery .frame:focus-visible { outline: 1px solid var(--bronze-2); outline-offset: 4px; }
body.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .97); color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter);
}
.lb-count { font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.lb-close { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding: 10px 0; display: inline-flex; gap: 10px; align-items: center; }
.lb-close span { font-size: 22px; line-height: 1; }
.lb-close:hover { color: var(--bronze-2); }
.lb-figure { position: absolute; inset: 64px 72px 24px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lb-img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lb-img.is-in { opacity: 1; transform: none; }
.lb-cap { font-size: 14px; color: var(--muted); text-align: center; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(237, 235, 230, .3); transition: background .3s, color .3s;
}
.lb-nav:hover { background: var(--text); color: var(--bg); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 700px) {
  .lb-figure { inset: 64px 12px 96px; }
  .lb-nav { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Header hide on scroll ---------- */
.site-header { transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
body.nav-open .site-header { transform: none; }

/* ---------- Blur-up photos ---------- */
.frame.has-img::before {
  content: ''; inset: -24px; top: -24px; left: -24px; transform: none; width: auto; max-width: none;
  background: var(--lqip, none) var(--pos, center) / cover no-repeat;
  filter: blur(18px); opacity: .9;
}
.js .frame.has-img img { opacity: 0; transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.js .frame.has-img img.is-loaded { opacity: 1; }
.js .slide .frame.has-img img { transition: opacity .9s var(--ease), transform 7s linear; }
.frame--hero.has-img::before { display: block; }

/* ---------- Image wipe reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
  .js .reveal.is-in .frame { clip-path: inset(0 0 0 0); }
  .js .reveal .frame img.is-loaded { transform: scale(1.08); }
  .js .reveal.is-in .frame img.is-loaded { transform: none; }
  .js .card.reveal.is-in:hover .frame img.is-loaded { transform: scale(1.04); }
}

/* ---------- Next project teaser ---------- */
.next-teaser { position: relative; display: flex; align-items: flex-end; min-height: 62vh; overflow: hidden; border-top: 1px solid var(--line); }
.next-teaser .frame--hero img.is-loaded { transition: opacity .9s var(--ease), transform 1.8s var(--ease); }
.next-teaser:hover .frame--hero img.is-loaded { transform: scale(1.04); }
.next-teaser-content { position: relative; z-index: 3; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 80px); }
.next-teaser-title { font-size: clamp(40px, 6vw, 88px); }
.next-arrow { display: inline-block; color: var(--bronze-2); transition: transform .5s var(--ease); }
.next-teaser:hover .next-arrow { transform: translateX(10px); }
.next-teaser-sub { color: #cfcdc8; margin: 14px 0 0; }
.next-teaser .frame--hero::after { display: none; }
.proj-nav { grid-template-columns: 1fr auto; }

/* ---------- WhatsApp and call ---------- */
.quick-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; flex-direction: column; gap: 10px; }
.qc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.qc svg { width: 26px; height: 26px; fill: currentColor; }
.qc:active { transform: scale(.94); }
.qc-wa { background: #25d366; color: #0b2e18; }
.qc-call { background: var(--text); color: var(--bg); }
@media (max-width: 900px) { .quick-contact { display: flex; } }
body.lb-open .quick-contact, body.nav-open .quick-contact { display: none; }
.btn-wa { background: #25d366; border-color: #25d366; color: #0b2e18; }
.btn-wa:hover { background: #3ee07a; border-color: #3ee07a; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Booking form states ---------- */
.form-done { border-top: 1px solid var(--line-2); padding-top: 32px; outline: none; }
.form-done .display-sm { margin-bottom: 14px; }
.form-error { color: #e8a598; font-size: 14px; margin: 0; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Booking confirmation pop-up ---------- */
.confirm {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); overflow: auto;
}
.confirm::backdrop { background: rgba(8, 8, 8, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.confirm[open] { animation: confirm-in .5s var(--ease); }
@keyframes confirm-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.confirm-card { padding: clamp(28px, 5vw, 44px); }
.confirm-card .display-sm { margin-bottom: 12px; }
.confirm-tick { display: block; width: 56px; height: 56px; margin-bottom: 22px; }
.confirm-tick svg { width: 100%; height: 100%; fill: none; stroke: var(--bronze-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: tick-draw .8s var(--ease) .15s forwards; }
.confirm-tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: tick-draw .5s var(--ease) .75s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.confirm-details { margin: 22px 0 0; border-top: 1px solid var(--line); }
.confirm-details > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm-details dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.confirm-details dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 480px) {
  .confirm-details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .confirm-actions .btn { flex: 1 1 100%; }
}

/* ---------- Projects toolbar, list view and hover preview ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-top: 48px; }
.toolbar .filters { margin-top: 0; }
.view-toggle { display: flex; border: 1px solid var(--line-2); }
.view-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .3s;
}
.view-btn svg { width: 13px; height: 13px; fill: currentColor; }
.view-btn + .view-btn { border-left: 1px solid var(--line-2); }
.view-btn:hover { color: var(--text); }
.view-btn.is-active { background: var(--text); color: var(--bg); }
.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); display: none; }
[data-view="list"] .project-list { display: block; }
[data-view="list"] .project-grid { display: none; }
.pl-item.is-hidden { display: none; }
.pl-row {
  display: grid; grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 32px; align-items: baseline; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s;
}
.pl-num { font-family: var(--serif); font-size: 22px; color: var(--bronze-2); }
.pl-name { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; transition: color .3s; }
.pl-loc, .pl-cat { font-size: 14px; color: var(--muted); }
.pl-arrow { color: var(--bronze-2); opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease); justify-self: end; }
.pl-row:hover, .pl-row:focus-visible { padding-left: 14px; }
.pl-row:hover .pl-name, .pl-row:focus-visible .pl-name { color: var(--bronze-2); }
.pl-row:hover .pl-arrow, .pl-row:focus-visible .pl-arrow { opacity: 1; transform: none; }
.pl-preview {
  position: fixed; left: 0; top: 0; z-index: 40; margin: 0; pointer-events: none;
  width: 340px; aspect-ratio: 4 / 3; margin-left: 28px; margin-top: -120px; overflow: hidden; background: var(--bg-2);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pl-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .8s var(--ease); }
.pl-preview.is-on { opacity: 1; }
.pl-preview.is-on img { transform: none; }
@media (hover: none), (max-width: 760px) { .pl-preview { display: none; } }
@media (max-width: 760px) {
  .pl-row { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 4px 12px; padding: 20px 0; }
  .pl-name { grid-column: 2; }
  .pl-arrow { grid-column: 3; grid-row: 1; opacity: 1; transform: none; }
  .pl-loc { grid-column: 2; }
  .pl-cat { display: none; }
  .pl-row:hover, .pl-row:focus-visible { padding-left: 0; }
}

/* ---------- Location ticker ---------- */
.ticker { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; user-select: none; }
.ticker-track { display: flex; flex-shrink: 0; align-items: center; gap: 28px; padding-right: 28px; animation: ticker 60s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); white-space: nowrap; color: var(--muted); }
.ticker-track .ticker-dot { color: var(--bronze-2); font-size: clamp(20px, 2vw, 28px); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { flex-wrap: wrap; justify-content: center; }
  .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; }
  .ticker-track[aria-hidden="true"] { display: none; }
}

/* ---------- Reading progress and back to top ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--bronze-2); transform-origin: left; transform: scaleX(0); }
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .4s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--text); color: var(--bg); }
@media (max-width: 900px) { .to-top { display: none; } }
body.lb-open .to-top { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
