/* SPEC_V3_3 §3 — the Gallery (v3.8: seven live directions; the sound studio is card 1): five live directions in a draggable rail, and a full-screen viewer that a card expands
   into (GSAP Flip). In the site's own language: white, Inter Tight, the serif label, bold uppercase text links. */
.gallery { padding-bottom: 40px; overflow: hidden; }
/* v3.10 §10: the gallery is section 01 (the same top rule + italic number as How it works 02 … Contact 05) */
.gallery .g-top { margin-bottom: clamp(28px, 4vw, 48px); }
.gallery .g-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.gallery .sec-h { max-width: 18ch; text-wrap: balance; }
.gallery .lead { margin-top: 18px; max-width: 46ch; }
.g-arrows { display: flex; gap: 8px; }
.g-arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease), opacity .25s; }
.g-arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.g-arrows button:disabled { opacity: .25; cursor: default; }

.g-rail { display: flex; gap: 20px; margin: 44px calc(-1 * var(--pad, 0px)) 0; padding: 10px var(--pad, 0px) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad, 0px); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.g-rail::-webkit-scrollbar { display: none; }
.g-rail.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.g-rail.dragging .g-card { pointer-events: none; }
.g-card { position: relative; flex: 0 0 min(64vw, 900px); scroll-snap-align: start; border-radius: 22px; background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.g-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(13, 13, 13, .35); }
.g-prev { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--c, #eee); isolation: isolate; }
.g-prev::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .1); pointer-events: none; }
.g-frame { position: absolute; left: 0; top: 0; width: 1440px; height: 1800px; transform-origin: 0 0; transform: scale(var(--s, .5)) translateY(0); transition: transform 9s cubic-bezier(.45, 0, .55, 1); }
.g-frame iframe { width: 1440px; height: 1800px; border: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); background: transparent; }
.g-frame iframe.ready { opacity: 1; }
.g-card:hover .g-frame, .g-card:focus-within .g-frame { transform: scale(var(--s, .5)) translateY(-900px); }
.g-sw { position: absolute; inset: 0; display: grid; place-items: center; font: 400 20px/1 var(--serif); color: rgba(13, 13, 13, .5); }
.g-meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 4px 4px; align-items: end; }
.g-meta h3 { font: 600 clamp(24px, 2.4vw, 36px)/1.05 var(--sans); letter-spacing: -.035em; }
.g-meta .g-biz { color: var(--ink-2); font-size: 15px; }
.g-meta .g-tags { grid-column: 1; font: 400 14px/1.4 var(--serif); font-size: 17px; color: var(--ink-3); }
.g-enter { grid-column: 2; grid-row: 1 / span 3; align-self: end; font: 700 15px/1 var(--sans); letter-spacing: .01em; text-transform: uppercase; background: none; border: 0; padding: 12px 0; color: var(--ink); cursor: pointer; position: static; }
.g-enter::before { content: ''; position: absolute; inset: 0; border-radius: 22px; z-index: 1; } /* the whole card is the target */
.g-enter span { display: inline-block; transition: transform .45s var(--ease); }
.g-card:hover .g-enter span, .g-enter:focus-visible span { transform: translateX(5px); }
.g-enter:focus-visible { outline: none; }
.g-enter:focus-visible::before { outline: 2px solid var(--blue); outline-offset: 4px; }
.g-count { margin-top: 6px; font: italic 400 22px/1 var(--serif); color: var(--ink-3); }

