/* ═══════════════════════════════════════════════════════════════
   WORK.CSS — /work (case studies index) page-scoped redesign layer,
   loaded after styles.min.css. Brings the page into the same visual
   language as the rest of the redesign: Big Shoulders Display type,
   orange accent, black atmosphere + grain, numbered eyebrows.
   The tab/panel filtering UI and its component styles (already in
   this page's own inline <style>) are left untouched — this layer
   only resets the typographic/atmosphere foundation underneath it.
   ═══════════════════════════════════════════════════════════════ */

body {
  --cream: #F3ECDF;
  --accent: var(--orange);
  --ink: #0c0a08;
  --display: 'Russo One', system-ui, sans-serif;
  --mono: 'Space Mono', 'Space Grotesk', monospace;
  --max: 100%;
  background: #000 !important;
  background-image: none !important;
  color: var(--cream);
}
body::after {
  display: block !important; content: ''; position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 10% 8%, rgba(247,147,30,.16), transparent),
    radial-gradient(ellipse 50% 38% at 92% 14%, rgba(233,30,99,.14), transparent),
    radial-gradient(ellipse 55% 42% at 50% 88%, rgba(47,167,167,.12), transparent);
}
main, .footer { color: var(--cream); }
main p { color: rgba(243,236,223,.62); }

/* Shared --max (1140px) caps this page's body sections just like the other
   redesigned pages did before their fix — uncap here too. */
.wrap { max-width: 100%; }

/* ── HERO: reset the shared 1140px cap so it bleeds full-width like the
   rest of the redesign; type upgraded to the new display face ── */
.sub-hero { max-width: none; margin: 0; border-color: rgba(243,236,223,.1) !important; }
.sub-hero h1 {
  font-family: var(--display); text-transform: uppercase; font-weight: 900; letter-spacing: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .94; margin: 0 0 1.4rem; color: var(--cream);
  max-width: none;
}
.sub-hero p { font-size: 1.25rem; line-height: 1.7; max-width: 640px; color: rgba(243,236,223,.62); font-weight: 400; }
.sub-hero .eyebrow { color: var(--accent); }

main h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0; color: var(--cream);
}

/* ── NAV / FOOTER: match the new palette (mirrors web-design-calgary.css) ── */
.nav { background: transparent; border-bottom: 1px solid transparent; height: 96px; }
.nav.scrolled { background: rgba(0,0,0,.9); backdrop-filter: blur(16px); border-color: rgba(243,236,223,.1); }
.nav-inner { height: 96px; align-items: center; padding-left: clamp(12px, 2vw, 20px); }
.nav-brand img { height: 44px; width: 44px; }
.nav-brand-word { background: none; -webkit-text-fill-color: currentColor; color: var(--cream); font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
.nav-links { gap: clamp(1rem, 3vw, 2.4rem); }
.nav-links a {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
  color: rgba(243,236,223,.55);
}
.nav-links a span:first-child { color: rgba(243,236,223,.35); font-size: .8em; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover span:first-child, .nav-links a.active span:first-child { color: var(--accent); }
.nav-links a::after { display: none; }
.nav-cta { background: var(--accent); border: 1px solid var(--accent); padding: .6rem 1.2rem; font-family: var(--mono); text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: transparent; color: var(--cream); }
.footer { border-color: rgba(243,236,223,.1) !important; }
.footer-col-heading { font-family: var(--mono) !important; color: rgba(243,236,223,.5); }

/* ═══ SOCIAL: mock Facebook + Instagram feeds of real client posts ═══
   Generic dark social-app chrome (no platform logos) so the client work is
   the focus. Both feeds auto-scroll slowly; hover/touch pauses; the chips
   filter both by client. On narrow screens a switch shows one feed at a time. */
.sf-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sf-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; margin: .6rem 0 0; }
.sf-head p { font-size: 1.05rem; line-height: 1.7; max-width: 46ch; justify-self: end; margin: 0; }
.sf-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sf-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.sf-chip { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,236,223,.7); background: transparent; border: 1px solid rgba(243,236,223,.2); padding: .6rem .95rem; cursor: pointer; border-radius: 0; transition: color .2s, border-color .2s, background .2s; }
.sf-chip:hover { color: var(--cream); border-color: rgba(243,236,223,.5); }
.sf-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.sf-row { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(12px, 2vw, 20px); align-items: stretch; margin-bottom: clamp(12px, 2vw, 20px); }
.sf-row--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.sf-panel { --c: var(--teal); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; padding: clamp(2rem, 5vw, 4.5rem); border-radius: clamp(12px, 2vw, 20px); background: var(--c); color: var(--ink);
  background-image: repeating-linear-gradient(60deg, rgba(0,0,0,.09) 0, rgba(0,0,0,.09) 1px, transparent 1px, transparent 5px); }
