/* ═══════════════════════════════════════════════════════════
   Celebrity Interior Solutions — site stylesheet
   Black / gold. Cormorant Garamond display, Jost body.
   ═══════════════════════════════════════════════════════════ */

:root {
  --black:   #080808;
  --panel:   #111113;
  --panel-2: #17171a;
  --gold:    #C9A84C;
  --gold-2:  #E8C96A;
  --gold-dim:rgba(201,168,76,0.14);
  --line:    rgba(201,168,76,0.22);
  --line-2:  rgba(201,168,76,0.45);
  --bone:    #F1ECE2;
  --ash:     #9A978F;
  --ash-2:   #6E6C66;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Type scale ─────────────────────────────────────────── */
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(2.9rem, 6.6vw, 6.2rem); line-height: 0.98; }
.h2      { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.05; }
.h3      { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.15; }
.lede    { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--bone); max-width: 34em; }
.muted   { color: var(--ash); }
.small   { font-size: 0.86rem; }
.caption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ash); }
em.g     { font-style: italic; color: var(--gold-2); }

/* ── Buttons & links ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px;
  background: var(--gold); color: var(--black);
  font-family: var(--sans); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--outline { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn--outline:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--bone); }
.btn--sm { padding: 12px 20px; font-size: 0.8rem; }

.link {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--sans); font-weight: 400; font-size: 0.92rem; letter-spacing: 0.03em;
  color: var(--bone); padding-bottom: 2px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 1px;
  transition: color 0.3s var(--ease), background-size 0.4s var(--ease);
}
.link:hover { color: var(--gold-2); background-size: 30% 1px; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(8,8,8,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 46px; height: 46px; object-fit: contain; transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.nav.is-scrolled .brand__mark { width: 38px; height: 38px; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: 0.04em; line-height: 1; }
.brand__name small { display: block; font-family: var(--sans); font-weight: 300; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ash); margin-top: 5px; }

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-size: 0.92rem; font-weight: 300; letter-spacing: 0.04em; color: var(--bone); opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; color: var(--gold-2); }
.nav__cta { margin-left: 8px; }
.nav__links .btn { color: var(--black); opacity: 1; }
.nav__links .btn:hover { color: var(--black); }

.nav__toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -8px;
}
.nav__toggle span { display: block; width: 22px; height: 1px; background: var(--bone); position: relative; transition: transform 0.3s, background 0.3s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--bone); transition: transform 0.3s, top 0.3s; }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 850; background: rgba(8,8,8,0.97);
  display: none; flex-direction: column; justify-content: center; padding: var(--gutter);
}
.menu.is-open { display: flex; }
.menu a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.25; color: var(--bone); border-bottom: 1px solid var(--line); padding: 10px 0; }
.menu a:hover { color: var(--gold-2); }
.menu .btn { margin-top: 32px; align-self: flex-start; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.02rem; }
  .brand__name small { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 120px; padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  /* faint gold grain in the upper right — gives the black a material surface */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(201,168,76,0.09), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(201,168,76,0.04), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; }
.hero__copy { max-width: 620px; }
.hero__copy .display .l { display: block; }
.hero__copy .lede { margin-top: 30px; color: var(--ash); max-width: 30em; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__since { margin-top: 56px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ash); }
.hero__since b { font-weight: 400; color: var(--gold-2); font-style: normal; }

/* instrument: rings + sphere */
.instrument { position: relative; aspect-ratio: 1; width: min(100%, 620px); margin-inline: auto; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rings circle, .rings path, .rings line { fill: none; stroke: var(--gold); vector-effect: non-scaling-stroke; }
.rings .r-outer { stroke-opacity: 0.32; stroke-width: 1; stroke-dasharray: 2 9; transform-origin: 50% 50%; animation: spin 140s linear infinite; }
.rings .r-mid   { stroke-opacity: 0.22; stroke-width: 1; }
.rings .r-tick  { stroke-opacity: 0.5;  stroke-width: 1; stroke-dasharray: 1 23; transform-origin: 50% 50%; animation: spin 90s linear infinite reverse; }
.rings .r-inner { stroke-opacity: 0.16; stroke-width: 1; }
.rings .r-arc   { stroke: var(--gold-2); stroke-opacity: 0.75; stroke-width: 1.2; transform-origin: 50% 50%; animation: spin 36s linear infinite; }
.rings .r-dot   { fill: var(--gold-2); stroke: none; transform-origin: 50% 50%; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rings * { animation: none !important; } }

.pf-sphere { display: flex; flex-direction: column; align-items: center; }
.pf-sphere__scene {
  perspective: 1100px; perspective-origin: 50% 50%;
  width: 440px; height: 440px; cursor: grab;
  -webkit-user-select: none; user-select: none; touch-action: none; position: relative;
}
.pf-sphere__scene:active { cursor: grabbing; }
.pf-sphere__ring { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; will-change: transform; }
.pf-sphere__tile {
  position: absolute; top: 50%; left: 50%; width: 118px; height: 88px; margin: -44px 0 0 -59px;
  overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform;
  border: 1px solid rgba(201,168,76,0.28);
}
.pf-sphere__tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pf-sphere__hint { position: absolute; bottom: 1%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ash); }

