/* Bruce Davison Art - gallery mockups (shares Paralogic design tokens) */
body { background: var(--bg-primary); }

.g-hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.g-hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-radial-spotlight); pointer-events: none;
}
.g-head { position: relative; text-align: center; padding: 0 24px 32px; }
.g-head .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent-gold); margin-bottom: 12px;
}
.g-head h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-5xl); line-height: 1.1; color: #fff; margin: 0 0 10px;
}
.g-head p { color: var(--neutral-400); font-size: var(--text-lg); margin: 0; }

.g-caption {
  text-align: center; margin-top: 20px; min-height: 64px;
  font-family: var(--font-sans); color: var(--neutral-300);
}
.g-caption h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); color: #fff; margin: 0 0 4px; }
.g-caption span { font-size: 14px; color: var(--neutral-500); }
.g-caption .count { color: var(--accent-gold); font-family: var(--font-mono); }

.g-btn {
  width: 48px; height: 48px; border-radius: 0; cursor: pointer;
  border: 1px solid var(--accent-gold); background: rgba(9,9,11,.6);
  color: var(--accent-gold); font-size: 20px; line-height: 1;
  transition: all .25s;
}
.g-btn:hover { background: var(--accent-gold); color: #09090B; }

/* ---- filmstrip ---- */
.a-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 8px 24px 12px;
  margin: 24px auto 0; max-width: 1100px; scrollbar-width: thin;
  scrollbar-color: var(--accent-gold-dark) transparent;
}
.a-strip button {
  flex: 0 0 auto; width: 76px; height: 76px; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: none; opacity: .5; transition: all .25s;
}
.a-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-strip button.on { opacity: 1; border-color: var(--accent-gold); transform: translateY(-4px); }

