/* ==========================================================================
   Orima & Co. Advocates — modern site styles
   ========================================================================== */

:root {
  --ink: #1d0f2a;
  --ink-2: #26143a;
  --plum: #3c1e54;
  --plum-600: #4e2870;
  --plum-300: #8d6bab;
  --orchid: #b8327f;
  --ember: #ff6a3d;
  --sky: #45c4dd;
  --paper: #fbf9fd;
  --mist: #f3eef7;
  --line: rgba(60, 30, 84, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #2a2233;
  --muted: #6d6478;
  --muted-dark: rgba(255, 255, 255, 0.66);
  --grad: linear-gradient(115deg, var(--ember) 0%, var(--orchid) 48%, #6f43c0 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 106, 61, 0.16), rgba(184, 50, 127, 0.14) 50%, rgba(111, 67, 192, 0.14));
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -24px rgba(29, 15, 42, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(29, 15, 42, 0.45);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: var(--orchid); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--plum); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--plum); }
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--ember), var(--orchid), #6f43c0, var(--ember));
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px);
          mask: radial-gradient(circle, transparent 9px, #000 10px);
  transition: transform 0.8s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--sans); font-weight: 700; letter-spacing: 0.16em; font-size: 17px; }
.brand-name .amp { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; margin: 0 0.42em 0 0.04em; color: var(--orchid); }
.brand-sub { font-size: 9.5px; letter-spacing: 0.58em; text-transform: uppercase; margin-top: 5px; opacity: 0.75; }
.brand-light { color: #fff; }
.brand-logo { display: block; height: 46px; width: auto; max-width: none; }
/* The logo is white: it always sits on a dark background (the header stays dark when scrolled). */
.site-header .brand, .brand-footer { transition: opacity 0.3s, transform 0.35s var(--ease); }
.site-header .brand:hover, .brand-footer:hover { opacity: 0.85; }
.site-header .brand-logo { transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 38px; }
.brand-footer { display: inline-flex; }
.brand-footer .brand-logo { height: 60px; }
@media (max-width: 700px) {
  .brand-logo { height: 36px; }
  .site-header.is-scrolled .brand-logo { height: 32px; }
  .brand-footer .brand-logo { height: 50px; }
}
.brand-light .amp { color: #ff9b7a; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--plum); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(184, 50, 127, 0.55); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-glow { background: var(--grad); background-size: 160% 100%; background-position: 0 0; }
.btn-glow:hover { background-position: 100% 0; }
.btn-light { --bg: #fff; --fg: var(--plum); }
.btn-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { --bg: transparent; --fg: var(--plum); border-color: var(--line); }
.btn-outline:hover { border-color: var(--plum); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--plum); }
.link-arrow::after { content: '→'; transition: transform 0.35s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s var(--ease), color 0.4s;
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--text); opacity: 0.82; transition: opacity 0.3s, background 0.3s;
}
.main-nav a:hover { opacity: 1; background: rgba(60, 30, 84, 0.06); }
.main-nav a[aria-current='page'] { opacity: 1; }
.main-nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ember); transform: translateX(-50%);
}
.has-dark-hero .site-header:not(.is-scrolled) .brand { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .brand .amp { color: #ff9b7a; }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav a { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.has-dark-hero .site-header:not(.is-scrolled) .menu-toggle span { background: #fff; }
.site-header.is-scrolled {
  height: 64px; background: rgba(29, 15, 42, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -20px rgba(0, 0, 0, 0.5);
}
/* The logo is white, so the header stays dark when scrolled too. */
.site-header.is-scrolled .main-nav a { color: #fff; }
.site-header.is-scrolled .main-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-header.is-scrolled .menu-toggle span { background: #fff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-left: auto; z-index: 120;
}
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--plum); border-radius: 2px; transition: transform 0.4s var(--ease), background 0.3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; right: 17px; }
.menu-open .menu-toggle span { background: #fff !important; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); right: 11px; }
.menu-open .site-header .brand { color: #fff !important; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(24px, 8vw, 60px) 40px;
  background-image: radial-gradient(600px 400px at 90% 10%, rgba(184, 50, 127, 0.45), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(255, 106, 61, 0.3), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); color: #fff; line-height: 1.15;
  display: flex; align-items: baseline; gap: 16px; transform: translateY(20px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.mobile-menu nav a small { font-family: var(--sans); font-size: 13px; color: #ff9b7a; letter-spacing: 0.1em; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current='page'] { color: #ffb59c; }
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu-foot { margin-top: 48px; display: flex; flex-direction: column; gap: 6px; color: var(--muted-dark); }

/* ---------- Dark hero shared ---------- */
.dark { background: var(--ink); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.65; animation: drift 18s ease-in-out infinite alternate; }
.aurora .orb-1 { width: 520px; height: 520px; background: #b8327f; top: -160px; right: -80px; }
.aurora .orb-2 { width: 420px; height: 420px; background: #ff6a3d; bottom: -200px; left: 10%; opacity: 0.4; animation-duration: 22s; }
.aurora .orb-3 { width: 360px; height: 360px; background: #5a35b0; top: 30%; left: -120px; opacity: 0.55; animation-duration: 26s; }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.12); }
  100% { transform: translate3d(-40px, 80px, 0) scale(0.95); }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orchid); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: #ff9b7a; }
.hero h1 { font-size: clamp(44px, 6.2vw, 88px); font-weight: 380; letter-spacing: -0.022em; line-height: 1.04; margin: 22px 0 26px; }
.hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-dark); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hero-word > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.facade { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.facade svg { width: 100%; height: 100%; }
.facade img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.facade-wrap:hover .facade img { transform: scale(1.08); }
.facade::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(29, 15, 42, 0) 55%, rgba(29, 15, 42, 0.55) 100%), linear-gradient(135deg, rgba(184, 50, 127, 0.12), rgba(29, 15, 42, 0)); }
.facade-badge {
  position: absolute; left: -28px; bottom: 40px; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 18px; color: #fff;
  background: rgba(29, 15, 42, 0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.facade-badge strong { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.facade-badge span { font-size: 13px; color: var(--muted-dark); line-height: 1.3; }
.facade-wrap { position: relative; }
.facade-chip {
  position: absolute; right: -18px; top: 36px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--plum); box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center;
  animation: float 7s ease-in-out infinite reverse;
}
.facade-chip i { width: 8px; height: 8px; border-radius: 50%; background: #2bd49a; box-shadow: 0 0 0 4px rgba(43, 212, 154, 0.2); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 20px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 80px; overflow: hidden; isolation: isolate; }
.page-hero .aurora .orb-1 { width: 420px; height: 420px; top: -200px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 400; margin: 18px 0 18px; max-width: 900px; }
.page-hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-dark); max-width: 680px; margin: 0; }
.page-hero .big-num { position: absolute; right: clamp(20px, 5vw, 48px); bottom: -0.18em; font-family: var(--serif); font-size: clamp(160px, 24vw, 340px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); pointer-events: none; user-select: none; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted-dark); margin-bottom: 8px; }
.crumbs a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.page-hero + .section { padding-top: clamp(48px, 6vw, 84px); }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.section-alt { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 58px); max-width: 760px; margin-top: 16px; }
.section-head p { color: var(--muted); max-width: 480px; margin: 0; }
.num-label { display: inline-flex; align-items: baseline; gap: 14px; }
.num-label b { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--orchid); }
.num-label span { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.num-label::after { content: ''; width: 48px; height: 1px; background: var(--line); align-self: center; }

/* Stats */
.stats { position: relative; margin-top: -56px; z-index: 5; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: 30px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 400; line-height: 1; color: var(--plum); }
.stat strong sup { font-size: 0.45em; color: var(--orchid); top: -1em; margin-left: 2px; }
.stat > span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }


/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.split h2 { font-size: clamp(34px, 4.2vw, 56px); margin: 18px 0 24px; }
.split .text-lg { font-size: 19px; color: var(--text); }
.split p { color: var(--muted); }
.quote-card {
  position: relative; padding: 40px; border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; margin-top: 32px;
}
.quote-card::before { content: '“'; position: absolute; right: 26px; top: -20px; font-family: var(--serif); font-size: 200px; line-height: 1; color: rgba(255, 255, 255, 0.07); }
.quote-card p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: #fff; margin: 0; position: relative; }
.quote-card .values { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.tag { display: inline-flex; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; background: var(--grad-soft); color: var(--plum); border: 1px solid var(--line); }
.dark .tag, .quote-card .tag { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pillar {
  position: relative; padding: 28px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  overflow: hidden;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--plum); margin-bottom: 20px; }
.pillar .icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 21px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--muted); margin: 0; }
.pillar::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.pillar:hover::after { transform: scaleX(1); }

/* Practice cards */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.practice-card {
  position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 26px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s;
}
.practice-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--plum) 0%, var(--ink) 100%); opacity: 0; transition: opacity 0.45s var(--ease); }
.practice-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -110px; border-radius: 50%; background: var(--grad); filter: blur(40px); opacity: 0; z-index: -1; transition: opacity 0.6s var(--ease); }
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.practice-card:hover::before { opacity: 1; }
.practice-card:hover::after { opacity: 0.6; }
.practice-card .pc-num { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; transition: color 0.4s; }
.practice-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--plum); margin: 18px 0 auto; transition: background 0.4s, color 0.4s; }
.practice-card .icon svg { width: 22px; height: 22px; }
.practice-card h3 { font-size: 21px; margin-top: 26px; transition: color 0.4s; }
.practice-card p { font-size: 14px; color: var(--muted); margin: 10px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, color 0.4s; }
.practice-card:hover h3, .practice-card:focus-within h3 { color: #fff; }
.practice-card:hover p, .practice-card:focus-within p { max-height: 120px; opacity: 1; color: rgba(255, 255, 255, 0.75); }
.practice-card:hover .icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.practice-card:hover .pc-num { color: #ff9b7a; }
.practice-grid.full .practice-card p { max-height: 120px; opacity: 1; }
.practice-grid.full .practice-card { min-height: 270px; }

/* Team cards */
.team-filters { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--plum-300); }
.chip[aria-pressed='true'] { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip .count { opacity: 0.6; margin-left: 4px; font-size: 12px; }
.search { position: relative; min-width: min(320px, 100%); }
.search input {
  width: 100%; padding: 12px 18px 12px 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14.5px; color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search input:focus { outline: none; border-color: var(--plum-300); box-shadow: 0 0 0 4px rgba(141, 107, 171, 0.18); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.avatar { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.team-card:hover .avatar img, .team-card:hover .avatar .initials { transform: scale(1.06); }
.avatar .initials { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); font-weight: 400; letter-spacing: -0.02em; transition: transform 0.8s var(--ease); position: relative; z-index: 1; }
.avatar .pattern { position: absolute; inset: 0; }
.team-card .info { padding: 18px 20px 22px; }
.team-card h3, .dark .team-card h3 { font-size: 20px; color: var(--ink); }
.team-card .role { font-size: 13.5px; color: var(--orchid); font-weight: 600; margin-top: 6px; text-transform: capitalize; }
.team-card .go {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--plum); transform: scale(0.6) rotate(-45deg); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.45s;
  z-index: 2;
}
.team-card:hover .go { transform: scale(1) rotate(0); opacity: 1; }
.team-group-title { font-size: 26px; margin: 48px 0 20px; display: flex; align-items: center; gap: 16px; }
.team-group-title:first-child { margin-top: 0; }
.team-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Profile */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.profile-card { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-card .avatar { aspect-ratio: 1 / 1.05; }
.profile-card .contacts { padding: 22px 24px 26px; display: grid; gap: 12px; }
.contact-line { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--text); word-break: break-word; }
.contact-line svg { width: 18px; height: 18px; color: var(--orchid); flex: none; }
.contact-line:hover { color: var(--orchid); }
.profile-body h2 { font-size: 26px; margin: 40px 0 18px; }
.profile-body h2:first-child { margin-top: 0; }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cred-list li { display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.cred-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--grad); }

/* Publications */
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); margin-bottom: 40px; transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease); }
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.featured-post .cover { min-height: 360px; }
.featured-post .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.featured-post h3 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0; }
.featured-post p { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cover { position: relative; overflow: hidden; background: var(--plum); }
.post-card .cover { aspect-ratio: 16 / 10; }
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .cover img, .post-card:hover .cover svg, .featured-post:hover .cover img, .featured-post:hover .cover svg { transform: scale(1.05); }
.cover .tag { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, 0.92); border: 0; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.post-card h3 { font-size: 21px; line-height: 1.2; margin: 12px 0 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; transition: background 0.3s, color 0.3s; }
.pager button[aria-current='true'] { background: var(--plum); color: #fff; border-color: var(--plum); }
.pager button:disabled { opacity: 0.4; cursor: default; }

/* Article */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.article-hero .meta { color: var(--muted-dark); font-size: 14.5px; margin-top: 22px; }
.article-cover { margin-top: -60px; position: relative; z-index: 3; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lg); }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(36px, 6vw, 90px); align-items: start; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { padding: 22px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: 14px; }
.aside-card h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.share-row { display: flex; gap: 8px; }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background 0.3s, color 0.3s; }
.share-row a:hover, .share-row button:hover { background: var(--plum); color: #fff; }
.share-row svg { width: 17px; height: 17px; }
.prose { font-size: 18px; line-height: 1.8; color: #3a3245; max-width: 720px; }
.prose > p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 4.1em; line-height: 0.85; padding: 6px 12px 0 0; color: var(--plum); }
.prose h2 { font-size: 30px; margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 23px; margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--orchid); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--orchid); font-family: var(--serif); font-size: 22px; color: var(--plum); }
.prose a { color: var(--orchid); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.prose strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.contact-card span { font-size: 18px; font-family: var(--serif); color: var(--ink); }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; background: var(--ink); margin-top: 14px; display: block; }
.map-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.map-card .pin::before { content: ''; position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: rgba(255, 106, 61, 0.35); animation: ping 2.4s ease-out infinite; }
.map-card .pin i { position: relative; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--ember); border: 3px solid #fff; }
.map-card .map-label { position: absolute; left: 20px; bottom: 18px; color: #fff; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
@keyframes ping { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.form-card { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 32px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 15px; color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum-300); background: #fff; box-shadow: 0 0 0 4px rgba(141, 107, 171, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 90px 0 36px; overflow: hidden; isolation: isolate; }
.footer-glow { position: absolute; inset: auto -10% -60% -10%; height: 600px; background: radial-gradient(closest-side, rgba(184, 50, 127, 0.45), transparent); z-index: -1; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { color: #fff; font-size: clamp(32px, 4.6vw, 60px); font-weight: 400; max-width: 760px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-grid h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); font-weight: 700; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 20px; max-width: 340px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

.facade .lit { animation: flicker 5s ease-in-out infinite; }
.facade .lit:nth-of-type(3n) { animation-delay: 1.2s; animation-duration: 6.5s; }
.facade .lit:nth-of-type(4n) { animation-delay: 2.4s; animation-duration: 4.2s; }
@keyframes flicker { 0%, 100% { opacity: 0.9; } 45% { opacity: 0.25; } 60% { opacity: 1; } }
.field [aria-invalid='true'] { border-color: #e2485f; box-shadow: 0 0 0 4px rgba(226, 72, 95, 0.14); }

/* Reveal on scroll */
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #eee8f3 25%, #f7f3fa 50%, #eee8f3 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 260px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); transition: transform 0.4s var(--ease), opacity 0.4s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 404 */
.notfound { min-height: 80svh; display: flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .practice-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .split, .contact-grid, .article-layout, .profile { grid-template-columns: 1fr; }
  .facade-wrap { max-width: 460px; margin: 0 auto; width: 100%; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .cover { min-height: 240px; aspect-ratio: 16 / 9; }
  .profile-card, .article-aside { position: static; }
  .profile-card { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .practice-grid, .post-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-card h3 { font-size: 17px; }
  .team-card .info { padding: 14px 14px 16px; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .facade-badge { left: 12px; bottom: 16px; }
  .facade-chip { right: 12px; }
  .practice-card p { max-height: 120px; opacity: 1; }
  .practice-card { min-height: 0; }
  .practice-card:hover p { color: rgba(255, 255, 255, 0.75); }
  .stat { padding: 22px 20px; }
  .article-cover { aspect-ratio: 16 / 10; margin-top: -40px; }
  .prose { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .hero-word > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
}