.sf-panel[data-color="mag"] { --c: var(--mag); background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.1) 0, rgba(0,0,0,.1) 1px, transparent 1px, transparent 5px); }
.sf-panel .frame-mark { position: absolute; width: 20px; height: 20px; color: var(--ink); opacity: .45; }
.sf-panel .frame-mark--tl { top: 22px; left: 22px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; }
.sf-panel .frame-mark--br { bottom: 22px; right: 22px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.sf-panel-num { font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sf-panel h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .95; margin: 0; color: var(--ink); max-width: 12ch; }
main .sf-panel p { color: rgba(12,10,8,.82); font-size: 1.08rem; line-height: 1.65; max-width: 44ch; margin: 0; }
.sf-panel ul { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.sf-panel li { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: .7rem; }
.sf-panel li::before { content: ''; width: 14px; height: 1px; background: var(--ink); }
.sf-panel .text-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; font-family: var(--mono); text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.sf-panel .text-link:hover { color: var(--cream); border-color: var(--cream); }
.sf-frame { position: relative; display: flex; flex-direction: column; height: min(78vh, 820px); min-height: 560px; border-radius: clamp(12px, 2vw, 20px); overflow: hidden; border: 1px solid rgba(243,236,223,.1); }
.sf-frame--fb { background: #18191a; }
.sf-frame--ig { background: #000; }
.sf-bar { flex: none; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'Inter', system-ui, sans-serif; }
.sf-bar--fb { background: #242526; }
.sf-bar-title { font-weight: 700; font-size: 1.05rem; color: #e4e6eb; letter-spacing: -.01em; }
.sf-bar--ig .sf-bar-title { font-size: 1.15rem; }
.sf-bar-search { flex: 1; max-width: 240px; background: #3a3b3c; color: #b0b3b8; font-size: .82rem; padding: .45rem .9rem; border-radius: 999px; }
.sf-bar-tag { margin-left: auto; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,236,223,.45); border: 1px solid rgba(243,236,223,.18); padding: .25rem .5rem; }
.sf-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.sf-scroll::-webkit-scrollbar { display: none; }
.sf-list { display: flex; flex-direction: column; }
.sf-frame--fb .sf-list { gap: 12px; padding: 12px; }

.sf-stories { flex: none; display: flex; gap: 14px; padding: .9rem 1rem .8rem; border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.sf-story { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 66px; font-family: 'Inter', system-ui, sans-serif; font-size: .66rem; color: #e4e6eb; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; }
.sf-story span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-ring { width: 60px; height: 60px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--orange), var(--mag), var(--teal), var(--orange)); }
.sf-ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #000; display: block; object-fit: cover; }

.sf-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #333; }
.sf-post { font-family: 'Inter', system-ui, sans-serif; color: #e4e6eb; }
.sf-post-head { display: flex; align-items: center; gap: .65rem; }
.sf-post-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sf-post-name b { font-weight: 600; font-size: .9rem; color: #e4e6eb; }
.sf-post-name small { font-size: .74rem; color: #b0b3b8; }
.sf-more { margin-left: auto; color: #b0b3b8; letter-spacing: .1em; font-size: .8rem; }
.sf-post img.sf-media { display: block; width: 100%; height: auto; background: #111; }
.sf-post img.sf-media--tall { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }

.sf-post--fb { background: #242526; border-radius: 10px; overflow: hidden; }
.sf-post--fb .sf-post-head { padding: .85rem 1rem .6rem; }
main .sf-post--fb .sf-caption { color: #e4e6eb; font-size: .92rem; line-height: 1.45; padding: 0 1rem .8rem; margin: 0; }
.sf-fb-actions { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 .75rem; padding: .3rem 0; border-top: 1px solid #3e4042; }
.sf-fb-actions span { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 0; font-size: .85rem; font-weight: 600; color: #b0b3b8; border-radius: 6px; }
.sf-fb-actions svg, .sf-ig-actions svg { width: 20px; height: 20px; }

.sf-post--ig { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .9rem; }
.sf-post--ig .sf-post-head { padding: .7rem .9rem; }
.sf-post--ig .sf-avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px var(--accent); }
.sf-post--ig img.sf-media { aspect-ratio: 1 / 1; object-fit: cover; }
.sf-ig-actions { display: flex; gap: 1rem; padding: .7rem .9rem .4rem; color: #f5f5f5; }
.sf-ig-actions .sf-save { margin-left: auto; }
main .sf-post--ig .sf-caption { margin: 0; padding: 0 .9rem; font-size: .86rem; line-height: 1.45; color: #e4e6eb; }
.sf-post--ig .sf-caption b { font-weight: 600; margin-right: .35rem; }
.sf-post[hidden] { display: none; }

@media (max-width: 900px) {
  .sf-head { grid-template-columns: 1fr; }
  .sf-head p { justify-self: start; }
  .sf-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .sf-filters::-webkit-scrollbar { display: none; }
  .sf-chip { white-space: nowrap; }
  .sf-row, .sf-row--rev { grid-template-columns: 1fr; }
  .sf-row--rev .sf-frame { order: -1; }
  .sf-panel { padding: 2.4rem 1.6rem; }
  .sf-frame { height: 72vh; min-height: 500px; }
  .sf-frame--ig { max-width: none; }
  .sf-bar-search { display: none; }
}

/* ═══ BRANDING tab ═══ */
.br-block { --c: var(--accent); margin-bottom: clamp(3rem, 7vw, 5rem); }
.br-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 20px); margin-bottom: clamp(12px, 2vw, 20px); }
.br-panel { position: relative; overflow: hidden; background: var(--c); color: var(--ink); border-radius: clamp(14px, 2vw, 22px); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  background-image: repeating-linear-gradient(60deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.08) 1px, transparent 1px, transparent 5px); }
.br-num { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.br-panel h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .95; margin: 0; color: var(--ink); }
main .br-panel p { color: var(--ink); opacity: .85; font-size: 1.05rem; line-height: 1.65; max-width: 48ch; margin: 0; }
.br-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.br-sw { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: .4rem .6rem .4rem .4rem; background: rgba(12,10,8,.08); border: 1px solid rgba(12,10,8,.18); }
.br-sw i { width: 18px; height: 18px; display: block; box-shadow: inset 0 0 0 1px rgba(12,10,8,.25); }
.br-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.br-logo { border-radius: clamp(14px, 2vw, 22px); display: grid; place-items: center; min-height: 320px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(243,236,223,.08); }
.br-logo img { width: 62%; max-width: 360px; height: auto; object-fit: contain; }
.br-assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.br-tile { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: clamp(10px, 1.4vw, 14px); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(243,236,223,.08); }
.br-tile img { width: 100%; height: 100%; display: block; }
.br-tile-label { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--c); padding: .3rem .5rem; }
.br-sheet { margin: 0 0 clamp(10px, 1.6vw, 16px); border-radius: clamp(12px, 2vw, 20px); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(243,236,223,.08); }
.br-sheet img { width: 100%; display: block; }
.br-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 12px); margin-bottom: clamp(8px, 1.2vw, 12px); }
.br-strip--icons { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.br-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #0D0D0D; border-radius: 10px; padding: 10%; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(243,236,223,.08); }
@media (max-width: 820px) {
  .br-top { grid-template-columns: 1fr; }
  .br-logo { min-height: 240px; }
  .br-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .br-strip--icons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ═══ CASE STUDIES tab: editorial rows that fill with the project's colour ═══ */
#panel-cases .cs-index-grid { display: flex; flex-direction: column; gap: clamp(12px, 2vw, 20px); }
#panel-cases .cs-idx-card { --c: var(--accent); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(14px, 1.8vw, 22px); padding-left: clamp(1.6rem, 4vw, 3.5rem); background: rgba(243,236,223,.03); border: 1px solid rgba(243,236,223,.1); border-radius: clamp(14px, 2vw, 22px); color: var(--cream); text-decoration: none; overflow: hidden; transition: background .4s ease, color .3s ease, border-color .3s ease; }
#panel-cases .cs-idx-card.featured { grid-column: auto; }
#panel-cases .cs-idx-card .cs-idx-shot { order: 2; aspect-ratio: 16 / 10; border-radius: clamp(10px, 1.4vw, 14px); overflow: hidden; background: #111; margin: 0; }
#panel-cases .cs-idx-card .cs-idx-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
#panel-cases .cs-idx-body { padding: 0; display: flex; flex-direction: column; gap: .9rem; }
#panel-cases .cs-idx-tag { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); transition: color .3s; }
#panel-cases .cs-idx-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; color: inherit; }
#panel-cases .cs-idx-desc { font-size: 1.02rem; line-height: 1.65; color: rgba(243,236,223,.62); max-width: 50ch; transition: color .3s; }
#panel-cases .cs-idx-foot { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; border: 0; padding: 0; }
#panel-cases .cs-idx-badge { display: none; }
#panel-cases .cs-idx-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: inherit; border-bottom: 1px solid var(--c); padding-bottom: .2rem; }
#panel-cases .cs-idx-card:hover, #panel-cases .cs-idx-card:focus-visible { background: var(--c); border-color: var(--c); color: var(--ink); }
#panel-cases .cs-idx-card:hover .cs-idx-tag, #panel-cases .cs-idx-card:focus-visible .cs-idx-tag { color: rgba(12,10,8,.75); }
#panel-cases .cs-idx-card:hover .cs-idx-desc, #panel-cases .cs-idx-card:focus-visible .cs-idx-desc { color: rgba(12,10,8,.85); }
#panel-cases .cs-idx-card:hover .cs-idx-btn { border-color: var(--ink); }
@media (max-width: 820px) {
  #panel-cases .cs-idx-card { grid-template-columns: 1fr; padding: clamp(12px, 3vw, 18px); }
  #panel-cases .cs-idx-card .cs-idx-shot { order: 0; }
  #panel-cases .cs-idx-body { padding: .4rem .4rem 1rem; }
}

/* tabs in the new language */
.work-tabs { border-bottom-color: rgba(243,236,223,.12); }
.work-tab { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: rgba(243,236,223,.55); }
.work-tab:hover { color: var(--cream); }
.work-tab.active { color: var(--cream); border-bottom-color: var(--accent); }
#panel-cases .cs-idx-btn { border: 0; border-bottom: 1px solid var(--c); border-radius: 0; background: none; padding: 0 0 .2rem; }
#panel-cases .cs-idx-card .cs-idx-shot { width: 100%; max-width: none; height: auto; justify-self: stretch; }
main .eyebrow, .sf-head .eyebrow { color: var(--accent); font-family: var(--mono); font-weight: 700; letter-spacing: .1em; }
main .eyebrow::before { background: var(--accent) !important; }
main .btn { border-radius: 0 !important; font-family: var(--mono); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; font-weight: 700; padding: 1rem 1.8rem; box-shadow: none !important; }
main .btn-primary { background: var(--accent) !important; color: var(--ink) !important; border: 1px solid var(--accent) !important; }
main .btn-primary:hover { background: transparent !important; color: var(--cream) !important; }

/* ═══ SOCIAL: post variety ═══
   Facebook: coloured text posts, albums, event cards, link previews.
   Instagram: swipeable carousels, reels, timestamps.
   Both: designed tiles (.sf-tile) built in HTML in the client's core colour. */
.sf-post [data-color="orange"], .sf-tile[data-color="orange"] { --c: var(--orange); }
.sf-post [data-color="red"],    .sf-tile[data-color="red"]    { --c: var(--red); }
.sf-post [data-color="mag"],    .sf-tile[data-color="mag"]    { --c: var(--mag); }
.sf-post [data-color="teal"],   .sf-tile[data-color="teal"]   { --c: var(--teal); }

.sf-fb-text { display: grid; place-items: center; min-height: 260px; padding: 2rem 1.6rem; background: var(--c); color: var(--ink); text-align: center; }
main .sf-fb-text p { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; color: var(--ink); max-width: 24ch; }

.sf-tile { --c: var(--orange); position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; gap: .7rem; padding: 8% 8% 7%; background: var(--c); color: var(--ink); overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.09) 0, rgba(0,0,0,.09) 1px, transparent 1px, transparent 6px); }
.sf-tile::after { content: ''; position: absolute; right: -18%; bottom: -18%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); opacity: .9; }
.sf-tile > * { position: relative; z-index: 1; }
.sf-tile-kicker { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sf-tile-head { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: .92; max-width: 11ch; }
.sf-tile-lines { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.sf-tile-lines li { font-family: 'Inter', system-ui, sans-serif; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.sf-tile-lines li::before { content: ''; width: 10px; height: 2px; background: var(--ink); flex: none; }
.sf-tile-foot { margin-top: auto; font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.sf-album { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 4 / 3; }
.sf-album-img { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.sf-album-img:first-child { grid-row: span 2; }

.sf-event, .sf-link { margin: 0 .75rem .6rem; border-radius: 8px; overflow: hidden; background: #3a3b3c; }
.sf-event-cover { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: center 22%; display: block; }
.sf-link-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; object-position: center 30%; display: block; }
.sf-event-body, .sf-link-body { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; }
.sf-event-date { flex: none; width: 46px; text-align: center; padding: .25rem 0 .35rem; background: var(--c); color: var(--ink); border-radius: 6px; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.sf-event-date small { display: block; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.sf-event-info, .sf-link-body > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.sf-event-info b, .sf-link-body b { font-size: .9rem; font-weight: 600; color: #e4e6eb; line-height: 1.25; }
.sf-event-info small, .sf-link-body small { font-size: .74rem; color: #b0b3b8; text-transform: none; }
.sf-link-body small { text-transform: uppercase; letter-spacing: .02em; }
.sf-fb-btn { flex: none; font-size: .8rem; font-weight: 600; color: #e4e6eb; background: #4e4f50; padding: .45rem .8rem; border-radius: 6px; }

.sf-carousel { position: relative; }
.sf-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sf-track::-webkit-scrollbar { display: none; }
.sf-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; display: block; background: #111; }
.sf-badge { position: absolute; top: .7rem; right: .7rem; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); padding: .2rem .5rem; border-radius: 999px; }
.sf-dots { position: absolute; left: 0; right: 0; bottom: -1.35rem; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.sf-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.sf-dots i.on { background: var(--accent); }
.sf-reel { position: relative; }
.sf-post--ig .sf-reel img.sf-media { aspect-ratio: 4 / 5; object-position: center 35%; }
.sf-reel-tag { position: absolute; top: .7rem; right: .7rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); padding: .2rem .55rem .2rem .35rem; border-radius: 999px; }
.sf-reel-tag svg { width: 14px; height: 14px; }
main .sf-post--ig .sf-time { margin: .35rem 0 0; padding: 0 .9rem; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: #8a8d91; }
.sf-post--fb .sf-tile, .sf-post--fb .sf-album { margin: 0; }

/* ═══ WEB DESIGN tab: rhythm layout ═══
   feature → bold cards → mobile strip → relief index → motion CTA.
   Every screen is a tall full-page capture that pans top to bottom on a
   slow loop (object-position), so the real sites read as screen recordings. */
.wd-feature, .wd-card, .wd-phone { --c: var(--orange); }
[data-color="red"].wd-feature,  [data-color="red"].wd-card,  [data-color="red"].wd-phone,  [data-color="red"].wd-row  { --c: var(--red); }
[data-color="mag"].wd-feature,  [data-color="mag"].wd-card,  [data-color="mag"].wd-phone,  [data-color="mag"].wd-row  { --c: var(--mag); }
[data-color="teal"].wd-feature, [data-color="teal"].wd-card, [data-color="teal"].wd-phone, [data-color="teal"].wd-row { --c: var(--teal); }
[data-color="orange"].wd-row { --c: var(--orange); }
.wd-num { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.wd-cta { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; white-space: nowrap; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--cream); padding: .9rem 1.4rem; transition: background .2s, color .2s; }
a:hover > .wd-cta, a:hover .wd-feature-slab .wd-cta { background: var(--cream); color: var(--ink); }

/* Live-scrolling screen */
.wd-screen { position: relative; overflow: hidden; background: #111; border-radius: clamp(8px, 1.2vw, 14px); }
.wd-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: wdPan var(--dur, 24s) ease-in-out infinite alternate; }
@keyframes wdPan { 0%, 10% { object-position: 50% 0; } 90%, 100% { object-position: 50% 100%; } }
.wd-screen-ph { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,236,223,.4); }
.wd-screen.is-missing img, .wd-phone-screen.is-missing img { display: none; }
.wd-screen.is-missing .wd-screen-ph, .wd-phone-screen.is-missing .wd-screen-ph { display: grid; }
@media (prefers-reduced-motion: reduce) { .wd-screen img, .wd-phone-screen img { animation: none; } }

/* 1 · Feature: colour slab + big screen overlapping it */
.wd-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: stretch; gap: 0; text-decoration: none; color: var(--ink); margin-bottom: clamp(12px, 2vw, 20px); }
.wd-feature-slab { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.8rem, 4vw, 3.5rem); background-color: var(--c); border-radius: clamp(14px, 2vw, 22px) 0 0 clamp(14px, 2vw, 22px);
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,.09) 0, rgba(0,0,0,.09) 1px, transparent 1px, transparent 6px); }
.wd-feature-slab h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 6.2vw, 6rem); line-height: .86; color: var(--ink); }
main .wd-feature-slab p { margin: 0; color: var(--ink); opacity: .85; font-size: 1.05rem; line-height: 1.6; max-width: 40ch; }
.wd-facts { list-style: none; margin: auto 0 .4rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.wd-facts b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; }
.wd-facts span { display: block; margin-top: .35rem; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.wd-screen--feature { min-height: clamp(360px, 44vw, 640px); border-radius: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) 0; --dur: 28s; }
.wd-screen-url { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--c); color: var(--ink); padding: .4rem .6rem; }

/* 2 · Bold cards: three equal, tall, each with its own scrolling site */
.wd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); margin-bottom: clamp(4rem, 9vw, 7rem); }
.wd-card { display: flex; flex-direction: column; gap: 1rem; padding: clamp(14px, 1.8vw, 20px) clamp(14px, 1.8vw, 20px) clamp(1.4rem, 2.6vw, 2rem); border-radius: clamp(14px, 2vw, 22px); background: var(--c); color: var(--ink); text-decoration: none; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.wd-card:hover { transform: translateY(-8px); }
.wd-card-top { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .4rem 0; }
.wd-tags { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; text-align: right; }
.wd-screen--card { aspect-ratio: 4 / 5; --dur: 22s; }
.wd-card:nth-child(2) .wd-screen--card { --dur: 26s; }
.wd-card:nth-child(3) .wd-screen--card { --dur: 30s; }
.wd-card h3 { margin: .3rem .4rem 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: .92; color: var(--ink); }
main .wd-card p { margin: 0 .4rem; color: var(--ink); opacity: .85; font-size: .98rem; line-height: 1.55; }
.wd-card .wd-cta { margin: auto .4rem 0; }

/* 3 · Mobile strip: phones on black */
.wd-phones { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(4rem, 9vw, 7rem); }
.wd-phones-copy { display: flex; flex-direction: column; gap: 1rem; color: var(--cream); }
.wd-phones-copy h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .9; color: var(--cream); }
main .wd-phones-copy p { margin: 0; color: rgba(243,236,223,.65); font-size: 1.05rem; line-height: 1.65; max-width: 34ch; }
.wd-phones-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-items: end; }
.wd-phone { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.wd-phone:nth-child(even) { transform: translateY(-2.5rem); }
.wd-phone-screen { position: relative; aspect-ratio: 9 / 19; border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 0 0 6px #1b1916, 0 0 0 8px var(--c), 0 30px 60px -30px rgba(0,0,0,.8); }
.wd-phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: wdPan var(--dur, 26s) ease-in-out infinite alternate; }
.wd-phone figcaption { font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,236,223,.6); text-align: center; }

/* 4 · Relief index: big-type list, row floods with colour on hover */
.wd-index { position: relative; margin-bottom: clamp(3rem, 7vw, 5rem); }
.wd-index-head { padding: 0 .2rem 1rem; color: rgba(243,236,223,.6); }
.wd-row { --c: var(--orange); display: grid; grid-template-columns: 3rem minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; column-gap: clamp(1rem, 2.5vw, 2rem); padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(.6rem, 1.5vw, 1.2rem); border-top: 1px solid rgba(243,236,223,.14); color: var(--cream); text-decoration: none; transition: background .3s ease, color .3s ease; }
.wd-row:last-of-type { border-bottom: 1px solid rgba(243,236,223,.14); }
.wd-row .wd-num { color: var(--c); opacity: 1; }
.wd-row-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 3.8rem); line-height: .95; }
.wd-row-desc { font-size: .95rem; line-height: 1.5; color: rgba(243,236,223,.6); transition: color .3s ease; }
.wd-row-tags { grid-column: 2; grid-row: 2; margin-top: .4rem; font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,236,223,.5); transition: color .3s ease; }
.wd-row-go { grid-column: 4; grid-row: 1 / span 2; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.wd-row-desc { grid-column: 3; grid-row: 1 / span 2; }
.wd-row:hover, .wd-row:focus-visible { background: var(--c); color: var(--ink); border-radius: clamp(10px, 1.6vw, 16px); }
.wd-row:hover .wd-num, .wd-row:focus-visible .wd-num { color: var(--ink); }
.wd-row:hover .wd-row-desc, .wd-row:hover .wd-row-tags, .wd-row:focus-visible .wd-row-desc, .wd-row:focus-visible .wd-row-tags { color: rgba(12,10,8,.8); }
.wd-peek { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -110%) scale(.9); transition: opacity .2s ease, transform .25s ease; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); background: #111; }
.wd-peek.is-on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.wd-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (hover: none) { .wd-peek { display: none; } }

/* 5 · Motion CTA */
.wd-next { position: relative; overflow: hidden; isolation: isolate; display: block; text-decoration: none; margin: 0; padding: clamp(4rem, 10vw, 8rem) 0 !important; border-radius: clamp(14px, 2vw, 22px); }
.wd-next .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.wd-next .wd-num { color: var(--cream); }
.wd-next h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 8vw, 7rem); line-height: .86; }
main .wd-next p { margin: 0; max-width: 40ch; font-size: 1.1rem; line-height: 1.6; }

@media (max-width: 1000px) {
  .wd-feature { grid-template-columns: 1fr; }
  .wd-feature-slab { border-radius: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) 0 0; }
  .wd-screen--feature { border-radius: 0 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px); min-height: 0; aspect-ratio: 16 / 11; }
  .wd-cards { grid-template-columns: 1fr; }
  .wd-screen--card { aspect-ratio: 16 / 11; }
  .wd-phones { grid-template-columns: 1fr; }
  .wd-row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .wd-row-desc { display: none; }
  .wd-row-go { grid-column: 3; }
}
@media (max-width: 600px) {
  .wd-facts { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .wd-phones-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-phone:nth-child(even) { transform: none; }
  .wd-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .wd-row-go { grid-column: 2; grid-row: 3; justify-self: start; margin-top: .6rem; }
}

/* Design review: the Web Design tab already closes on its own CTA panel,
   so the page-level "Want results like these?" band only shows on the
   other tabs. */
main:has(#panel-web.active) .why-band { display: none; }

/* Local screenshots are a single screen, not a full-page capture, so they
   sit still (the slow pan only suits the tall mshots captures). */
.wd-screen img[src^="/assets/"], .wd-phone-screen img[src^="/assets/"] { animation: none; object-position: 50% 0; }
