/*
Theme Name: CASA Lifestyle
Theme URI: https://casalifestyle.in
Author: CASA Lifestyle
Author URI: https://casalifestyle.in
Description: Living, composed. A luxury living-systems theme for CASA Lifestyle — kitchens, wardrobes, vanity systems and architectural glass partitions presented as one continuous design language. Editorial layouts, material storytelling and quiet motion in the register of the great Italian houses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casa-lifestyle
Tags: custom-menu, featured-images, one-column, two-columns
*/

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  --bone: #f6f3ed;
  --ivory: #fcfaf6;
  --linen: #ece7de;
  --sand: #d8d0c2;
  --stone: #8d867a;
  --bronze: #96774c;
  --graphite: #2b2722;
  --ink: #16130f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 4vw, 48px);
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: var(--bronze);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.5;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.display-xl { font-size: clamp(48px, 9vw, 136px); }
.display-lg { font-size: clamp(40px, 6vw, 96px); }
.display-md { font-size: clamp(32px, 4vw, 60px); }
.display-sm { font-size: clamp(26px, 2.6vw, 40px); }
.display-xs { font-size: clamp(22px, 2vw, 30px); }

.essence {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--stone);
  margin: 8px 0 0;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  color: rgba(43, 39, 34, 0.82);
  max-width: 620px;
}

.text-bronze { color: var(--bronze); }
.text-sand { color: var(--sand); }
.text-stone { color: var(--stone); }

.rule {
  height: 1px;
  border: 0;
  background: rgba(22, 19, 15, 0.14);
  margin: 0;
}

/* Underline link */
.link-line {
  position: relative;
  padding-bottom: 2px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link-line:hover::after,
a:hover .link-line::after,
.card:hover .link-line::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Outline button */
.btn {
  display: inline-block;
  border: 1px solid rgba(22, 19, 15, 0.3);
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--light {
  border-color: rgba(252, 250, 246, 0.4);
}
.btn--light:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease), box-shadow 0.7s var(--ease);
  color: var(--ink);
}
body.hero-dark .site-header {
  color: var(--ivory);
}
.site-header.scrolled {
  background: rgba(246, 243, 237, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(22, 19, 15, 0.07);
  backdrop-filter: blur(8px);
}
body.menu-open .site-header {
  color: var(--ivory);
  background: transparent;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand small {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  opacity: 0.7;
  margin-left: 8px;
  vertical-align: middle;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 40px;
}
.header-nav a.nav-item {
  opacity: 0.72;
  transition: opacity 0.4s;
}
.header-nav a.nav-item:hover,
.header-nav a.nav-item[aria-current="page"] {
  opacity: 1;
}
.header-cta {
  border: 1px solid currentColor;
  padding: 12px 20px;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
body.hero-dark .header-cta:hover {
  background: var(--ivory);
  color: var(--ink);
}
body:not(.hero-dark) .header-cta:hover,
.site-header.scrolled .header-cta:hover {
  background: var(--ink);
  color: var(--ivory);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
}
.menu-toggle .bars {
  position: relative;
  width: 24px;
  height: 10px;
  display: block;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease), bottom 0.5s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { bottom: 0; }
body.menu-open .menu-toggle .bars::before { top: 50%; transform: rotate(45deg); }
body.menu-open .menu-toggle .bars::after { bottom: 50%; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .header-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease);
}
.menu-overlay .container {
  width: 100%;
  padding-bottom: 56px;
  padding-top: 112px;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li {
  overflow: hidden;
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease), color 0.5s;
}
body.menu-open .menu-list a { transform: none; }
.menu-list li:nth-child(1) a { transition-delay: 0.08s; }
.menu-list li:nth-child(2) a { transition-delay: 0.14s; }
.menu-list li:nth-child(3) a { transition-delay: 0.2s; }
.menu-list li:nth-child(4) a { transition-delay: 0.26s; }
.menu-list li:nth-child(5) a { transition-delay: 0.32s; }
.menu-list li:nth-child(6) a { transition-delay: 0.38s; }
.menu-list a:hover .menu-label { color: var(--sand); }
.menu-label {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  transition: color 0.5s;
}
.menu-contact {
  margin-top: 40px;
  color: var(--stone);
  font-size: 14px;
}
.menu-contact a { color: var(--ivory); }

/* ------------------------------------------------------------------ */
/* Heroes                                                              */
/* ------------------------------------------------------------------ */

.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}
.page-hero--tall { min-height: 88vh; }
.page-hero--home { min-height: 100svh; }
.page-hero--short { min-height: 64vh; }

.page-hero .hero-media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}
.page-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 19, 15, 0.82), rgba(22, 19, 15, 0.18) 55%, rgba(22, 19, 15, 0.32));
}
.page-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 8vh, 110px);
}
.hero-sub {
  max-width: 580px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
  color: rgba(252, 250, 246, 0.82);
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 40px;
  background: rgba(252, 250, 246, 0.5);
  animation: cue 2.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ------------------------------------------------------------------ */
/* Sections & grids                                                    */
/* ------------------------------------------------------------------ */

.section {
  padding-top: clamp(80px, 11vw, 176px);
  padding-bottom: clamp(80px, 11vw, 176px);
}
.section--flush-top { padding-top: 0; }
.section--dark {
  background: var(--ink);
  color: var(--ivory);
}
.section--ivory {
  background: var(--ivory);
  border-top: 1px solid rgba(22, 19, 15, 0.1);
  border-bottom: 1px solid rgba(22, 19, 15, 0.1);
}
.section--linen { background: var(--linen); }

.section-head { margin-bottom: clamp(56px, 6vw, 96px); }
.section-head .lead { margin-top: 28px; }
.section--dark .lead { color: rgba(252, 250, 246, 0.75); }

.split {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 2fr; }
}

