/* ============================================================
   TECHI DESIGN SYSTEM
   Luxury home technology — Park City, Utah
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Monochrome system — charcoal / white / platinum (distinct from Cast's warm gold) */
  --bg: #0E0E10;          /* near-black neutral charcoal */
  --bg-elev: #161618;     /* elevated charcoal */
  --bg-elev-2: #1E1E21;   /* second elevation */
  --ink: #F4F3F1;          /* crisp warm-neutral white */
  --ink-dim: #A2A2A6;      /* secondary gray */
  --ink-faint: #6A6A6E;    /* tertiary gray */
  --line: rgba(244,243,241,.12);
  --line-strong: rgba(244,243,241,.24);
  --gold: #C7CACE;         /* platinum-silver accent (token name kept for cascade) */
  --gold-soft: #9A9DA1;    /* softer platinum */
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --nav-h: 80px;

  --h1: clamp(44px, 6vw, 88px);
  --h2: clamp(34px, 4.5vw, 56px);
  --h3: clamp(24px, 2.4vw, 32px);
  --eyebrow: 12px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* --- Reset --- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  font-weight: 300;
  letter-spacing: .01em;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* --- Preloader --- */
.preloader{
  position:fixed;inset:0;z-index:9999;overflow:hidden;
  background:#0a0a0c;
  display:grid;place-items:center;
  transition:opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader.loaded{opacity:0;visibility:hidden;}
.preloader__sky{
  position:absolute;inset:0;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(120,60,210,.10), transparent 75%),
    radial-gradient(90% 80% at 50% 110%, rgba(60,30,110,.18), transparent 75%);
  filter:blur(28px);
  animation:skyPulse 2.6s ease-in-out infinite;
}
.preloader__bolt{
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
}
.bolt{
  fill:none;
  stroke:#ffffff;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 3px #ffffff)
         drop-shadow(0 0 8px #e7d5ff)
         drop-shadow(0 0 18px #9a5be0);
  opacity:0;
}
.bolt--main   { animation:strike 2.6s ease-out infinite; }
.bolt--b1     { animation:strike 2.6s ease-out .10s infinite; }
.bolt--b2     { animation:strike 2.6s ease-out .14s infinite; }
.bolt--b3     { animation:strike 2.6s ease-out .22s infinite; }
.bolt--b4     { animation:strike 2.6s ease-out .18s infinite; }
.bolt--alt    { animation:strike 2.6s ease-out 1.05s infinite; stroke-width:1.6; opacity:0; }
.bolt--alt-b1 { animation:strike 2.6s ease-out 1.18s infinite; stroke-width:1.4; }
@keyframes strike{
  0%,5%   { stroke-dasharray: 0 1800; opacity: 0; stroke:#ffffff; }
  8%      { stroke-dasharray: 0 1800; opacity: .25; }
  12%     { stroke-dasharray: 1800 0; opacity: 1; stroke:#ffffff; }
  20%     { opacity: 1; stroke:#ffffff; }
  32%     { opacity: 1; stroke:#f1e6ff; }
  48%     { opacity: .65; stroke:#b89be8; }
  65%     { opacity: 0; }
  100%    { opacity: 0; }
}
.preloader__center{
  position:relative;z-index:5;
  display:flex;align-items:center;justify-content:center;
}
.preloader__logo{
  width:clamp(200px, 30vw, 420px);
  height:auto;display:block;overflow:visible;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.10));
  animation:logoGlow 2.6s ease-in-out infinite;
}
.preloader__logo-shape{
  fill:#1c1424;
  stroke:rgba(220,210,255,.70);
  stroke-width:2.4;
  paint-order:stroke fill;
  animation:signOn 2.6s ease-in-out infinite;
}
@keyframes logoGlow{
  0%,100% { filter:drop-shadow(0 0 2px rgba(255,255,255,.08)); transform:translateY(0); }
  11%     { filter:drop-shadow(0 0 22px #ffffff) drop-shadow(0 0 42px rgba(200,160,255,.60)); transform:translateY(-1px); }
  16%     { filter:drop-shadow(0 0 34px #ffffff) drop-shadow(0 0 64px rgba(200,160,255,.70)); transform:translateY(-1px); }
  26%     { filter:drop-shadow(0 0 22px #ffffff) drop-shadow(0 0 40px rgba(170,120,235,.45)); }
  60%     { filter:drop-shadow(0 0 4px rgba(255,255,255,.08)); transform:translateY(0); }
}
@keyframes signOn{
  0%,8%   { fill:#1c1424; stroke:rgba(220,210,255,.70); stroke-width:2.4; }
  11%     { fill:#ffffff; stroke:#ffffff; stroke-width:2.6; }
  18%     { fill:#ffffff; stroke:#ffffff; stroke-width:2.6; }
  26%     { fill:#f6efff; stroke:#f6efff; stroke-width:2.4; }
  40%     { fill:#c9b0ef; stroke:rgba(220,200,255,.80); stroke-width:2.2; }
  60%     { fill:#5e4a86; stroke:rgba(220,200,255,.60); stroke-width:2.2; }
  80%,100%{ fill:#1c1424; stroke:rgba(220,210,255,.70); stroke-width:2.4; }
}
.preloader__flash{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(55% 55% at 50% 50%, rgba(255,255,255,.16), transparent 70%);
  opacity:0;
  animation:flash 2.6s ease-out infinite;
}
@keyframes flash{
  0%,9%   { opacity:0; }
  13%     { opacity:.75; }
  22%     { opacity:.25; }
  45%     { opacity:0; }
  100%    { opacity:0; }
}
@keyframes skyPulse{
  0%,100% { opacity:.45; }
  13%     { opacity:.85; }
  35%     { opacity:.5; }
}
@media (prefers-reduced-motion: reduce){
  .bolt, .preloader__sky, .preloader__logo, .preloader__flash{ animation:none !important; }
  .bolt{ opacity:.4; }
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,14,14,0);
  backdrop-filter: blur(0);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,14,14,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links {
  display: flex; gap: 34px; list-style: none; margin: 0; padding: 0;
  font-size: 13px; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative; color: var(--ink); opacity: .82;
  transition: opacity .25s var(--ease);
  padding: 6px 0;
}
.nav__links a:hover, .nav__links a.active { opacity: 1; }
.nav__links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
}
.nav__cta {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { border-color: var(--gold); background: var(--gold); color: var(--bg); }

/* Right-side nav group: Cast lockup + Contact */
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__cast {
  display: flex; align-items: center; gap: 9px;
  padding-right: 22px; border-right: 1px solid var(--line);
}
.nav__cast img { height: 34px; width: 34px; display: block; }
.nav__cast-wm {
  font-family: 'Playfair Display', serif; font-weight: 500; font-size: 19px; line-height: 1;
  letter-spacing: .12em; color: var(--cast-gold);
  white-space: nowrap; transition: color .3s var(--ease);
}
.nav__cast:hover .nav__cast-wm { color: #d9bd84; }

body.menu-open { overflow: hidden; }
.nav__toggle {
  display: none;
  position: relative; z-index: 101;
  width: 44px; height: 44px;
  padding: 11px 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: transparent; border: 0; cursor: pointer;
}
.nav__toggle::before {
  content: ''; position: absolute; inset: -6px;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px;
  height: 1.5px; background: var(--ink);
  transition: .3s var(--ease);
  pointer-events: none;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 13px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 1280px) {
  .nav__links { display: none; }
  .nav__cast-wm { display: none; }
  .nav__cast { margin-right: 14px; padding-right: 16px; }
  .nav__right { gap: 14px; }
  body.menu-open { overflow: hidden; }
.nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 22px;
    position: fixed; top: var(--nav-h); left: 0;
    width: 100vw;
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    z-index: 99;
    background: rgba(14,14,14,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 40px var(--gutter) 48px;
    align-items: flex-start;
    font-size: 22px;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .nav.open .nav__links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244,243,241,.08);
    font-size: 20px;
    letter-spacing: .15em;
  }
  .nav.open .nav__links li { width: 100%; list-style: none; }
}
@media (max-width: 560px) {
  .nav__cast { display: none; }
  .nav__cta { padding: 10px 16px; letter-spacing: .12em; }
}
@media (max-width: 400px) {
  .nav__brand img { height: 24px; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 88px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: slow-zoom 22s ease-out forwards;
}
@keyframes slow-zoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,.45) 0%, rgba(14,14,14,.2) 35%, rgba(14,14,14,.85) 100%);
}
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  font-size: var(--eyebrow); letter-spacing: .32em; text-transform: uppercase;
  color: #F4F3F1; margin-bottom: 26px;
  padding-left: 52px; position: relative;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.3);
}
.hero__eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 38px; height: 1px; background: #F4F3F1;
}
.hero__title {
  font-size: var(--h1);
  max-width: 18ch;
  font-weight: 300;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 0 2px rgba(0,0,0,0.3);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 58ch;
  color: #F4F3F1;
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.3);
}
.hero__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Full-screen hero (homepage only) */
.hero--full { min-height: 100vh; align-items: center; }
.hero--full .hero__title { max-width: 20ch; }

/* Rotating hero slideshow */
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slides::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,14,16,.5) 0%, rgba(14,14,16,.25) 35%, rgba(14,14,16,.88) 100%);
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active {
  opacity: 1;
  animation: slow-zoom 8s ease-out forwards;
}
.hero__build {
  position: absolute; top: calc(var(--nav-h) + 26px); right: var(--gutter); z-index: 3;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: rgba(14,14,16,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); padding: 10px 18px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.hero__build.show { opacity: 1; transform: none; }
@media (max-width: 640px) { .hero__build { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid var(--line-strong);
  transition: all .35s var(--ease);
  color: var(--ink);
}
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--gold { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--gold:hover { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost { background: transparent; }
.btn__arrow {
  width: 18px; height: 1px; background: currentColor; position: relative;
  transition: width .35s var(--ease);
}
.btn__arrow::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .btn__arrow { width: 28px; }

/* --- Section scaffolding --- */
.section { padding: clamp(80px, 10vw, 160px) var(--gutter); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__head { margin-bottom: clamp(48px, 6vw, 88px); }
.section__head--center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: var(--eyebrow); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.section__title {
  font-size: var(--h2);
  max-width: 22ch;
  font-weight: 300;
}
.section__head--center .section__title { margin-left: auto; margin-right: auto; }
.section__lead {
  margin-top: 26px; font-size: 17px; max-width: 62ch;
  color: var(--ink-dim); font-weight: 300; line-height: 1.7;
}
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }

.section--dark { background: var(--bg); }
.section--elev { background: var(--bg-elev); }
.section--line { border-top: 1px solid var(--line); }

/* --- Division cards (homepage 5-up) --- */
.divisions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1400px) { .divisions { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (max-width: 900px) { .divisions { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px) { .divisions { grid-template-columns: 1fr; } }

.division {
  position: relative; display: block;
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--bg-elev);
  isolation: isolate;
}
.division__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: brightness(.55) saturate(.9);
}
.division:hover .division__img { transform: scale(1.06); filter: brightness(.65) saturate(1); }
.division__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px;
  background: linear-gradient(180deg, transparent 40%, rgba(14,14,14,.85) 100%);
}
.division__eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.division__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1;
}
.division__desc {
  margin-top: 10px;
  font-size: 14px; color: var(--ink-dim); line-height: 1.55;
  max-width: 28ch;
}
.division__arrow {
  margin-top: 22px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.division__arrow::after {
  content: ''; width: 22px; height: 1px; background: currentColor;
  transition: width .35s var(--ease);
}
.division:hover .division__arrow::after { width: 34px; }

/* --- Feature grid (3-up list) --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 32px 0; border-top: 1px solid var(--line); }
.feature__num {
  font-family: var(--serif); font-size: 16px; color: var(--gold);
  letter-spacing: .18em; margin-bottom: 18px; display: block;
}
.feature__title { font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.feature__desc { font-size: 15px; color: var(--ink-dim); line-height: 1.7; }

/* --- Split (image + copy) --- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split--reverse .split__media { order: 0; } }
.split__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__title { font-size: var(--h2); max-width: 16ch; font-weight: 300; }
.split__lead { margin-top: 24px; color: var(--ink-dim); font-size: 17px; line-height: 1.75; }
.split__list { list-style: none; padding: 0; margin: 36px 0 0; }
.split__list li {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
  font-size: 15px; color: var(--ink);
}
.split__list li::before {
  content: ''; width: 6px; height: 6px; background: var(--gold);
  flex: 0 0 auto; transform: translateY(2px); border-radius: 50%;
}
.split__list li:last-child { border-bottom: 1px solid var(--line); }
.split__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* One Interface — rotating category media */
.oneint { position: relative; }
.oneint__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s var(--ease);
}
.oneint__slide.is-active { opacity: 1; }
.oneint__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 20px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(14,14,16,.85));
}
.split__list li { transition: color .4s var(--ease); }
.split__list li.is-hl { color: var(--gold); }
.split__list li::before { transition: background .4s var(--ease), transform .4s var(--ease); }
.split__list li.is-hl::before { background: var(--gold); transform: translateY(2px) scale(1.5); }

/* --- Masonry gallery --- */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--bg-elev); }
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g1 { grid-column: span 5; grid-row: span 2; aspect-ratio: 4/5; }
.gallery .g2 { grid-column: span 4; aspect-ratio: 4/3; }
.gallery .g3 { grid-column: span 3; aspect-ratio: 1/1; }
.gallery .g4 { grid-column: span 4; aspect-ratio: 4/3; }
.gallery .g5 { grid-column: span 3; aspect-ratio: 1/1; }
.gallery .g6 { grid-column: span 7; grid-row: span 2; aspect-ratio: 16/9; }
.gallery .g7 { grid-column: span 5; aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure, .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5, .gallery .g6, .gallery .g7 {
    grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3;
  }
}

/* --- Partners strip --- */
.partners-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px;
  align-items: center; padding: 0;
}
@media (max-width: 900px) { .partners-strip { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.partners-strip__item {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px;
}
.partners-strip__item img {
  max-height: 30px; max-width: 140px; width: auto; object-fit: contain;
  opacity: .55; filter: brightness(0) invert(1);
  transition: opacity .35s var(--ease);
}
.partners-strip__item:hover img { opacity: 1; }

/* --- Partners grid (partners.html) --- */
.partners-groups { display: flex; flex-direction: column; gap: 80px; }
.partners-group__title {
  font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 36px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.partners-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partners-grid__item {
  background: var(--bg);
  aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.partners-grid__item:hover { background: var(--bg-elev); }
.partners-grid__item img {
  max-height: 24px; max-width: 100px; width: auto; object-fit: contain;
  opacity: .75; filter: brightness(0) invert(1);
  transition: opacity .35s var(--ease);
}
.partners-grid__item:hover img { opacity: 1; }
.partners-grid__item .txt {
  font-family: var(--serif); font-size: 22px; color: var(--ink);
  opacity: .75; transition: opacity .35s var(--ease);
}
.partners-grid__item:hover .txt { opacity: 1; }

/* --- Call card (contact popup) --- */
.callcard { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.callcard[hidden] { display: none; }
.callcard__backdrop { position: absolute; inset: 0; background: rgba(8,8,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.callcard__panel {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  padding: 48px 44px 40px; text-align: center; box-shadow: var(--shadow);
}
.callcard__x { position: absolute; top: 12px; right: 16px; font-size: 26px; line-height: 1; color: var(--ink-dim); }
.callcard__x:hover { color: var(--ink); }
.callcard__eyebrow { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.callcard__num { display: block; font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--ink); transition: color .25s var(--ease); }
.callcard__num:hover { color: var(--gold); }
.callcard__row { margin-top: 16px; }
.callcard__row a { color: var(--ink-dim); font-size: 15px; }
.callcard__row a:hover { color: var(--ink); }
.callcard__loc { display: block; margin-top: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* --- Reels / film strip (IG videos) --- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .reels { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.reel {
  position: relative; aspect-ratio: 9/16; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(14,14,16,.82));
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.reel__tag { color: var(--gold); display: block; font-size: 10px; letter-spacing: .26em; margin-bottom: 6px; }

/* --- CTA block --- */
.cta-block {
  padding: clamp(88px, 12vw, 160px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.cta-block__title { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; margin: 0 auto; font-weight: 300; }
.cta-block__title em { font-style: italic; color: var(--gold); }
.cta-block__lead { margin-top: 24px; color: var(--ink-dim); max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta-block__actions { margin-top: 48px; display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* --- Footer --- */
.footer {
  background: var(--bg);
  padding: 100px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.footer__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 64px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer__brand img { height: 40px; width: auto; margin-bottom: 22px; opacity: .92; }
.footer__brand img.footer__logo--stacked { height: 88px; }
.footer__brand p { color: var(--ink-dim); font-size: 14px; line-height: 1.7; max-width: 32ch; }
.footer__col h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { font-size: 14px; color: var(--ink-dim); transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--max); margin: 72px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-faint); letter-spacing: .1em;
}
@media (max-width: 600px) { .footer__bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* --- Page header (inner pages, shorter than hero) --- */
.page-header {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  min-height: 72dvh;
  min-height: calc(var(--vh, 1vh) * 72);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- Contact form --- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 10px; display: block;
}
.form input, .form textarea, .form select {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 12px 0; color: var(--ink);
  font-family: var(--sans); font-size: 16px;
  outline: none; transition: border-color .3s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form__submit { margin-top: 12px; align-self: flex-start; }

.contact-info h3 { font-size: 28px; font-weight: 300; margin-bottom: 24px; }
.contact-info p { color: var(--ink-dim); margin-bottom: 28px; font-size: 15px; line-height: 1.7; }
.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; margin-top: 32px; }
.contact-info dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.contact-info dd { margin: 0; font-size: 15px; color: var(--ink); }

/* --- Partner band (division pages) --- */
.pband {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
/* Adapt grid to actual item count so the last cell never leaves a dangling border line */
.pband:has(> :nth-child(7):last-child) { grid-template-columns: repeat(7, 1fr); }
.pband:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
.pband:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.pband:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pband, .pband:has(*) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .pband, .pband:has(*) { grid-template-columns: repeat(2, 1fr); } }
.pband__item {
  background: var(--bg); min-height: 104px;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.pband__item:hover { background: var(--bg-elev); }
.pband__item img {
  max-height: 22px; max-width: 96px; width: auto; object-fit: contain;
  opacity: .7; filter: brightness(0) invert(1);
  transition: opacity .35s var(--ease);
}
.pband__item:hover img { opacity: 1; }
.pband__name {
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  opacity: .72; text-align: center; line-height: 1.2;
  transition: opacity .35s var(--ease);
}
.pband__item:hover .pband__name { opacity: 1; }
/* First cell = Cast, the core partner — give it weight */
.pband__item:first-child .pband__name { color: var(--gold); opacity: .95; font-size: 21px; }

/* --- Cast core-partner feature (partners page) --- */
.cast-feature { padding-top: clamp(64px, 8vw, 120px); }
.cast-feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  justify-items: center;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}
.cast-feat > * { width: 100%; max-width: 560px; }
@media (max-width: 900px) { .cast-feat { grid-template-columns: 1fr; } }
.cast-feat__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.cast-feat__media::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(180deg, transparent 60%, rgba(14,14,14,.4));
}
.cast-feat__media img { width: 100%; height: 100%; object-fit: cover; }
.cast-feat__title { font-size: var(--h2); font-weight: 300; }
.cast-feat__title { color: var(--gold); }
.cast-feat__lead { margin-top: 22px; color: var(--ink-dim); font-size: 17px; line-height: 1.75; }

/* --- White Glove Service (services page) --- */
.wg {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(244,243,241,.05), transparent 60%),
    var(--bg-elev);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.wg__head { text-align: center; max-width: 64ch; margin: 0 auto clamp(48px, 6vw, 80px); }
.wg__head .section__title { margin: 0 auto; }
.wg__head .section__title em { font-style: italic; color: var(--gold); }
.wg__head .section__lead { margin-left: auto; margin-right: auto; }
.wg__plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .wg__plans { grid-template-columns: 1fr; } }
.wg__plan {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  padding: 44px 40px 40px; display: flex; flex-direction: column;
}
.wg__plan--feat { border-color: var(--gold-soft); }
.wg__badge {
  position: absolute; top: -1px; right: -1px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bg); background: var(--ink); padding: 7px 14px;
}
.wg__plan-name { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); font-family: var(--sans); font-weight: 400; margin-bottom: 18px; }
.wg__price { font-family: var(--serif); font-size: 56px; font-weight: 300; color: var(--ink); line-height: 1; }
.wg__price span { font-size: 16px; color: var(--ink-faint); letter-spacing: .04em; }
.wg__blurb { margin-top: 16px; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }
.wg__list { list-style: none; padding: 0; margin: 26px 0 34px; }
.wg__list li {
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink); display: flex; align-items: baseline; gap: 12px;
}
.wg__list li::before { content: ''; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex: 0 0 auto; transform: translateY(2px); }
.wg__plan .btn { margin-top: auto; align-self: flex-start; }

/* ===== Cast · For the Trade (wholesale) ===== */
:root { --cast-gold: #C2A36B; --cast-gold-soft: #9d845230; }
.btn--castgold { background: var(--cast-gold); color: #161618; border-color: var(--cast-gold); }
.btn--castgold:hover { background: transparent; color: var(--cast-gold); border-color: var(--cast-gold); }

/* Trade card on Partners page — leave-behind echo */
.cast-trade { padding: 0 0 40px; }
.trade-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: #121214; border: 1px solid var(--cast-gold-soft);
  border-radius: 4px; padding: 56px 40px 48px;
  box-shadow: var(--shadow);
}
.trade-card__eyebrow {
  display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cast-gold); margin-bottom: 18px;
}
.trade-card__title { font-family: var(--serif, 'Cormorant Garamond', serif); font-size: clamp(38px,6vw,60px); line-height: .95; color: var(--ink); font-weight: 400; }
.trade-card__sub { font-style: italic; color: var(--ink-dim); margin: 6px 0 34px; font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.trade-card__cols { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.trade-card__mark img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.trade-card__qr img { width: 158px; height: 158px; border-radius: 6px; }
.trade-card figcaption { margin-top: 10px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.trade-card__lead { color: var(--ink-dim); max-width: 540px; margin: 0 auto 30px; line-height: 1.7; }
.trade-card__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Trade landing page */
.trade-hero { min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 90px; background: radial-gradient(120% 90% at 50% 0%, #1a1a1d 0%, var(--bg) 70%); }
.trade-hero__inner { max-width: 720px; }
.trade-hero__mark { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-bottom: 34px; border: 1px solid var(--cast-gold-soft); }
.trade-hero__eyebrow { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cast-gold); margin-bottom: 20px; }
.trade-hero__title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(56px,11vw,120px); line-height: .9; color: var(--ink); }
.trade-hero__sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: var(--cast-gold); margin: 8px 0 28px; }
.trade-hero__lead { color: var(--ink-dim); line-height: 1.8; max-width: 600px; margin: 0 auto 36px; }
.trade-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trade-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trade-benefit { background: var(--bg); padding: 38px 28px; }
.trade-benefit__num { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--cast-gold); display: block; margin-bottom: 14px; }
.trade-benefit h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.trade-benefit p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

.trade-apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.trade-apply__qr { margin-top: 30px; }
.trade-apply__qr img { width: 150px; height: 150px; border-radius: 6px; }
.trade-apply__qr figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.form__fineprint { margin-top: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }

@media (max-width: 860px) {
  .trade-benefits { grid-template-columns: repeat(2,1fr); }
  .trade-apply__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .trade-benefits { grid-template-columns: 1fr; }
  .trade-card { padding: 40px 22px 36px; }
}

.trade-sent {
  background: var(--cast-gold); color: #161618;
  padding: 16px 20px; border-radius: 4px; margin-bottom: 24px;
  font-size: 14px; letter-spacing: .02em; line-height: 1.5;
}

/* ===== Cast & Curated — dedicated page ===== */
.cast-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: radial-gradient(125% 95% at 50% 0%, #1d1d21 0%, #161618 48%, var(--bg) 100%); }
.cast-hero__frame { position: absolute; inset: clamp(16px,3.2vw,44px); border: 1px solid var(--cast-gold); opacity: .55; pointer-events: none; }
.cast-hero__inner { position: relative; z-index: 2; max-width: 760px; padding: 120px 24px; }
.cast-hero__mark { width: 224px; height: 224px; border-radius: 50%; object-fit: cover; margin-bottom: 40px; border: 1px solid var(--cast-gold); box-shadow: 0 26px 70px -24px rgba(0,0,0,.85); }
.cast-hero__eyebrow { display: block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--cast-gold); margin-bottom: 22px; }
.cast-hero__title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(56px,11vw,128px); line-height: .92; color: #fff; }
.cast-hero__tag { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(18px,3vw,26px); color: var(--cast-gold); margin: 14px 0 26px; letter-spacing: .04em; }
.cast-hero__lead { color: rgba(244,243,241,.82); line-height: 1.8; max-width: 560px; margin: 0 auto 38px; }
.cast-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--ghost-light { color: var(--ink); border-color: rgba(244,243,241,.4); }
.btn--ghost-light:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Under one roof grid */
.cast-roof { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.cast-roof__item { background: var(--bg); padding: 44px 32px; }
.cast-roof__num { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--cast-gold); display: block; margin-bottom: 16px; }
.cast-roof__item h3 { font-size: 19px; color: var(--ink); margin-bottom: 12px; font-weight: 500; }
.cast-roof__item p { color: var(--ink-dim); font-size: 14px; line-height: 1.65; }

/* Card showcase */
.cast-cards { background: #121214; }
.cast-cards__pair { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin: 12px 0 40px; }
.cast-cards__pair figure { width: min(420px, 42vw); }
.cast-cards__pair img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.cast-cards__pair figcaption { margin-top: 16px; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cast-gold); }
.cast-cards__cta { text-align: center; }

@media (max-width: 860px) {
  .cast-roof { grid-template-columns: repeat(2,1fr); }
  .cast-cards__pair figure { width: 86vw; }
}
@media (max-width: 520px) {
  .cast-roof { grid-template-columns: 1fr; }
}

.cast-feat__tag {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px;
  color: var(--cast-gold); margin: -8px 0 22px; letter-spacing: .03em;
}

/* In-Motion reel wall (homepage) */
.reels--wall { grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto; }
a.reel { display: block; color: inherit; }
a.reel::after {
  content: '↗'; position: absolute; top: 12px; right: 14px; z-index: 3;
  font-size: 15px; color: #fff; opacity: .8; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
@media (max-width: 1000px) { .reels--wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .reels--wall { grid-template-columns: repeat(2, 1fr); max-width: 520px; } }

/* Shades spotlight — multi-install cluster */
.split__media--cluster { aspect-ratio: auto; }
.shade-cluster {
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 10px; aspect-ratio: 4/5;
}
.shade-cluster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shade-cluster img:first-child { grid-row: 1 / span 2; }
@media (max-width: 760px) { .shade-cluster { aspect-ratio: 3/2; } }

/* Shade work — horizontal scroll rail (holds many photos, stays one row) */
.shade-rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 20px; margin-top: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.shade-rail::-webkit-scrollbar { height: 6px; }
.shade-rail::-webkit-scrollbar-track { background: var(--line); }
.shade-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.shade-rail__item {
  flex: 0 0 auto; width: min(440px, 80vw); margin: 0;
  scroll-snap-align: start; position: relative;
}
.shade-rail__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.shade-rail__item figcaption {
  margin-top: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ===== Click-to-enlarge gallery (site-wide) ===== */
.lgrid-wrap { margin-top: 8px; }
.lgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lgrid__item { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-elev); }
.lgrid__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.lgrid__item:hover img { transform: scale(1.05); }
.lgrid__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  opacity: 0; transition: opacity .3s var(--ease);
}
.lgrid__item:hover figcaption { opacity: 1; }
.lgrid--collapsible:not(.is-open) .lgrid__item:nth-child(n+9) { display: none; }
.lgrid__more {
  display: inline-block; margin: 28px auto 0; padding: 13px 30px;
  border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.lgrid-wrap { text-align: center; }
.lgrid__more:hover { border-color: var(--gold); background: var(--gold); color: var(--bg); }

/* ===== Instagram embed wall (@techi.av feed) ===== */
.igwall {
  column-count: 4; column-gap: 16px; margin-top: 8px;
  transition: max-height .5s var(--ease);
}
.igwall .instagram-media {
  display: inline-block; width: 100% !important; min-width: 0 !important;
  margin: 0 0 16px !important; break-inside: avoid;
}
.igwall.collapsed {
  max-height: 920px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.igwall.collapsed.is-open {
  max-height: none;
  -webkit-mask-image: none; mask-image: none;
}
.igwall__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.igwall__more {
  cursor: pointer; padding: 13px 30px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.igwall__more:hover { border-color: var(--gold); background: var(--gold); color: var(--bg); }
@media (max-width: 1100px) { .igwall { column-count: 3; } }
@media (max-width: 760px)  { .igwall { column-count: 2; } .igwall.collapsed { max-height: 1100px; } }
@media (max-width: 480px)  { .igwall { column-count: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8,8,9,.95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox__img { position: relative; max-width: 90vw; max-height: 88vh; object-fit: contain; box-shadow: var(--shadow); }
.lightbox__x { position: absolute; top: 22px; right: 28px; z-index: 2; font-size: 30px; line-height: 1; color: var(--ink); opacity: .85; }
.lightbox__x:hover { opacity: 1; }
.lightbox__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); font-size: 46px; line-height: 1; color: var(--ink); opacity: .65; padding: 8px 20px; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (max-width: 1000px) {
  .lgrid { grid-template-columns: repeat(3, 1fr); }
  .lgrid--collapsible:not(.is-open) .lgrid__item:nth-child(n+7) { display: none; }
}
@media (max-width: 560px) {
  .lgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lgrid--collapsible:not(.is-open) .lgrid__item:nth-child(n+7) { display: none; }
  .lgrid__item figcaption { opacity: 1; }
}

/* Segmented project blocks in the "Invisible by Design" section */
.pocket-proj { margin-top: 56px; }
.pocket-proj + .pocket-proj { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.pocket-proj__tag { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.pocket-proj__title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(24px,3vw,34px); color: var(--ink); margin-bottom: 14px; max-width: 22ch; }
.pocket-proj__lead { color: var(--ink-dim); line-height: 1.75; max-width: 70ch; margin-bottom: 30px; }

/* ============================================================
   RESPONSIVE HARDENING — tablet & phone
   ============================================================ */
html { overflow-x: hidden; }

/* Homepage masonry teaser: drop the 12-col spans on tablet/phone so it tiles cleanly */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery figure { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3 !important; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

/* iPad / tablet: tighten section rhythm a touch */
@media (max-width: 1024px) {
  .section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
}

/* Phone polish */
@media (max-width: 600px) {
  .page-header { min-height: 64vh; min-height: 64svh; min-height: 64dvh; min-height: calc(var(--vh, 1vh) * 88); padding: calc(var(--nav-h) + 40px) var(--gutter) 64px; }
  .hero, .hero--full { min-height: 100vh; min-height: 100svh; min-height: 100dvh; min-height: calc(var(--vh, 1vh) * 100); }
  .hero__actions, .split__actions, .cast-hero__actions, .trade-hero__actions,
  .cta-block__actions, .trade-card__actions { gap: 12px; }
  .hero__actions .btn, .cta-block__actions .btn { width: 100%; justify-content: center; }
  .section__head { margin-bottom: 40px; }
  /* shade spotlight cluster: stack tall on phones */
  .shade-cluster { grid-template-columns: 1fr 1fr; }
  /* lightbox controls sized for thumb */
  .lightbox__nav { font-size: 34px; padding: 8px 12px; }
  .lightbox__x { top: 16px; right: 18px; }
  /* trade card */
  .trade-card { padding: 36px 20px 32px; }
  .trade-card__cols { gap: 24px; }
}

/* Prevent any oversized media from forcing horizontal scroll */
img, video, svg, .lgrid, .reels, .gallery { max-width: 100%; }
.section__inner { width: 100%; }

/* Landscape mobile — prevent build badge from colliding with hero eyebrow */
@media (max-height: 540px) { .hero__build { display: none !important; }
  .hero__eyebrow { font-size: 10px; margin-bottom: 12px; padding-left: 40px; }
  .hero__eyebrow::before { width: 28px; }
  .hero__title { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; }
  .hero__sub { margin-top: 12px; font-size: 13px; }
  .hero__actions { margin-top: 18px; gap: 10px; }
  .hero, .hero--full, .page-header { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 28px; }
}


/* ============================================================
   RESPONSIVE HERO — phones + tablets
   ============================================================ */

/* Tablets and phones: anchor hero text to the lower third so the photo dominates */
@media (max-width: 1024px) {
  .hero--full { align-items: flex-end; }
  .hero,
  .hero--full,
  .page-header {
    padding-bottom: clamp(60px, 9vh, 110px);
  }
}

/* iPad portrait (721–1024px): generous typographic scale */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero__title,
  .page-header .hero__title {
    font-size: clamp(54px, 8.2vw, 78px);
    line-height: 1.04;
    max-width: 18ch;
  }
  .hero__sub { font-size: 17px; max-width: 56ch; }
  .hero__eyebrow { margin-bottom: 22px; }
}

/* Phones (≤720px): smaller type, content pinned to the lower portion */
@media (max-width: 720px) {
  .hero,
  .hero--full,
  .page-header {
    padding: calc(var(--nav-h) + 12px) var(--gutter) clamp(48px, 7.5vh, 84px);
    align-items: flex-end !important;
  }
  .hero__title,
  .page-header .hero__title {
    font-size: clamp(40px, 10vw, 60px);
    line-height: 1.04;
    max-width: 14ch;
  }
  .hero--full .hero__title { max-width: 14ch; }
  .hero__eyebrow {
    margin-bottom: 18px;
    padding-left: 44px;
    font-size: 11px;
  }
  .hero__eyebrow::before { width: 30px; }
  .hero__sub {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
    max-width: 100%;
  }
  .hero__actions {
    margin-top: 26px;
    width: 100%;
  }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* Small phones (≤460px): tighter still */
@media (max-width: 460px) {
  .hero,
  .hero--full,
  .page-header {
    padding-bottom: clamp(40px, 6vh, 72px);
  }
  .hero__title,
  .page-header .hero__title {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 12ch;
  }
}

/* Landscape phones — squeeze everything compact */
@media (max-height: 540px) {
  .hero__build { display: none !important; }
  .hero,
  .hero--full,
  .page-header {
    align-items: flex-end;
    padding: calc(var(--nav-h) + 12px) var(--gutter) clamp(28px, 5vh, 44px);
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero__eyebrow { font-size: 10px; margin-bottom: 12px; padding-left: 40px; }
  .hero__eyebrow::before { width: 28px; }
  .hero__title,
  .page-header .hero__title {
    font-size: clamp(22px, 4.6vw, 34px);
    line-height: 1.1;
    max-width: 22ch;
  }
  .hero__sub { margin-top: 10px; font-size: 13px; }
  .hero__actions { margin-top: 16px; gap: 10px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* Body text adjustments for tablets / phones */
@media (max-width: 1024px) {
  .section { padding: clamp(64px, 9vw, 120px) 0; }
  .section__lead, .split__lead { font-size: 16px; }
}
@media (max-width: 720px) {
  .section__title, .split__title { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; }
  .section__lead, .split__lead { font-size: 15px; }
  .section__head, .section__head--center { margin-bottom: 36px; }
}


/* === Project rotating slideshow (Electric "In before the drywall") === */
.proj-rotate{
  position:relative; overflow:hidden;
  border-radius: 2px;
}
.proj-rotate__slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0;
  animation: projCycle 25s infinite ease-in-out;
}
.proj-rotate__slide:nth-child(1){ animation-delay: 0s; opacity: 1; }
.proj-rotate__slide:nth-child(2){ animation-delay: 5s; }
.proj-rotate__slide:nth-child(3){ animation-delay: 10s; }
.proj-rotate__slide:nth-child(4){ animation-delay: 15s; }
.proj-rotate__slide:nth-child(5){ animation-delay: 20s; }
@keyframes projCycle{
  0%      { opacity: 0; }
  3%, 18% { opacity: 1; }
  22%     { opacity: 0; }
  100%    { opacity: 0; }
}
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
@media (prefers-reduced-motion: reduce){
  .proj-rotate__slide{ animation: none !important; }
  .proj-rotate__slide:nth-child(1){ opacity: 1 !important; }
  .proj-rotate__slide:not(:nth-child(1)){ display: none !important; }
}

/* === Partners brand wall hero === */
.hero--brands{
  background:
    radial-gradient(80% 80% at 50% 50%, rgba(30,16,40,.55), transparent 70%),
    linear-gradient(180deg, #0a070e 0%, #14101a 50%, #0a070e 100%);
  position:relative;
}
.brand-wall{
  position:absolute; inset:0; z-index:0;
  display:flex; flex-direction:column;
  justify-content:space-evenly;
  padding: clamp(40px, 6vh, 80px) 0;
  pointer-events:none;
  overflow:hidden;
  /* Hide brand names ONLY in the immediate text area (lower-left), keeping all 4 rows visible elsewhere */
  -webkit-mask-image: radial-gradient(ellipse 42% 26% at 30% 78%, transparent 0%, transparent 30%, rgba(0,0,0,.4) 65%, #000 95%);
          mask-image: radial-gradient(ellipse 42% 26% at 30% 78%, transparent 0%, transparent 30%, rgba(0,0,0,.4) 65%, #000 95%);
}
@media (max-width: 760px){
  .brand-wall{
    justify-content: flex-start;
    padding: calc(var(--nav-h) + 16px) 0 0;
    gap: clamp(28px, 5.5vh, 56px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0,0,0,.25) 70%, transparent 86%);
            mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0,0,0,.25) 70%, transparent 86%);
  }
  .brand-wall__row--ltr-fast{ animation-duration: 22s !important; }
  .brand-wall__row--rtl-fast{ animation-duration: 22s !important; }
  .brand-wall__row--ltr-slow{ animation-duration: 36s !important; }
  .brand-wall__row--rtl-slow{ animation-duration: 36s !important; }
  .brand-wall__row{ font-size: clamp(22px, 6vw, 40px); }
  .brand-wall__brand{ padding-right: 40px; }
  .hero--brands .hero__overlay{
    background:
      linear-gradient(180deg, transparent 0%, transparent 52%, rgba(10,7,14,.55) 76%, rgba(10,7,14,.85) 100%) !important;
  }
}
.brand-wall__row{
  display:flex;
  white-space:nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 5vw, 64px);
  color: rgba(244,243,241,.34);
  letter-spacing: -.01em;
  flex-shrink: 0;
  will-change: transform;
}
/* Each brand carries its own consistent right margin so doubled content loops seamlessly */
.brand-wall__brand{
  flex-shrink:0;
  padding-right: 70px;
}
.brand-wall__row--ltr-fast{ animation: brandMarqueeL 38s linear infinite; }
.brand-wall__row--rtl-fast{ animation: brandMarqueeR 38s linear infinite; }
.brand-wall__row--ltr-slow{ animation: brandMarqueeL 70s linear infinite; }
.brand-wall__row--rtl-slow{ animation: brandMarqueeR 70s linear infinite; }
@keyframes brandMarqueeL{ from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes brandMarqueeR{ from { transform:translateX(-50%); } to { transform:translateX(0); } }
.hero--brands::before, .hero--brands::after{
  content:''; position:absolute; top:0; bottom:0; width: clamp(80px, 12vw, 200px); z-index:1; pointer-events:none;
}
.hero--brands::before{ left:0; background: linear-gradient(90deg, rgba(10,7,14,1), transparent); }
.hero--brands::after { right:0; background: linear-gradient(-90deg, rgba(10,7,14,1), transparent); }
.hero--brands .hero__overlay{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(ellipse 45% 30% at 30% 78%, rgba(10,7,14,.50), rgba(10,7,14,.15) 70%, transparent 95%);
  pointer-events:none;
}
@media (max-width: 760px){
  .hero--brands .hero__overlay{
    background:
      radial-gradient(ellipse 75% 35% at 50% 76%, rgba(10,7,14,.45), rgba(10,7,14,.12) 70%, transparent 95%);
  }
}
.hero--brands .hero__inner{ position:relative; z-index:2; }
.hero--brands .hero__title em{ color:#d4b06b; }
@media (prefers-reduced-motion: reduce){
  .brand-wall__row{ animation: none !important; }
}

/* === Audio Stack featured band (audio brands prominence) === */
.audio-stack{
  background: linear-gradient(180deg, #0c0c10 0%, #131319 50%, #0c0c10 100%);
}
.audio-stack__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 1024px){ .audio-stack__grid{ grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px) { .audio-stack__grid{ grid-template-columns: 1fr; gap: 18px; } }
.audio-stack__card{
  padding: 30px 28px 28px;
  background: rgba(244,243,241,.03);
  border: 1px solid rgba(244,243,241,.10);
  border-radius: 4px;
  position: relative;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.audio-stack__card::before{
  content: '';
  position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, #d4b06b 30%, #d4b06b 70%, transparent);
  opacity: .55;
}
.audio-stack__card:hover{
  border-color: rgba(212,176,107,.45);
  background: rgba(244,243,241,.05);
  transform: translateY(-2px);
}
.audio-stack__name{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  color: #f4f3f1;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.audio-stack__role{
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 10.5px;
  color: #d4b06b;
  margin: 0 0 18px;
  font-weight: 400;
}
.audio-stack__note{
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #cfcbc3;
  margin: 0;
  font-weight: 300;
}

/* Make hero--brands title pop cleanly above the brand wall */
.hero--brands .hero__title{
  text-shadow: 0 2px 22px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.5);
}
.hero--brands .hero__sub{
  text-shadow: 0 1px 14px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.5);
}
.hero--brands .hero__eyebrow{
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}

/* === Partners mobile polish === */
@media (max-width: 760px) {
  .cast-feature { padding: 56px 0 40px; }
  .cast-feat { gap: 32px; text-align: left; }
  .cast-feat > * { max-width: 100%; }
  .cast-feat__media { aspect-ratio: 4/5; }
  .cast-feat__title { font-size: clamp(40px, 11vw, 56px); }
  .cast-feat__tag { font-size: 17px; }
  .cast-feat__lead { font-size: 15.5px; line-height: 1.7; }
  .cast-feature .split__list li { font-size: 14.5px; }
  .cast-feature .split__actions { flex-direction: column; align-items: stretch; }
  .cast-feature .split__actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Experiences cards */
  .cast-roof__item { padding: 32px 24px; }
  .cast-roof__num { font-size: 28px; margin-bottom: 10px; }
  .cast-roof__item h3 { font-size: 17px; margin-bottom: 8px; }
  .cast-roof__item p { font-size: 13.5px; line-height: 1.6; }

  /* Trade card */
  .cast-trade { padding: 0 var(--gutter) 32px; }
  .trade-card { padding: 32px 18px 28px; max-width: 100%; }
  .trade-card__title { font-size: clamp(34px, 9vw, 48px); }
  .trade-card__sub { font-size: 14px; margin-bottom: 24px; }
  .trade-card__cols { flex-direction: column; gap: 24px; align-items: center; }
  .trade-card__cols figure { max-width: 220px; }
  .trade-card__lead { font-size: 14.5px; line-height: 1.7; }
  .trade-card__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .trade-card__actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Brand-by-category grid */
  .partners-groups { gap: 48px; }
  .partners-group__title { font-size: 12px; margin-bottom: 22px; padding-bottom: 12px; }
  .partners-grid__item { padding: 16px 10px; aspect-ratio: 5/3; }
  .partners-grid__item .txt { font-size: clamp(14px, 4.2vw, 18px); text-align: center; line-height: 1.2; }
  .partners-grid__item img { max-height: 22px; max-width: 80%; }

  /* CTA block at the very bottom */
  .cta-block { padding: 64px var(--gutter); }
  .cta-block__title { font-size: clamp(34px, 9vw, 48px); }
  .cta-block__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-block__actions .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 460px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid__item { aspect-ratio: 1 / 1; }
}

/* === People partners (builders / designers / architects) === */
.partners-grid__item a {
  display: flex; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  color: inherit; text-decoration: none;
  transition: color .25s var(--ease);
}
.partners-grid__item a:hover { color: var(--gold); }
.partners-grid__item a .txt { color: inherit; }
.partners-group__more {
  margin: 18px 0 0;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-dim);
  letter-spacing: .01em;
}
@media (max-width: 760px){
  .partners-group__more { text-align: center; font-size: 14px; line-height: 1.55; margin-top: 14px; }
}

/* Partner strip links */
.partners-strip__item a { display: flex; align-items: center; justify-content: center; transition: opacity .25s var(--ease), color .25s var(--ease); }
.partners-strip__item a:hover { opacity: 1 !important; color: var(--gold) !important; }
.partners-strip__item a img { transition: opacity .25s var(--ease); }
.partners-strip__item a:hover img { opacity: 1; }


/* === Partners brand grid mobile hard-fix === */
@media (max-width: 760px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid__item {
    aspect-ratio: auto !important;
    min-height: 78px;
    max-height: 100px;
    padding: 12px 8px;
  }
  .partners-grid__item .txt {
    font-size: clamp(12.5px, 3.6vw, 16px);
    line-height: 1.25;
    text-align: center;
  }
  .partners-grid__item img { max-height: 20px; max-width: 78%; }
}
@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid__item {
    min-height: 76px;
    max-height: 96px;
  }
  .partners-grid__item .txt { font-size: clamp(13px, 3.8vw, 16px); }
}

/* === Cast / Trade card centering on mobile === */
@media (max-width: 760px) {
  .cast-trade { padding: 0 16px 24px; }
  .trade-card {
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 18px 28px;
    text-align: center;
  }
  .trade-card__eyebrow { display: block; text-align: center; margin: 0 auto 12px; }
  .trade-card__title, .trade-card__sub { text-align: center; }
  .trade-card__cols {
    display: flex; flex-direction: column;
    gap: 22px; align-items: center; margin: 0 auto;
  }
  .trade-card__cols figure { max-width: 200px; margin: 0 auto; }
  .trade-card__mark img, .trade-card__qr img { width: 100%; height: auto; max-width: 200px; }
  .trade-card figcaption { text-align: center; }
  .trade-card__lead { text-align: center; margin: 18px auto 22px; max-width: 100%; }
  .trade-card__actions {
    display: flex; flex-direction: column;
    gap: 10px; align-items: stretch; margin: 0 auto;
  }
  .trade-card__actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* === Partners brand grid STANDARDIZATION === */
/* Logos and text cells share identical visual weight everywhere */
.partners-grid__item {
  /* Use consistent vertical rhythm regardless of content type */
  padding: 24px 18px;
}
.partners-grid__item img {
  max-height: 26px !important;
  max-width: 72% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  opacity: .72;
  filter: brightness(0) invert(1);
  transition: opacity .35s var(--ease);
}
.partners-grid__item:hover img { opacity: 1; }
.partners-grid__item .txt {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  opacity: .72;
  text-align: center;
  font-weight: 400;
  letter-spacing: .005em;
  transition: opacity .35s var(--ease);
}
.partners-grid__item:hover .txt { opacity: 1; }

/* Tablet — keep proportions consistent */
@media (max-width: 1024px) {
  .partners-grid__item { padding: 20px 14px; }
  .partners-grid__item img { max-height: 22px !important; max-width: 76% !important; }
  .partners-grid__item .txt { font-size: 17px; }
}

/* Phones — compact, consistent */
@media (max-width: 760px) {
  .partners-grid__item {
    padding: 14px 10px !important;
    min-height: 78px !important;
    max-height: 100px !important;
    aspect-ratio: auto !important;
  }
  .partners-grid__item img {
    max-height: 18px !important;
    max-width: 80% !important;
  }
  .partners-grid__item .txt {
    font-size: clamp(13px, 3.6vw, 15.5px) !important;
    line-height: 1.25;
  }
}
@media (max-width: 480px) {
  .partners-grid__item {
    min-height: 70px !important;
    max-height: 92px !important;
    padding: 12px 8px !important;
  }
  .partners-grid__item img { max-height: 16px !important; max-width: 82% !important; }
}

/* === Partners 2-column split layout === */
/* Desktop & large tablet: 2 columns of category groups side by side */
.partners-groups {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 56px;
  align-items: start;
}
.partners-group {
  width: 100%;
}
/* Each category's inner grid scales down to 3 cols inside the half-width column */
.partners-groups .partners-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Standardize ALL group titles to identical size */
.partners-group__title {
  font-size: 13px !important;
  letter-spacing: .28em !important;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

/* Tablet & narrower: collapse to 1 column of categories with internal grid still 3 cols */
@media (max-width: 1024px) {
  .partners-groups {
    grid-template-columns: 1fr !important;
    gap: 48px;
  }
  .partners-groups .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Phone: 1 column groups, 2 columns inside */
@media (max-width: 720px) {
  .partners-groups {
    gap: 36px;
  }
  .partners-groups .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-group__title {
    font-size: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
  }
}
@media (max-width: 768px) {
  .hero__slide {
    background-position: center 72% !important;
  }
}
@media (max-width: 480px) {
  .hero__slide {
    background-position: center 78% !important;
  }
}
