/*
Theme Name:   Wellness360 Group Child
Description:  Child theme for Astra
Author:       Francois Van Der Elst
Template:     astra
Version:      1.0.0
Text Domain:  wellness360group-child
*/

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-dark: #141414;
  --grey-mid: #2a2a2a;
  --grey-light: #f4f4f4;
  --grey-accent: #a3a3a3;
  --grey-rule: #e0e0e0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { background:var(--black); color:var(--white); font-family:var(--font-body); overflow-x:hidden; }
img { display:block; max-width:100%; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* Neutralise Astra wrappers so our full-bleed sections control layout */
#page, #content, .site, .site-content, .ast-container,
.entry-content, .ast-article-single {
  background:transparent !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  width:100% !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--black); }
::-webkit-scrollbar-thumb { background:#333; }

/* ── NAV ── */
nav.w360-nav {
  position:fixed; top:0; left:0; right:0; z-index:200;
  background:#000000;
  border-bottom:1px solid #1e1e1e;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 48px; height:116px;
}
nav.w360-nav { transition:transform .35s ease; }
nav.w360-nav.nav--hidden { transform:translateY(-100%); }
body.admin-bar nav.w360-nav { top:32px; }
@media screen and (max-width:782px) {
  body.admin-bar nav.w360-nav { top:46px; }
}
.nav-logo { display:flex; align-items:center; }
.nav-logo img { height:58px; width:auto; display:block; }
.nav-links { display:flex; gap:2px; list-style:none; align-items:center; }
.nav-links a {
  display:inline-block;
  background:none; border:none; color:var(--grey-accent);
  font-family:var(--font-body); font-size:11.5px; font-weight:500;
  letter-spacing:1.2px; text-transform:uppercase; padding:9px 14px;
  cursor:pointer; border-radius:2px; transition:all .2s;
}
.nav-links a:hover, .nav-links a.active { color:var(--white); background:#1a1a1a; }
.nav-cta { background:var(--white)!important; color:var(--black)!important; font-weight:700!important; border-radius:0!important; }

/* Nav links pick up the home page's own font and get a flat colour-shift
   hover (no underline). The CTA ("Book a Call") gets its own red hover
   with white text and some breathing room before it. */
.nav-links a {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  position: relative; background: none; overflow: visible;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: none; transform: translateY(-1px);
}
.nav-links a.nav-cta { margin-left: 24px; }
.nav-links a.nav-cta:hover {
  color: #fff !important; background: #ea573f !important; transform: none;
}
.nav-cta:hover { background:#ddd!important; }
.nav-hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; }
.nav-hamburger span { display:block; width:22px; height:2px; background:var(--white); transition:all .3s; }

/* ── PAGE WRAPPER ── */
.w360-page { padding-top:116px; }

/* ── TYPE SCALE ── */
.label { font-size:10px; letter-spacing:4px; text-transform:uppercase; color:var(--grey-accent); font-weight:500; }
.label-light { color:#999; }
.h-display { font-family:var(--font-display); line-height:.93; letter-spacing:1.5px; }
.h1 { font-size:clamp(48px,6.2vw,80px); }
.h2 { font-size:clamp(36px,4.5vw,60px); }
.h3 { font-size:clamp(24px,3vw,38px); }
.body { font-size:15px; line-height:1.75; color:#bbb; font-weight:300; }
.body-sm { font-size:13px; line-height:1.7; color:#888; font-weight:400; }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; gap:10px; font-family:var(--font-body); font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; padding:15px 30px; border:none; cursor:pointer; transition:all .2s; }
.btn-white { background:var(--white); color:var(--black); }
.btn-white:hover { background:#e0e0e0; }
.btn-ghost { background:transparent; color:var(--white); border:1px solid #3a3a3a; }
.btn-ghost:hover { border-color:var(--white); }
.btn-ghost-dark { background:transparent; color:var(--black); border:1px solid #ccc; }
.btn-ghost-dark:hover { border-color:var(--black); background:#f0f0f0; }

/* ── LAYOUT ── */
.wrap { max-width:1240px; margin:0 auto; padding:0 60px; }
.sec { padding:100px 60px; max-width:1240px; margin:0 auto; }
.sec-full { padding:100px 60px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:28px; }
.grid4 { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:2px; }
.divider { height:1px; background:#1a1a1a; }
.divider-light { height:1px; background:var(--grey-rule); }

/* ── SECTION BACKGROUNDS ── */
.bg-black { background:var(--black); }
.bg-dark { background:var(--grey-dark); }
.bg-mid { background:var(--grey-mid); }
.bg-light { background:var(--grey-light); color:var(--black); }
.bg-light .body { color:#555; }
.bg-light .label { color:#999; }

/* ── IMAGE BLOCKS ── */
.img-cover { width:100%; object-fit:cover; display:block; }
.img-fill { width:100%; height:100%; object-fit:cover; display:block; }

/* ── HERO ── */
.hero-grid { display:grid; grid-template-columns:1fr 1fr; min-height:calc(100vh - 116px); }
.hero-left { display:flex; flex-direction:column; justify-content:center; padding:80px 64px 80px 60px; background:var(--black); }
.hero-right { position:relative; overflow:hidden; }
.hero-right img { width:100%; height:100%; object-fit:cover; display:block; will-change:transform; }
.hero-right::after { content:''; position:absolute; inset:0; background:linear-gradient(to right, rgba(10,10,10,.7) 0%, transparent 40%); }
.hero-tagline { font-size:13px; color:#666; letter-spacing:2px; text-transform:uppercase; margin-bottom:24px; font-weight:500; }
.hero-btns { display:flex; gap:12px; margin-top:40px; flex-wrap:wrap; }

/* ── STAT STRIP ── */
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid #1a1a1a; }
.stat-item { padding:36px 40px; border-right:1px solid #1a1a1a; display:flex; flex-direction:column; gap:6px; }
.stat-item:last-child { border-right:none; }
.stat-num { font-family:var(--font-display); font-size:44px; letter-spacing:2px; color:var(--white); line-height:1; }
.stat-label { font-size:11px; color:var(--grey-accent); letter-spacing:1px; text-transform:uppercase; }

/* ── PROBLEM SECTION ── */
.bg-white { background:var(--white); color:var(--black); }
.bg-white .body { color:#555; }
.bg-white .label { color:#666; }
.bg-white .pain-item { border-bottom-color:#e0e0e0; }
.bg-white .pain-dash { color:#aaa; }
.bg-white .pain-text { color:#333; }
.stat-cards { display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:36px; }
.stat-card { background:var(--black); padding:28px 24px; border-top:3px solid #222; transition:border-color .2s; }
.stat-card:hover { border-top-color:var(--white); }
.stat-card-num { font-family:var(--font-display); font-size:40px; color:var(--white); letter-spacing:1px; }
.stat-card-label { font-size:11px; color:var(--grey-accent); margin-top:4px; line-height:1.5; }
.pain-item { display:flex; align-items:flex-start; gap:20px; padding:20px 0; border-bottom:1px solid #222; transition:padding-left .35s ease; cursor:default; }
.pain-item:hover { padding-left:14px; }
.pain-dash { font-family:var(--font-display); font-size:20px; color:#333; min-width:20px; margin-top:2px; }
.pain-text { font-size:14px; color:#ccc; font-weight:400; }

/* ── IMAGE GALLERY STRIP ── */
.img-strip { display:grid; grid-template-columns:2fr 1fr 1fr; gap:2px; height:420px; }
.img-strip-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:2px; height:340px; }

/* ── ENGAGEMENT MODES ── */
.modes-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:0; }

.modes-tabs { margin-top:0; background:var(--black); }

.modes-toggle-wrap { display:flex; justify-content:center; padding:0 60px 28px; }
.modes-toggle { display:inline-flex; gap:2px; background:var(--grey-mid); padding:4px; border:1px solid #2a2a2a; }
.modes-toggle-btn {
  font-family:var(--font-body); font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  padding:22px 48px; background:transparent; color:var(--grey-accent); border:none; cursor:pointer;
  transition:background .3s ease, color .3s ease;
}
.modes-toggle-btn:hover { color:var(--white); }
.modes-toggle-btn.is-active { background:var(--white); color:var(--black); }
@media (max-width:600px) {
  .modes-toggle-btn { padding:16px 22px; font-size:11px; }
}

.mode-panel { text-align:center; padding:56px 60px 106px; }
.mode-panel > p.body { max-width:560px; margin-left:auto; margin-right:auto; }
.mode-panel-dark { background:var(--black); }
.modes-panels .mode-panel { animation:mode-panel-in .4s ease; }
@keyframes mode-panel-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.step-pills { display:flex; flex-wrap:wrap; gap:14px; margin-top:36px; justify-content:center; }
.pill { font-size:13px; letter-spacing:1px; text-transform:uppercase; font-weight:600; padding:26px 30px; min-width:120px; text-align:center; border:1px solid #3a3a3a; color:#888; }
.pill-white { background:var(--white); color:var(--black); border-color:var(--white); }
.pill-dark { background:var(--black); color:var(--white); border-color:var(--black); }
.pill-outline-dark { border-color:#aaa; color:#555; }
.arrow-sep { font-size:18px; color:#444; display:flex; align-items:center; }
.arrow-sep-dark { color:#aaa; }

/* ── PILLARS ── */
.pillars-row { display:grid; grid-template-columns:repeat(5,1fr); gap:2px; margin-top:56px; }
.pillar { padding:44px 28px; border-top:3px solid #252525; background:var(--grey-mid); transition:border-color .2s, background .2s; cursor:default; }
.pillar:hover { border-top-color:var(--white); background:#333; }
.pillar.hl { background:var(--white); border-top-color:var(--black); }
.pillar.hl .pil-num { color:#aaa; }
.pillar.hl .pil-name { color:var(--black); }
.pillar.hl .pil-desc { color:#666; }
.pil-num { font-family:var(--font-display); font-size:30px; color:#3a3a3a; }
.pil-name { font-family:var(--font-display); font-size:22px; letter-spacing:1px; color:var(--white); margin:14px 0 10px; }
.pil-desc { font-size:11.5px; color:#888; line-height:1.6; }

/* ── CAPABILITY CARDS ── */
.cap-grid { display:grid; grid-template-columns:repeat(3,1fr); column-gap:2px; row-gap:6px; margin-top:48px; }
.cap-card { background:var(--grey-light); padding:36px; border-left:4px solid var(--black); color:var(--black); transition:background .2s; cursor:default; }
.cap-card:hover { background:#ebebeb; }
.cap-card h4 { font-size:13px; font-weight:700; margin-bottom:6px; }
.cap-card p { font-size:11.5px; color:#666; line-height:1.6; min-height:36.8px; }

.cap-list { margin-top:48px; }
.cap-row {
  display:grid; grid-template-columns:56px 280px 1fr; align-items:center; column-gap:32px;
  padding:26px 20px; margin:0 -20px; border-bottom:1px solid #222;
  background:transparent; transition:background .3s ease, border-color .3s ease;
}
.cap-row:hover { background:rgba(255,255,255,0.04); border-color:#3a3a3a; }
.cap-row--last { border-bottom:none; }
.cap-num { font-family:var(--font-display); font-size:20px; color:#444; }
.cap-title { font-size:16px; font-weight:700; color:var(--white); }
.cap-desc { font-size:13px; color:#888; line-height:1.6; }
@media (max-width:900px) {
  .cap-row { grid-template-columns:40px 1fr; row-gap:6px; }
  .cap-desc { grid-column:2; }
}

/* ── PARTNERS SECTION ── */
.partners-full { background:var(--black); padding:80px 60px; }
.partner-card { background:var(--grey-mid); border:1px solid #333; padding:48px; border-top:3px solid var(--white); }
.partner-logo { height:36px; width:auto; display:block; margin-bottom:20px; }
.partner-stats { display:flex; gap:16px; margin-top:28px; }
.p-stat { display:flex; flex-direction:column; gap:4px; flex:1 1 0; min-width:0; }
.p-stat-num { font-family:var(--font-display); font-size:36px; color:var(--white); letter-spacing:1px; }
.p-stat-label { font-size:10px; color:#666; letter-spacing:2px; text-transform:uppercase; line-height:1.4; }

/* ── ABOUT / RYAN ── */
.ryan-grid { display:grid; grid-template-columns:5fr 7fr; gap:0; min-height:600px; }
.ryan-img { position:relative; overflow:hidden; }
.ryan-img img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.ryan-content { background:var(--grey-dark); padding:72px 64px; display:flex; flex-direction:column; justify-content:center; }
.ryan-quote { font-family:var(--font-display); font-size:22px; letter-spacing:1px; color:var(--white); line-height:1.2; margin:28px 0 32px; border-left:3px solid var(--white); padding-left:24px; }

/* ── IMPACT ROWS ── */
.impact-row { display:flex; align-items:center; gap:0; border-bottom:1px solid #1e1e1e; padding:22px 0; transition:padding-left .35s ease; cursor:default; }
.impact-row:hover { padding-left:14px; }
.impact-dash { min-width:48px; font-family:var(--font-display); font-size:18px; color:#333; }
.impact-text { font-size:13.5px; color:#ddd; }

/* ── SECTORS ── */
.sector-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.sector-item { background:var(--grey-mid); border-top:3px solid transparent; transition:all .2s; cursor:default; overflow:hidden; }
.sector-item:hover { background:#333; border-top-color:var(--white); }
.sector-item-img { width:100%; height:160px; overflow:hidden; }
.sector-item-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.sector-item:hover .sector-item-img img { transform:scale(1.05); }
.sector-item-body { padding:32px 36px 40px; }
.sector-item h3 { font-family:var(--font-display); font-size:22px; letter-spacing:1px; margin-bottom:10px; }

/* ── BUSINESS SALES ── */
.listing-card { background:var(--grey-dark); border:1px solid #2a2a2a; padding:32px; display:grid; grid-template-columns:1fr auto; gap:20px; align-items:start; transition:border-color .2s; cursor:pointer; margin-bottom:2px; }
.listing-card:hover { border-color:#555; }
.listing-tag { font-size:9px; letter-spacing:3px; text-transform:uppercase; background:var(--white); color:var(--black); padding:4px 10px; font-weight:700; display:inline-block; margin-bottom:10px; }
.listing-name { font-family:var(--font-display); font-size:26px; letter-spacing:1px; margin-bottom:8px; }
.listing-meta { font-size:12px; color:var(--grey-accent); display:flex; gap:20px; flex-wrap:wrap; }
.listing-meta span::before { content:'— '; color:#3a3a3a; }

/* ── CONTACT FORM ── */
.form-field { display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.form-field label { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:#666; font-weight:600; }
.form-field input, .form-field textarea, .form-field select {
  background:#0f0f0f; border:1px solid #2a2a2a;
  color:var(--white); font-family:var(--font-body); font-size:14px;
  padding:14px 16px; outline:none; transition:border-color .2s; -webkit-appearance:none;
  width:100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color:var(--white); }
.form-field textarea { min-height:110px; resize:vertical; }
.form-field select option { background:#0f0f0f; }
.form-note { font-size:12px; padding:14px 16px; margin-bottom:22px; }
.form-note-success { background:rgba(255,255,255,0.08); border-left:3px solid var(--white); color:#ddd; }
.form-note-error { background:rgba(255,255,255,0.04); border-left:3px solid #666; color:#aaa; }
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ── FOOTER ── */
footer.w360-footer { background:#000000; border-top:1px solid #1a1a1a; padding:64px 60px 36px; }
.footer-grid { display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr; gap:60px; padding-bottom:48px; border-bottom:1px solid #1e1e1e; max-width:1240px; margin:0 auto; }
footer.w360-footer h5 { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:#303030; margin-bottom:20px; font-weight:600; }
footer.w360-footer ul { list-style:none; }
footer.w360-footer ul li { margin-bottom:12px; font-size:13px; }
footer.w360-footer ul li a { color:#474747; cursor:pointer; transition:color .2s; }
footer.w360-footer ul li a:hover { color:var(--white); }
.footer-logo { height:84px; width:auto; margin-bottom:16px; display:block; }
.footer-tagline { font-size:12px; color:#303030; line-height:1.8; max-width:260px; margin-top:4px; }
.footer-bottom { max-width:1240px; margin:28px auto 0; display:flex; justify-content:space-between; font-size:11px; color:#242424; }

/* Sitewide footer picks up the home page's own font, a wider measure
   matching its 1400px section width, and legible muted-white text
   instead of the near-black tones used previously. Headings use the
   home page's accent colour. */
footer.w360-footer { font-family:"Inter",ui-sans-serif,system-ui,sans-serif; padding:96px 40px 40px; }
.footer-grid { max-width:1400px; border-bottom-color:rgba(255,255,255,0.08); }
footer.w360-footer h5 {
  font-family:"Inter",sans-serif; font-size:12px; letter-spacing:0.25em;
  color:#fff; font-weight:600;
}
footer.w360-footer ul { margin-top:40px; }
footer.w360-footer ul li { font-size:14px; }
footer.w360-footer ul li a { color:rgba(255,255,255,0.5); }
footer.w360-footer ul li a:hover { color:#fff; }
.footer-tagline { font-family:"Inter",sans-serif; color:rgba(255,255,255,0.65); font-size:16px; max-width:240px; }
.footer-social { display:flex; gap:20px; margin-top:36px; }
.footer-social a {
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.8); transition:color .3s ease;
}
.footer-social a:hover { color:#fff; }
.footer-social svg { width:24px; height:24px; }
.footer-bottom { max-width:1400px; color:rgba(255,255,255,0.3); font-size:11px; }

/* ── SOLUTIONS PAGE ── */
.sol-entry {
  display:grid; grid-template-columns:300px 1fr 2fr; gap:0;
  width:100%; margin:20px 0;
  background:transparent;
  transition:background .25s ease;
  cursor:default;
}
.sol-entry:first-child { margin-top:0; }
.sol-entry.sr { transition:background .25s ease, opacity .7s ease-out, transform .7s ease-out; }
.sol-entry:hover {
  background:rgba(255,255,255,0.04);
}
.sol-entry-img { overflow:hidden; }
.sol-entry-img img { width:100%; height:100%; min-height:240px; object-fit:cover; display:block; transition:transform .5s ease; }
.sol-entry:hover .sol-entry-img img { transform:scale(1.06); }
.sol-entry-meta { padding:64px 40px; max-width:1240px; display:flex; flex-direction:column; justify-content:center; }
.sol-entry-body { padding:64px 60px 64px 40px; }

/* ── TAGS ── */
.tag { display:inline-block; font-size:9px; letter-spacing:2px; text-transform:uppercase; font-weight:600; padding:5px 12px; border:1px solid #3a3a3a; color:#666; margin-right:6px; margin-bottom:6px; }
.tag-solid { background:var(--white); color:var(--black); border-color:var(--white); }

/* ── MISC ── */
.text-center { text-align:center; }
.mt-sm { margin-top:16px; }
.mt { margin-top:28px; }
.mt-lg { margin-top:48px; }
.mt-xl { margin-top:72px; }
.mb-sm { margin-bottom:16px; }
.mb { margin-bottom:28px; }
.mb-lg { margin-bottom:48px; }
.gap-sm { gap:12px; }
.flex { display:flex; }
.flex-col { flex-direction:column; }
.flex-wrap { flex-wrap:wrap; }
.items-center { align-items:center; }
.items-end { align-items:flex-end; }
.justify-between { justify-content:space-between; }
.justify-center { justify-content:center; }

/* ── RESPONSIVE ── */
@media (max-width:1040px) {
  .nav-cta { display:none; }
  .nav-hamburger { display:flex; }
  .nav-links {
    display:flex; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top:100%; left:0; right:0;
    background:#0a0a0a; padding:12px 24px 24px;
    border-top:1px solid #1e1e1e;
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  nav.w360-nav.nav--open .nav-links { opacity:1; visibility:visible; transform:translateY(0); transition:opacity .28s ease, transform .28s ease; }
  nav.w360-nav.nav--open .nav-links a { padding:14px 0; font-size:14px; }
  nav.w360-nav.nav--open .nav-cta { display:inline-block; margin-top:8px; text-align:center; }
  nav.w360-nav.nav--open .nav-hamburger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  nav.w360-nav.nav--open .nav-hamburger span:nth-child(2) { opacity:0; }
  nav.w360-nav.nav--open .nav-hamburger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
}

@media (max-width:900px) {
  .hero-grid, .grid2, .grid3, .ryan-grid, .modes-grid, .problem-grid, .sol-entry { grid-template-columns:1fr; }
  .pillars-row { grid-template-columns:1fr 1fr; }
  .stat-strip { grid-template-columns:1fr 1fr; }
  .hero-right { display:none; }
  nav.w360-nav { padding:0 24px; }
  .sec, .sec-full { padding:60px 24px; }
  .sol-entry-meta, .sol-entry-body { padding:32px 24px; }
  .wrap { padding:0 24px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .img-strip, .img-strip-3 { grid-template-columns:1fr; height:auto; }
  .img-strip img, .img-strip-3 img { height:220px; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATION — line-masked H1 reveal
══════════════════════════════════════════════════════════════ */
.line-mask { display:block; overflow:hidden; }
.line-inner {
  display:block;
  transform:translateY(115%);
  transition:transform .85s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
.line-split.reveal-in .line-inner { transform:translateY(0); }

/* ══════════════════════════════════════════════════════════════
   ANIMATION — general scroll reveal (fade + rise)
══════════════════════════════════════════════════════════════ */
.sr {
  opacity:0;
  transform:translateY(32px);
  transition:opacity .7s ease-out, transform .7s ease-out;
}
.sr.reveal-in { opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .line-inner { transition:none; transform:translateY(0); }
  .sr { opacity:1; transform:none; transition:none; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATION — sticky reveal layer (home page, after Problem section)
══════════════════════════════════════════════════════════════ */
.problem-sticky-wrap { position:relative; }
@media (min-width:901px) {
  .problem-sticky-wrap .problem-pin {
    position:sticky;
    top:0;
    z-index:1;
    min-height:100vh;
    display:flex;
    align-items:stretch;
  }
  .problem-pin > * { width:100%; }
  body.admin-bar .problem-sticky-wrap .problem-pin { top:32px; min-height:calc(100vh - 32px); }
  .problem-pin-spacer { display:none; }
}
.reveal-layer {
  position:relative;
  z-index:2;
  background:var(--black);
  isolation:isolate;
}
@media (min-width:901px) {
  .problem-pin { isolation:isolate; }
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE — looping ticker
══════════════════════════════════════════════════════════════ */
.marquee {
  background:var(--grey-dark);
  border-top:1px solid #222;
  border-bottom:1px solid #222;
  height:64px;
  display:flex;
  align-items:center;
  overflow:hidden;
  white-space:nowrap;
}
.marquee__track {
  display:flex;
  align-items:center;
  flex-shrink:0;
  animation:marquee-scroll 26s linear infinite;
  will-change:transform;
}
.marquee:hover .marquee__track { animation-play-state:paused; }
.marquee__item {
  font-family:var(--font-body);
  font-size:12px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--white);
  white-space:nowrap;
}
.marquee__dot { color:var(--grey-accent); padding:0 28px; }
@keyframes marquee-scroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation:none; }
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════════════ */
.project-intro p {
  font-family:var(--font-body);
  font-weight:300;
  font-size:18px;
  line-height:1.9;
  color:#bbb;
}
.project-intro p + p { margin-top:24px; }

.project-gallery { display:flex; flex-direction:column; gap:2px; }
.project-gallery-img { width:100%; height:70vh; overflow:hidden; }
.project-gallery-img img { width:100%; height:100%; object-fit:cover; display:block; }

/* Custom per-project photo layout (project_photo_rows meta): rows of 1 or
   2 images, all masked to a consistent height via object-fit so mixed
   source aspect ratios still line up cleanly. */
.project-photo-grid { display:flex; flex-direction:column; gap:16px; max-width:1080px; margin:0 auto 60px; padding:0 60px; }
.project-photo-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.project-photo { overflow:hidden; height:460px; }
.project-photo--full { height:600px; }
.project-photo img { width:100%; height:100%; object-fit:cover; display:block; }

.project-nav { display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.project-nav-card {
  display:flex; align-items:center; gap:24px;
  background:var(--grey-dark); padding:40px;
  transition:background .25s ease;
}
.project-nav-card:hover { background:var(--grey-mid); }
.project-nav-card--next { flex-direction:row-reverse; text-align:right; }
.project-nav-thumb { width:120px; height:90px; flex-shrink:0; overflow:hidden; }
.project-nav-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.project-nav-card:hover .project-nav-thumb img { transform:scale(1.06); }
.project-nav-meta h3 { color:var(--white); }
.project-nav-meta--next { align-items:flex-end; }

/* Grid landing page */
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.project-card {
  position:relative; display:block; overflow:hidden;
  height:420px; border-radius:6px;
}
.project-card img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; transition:transform .6s ease;
}
.project-card:hover img { transform:scale(1.08); }
.project-card-color { position:absolute; inset:0; }
.project-photo--color { display:flex; }
.project-card-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 75%);
  pointer-events:none;
}
.project-card-title {
  position:absolute; left:0; right:0; bottom:0;
  padding:32px;
  font-family:var(--font-display); font-size:24px; letter-spacing:1px; line-height:1.2;
  color:var(--white);
}

@media (max-width:900px) {
  .project-nav { grid-template-columns:1fr; }
  .project-nav-card--next { flex-direction:row; text-align:left; }
  .project-nav-meta--next { align-items:flex-start; }
  .project-grid { grid-template-columns:1fr; }
  .project-gallery-img { height:50vh; }
  .project-photo-row { grid-template-columns:1fr; }
  .project-photo { height:280px; }
  .project-photo--full { height:340px; }
}