/* reduced-motion / no-JS fallback: a still triptych instead of the sphere */
.hero__still { display: none; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 520px); }
.hero__still img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
  .pf-sphere { display: none; }
  .hero__still { display: grid; }
}

@media (max-width: 980px) {
  .hero { padding-top: 110px; }
  .pf-sphere__scene { touch-action: pan-y; }
  .hero__grid { grid-template-columns: 1fr; }
  .instrument { width: min(100%, 420px); margin-top: 20px; }
  .pf-sphere__scene { width: 300px; height: 300px; }
  .pf-sphere__tile { width: 80px; height: 60px; margin: -30px 0 0 -40px; }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.65); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head .caption { max-width: 32em; justify-self: end; text-align: right; }
@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; }
  .section__head .caption { justify-self: start; text-align: left; }
}

/* ── Work (masonry of thumbnails) ───────────────────────── */
.work { column-count: 3; column-gap: 14px; }
.work__tile { break-inside: avoid; margin-bottom: 14px; width: 100%; display: block; position: relative; overflow: hidden; border: 1px solid rgba(201,168,76,0.12); }
.work__tile img { width: 100%; height: auto; transform: scale(1.001); transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.92); }
.work__tile:hover img { transform: scale(1.035); filter: saturate(1); }
.work__tile:focus-visible { outline-offset: -2px; }
.work__more { display: flex; justify-content: center; margin-top: 44px; }
@media (max-width: 980px) { .work { column-count: 2; } }
@media (max-width: 560px) { .work { column-count: 2; column-gap: 8px; } .work__tile { margin-bottom: 8px; } }

/* ── Services ledger ────────────────────────────────────── */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px 48px; padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.ledger__row:hover { padding-left: 10px; }
.ledger__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; transition: color 0.4s; }
.ledger__row:hover .ledger__name { color: var(--gold-2); }
.ledger__desc { color: var(--ash); max-width: 36em; align-self: center; }
@media (max-width: 760px) { .ledger__row { grid-template-columns: 1fr; gap: 10px; } }

/* ── Process (three nodes on a line) ────────────────────── */
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 24px; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.process__step { position: relative; padding-top: 36px; }
.process__step::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--black); border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 8px var(--gold); }
.process__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-2); letter-spacing: 0.08em; }
.process__step h3 { margin-top: 8px; }
.process__step p { margin-top: 14px; color: var(--ash); max-width: 28em; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 36px; }
  .process::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .process__step { padding-top: 0; padding-left: 40px; }
}

/* ── Collection teaser & product grids ──────────────────── */
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.piece { display: block; position: relative; }
.piece__img { aspect-ratio: 1; overflow: hidden; background: var(--panel); border: 1px solid rgba(201,168,76,0.14); }
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.piece:hover .piece__img img { transform: scale(1.04); }
.piece__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 2px 0; }
.piece__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.piece__cat { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--ash); margin-top: 4px; letter-spacing: 0.03em; }
.piece__price { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-2); white-space: nowrap; }
.pieces--catalog { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pieces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pieces { grid-template-columns: 1fr; gap: 28px; } }
.pieces__empty { grid-column: 1 / -1; color: var(--ash); padding: 40px 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 40px; }
.filters button { font-size: 0.92rem; letter-spacing: 0.04em; color: var(--ash); padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px; transition: color 0.3s, background-size 0.4s var(--ease); }
.filters button:hover { color: var(--bone); }
.filters button[aria-pressed="true"] { color: var(--gold-2); background-size: 100% 1px; }