/* ---- 3D coverflow ---- */
.c-stage {
  position: relative; height: min(64vh, 620px); perspective: 1400px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.c-card {
  position: absolute; height: 84%; aspect-ratio: 4/5; cursor: pointer;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s, filter .5s;
  background: #111; border: 1px solid var(--accent-gold-dark); padding: 10px;
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.c-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-stage .g-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 50; }
.c-stage .prev { left: 24px; } .c-stage .next { right: 24px; }
.c-reflect { pointer-events: none; }

@media (max-width: 700px) {
  .a-stage { padding: 0 8px; height: 50vh; }
  .a-stage .g-btn { display: none; }
  .g-hero { padding-top: 100px; }
  .c-card { height: 70%; }
}

/* ---- stage sizing ---- */
.d-stage { height: min(58vh, 640px); }
.d-stage .c-card { height: 90%; }
.d-stage .prev { left: 16px; } .d-stage .next { right: 16px; }
#gallery .a-strip { justify-content: flex-start; }
@media (max-width: 700px) { .d-stage { height: 56vh; } .d-stage .c-card { height: 78%; } }

/* ---- card hover effects ---- */
.d-stage .c-card { overflow: visible; }
.d-stage .ph { width: 100%; height: 100%; overflow: hidden; position: relative; }
.d-stage .ph img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.d-stage .c-card:hover { border-color: var(--accent-gold); }
.d-stage .c-card:hover .ph img { transform: scale(1.06); }
.d-stage .c-card:not(.is-center):hover { filter: brightness(.95) !important; }
.d-stage .c-card.is-center { cursor: zoom-in; }
.d-stage .c-card.is-center:hover { box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 50px rgba(201,169,98,.35); }
.d-stage .c-card .view {
  position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  padding: 9px 20px; border-radius: 999px; font: 600 12px var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent-gold); color: #09090B; opacity: 0; pointer-events: none; transition: all .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.d-stage .c-card.is-center:hover .view { opacity: 1; transform: translate(-50%, 0); }
.d-stage.snap .c-card { transition: none !important; }
#gallery .a-strip button { position: relative; overflow: hidden; }
#gallery .a-strip button img { transition: transform .4s; }
#gallery .a-strip button:hover { opacity: 1; transform: translateY(-3px); }
#gallery .a-strip button:hover img { transform: scale(1.12); }

/* ============ Focus view ============ */
.fv { position: fixed; inset: 0; z-index: 5000; display: none; }
.fv.open { display: block; }
.fv-bg { position: absolute; inset: 0; background: rgba(5,5,7,0); backdrop-filter: blur(0); transition: background .7s, backdrop-filter .7s; }
.fv.open .fv-bg { background: rgba(5,5,7,.93); backdrop-filter: blur(14px); }
.fv.closing .fv-bg { background: rgba(5,5,7,0); backdrop-filter: blur(0); }
.fv-grid { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); pointer-events: none; }
.fv-art { padding: 70px 20px 70px 70px; }
.fv-panel {
  pointer-events: auto; overflow-y: auto; padding: 80px 64px 64px 40px; color: var(--neutral-300); font-family: var(--font-sans);
  scrollbar-width: thin; scrollbar-color: var(--accent-gold-dark) transparent;
}
.fv-fly {
  position: fixed; z-index: 5100; box-sizing: border-box; padding: 10px; background: #111;
  border: 1px solid var(--accent-gold-dark); pointer-events: none; will-change: transform;
  transition: left .6s cubic-bezier(.2,.7,.2,1), top .6s cubic-bezier(.2,.7,.2,1), width .6s cubic-bezier(.2,.7,.2,1), height .6s cubic-bezier(.2,.7,.2,1), opacity .28s, translate .28s;
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 60px rgba(201,169,98,.12);
}
.fv-fly.notrans { transition: none; }
.fv-fly img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-fly::after { /* glare */
  content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%);
}
.fv.settled ~ .fv-fly::after { opacity: 1; }
.fv-fly { transform: perspective(1200px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.fv-fly.out { opacity: 0; translate: calc(var(--dir) * -60px) 0; }
.fv-fly.in { animation: fvIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes fvIn { from { opacity: 0; translate: calc(var(--dir) * 60px) 0; } to { opacity: 1; translate: 0 0; } }

/* panel stagger */
.fv-panel [data-s] { opacity: 0; transform: translateX(46px); }
.fv.rv .fv-panel [data-s] { animation: fvPanel .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.42s + var(--i) * 70ms); }
.fv.swap .fv-panel [data-s], .fv.closing .fv-panel [data-s] { opacity: 0; transform: translateX(-20px); transition: all .25s; animation: none; }
@keyframes fvPanel { to { opacity: 1; transform: none; } }
.fv-eyebrow { font: 500 12px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--neutral-500); margin: 0 0 14px; }
.fv-eyebrow .st { color: var(--accent-gold); } .fv-eyebrow .st.sold { color: var(--color-error); }
.fv-title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-4xl); color: #fff; line-height: 1.1; margin: 0 0 18px; }
.fv-rule { height: 1px; background: var(--gradient-gold); transform-origin: left; }
.fv.rv .fv-rule { animation: fvPanel .8s forwards, fvRule 1s .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.42s + var(--i) * 70ms), calc(.55s + var(--i) * 70ms); }
@keyframes fvRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 22px 0; }
.fv-meta div { padding: 12px 0; border-bottom: 1px solid var(--border-primary); position: relative; transition: transform .3s; }
.fv-meta div::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent-gold); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.fv-meta div:hover { transform: translateX(6px); } .fv-meta div:hover::after { transform: scaleX(1); }
.fv-meta dt { font: 500 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--neutral-500); margin-bottom: 4px; }
.fv-meta dd { margin: 0; color: #fff; font-size: 16px; transition: color .3s; } .fv-meta div:hover dd { color: var(--accent-gold-light); }
.fv-desc { line-height: 1.7; color: var(--neutral-400); margin: 0 0 30px; }

.fv-form-wrap { padding: 28px; border: 1px solid var(--border-secondary); border-radius: 0; background: linear-gradient(180deg, rgba(24,24,27,.8), rgba(9,9,11,.6)); position: relative; transition: border-color .4s, box-shadow .4s; }
.fv-form-wrap:hover, .fv-form-wrap:focus-within { border-color: var(--accent-gold-dark); box-shadow: 0 0 40px rgba(201,169,98,.07); }
.fv-form-wrap h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); color: #fff; margin: 0 0 6px; }
.fv-form-wrap > p { margin: 0 0 20px; font-size: 14px; color: var(--neutral-500); }
.fv-form { display: grid; gap: 14px; }
.fv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl { position: relative; display: block; }
.fl .form-input { padding-top: 22px; padding-bottom: 8px; background: rgba(0,0,0,.25); }
.fl .form-textarea { min-height: 110px; }
.fl > span { position: absolute; left: 21px; top: 15px; font-size: 15px; color: var(--neutral-500); pointer-events: none; transition: all .25s cubic-bezier(.2,.7,.2,1); transform-origin: left; }
.fl .form-input:focus + span, .fl .form-input:not(:placeholder-shown) + span, .fl > span.up { top: 6px; font-size: 11px; letter-spacing: .08em; color: var(--accent-gold); }
.fl .form-input:hover { border-color: var(--neutral-500); } .fl .form-input:focus { border-color: var(--accent-gold); }
.fv-send:disabled { opacity: .7; cursor: wait; }
.fv-done { display: none; text-align: center; padding: 20px 0; }
.fv-form-wrap.sent > h3, .fv-form-wrap.sent > p, .fv-form-wrap.sent .fv-form { display: none; }
.fv-form-wrap.sent .fv-done { display: block; }
.fv-done h3 { margin-top: 14px; }
.fv-done svg { width: 64px; fill: none; stroke: var(--accent-gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fv-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: fvDraw .7s forwards; }
.fv-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: fvDraw .5s .5s forwards; }
@keyframes fvDraw { to { stroke-dashoffset: 0; } }

