/*
Theme Name: Dianna Williams Design
Theme URI: https://diannawilliamsdesign.com/
Author: The Web Stylist
Description: Custom theme for Dianna Williams Design — interior design for discriminating clients. Hero slideshow, project galleries with lightbox, before & after sliders, and every section editable in Appearance → Customize.
Version: 1.0.14
Requires at least: 6.2
Tested up to: 6.8
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: dianna-williams-design
Tags: portfolio, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* ==========================================================
   Dianna Williams Design — brand stylesheet
   Brand: Lato (wordmark face), sage palm green, terracotta brown,
   deep maroon accent, warm ivory ground.
   ========================================================== */
:root {
  --sage: #85a97d;
  --sage-deep: #6f8f68;
  --sage-soft: #e7eee3;
  --brown: #824d3f;
  --brown-deep: #5e3328;
  --maroon: #5b0000;
  --ink: #2c2724;
  --ink-soft: #5d5650;
  --ivory: #faf7f2;
  --linen: #f2ede4;
  --stone: #d9d1c5;
  --white: #fff;
  --charcoal: #1d1c1f;

  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; } /* smooth scrolling is eased in JS */
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--sage-deep); }
p { margin: 0 0 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 16px; z-index: 999; }
.skip:focus { left: 8px; }

.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: clamp(80px, 11vw, 150px) 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sage-deep); margin: 0 0 18px;
}
.eyebrow.light { color: rgba(255,255,255,.85); }
.eyebrow.light-sage { color: var(--sage); }
.display {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--brown); margin: 0 0 24px;
}
.display em, h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep);
}
.display.light { color: #fff; }
.display.light em { color: var(--sage-light); }
.tagline { font-size: clamp(19px, 2vw, 23px); color: var(--sage-deep); font-weight: 400; margin-bottom: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); line-height: 1.7; }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-sub { color: var(--ink-soft); }
.rule { width: 64px; height: 1px; background: var(--sage); margin: 40px auto; position: relative; }
.rule::before, .rule::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.rule::before { left: -12px; } .rule::after { right: -12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border: 1px solid transparent; border-radius: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--sage); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-dark { background: var(--brown); color: #fff; border: 0; }
.btn-dark:hover { background: var(--sage-deep); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
  padding: 22px 0;
}
.header-inner { width: min(1400px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; width: 240px; height: 55px; }
.brand img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity .45s var(--ease); }
.brand-dark { opacity: 0; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid rgba(255,255,255,.7); padding: 10px 20px !important; }
.nav-cta:hover { background: #fff; color: var(--brown) !important; }

.site-header.is-scrolled { background: rgba(250,247,242,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.06); padding: 12px 0; }
.site-header.is-scrolled .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark { opacity: 1; }
.site-header.is-scrolled .nav a { color: var(--ink); }
.site-header.is-scrolled .nav a:hover { color: var(--brown); }
.site-header.is-scrolled .nav-cta { border-color: var(--brown); color: var(--brown) !important; }
.site-header.is-scrolled .nav-cta:hover { background: var(--brown); color: #fff !important; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; z-index: 60; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease), background .3s; }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 26px; }
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }
body.menu-open .menu-toggle span { background: var(--ink); }
body.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--charcoal); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center; opacity: 0; transform: scale(1.08);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { background: linear-gradient(180deg, rgba(20,16,14,.6) 0%, rgba(20,16,14,.38) 45%, rgba(20,16,14,.68) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 980px; }
.hero h1 {
  font-weight: 300; font-size: clamp(46px, 8.4vw, 112px); line-height: 1.02; letter-spacing: -.015em;
  margin: 0 0 26px; text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 em { color: var(--sage-light); }
.hero-lede { font-size: clamp(17px, 1.7vw, 21px); max-width: 600px; margin: 0 auto 40px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-dots { position: absolute; z-index: 3; bottom: 40px; left: 48px; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after { animation: dot var(--slide-ms, 6s) linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.scroll-cue { transition: border-color .5s var(--ease-out), transform .6s var(--ease-out); position: absolute; z-index: 3; bottom: 32px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Intro ---------- */
.intro { background: var(--ivory); }
.intro-logo { width: min(420px, 80%); height: auto; margin: 0 auto 48px; }
.intro .display { font-size: clamp(30px, 3.6vw, 46px); }
.intro p:not(.tagline):not(.lead) { color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.stat { padding: 40px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--stone); }
.stat-num, .stat-plus { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); color: var(--brown); line-height: 1; }
.stat-plus { color: var(--sage); }
.stat-label { display: block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Feature split ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--linen); min-height: 640px; }
.feature-img { overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.feature-img.in:hover img { transform: scale(1.04); }
.feature-text { padding: clamp(48px, 7vw, 110px); align-self: center; max-width: 620px; }
.feature-text p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 36px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 48px; }
.filter {
  background: none; border: 1px solid var(--stone); color: var(--ink-soft);
  padding: 10px 22px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: background .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.filter:hover { border-color: var(--sage); color: var(--sage-deep); }
.filter.is-active { background: var(--sage); border-color: var(--sage); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project {
  position: relative; overflow: hidden; background: var(--stone); cursor: pointer; border: 0; padding: 0; text-align: left;
  grid-column: span 2; aspect-ratio: 4 / 5; color: #fff;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.project.is-wide { grid-column: span 3; aspect-ratio: 4 / 3; }
.project.is-hidden { display: none; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(25,18,15,.78) 100%); transition: opacity .5s; }
.project:hover img, .project:focus-visible img { transform: scale(1.06); }
.project-info { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; }
.project-info .p-loc { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-light); }
.project-info h3, .project-info .p-title { font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 6px 0 4px; }
.project-info .p-sub { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .85; }
.project-count {
  position: absolute; z-index: 2; top: 20px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  background: rgba(250,247,242,.92); color: var(--brown); padding: 7px 12px; text-transform: uppercase;
}
.project-view-cta { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.project:hover .project-view-cta, .project:focus-visible .project-view-cta { opacity: 1; transform: none; }

/* ---------- Before / After ---------- */
.transform { background: var(--charcoal); color: #e9e4dc; }
.transform .display { color: #fff; }
.transform .display em { color: var(--sage); }
.transform .section-sub { color: #b9b1a6; }
.ba-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.ba { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; }
.ba > img, .ba-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; z-index: 3; pointer-events: none; translate: -1px 0; }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--brown);
  display: grid; place-items: center; font-size: 20px; letter-spacing: 2px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ba input:focus-visible ~ .ba-handle::after { outline: 2px solid var(--sage); outline-offset: 3px; }
.ba-tag { position: absolute; top: 18px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; background: rgba(29,28,31,.7); color: #fff; padding: 6px 12px; }
.ba-tag-b { left: 18px; } .ba-tag-a { right: 18px; background: var(--sage); }
.ba-tag { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.ba-tag-b.is-covered { opacity: 0; transform: translateX(-8px); }
.ba-tag-a.is-covered { opacity: 0; transform: translateX(8px); }
.ba figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 14px; letter-spacing: .06em; pointer-events: none; }

/* ---------- Services ---------- */
.services { background: var(--ivory); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone); }
.service { padding: 48px 40px 40px; position: relative; transition: background .5s var(--ease); }
.service + .service { border-left: 1px solid var(--stone); }
.service:hover { background: var(--linen); }
.service-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--sage); }
.service h3 { font-weight: 400; font-size: 24px; color: var(--brown); margin: 14px 0 16px; letter-spacing: .01em; }
.service p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.service-list { list-style: none; padding: 40px 0 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 12px; border-top: 1px solid var(--stone); }
.service-list li { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); background: var(--sage-soft); padding: 10px 18px; }

/* ---------- Marquee ---------- */
.places { background: var(--sage); color: #fff; overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; }
.marquee-track i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Meet Dianna ---------- */
.dianna { background: var(--linen); }
.dianna-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.dianna-photo { position: relative; max-width: 380px; justify-self: end; width: 100%; }
.dianna-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--sage); z-index: 0; }
.dianna-photo img { position: relative; z-index: 1; width: 100%; height: auto; }
.dianna blockquote {
  margin: 0 0 28px; padding: 0 0 0 28px; border-left: 2px solid var(--sage);
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; color: var(--brown-deep);
}
.dianna-text > p:not(.eyebrow) { color: var(--ink-soft); }
.signature { width: 280px; height: auto; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact { position: relative; color: #fff; overflow: hidden; background: var(--charcoal); }
.contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,28,31,.92) 0%, rgba(29,28,31,.6) 100%); z-index: 1; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.contact-info > p { color: rgba(255,255,255,.82); max-width: 440px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 18px; }
.contact-list li span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--sage-light); }
.contact-form { background: var(--ivory); color: var(--ink); padding: clamp(32px, 4vw, 52px); }
.contact-form h3 { font-weight: 300; color: var(--brown); font-size: 28px; margin: 0 0 24px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone); padding: 24px 0 10px; border-radius: 0; resize: vertical;
  transition: border-color .3s var(--ease);
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23824d3f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); }
.field label {
  position: absolute; left: 0; top: 24px; color: var(--ink-soft); font-size: 16px; pointer-events: none;
  transition: all .25s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.static {
  top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep);
}
.field.invalid input, .field.invalid textarea { border-color: #b4503c; }
.contact-form .btn { margin-top: 16px; }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--sage-deep); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); padding: 72px 0 40px; border-top: 1px solid var(--stone); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-logo { width: 240px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer-nav a { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--brown); }
.footer-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- Project overlay ---------- */
.project-view { position: fixed; inset: 0; z-index: 80; background: var(--ivory); overflow-y: auto; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.project-view.is-open { opacity: 1; transform: none; }
.pv-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px max(24px, calc((100% - 1400px) / 2)); background: rgba(250,247,242,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stone);
}
.pv-bar .eyebrow { margin: 0 0 2px; }
.pv-bar h2 { margin: 0; font-weight: 300; font-size: clamp(24px, 3vw, 36px); color: var(--brown); line-height: 1.2; }
.pv-bar h2 em { font-family: var(--serif); color: var(--sage-deep); font-size: .7em; margin-left: 10px; }
.pv-close, .lb-close {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--stone); background: #fff; color: var(--brown);
  font-size: 28px; line-height: 1; flex: none; transition: all .3s var(--ease);
}
.pv-close:hover { background: var(--brown); color: #fff; border-color: var(--brown); transform: rotate(90deg); }
.pv-body { width: min(1400px, 100% - 48px); margin: 36px auto 80px; }
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--stone); break-inside: avoid; position: relative; overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.masonry button.in { opacity: 1; transform: none; }
.masonry img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.masonry button:hover img { transform: scale(1.04); }
.masonry .m-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 14px; text-align: left; opacity: 0; transition: opacity .4s; }
.masonry button:hover .m-cap, .masonry button:focus-visible .m-cap { opacity: 1; }
.m-badge { position: absolute; top: 12px; left: 12px; background: rgba(29,28,31,.72); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 5px 10px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,16,15,.96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox .lb-figure { transform: scale(.96); transition: transform .6s var(--ease-out); }
.lightbox.is-open .lb-figure { transform: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 60px 0; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.4); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.lb-figure img.loading { opacity: 0; transform: scale(.985); }
.lb-figure figcaption { display: flex; gap: 24px; justify-content: space-between; width: 100%; max-width: 900px; margin-top: 18px; color: #d8d1c6; font-size: 14px; letter-spacing: .04em; }
#lbCount { color: var(--sage); font-weight: 700; letter-spacing: .16em; }
.lb-prev, .lb-next { background: none; border: 0; color: #fff; font-size: 54px; font-weight: 300; height: 100%; opacity: .6; transition: opacity .3s; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 20px; right: 20px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); z-index: 2; }
.lb-close:hover { background: #fff; color: var(--brown); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img img { opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
.reveal-img.in img { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 140ms + 300ms); }

body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .project, .project.is-wide { grid-column: span 3; aspect-ratio: 4 / 3; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 16 / 10; }
  .service-grid { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: 1px solid var(--stone); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--ivory); flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  .nav { transition: opacity .5s var(--ease-out), visibility .5s; }
  .nav a { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .3s; }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(1) { transition-delay: .08s; } body.menu-open .nav a:nth-child(2) { transition-delay: .14s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .2s; } body.menu-open .nav a:nth-child(4) { transition-delay: .26s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .32s; }
  .nav a { color: var(--ink) !important; font-size: 15px; }
  .nav-cta { border-color: var(--brown) !important; }
  body.menu-open .brand-light { opacity: 0; } body.menu-open .brand-dark { opacity: 1; }
  .ba-grid, .contact-grid, .dianna-grid { grid-template-columns: 1fr; }
  .dianna-photo { justify-self: center; max-width: 340px; }
  .hero-dots { left: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { width: 190px; height: 44px; }
  .project, .project.is-wide { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 1px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-prev, .lb-next { font-size: 40px; }
  .hero-dots { display: none; }
  .btn { padding: 15px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-img img, .masonry button { opacity: 1; transform: none; }
}

/* Mobile menu: a backdrop-filter on the header would trap the fixed overlay */
@media (max-width: 900px) {
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); box-shadow: none; }
  .nav { height: 100vh; height: 100dvh; }
}
.brand { z-index: 60; }

.scroll-cue:hover { border-color: #fff; transform: translateY(4px); }

/* Before/after: 3 across on desktop, 2 + 1 wide on tablets, stacked on phones */
@media (max-width: 1100px) and (min-width: 901px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid .ba:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Meet the Designer: the whole name in the same sans-serif (no serif italic on the last name) */
.dianna .display em { font-family: var(--sans); font-style: normal; font-weight: inherit; }

/* Instagram: outline glyph in a fine sage ring, brown line art; fills brown on hover */
.social-ig { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 13px; letter-spacing: .06em; text-transform: none; transition: color .35s var(--ease); }
.social-ig .ig-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sage); color: var(--brown); display: grid; place-items: center; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out); }
.social-ig:hover, .social-ig:focus-visible { color: var(--brown); }
.social-ig:hover .ig-icon, .social-ig:focus-visible .ig-icon { background: var(--brown); border-color: var(--brown); color: #fff; transform: translateY(-2px); }
.nav .nav-social { display: none; }
@media (max-width: 900px) {
  .nav .nav-social { display: inline-flex; margin-top: 10px; padding: 0; font-size: 14px; font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--ink-soft) !important; }
  .nav .nav-social::after { display: none; }
  body.menu-open .nav a:nth-child(6) { transition-delay: .38s; }
}

/* Footer design credit link */
.footer-credit { color: inherit; transition: color .3s var(--ease); }
.footer-credit:hover, .footer-credit:focus-visible { color: var(--brown); }
@media (max-width: 640px) {
  .footer-sep { display: none; }
  .footer-credit { display: block; margin-top: 6px; }
}

/* ==========================================================
   WordPress theme additions
   ========================================================== */

/* Portfolio cards are links */
a.project, a.project:hover, a.project:focus { color: #fff; }
.project-info .p-title { display: block; font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 6px 0 4px; }

/* Text wordmark (when no logo image is uploaded) */
.brand.brand-is-text { width: auto; height: auto; }
.brand-text { display: inline-block; white-space: nowrap; font-family: var(--sans); font-weight: 300; font-size: 24px; letter-spacing: .01em; line-height: 1; color: #fff; transition: color .45s var(--ease); }
.brand-text .bt-accent { font-family: var(--serif); font-style: italic; color: var(--sage-light); transition: color .45s var(--ease); }
.site-header.is-scrolled .brand-text, body.menu-open .brand-text { color: var(--brown); }
.site-header.is-scrolled .brand-text .bt-accent, body.menu-open .brand-text .bt-accent { color: var(--sage-deep); }
.footer-wordmark { font-weight: 300; font-size: 30px; color: var(--brown); margin: 0; }
.footer-wordmark em { font-family: var(--serif); color: var(--sage-deep); }
@media (max-width: 640px) { .brand-text { font-size: 19px; } }

/* WordPress admin bar */
.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; } .admin-bar.menu-open .site-header { top: 0; } }

/* Inner pages */
.container.wide { width: min(1400px, 100% - 48px); }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.page-hero { padding: clamp(140px, 16vw, 200px) 0 clamp(48px, 6vw, 72px); background: var(--linen); }
.page-hero .display { margin-bottom: 0; }
.page-hero .eyebrow a { color: inherit; }
.page-hero .entry-content { margin-top: 28px; color: var(--ink-soft); }
.page-hero.not-found { min-height: 70vh; display: grid; align-items: center; background: var(--ivory); }
.page-hero.not-found .display { margin-bottom: 16px; }
.page-thumb { margin-top: 40px; }
.page-thumb img { width: 100%; height: auto; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 300; color: var(--brown); line-height: 1.25; margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { font-size: 24px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-content blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--sage); font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--brown-deep); }
.entry-content .alignwide { margin-inline: calc((min(var(--wrap), 100vw - 48px) - 100%) / -2); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; }
.project-gallery { padding: clamp(40px, 5vw, 72px) 0 0; }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-nav span:last-child { text-align: right; }
.project-nav a:not(.btn) { color: var(--ink-soft); }
.project-nav a:not(.btn):hover { color: var(--brown); }
@media (max-width: 640px) { .project-nav { grid-template-columns: 1fr; text-align: center; } .project-nav span:last-child { text-align: center; } }

.post-list { display: grid; gap: 56px; }
.post-item h2 { font-weight: 300; font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; line-height: 1.2; }
.post-item h2 a { color: var(--brown); }
.post-thumb img { width: 100%; height: auto; margin-bottom: 20px; }
.nav-links { display: flex; gap: 12px; justify-content: center; margin-top: 48px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--stone); }
.nav-links .current { background: var(--sage); color: #fff; border-color: var(--sage); }

/* Gallery overlay link to the full project page */
.pv-actions { display: flex; align-items: center; gap: 18px; }
.pv-link { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--stone); padding-bottom: 3px; }
@media (max-width: 640px) { .pv-link { display: none; } }

/* Optional layouts */
.dianna-grid.no-photo { grid-template-columns: 1fr; max-width: 820px; }
.contact-grid.no-form { grid-template-columns: 1fr; max-width: 720px; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Accessibility helpers WordPress expects */
.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 !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: 5px; padding: 15px 23px; top: 5px; width: auto; z-index: 100000; }
.wp-caption, .gallery-caption, .sticky, .bypostauthor { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; } .aligncenter { display: block; margin-inline: auto; }