/* ---------- viewer ---------- */
html.viewer-open { overflow: hidden; }
.gv { position: fixed; inset: 0; z-index: 90; }
.gv[hidden] { display: none; }
.gv-scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, .92); }
.gv-panel { position: absolute; inset: 0; background: #fff; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.gv-bar { display: flex; align-items: center; gap: 14px; padding: 10px var(--g); border-bottom: 1px solid var(--hair); min-height: 64px; flex-wrap: nowrap; }
.gv-title { min-width: 0; margin-right: auto; display: grid; gap: 2px; }
.gv-title b { font: 600 19px/1.1 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-title small { font: 400 15px/1 var(--serif); color: var(--ink-3); white-space: nowrap; }
.gv-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #f1f1f1; }
.gv-seg button { border: 0; background: transparent; min-height: 36px; padding: 0 16px; border-radius: 999px; font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.gv-seg button:hover { color: var(--ink); }
.gv-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gv-bar .gv-btn { border: 0; background: none; min-height: 44px; min-width: 44px; padding: 0 10px; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); cursor: pointer; border-radius: 999px; }
.gv-bar .gv-btn:hover { background: #f1f1f1; }
.gv-bar .gv-icon { font: 400 22px/1 var(--sans); text-transform: none; }
.gv-stage { position: relative; display: grid; place-items: center; background: #f4f4f4; min-height: 0; overflow: hidden; }
.gv-device { width: 100%; height: 100%; position: relative; background: #fff; transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease); }
.gv-device.phone { width: 390px; height: min(844px, calc(100% - 40px)); border-radius: 46px; border: 11px solid #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); overflow: hidden; }
.gv-device iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .35s var(--ease); }
.gv-device iframe.ready { opacity: 1; }
.gv-load { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 22px/1 var(--serif); color: var(--ink-3); pointer-events: none; }
.gv-bar > *, .gv-stage { transition: opacity .3s var(--ease); }
.gv-load[hidden] { display: none; }
/* while the card expands (Flip) the panel wears the direction's own colour, so the motion reads; content fades in after */
.gv.opening .gv-panel { background: var(--gc, #eee); border-radius: 22px; }
.gv.opening .gv-bar { border-color: transparent; }
.gv.opening .gv-bar > *, .gv.opening .gv-stage { opacity: 0; }

@media (max-width: 1100px) { .gv-bar .gv-reset-l { display: none; } }
@media (max-width: 767px) {
  .gallery .g-head { grid-template-columns: 1fr; }
  .g-arrows { display: none; }
  .g-rail { gap: 12px; cursor: auto; }
  .g-card { flex-basis: calc(100vw - 2 * var(--g)); scroll-snap-align: center; }
  .g-card:hover { transform: none; box-shadow: none; }
  .g-meta { grid-template-columns: 1fr; }
  .g-enter { grid-column: 1; grid-row: auto; justify-self: start; }
  /* phone viewer: full screen, the Website / System switch at the bottom */
  .gv-bar { gap: 2px; padding: 6px 6px 6px 14px; min-height: 56px; }
  .gv-bar .gv-dev, .gv-bar .gv-reset-l { display: none; }
  .gv-mode { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; background: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35), 0 0 0 1px var(--hair); }
  .gv-stage { padding-bottom: calc(64px + env(safe-area-inset-bottom)); background: #fff; }
  .gv-device.phone { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .g-frame, .g-card, .gv-device { transition: none !important; } .g-card:hover .g-frame { transform: scale(var(--s, .5)); } }

/* ================= SPEC_V3_4 — the gallery stage and the composed cards ================= */
.gallery { position: relative; isolation: isolate; }
.gallery::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 8%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(90% 60% at 50% 100%, #e9e9e6 0%, rgba(233, 233, 230, 0) 70%), linear-gradient(180deg, #fff 0%, #f3f3f1 60%, #fff 100%); }
.g-card { background: transparent; transition: transform .6s var(--ease), opacity .6s var(--ease); transform: scale(.965); opacity: .9; }
.g-card.is-active { transform: none; opacity: 1; }
.g-card:hover { transform: translateY(-6px); box-shadow: none; opacity: 1; }
/* gsap-performance: inactive cards are dimmed by a veil animated with opacity (compositor), not a filter repaint */
.g-comp::after { content: ""; position: absolute; inset: 0; background: #f3f3f1; opacity: .22; transition: opacity .6s var(--ease); pointer-events: none; transform: translateZ(120px); }
.g-card.is-active .g-comp::after, .g-card:hover .g-comp::after { opacity: 0; }
.g-card::after { content: ""; position: absolute; left: 8%; right: 8%; top: calc(100% - 140px); height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 13, 13, .22), transparent); filter: blur(10px); z-index: -1; pointer-events: none; transition: opacity .6s; opacity: .5; }
.g-card.is-active::after { opacity: 1; }
.g-prev { perspective: 1400px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); box-shadow: 0 30px 70px -40px rgba(13, 13, 13, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.g-card[data-slug="dealership"] .g-prev { background: radial-gradient(55% 60% at 22% 20%, #5b2be0 0%, transparent 70%), radial-gradient(50% 60% at 85% 70%, #b0279f 0%, transparent 70%), radial-gradient(60% 60% at 60% 110%, #2a55e0, transparent 70%), #07060b; }
.g-card[data-slug="salon"] .g-prev { background: radial-gradient(60% 60% at 20% 20%, #ff9fb0, transparent 70%), radial-gradient(60% 60% at 85% 80%, #ffd98a, transparent 70%), linear-gradient(135deg, #ffe1dc, #ffc4b2 40%, #fff2c8); }
.g-card[data-slug="construction"] .g-prev { background: linear-gradient(180deg, #2a3136, #0d1012); }
.gallery[data-loaded] .g-card[data-slug="construction"] .g-prev { background: linear-gradient(180deg, rgba(8, 10, 11, .2), rgba(8, 10, 11, .7)), url(../gallery/img/build-hero-720.webp) center / cover, #151a1d; } /* fetched only once the Gallery is near */
.g-card[data-slug="restaurant"] .g-prev { background: radial-gradient(45% 55% at 70% 35%, rgba(201, 144, 106, 0.21), transparent 70%), radial-gradient(120% 90% at 50% 50%, #242120 30%, #0d0d0d 100%); }
.g-card[data-slug="coffee"] .g-prev { background: radial-gradient(60% 60% at 80% 10%, #d7eadf, transparent 70%), linear-gradient(160deg, #f8faf7, #e9efe9); }
.g-comp { position: absolute; inset: 0; transform-style: preserve-3d; }
.g-light { position: absolute; inset: 0; background: radial-gradient(40% 50% at 50% 0%, rgba(255, 255, 255, .25), transparent 70%); pointer-events: none; }
.g-win { position: absolute; left: 7%; top: 11%; width: 66%; aspect-ratio: 16 / 10.4; border-radius: 12px; overflow: hidden; background: #fff; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotateY(14deg) rotateX(5deg) rotateZ(-1deg); transform-origin: 60% 50%; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6), 0 12px 24px -12px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .6s var(--ease); }
.g-chrome { position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; gap: 6px; align-items: center; padding: 0 10px; background: rgba(240, 240, 240, .9); z-index: 2; }
.g-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0; }
.g-view { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; overflow: hidden; }
.g-view .g-frame { transform: scale(var(--s, .4)) translateY(0); }
.g-card:hover .g-view .g-frame, .g-card:focus-within .g-view .g-frame { transform: scale(var(--s, .4)) translateY(-900px); }
.g-phone { position: absolute; right: 9%; bottom: -14%; width: 21%; aspect-ratio: 390 / 844; border-radius: 22px; padding: 5px; background: #0d0d0d; box-shadow: 0 40px 60px -26px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .15); transform: translate3d(calc(var(--mx, 0px) * -1.6), calc(var(--my, 0px) * -1.6), 60px) rotateY(-10deg) rotateZ(3deg); transition: transform .6s var(--ease); }
.g-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; display: block; }
.g-wid { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 16px; color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -10px 18px -12px rgba(0, 0, 0, .3), 0 20px 40px -18px rgba(0, 0, 0, .55); transform: translate3d(calc(var(--mx, 0px) * -2.4), calc(var(--my, 0px) * -2.4), 90px); transition: transform .6s var(--ease); }
.g-wid b { font: 300 clamp(16px, 1.8vw, 26px)/1 var(--sans); letter-spacing: -.03em; } .g-wid small { font-size: 11px; opacity: .85; }
.g-wid.w0 { left: 54%; top: 6%; } .g-wid.w1 { left: 4%; bottom: 8%; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .g-wid { background: rgba(20, 20, 20, .8); } }
.g-card[data-slug="dealership"] .g-wid.w0 { background: linear-gradient(140deg, #7b3cff, #c2309f 55%, #ff5fa8); }
.g-card[data-slug="salon"] .g-wid, .g-card[data-slug="coffee"] .g-wid { color: #2a1a18; background: rgba(255, 255, 255, .55); }
.g-card[data-slug="salon"] .g-wid.w1 { background: linear-gradient(135deg, #ff9a8a, #e8785f 45%, #f2b155); }
.g-card[data-slug="restaurant"] .g-wid { background: linear-gradient(180deg, #2a2725, #1b1a19); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 50px -20px #000; }
.g-card[data-slug="restaurant"] .g-wid.w0 { box-shadow: 0 0 0 1px rgba(201, 144, 106, 0.27), 0 0 26px -2px rgba(201, 144, 106, 0.27), 0 30px 50px -20px #000; }
.g-card[data-slug="coffee"] .g-wid.w1 { color: #fff; background: radial-gradient(circle at 35% 30%, #2aa86c, #127a48 60%); }
.g-card[data-slug="coffee"] .g-win { box-shadow: 0 40px 70px -34px rgba(20, 40, 30, .45), 0 12px 24px -14px rgba(20, 40, 30, .3); }
@media (max-width: 767px) { .g-win { left: 5%; width: 74%; } .g-phone { width: 25%; right: 5%; } .g-wid { padding: 7px 10px; border-radius: 12px; } .g-wid small { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .g-prev, .g-win, .g-phone, .g-wid, .g-card { transition: none; } }
/* SPEC_V3_5 §4 — static composed posters on the cards; the live demo loads only when a card is opened */
.g-poster { position: absolute; inset: 0; display: block; }
.g-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(1.01); transition: transform .5s var(--ease); -webkit-user-drag: none; user-select: none; }
.g-poster::after { content: ""; position: absolute; inset: 0; background: #f3f3f1; opacity: .22; transition: opacity .6s var(--ease); pointer-events: none; }
.g-card.is-active .g-poster::after, .g-card:hover .g-poster::after { opacity: 0; }
.gv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.1); transform: scale(1.06); opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 0; }
.gv-poster.on { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .g-poster img, .gv-poster { transition: none; } }
.gv-device { overflow: hidden; } .gv-device iframe { position: relative; z-index: 1; } .gv-load { z-index: 2; }

/* v3.6: the dealership card is the de-branded showroom film (paper, ink, one red rule); the salon card is calm editorial
   off-white; card 6, real estate, is harbour glass. The neon and pastel washes are retired with their directions. */
.g-card[data-slug="dealership"] .g-prev { background: radial-gradient(70% 60% at 30% 10%, #ffffff, transparent 70%), linear-gradient(180deg, #F1EEE8, #DCD8D0); }
.g-card[data-slug="dealership"] .g-wid { color: #111A21; background: rgba(250, 249, 246, .82); }
.g-card[data-slug="dealership"] .g-wid.w0 { background: #111A21; color: #FAF9F6; }
.g-card[data-slug="salon"] .g-prev { background: radial-gradient(60% 60% at 25% 15%, #f6f4ef, transparent 70%), linear-gradient(160deg, #eeece7, #ddd8cf); }
.g-card[data-slug="salon"] .g-wid { color: #26231e; background: rgba(246, 244, 239, .85); }
.g-card[data-slug="salon"] .g-wid.w1 { background: #6b4f57; color: #f6f4ef; }
.g-card[data-slug="realestate"] .g-prev { background: radial-gradient(60% 50% at 15% 75%, rgba(80, 150, 230, .42), transparent 70%), radial-gradient(50% 60% at 88% 15%, rgba(120, 110, 170, .35), transparent 70%), linear-gradient(160deg, #0d2238, #101a26 35%, #15171c 62%, #22252b); }
.g-card[data-slug="realestate"] .g-wid { color: #fff; background: rgba(18, 22, 28, .5); }

/* ================= v3.7 (SPEC_V3_7 §2) — typographic cards: each direction's name in its own face and colours ================
   One small crop, 3–5 colour chips, one signature micro-motion. Equal 16:10 cards, generous padding. The faces are
   copies in gallery/img/cards/type/ and are only applied once the Gallery is near (.near, set by gallery.js). */
@font-face { font-family: 'GC Marcellus'; src: url('../gallery/img/cards/type/marcellus-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GC Cormorant'; src: url('../gallery/img/cards/type/cormorant-garamond-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'GC Cormorant'; src: url('../gallery/img/cards/type/cormorant-garamond-latin-wght-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'GC Newsreader'; src: url('../gallery/img/cards/type/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
.g-prev { container-type: inline-size; }
.g-prev .g-sw { display: none; }
.gt { position: absolute; inset: 0; padding: 7cqi 7.5cqi; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; isolation: isolate; color: var(--gt-ink); background: var(--gt-bg); }
.gt::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--gt-grain, .0); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gt-chips { grid-column: 1; grid-row: 1; display: flex; gap: 6px; align-self: start; }
.gt-chips i { width: 2.1cqi; height: 2.1cqi; min-width: 10px; min-height: 10px; border-radius: var(--gt-chip-r, 50%); background: var(--k); box-shadow: inset 0 0 0 1px var(--gt-chip-line, rgba(0, 0, 0, .14)); }
.gt-img { grid-column: 2; grid-row: 1 / span 2; justify-self: end; display: block; overflow: hidden; width: 23cqi; aspect-ratio: 4 / 5; }
.gt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); -webkit-user-drag: none; user-select: none; }
.gt-name { grid-column: 1 / -1; grid-row: 3; align-self: end; position: relative; font-size: 10.5cqi; line-height: .9; letter-spacing: -.02em; max-width: 76%; text-wrap: balance; }
.gt-name > span { display: inline; }
/* v3.10 §6: the style as a small label over the business type (sentence case, the card's own ink) */
.gt-style { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; position: relative; z-index: 1; margin-bottom: 1.6cqi; font: 500 max(12px, 1.75cqi)/1.2 var(--sans); letter-spacing: .005em; }
.gt-sig { position: absolute; pointer-events: none; }
.g-card:not(.is-active):not(:hover) .gt { filter: saturate(.82); }
/* the meta row under each card: business + name, three tags, ENTER -> */
.g-meta { grid-template-columns: 1fr auto; padding: 18px 4px 4px; gap: 10px 20px; }
.g-meta .g-biz { grid-column: 1; font-size: 15px; color: var(--ink-2); } .g-meta .g-biz b { font-weight: 600; color: var(--ink); }
.g-meta .g-tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.g-meta .g-tags li { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(13, 13, 13, .14); }
.g-enter { grid-row: 1 / span 2; }

/* Showroom Film — the port's paper and ink, Marcellus, one red rule; the crop sits in a black passe-partout */
.g-card[data-slug="dealership"] .g-prev { background: #FAF9F6; }
.gt-dealership { --gt-bg: radial-gradient(80% 70% at 30% 0%, #fff, #FAF9F6 60%, #F1EEE8); --gt-ink: #111A21; --gt-chip-r: 0; --gt-grain: .18; }
.gallery.near .gt-dealership .gt-name { font-family: 'GC Marcellus', Georgia, serif; }
.gt-dealership .gt-name { font-family: Georgia, serif; font-size: 9cqi; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.gt-dealership .gt-img { width: 21cqi; padding: 1.1cqi; background: #111A21; aspect-ratio: 9 / 11; }
.gt-dealership .gt-sig { left: 7.5cqi; bottom: calc(7cqi + 21cqi); height: 2px; width: 9cqi; background: #B52127; transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.g-card[data-slug="dealership"]:is(:hover, :focus-within) .gt-sig { transform: scaleX(4.2); }

/* Calm Editorial — paper, Cormorant light with the salon's italic second line, the curls in an arch */
.g-card[data-slug="salon"] .g-prev { background: #eeece7; }
.gt-salon { --gt-bg: #eeece7; --gt-ink: #26231e; --gt-grain: .25; }
.gt-salon .gt-name { font-family: Georgia, serif; font-weight: 300; font-size: 11.5cqi; letter-spacing: -.01em; }
.gallery.near .gt-salon .gt-name { font-family: 'GC Cormorant', Georgia, serif; }
.gt-salon .gt-name > span { display: block; } .gt-salon .gt-name > span + span { font-style: italic; color: #6b4f57; padding-left: 8cqi; }
.gt-salon .gt-img { width: 17cqi; aspect-ratio: 1 / 2; border-radius: 999px 999px 0 0; }
.gt-salon .gt-img img { transform: scale(1.06); transition-duration: 2.4s; }
.g-card[data-slug="salon"]:is(:hover, :focus-within) .gt-img img { transform: scale(1); }

/* Cinematic Full-Bleed — the photograph is the ground; light grotesk over a charcoal grade, a sand chip */
.g-card[data-slug="construction"] .g-prev, .gallery[data-loaded] .g-card[data-slug="construction"] .g-prev { background: #0d1012; }
.gt-construction { --gt-bg: #0d1012; --gt-ink: #f3f1ec; --gt-chip-line: rgba(255, 255, 255, .25); --gt-chip-r: 3px; }
.gt-construction .gt-img { position: absolute; inset: 0; grid-area: auto; justify-self: stretch; width: 100%; height: 100%; aspect-ratio: auto; z-index: -2; }
.gt-construction .gt-img img { transform: scale(1.04); transition-duration: 3.2s; }
.g-card[data-slug="construction"]:is(:hover, :focus-within) .gt-img img { transform: scale(1.12); }
.gt-construction::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(10deg, rgba(13, 16, 18, .96) 0%, rgba(13, 16, 18, .84) 42%, rgba(13, 16, 18, .12) 80%); }
.gt-construction .gt-name { font-family: 'Inter Tight', var(--sans); font-weight: 200; font-size: 10cqi; letter-spacing: -.045em; max-width: 70%; }
.gt-construction .gt-sig { left: 7.5cqi; top: 7cqi; margin-top: 3.4cqi; width: 12cqi; height: 1px; background: #f0a35e; }

/* Dark Monochrome — graphite, Cormorant italic, an ember glow behind the name; the fire in a small circle */
.g-card[data-slug="restaurant"] .g-prev { background: #151515; }
.gt-restaurant { --gt-bg: radial-gradient(90% 80% at 50% 120%, #2a2420, #151515 60%); --gt-ink: #ece8e1; --gt-chip-line: rgba(255, 255, 255, .2); --gt-grain: .5; }
.gt-restaurant .gt-name { font-family: Georgia, serif; font-style: italic; font-weight: 300; font-size: 11.5cqi; letter-spacing: -.015em; }
.gallery.near .gt-restaurant .gt-name { font-family: 'GC Cormorant', Georgia, serif; }
.gt-restaurant .gt-img { width: 17cqi; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 144, 106, 0.21), 0 0 40px -6px rgba(201, 144, 106, 0.3); }
.gt-restaurant .gt-sig { left: 2cqi; bottom: 2cqi; width: 62cqi; height: 30cqi; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 144, 106, 0.192), rgba(201, 144, 106, 0)); filter: blur(10px); z-index: -1; opacity: .7; transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.g-card[data-slug="restaurant"]:is(:hover, :focus-within) .gt-sig { will-change: transform, opacity; opacity: 1; transform: scale(1.08); animation: gt-ember 3.2s ease-in-out 1.2s infinite alternate; }
@keyframes gt-ember { to { opacity: .78; transform: scale(1.02); } }

/* Light Editorial — paper, Newsreader, matcha; the beans in a round stamp that fills on hover */
.g-card[data-slug="coffee"] .g-prev { background: #d2d0d1; }
/* v3.11 §6: "Scroll-built" — the matcha demo: its grey-lilac film colour, Cormorant light, the finished glass in a tall rounded window;
   matcha green is the one accent (the rule under the window; on hover the green rises in the window, like the pour) */
.gt-coffee { --gt-bg: linear-gradient(175deg, #dad8d9, #d2d0d1 60%, #cfcdce); --gt-ink: #1d1c1e; --gt-grain: .12; }
.gt-coffee .gt-name { font-family: Georgia, serif; font-weight: 300; font-size: 11.5cqi; letter-spacing: -.01em; }
.gallery.near .gt-coffee .gt-name { font-family: 'GC Cormorant', Georgia, serif; }
.gt-coffee .gt-name span:last-child { font-style: italic; }
.gt-coffee .gt-img { width: 15cqi; aspect-ratio: 300 / 440; border-radius: 7.5cqi 7.5cqi 1.2cqi 1.2cqi; overflow: hidden; box-shadow: 0 1.6cqi 0 -1.1cqi #4f7f2a; }
.gt-coffee .gt-img img { width: 100%; height: 100%; object-fit: cover; }
.gt-coffee .gt-sig { right: 7.5cqi; top: 7cqi; width: 15cqi; aspect-ratio: 300 / 440; border-radius: 7.5cqi 7.5cqi 1.2cqi 1.2cqi; background: #4f7f2a; clip-path: inset(100% 0 0 0); opacity: .32; mix-blend-mode: multiply; transition: clip-path 1.4s cubic-bezier(.16, 1, .3, 1); }
.g-card[data-slug="coffee"]:is(:hover, :focus-within) .gt-sig { clip-path: inset(38% 0 0 0); }

/* Harbor Glass — deep harbour blue, the dusk windows behind a glass pane, the island bar that breathes */
.g-card[data-slug="realestate"] .g-prev { background: #0d2238; }
.gt-realestate { --gt-bg: radial-gradient(60% 50% at 15% 80%, rgba(80, 150, 230, .38), transparent 70%), linear-gradient(160deg, #0d2238, #101a26 40%, #15171c); --gt-ink: #fff; --gt-chip-line: rgba(255, 255, 255, .3); }
.gt-realestate .gt-img { width: 30cqi; aspect-ratio: 5 / 4; border-radius: 18px; position: relative; }
.gt-realestate .gt-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02) 50%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.gt-realestate .gt-name { font-family: 'Inter Tight', var(--sans); font-weight: 200; font-size: 10.5cqi; letter-spacing: -.045em; }
.gt-realestate .gt-sig { left: 50%; top: 3.2cqi; height: 3cqi; width: 18cqi; margin-left: -9cqi; border-radius: 999px; background: rgba(18, 22, 28, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
/* gsap-performance: the breath is a transform (scaleX about the centre), not width/margin, so it never triggers layout */
.g-card[data-slug="realestate"]:is(:hover, :focus-within) .gt-sig { will-change: transform; animation: gt-breathe 6s cubic-bezier(.33, 0, .15, 1) .2s infinite; }
@keyframes gt-breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.44); } }

@media (max-width: 767px) {
  .gt { padding: 6cqi; } .gt-name { max-width: 82%; } .gt-chips { gap: 4px; }
  .g-meta { grid-template-columns: 1fr; } .g-enter { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .gt-img img, .gt-sig { transition: none !important; animation: none !important; } }

/* ================= v3.8 (SPEC_V3_8 §6): card 1, the sound studio (v3.10: "Soft glass") =================
   Typographic, in the style's own type (a light grotesk + Doto dot-matrix numerals) on the misty grey, with one gradient
   pill and the bell-curve line as its detail. It breathes on hover (the Harbor Glass motion values: 6 s, --gentle). */
@font-face { font-family: 'GC Doto'; src: url('../gallery/img/cards/type/doto-latin-400-normal.woff2') format('woff2'); font-display: swap; }
.g-card[data-slug="sound"] .g-prev { background: #e4e7ee; }
.gt-sound { --gt-bg: #e4e7ee; --gt-ink: #1f232b; --gt-grain: .5; --gt-chip-line: rgba(255, 255, 255, .7); }
.gt-sound .gt-mist { position: absolute; inset: 0; z-index: -2; display: block; }
.gt-sound .gt-mist img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(0); transform: scale(1.08); opacity: .9; }
.gt-sound .gt-mist::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(228, 231, 238, .1), rgba(228, 231, 238, .55) 80%); }
.gt-sound .gt-name { font-family: 'Inter Tight', var(--sans); font-weight: 300; font-size: 10cqi; letter-spacing: -.045em; max-width: 60%; }
.gt-sound .gt-name > span { display: block; }
.gt-sound .gt-pill { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: start; position: relative; width: 30cqi; height: 12.5cqi; border-radius: 999px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqi; color: #fff;
  background: radial-gradient(55% 70% at 40% 10%, #e48be9, transparent 70%), radial-gradient(45% 70% at 85% 35%, #f0a08f, transparent 70%), radial-gradient(60% 60% at 35% 100%, #4b4630, transparent 72%), #c9858b;
  box-shadow: 0 0 2.2cqi rgba(255, 255, 255, .8), inset 0 0 2cqi .4cqi rgba(255, 255, 255, .5), inset 0 .3cqi .4cqi rgba(255, 255, 255, .7); text-shadow: 0 0 .6em rgba(30, 24, 40, .35); }
.gt-sound .gt-pill::before { content: ""; position: absolute; inset: .8cqi; border-radius: inherit; border: 1.4px dotted rgba(255, 255, 255, .6); }
.gt-sound .gt-pl { font: 400 1.5cqi/1 'Inter Tight', var(--sans); opacity: .92; }
.gt-sound .gt-pn { font: 400 4.6cqi/1 ui-monospace, monospace; letter-spacing: .06em; -webkit-text-stroke: .035em currentColor; -webkit-box-reflect: below -.1em linear-gradient(transparent 35%, rgba(255, 255, 255, .35)); }
.gallery.near .gt-sound .gt-pn { font-family: 'GC Doto', ui-monospace, monospace; }
.gt-sound .gt-pn small { font: 400 .42em 'Inter Tight', var(--sans); margin-left: .2em; opacity: .8; }
.gt-sound .gt-bell { position: absolute; left: 7.5cqi; right: 7.5cqi; top: 24%; height: 16cqi; width: auto; overflow: visible; z-index: -1; filter: drop-shadow(0 0 .6cqi rgba(255, 255, 255, .9)); }
.gt-sound .gt-sig { display: none; }
.gt-sound .gt-pill, .gt-sound .gt-bell { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.g-card[data-slug="sound"]:is(:hover, :focus-within) .gt-pill { will-change: transform; animation: gt-breathe-s 6s cubic-bezier(.33, 0, .15, 1) .2s infinite; }
.g-card[data-slug="sound"]:is(:hover, :focus-within) .gt-bell { transform: translateY(-.6cqi) scaleY(1.06); }
@keyframes gt-breathe-s { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .g-card[data-slug="sound"]:is(:hover, :focus-within) .gt-pill { animation: none; } .g-card[data-slug="sound"]:is(:hover, :focus-within) .gt-bell { transform: none; } }
/* v3.10 §6: the business-type titles. "CAR DEALERSHIP" in tracked caps needs a smaller size to stay inside its card; its red
   rule sits between the style label and the title */
.gt-dealership .gt-name { font-size: 6.6cqi; max-width: 92%; }
.gt-dealership .gt-sig { bottom: calc(7cqi + 15.4cqi); }
.gt-dealership .gt-style { margin-bottom: 4.4cqi; }

/* ---------- v3.12 §1: live client sites at the end of the rail (website only; the card is a link to the real site, new tab) ---------- */
/* the divider: a hairline with the label set vertically, so the rail stays one piece and the cards keep their size */
.g-div { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 44px; margin: 0 4px; }
.g-div::after { content: ''; flex: 1; width: 1px; margin-bottom: 26px; background: var(--hair); }   /* the hairline runs from under the label to the cards' base */
.g-div-l { writing-mode: vertical-rl; transform: rotate(180deg); padding-top: 2px; font-size: 13px; letter-spacing: .08em; white-space: nowrap; color: var(--ink-2); }
/* the card: the site's own first screen, full bleed (1440 × 900 = the card's 16:10) */
.g-live .g-prev { background: var(--c, #eee); box-shadow: 0 30px 70px -40px rgba(13, 13, 13, .55), inset 0 0 0 1px rgba(13, 13, 13, .06); }
.g-shot, .g-shot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-shot img { object-fit: cover; object-position: 50% 0; transition: transform .9s var(--ease); }
.g-live:is(:hover, :focus-within) .g-shot img { transform: scale(1.025); }
.g-meta .g-host { grid-column: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 14px/1 var(--sans); color: var(--ink-2); }
/* v3.17 (no emoji arrows): "Live site" is a plain label beside the host (the black pill read heavier than every other label once
   its arrow went); the one link is "VISIT" + the site's arrow, moving like the other ENTER links */
.g-livetag { color: var(--ink-3); font: 400 14px/1 var(--sans); }   /* ui-polish: a fact about the card, set quieter than the host; VISIT is the one strong element */
.g-visit { text-decoration: none; }
@media (max-width: 767px) { .g-div { width: 32px; margin: 0; } .g-div-l { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .g-shot img { transition: none; } .g-live:is(:hover, :focus-within) .g-shot img { transform: none; } }

/* SPEC_SEO_CONTRACTOR: the construction card's link to the contractor page (above the card-wide ENTER target) */
.g-meta .g-ctr { position: relative; z-index: 2; margin-left: 10px; font: 600 13px/1 var(--sans); color: var(--blue); text-decoration: none; white-space: nowrap; }
.g-meta .g-ctr:hover { text-decoration: underline; text-underline-offset: 3px; }
