/* Sugar Studios — page-specific rules. */

/* ——— home · the house ——— */
#house { position: relative; height: 100svh; min-height: 640px; overflow: hidden; z-index: 2; background: radial-gradient(ellipse 70% 60% at 50% 46%, rgb(var(--glow) / .2), transparent 70%), var(--ink); }
.stage { position: absolute; inset: 0; will-change: transform; }
.crown { position: absolute; inset: 0; width: 100%; height: 100%; }
.crown .ray { fill: color-mix(in srgb, rgb(var(--glow)) calc(var(--lit, 0) * 22%), #0d1514); stroke: rgba(242, 232, 213, .07); stroke-width: 1; }
.crown .minor { fill: color-mix(in srgb, rgb(var(--glow)) 5%, #0b1211); }
.crown .arc { fill: none; stroke: rgba(242, 232, 213, .1); stroke-width: 1; }
.crown .crest { fill: color-mix(in srgb, rgb(var(--glow)) 14%, #0e1817); stroke: rgba(242, 232, 213, .16); }
.crown .scallop { fill: none; stroke: rgba(242, 232, 213, .22); stroke-width: 1.2; }
.arch { position: absolute; left: 50%; top: 27vh; width: calc(var(--stage) + 30px); transform: translateX(-50%); padding: 0 15px 15px;
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--glow)) 9%, #141c1b), #0b100f);
  box-shadow: inset 0 0 0 1px rgba(242, 232, 213, .14), inset 0 0 0 7px #0a0f0e, inset 0 0 0 8px rgba(242, 232, 213, .08);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, calc(100% - 14px) 7px, calc(100% - 7px) 7px, calc(100% - 7px) 14px, 100% 14px, 100% 100%, 0 100%, 0 14px, 7px 14px, 7px 7px, 14px 7px); }
.frieze { display: flex; justify-content: center; align-items: center; gap: 1.4em; height: 46px; font: 300 12px/1 "Josefin Sans", sans-serif; letter-spacing: .62em; text-transform: uppercase; color: rgba(242, 232, 213, .74); text-shadow: 0 1px 0 rgba(0, 0, 0, .8); }
.frieze .st { margin: 0; }
.screen { position: relative; aspect-ratio: 2.39 / 1; background: #000; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.curtain { position: absolute; inset: 0; width: 100%; height: 100%; }
.pilaster { position: absolute; z-index: 1; top: 15vh; bottom: 0; width: 5.8vw; left: calc(50% - var(--stage) / 2 - 11.6vw);
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--glow)) 16%, #18211f) 0 10px, #070b0a 10px 11px, color-mix(in srgb, rgb(var(--glow)) 12%, #141c1b) 11px 21px, #070b0a 21px 22px, color-mix(in srgb, rgb(var(--glow)) 9%, #101716) 22px 32px, #070b0a 32px 33px, transparent 33px),
    repeating-linear-gradient(90deg, color-mix(in srgb, rgb(var(--glow)) 8%, #0e1514) 0 6px, #070b0a 6px 7px, color-mix(in srgb, rgb(var(--glow)) 14%, #131c1b) 7px 13px, #080c0b 13px 14px);
  clip-path: polygon(0 0, 100% 0, 100% 11px, 94% 11px, 94% 22px, 88% 22px, 88% 33px, 82% 33px, 82% 100%, 18% 100%, 18% 33px, 12% 33px, 12% 22px, 6% 22px, 6% 11px, 0 11px);
  }
.pilaster.r { left: auto; right: calc(50% - var(--stage) / 2 - 11.6vw); }
.sconce { position: absolute; left: 50%; top: 22%; width: 180px; height: 240px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 196, 130, calc(.34 * var(--on, 0))), transparent); pointer-events: none; }
.sconce::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 76px; transform: translate(-50%, -50%); opacity: calc(.35 + .65 * var(--on, 0)); background: linear-gradient(180deg, #fff7e6, #ffd9a0 45%, #c48a45); clip-path: polygon(50% 0, 100% 18%, 86% 100%, 14% 100%, 0 18%); }
.seats { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; width: 100%; height: 24vh; }
.seats .seat { fill: #0a0607; }
.seats .rim { fill: none; stroke: rgb(var(--glow) / .5); stroke-width: 1.2; }
.seats .row2 .seat { fill: #070405; }
.seats .row2 .rim { stroke: rgb(var(--glow) / .28); }
.seats .btn { fill: rgb(var(--glow) / .16); }
.house-copy { position: absolute; z-index: 3; left: 4.4vw; right: 4.4vw; bottom: 4.8vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; pointer-events: none; }
.house-copy > * { pointer-events: auto; }
.h-name { font: 400 calc(clamp(30px, 3.1vw, 56px) * var(--fs))/calc(1.02 + var(--fl)) var(--fd); letter-spacing: -.005em; text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
.h-name .lbl { display: block; margin-bottom: 1.3em; }
.h-side { text-align: right; font: 400 15px/1.9 "Josefin Sans", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); }
.h-side .st { margin: 0 .5em; }
.sound { margin-top: .6em; opacity: .7; }
.sound[aria-pressed="true"] { color: var(--neon); opacity: 1; }

/* ——— home · services ——— */
.tower { position: relative; margin: 0 auto; width: 100%; max-width: 1800px; }
.tower-ph { position: relative; aspect-ratio: 1800 / 831; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 10%, #000 62%, transparent); mask: linear-gradient(transparent, #000 10%, #000 62%, transparent); }
.tower-ph img { width: 100%; height: 100%; object-fit: cover; }
.tower-ph .beams { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.tower .marquee { margin-top: -12%; }
.tower + .sec-lede { margin-top: 9vh; }
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7vh 3.2vw; padding: 0 var(--gut); }
html[data-cards="cases"] .lgrid { gap: 9vh 3vw; }

/* ——— home · the space ——— */
.space-in { display: grid; grid-template-columns: minmax(260px, 27vw) 1fr; gap: 5vw; padding: 0 var(--gut); }
.lift { position: sticky; top: 17vh; align-self: start; display: grid; justify-items: center; gap: 22px; padding-top: 2vh; }
.lift-now { text-align: center; }
.lift-now b { display: block; font: 400 calc(clamp(70px, 8vw, 132px) * var(--fs))/calc(.9 + var(--fl)) var(--fd); }
.lift-now span { font: 400 11px/1 "Josefin Sans", sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--celadon); }
.space-intro { padding-bottom: 6vh; }
.space-intro .big { font: 400 calc(clamp(34px, 3.6vw, 62px) * var(--fs))/calc(1.04 + var(--fl)) var(--fd); margin-bottom: 18px; }
.space-intro p:not(.big) { max-width: 34em; color: #cfd6d0; }
.frow { display: grid; grid-template-columns: 5.2vw 1.1fr 1.6fr auto; align-items: baseline; column-gap: 2vw; padding: 3.2vh 0 0; border-top: 1px solid var(--hair); }
.frow:last-child { border-bottom: 1px solid var(--hair); }
.fw-n { font: 400 calc(clamp(40px, 4.4vw, 76px) * var(--fs))/calc(.9 + var(--fl)) var(--fd); color: var(--celadon); transition: color .6s; }
.fw-t b { display: block; font: 400 calc(clamp(28px, 2.7vw, 46px) * var(--fs))/calc(1 + var(--fl)) var(--fd); }
.fw-t .lbl { display: block; margin-top: 10px; color: var(--neon); }
.fw-l { color: #cfd6d0; font-size: 15.5px; }
.fw-go { opacity: .5; transition: opacity .5s, color .5s; }
.fw-ph { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.1s var(--e-arrive); margin-top: 3.2vh; }
.fw-ph > span { overflow: hidden; min-height: 0; }
.fw-ph img { width: 100%; height: 19vw; max-height: 44vh; object-fit: cover; transform: scale(1.08); filter: brightness(.7); transition: transform 1.6s var(--e-arrive), filter 1s; }
.frow.is-open .fw-ph { grid-template-rows: 1fr; }
.frow.is-open .fw-ph img { transform: scale(1); filter: brightness(.95); }
.frow.is-open .fw-n { color: var(--ivory); }
.frow.is-open .fw-go, .frow:hover .fw-go { opacity: 1; color: var(--neon); }

/* ——— home · films ——— */
#films .marquee { margin-bottom: 1vh; }
.film { flex: none; width: clamp(150px, 14.5vw, 240px); transform: translateY(calc((1 - var(--k, 0)) * 26px)) scale(calc(.84 + .16 * var(--k, 0))); filter: brightness(calc(.42 + .58 * var(--k, 0))) saturate(calc(.5 + .5 * var(--k, 0))); transform-origin: 50% 100%; }
.film .hang { box-shadow: 0 18px 24px -2px rgba(0, 0, 0, .74); }
.film .fr-f > img { aspect-ratio: 2 / 3; pointer-events: none; }
.film .fr-i { padding: 7px; }

/* ——— reels ——— */
.reel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7vh 3.4vw; padding: 0 var(--gut); }
.reel { display: block; }
.reel .fr-f > img { transition: filter .8s, transform 1.4s var(--e-arrive); filter: brightness(.82); }
.reel:hover .fr-f > img { filter: brightness(1); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid rgba(242, 232, 213, .7); display: grid; place-items: center; transition: transform .6s var(--e-spring), background .4s; }
.play::before { content: ""; width: 0; height: 0; border-left: 14px solid var(--ivory); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.reel:hover .play, .trailer:hover .play { transform: scale(1.12); background: rgba(7, 11, 10, .35); }
.reel h3 { font: 400 calc(clamp(24px, 2.1vw, 36px) * var(--ft))/1.1 var(--fd); margin: 22px 0 6px; }

/* ——— galleries: pictures on a wall ——— */
.walk-h { padding-top: 13vh; }
.walk-h .banner { margin-bottom: 3vh; }
.walk-h .sec-lede { margin-bottom: 0; }
.pic { position: relative; flex: none; display: block; width: clamp(180px, 16.5vw, 270px); }
.pic.wide { width: clamp(300px, 28vw, 450px); }
.pic .fr-f > img { pointer-events: none; }
#team .pic .fr-f > img, .teamwall .pic .fr-f > img { filter: sepia(.1); }
.walk .lamp { align-self: center; margin-top: -16vh; }
.walk-end { flex: none; display: grid; gap: 22px; justify-items: start; width: 30vw; padding-left: 3vw; }
.walk-end b { font: 400 calc(clamp(40px, 4.6vw, 80px) * var(--fs))/calc(.95 + var(--fl)) var(--fd); }
.flash { position: absolute; z-index: 1; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.salon { position: relative; display: flex; justify-content: center; align-items: center; gap: 3vw; padding: 5vh var(--gut) 3vh; }
.salon .pic { width: 15vw; }
.salon .s0, .salon .s4 { width: 12.5vw; margin-top: 7vh; }
.salon .s1 { margin-top: -5vh; } .salon .s3 { margin-top: 3vh; }
.salon .s2 { width: 20vw; }
.plamp { position: absolute; left: 22%; right: 22%; top: -30px; height: 9px; border-radius: 5px; z-index: 2; background: linear-gradient(180deg, var(--m1), var(--m3)); box-shadow: 0 6px 22px 4px rgba(255, 214, 160, .38); }
.plamp::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 2px; background: #fff3d6; filter: blur(1px); }
.salon-go { text-align: center; margin-top: 7vh; position: relative; z-index: 4; }
.ropes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; z-index: 3; pointer-events: none; }
#wof.sec { padding-bottom: 26vh; }

/* ——— news, clients ——— */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.4vw; padding: 0 var(--gut); }
.note { display: block; }
.note time { display: block; margin: 22px 0 8px; }
.note h3 { font: 400 calc(clamp(22px, 1.8vw, 30px) * var(--ft))/1.12 var(--fd); margin-bottom: 10px; }
.note p { color: #c4ccc6; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.credits { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.credits-t { display: flex; align-items: center; width: max-content; animation: credits 90s linear infinite; }
.credits-t span { font: 400 calc(clamp(30px, 3.4vw, 58px) * var(--fs))/1.3 var(--fd); white-space: nowrap; color: var(--paper); }
.credits-t .st { margin: 0 2.2vw; }
@keyframes credits { to { transform: translateX(-50%); } }
.credits:hover .credits-t { animation-play-state: paused; }

@media (max-width: 760px) {
  #house { min-height: 560px; }
  .arch { top: 31vh; width: calc(var(--stage) + 16px); padding: 0 8px 8px; }
  .frieze { height: 34px; font-size: 9.5px; letter-spacing: .44em; gap: .9em; }
  .pilaster { display: none; }
  .seats { height: 38vh; }
  .house-copy { flex-direction: column; align-items: flex-start; bottom: 4vh; gap: 18px; }
  .h-name { font-size: 30px; }
  .h-side { text-align: left; font-size: 12px; }
  .tower .marquee { margin-top: -6%; }
  .lgrid, .news-grid, .reel-grid { grid-template-columns: 1fr; gap: 7vh; }
  .lcard { --tilt: 0deg !important; }
  .space-in { grid-template-columns: 1fr; }
  .lift { position: sticky; top: 64px; z-index: 4; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 16px; margin: 0 calc(var(--gut) * -1); padding: 10px 0 10px var(--gut); background: linear-gradient(rgba(7, 17, 16, .96), rgba(7, 17, 16, .9)); box-shadow: 0 1px 0 var(--hair); }
  .lift-now { text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .lift-now b { font-size: 46px; }
  .frow { grid-template-columns: 54px 1fr; row-gap: 10px; padding-top: 3vh; }
  .fw-l { grid-column: 1 / -1; }
  .fw-go { display: none; }
  .fw-ph { grid-template-rows: 1fr; }
  .fw-ph img { height: 52vw; transform: none; filter: none; }
  .film { width: 46vw; }
  .pic { width: 62vw; }
  .pic.wide { width: 84vw; }
  .walk-h { padding-top: 11vh; }
  .walk .lamp { margin-top: 20vw; }
  .walk-vp { padding: 7vh 0 4vh; }
  .walk-end { width: 70vw; }
  .salon { justify-content: flex-start; overflow-x: auto; gap: 7vw; padding: 6vh 8vw 3vh; scrollbar-width: none; }
  .salon::-webkit-scrollbar { display: none; }
  .salon .pic, .salon .s0, .salon .s2, .salon .s4 { width: 60vw; margin-top: 0; flex: none; }
  .ropes { height: 14vh; }
  #wof.sec { padding-bottom: 18vh; }
}
@media (prefers-reduced-motion: reduce) { .credits-t { animation: none; } }

/* ═══ r6 · batch 6 ═══ */
/* wall of fame (home) · every portrait under its own picture light. --lit (set by the page) is that light on the photograph and the nameplate;
   the lamp's own --on is what the wall reads for the pool on the velvet. Nothing is wiped or flashed in: the wall is dark, then lit. */
.salon .pic { --lit: 1; }
.salon .fr-f::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #060303; opacity: calc(.9 - .9 * var(--lit)); }
.salon .plate { opacity: calc(.16 + .84 * var(--lit)); }
.salon .plamp { opacity: calc(.28 + .72 * var(--on, 1)); box-shadow: 0 6px 22px 4px rgba(255, 214, 160, calc(.4 * var(--on, 1))); }
.salon .plamp::after { opacity: var(--on, 1); }
.salon .s0 .plamp, .salon .s4 .plamp { left: 18%; right: 18%; }
.salon .hang { transition: translate .8s var(--e-arrive); }
@media (hover: hover) { .salon .pic:hover .hang { translate: 0 -7px; } }

/* ═══ r6 · batch 8 ═══ */
/* the hero's frieze: the lettering in the optical middle of its band (Josefin's capitals ride high in their line, and the band's top 7 px is the cornice lip) */
.frieze { padding-top: 8px; }
@media (max-width: 760px) { .frieze { padding-top: 5px; } }
.frieze { padding-left: .62em; }      /* the last letter's tracking is not part of the word: without this the line sits half a space to the left */

/* ═══ r6 · final 3 ═══ */
/* the sunburst, lit from its crest: silver-leaf edges, a light of the house's own on every ray (--lit comes up ray by ray in the opening) */
.crown .ray { stroke: rgb(214 228 222 / calc(.06 + .12 * var(--lit, 0))); }
.crown .ray-l { fill: url(#rayGlow); stroke: none; opacity: var(--lit, 0); }
.crown .scallop { stroke: rgba(226, 238, 233, .34); }
.crown .crest { stroke: rgba(226, 238, 233, .24); }

/* ═══ r6 · final 3b ═══ */
.frieze { position: relative; height: 34px; margin: 6px auto; padding: 3px 54px 0 calc(54px + .62em); width: max-content; max-width: 100%; color: #f1e8d2;
  background: linear-gradient(180deg, #1f5a5c, #164548 58%, #113638); box-shadow: inset 0 0 0 1px #071a1b, inset 0 0 0 3px rgba(233, 222, 196, .78), inset 0 0 0 4px #071a1b, inset 0 0 0 7px #1a4d50, inset 0 0 0 8px rgba(233, 222, 196, .3), 0 6px 14px rgba(0, 0, 0, .5); }
.frieze::before, .frieze::after { content: ""; position: absolute; top: 50%; width: 11px; height: 17px; margin-top: -8.5px; background: linear-gradient(135deg, #b9f3d4, #2fa37a 55%, #0d5c46); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 4px rgba(120, 240, 190, .5)); }
.frieze::before { left: 24px; } .frieze::after { right: 24px; }
@media (max-width: 760px) { .frieze { height: 26px; margin: 4px auto; padding: 2px 30px 0 calc(30px + .44em); } .frieze::before, .frieze::after { width: 7px; height: 11px; margin-top: -5.5px; } .frieze::before { left: 13px; } .frieze::after { right: 13px; } }