/* ── Bundles ────────────────────────────────────────────── */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bundle { padding: 32px 28px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.bundle h3 { font-size: 1.7rem; }
.bundle ul { margin-top: 20px; border-top: 1px solid var(--line); }
.bundle li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bundle li span:last-child { color: var(--ash); }
.bundle__price { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; }
.bundle__price s { color: var(--ash-2); font-size: 0.95rem; }
.bundle__price b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--gold-2); }
.bundle__save { font-size: 0.86rem; color: var(--ash); margin-top: 4px; }
.bundle .btn { margin-top: 26px; align-self: flex-start; }
@media (max-width: 900px) { .bundles { grid-template-columns: 1fr; } }

/* ── Tiers ──────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.tier { padding: 40px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tier:last-child { border-right: 0; }
.tier--featured { background: var(--panel); }
.tier__kicker { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-2); }
.tier h3 { margin-top: 10px; font-size: 2rem; }
.tier > p { margin-top: 16px; color: var(--ash); }
.tier ul { margin-top: 24px; }
.tier li { position: relative; padding: 8px 0 8px 22px; font-size: 0.95rem; border-top: 1px solid var(--line); }
.tier li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); }
.tier .btn { margin-top: auto; padding-top: 17px; }
.tier ul + .btn { margin-top: 32px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier { border-right: 0; border-bottom: 1px solid var(--line); } .tier:last-child { border-bottom: 0; } }

/* ── FAQ (native details) ───────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 11px; width: 11px; height: 11px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); transition: transform 0.3s var(--ease); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 26px; color: var(--ash); max-width: 42em; }
.faq details p a { color: var(--gold-2); }

/* ── Big CTA ────────────────────────────────────────────── */
.cta { position: relative; padding-block: var(--section); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(201,168,76,0.12), transparent 70%); pointer-events: none; }
.cta__inner { position: relative; max-width: 980px; }
.cta__inner .h2 { max-width: 20em; }
.cta__actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 40px; }