/* close + nav */
.fv-close { position: absolute; top: 22px; right: 26px; z-index: 5200; width: 48px; height: 48px; border-radius: 0; border: 1px solid var(--border-secondary); background: rgba(9,9,11,.6); cursor: pointer; opacity: 0; transition: all .4s; }
.fv.rv .fv-close, .fv.settled .fv-close { opacity: 1; transition-delay: .5s; }
.fv-close span { position: absolute; left: 14px; top: 23px; width: 18px; height: 1.5px; background: #fff; transition: transform .4s, background .3s; }
.fv-close span:first-child { transform: rotate(45deg); } .fv-close span:last-child { transform: rotate(-45deg); }
.fv-close:hover { border-color: var(--accent-gold); transform: rotate(90deg); }
.fv-close:hover span { background: var(--accent-gold); }
.fv-nav { position: absolute; z-index: 5200; bottom: 28px; opacity: 0; transition: all .25s; }
.fv-prev { left: 70px; } .fv-next { left: 130px; }
.fv.rv .fv-nav, .fv.settled .fv-nav { opacity: 1; transition-delay: .6s; }
.fv-nav:hover { transform: scale(1.1); }

@media (max-width: 900px) {
  .fv-grid { display: block; overflow-y: auto; pointer-events: auto; }
  .fv-art { height: 52vh; padding: 70px 16px 10px; }
  .fv-panel { overflow: visible; padding: 20px 20px 90px; }
  .fv-fly { position: fixed; }
  .fv-meta, .fv-row { grid-template-columns: 1fr; }
  .fv-prev { left: 16px; } .fv-next { left: 76px; }
}
.g-hero { padding-bottom: 120px; }

.fv-meta .wide { grid-column: 1 / -1; }

/* ---- square corners everywhere except main CTAs (.btn-gold, nav .btn-outline, "View piece" pill) ---- */
.fv .form-input, .fv-form-wrap, .g-btn, .fv-close, .fv-fly, .c-card, .a-strip button, .dd-btn, .dd-list { border-radius: 0; }

/* ---- themed dropdown ---- */
.dd { position: relative; }
.dd-btn {
  width: 100%; text-align: left; cursor: pointer; position: relative; display: block;
  padding: 22px 48px 8px 21px; background: rgba(0,0,0,.25); border: 1px solid var(--border-secondary);
  color: #fff; font: 400 16px var(--font-sans); transition: border-color .25s, box-shadow .25s;
}
.dd-btn:hover { border-color: var(--neutral-500); }
.dd-btn:focus-visible, .dd.open .dd-btn { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(201,169,98,.15); }
.dd-lbl { position: absolute; left: 21px; top: 6px; font-size: 11px; letter-spacing: .08em; color: var(--accent-gold); }
.dd-btn svg { position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--neutral-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2,.7,.2,1), stroke .25s; }
.dd.open .dd-btn svg { transform: rotate(180deg); stroke: var(--accent-gold); }
.dd-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none;
  background: var(--neutral-900); border: 1px solid var(--accent-gold-dark); box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 30px rgba(201,169,98,.08);
  opacity: 0; transform: translateY(-8px); visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), clip-path .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s;
}
.dd.open .dd-list { opacity: 1; transform: none; visibility: visible; clip-path: inset(0); transition-delay: 0s; }
.dd-list li {
  position: relative; padding: 12px 16px 12px 20px; color: var(--neutral-300); font: 400 15px var(--font-sans); cursor: pointer;
  transition: background .2s, color .2s, padding .25s;
}
.dd-list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent-gold); transform: scaleY(0); transition: transform .25s; }
.dd-list li.hi { background: var(--gradient-gold-subtle); color: #fff; padding-left: 26px; }
.dd-list li.hi::before, .dd-list li.sel::before { transform: scaleY(1); }
.dd-list li.sel { color: var(--accent-gold-light); }
.dd-list li.sel::after { content: "✓"; position: absolute; right: 16px; color: var(--accent-gold); }

/* ---- header: wordmark only; menu truly centered via 3-column grid ---- */
.navbar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.navbar .logo { justify-self: start; }
.navbar .logo a { display: inline-flex; }
.navbar .nav-menu { justify-self: center; margin: 0; padding: 0; }
.navbar .nav-cta { justify-self: end; }
@media (max-width: 768px) {
  .navbar .container { display: flex; justify-content: space-between; }
}

/* ============ Loading intro ============ */
body.intro-pre { overflow: hidden; }
body.intro-run .navbar, body.intro-run .g-head, body.intro-run .g-caption, body.intro-run .a-strip, body.intro-run #gallery .g-btn {
  transition: opacity 1.4s cubic-bezier(.2,.7,.2,1) .15s, filter 1.4s cubic-bezier(.2,.7,.2,1) .15s;
}
body.intro-pre .navbar, body.intro-pre .g-head, body.intro-pre .g-caption, body.intro-pre .a-strip, body.intro-pre #gallery .g-btn { opacity: 0; filter: blur(18px); }
body.intro-deck #gallery .c-card { opacity: 0 !important; }