.prose p {
  margin: 0 0 26px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.8;
  color: rgba(43, 39, 34, 0.82);
}
.section--dark .prose p { color: rgba(252, 250, 246, 0.78); }
.prose .intro {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 30px;
}
.prose blockquote {
  margin: 30px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--bronze);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--graphite);
}

/* Media frames */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
@media (hover: hover) {
  a:hover .frame img,
  .card:hover .frame img {
    transform: scale(1.045);
  }
}
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-1610 { aspect-ratio: 16 / 10; }
.ratio-1611 { aspect-ratio: 16 / 11; }
.ratio-168 { aspect-ratio: 16 / 8; }

/* Card meta line */
.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.card-meta .title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.card .arrow {
  color: var(--stone);
  transition: transform 0.5s var(--ease);
}
.card:hover .arrow { transform: translateX(4px); }
.card-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--stone);
}

/* Collections grid (home) */
.collections-grid {
  display: grid;
  gap: 80px 40px;
}
@media (min-width: 768px) {
  .collections-grid { grid-template-columns: 1fr 1fr; }
  .collections-grid > .card:nth-child(even) { margin-top: 112px; }
}

/* Editorial alternating rows */
.row {
  display: grid;
  gap: 40px;
  align-items: center;
}
.row + .row { margin-top: clamp(96px, 10vw, 160px); }
@media (min-width: 1024px) {
  .row { grid-template-columns: 7fr 5fr; }
  .row--flip .row-media { order: 2; }
  .row--wide { grid-template-columns: 8fr 4fr; }
}
.row-copy .lead { margin-top: 20px; max-width: 460px; }

/* Materials strip (home) */
.materials-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(56px, 6vw, 96px) var(--gutter) 8px;
  scrollbar-width: none;
}
.materials-strip::-webkit-scrollbar { display: none; }
.materials-strip .card {
  flex: 0 0 72vw;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .materials-strip .card { flex-basis: 42vw; } }
@media (min-width: 1024px) { .materials-strip .card { flex-basis: 26vw; } }
.section--dark .card-sub { color: var(--stone); }

/* Materials index grid */
.materials-grid {
  display: grid;
  gap: 80px 40px;
}
@media (min-width: 640px) { .materials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .materials-grid { grid-template-columns: 1fr 1fr 1fr; }
  .materials-grid > .card:nth-child(3n + 2) { margin-top: 80px; }
}

/* Journal grid */
.journal-grid {
  display: grid;
  gap: 80px 40px;
}
@media (min-width: 640px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .journal-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .display { font-size: clamp(36px, 3.4vw, 52px); }
.stat .eyebrow { margin-top: 12px; color: var(--stone); }

/* Facts / definition list */
.facts {
  border-left: 1px solid rgba(22, 19, 15, 0.15);
  padding-left: 32px;
  margin: 0;
}
.facts > div + div { margin-top: 32px; }
.facts dt { color: var(--stone); }
.facts dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
}

/* Numbered list (applications / process) */
.numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(22, 19, 15, 0.1);
  border-bottom: 1px solid rgba(22, 19, 15, 0.1);
}
.numbered > li {
  border-bottom: 1px solid rgba(22, 19, 15, 0.1);
}
.numbered > li:last-child { border-bottom: 0; }
.numbered .num-row {
  display: grid;
  gap: 16px;
  padding: 36px 0;
}
@media (min-width: 768px) {
  .numbered .num-row {
    grid-template-columns: 2fr 4fr 6fr;
    align-items: baseline;
  }
  .numbered .num-row--simple {
    grid-template-columns: auto 1fr;
  }
}
.numbered .num-row p {
  margin: 0;
  max-width: 460px;
  color: rgba(43, 39, 34, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.chip {
  display: inline-block;
  border: 1px solid rgba(22, 19, 15, 0.2);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--graphite);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.chip:hover,
.chip.selected {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* Partner cards */
.partners-grid {
  display: grid;
  gap: 64px 40px;
}
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner h3 { margin: 12px 0 0; }
.partner .essence { font-size: 18px; }
.partner p.body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(43, 39, 34, 0.8);
}
.section--dark .partner p.body { color: rgba(252, 250, 246, 0.75); }

/* Next teaser */
.next-teaser {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
}
.next-teaser .hero-media {
  position: absolute;
  inset: -10% 0;
}
.next-teaser .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.next-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 15, 0.55);
  transition: background-color 0.7s var(--ease);
}
.next-teaser:hover::after { background: rgba(22, 19, 15, 0.4); }
.next-teaser .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding-top: clamp(96px, 10vw, 144px);
  padding-bottom: clamp(96px, 10vw, 144px);
}
.cta-band .display { max-width: 900px; margin: 24px auto 0; }
.cta-band .btn { margin-top: 48px; }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-hero {
  background: var(--ink);
  color: var(--ivory);
  padding-top: clamp(160px, 22vh, 220px);
  padding-bottom: clamp(80px, 9vw, 120px);
}
.contact-grid {
  display: grid;
  gap: 80px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }

