/* ============================================================
   ENEVOS — CORPORATE
   Restrained. Institutional. Monochrome.
   ============================================================ */

:root {
  --paper: #f1eee7;
  --paper-2: #e9e5dc;
  --ink: #141310;
  --ink-2: #2a2824;
  --ink-3: #56534c;
  --ink-4: #8a8680;
  --rule: #1413101a;
  --rule-2: #14131033;
  --accent: #141310;
  --paper-pure: #f4f2ed;

  --serif: "Newsreader", "Times New Roman", Times, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --shell: 1240px;
  --shell-pad: 40px;
}

/* Tone variants */
[data-tone="cool"] {
  --paper: #ececec;
  --paper-2: #e2e2e2;
  --ink: #0f0f10;
  --ink-2: #232326;
  --ink-3: #4f5056;
  --ink-4: #828389;
  --paper-pure: #f1f1f2;
}
[data-tone="true"] {
  --paper: #eeeeee;
  --paper-2: #e4e4e4;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #4a4a4a;
  --ink-4: #808080;
  --paper-pure: #f2f2f2;
}

/* Typography variants */
[data-type="serif"] .display,
[data-type="serif"] .section-title,
[data-type="serif"] h2,
[data-type="serif"] body { font-family: var(--serif); }
[data-type="serif"] body { font-family: var(--serif); }
[data-type="sans"] .display,
[data-type="sans"] .section-title,
[data-type="sans"] .serif-ital { font-family: var(--sans); font-style: normal; }

[data-type="serif"] { font-family: var(--serif); }
[data-type="sans"] { font-family: var(--sans); }

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "liga";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr.rule { border: 0; border-top: 1px solid var(--rule-2); margin: 0; }
img { display: block; max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: multiply;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-grain="off"] .grain { display: none; }


/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
}
.mast-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wordmark .w-letter {
  font-size: 34px;
  line-height: 1;
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 4px 8px 3px;
  margin-right: 2px;
  font-family: var(--serif);
}
.wordmark .w-rest {
  font-size: 22px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.wordmark .w-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-left: 10px;
  align-self: center;
  padding-top: 2px;
}

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav a.active::after { transform: scaleX(1); }

.mast-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ---------- shared section chrome ---------- */
section { padding: 96px 0 96px; border-bottom: 1px solid var(--rule-2); }
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
}
.kicker span:first-child { color: var(--ink); }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 900px;
  text-wrap: pretty;
}
.mono-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono-lbl.small { font-size: 10px; }

/* ---------- HERO ---------- */
.hero { padding-top: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  margin-bottom: 72px;
}
.hero-meta { padding-top: 24px; }
.hero-meta .kicker { margin-bottom: 28px; }
.meta-line {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 14px;
  max-width: 320px;
  text-wrap: pretty;
}
.meta-line.dim { color: var(--ink-3); }
.meta-stat {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--rule-2);
  padding-top: 20px;
}
.stat .stat-num {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat .stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-type { position: relative; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 148px;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.display .line { display: block; }
.display .serif-ital { font-style: italic; font-weight: 300; }
.hero-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-2);
}
.hero-foot-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.hero-foot-col .mono-lbl { margin-bottom: 4px; }

.hero-image { margin: 0; position: relative; }
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(20,19,16,0.04) 0,
      rgba(20,19,16,0.04) 2px,
      transparent 2px,
      transparent 10px
    ),
    linear-gradient(180deg, #3a3834 0%, #1c1b18 60%, #0f0e0c 100%);
  border: 1px solid var(--rule-2);
  overflow: hidden;
}
.img-placeholder.tall { aspect-ratio: 12 / 5; }
.img-placeholder::before,
.img-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.img-placeholder::after {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: normal;
  opacity: 1;
}
.img-label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  background: rgba(0,0,0,0.35);
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- FIRM ---------- */


.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

.firm-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 96px;
}
.firm-copy .lede {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 28px;
  max-width: 640px;
  text-wrap: pretty;
}
.firm-copy p {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--ink-2);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.arrow-link span { transition: transform 0.25s; }
.arrow-link:hover span { transform: translateX(4px); }

.firm-aside {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.aside-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 0;
  align-items: baseline;
  gap: 16px;
}
.aside-val {
  font-family: var(--serif);
  font-size: 18px;
}

/* ---------- CAPABILITIES ---------- */
.cap-list { border-top: 1px solid var(--ink); }
.cap-row {
  display: grid;
  grid-template-columns: 72px 220px 1fr 120px;
  gap: 32px;
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--rule-2);
  align-items: start;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
