:root {
  --magenta: #D71B63;
  --orange:  #E54128;
  --red:     #B91C26;
  --ink:     #1A1418;
  --ink-soft:#4A434B;
  --gray:    #8E8A90;
  --paper:   #FFFFFF;
  --paper-warm: #FAF7F5;
  --display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --body:    'Satoshi', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--magenta), var(--orange)); }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(26,20,24,.07); transition: box-shadow .4s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(26,20,24,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo-lockup img { height: 68px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.main-nav a:not(.btn):hover::after, .main-nav a:not(.btn):focus-visible::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.7rem; white-space: nowrap; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .3s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn-gradient { color: #fff; background: linear-gradient(100deg, var(--magenta), var(--orange)); box-shadow: 0 3px 8px -3px rgba(215,27,99,.35); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 3px 8px -3px rgba(0,0,0,.3); }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* hero */
.cs-hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.cs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,20,24,.15) 30%, rgba(26,20,24,.82) 100%); }
.cs-hero-inner { padding: 9rem 0 clamp(2.5rem, 6vw, 4.5rem); }
.cs-index { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .85rem; letter-spacing: .14em; color: rgba(255,255,255,.85); }
.cs-index-d { width: 22px; height: 12px; position: relative; }
.cs-index-d::before, .cs-index-d::after { content: ""; position: absolute; top: 1px; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); }
.cs-index-d::before { left: 0; background: var(--magenta); }
.cs-index-d::after { left: 8px; background: var(--orange); mix-blend-mode: screen; }
.cs-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin: 1rem 0 .8rem; max-width: 16ch; }
.cs-tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255,255,255,.9); }

/* hero variant for graphic-only projects: artwork shown whole on its brand colour */
.cs-hero-graphic { background: var(--hero-bg); flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 0; padding-top: 92px; }
.cs-hero-graphic .cs-hero-img { position: static; z-index: auto; width: min(620px, 88%); height: auto; max-height: 46svh; object-fit: contain; margin: clamp(1.5rem, 4vw, 3rem) auto 0; }
.cs-hero-graphic::after { background: linear-gradient(180deg, transparent 55%, rgba(26,20,24,.35) 100%); }
.cs-hero-graphic .cs-hero-inner { padding-top: 1rem; }

/* intro: centred logo and copy, as on the original case pages */
.cs-intro { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.cs-intro-inner { max-width: 60rem; text-align: center; }
.cs-logo { max-height: 150px; max-width: min(340px, 80%); width: auto; margin: 0 auto 2.4rem; object-fit: contain; }
.cs-copy p { font-size: 1.15rem; line-height: 1.8; color: var(--ink-soft); }
.cs-copy p + p { margin-top: 1.1rem; }
.cs-links a { color: var(--magenta); font-weight: 700; }
.cs-award-d { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--magenta) 50%, var(--orange) 50%); }

/* gallery: each group sits on its own row, images whole at natural proportions */
.cs-gallery { padding-bottom: clamp(4rem, 9vw, 7rem); }
.gallery-grid { max-width: 1040px; }
.g-row { margin: 0; padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid rgba(26,20,24,.1); }
.g-imgs { display: flex; gap: clamp(1rem, 3vw, 2.4rem); justify-content: center; align-items: flex-start; }
.g-imgs img { min-width: 0; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.g-row figcaption { margin-top: 1.6rem; text-align: center; font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.g-award { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: .6rem; font-weight: 700; letter-spacing: .14em; color: var(--magenta); }

/* pager */
.cs-pager { border-top: 1px solid rgba(26,20,24,.08); }
.pager-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pager-link { padding: 2.6rem 0; text-decoration: none; display: grid; gap: .5rem; }
.pager-next { text-align: right; border-left: 1px solid rgba(26,20,24,.08); padding-left: 2rem; }
.pager-dir { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.pager-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); transition: color .3s; }
.pager-link:hover .pager-name { color: var(--magenta); }

/* CTA + footer (from home page) */
.cta-band { position: relative; padding: clamp(4.5rem, 10vw, 7rem) 0; background: linear-gradient(105deg, var(--magenta) 0%, var(--red) 52%, var(--orange) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.cta-band .diamond-deco { position: absolute; width: 420px; height: 420px; border-radius: 72px; transform: rotate(45deg); background: rgba(255,255,255,.08); z-index: 0; }
.cta-band .d1 { top: -260px; left: -160px; }
.cta-band .d2 { bottom: -280px; right: -140px; }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-inner p { margin: 1.3rem 0 2.4rem; font-size: 1.15rem; color: rgba(255,255,255,.92); }
.cta-inner .phone { display: block; margin-top: 1.6rem; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 2rem 0; font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }

/* back to top: diamond with scroll-progress stroke */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 52px; height: 52px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.to-top rect { fill: none; stroke-width: 2.5; }
.tt-track { fill: #fff !important; stroke: rgba(26,20,24,.12); }
.tt-fill { stroke: var(--magenta); stroke-dasharray: 100; stroke-dashoffset: 100; }
.to-top span { position: relative; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
}
@media (max-width: 640px) {
  .logo-lockup img { height: 54px; }
  .g-imgs { flex-direction: column; align-items: center; }
  .g-imgs img { flex: none !important; }
  .pager-grid { grid-template-columns: 1fr; }
  .pager-next { text-align: left; border-left: 0; border-top: 1px solid rgba(26,20,24,.08); padding-left: 0; }
}