.intro { position: fixed; inset: 0; z-index: 6000; background: var(--bg-primary); overflow: hidden; transition: background .9s; }
.intro.clear { background: transparent; }
.intro-wall { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; opacity: 0; }
.intro.ready .intro-wall { opacity: 1; }
.intro.ready .intro-load { opacity: 0; }
.intro-load { position: absolute; left: 50%; top: 50%; width: 180px; height: 1px; margin-left: -90px; background: var(--border-secondary); transition: opacity .4s; }
.intro-load span { display: block; height: 100%; width: 0; background: var(--accent-gold); transition: width .2s; }
.ic { position: absolute; box-sizing: border-box; padding: 4px; background: #121214; border: 1px solid var(--accent-gold-dark); box-shadow: 0 14px 30px rgba(0,0,0,.65); }
.ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic.poster { padding: 6px; border-color: var(--accent-gold); z-index: 50; box-shadow: 0 30px 80px rgba(0,0,0,.85), 0 0 90px rgba(201,169,98,.35); }
.intro-skip { position: absolute; right: 24px; bottom: 24px; z-index: 100; padding: 10px 18px; border: 1px solid var(--border-secondary); border-radius: 0; background: rgba(9,9,11,.6); color: var(--neutral-300); font: 500 12px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: all .25s; }
.intro-skip:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ============ Form entrance: frame draws itself, glass materialises, fields rise into focus ============ */
.fv-form-wrap { --d: 1.05s; isolation: isolate; opacity: 0; border-color: transparent; }
.fv.rv .fv-form-wrap {
  animation: fvWrap 1.3s cubic-bezier(.16,1,.3,1) var(--d) both, fvBorder .8s ease calc(var(--d) + 1.5s) both;
}
@keyframes fvWrap {
  from { opacity: 0; transform: translateY(44px) scale(.965); filter: blur(12px); }
  60%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fvBorder { from { border-color: transparent; } to { border-color: var(--border-secondary); } }

.fv-glow {
  position: absolute; inset: -60px; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,169,98,.28), transparent 65%);
}
.fv.rv .fv-glow { animation: fvGlow 2.2s ease-out var(--d) both; }
@keyframes fvGlow { 0% { opacity: 0; transform: scale(.85); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }

.fv-frame { position: absolute; inset: -1px; pointer-events: none; opacity: 0; }
.fv-frame i { position: absolute; background: var(--accent-gold); box-shadow: 0 0 10px rgba(201,169,98,.7); }
.fv-frame i:nth-child(1) { left: 0; top: 0; right: 0; height: 1px; transform-origin: left; transform: scaleX(0); }
.fv-frame i:nth-child(2) { right: 0; top: 0; bottom: 0; width: 1px; transform-origin: top; transform: scaleY(0); }
.fv-frame i:nth-child(3) { left: 0; bottom: 0; right: 0; height: 1px; transform-origin: right; transform: scaleX(0); }
.fv-frame i:nth-child(4) { left: 0; top: 0; bottom: 0; width: 1px; transform-origin: bottom; transform: scaleY(0); }
.fv.rv .fv-frame { animation: fvFrame 2.4s ease calc(var(--d) + .15s) both; }
.fv.rv .fv-frame i { animation: fvDrawLine .55s cubic-bezier(.65,0,.25,1) both; }
.fv.rv .fv-frame i:nth-child(1) { animation-delay: calc(var(--d) + .15s); }
.fv.rv .fv-frame i:nth-child(2) { animation-delay: calc(var(--d) + .5s); }
.fv.rv .fv-frame i:nth-child(3) { animation-delay: calc(var(--d) + .85s); }
.fv.rv .fv-frame i:nth-child(4) { animation-delay: calc(var(--d) + 1.2s); }
@keyframes fvFrame { 0% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fvDrawLine { to { transform: none; } }

.fv-form-wrap [data-r] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.fv.rv .fv-form-wrap [data-r] { animation: fvRise .9s cubic-bezier(.16,1,.3,1) calc(var(--d) + .45s + var(--j) * .085s) both; }
@keyframes fvRise { to { opacity: 1; transform: none; filter: blur(0); } }

.fv-send { position: relative; overflow: hidden; }
.fv-send::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%) skewX(-18deg);
}
.fv.rv .fv-send::after { animation: fvShine 1.1s ease calc(var(--d) + 2s) 1 both; }
@keyframes fvShine { to { transform: translateX(520%) skewX(-18deg); } }