.casa-form .field { margin-top: 44px; }
.casa-form .field-pair {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) { .casa-form .field-pair { grid-template-columns: 1fr 1fr; } }
.casa-form label {
  display: block;
  margin-bottom: 6px;
}
.casa-form input,
.casa-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(22, 19, 15, 0.25);
  background: transparent;
  padding: 8px 0 12px;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--ink);
  transition: border-color 0.5s;
}
.casa-form input:focus,
.casa-form textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}
.casa-form ::placeholder { color: rgba(141, 134, 122, 0.7); }
.casa-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.casa-form .btn { margin-top: 48px; }
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.studio-aside {
  border-left: 1px solid rgba(22, 19, 15, 0.15);
  padding-left: 40px;
}
.studio-aside .block + .block { margin-top: 48px; }
.studio-aside address {
  font-style: normal;
  margin-top: 18px;
  line-height: 1.75;
  color: var(--graphite);
}
.studio-aside .tel {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 24px;
}
.studio-aside p {
  margin: 16px 0 0;
  color: rgba(43, 39, 34, 0.8);
  font-size: 14px;
  line-height: 1.75;
  max-width: 300px;
}

.form-confirm .display { max-width: 540px; }

/* ------------------------------------------------------------------ */
/* Journal single                                                      */
/* ------------------------------------------------------------------ */

.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body .intro {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.5;
  color: var(--graphite);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  margin: 48px 0 16px;
}
.article-body p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
  color: rgba(43, 39, 34, 0.85);
  margin: 0 0 24px;
}
.article-body .rule { margin: 48px 0; }

/* Next entry strip */
.next-entry {
  display: block;
  background: var(--ivory);
  border-top: 1px solid rgba(22, 19, 15, 0.1);
}
.next-entry .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.next-entry .frame { width: 256px; height: 160px; display: none; }
@media (min-width: 768px) { .next-entry .frame { display: block; } }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
}
.site-footer .container {
  padding-top: clamp(80px, 9vw, 112px);
  padding-bottom: clamp(80px, 9vw, 112px);
}
.footer-top {
  display: grid;
  gap: 64px;
}
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr; } }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols .eyebrow { color: var(--stone); }
.footer-cols ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.footer-cols li + li { margin-top: 12px; }
.footer-cols a {
  font-size: 14px;
  color: rgba(252, 250, 246, 0.8);
}
.footer-cols a:hover { color: var(--ivory); }
.site-footer .rule {
  background: rgba(252, 250, 246, 0.15);
  margin-top: clamp(64px, 7vw, 80px);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--stone);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.footer-bottom address {
  font-style: normal;
  line-height: 1.7;
}
.footer-bottom a { color: rgba(252, 250, 246, 0.8); }
.footer-mark {
  margin-top: clamp(48px, 6vw, 64px);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 270px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(252, 250, 246, 0.06);
  user-select: none;
}

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.error-404 .btn { margin-top: 40px; }

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* Line-by-line headline reveal — observer attaches to the wrapper,
   never the clipped children. */
.reveal-lines .line {
  display: block;
  overflow: hidden;
}
.reveal-lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}
.reveal-lines.in .line > span { transform: none; }
.reveal-lines.in .line:nth-child(2) > span { transition-delay: 0.12s; }
.reveal-lines.in .line:nth-child(3) > span { transition-delay: 0.24s; }
.reveal-lines.in .line:nth-child(4) > span { transition-delay: 0.36s; }

/* Image unmask */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}
.img-reveal img {
  transform: scale(1.15);
  transition: transform 1.7s var(--ease);
}
.img-reveal.in { clip-path: inset(0 0 0% 0); }
.img-reveal.in img { transform: scale(1); }
@media (hover: hover) {
  a:hover .img-reveal.in img,
  .card:hover .img-reveal.in img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-lines .line > span,
  .img-reveal,
  .img-reveal img,
  .menu-list a {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
  .scroll-cue { animation: none; }
}

/* WordPress essentials */
.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;
}
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky { display: block; }
.gallery-caption,
.bypostauthor { display: block; }