/* ── Page header (inner pages) ──────────────────────────── */
.page-head { padding-top: clamp(140px, 18vw, 200px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head .lede { margin-top: 24px; color: var(--ash); }
.crumb { font-size: 0.86rem; color: var(--ash); margin-bottom: 22px; letter-spacing: 0.03em; }
.crumb a:hover { color: var(--gold-2); }

/* ── Product page ───────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.gallery__main { aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery__thumbs button { width: 84px; height: 84px; border: 1px solid var(--line); overflow: hidden; opacity: 0.6; transition: opacity 0.3s, border-color 0.3s; background: var(--panel); }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover, .gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.gallery__note { margin-top: 12px; font-size: 0.82rem; color: var(--ash-2); }
.pd__cat { font-size: 0.86rem; color: var(--ash); letter-spacing: 0.04em; }
.pd__name { margin-top: 10px; font-size: clamp(2.2rem, 3.8vw, 3.3rem); line-height: 1.02; }
.pd__price { margin-top: 18px; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); }
.pd__desc { margin-top: 26px; color: var(--ash); max-width: 36em; }
.pd__spec { margin-top: 32px; border-top: 1px solid var(--line); }
.pd__spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pd__spec dt { color: var(--ash); } .pd__spec dd { margin: 0; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.pd__fine { margin-top: 18px; font-size: 0.86rem; color: var(--ash-2); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ── Quote form ─────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; max-width: 860px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--ash); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--bone); font: inherit; font-weight: 300; padding: 10px 0; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { background: var(--panel); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-2); }
.field textarea { min-height: 120px; resize: vertical; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form__foot .small { color: var(--ash-2); max-width: 30em; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand .brand__mark { width: 56px; height: 56px; }
.footer__brand p { margin-top: 20px; color: var(--ash); max-width: 30em; font-size: 0.95rem; }
.footer h4 { font-family: var(--sans); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--ash); margin-bottom: 16px; }
.footer li { padding: 5px 0; font-size: 0.95rem; }
.footer li a:hover { color: var(--gold-2); }
.footer__areas { color: var(--ash); font-size: 0.92rem; line-height: 1.7; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ash-2); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Lightbox ───────────────────────────────────────────── */
.pf-lb { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.pf-lb[hidden] { display: none !important; }
.pf-lb__backdrop { position: absolute; inset: 0; background: rgba(8,8,8,0.96); cursor: pointer; }
.pf-lb__stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 80px; pointer-events: none; }
.pf-lb__img-wrap { pointer-events: auto; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.pf-lb__img { max-width: 100%; max-height: 88vh; object-fit: contain; display: block; box-shadow: 0 28px 80px rgba(0,0,0,0.65); border: 1px solid var(--line); }
.pf-lb__close, .pf-lb__nav { border: 1px solid var(--line-2); background: rgba(8,8,8,0.8); border-radius: 50%; color: var(--bone); display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; transition: border-color 0.25s, color 0.25s; }
.pf-lb__close:hover, .pf-lb__nav:hover { border-color: var(--gold-2); color: var(--gold-2); }
.pf-lb__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; z-index: 2; }
.pf-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.pf-lb__nav--prev { left: 16px; } .pf-lb__nav--next { right: 16px; }
.pf-lb__counter { position: absolute; bottom: 20px; right: 24px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ash); pointer-events: none; z-index: 2; }
.pf-lb__caption { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ash); text-align: center; pointer-events: none; white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
@media (max-width: 640px) { .pf-lb__stage { padding: 52px 10px 44px; } .pf-lb__nav { width: 44px; height: 44px; } .pf-lb__nav--prev { left: 6px; } .pf-lb__nav--next { right: 6px; } }

/* ── AI designer chat ───────────────────────────────────── */
.ai { position: fixed; right: 22px; bottom: 22px; z-index: 800; }
.ai__toggle { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; background: rgba(8,8,8,0.9); border: 1px solid var(--line-2); color: var(--bone); font-size: 0.86rem; letter-spacing: 0.04em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 0.3s, color 0.3s; }
.ai__toggle:hover { border-color: var(--gold-2); color: var(--gold-2); }
.ai__toggle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); }
.ai__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 44px)); height: min(560px, calc(100vh - 120px)); background: var(--panel); border: 1px solid var(--line-2); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.ai__panel[hidden] { display: none; }
.ai__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.ai__title { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.ai__sub { font-size: 0.8rem; color: var(--ash); margin-top: 2px; }
.ai__notice { font-size: 0.76rem; color: var(--ash-2); margin-top: 6px; }
.ai__notice code { font-family: inherit; color: var(--ash); }
.ai__close { margin-left: auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--ash); }
.ai__close:hover { color: var(--gold-2); }
.ai__messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai__msg { max-width: 88%; padding: 12px 14px; font-size: 0.93rem; line-height: 1.5; }
.ai__msg--assistant { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.ai__msg--user { align-self: flex-end; background: var(--gold); color: var(--black); font-weight: 400; }
.ai__msg a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.ai__typing { padding: 0 18px 10px; display: flex; gap: 5px; }
.ai__typing[hidden] { display: none; }
.ai__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.4; animation: blink 1.2s infinite; }
.ai__typing span:nth-child(2) { animation-delay: 0.2s; } .ai__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.ai__form { display: flex; border-top: 1px solid var(--line); }
.ai__input { flex: 1; background: transparent; border: 0; color: var(--bone); font: inherit; font-weight: 300; padding: 16px 18px; }
.ai__input:focus { outline: none; }
.ai__send { width: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-2); border-left: 1px solid var(--line); }
.ai__send:disabled { opacity: 0.4; }
.ai__reset { font-size: 0.78rem; color: var(--ash-2); padding: 8px 18px 12px; text-align: left; }
.ai__reset:hover { color: var(--ash); }
@media (max-width: 560px) { .ai { right: 14px; bottom: 14px; } }

/* ── Clients (names cycle through the stage) ────────────── */
.clients__stage { position: relative; min-height: 200px; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 80px); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients__name { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; will-change: transform, opacity, filter; }
.clients__name b { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: 0.01em; color: var(--bone); white-space: nowrap; }
.clients__name span { margin-top: 10px; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ash); }
.clients__list { display: none; flex-wrap: wrap; gap: 14px 40px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients__list li { font-family: var(--serif); font-size: 1.6rem; color: var(--bone); }
.clients__list li::after { content: attr(data-sector); display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ash); margin-top: 2px; }
.clients--static .clients__stage { display: none; }
.clients--static .clients__list { display: flex; }
@media (prefers-reduced-motion: reduce) { .clients__stage { display: none; } .clients__list { display: flex; } }
@media (max-width: 760px) {
  .clients__stage { flex-direction: column; min-height: 260px; gap: 22px; }
  .clients__name b { white-space: normal; font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
}

/* ── Utilities ──────────────────────────────────────────── */
.mt-6 { margin-top: 24px; } .mt-10 { margin-top: 40px; } .mt-14 { margin-top: 56px; }
.row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