.fv.swap .fv-form-wrap, .fv.closing .fv-form-wrap { opacity: 0; animation: none; transition: opacity .25s; }

/* ---- header contact overlay ---- */
.cv .cv-inner { position: absolute; inset: 0; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding: 90px 24px 60px; scrollbar-width: thin; scrollbar-color: var(--accent-gold-dark) transparent; }
.cv .cv-card { width: min(640px, 100%); margin: auto 0; color: var(--neutral-300); font-family: var(--font-sans); }
.cv .cv-card [data-s] { opacity: 0; transform: translateY(26px); }
.cv.rv .cv-card [data-s] { animation: fvPanelUp .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.25s + var(--i) * 80ms); }
.cv.closing .cv-card [data-s] { opacity: 0; transition: opacity .25s; animation: none; }
@keyframes fvPanelUp { to { opacity: 1; transform: none; } }
.cv.rv .fv-rule { animation: fvPanelUp .8s forwards, fvRule 1s .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.25s + var(--i) * 80ms), calc(.4s + var(--i) * 80ms); }
.cv .cv-card .fv-form-wrap { --d: .9s; margin-top: 8px; }
.cv .cv-lead { margin: 0 0 26px; }
.cv.closing .fv-form-wrap { opacity: 0; animation: none; transition: opacity .25s; }

/* dropdown must paint above the fields below it (each field is its own stacking context from the entrance animation) */
.fv-form-wrap .dd { position: relative; z-index: 1; }
.fv-form-wrap .dd.open { z-index: 100; }

/* ============ Responsive pass: tablet + mobile ============ */
.c-stage .g-btn { z-index: 200; }
.mobile-menu { z-index: 4999; }
.mobile-menu a[data-action] { cursor: pointer; }

