:root {
  --ink: #171512;
  --ink-soft: #2a2621;
  --muted: #746a5f;
  --paper: #f5efe5;
  --paper-deep: #eadfcc;
  --panel: #fffaf1;
  --stone: #d8cbb8;
  --line: rgba(78, 67, 55, 0.18);
  --gold: #b88a3d;
  --bronze: #7d5734;
  --green: #263b32;
  --error: #7a2116;
  --success: #173e2b;
  --radius: 10px;
  --shadow: 0 28px 90px rgba(23, 21, 18, 0.14);
  --shadow-soft: 0 16px 48px rgba(23, 21, 18, 0.1);
  --container: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 138, 61, 0.13), transparent 28rem),
    linear-gradient(180deg, #fbf6ed 0%, var(--paper) 42%, #efe4d3 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid rgba(184, 138, 61, 0.72);
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  max-width: 1000px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
}

h2 {
  max-width: 900px;
  font-size: clamp(2rem, 5vw, 4.35rem);
}

h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
}

p {
  margin: 0 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(18px, calc((100% - 1240px) / 2));
  background: rgba(246, 240, 230, 0.82);
  border-bottom: 1px solid rgba(78, 67, 55, 0.14);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  font-weight: 850;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff9ec;
  background: linear-gradient(145deg, var(--green), #121b18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.6rem;
  box-shadow: 0 14px 26px rgba(23, 21, 18, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 249, 236, 0.28);
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a,
.footer-links a,
.text-link {
  position: relative;
}

.site-nav a::after,
.footer-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.site-nav a:hover::after,
.footer-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.92);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(660px, 92dvh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #15130f;
}

.hero::after {
  content: "";
  position: absolute;
  left: max(18px, calc((100% - 1180px) / 2));
  bottom: clamp(34px, 8vw, 86px);
  width: min(45vw, 460px);
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 138, 61, 0.95), transparent);
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(16, 14, 12, 0.94) 0%, rgba(16, 14, 12, 0.7) 39%, rgba(16, 14, 12, 0.18) 76%),
    linear-gradient(0deg, rgba(16, 14, 12, 0.82) 0%, transparent 42%),
    image-set(url("../img/hero-stucatura.webp") type("image/webp"), url("../img/hero-stucatura.png") type("image/png"));
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 140px) 0 clamp(52px, 8vw, 96px);
  color: #fff7e8;
}

.hero-kicker,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker {
  margin-bottom: 24px;
}

.hero-kicker span,
.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  color: #eadbc7;
  background: rgba(255, 247, 232, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  text-wrap: balance;
}

.hero-quote {
  position: relative;
  max-width: 750px;
  margin: 20px 0 24px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  color: #ecdcca;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.9vw, 1.58rem);
  line-height: 1.35;
}

.hero-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #fff8eb;
  background: linear-gradient(135deg, #c79a4e, #8c6334);
  box-shadow: 0 14px 30px rgba(75, 48, 18, 0.18);
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(75, 48, 18, 0.24);
}