.cap-row:hover { background: rgba(20,19,16,0.035); }
.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 6px;
}
.cap-name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cap-body { max-width: 520px; padding-top: 8px; color: var(--ink-2); font-size: 14px; }
.cap-stats {
  text-align: right;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  line-height: 1.8;
}
.cap-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.cap-sign {
  position: absolute;
  right: 0; top: 32px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.3s;
  display: none; /* keep discreet — row IS the button */
}
.cap-detail {
  grid-column: 2 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
}
.cap-row.open .cap-detail { max-height: 400px; opacity: 1; padding-top: 24px; }
.cap-row.open .cap-body { color: var(--ink); }
.cap-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule-2);
  padding-top: 20px;
}
.cap-detail-col .mono-lbl { margin-bottom: 6px; }
.cap-detail-col p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cap-detail-col ul {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 13px;
}
.cap-detail-col li {
  padding: 4px 0;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--rule-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- FIGURES ---------- */
.fig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
}
.fig {
  background: var(--paper);
  padding: 40px 32px 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.fig-num {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.fig-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.fig-note {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}


/* ---------- PRESENCE ---------- */
.presence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.map-wrap {
  border: 1px solid var(--rule-2);
  background: var(--paper-pure);
  padding: 24px;
  position: relative;
  aspect-ratio: 2 / 1.05;
}
.world { width: 100%; height: 100%; display: block; }
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 24px;
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legend-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-dot.filled { background: var(--ink); }

.office-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--ink);
}
.office-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-2);
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.office-list li:hover { background: rgba(20,19,16,0.035); }
.off-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.off-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}
.off-name small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.off-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ---------- CAREERS ---------- */
.careers-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
}
.careers-copy .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 20px;
}
.careers-copy p { color: var(--ink-2); }
.roles {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--ink);
}
.roles li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-2);
  align-items: center;
  transition: padding 0.2s, background 0.2s;
}
.roles li:hover {
  background: rgba(20,19,16,0.035);
  padding-left: 12px; padding-right: 12px;
}
.role-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.role-title small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.role-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.role-apply {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  transition: all 0.2s;
}
.role-apply:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-block .mono-lbl { margin-bottom: 8px; }
.contact-val {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 17px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
  resize: vertical;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
  background: rgba(20,19,16,0.03);
}
.counter {
  position: absolute;
  right: 0; bottom: -18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.btn {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  transition: all 0.2s;
  margin-top: 12px;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.form-ack {
  font-family: var(--serif);
  font-size: 16px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: rgba(20,19,16,0.05);
}

/* ---------- FOOTER ---------- */
.foot {
  background: var(--paper);
  padding: 48px 0 32px;
  border-top: 1px solid var(--rule-2);
}
.foot .rule { margin-bottom: 48px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-word {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: 0.04em;
}
.foot-word .w-letter {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 2px 10px 0;
  margin-right: 4px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-col .mono-lbl { margin-bottom: 8px; }
.foot-col a {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--ink); }
.foot-legal p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 8px 0 0;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-items: center;
}
.foot-base .dot { background: var(--ink); }

/* ---------- TWEAKS ---------- */
.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  z-index: 1000;
  font-family: var(--sans);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#tweaks-close {
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
.tweaks-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tw-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tw-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--rule-2);
}
.tw-seg button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 6px;
  border-right: 1px solid var(--rule-2);
  color: var(--ink-3);
  transition: all 0.15s;
}
.tw-seg button:last-child { border-right: 0; }
.tw-seg button:hover { color: var(--ink); }
.tw-seg button.active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- mystery levels ---------- */
[data-mystery="mid"] .meta-line.dim,
[data-mystery="mid"] .firm-copy p:nth-child(n+3),
[data-mystery="mid"] .fig-note { visibility: hidden; }
[data-mystery="mid"] .display .line:last-child { opacity: 0.25; }

