/* ==========================================================================
   BLACKSTONE DIGITAL AGENCY — Global Stylesheet
   Design system: editorial, premium, dark. Black · White · Red.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. Custom properties                                                       */
/* -------------------------------------------------------------------------- */
:root {
  /* Color */
  --bg:            #0B0B0D;
  --bg-2:          #101013;
  --surface:       #141418;
  --surface-2:     #1A1A20;
  --surface-3:     #212128;
  --line:          rgba(237, 234, 227, 0.10);
  --line-strong:   rgba(237, 234, 227, 0.20);
  --text:          #ECE8E0;
  --text-muted:    #9C988D;
  --text-dim:      #817E74;
  --accent:        #E3303A;   /* signature red */
  --accent-bright: #FF4A52;
  --accent-soft:   rgba(227, 48, 58, 0.12);
  --accent-line:   rgba(227, 48, 58, 0.40);
  --on-accent:     #ffffff;

  /* Type */
  --font-sans:    "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;

  /* Layout */
  --container:    1240px;
  --container-wide: 1440px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --radius:       4px;
  --radius-lg:    10px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.6s;

  --header-h:     76px;
}

/* -------------------------------------------------------------------------- */
/* 2. Reset & base                                                            */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Film grain + vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  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='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------- */
/* 3. Typography                                                              */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -0.015em; }
.h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; }

.serif { font-family: var(--font-serif); font-weight: 500; }
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

p { color: var(--text-muted); }
.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
  letter-spacing: 0;
}

.text-accent { color: var(--accent); }
.text-bright { color: var(--text); }
.muted { color: var(--text-muted); }

