/*
Theme Name: EngHauss Architectural Design
Theme URI: https://enghaussgroup.com/
Author: EngHauss Architectural Design
Author URI: https://enghaussgroup.com/
Description: Studio theme for EngHauss Architectural Design — architecture, interiors, lighting and 3D visualization. Editable block content, a Projects portfolio, a native inquiry form, self-hosted fonts and a one-click site setup under Appearance > EngHauss Setup.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enghauss
Tags: portfolio, custom-logo, custom-menu, featured-images, block-patterns, translation-ready, wide-blocks
*/

/* ---------------------------------------------------------------
 * Self-hosted fonts (SIL Open Font License, see LICENSES.txt).
 * No request leaves the site for typography.
 * --------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/Manrope-VariableFont_wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Literata72pt-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Literata72pt-RegularItalic.woff2') format('woff2');
}

:root {
  --ink: #17191c;
  --ink-soft: #2a2d31;
  --paper: #f7f4ef;
  --white: #ffffff;
  --stone: #ebe5db;
  --line: #d8d0c3;
  --muted: #5e5a54;
  --bronze: #b0802f;        /* logo gold: rules, marks, large display only */
  --bronze-text: #85601c;   /* darkened for body-size text on paper (5.3:1) */
  --bronze-on-dark: #d9ad62;
  --serif: 'Literata', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--bronze-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.12; color: var(--ink); font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