.button.secondary {
  color: #fff7e8;
  background: rgba(255, 247, 232, 0.08);
  border-color: rgba(255, 247, 232, 0.45);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  color: var(--bronze);
  font-weight: 900;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(62px, 9vw, 116px) 0;
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.section-ornament {
  position: relative;
}

.section-ornament::before {
  content: "";
  position: absolute;
  top: clamp(34px, 7vw, 86px);
  right: 0;
  width: min(34vw, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 61, 0.24);
  border-radius: 999px;
  opacity: 0.65;
  pointer-events: none;
}

.intro-grid,
.two-col,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.steps article,
.check-panel,
.form-card,
.admin-card,
.contact-panel {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.steps article::before,
.check-panel::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.steps span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
}

.service-band {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(38, 59, 50, 0.08), transparent 42%),
    linear-gradient(180deg, #e9ddcc, #f4ede2);
  border-block: 1px solid rgba(78, 67, 55, 0.12);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.portfolio-card,
.post-list a {
  position: relative;
  display: block;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(78, 67, 55, 0.16);
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card {
  min-height: 320px;
  padding: 26px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 61, 0.28);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card:hover,
.portfolio-card:hover,
.post-list a:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 138, 61, 0.38);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: translate(-16px, -16px);
  opacity: 0.9;
}

.service-card span,
.portfolio-card span,
.post-list span,
.meta-list dt {
  display: block;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-top: 38px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.service-card p {
  color: var(--muted);
}

.portfolio-section {
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.portfolio-card {
  overflow: hidden;
  color: var(--ink);
}

.portfolio-card:nth-child(5n + 1) {
  transform: translateY(24px);
}

.portfolio-card figure {
  margin: 0;
  overflow: hidden;
  background: #2a2520;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.portfolio-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.04) contrast(1.04);
}

.portfolio-card > div {
  padding: 22px;
}

.portfolio-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.1vw, 1.75rem);
}

.portfolio-card p {
  color: var(--muted);
}

.journal-strip {
  border-top: 1px solid var(--line);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-list a {
  padding: clamp(20px, 3vw, 30px);
}

.post-list strong {
  display: block;
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.2vw, 1.9rem);
  line-height: 1.18;
}

.post-list p {
  max-width: 820px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  width: min(1040px, calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 130px) 0 clamp(26px, 5vw, 54px);
}

.page-hero::after {
  content: "";
  display: block;
  width: min(240px, 52vw);
  height: 1px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.page-hero + .section {
  padding-top: clamp(30px, 5vw, 58px);
}

.service-hero,
.contact-hero {
  width: var(--container);
}

.service-detail {
  border-top: 1px solid var(--line);
}

.check-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.cta h2 {
  max-width: 780px;
}

.case-study {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 70px);
}

.case-content { width: 100%; max-width: 860px; margin-inline: auto; }
.case-media .image-slider { max-width: 1100px; margin-inline: auto; }

.case-media { position: static; align-self: start; }

/* Image galleries share a fixed frame; the photographs remain fully visible. */
.image-slider { min-width: 0; width: 100%; margin: 0 0 32px; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 6px; background: #e4e1dc; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slider-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; box-shadow: none; border-radius: 0; }
.slider-slide figcaption, .content-image figcaption { padding: 12px 16px; color: #393632; font-size: 0.95rem; overflow-wrap: anywhere; }
.slider-controls { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 12px; }
.slider-controls button, .media-actions button { min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #24221e; cursor: pointer; padding: 8px 12px; }
.slider-controls button:hover, .media-actions button:hover { background: #e4e1dc; }
.slider-controls button { font-size: 1.35rem; }
.slider-controls output { min-width: 68px; text-align: center; font-variant-numeric: tabular-nums; }
.content-image { margin: 30px 0; }
.content-image img { display: block; max-width: 100%; width: 100%; height: auto; border-radius: 6px; }
.media-editor { min-width: 0; padding: 24px 0; border-block: 1px solid var(--line); }
.media-editor h2 { font-size: 1.6rem; }
.media-upload-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.media-item { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: grid; gap: 12px; background: #fff; }
.media-item > img { width: 100%; height: 180px; object-fit: contain; background: #e4e1dc; border-radius: 4px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-actions button { font-size: 0.85rem; font-weight: 600; }
.media-actions button:disabled { opacity: 0.4; cursor: default; }
.media-status:empty { display: none; }
.media-status { overflow-wrap: anywhere; }
[data-media-upload] { max-width: 100%; font-size: 0.9rem; }
[data-slider]:focus-visible, .media-actions button:focus-visible { outline: 3px solid #8a6635; outline-offset: 4px; }
@media (max-width: 600px) {
  .media-grid, .media-upload-actions { grid-template-columns: minmax(0, 1fr); }
}

.case-media img,
.article-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-content h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.meta-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.meta-list div {
  min-width: min(210px, 100%);
  padding: 14px 16px;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta-list dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.article {
  width: min(860px, calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

.article h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 5.4vw, 5rem);
}

.article-image {
  margin-bottom: 34px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-grid {
  align-items: stretch;
}

.contact-panel a {
  color: var(--bronze);
  font-weight: 850;
}

.form-card,
.admin-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(78, 67, 55, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(184, 138, 61, 0.72);
  box-shadow: 0 0 0 4px rgba(184, 138, 61, 0.12);
}

.success,
.error {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 850;
}

.success {
  color: var(--success);
  background: #dff2e5;
}

.error {
  color: var(--error);
  background: #ffe2dc;
}

.site-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.5fr) minmax(220px, 0.55fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(42px, 7vw, 78px) max(18px, calc((100% - 1180px) / 2));
  color: #efe5d5;
  background:
    linear-gradient(135deg, rgba(184, 138, 61, 0.16), transparent 44%),
    #15130f;
}

.footer-brand strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.footer-brand p {
  max-width: 680px;
  color: #cbbba6;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 11px;
  font-style: normal;
}

.footer-contact {
  color: #cbbba6;
}

.footer-contact a {
  color: #fff2df;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin {
  min-height: 100vh;
  background: #f4efe7;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 22px;
  background: #171512;
  color: #fffaf0;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.admin-sidebar nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #d8ccbb;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  margin-left: 250px;
  padding: 34px;
}

.admin-main.simple,
.install {
  margin: 0;
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-login,
.install-box {
  width: min(520px, calc(100% - 36px));
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stats-grid a {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats-grid strong {
  display: block;
  font-size: 38px;
}

.admin-table {
  display: grid;
  gap: 14px;
}

.admin-table article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table span,
.muted {
  color: var(--muted);
}

.row-actions {
  margin-top: 12px;
}

.row-actions a,
.row-actions button {
  border: 0;
  padding: 0;
  color: var(--bronze);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-form.wide {
  max-width: 1040px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row:has(> label:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portfolio-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .two-col,
  .contact-grid,
  .case-study,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .case-media {
    position: static;
  }

  .service-card {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100% - 62px);
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 60;
    display: grid;
    gap: 0;
    padding: 8px;
    background: #fffaf1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 7px;
  }

  .site-nav a:hover {
    background: rgba(184, 138, 61, 0.12);
  }

  .hero {
    min-height: 680px;
  }

  .hero-bg {
    background-position: 61% center;
  }

  .hero-content {
    padding-top: 112px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    margin-top: 28px;
  }

  .steps,
  .service-grid,
  .portfolio-grid,
  .stats-grid,
  .form-row,
  .form-row:has(> label:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .portfolio-card:nth-child(5n + 1) {
    transform: none;
  }

  .section-heading,
  .cta,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta .button {
    width: 100%;
  }

  .admin-sidebar {
    position: static;
    width: auto;
  }

  .admin-main {
    margin-left: 0;
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8.5vw, 2.25rem);
  }

  .hero-kicker span,
  .hero-meta span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .service-card,
  .portfolio-card > div,
  .post-list a,
  .steps article,
  .check-panel,
  .form-card,
  .contact-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .portfolio-card:hover img,
  .button:hover,
  .service-card:hover,
  .portfolio-card:hover,
  .post-list a:hover {
    transform: none;
  }
}

/* Public photography: a bounded stage, independent of the image's aspect ratio. */
.article, .case-study { width: min(1040px, calc(100% - 48px)); padding: 42px 0 72px; }
.case-study { display: block; }
.detail-heading { max-width: 860px; margin: 0 auto 28px; }
.detail-heading h1 { font-size: 3.1rem; line-height: 1.1; margin: 10px 0 16px; overflow-wrap: anywhere; }
.detail-intro { max-width: 760px; margin: 0 0 20px; font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); }
.detail-heading .meta-list { margin-bottom: 0; }
.detail-heading .meta-list div { padding: 0 20px 0 0; border: 0; background: transparent; }
.article > p, .article > .content-image { max-width: 860px; margin-inline: auto; }
.photo-gallery { margin: 0 auto 36px; }
.gallery-stage { position: relative; height: min(52svh, 520px); min-height: 260px; background: #e9e9e5; border-radius: 6px; overflow: hidden; }
.photo-gallery .slider-track { width: 100%; height: 100%; background: transparent; border-radius: 0; }
.photo-gallery .slider-slide { height: 100%; }
.gallery-open { position: relative; display: block; width: 100%; height: 100%; }
.photo-gallery .gallery-open img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; image-orientation: from-image; border-radius: 0; box-shadow: none; }
.gallery-enlarge { position: absolute; bottom: 14px; right: 14px; background: rgba(255,255,255,.94); color: #252724; padding: 8px 12px; font: 600 .8rem var(--sans); border-radius: 4px; }
.gallery-arrow { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 1px solid #c9cbc5; background: rgba(255,255,255,.93); color: #252724; border-radius: 50%; cursor: pointer; font-size: 1.3rem; padding: 0; }
.gallery-arrow:hover { background: #fff; border-color: #827555; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-meta { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin: 10px 0; font-size: .9rem; }
.gallery-meta p { margin: 0; overflow-wrap: anywhere; color: var(--muted); min-height: 1.4em; }
.gallery-meta output { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: #41463f; }
.gallery-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 3px 2px 8px; scrollbar-width: thin; }
.gallery-thumbnails button { width: 82px; height: 62px; flex: 0 0 82px; padding: 3px; background: #fff; border: 1px solid #bfc2b9; border-radius: 4px; cursor: pointer; }
.gallery-thumbnails button[aria-pressed="true"] { border: 2px solid #78643d; padding: 2px; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.content-image .inline-image-open { background: #e9e9e5; border-radius: 6px; overflow: hidden; }
.content-image .inline-image-open img { width: auto; height: auto; max-width: 100%; max-height: 820px; margin: auto; object-fit: contain; image-orientation: from-image; }
.photo-lightbox { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; padding: 0; background: #171a17; color: #fff; }
.photo-lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox-layout { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 16px 24px; gap: 12px; }
.lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-header p { margin: 0; font-size: .9rem; }
.lightbox-close { margin-left: auto; border: 1px solid #6d736b; background: transparent; color: #fff; border-radius: 4px; min-height: 44px; padding: 8px 16px; cursor: pointer; }
.lightbox-image { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox-image img { display: block; width: 100%; height: 100%; object-fit: contain; image-orientation: from-image; user-select: none; }
.lightbox-footer { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 14px; }
.lightbox-footer p { grid-column: 2; grid-row: 1; min-width: 0; text-align: center; font-size: .9rem; margin: 0; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.lightbox-footer button:first-child { grid-column: 1; grid-row: 1; }
.lightbox-footer button:last-child { grid-column: 3; grid-row: 1; }
.lightbox-footer.is-single { grid-template-columns: minmax(0,1fr); }
.lightbox-footer.is-single p { grid-column: 1; }
.lightbox-footer button { width: 44px; height: 44px; border: 1px solid #6d736b; background: transparent; color: white; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.gallery-open:focus-visible, .gallery-thumbnails button:focus-visible, .gallery-arrow:focus-visible, .photo-lightbox button:focus-visible { outline: 3px solid #aa8b51; outline-offset: 3px; }

/* Admin photography keeps uploads, editorial choices and publication separate. */
.admin-heading h1 { font-size: 2.2rem; line-height: 1.15; margin: 0; }
.media-editor { padding-block: 24px; }
.media-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; }
.media-heading h2 { font: 700 1.35rem var(--sans); margin: 0 0 8px; }
.media-heading p { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.media-heading > span { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }
.media-dropzone { display: grid; place-items: center; gap: 10px; padding: 24px 16px; border: 2px dashed #bfc5ba; background: #f5f7f2; text-align: center; border-radius: 6px; margin-bottom: 22px; }
.media-dropzone.is-dragover { border-color: #7b693e; background: #edf0e7; }
.media-dropzone strong { font-size: 1rem; }
.media-dropzone p { margin: 0; font-size: .9rem; color: #51564e; }
.media-dropzone small { font-size: .78rem; color: #51564e; line-height: 1.5; }
.media-dropzone .button { min-height: 44px; padding: 10px 22px; }
.media-grid { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.media-item { padding: 12px; gap: 12px; box-shadow: 0 2px 8px rgba(32,35,29,.035); }
.media-item.is-cover { border-color: #837047; }
.media-card-top { display: flex; gap: 10px; align-items: center; min-height: 26px; }
.media-order { font-size: .85rem; color: #53594d; }
.cover-badge { background: #e9eee0; color: #35452a; padding: 3px 8px; font-size: .75rem; font-weight: 700; border-radius: 3px; }
.media-drag-handle { margin-left: auto; cursor: grab; color: #767b71; font-size: 1.2rem; }
.media-item.is-dragging { opacity: .5; }
.media-item.is-drop-target { outline: 2px solid #837047; outline-offset: 3px; }
.media-item > .media-preview { height: 172px; object-fit: cover; background: #e9e9e5; }
.media-primary-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.media-primary-actions button, .media-actions button { background: #fff; color: #30372b; border: 1px solid #c8cec0; border-radius: 4px; min-height: 44px; padding: 8px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.media-primary-actions [data-image-cover] { flex: 1 1 100%; }
.media-primary-actions [aria-pressed="true"] { background: #e9eee0; border-color: #8b9979; }
.media-primary-actions [data-image-remove] { color: #93423c; }
.media-description summary { min-height: 44px; padding: 10px 0; font-size: .82rem; font-weight: 600; cursor: pointer; }
.media-description label, .media-placement { font-size: .8rem; margin: 8px 0 0; }
.media-item input, .media-item select { font-size: .86rem; padding: 10px; min-height: 44px; }
.media-actions { gap: 6px; }
.media-actions [data-image-insert] { flex: 1 1 100%; }
.media-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 16px 0; }
.upload-queue:empty { display: none; }
.upload-file { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; background: #f5f7f2; border: 1px solid #d4dacb; border-radius: 4px; }
.upload-file > img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.upload-file > div:first-of-type { grid-column: 2; grid-row: 1; min-width: 0; }
.upload-file > div:last-child { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.upload-file strong { display: block; overflow-wrap: anywhere; font-size: .82rem; }
.upload-file p { margin: 4px 0; font-size: .78rem; color: #51564e; }
.upload-file progress { width: 100%; height: 8px; accent-color: #76845b; }
.upload-file button { border: 1px solid #c8cec0; background: #fff; min-height: 44px; padding: 8px; border-radius: 4px; font-size: .78rem; cursor: pointer; }
.upload-file.has-error { border-color: #bd8f86; }
.upload-file.has-error p { color: #93423c; }
.media-save-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: #f3f1e9; border-top: 1px solid var(--line); z-index: 5; }
.media-save-bar p { margin: 0; font-size: .85rem; color: #51564e; }
.media-save-bar .button { flex: 0 0 auto; min-height: 44px; }
.media-item button:focus-visible, .media-description summary:focus-visible { outline: 3px solid #837047; outline-offset: 3px; }
.unsaved-dialog { width: min(460px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #c8cec0; border-radius: 6px; background: #fff; color: #30372b; }
.unsaved-dialog::backdrop { background: rgba(20,25,18,.6); }
.unsaved-dialog h2 { font: 700 1.35rem var(--sans); margin: 0 0 12px; }
.unsaved-dialog p { font-size: .95rem; line-height: 1.6; }
.unsaved-dialog > div { display: flex; flex-wrap: wrap; gap: 10px; }
.unsaved-dialog button { min-height: 44px; padding: 10px 14px; border: 1px solid #bdc6b3; background: #fff; color: #30372b; border-radius: 4px; cursor: pointer; }
.unsaved-dialog [data-stay] { background: #e9eee0; }
.media-editor [hidden] { display: none !important; }
.photo-lightbox [hidden] { display: none !important; }
.post-list .post-preview.has-photo { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 24px; align-items: center; }
.post-cover { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; }
@media (max-width: 1250px) { .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .article, .case-study { width: calc(100% - 32px); padding: 26px 0 48px; }
  .detail-heading { margin-bottom: 20px; }
  .detail-heading h1 { font-size: 2.1rem; }
  .detail-intro { font-size: 1rem; }
  .gallery-stage { height: min(38svh,300px); min-height: 200px; }
  .gallery-enlarge { right: 8px; bottom: 8px; font-size: .7rem; padding: 6px 8px; }
  .gallery-arrow { width: 40px; height: 44px; }
  .gallery-prev { left: 6px; } .gallery-next { right: 6px; }
  .gallery-thumbnails button { width: 66px; height: 52px; flex-basis: 66px; }
  .lightbox-layout { padding: 12px; }
  .admin-sidebar { padding: 16px; }
  .admin-sidebar nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-top: 16px; }
  .admin-sidebar nav a { padding: 12px 4px; font-size: .78rem; min-height: 44px; text-align: center; }
  .admin-heading { margin-bottom: 18px; }
  .admin-heading h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .post-list .post-preview.has-photo { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .post-cover { height: 180px; }
  .media-grid { grid-template-columns: minmax(0,1fr); }
  .media-item > .media-preview { height: 190px; }
  .media-heading { flex-wrap: wrap; gap: 0; }
  .media-heading > span { margin-bottom: 12px; }
  .media-primary-actions [data-image-cover] { flex: 1 1 auto; }
  .media-actions [data-image-insert] { flex: 1 1 auto; }
  .upload-file { grid-template-columns: 42px minmax(0,1fr); }
  .upload-file > img { width: 42px; height: 42px; }
  .upload-file > div:last-child { grid-column: 2; grid-row: 2; }
  .media-save-bar { align-items: stretch; flex-direction: column; gap: 8px; }
}

/* Real project photography and contact actions share the existing page structure. */
body { background: #f7f5ef; }
picture { display: block; }
.home-hero { min-height: 540px; height: min(680px,calc(100svh - 110px)); align-items: center; background: #e6e1d8; }
.home-hero::after { display: none; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center 44%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(248,246,239,.98),rgba(248,246,239,.88) 32%,rgba(248,246,239,.18) 67%,transparent); }
.home-hero .hero-content { padding: 52px 0; color: #242821; }
.home-hero .eyebrow { color: #65552f; margin-bottom: 20px; }
.home-hero h1 { max-width: 740px; font-size: 3.55rem; line-height: 1.08; text-wrap: balance; }
.hero-subtitle { max-width: 580px; font-size: 1.08rem; line-height: 1.65; margin: 22px 0 24px; color: #3e433b; }
.hero-work-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 16px; margin-top: 12px; font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.contact-actions .button { gap: 8px; border-radius: 5px; background: #2b4035; border-color: #2b4035; color: #fff; box-shadow: none; min-height: 48px; }
.contact-actions .secondary, .contact-actions .contact-whatsapp { color: #263d30; background: #fffdf8; border-color: #596c5c; }
.section-intro { max-width: 760px; font-size: 1.1rem; color: #50554b; }
.painting-focus .section-heading { margin-bottom: 22px; }
.painting-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 30px 0 18px; }
.painting-caption h3 { margin: 0; font: 700 1.5rem var(--serif); }
.painting-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.painting-pair figure { margin: 0; min-width: 0; }
.painting-pair a { position: relative; display: block; background: #e6e8df; border-radius: 5px; overflow: hidden; }
.painting-pair img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.painting-pair figcaption { margin-top: 10px; font-size: .85rem; color: #666b60; }
.painting-fallback { max-height: 430px; width: 100%; object-fit: contain; background: #e6e8df; }
.service-band { background: #e9eee6; }
.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.service-photo-card { padding: 0; min-height: 0; border-radius: 6px; }
.service-photo-card::before { display: none; }
.service-photo-card picture { background: #e1e4dc; }
.service-photo-card img { width: 100%; height: 226px; object-fit: contain; transition: transform .3s ease; }
.service-photo-card > div { padding: 24px; }
.service-photo-card h3 { font-size: 1.45rem; margin: 14px 0; line-height: 1.18; }
.service-photo-card span, .portfolio-card span { letter-spacing: 0; }
.service-photo-card p { font-size: .95rem; color: #50594c; }
.service-photo-card .service-read { text-transform: none; font-size: .9rem; color: #293f32; }
.portfolio-card:nth-child(5n + 1) { transform: none; }
.portfolio-card img { height: auto; }
.portfolio-card:hover img { filter: none; }
.collaboration-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 26px; }
.collaboration-steps li { border-top: 1px solid #a9b3a3; padding-top: 18px; min-width: 0; }
.collaboration-steps span { font: 400 2rem var(--serif); color: #78653d; }
.collaboration-steps h3 { font-size: 1.05rem; line-height: 1.3; margin: 14px 0 10px; }
.collaboration-steps p { font-size: .9rem; color: #50594c; }
.motto-band { width: 100%; background: #293a30; color: #fffdf7; padding: 64px 24px; }
.motto-band > div { width: min(100%,1040px); margin: auto; }
.motto-band blockquote { font: 400 2.25rem/1.4 var(--serif); margin: 0; }
.motto-band .contact-call { border-color: #e0dece; }
.service-photograph { padding-top: 0; padding-bottom: 48px; }
.service-photograph > a { display: block; position: relative; background: #e6e8df; border-radius: 6px; overflow: hidden; }
.service-photograph img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.service-detail h2, .service-faq h2 { font-size: 2.4rem; line-height: 1.16; }
.check-panel li p { font-size: .9rem; margin: 5px 0 18px; }
.related-service-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font-size: .9rem; }
.service-faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-faq summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.service-faq details p { margin: 12px 0 0; max-width: 800px; }
.photo-gallery .gallery-open picture { height: 100%; }
.site-footer .contact-actions { align-items: stretch; margin-top: 16px; }
.site-footer .contact-actions .button { padding: 10px; font-size: .8rem; flex: 1 1 200px; text-align: center; }
.mobile-contact-dock { display: none; }
.settings-photos { border-top: 1px solid var(--line); padding-top: 24px; }
.settings-photos h2 { font: 700 1.5rem var(--sans); }
.settings-photo-preview { width: 220px; height: 130px; object-fit: contain; background: #e6e8df; margin: 12px 0 28px; }
@media (max-width: 1100px) {
  .home-hero h1 { font-size: 3rem; max-width: 640px; }
  .collaboration-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .home-hero { display: block; min-height: 0; height: auto; overflow: visible; background: #f7f5ef; }
  .hero-photo { position: relative; z-index: 0; }
  .hero-photo picture, .hero-photo img { height: auto; }
  .hero-photo img { object-fit: contain; }
  .hero-photo::after { background: linear-gradient(0deg,#f7f5ef,transparent 34%); }
  .home-hero .hero-content { position: relative; margin-top: -34px; padding: 0 0 28px; width: calc(100% - 32px); }
  .home-hero .eyebrow { font-size: .7rem; margin-bottom: 12px; }
  .home-hero h1 { font-size: 2.1rem; line-height: 1.12; }
  .hero-subtitle { font-size: .98rem; margin: 18px 0; }
  .home-hero .contact-actions { margin-top: 18px; }
  .contact-actions .button { padding: 12px 14px; font-size: .9rem; }
  .hero-work-link { margin: 4px 0 0; padding-block: 10px; font-size: .9rem; }
  .painting-pair { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .painting-caption h3 { font-size: 1.3rem; }
  .section-intro { font-size: 1rem; }
  .service-grid { grid-template-columns: minmax(0,1fr); }
  .collaboration-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .motto-band { padding: 40px 20px; }
  .motto-band blockquote { font-size: 1.65rem; }
  .service-detail h2, .service-faq h2 { font-size: 1.9rem; }
  .has-contact-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  .mobile-contact-dock { display: block; position: fixed; inset: auto 0 0; z-index: 35; background: #fbfcf8; border-top: 1px solid #c0cabc; padding: 8px 12px calc(8px + env(safe-area-inset-bottom,0px)); }
  .mobile-contact-dock .contact-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
  .mobile-contact-dock .button { min-height: 48px; font-size: .95rem; }
  body:has(.photo-lightbox[open]) .mobile-contact-dock { visibility: hidden; }
  .settings-photo-preview { max-width: 100%; }
}
@media (max-width: 370px) {
  .home-hero h1 { font-size: 1.85rem; }
  .home-hero .contact-actions .button { flex: 1 1 100%; }
  .collaboration-steps { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .service-photo-card img { transition: none; }
}

/* Editorial layouts use the page itself as the photo background, without mats. */
:root { --radius: 6px; --container: min(1160px,calc(100% - 48px)); --paper: #f7f5ef; --muted: #5a5d56; }
html { scroll-behavior: auto; }
h1 { font-size: 3.4rem; }
h2 { font-size: 2.6rem; line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
.eyebrow, .post-list span, .meta-list dt { letter-spacing: 0; }
.bi { display: inline-block; width: 1.1em; height: 1.1em; fill: currentColor; flex: 0 0 auto; vertical-align: -.15em; }
.button, .text-link, .back-link, .service-read, .card-open { gap: 9px; }
.button { background: #293b32; border-color: #293b32; border-radius: 4px; box-shadow: none; font-weight: 650; }
.button:hover { box-shadow: none; }
.text-link { align-items: center; font-weight: 650; }
.section { padding-block: 64px; }
.section-heading { margin-bottom: 32px; align-items: end; }
.section-heading h2 { max-width: 700px; }
.section-heading > .text-link { flex: 0 0 auto; padding-block: 8px; }
.section-intro { max-width: 720px; }
.site-header { background: rgba(250,249,245,.96); padding-block: 12px; }
.brand-mark { box-shadow: none; background: #263b32; }
.site-nav { font-weight: 650; }
.nav-toggle .bi { width: 22px; height: 22px; }
.home-hero { min-height: 520px; height: min(650px,calc(100svh - 116px)); align-items: center; background: #222820; touch-action: pan-y; }
.home-hero::before, .home-hero::after, .hero-photo::after { display: none; }
.hero-photos { position: absolute; inset: 0; z-index: -1; }
.hero-photos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(15,23,18,.83),rgba(15,23,18,.60) 36%,rgba(15,23,18,.05) 76%),linear-gradient(0deg,rgba(15,23,18,.48),transparent 50%); pointer-events: none; }
.hero-photo { position: absolute; inset: 0; z-index: auto; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.hero-photo.is-active { opacity: 1; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center; }
.home-hero .hero-content { color: #fff; padding: 52px 0 72px; margin-top: 0; }
.home-hero .eyebrow { color: #e1c690; margin-bottom: 18px; }
.home-hero h1 { max-width: 660px; font-size: 3.65rem; line-height: 1.08; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.12); }
.hero-subtitle { color: #f0f1eb; max-width: 520px; font-size: 1.05rem; margin: 22px 0; }
.home-hero .contact-actions .button { background: #fffdf8; border-color: #fffdf8; color: #21382a; }
.home-hero .contact-actions .contact-whatsapp { background: rgba(20,32,24,.7); color: #fff; border-color: rgba(255,255,255,.65); }
.hero-work-link { font-weight: 650; margin-top: 8px; }
.hero-controls { position: absolute; bottom: 26px; right: max(24px,calc((100% - 1160px) / 2)); display: flex; gap: 8px; align-items: center; color: #fff; background: rgba(19,29,23,.65); border: 1px solid rgba(255,255,255,.35); padding: 4px; border-radius: 4px; }
.hero-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.hero-controls button:hover { background: rgba(255,255,255,.12); }
.hero-controls output { min-width: 44px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.hero-dots { display: flex; gap: 0; }
.hero-dots button { width: 28px; }
.hero-dots span { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.hero-dots [aria-pressed="true"] span { background: #fff; }
.painting-pair a, .painting-fallback, .service-photo-card picture, .service-photograph > a, .gallery-stage, .slider-track, .content-image .inline-image-open { background: transparent; }
.painting-pair a { border-radius: 3px; }
.painting-pair img { aspect-ratio: auto; height: auto; }
.gallery-enlarge { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.service-band { background: #eeeee8; border: 0; }
.service-photo-card { border: 0; background: transparent; border-radius: 0; box-shadow: none; }
.service-photo-card picture { overflow: hidden; border-radius: 3px; }
.service-photo-card img { height: 236px; object-fit: cover; }
.service-photo-card > div { padding: 22px 0 8px; }
.service-photo-card h3 { font-size: 1.55rem; }
.service-photo-card:hover { box-shadow: none; transform: none; }
.service-photo-card:hover img { transform: scale(1.025); }
.service-photo-card .service-read, .portfolio-card .card-open { display: inline-flex; align-items: center; text-transform: none; font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.portfolio-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.portfolio-card figure { border-radius: 3px; background: transparent; }
.portfolio-card img { aspect-ratio: 4/3; height: auto; transform: none; }
.portfolio-card > div { padding: 20px 0 8px; }
.portfolio-card h3 { font-size: 1.5rem; margin: 10px 0; }
.portfolio-card p { font-size: .95rem; }
.portfolio-card:hover { transform: none; box-shadow: none; }
.portfolio-card:hover img { transform: scale(1.025); }
.portfolio-card.without-photo { border-top: 1px solid var(--line); align-self: start; }
.post-list a { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 24px 0; }
.post-list a:hover { transform: none; box-shadow: none; }
.post-list strong { font-size: 1.65rem; }
.page-hero { width: var(--container); padding: 56px 0 24px; }
.page-hero h1 { font-size: 3.25rem; max-width: 850px; line-height: 1.12; }
.page-hero p:not(.eyebrow) { font-size: 1.05rem; }
.page-hero::after { display: none; }
.page-hero + .section { padding-top: 32px; }
.service-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 48px; padding-bottom: 56px; }
.service-hero h1 { font-size: 3rem; }
.service-hero .eyebrow { margin-top: 26px; }
.service-photograph { min-width: 0; margin: 0; padding: 0; }
.service-photograph > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 3px; }
.service-photograph img { width: auto; height: auto; max-width: 100%; max-height: 540px; object-fit: contain; }
.back-link { display: inline-flex; align-items: center; padding: 6px 0; font-size: .85rem; color: #595e54; }
.service-detail { padding-top: 48px; }
.service-detail h2, .service-faq h2 { font-size: 2.1rem; }
.check-panel, .contact-panel { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
.check-panel::before, .contact-panel::before { display: none; }
.check-panel { border-left: 1px solid var(--line); padding-left: 32px; }
.check-panel h3 { font-family: var(--serif); font-size: 1.6rem; }
.check-panel ul { list-style: none; padding: 0; gap: 4px; }
.check-panel li { border-bottom: 1px solid var(--line); }
.cta h2 { font-size: 2.1rem; margin: 0; }
.cta .contact-actions { margin-top: 0; }
.article, .case-study { padding: 40px 0 64px; }
.detail-heading h1, .article h1 { font-size: 2.75rem; line-height: 1.13; }
.detail-intro { font-size: 1.05rem; }
.gallery-stage { height: min(58svh,560px); min-height: 240px; border-radius: 0; }
.photo-gallery .gallery-open { display: flex; align-items: center; justify-content: center; }
.photo-gallery .gallery-open picture { display: flex; align-items: center; justify-content: center; height: 100%; max-width: 100%; }
.photo-gallery .gallery-open img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 3px; }
.gallery-arrow, .lightbox-footer button { display: grid; place-items: center; }
.gallery-meta { margin-top: 16px; }
.gallery-thumbnails { justify-content: center; }
.gallery-meta p:empty { display: none; }
.gallery-meta:has(p:empty) { justify-content: center; }
.content-image .inline-image-open { width: fit-content; max-width: 100%; margin: auto; }
.form-card { background: #fff; border-radius: 4px; box-shadow: none; padding: 28px; }
.form-card h2, .contact-panel h2 { font-size: 1.8rem; }
.contact-panel p { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.contact-grid { padding-top: 24px; }
.site-footer { background: #24372c; color: #fbfaf5; box-shadow: none; }
.site-footer .contact-actions .button { flex-basis: auto; font-weight: 650; }
.site-footer .contact-actions .button { border-color: #a9b7a6; background: transparent; color: #fff; }
.article > .contact-actions { max-width: 860px; margin-inline: auto; }
.article { font-size: 1.05rem; }
.section-copy p { font-size: 1.05rem; }
.footer-brand strong { font-size: 2rem; }
.motto-band .contact-message { background: #fffdf8; border-color: #fffdf8; color: #25382c; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; }
.media-primary-actions button, .media-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.media-primary-actions .bi, .media-actions .bi { width: 14px; height: 14px; }
.settings-photo-preview { width: auto; height: auto; max-width: min(100%,320px); max-height: 180px; background: transparent; border-radius: 3px; }
.photo-gallery .slider-slide { display: flex; align-items: center; justify-content: center; }
.photo-gallery .gallery-open { width: auto; max-width: 100%; height: 100%; }
.photo-gallery .gallery-open picture { width: 100%; }
.photo-gallery .gallery-open img { width: 100%; height: 100%; object-fit: contain; }
.photo-gallery { container-type: inline-size; }
.gallery-stage { min-height: 0; }
@supports (height: 1cqw) {
  .gallery-stage { height: min(58svh,560px,calc(100cqw / var(--image-ratio,1.333333))); }
}
.documented-works { border-top: 1px solid var(--line); padding-top: 40px; }
.documented-works h2 { font-size: 2rem; margin-bottom: 28px; }
.documented-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 40px; }
.documented-list .portfolio-card > div { padding: 20px 0; }
.related-documented { margin-top: 32px; }
.related-portfolio .single-photo { grid-template-columns: minmax(0,1fr); }
.related-portfolio .single-photo .portfolio-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 40px; }
.related-portfolio .single-photo .portfolio-card > div { padding: 0; }
.related-portfolio .single-photo .portfolio-card h3 { font-size: 2rem; }
.related-portfolio .single-photo .portfolio-card img { aspect-ratio: auto; object-fit: contain; }
[id] { scroll-margin-top: 96px; }
@media (max-width: 1100px) {
  .home-hero h1 { font-size: 3.1rem; max-width: 610px; }
  .service-hero { gap: 32px; }
  .service-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 760px) {
  :root { --container: calc(100% - 32px); }
  h1 { font-size: 2.2rem; } h2 { font-size: 2rem; } h3 { font-size: 1.2rem; }
  .section { padding-block: 40px; }
  .section-heading { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 24px; }
  .home-hero { display: block; height: auto; min-height: 0; background: #25352c; }
  .hero-photos { position: relative; z-index: auto; height: 290px; }
  .hero-photos::after { background: linear-gradient(0deg,#25352c,transparent 25%); }
  .hero-photo { position: absolute; }
  .hero-photo picture, .hero-photo img { height: 100%; }
  .hero-photo img { object-fit: cover; }
  .home-hero .hero-content { width: var(--container); padding: 20px 0 28px; margin-top: 0; }
  .home-hero h1 { font-size: 2.2rem; max-width: 600px; }
  .home-hero .eyebrow { font-size: .7rem; margin-bottom: 14px; }
  .hero-subtitle { font-size: .95rem; margin: 16px 0; }
  .hero-controls { bottom: auto; top: 226px; right: 16px; }
  .hero-work-link { margin-top: 4px; padding-block: 12px; }
  .painting-pair { gap: 24px; }
  .service-grid { gap: 30px; }
  .service-photo-card img { height: 250px; }
  .service-photo-card > div { padding-top: 16px; }
  .service-photo-card h3 { font-size: 1.5rem; }
  .service-hero { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 28px 0 40px; }
  .service-hero .eyebrow { margin-top: 18px; }
  .page-hero { padding-top: 32px; }
  .page-hero h1, .service-hero h1 { font-size: 2.2rem; }
  .page-hero + .section { padding-top: 24px; }
  .service-photograph img { max-height: 430px; }
  .check-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .detail-heading h1, .article h1 { font-size: 2.05rem; }
  .article, .case-study { width: var(--container); padding-top: 26px; }
  .gallery-stage { height: min(42svh,360px); min-height: 200px; }
  @supports (height: 1cqw) {
    .gallery-stage { height: min(42svh,360px,calc(100cqw / var(--image-ratio,1.333333))); min-height: 0; }
  }
  .gallery-thumbnails { justify-content: start; }
  .gallery-enlarge { width: 40px; height: 40px; }
  .form-card { padding: 20px; }
  .post-list strong { font-size: 1.4rem; }
  .admin-sidebar nav a { flex-direction: column; gap: 5px; padding: 8px 4px; }
  .admin-sidebar nav .bi { width: 18px; height: 18px; }
  .documented-list { grid-template-columns: minmax(0,1fr); }
  .related-portfolio .single-photo .portfolio-card { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .related-portfolio .single-photo .portfolio-card h3 { font-size: 1.5rem; }
}
@media (max-width: 430px) {
  .hero-photos { height: 236px; }
  .hero-controls { top: 178px; }
  .home-hero h1 { font-size: 1.95rem; }
  .home-hero .contact-actions .button { flex: 0 1 auto; }
  .service-photo-card img { height: 222px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .service-photo-card img { transition: none; }
}