strong { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* 4. Layout utilities                                                        */
/* -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.stack > * + * { margin-top: 1.1rem; }
.measure { max-width: 56ch; }
.measure-sm { max-width: 42ch; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--top { align-items: start; }

@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- */
/* 5. Eyebrow / section heads                                                 */
/* -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow--center::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow--plain::before,
.eyebrow--plain::after { display: none; }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head p { margin-top: 1.2rem; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-index {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* -------------------------------------------------------------------------- */
/* 6. Buttons & links                                                         */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.6em;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn--light {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
}
.btn--light:hover { background: #fff; border-color: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn--sm { padding: 0.7em 1.25em; font-size: 0.8rem; }
.btn--lg { padding: 1.1em 2em; font-size: 0.92rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Text link with animated underline */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 2px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(1); }
.link .arrow { transition: transform 0.4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

.arrow { display: inline-block; }

/* -------------------------------------------------------------------------- */
/* 7. Header / Navigation                                                     */
/* -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
  color: var(--text);
  z-index: 2;
}
.brand__mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand sup {
  font-size: 0.5em;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}

.nav__list { display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 2.6rem); }
.nav__link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 2;
  flex: none;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--gutter);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .nav__link {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    font-family: var(--font-sans);
    color: var(--text);
    padding-block: 0.25em;
  }
  .nav__link::after { display: none; }
  .nav__cta-mobile {
    margin-top: 2.5rem;
    align-self: flex-start;
  }
}
.nav__cta-mobile { display: none; }
@media (max-width: 980px) { .nav__cta-mobile { display: inline-flex; } }

/* -------------------------------------------------------------------------- */
/* 8. Page hero (interior pages)                                              */
/* -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .display, .page-hero .h1 { margin-top: 1.4rem; }
.page-hero .lead { margin-top: 1.6rem; max-width: 60ch; }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.page-hero__meta div span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.page-hero__meta div strong { font-family: var(--font-sans); font-weight: 500; font-size: 1.05rem; }

/* Ambient glow background */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow--gold { background: radial-gradient(circle, rgba(227,48,58,0.30), transparent 70%); }
.glow--cool { background: radial-gradient(circle, rgba(78,98,130,0.28), transparent 70%); }

/* -------------------------------------------------------------------------- */
/* 9. Home hero                                                               */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(520px, 76vh, 700px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .glow--gold { width: 60vw; height: 60vw; top: -20%; right: -10%; }
.hero__bg .glow--cool { width: 45vw; height: 45vw; bottom: -25%; left: -15%; opacity: 0.4; }
/* Hero background carousel — rotating photos, darkened (not grayscale) for contrast */
.hero__carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.04) saturate(1.06);
  transform: scale(1.04);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 75%);
  opacity: 0.5;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero__tagline {
  max-width: 30ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero h1 .serif-i { color: var(--accent); }
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll i {
  width: 1px; height: 28px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* -------------------------------------------------------------------------- */
/* 10. Intro / statement block                                               */
/* -------------------------------------------------------------------------- */
.statement {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.statement .muted-word { color: var(--text-dim); }
.statement .serif-i { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* 11. Service teaser / list                                                  */
/* -------------------------------------------------------------------------- */
.svc-grid { border-top: 1px solid var(--line); }
.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.svc-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  opacity: 0.04;
  transition: width 0.5s var(--ease);
  z-index: -1;
}
.svc-item:hover { padding-inline: 1.5rem; }
.svc-item:hover::before { width: 100%; }
.svc-item__num {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.svc-item__title {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.svc-item:hover .svc-item__title { color: var(--accent); }
.svc-item__desc { color: var(--text-muted); font-size: 0.95rem; max-width: 46ch; }
.svc-item__arrow {
  color: var(--text-dim);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.svc-item:hover .svc-item__arrow { color: var(--accent); transform: translate(4px, -4px); }

@media (max-width: 720px) {
  .svc-item { grid-template-columns: 2.5rem 1fr auto; gap: 1rem; }
  .svc-item__desc { display: none; }
}

/* Service cards (teaser on home) */
.card-svc {
  position: relative;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  height: 100%;
}
.card-svc:hover { transform: translateY(-6px); border-color: var(--accent-line); background: var(--surface-2); }
.card-svc__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  margin-bottom: 1.4rem;
  transition: background 0.4s var(--ease);
}
.card-svc:hover .card-svc__icon { background: var(--accent-soft); }
.card-svc h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card-svc p { font-size: 0.92rem; }
.card-svc__num {
  position: absolute;
  top: 1.3rem; right: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* -------------------------------------------------------------------------- */
/* 12. Client marquee                                                         */
/* -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee__item:hover { color: var(--text); }
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 0.6em; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Static client logo grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.client-cell {
  display: grid;
  place-items: center;
  min-height: clamp(90px, 12vw, 140px);
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-align: center;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.client-cell:hover { color: var(--text); background: var(--surface); }
.client-cell small { display:block; font-size: 0.6em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top:0.3em;}
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------- */
/* 13. Work / case study cards                                               */
/* -------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.work-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,13,0.55));
}
.work-card__art {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-card__art { transform: scale(1.05); }
.work-card__logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  color: rgba(245, 244, 241, 0.95);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.work-card__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.work-card__cat {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.work-card__title { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.work-card__result { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.work-card__arrow {
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.work-card:hover .work-card__arrow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-45deg); }

.work-card--tags { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 clamp(1.4rem,2.5vw,2rem) clamp(1.4rem,2.5vw,2rem); }

.tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.35em 0.8em;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* Art backgrounds (gradient generative) */
.art-1 { background: radial-gradient(120% 120% at 20% 10%, #2b2f6b, #0b0b0d 60%), linear-gradient(135deg, #1a1d4a, #0b0b0d); }
.art-2 { background: radial-gradient(120% 120% at 80% 0%, #6b3030, #0b0b0d 58%), linear-gradient(135deg, #46201f, #0b0b0d); }
.art-3 { background: radial-gradient(120% 120% at 30% 90%, #2f5b4a, #0b0b0d 60%), linear-gradient(135deg, #1c3a2f, #0b0b0d); }
.art-4 { background: radial-gradient(120% 120% at 70% 20%, #5a4a8c, #0b0b0d 60%), linear-gradient(135deg, #3a2f5b, #0b0b0d); }
.art-5 { background: radial-gradient(120% 120% at 20% 80%, #8c6a2f, #0b0b0d 60%), linear-gradient(135deg, #5b451c, #0b0b0d); }
.art-6 { background: radial-gradient(120% 120% at 80% 80%, #2f6a8c, #0b0b0d 60%), linear-gradient(135deg, #1c455b, #0b0b0d); }
.art-7 { background: radial-gradient(120% 120% at 50% 0%, #8c2f5a, #0b0b0d 60%), linear-gradient(135deg, #5b1c3a, #0b0b0d); }
.art-8 { background: radial-gradient(120% 120% at 10% 50%, #3a3a3a, #0b0b0d 60%), linear-gradient(135deg, #242424, #0b0b0d); }
.art-dots {
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* -------------------------------------------------------------------------- */
/* 14. Why / feature blocks                                                   */
/* -------------------------------------------------------------------------- */
.feature {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
  height: 100%;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.feature__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.feature h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.feature p { font-size: 0.95rem; }

/* -------------------------------------------------------------------------- */
/* 15. Stats                                                                  */
/* -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat__num .unit { color: var(--accent); }
.stat__label {
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------- */
/* 16. CTA band                                                               */
/* -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(227,48,58,0.16), transparent 70%),
    var(--surface);
}
.cta__glow { position: absolute; width: 50%; height: 80%; bottom: -40%; left: 25%; }
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 500; letter-spacing: -0.03em; }
.cta h2 .serif-i { color: var(--accent); }
.cta p { max-width: 50ch; margin: 1.4rem auto 0; font-size: 1.05rem; }
.cta__actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta__contact {
  margin-top: 2.5rem;
  display: inline-flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cta__contact a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* 17. About / values / process                                              */
/* -------------------------------------------------------------------------- */
.value {
  padding: clamp(1.6rem, 2.5vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: baseline;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value__key {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.value h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.value p { font-size: 0.96rem; max-width: 60ch; }

.process-step {
  position: relative;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  height: 100%;
}
.process-step__num {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: block;
}
.process-step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.2vw, 1.8rem); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; } }

.member {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.member:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.member__avatar {
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.member__avatar::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}
.member__body { padding: 1.1rem 1.2rem 1.3rem; }
.member__name { font-family: var(--font-sans); font-weight: 500; font-size: 1.05rem; }
.member__role { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.25rem; line-height: 1.4; }
.member__social {
  margin-top: 0.9rem;
  display: inline-flex;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  place-items: center;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.member__social:hover { color: var(--accent); border-color: var(--accent-line); }
.member__social svg { width: 15px; height: 15px; }

/* Leadership feature */
.leader {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) { .leader { grid-template-columns: 1fr; } }
.leader__portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
}
.leader blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
}
.leader cite { display: block; margin-top: 1.6rem; font-style: normal; font-family: var(--font-sans); }
.leader cite span { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* Ecosystem chips */
.eco-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.eco-chip {
  padding: 0.7em 1.2em;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.eco-chip:hover { border-color: var(--accent-line); color: var(--text); background: var(--surface); }

/* Office cards */
.office {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  height: 100%;
}
.office__city { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 500; }
.office__tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}
.office address { font-style: normal; color: var(--text-muted); margin-top: 0.9rem; line-height: 1.7; }

/* -------------------------------------------------------------------------- */
/* 18. Services detailed (layanan)                                            */
/* -------------------------------------------------------------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
}
.svc-detail:last-child { border-bottom: 1px solid var(--line); }
.svc-detail__index {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.svc-detail h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 500; }
.svc-detail__lead { margin-top: 1rem; font-size: 1.05rem; max-width: 60ch; color: var(--text); }
.svc-detail__list {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.svc-detail__list li {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.45em 0.9em;
  border: 1px solid var(--line);
  border-radius: 100px;
}
@media (max-width: 700px) { .svc-detail { grid-template-columns: 1fr; gap: 1rem; } }

/* -------------------------------------------------------------------------- */
/* 19. Insight / blog                                                         */
/* -------------------------------------------------------------------------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s var(--ease);
}
.featured-post:hover { border-color: var(--accent-line); }
.featured-post__media { position: relative; min-height: 340px; }
.featured-post__media .work-card__logo { position: absolute; inset: 0; display: grid; place-items: center; }
.featured-post__body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.featured-post__body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; margin-block: 1.2rem; }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } .featured-post__media { min-height: 220px; } }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  height: 100%;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.post-card__media { aspect-ratio: 4/5; position: relative; display: grid; place-items: center; overflow: hidden; }
.post-card__cat {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(11,11,13,0.6);
  backdrop-filter: blur(6px);
  padding: 0.4em 0.8em;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
.post-card h3 { font-size: 1.25rem; margin-block: 0.7rem; }
.post-card p { font-size: 0.9rem; }
.post-card .link { margin-top: auto; padding-top: 1.2rem; }

/* Category filter / pills */
.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.6em 1.2em;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.filter-pill:hover { color: var(--text); border-color: var(--line-strong); }
.filter-pill.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* hidden state for filtering */
.is-hidden { display: none !important; }

/* -------------------------------------------------------------------------- */
/* 20. Contact                                                                */
/* -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info__item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.contact-info__item:last-child { border-bottom: 1px solid var(--line); }
.contact-info__item span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.contact-info__item a, .contact-info__item address {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-info__item a:hover { color: var(--accent); }

.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9em 1em;
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.84rem; color: var(--text-dim); }
.form__success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
}
.form__success.is-visible { display: flex; }
.form__success svg { color: var(--accent); flex: none; }

/* Map panel */
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(280px, 40vw, 420px);
  background:
    radial-gradient(60% 80% at 70% 30%, rgba(78,98,130,0.18), transparent),
    var(--bg-2);
}
.map-panel__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translate(-50%, -50%);
}
.map-pin__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: ping 2.4s var(--ease) infinite;
}
.map-pin__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(11,11,13,0.7);
  backdrop-filter: blur(6px);
  padding: 0.35em 0.7em;
  border-radius: 100px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(227,48,58,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(227,48,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,48,58,0); }
}

/* -------------------------------------------------------------------------- */
/* 21. Footer                                                                 */
/* -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand .brand { font-size: 1.3rem; margin-bottom: 1.2rem; }
.footer__brand p { font-size: 0.92rem; max-width: 36ch; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a, .footer__col li { font-size: 0.92rem; color: var(--text-muted); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer__bottom a:hover { color: var(--accent); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: clamp(0.1em, 1.5vw, 0.4em);
  font-size: clamp(2.2rem, 13vw, 11rem);
  line-height: 0.9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
  user-select: none;
}

/* -------------------------------------------------------------------------- */
/* 22. Scroll reveal animation                                                */
/* -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------- */
/* 23. Helpers                                                                */
/* -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.6rem; }
.mt-3 { margin-top: 2.4rem; }
.mt-4 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.full { width: 100%; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7em 1.2em;
  border-radius: 0 0 var(--radius) 0;
  z-index: 2000;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------- */
/* 24. Reduced motion                                                         */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   25. Real imagery layer (added) — photos overlaid on gradient fallbacks
   ========================================================================== */
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: grayscale(1) contrast(1.04) brightness(0.92);
  transition: filter 0.7s var(--ease), transform 0.8s var(--ease);
}

/* Work cards: gradient (z0) < photo (z1) < dark overlay (z2) < text (z3) */
.work-card__media .work-card__art { z-index: 0; }
.work-card__media .media-img { z-index: 1; }
.work-card__media::after { z-index: 2; }
.work-card__logo { z-index: 3; }
.work-card:hover .media-img { filter: grayscale(0) contrast(1.02); transform: scale(1.06); }

/* Featured post */
.featured-post__media { position: relative; }
.featured-post__media .media-img { z-index: 1; }
.featured-post__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(11,11,13,0.25), rgba(11,11,13,0.6));
}
.featured-post__media .work-card__logo { z-index: 3; }
.featured-post:hover .media-img { filter: grayscale(0); transform: scale(1.04); }

/* Post (article) cards — full colour, no grayscale */
.post-card__media .media-img { z-index: 1; filter: contrast(1.03) saturate(1.06); }
.post-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,13,0.55));
}
.post-card__cat { z-index: 3; }
.post-card:hover .media-img { filter: contrast(1.05) saturate(1.1); transform: scale(1.05); }

/* Team portraits (photo over initials fallback) */
.member__avatar { position: relative; overflow: hidden; }
.member__avatar .media-img { z-index: 1; filter: grayscale(1) contrast(1.03); }
.member__avatar::after { z-index: 2; }
.member:hover .member__avatar .media-img { filter: grayscale(0); transform: scale(1.04); }

/* Leadership portrait */
.leader__portrait { position: relative; overflow: hidden; }
.leader__portrait .media-img { z-index: 1; filter: grayscale(1) contrast(1.03); }

/* Home hero photo / carousel overlay — keep colour, just darken for legibility */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.34) 42%, rgba(11,11,13,0.82) 100%),
    linear-gradient(90deg, rgba(11,11,13,0.6) 0%, rgba(11,11,13,0.15) 55%);
}

/* Page-hero photo (interior pages) */
.page-hero__photo { z-index: 0; filter: brightness(0.46) contrast(1.04) saturate(1.05); opacity: 0.9; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,11,13,0.92) 30%, rgba(11,11,13,0.55));
}

/* Generic editorial media block (about, contact, etc.) */
.media-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.media-block .media-img { filter: grayscale(1) contrast(1.03); }
.media-block:hover .media-img { filter: grayscale(0); transform: scale(1.03); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-43 { aspect-ratio: 4 / 3; }

/* Office thumbnail */
.office__img {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 1.4rem;
}
.office__img .media-img { filter: grayscale(1) contrast(1.03); }
.office:hover .office__img .media-img { filter: grayscale(0); }

/* Client logo marquee (home) — full logos on transparent bg, name below, always moving */
.marquee--logos {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee--logos .marquee__track {
  align-items: flex-start;
  animation-duration: 34s;
}
/* keep it moving — never pause */
.marquee--logos:hover .marquee__track { animation-play-state: running; }
.client-logo {
  flex: none; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding-inline: clamp(1.4rem, 3.2vw, 2.75rem);
}
.client-logo img {
  width: clamp(110px, 13vw, 150px); height: clamp(110px, 13vw, 150px);
  object-fit: contain; display: block;
  transition: transform 0.4s var(--ease);
}
.client-logo:hover img { transform: scale(1.06); }
.client-logo figcaption {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap;
}

/* ==========================================================================
   26. Brand wordmark (logo: white BLACKSTONE + red accent letter)
   ========================================================================== */
.brand { gap: 0; }
.brand__word { white-space: nowrap; display: inline-block; }
.brand__accent { color: var(--accent); }
.footer__brand .brand { font-size: 1.3rem; }

/* ==========================================================================
   27. Real client logos on case-study tiles (with text fallback)
   ========================================================================== */
.work-card__logo .wc-logo {
  max-width: 62%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__logo .wc-logo { transform: scale(1.04); }
.work-card__logo .wc-name { display: none; }
.work-card__logo.no-logo .wc-logo { display: none; }
.work-card__logo.no-logo .wc-name { display: inline; }

/* ==========================================================================
   28. Insight feed — full posts, photo left · caption right (rows stacked)
   ========================================================================== */
.feed-head { text-align: center; max-width: 660px; margin: 0 auto clamp(2.4rem, 5vw, 3.4rem); }
.feed-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; margin-top: 1rem; line-height: 1.05; }
.feed-head .lead { margin-top: 1.2rem; }

.post-feed { display: flex; flex-direction: column; max-width: 1000px; margin: 0 auto; }

.feed-post {
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  grid-template-areas: "media head" "media caption";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.feed-post:first-child { border-top: 0; padding-top: 0; }
.feed-post:target .feed-post__media { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }

.feed-post__media {
  grid-area: media; align-self: start;
  position: relative; width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feed-post__media .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) saturate(1.05); transition: transform 0.8s var(--ease); }
.feed-post:hover .feed-post__media .media-img { transform: scale(1.03); }

.feed-post__head { grid-area: head; display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.feed-post__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff;
}
.feed-post__avatar::after {
  content: ""; position: absolute; top: 7px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.feed-post__who { display: flex; flex-direction: column; line-height: 1.25; }
.feed-post__who strong { font-size: 0.95rem; }
.feed-post__who span { font-size: 0.76rem; color: var(--text-dim); }

.feed-post__caption { grid-area: caption; }
.feed-post__caption h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 0.6rem; }
.feed-post__caption p { font-size: 0.93rem; line-height: 1.65; color: var(--text-muted); margin-top: 0.8rem; }
.feed-post__caption p:first-of-type { margin-top: 0; }
.feed-post__tags { color: var(--accent); font-weight: 500; }

@media (max-width: 720px) {
  .feed-post {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "caption";
    gap: 0;
  }
  .feed-post__media { max-width: 420px; margin-bottom: 1.3rem; }
}