blockquote { margin: 2em 0; padding-left: 1.4em; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); }
em, i { font-style: italic; }
h1 em, h2 em { font-family: var(--serif); color: var(--bronze-text); }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 10000; background: var(--ink); color: var(--white); padding: 12px 18px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: #d9d6d0; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--bronze-on-dark); }
.section--rule { border-top: 1px solid var(--line); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--bronze); flex-shrink: 0; }
.section--dark .eyebrow { color: #a9a59e; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.section--dark .lede { color: #d9d6d0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p:last-child { margin: 0; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .wp-element-button, button[type="submit"], input[type="submit"] {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 17px 28px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--bronze-text); border-color: var(--bronze-text); color: var(--white); }
.btn--ghost, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--bronze-on-dark); border-color: var(--bronze-on-dark); color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: .74rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--bronze); padding-bottom: 6px; }
.link-arrow:hover { color: var(--bronze-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(247, 244, 239, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.32rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.brand-name span { color: var(--bronze); }
.brand-sub { margin-top: 7px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.custom-logo-link { display: block; }
/* The logo file carries generous empty space around the artwork, so it is set
   taller than the header and pulled back in with negative margins. */
.custom-logo { max-height: 116px; width: auto; margin: -16px 0 -16px -26px; }
@media (max-width: 560px) { .custom-logo { max-height: 92px; margin: -11px 0 -11px -20px; } }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav > div > ul { display: flex; align-items: center; gap: 34px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a { color: var(--bronze-text); }
.main-nav .sub-menu { position: absolute; top: 100%; left: -22px; min-width: 270px; background: var(--white); border: 1px solid var(--line); padding: 10px 22px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 12px 0; border-bottom: 1px solid var(--stone); letter-spacing: .08em; }
.main-nav .sub-menu li:last-child a { border-bottom: 0; }
.header-cta { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-phone { font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 10px; cursor: pointer; color: var(--ink); line-height: 0; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 28px; max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul, .main-nav > div > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 18px; min-width: 0; }
  .main-nav .sub-menu a { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .header-cta .btn { display: none; } .header-inner { min-height: 70px; } .brand-name { font-size: 1.12rem; } }

/* ---------- Hero (front page) ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(90vh, 900px); background: var(--ink); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 96px 96px; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: hero-settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,17,.84) 0%, rgba(14,15,17,.56) 42%, rgba(14,15,17,.08) 78%), linear-gradient(0deg, rgba(14,15,17,.78) 0%, rgba(14,15,17,0) 42%); }
/* On a phone the text spans the full width, so the shade has to as well. */
@media (max-width: 760px) { .hero::after { background: linear-gradient(0deg, rgba(14,15,17,.9) 0%, rgba(14,15,17,.6) 100%); } }
.hero-inner { width: 100%; padding-top: clamp(96px, 16vh, 180px); }
.hero h1 { color: var(--white); font-size: clamp(2.7rem, 6.2vw, 5.4rem); max-width: 13ch; margin-bottom: 28px; text-wrap: balance; }
.hero h1 em { color: var(--bronze-on-dark); }
.hero .eyebrow { color: #e3dfd8; }
.hero .eyebrow::before { background: var(--bronze-on-dark); }
.hero .lede { color: #ece9e3; margin-bottom: 38px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 9vh, 104px) 0 0; border-top: 1px solid rgba(255,255,255,.28); }
.hero-facts > div { padding: 24px 28px 30px 0; border-right: 1px solid rgba(255,255,255,.18); }
.hero-facts > div + div { padding-left: 28px; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #c9c5be; margin-bottom: 8px; }
.hero-facts dd { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); max-width: 18ch; margin-bottom: 0; text-wrap: balance; }
.page-hero .lede { margin: 26px 0 0; max-width: 60ch; }
.breadcrumbs { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--bronze-text); }
.breadcrumbs .sep { margin: 0 10px; color: var(--bronze); }
.page-hero--image { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(400px, 62vh, 680px); border: 0; background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero--image .container { width: 100%; }
.page-hero--image .page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero--image .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: hero-settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
/* Heavy enough that white type holds on a bright photograph (a white house, a white kitchen). */
.page-hero--image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.66) 50%, rgba(14,15,17,.34) 100%); }
.page-hero--image h1 { color: var(--white); }
.page-hero--image .lede { color: #ece9e3; }
.page-hero--image .breadcrumbs, .page-hero--image .breadcrumbs a { color: #d6d2cb; }
.page-hero--image .breadcrumbs .sep { color: var(--bronze-on-dark); }

/* ---------- Image + text ---------- */
.media-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.media-frame { position: relative; aspect-ratio: 5 / 4; background: var(--stone); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--bronze); z-index: -1; }
.media-frame .drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-split .statement { margin-bottom: 28px; max-width: none; }
/* ---------- Statement ---------- */
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.9vw, 2.35rem); line-height: 1.32; letter-spacing: -0.01em; max-width: 26ch; margin: 0; }
.statement-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 80px; align-items: start; }
.statement-grid .statement { max-width: none; }

/* ---------- Service cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.service-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: clamp(380px, 38vw, 520px); padding: 30px 28px; background: var(--ink); color: var(--white); text-decoration: none; overflow: hidden; }
.service-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.service-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.5) 46%, rgba(14,15,17,.1) 100%); transition: background .4s; }
.service-card:hover { color: var(--white); }
.service-card:hover img { transform: scale(1.07); }
.service-card .service-num { font-family: var(--serif); font-size: 1rem; color: var(--bronze-on-dark); margin-bottom: auto; }
.service-card .service-title { font-family: var(--serif); font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.15; color: var(--white); margin: 0 0 12px; }
.service-card .service-text { font-size: .92rem; line-height: 1.5; color: #e1ded8; margin: 0 0 20px; }
.service-card .service-more { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.service-card .service-more svg { width: 16px; height: 16px; color: var(--bronze-on-dark); transition: transform .25s; }
.service-card:hover .service-more svg { transform: translateX(5px); }
.service-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-cards, .service-cards--2 { grid-template-columns: 1fr; } .service-card { min-height: 320px; } }

/* ---------- CTA with photograph ---------- */
.cta-photo { position: relative; isolation: isolate; background: var(--ink); color: var(--white); overflow: hidden; }
.cta-photo .cta-photo-bg { position: absolute; inset: 0; z-index: -2; }
.cta-photo .cta-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(14,15,17,.8); }
.cta-photo h2 { color: var(--white); }
.cta-photo .eyebrow { color: #d6d2cb; }

/* ---------- Reveal on scroll (only when JavaScript is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; } }
.js .reveal-2 { transition-delay: .1s; } .js .reveal-3 { transition-delay: .2s; } .js .reveal-4 { transition-delay: .3s; }
/* ---------- Project grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.project-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { display: block; text-decoration: none; color: var(--ink); }
.project-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-media .drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ink); margin-top: 18px; }
.project-card-title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; margin: 0; }
.project-card-meta { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.project-grid--feature .project-card:nth-child(3n+1) { grid-column: 1 / -1; }
.project-grid--feature .project-card:nth-child(3n+1) .project-card-media { aspect-ratio: 21 / 9; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter-bar a { padding: 10px 18px; border: 1px solid var(--line); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.filter-bar a:hover, .filter-bar a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.empty-state { border: 1px solid var(--line); padding: clamp(32px, 5vw, 64px); text-align: center; background: var(--white); }
.empty-state p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.process li { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); counter-increment: step; }
.process li + li { padding-left: 24px; }
.process li:last-child { border-right: 0; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--bronze-text); margin-bottom: 34px; }
.process h3 { font-size: 1.08rem; margin-bottom: 10px; }
.process p { font-size: .93rem; color: var(--muted); margin: 0; }
.section--dark .process { border-top-color: #4a4d52; }
.section--dark .process li { border-right-color: #3a3d42; }
.section--dark .process li::before { color: var(--bronze-on-dark); }
.section--dark .process p { color: #b5b1aa; }

/* ---------- Studio band ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: start; }
.credential-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #4a4d52; }
.credential-list li { padding: 20px 0; border-bottom: 1px solid #3a3d42; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.credential-list svg { width: 20px; height: 20px; color: var(--bronze-on-dark); margin-top: 4px; }

/* ---------- Content (pages, posts, blocks) ---------- */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content > h2 { margin-top: 1.6em; margin-bottom: .6em; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.entry-content > h3 { margin-top: 1.6em; margin-bottom: .5em; }
.entry-content > .alignwide { max-width: var(--maxw); width: calc(100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content li { margin-bottom: .55em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li { position: relative; padding-left: 28px; }
.entry-content ul > li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--bronze); }
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { border-radius: 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.entry-content .wp-block-columns { gap: 40px; }
.entry-content .wp-block-column > h3:first-child { padding-top: 22px; border-top: 1px solid var(--ink); }
.entry-content .is-style-lede, .entry-content .has-large-font-size { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.entry-content--wide { max-width: none; }
.alignleft { float: left; margin: .4em 2em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { display: revert; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .entry-content { margin: 0; max-width: 760px; }
.aside-card { position: sticky; top: 116px; background: var(--white); border: 1px solid var(--line); padding: 32px; }
.aside-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.aside-card p { font-size: .95rem; color: var(--muted); }
.aside-card .btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.aside-list { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.aside-list li { margin-bottom: 12px; font-size: .95rem; }
.aside-list a { color: var(--ink); text-decoration: none; }
.aside-list a:hover { color: var(--bronze-text); }
.aside-label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* ---------- Project single ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec > div { padding: 22px 24px 24px 0; }
.spec dt { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.spec dd { margin: 0; font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.post-nav a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.post-nav a:hover { color: var(--bronze-text); }
.post-nav span { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-nav .next { text-align: right; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.post-card a { text-decoration: none; color: var(--ink); }
.post-card-media { aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; margin-bottom: 20px; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .95rem; }
.entry-meta { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }
.page-numbers { display: inline-flex; min-width: 46px; height: 46px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.page-numbers.current, a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.comments-area { max-width: 760px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-details { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-details li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-details .aside-label { margin-bottom: 6px; }
.contact-details a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--bronze-text); }
.section--dark .contact-details, .section--dark .contact-details li { border-color: #3a3d42; }
.section--dark .contact-details a { color: var(--white); }
.section--dark .aside-label { color: #a9a59e; }

.inquiry-form { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); color: var(--ink); }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry-form .field { margin-bottom: 20px; }
.inquiry-form label, .comment-form label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
textarea { min-height: 150px; resize: vertical; }
.inquiry-form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.form-notice { padding: 16px 20px; margin-bottom: 24px; border-left: 3px solid var(--bronze); background: var(--stone); font-weight: 600; }
.form-notice--error { border-left-color: #a12a1e; background: #f6e4e1; }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form label { flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { margin: 0; max-width: 22ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b5b1aa; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .95rem; }
.site-footer a { color: #e6e3de; text-decoration: none; }
.site-footer a:hover { color: var(--bronze-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid #3a3d42; }
.site-footer .brand { color: var(--white); margin-bottom: 22px; }
.site-footer .brand-sub { color: #a9a59e; }
.site-footer .brand-name span { color: var(--bronze-on-dark); }
.footer-title { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #a9a59e; margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer .sub-menu { display: none; }
.footer-credential { margin-top: 22px; padding-top: 18px; border-top: 1px solid #3a3d42; font-size: .85rem; color: #a9a59e; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: .82rem; color: #a9a59e; }
.footer-bottom a { color: #a9a59e; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .section-head, .statement-grid, .studio-grid, .contact-grid, .split, .cta-band, .media-split { grid-template-columns: 1fr; }
  .media-frame { margin-right: 20px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 20px 26px 0; }
  .process li + li { padding-left: 0; }
  .process li::before { margin-bottom: 16px; }
  .section--dark .process li { border-bottom-color: #3a3d42; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-list, .project-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div, .hero-facts > div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero { min-height: 0; }
  .hero-facts > div:last-child { border-bottom: 0; }
  .project-grid, .post-list, .project-grid--3, .process, .footer-grid, .post-nav { grid-template-columns: 1fr; }
  .project-grid--feature .project-card:nth-child(3n+1) .project-card-media { aspect-ratio: 4 / 3; }
  .project-card-body { flex-direction: column; gap: 6px; }
  .project-card-meta { text-align: left; white-space: normal; }
  .inquiry-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .post-nav .next { text-align: left; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