/* tablet & below */
@media (max-width: 900px) {
  .g-hero { padding: 104px 0 96px; }
  .g-head h1 { font-size: var(--text-4xl); }
  .d-stage { height: min(60vh, 560px); }
  .d-stage .c-card { height: 92%; }
  .d-stage .prev { left: 8px; } .d-stage .next { right: 8px; }
  .g-caption { padding: 0 20px; }
  .g-caption h3 { font-size: var(--text-xl); }
  .a-strip { padding-left: 16px; padding-right: 16px; }

  /* focus view: art pinned on top, details + form scroll beneath it */
  .fv-grid { display: flex; flex-direction: column; overflow: hidden; }
  .fv-art { flex: 0 0 auto; height: min(44vh, 460px); padding: 64px 16px 8px; }
  .fv-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px 20px calc(48px + env(safe-area-inset-bottom)); }
  .fv-title { font-size: var(--text-3xl); }
  .fv-nav { bottom: auto; top: calc(min(44vh, 460px) / 2 + 20px); width: 44px; height: 44px; background: rgba(9,9,11,.78); }
  .fv-prev { left: 6px; } .fv-next { left: auto; right: 6px; }
  .fv-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .fv-close span { left: 13px; top: 21px; }
  .fv-form-wrap { padding: 20px; }
  .fv-meta { gap: 0 20px; }

  .cv .cv-inner { padding: 72px 20px calc(40px + env(safe-area-inset-bottom)); }
}

/* phones */
@media (max-width: 600px) {
  .g-head h1 { font-size: var(--text-3xl); }
  .g-head p { font-size: var(--text-base); }
  .d-stage { height: min(56vh, 470px); }
  .fv-meta, .fv-row { grid-template-columns: 1fr; }
  .fv-form-wrap { padding: 16px; }
  .fv-form-wrap h3 { font-size: var(--text-xl); }
  .g-btn { width: 44px; height: 44px; }
  .c-stage .g-btn { background: rgba(9,9,11,.78); }
  .intro-skip { right: 12px; bottom: 12px; padding: 12px 16px; }
}

/* landscape phones: two columns again, tighter */
@media (max-height: 520px) and (orientation: landscape) {
  .g-hero { padding: 84px 0 70px; }
  .g-head { padding-bottom: 14px; } .g-head h1 { font-size: var(--text-3xl); } .g-head p { display: none; }
  .d-stage { height: min(72vh, 300px); }
  .fv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: visible; }
  .fv-art { height: auto; padding: 14px 8px 14px 56px; }
  .fv-panel { padding: 56px 24px 24px 12px; }
  .fv-nav { top: auto; bottom: 12px; }
  .fv-prev { left: 8px; bottom: 64px; } .fv-next { left: 8px; bottom: 12px; right: auto; }
  .fv-meta, .fv-row { grid-template-columns: 1fr 1fr; }
  .cv .cv-inner { padding-top: 60px; }
}

/* ---- sent state: centred, balanced, same card size as the form ---- */
.fv-form-wrap.sent { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fv-form-wrap.sent .fv-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 24px 8px; width: 100%; }
.fv-done svg { display: block; margin: 0 auto 18px; width: 72px; height: 72px; }
.fv-form-wrap .fv-done h3 { margin: 0 0 8px; font-size: var(--text-2xl); }
.fv-form-wrap .fv-done p { margin: 0 0 24px; max-width: 32ch; font-size: 15px; line-height: 1.6; color: var(--neutral-400); }
.fv-done .btn { margin: 0; }
.fv-form-wrap.sent .fv-done h3, .fv-form-wrap.sent .fv-done p, .fv-form-wrap.sent .fv-done .btn { opacity: 0; animation: fvRise .8s cubic-bezier(.16,1,.3,1) forwards; }
.fv-form-wrap.sent .fv-done h3 { animation-delay: .55s; }
.fv-form-wrap.sent .fv-done p { animation-delay: .65s; }
.fv-form-wrap.sent .fv-done .btn { animation-delay: .8s; }
@media (max-width: 900px) { .fv-panel { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); } }
@media (max-height: 520px) and (orientation: landscape) { .fv-panel { -webkit-mask-image: none; mask-image: none; } }
/* tablet landscape / small laptops: leave room under the artwork for the prev/next buttons */
@media (min-width: 901px) and (max-width: 1100px) { .fv-art { align-self: start; height: calc(100% - 96px); padding: 0; } }