[data-mystery="high"] .firm-copy p,
[data-mystery="high"] .fig-note,
[data-mystery="high"] .cap-body,
[data-mystery="high"] .meta-line,
[data-mystery="high"] .careers-copy p,
[data-mystery="high"] .role-title small,
[data-mystery="high"] .i-auth { opacity: 0.08; filter: blur(3px); transition: opacity 0.3s; }
[data-mystery="high"] .firm-copy p:hover,
[data-mystery="high"] .fig-note:hover,
[data-mystery="high"] .cap-body:hover,
[data-mystery="high"] .meta-line:hover,
[data-mystery="high"] .careers-copy p:hover,
[data-mystery="high"] .i-auth:hover { opacity: 1; filter: none; }
[data-mystery="high"] .display .line:first-child,
[data-mystery="high"] .display .line:nth-child(2) { opacity: 0.2; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- ≤ 1080px: tighten shell, scale display ---------- */
@media (max-width: 1080px) {
  :root { --shell-pad: 32px; }
  .display { font-size: clamp(48px, 7vw, 84px); }
  .section-title { font-size: clamp(28px, 4.4vw, 44px); }
  .nav { gap: 22px; }
}

/* ---------- ≤ 960px: collapse two-column grids ---------- */
@media (max-width: 960px) {
  :root { --shell-pad: 28px; }

  /* Masthead — stack meta below row */
  .mast-row {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .mast-meta { display: none; }
  .nav { gap: 18px; font-size: 13px; }
  .nav a { white-space: nowrap; }

  /* Hero — stack meta + display vertically */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .hero-meta { max-width: 560px; }
  .display { font-size: clamp(44px, 8vw, 72px); }

  .hero-foot {
    grid-template-columns: 1fr 1fr !important;
    row-gap: 18px;
  }

  /* Firm — stack copy + aside */
  .firm-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .firm-aside {
    border-top: 1px solid var(--rule-2);
    padding-top: 24px;
  }

  /* Capabilities — collapse num/name/body row to two columns */
  .cap-row {
    grid-template-columns: 80px 1fr !important;
    grid-template-areas:
      "num  name"
      "body body"
      "stats stats"
      "detail detail" !important;
    gap: 12px 16px !important;
    padding: 20px 0 !important;
  }
  .cap-num   { grid-area: num; }
  .cap-name  { grid-area: name; }
  .cap-body  { grid-area: body; max-width: none; }
  .cap-stats { grid-area: stats; justify-self: start; }
  .cap-detail { grid-area: detail; }

  /* Figures — 2 columns */
  .fig-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Presence — stack map above list */
  .presence-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .map-wrap { max-width: 720px; }

  /* Careers — stack copy above roles */
  .careers-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* Contact — stack info + form */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  /* Footer */
  .foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }
  .foot-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- ≤ 720px: small tablet / large phone ---------- */
@media (max-width: 720px) {
  :root { --shell-pad: 22px; }
  body { font-size: 14px; }

  /* Masthead — replace nav with summary line; keep wordmark */
  .mast-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }
  .nav {
    gap: 14px;
    font-size: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 calc(var(--shell-pad) * -1);
    padding-left: var(--shell-pad);
    padding-right: var(--shell-pad);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .wordmark { font-size: 20px; }
  .w-sub { display: none; }

  /* Hero */
  .hero { padding: 48px 0 64px !important; }
  .display {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 0.98 !important;
  }
  .meta-stat {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .stat-num { font-size: 36px !important; }

  .hero-foot {
    grid-template-columns: 1fr !important;
    row-gap: 14px;
  }
  /* Drop the desktop 12:5 ratio — fixed height + auto width on phones */
  .img-placeholder.tall {
    aspect-ratio: auto !important;
    height: 280px !important;
    width: 100% !important;
  }
  .img-label {
    white-space: normal !important;
    max-width: calc(100% - 32px);
    line-height: 1.4;
    font-size: 9px;
  }

  /* Section heads */
  .section-head { padding: 56px 0 28px !important; }
  .section-title { font-size: clamp(26px, 6vw, 36px); }

  /* Firm */
  .firm-aside { columns: 2; column-gap: 24px; }
  .firm-aside .aside-block { break-inside: avoid; padding: 10px 0; }
  .firm-aside hr.rule { display: none; }

  /* Capabilities — single column */
  .cap-row {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "num"
      "name"
      "body"
      "stats"
      "detail" !important;
    gap: 8px !important;
  }
  .cap-name { font-size: 22px !important; }
  .cap-stats {
    flex-wrap: wrap;
    gap: 16px !important;
  }
  .cap-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Figures */
  .fig-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .fig {
    padding: 22px 0 !important;
    border-top: 1px solid var(--rule-2);
  }
  .fig:first-child { border-top: 0; }
  .fig-num { font-size: 48px !important; }

  /* Presence — hide map labels (text in pins is unreadable on phones) */
  .pin text { display: none; }
  .office-list li {
    grid-template-columns: 32px 1fr auto !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  /* Careers */
  .roles li {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 18px 0 !important;
  }
  .role-apply { justify-self: start; }

  /* Contact form */
  .contact-form { padding: 24px !important; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr !important; }
  .foot-word { font-size: 24px !important; }

  /* Tweaks panel — full-width sheet on phones */
  .tweaks {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
}

/* ---------- ≤ 420px: small phone ---------- */
@media (max-width: 420px) {
  :root { --shell-pad: 18px; }
  .display { font-size: clamp(34px, 12vw, 44px); }
  .stat-num { font-size: 30px !important; }
  .fig-num { font-size: 40px !important; }
  .kicker { font-size: 10px; gap: 8px; }
}

/* ---------- Touch-only tweaks ---------- */
@media (hover: none) {
  .nav a::after { display: none; }
  [data-mystery="mid"] .meta-line,
  [data-mystery="mid"] .careers-copy p,
  [data-mystery="high"] .meta-line,
  [data-mystery="high"] .careers-copy p { opacity: 1; filter: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

