/* The second pass: material, movement and meaningful exploration. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-away .2s ease both; }
::view-transition-new(root) { animation: page-in .45s var(--ease) both; }
@keyframes page-away { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } }

/* A floating, frosted navigation surface. */
.site-header,
[data-layout=immersive] .site-header,
[data-layout=immersive] .site-header.scrolled {
  padding: 18px var(--gutter) 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  --nav-glass: color-mix(in srgb, var(--paper) 80%, transparent);
}
.site-header { padding-bottom: 12px; }
[data-layout=immersive] .site-header:not(.scrolled) {
  --nav-glass: rgba(22,27,23,.30);
}
.header-inner {
  height: 70px;
  padding: 0 22px;
  max-width: 1400px;
  gap: 22px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 50px;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 1px 0 #ffffff17, 0 8px 30px #00000009;
  pointer-events: auto;
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.scrolled .header-inner { box-shadow: inset 0 1px 0 #ffffff12, 0 12px 38px #00000012; }
.header-inner .brand { font-size: 21px; }
.theme-parent .header-inner .brand { font-size: 12px; }
.theme-auto .header-inner .brand { font-size: 26px; }
.theme-media .header-inner .brand { font-size: 18px; }
.theme-tech .header-inner .brand { font-size: 24px; }
.theme-planning .header-inner .brand { font-size: 24px; }
.desktop-nav {
  position: relative;
  padding: 4px;
  gap: 0;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 40px;
  background: color-mix(in srgb, currentColor 3%, transparent);
}
.theme-parent .site-header .desktop-nav { gap: 0; }
.desktop-nav a { padding: 10px 16px; z-index: 1; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.desktop-nav a::after { display: none; }
.nav-indicator,
.filter-indicator {
  position: absolute;
  pointer-events: none;
  top: 0; left: 0;
  border-radius: 40px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: inset 0 1px 0 #ffffff18, 0 2px 8px #00000008;
  opacity: 0;
  transition: transform .23s var(--ease), width .23s var(--ease), height .23s var(--ease), opacity .15s ease;
}
.nav-indicator.is-set,.filter-indicator.is-set { opacity: 1; }
.parent-link { padding: 0; border: 0; font-size: 9px; gap: 10px; }
.house-switch {
  display: grid; place-items: center;
  flex: none;
  width: 38px; height: 38px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 4%, transparent);
  color: inherit;
  transition: background .15s ease, transform .23s var(--ease), scale .15s var(--ease);
}
.house-switch:hover { background: color-mix(in srgb, currentColor 12%, transparent); transform: rotate(7deg); }
.house-switch svg { width: 18px; height: 18px; }
.reading-progress { left: calc(var(--gutter) + 30px); right: calc(var(--gutter) + 30px); width: auto; bottom: 12px; opacity: .55; }
[data-layout=immersive] .reading-progress { bottom: 0; }
.menu-toggle { border-radius: 50%; width: 38px; height: 38px; }
.mobile-menu { border-radius: 28px 0 0 28px; background: color-mix(in srgb,var(--paper) 94%,transparent); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); overscroll-behavior: contain; }
.menu-close { border-radius: 50%; }
html:has(:is(.mobile-menu, .house-browser)[open]) { overflow: hidden; }
:is(.menu-toggle, .menu-close, .house-browser-close) {
  transition: background-color .15s ease, scale .15s var(--ease);
}
:is(.house-switch, .menu-toggle, .menu-close, .house-browser-close):active {
  background-color: color-mix(in srgb, currentColor 15%, transparent);
  transition-duration: 75ms;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.house-switch, .menu-toggle, .menu-close, .house-browser-close):active { scale: .94; }
  :is(.mobile-menu, .house-browser)[open]::backdrop { animation: nav-backdrop-in .15s ease-out; }
  .mobile-menu[open] > nav a { animation: nav-link-in .17s var(--ease) backwards; }
  .mobile-menu[open] > nav a:nth-child(2) { animation-delay: 18ms; }
  .mobile-menu[open] > nav a:nth-child(3) { animation-delay: 36ms; }
  .mobile-menu[open] > nav a:nth-child(4) { animation-delay: 54ms; }
  .mobile-menu[open] > nav a:nth-child(n+5) { animation-delay: 72ms; }
  @keyframes nav-backdrop-in { from { opacity: 0; } }
  @keyframes nav-link-in { from { opacity: .64; } }
}

/* A direct connection to every house without giving up its own identity. */
.house-browser {
  width: min(960px, calc(100vw - 80px));
  max-width: 960px;
  max-height: calc(100dvh - 80px);
  padding: 38px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 #ffffff18, 0 40px 130px #00000059;
  -webkit-backdrop-filter: blur(35px);
  backdrop-filter: blur(35px);
  overflow: auto;
  overscroll-behavior: contain;
}
.house-browser::backdrop { background: #0c130da3; -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.house-browser-head { display: flex; align-items: start; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.house-browser-head .eyebrow { font-size: 9px; margin-bottom: 15px; }
.house-browser-head h2 { font-family: var(--display); font-weight: 400; font-size: 35px; line-height: 1.2; letter-spacing: -.03em; }
.house-browser-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: inherit;
  background: transparent;
}
.house-browser-close svg { width: 20px; height: 20px; }
.house-browser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.house-browser-item { display: flex; align-items: center; gap: 15px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; transition: color .35s, background .35s, border-color .35s, transform .4s var(--ease); }
.house-browser-item:hover,.house-browser-item[aria-current=page] { background: var(--house-bg); color: var(--house-ink); border-color: color-mix(in srgb,var(--house-ink) 20%,transparent); }
.house-browser-item:hover { transform: translateY(-2px); }
.house-browser-no { font-family: var(--ui); font-size: 8px; opacity: .55; }
.house-browser-item .brand-symbol { width: 21px; height: 26px; }
.house-browser-name { flex: 1; min-width: 0; }
.house-browser-name b { display: block; font-family: var(--ui); font-size: 12px; line-height: 1.4; font-weight: 500; }
.house-browser-name small { display: block; font-family: var(--ui); font-size: 8px; line-height: 1.5; margin-top: 5px; opacity: .6; }
.house-browser-item>svg:last-child { width: 16px; height: 16px; flex: none; opacity: .6; }
.house-browser-foot { display: flex; justify-content: space-between; gap: 25px; font-family: var(--ui); font-size: 9px; color: var(--muted); margin-top: 28px; }
.house-browser-foot a { display: flex; gap: 15px; align-items: center; }
.house-browser-foot svg { width: 14px; height: 14px; }

/* Gentle depth follows native scrolling. */
[data-hero-depth] { overflow: hidden; }
[data-hero-depth]>img { transform: translate3d(0,var(--hero-shift,0px),0) scale(1.07); transform-origin: 50% 45%; }
.image-single[data-scene] .editorial-image>img { clip-path: inset(0 var(--scene-edge,0px) round var(--scene-radius,0px)); transform: scale(1); }
.parent-interlude[data-scene] .interlude-photo img { transform: scale(var(--scene-scale,1)); }
.parent-interlude { overflow: hidden; }
.house-filters { position: relative; }
.house-filters.has-indicator button { position: relative; z-index: 1; background: transparent; color: #25352b; border-color: transparent; }
.house-filters.has-indicator button[aria-pressed=true] { color: #f3eee5; }
.house-filters.has-indicator button[aria-pressed=true]:not(.is-highlighted) { color: #25352b; }
.house-filters.has-indicator button.is-highlighted { color: #f3eee5; }
.house-filters .filter-indicator { background: #25352b; border-color: #25352b; }
.house-card { transform-style: preserve-3d; }
.house-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; border: 1px solid color-mix(in srgb,var(--house-ink) 20%,transparent); background: radial-gradient(500px circle at var(--pointer-x,50%) var(--pointer-y,50%),color-mix(in srgb,var(--house-ink) 7%,transparent),transparent 65%); transition: opacity .5s; }
.house-card:hover::after { opacity: 1; }
.house-card:hover .house-card-brand .brand-symbol { transform: translateY(-3px); }
.house-card-brand .brand-symbol { transition: transform .6s var(--ease); }
.button { position: relative; overflow: hidden; }
.button:active { transform: scale(.97); }
.button::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,#ffffff1c 48%,transparent 65%); transform:translateX(-120%); transition:transform .7s var(--ease); pointer-events:none; }
.button:hover::after { transform:translateX(120%); }
.editorial-image { border-radius: 2px; }

/* Focused, keyboard-accessible business explorers. */
.focus-tabs { display: flex; position: relative; gap: 8px; border: 1px solid var(--line); border-radius: 60px; padding: 7px; width: max-content; max-width: 100%; background: color-mix(in srgb,var(--ink) 3%,transparent); margin-bottom: 30px; }
.focus-tabs button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--muted); padding: 14px 23px; border-radius: 40px; font-family: var(--ui); font-size: 11px; z-index: 1; transition: color .3s, background .3s; }
.focus-tab-no { font-size: 8px; opacity: .65; }
.focus-tabs button[aria-selected=true] { color: var(--paper); background: var(--ink); }
.focus-tabs.has-indicator button[aria-selected=true] { background: transparent; }
.focus-tabs.has-indicator button[aria-selected=true]:not(.is-highlighted) { color: var(--muted); }
.focus-tabs.has-indicator button.is-highlighted { color: var(--paper); }
.focus-tabs .nav-indicator { background: var(--ink); border-color: var(--ink); }
.focus-stage { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 510px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.focus-image { margin: 0; overflow: hidden; position: relative; }
.focus-image img { height: 100%; width: 100%; object-fit: cover; }
.focus-image figcaption { position: absolute; left: 24px; bottom: 24px; color: #f3eee5; font-size: 10px; text-shadow: 0 2px 8px #000; }
.focus-image .image-index { display: none; }
.focus-panels { padding: 50px; display: flex; flex-direction: column; justify-content: center; min-width: 0; background: color-mix(in srgb,var(--ink) 3%,transparent); }
.focus-panel { min-width: 0; border: 0!important; padding: 0!important; }
.focus-panel-index { display: block; font-family: var(--ui); font-size: 9px; color: var(--accent); margin-bottom: 40px; letter-spacing: .1em; }
.theme-auto .focus-panel h3 { font-size: clamp(52px,6vw,86px); margin: 0 0 25px; line-height: .95; }
.focus-panel>p:not(.lbl) { font-size: 15px; line-height: 1.95; color: var(--muted); max-width: 43ch; }
.focus-explorer:not(.is-enhanced) .focus-tabs { display: none; }
.focus-explorer:not(.is-enhanced) .focus-panel { margin-bottom: 40px; }
.process-explorer .focus-tabs { width: 100%; border-radius: 14px; padding: 6px; gap: 6px; }
.process-explorer .focus-tabs button { flex: 1; justify-content: space-between; padding: 22px; border-radius: 9px; font-size: 12px; }
.process-explorer .focus-tabs .nav-indicator { border-radius: 9px; }
.process-explorer .focus-stage { display: block; min-height: 350px; background: var(--paper); border-radius: 15px; }
.process-explorer .focus-panels { padding: 50px 65px; min-height: 350px; background: transparent; }
.process-explorer .focus-panel { display: grid; grid-template-columns: .8fr 1fr; gap: 25px 10%; align-items: center; }
.process-explorer .focus-panel-index { grid-column: 1; font-size: 10px; margin-bottom: 0; }
.process-explorer .focus-panel>.lbl { display: none; }
.theme-consulting .process-explorer .focus-panel h3 { grid-column: 1; font-family: Newsreader,Georgia,serif; font-size: 65px; font-weight: 400; color: var(--accent); margin: 0; }
.process-explorer .focus-panel>p:not(.lbl) { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; }

/* Technology grading: a small interaction with useful information. */
.grade-card { min-height: 183px; background: #e5f6c7ed; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.grade-letters>button { border: 1px solid #17221d3d; width: 43px; height: 43px; border-radius: 10px; font-family: var(--display); font-size: 22px; background: #ffffff25; color: #17221d; transition: background .3s, color .3s, transform .4s var(--ease); }
.grade-letters>button[aria-selected=true] { background: #17221d; color: #e5f6c7; box-shadow: 0 3px 8px #17221d20; }
.grade-letters>button:hover { transform: translateY(-2px); }
.grade-card p { min-height: 30px; max-width: 34ch; font-size: 8px; line-height: 1.8; }

/* A reading-room disclosure for each legal subject. */
.practice-detail { border-top: 1px solid var(--line); }
.practice-detail:last-child { border-bottom: 1px solid var(--line); }
.practice-detail summary { display: grid; grid-template-columns: 35px 1fr auto 25px; gap: 25px; padding: 28px 0; align-items: center; list-style: none; cursor: pointer; }
.practice-detail summary::-webkit-details-marker { display: none; }
.practice-detail .prac__t { grid-row: auto; }
.practice-detail .prac__m { grid-column: auto; font-size: 8px; }
.practice-plus { font-family: var(--body); font-size: 24px; font-weight: 300; text-align: right; transition: transform .4s var(--ease); }
.practice-detail[open] .practice-plus { transform: rotate(45deg); }
.practice-detail-body { margin: 0 0 28px 60px; max-width: 68ch; font-size: 14px; line-height: 1.9; color: var(--muted); }
.practice-detail-body .prac__d { font-size: inherit; }
.practice-detail[open] .practice-detail-body { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } }
.theme-planning .disc article,.theme-finance .arms article,.theme-tech .cat article { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s; }
@media(hover:hover) {
  .theme-planning .disc article:hover,.theme-finance .arms article:hover,.theme-tech .cat article:hover { transform: translateY(-5px); box-shadow: 0 12px 30px #1024190a; }
}

/* Responsive field feedback: honest preparation, no simulated sending. */
.enq-form label { position: relative; transition: color .3s; }
.enq-form label:focus-within { color: var(--ink); }
.enq-form label.field-complete::after { content:'✓'; position:absolute; right:2px; top:0; font-size:10px; color:var(--accent); }
.theme-tech .enq-form label.field-complete::after { color:#526840; }
.enq-form .field-error { color: #c15f4f; }
.enq-form .field-error::after { content:'!'; position:absolute; right:2px; top:0; color:#c15f4f; }
.enq-form.form-attention { animation: form-attention .32s ease; }
.enq-form__note { transition: color .3s; }
.enq-form [hidden] { display: none !important; }
.enq-form__error { color: var(--ink); font-weight: 650; }
.enq-form__draft {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.enq-form__draft textarea { min-width: 0; width: 100%; }
.enq-form__draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.enq-form__draft .enq-form__note { margin: 0; }
@keyframes form-attention { 25% { transform:translateX(-3px); } 75% { transform:translateX(3px); } }

@media(max-width:1200px) {
  .header-inner { padding-inline:20px; gap:16px; }
  .desktop-nav a { padding-inline:12px; font-size:9px; }
  .header-inner .brand { font-size:19px; }
  .parent-link { font-size:8px; }
  .focus-panels { padding:40px; }
}
@media(max-width:980px) {
  .house-switch { margin-left:auto; }
  .parent-link { margin-left:auto; }
  .parent-link+.house-switch { margin-left:0; }
  .menu-toggle { margin-left:0; }
  .house-browser { padding:30px; width:calc(100vw - 50px); }
  .focus-panels { padding:32px; }
  .focus-stage { min-height:460px; }
  .process-explorer .focus-tabs button { padding:18px; font-size:10px; }
}
@media(max-width:760px) {
  .site-header,[data-layout=immersive] .site-header,[data-layout=immersive] .site-header.scrolled { padding:12px 12px 8px; }
  .header-inner { height:61px; padding-inline:16px 10px; gap:9px; }
  .header-inner .brand { font-size:19px; gap:8px; }
  .theme-parent .header-inner .brand { font-size:10px; letter-spacing:.09em; }
  .theme-media .header-inner .brand { font-size:16px; }
  .theme-auto .header-inner .brand { font-size:25px; }
  .theme-tech .header-inner .brand { font-size:22px; }
  .theme-planning .header-inner .brand { font-size:22px; }
  .header-inner .brand-symbol { width:22px; height:24px; }
  .house-switch { width:32px; height:32px; padding:7px; }
  .header-inner .house-switch { margin-left:auto; }
  .house-switch svg { width:16px; height:16px; }
  .menu-toggle { width:34px; height:34px; flex:none; }
  .reading-progress { display:none; }
  .house-browser { width:calc(100vw - 24px); max-height:calc(100dvh - 28px); padding:23px; border-radius:23px; }
  .house-browser-head { gap:16px; margin-bottom:23px; }
  .house-browser-head .eyebrow { font-size:7px; margin-bottom:12px; }
  .house-browser-head h2 { font-size:28px; max-width:17ch; line-height:1.2; }
  .house-browser-close { width:32px; height:32px; }
  .house-browser-close svg { width:18px; height:18px; }
  .house-browser-grid { grid-template-columns:1fr; gap:7px; }
  .house-browser-item { padding:14px 13px; gap:12px; border-radius:11px; }
  .house-browser-no { font-size:7px; }
  .house-browser-name b { font-size:11px; }
  .house-browser-name small { font-size:7px; }
  .house-browser-item .brand-symbol { width:19px; height:23px; }
  .house-browser-foot { font-size:8px; gap:18px; flex-direction:column; }
  .house-browser-foot a { align-self:start; }
  .focus-tabs { width:100%; border-radius:15px; padding:5px; gap:5px; display:grid; grid-template-columns:1fr 1fr; margin-bottom:20px; }
  .focus-tabs button { padding:14px; font-size:10px; border-radius:10px; gap:12px; }
  .focus-tab-no { font-size:7px; }
  .focus-tabs .nav-indicator { border-radius:10px; }
  .focus-stage { display:block; min-height:0; border-radius:15px; }
  .focus-image { height:330px; }
  .focus-image figcaption { left:20px; bottom:20px; font-size:8px; }
  .focus-panels { padding:30px; min-height:320px; }
  .theme-auto .focus-panel h3 { font-size:57px; margin-bottom:20px; }
  .focus-panel-index { font-size:8px; margin-bottom:28px; }
  .focus-panel>p:not(.lbl) { font-size:13px; line-height:1.9; }
  .process-explorer .focus-tabs { display:grid; border-radius:13px; grid-template-columns:1fr 1fr; gap:4px; }
  .process-explorer .focus-tabs button { font-size:10px; padding:18px 15px; }
  .process-explorer .focus-stage { min-height:0; }
  .process-explorer .focus-panels { padding:30px; min-height:325px; }
  .process-explorer .focus-panel { display:block; }
  .process-explorer .focus-panel-index { margin-bottom:20px; font-size:8px; }
  .theme-consulting .process-explorer .focus-panel h3 { font-size:48px; margin-bottom:20px; }
  .process-explorer .focus-panel>p:not(.lbl) { font-size:13px; }
  .practice-detail summary { grid-template-columns:22px 1fr 20px; gap:10px 15px; padding:24px 0; }
  .practice-detail .prac__t { font-size:19px; line-height:1.5; }
  .practice-detail .prac__m { grid-column:2; grid-row:2; font-size:7px; }
  .practice-plus { grid-column:3; grid-row:1 / span 2; font-size:24px; }
  .practice-detail-body { margin:0 10px 25px 37px; font-size:12px; }
  [data-hero-depth]>img { transform:scale(1.045); }
  .image-single[data-scene] .editorial-image>img { clip-path:none; }
}
@media(max-width:380px) {
  .header-inner { padding-left:12px; gap:7px; }
  .header-inner .brand { font-size:16px; }
  .theme-parent .header-inner .brand { font-size:9px; letter-spacing:.04em; }
  .theme-media .header-inner .brand { font-size:14px; }
  .theme-tech .header-inner .brand { font-size:21px; }
  .theme-planning .header-inner .brand { font-size:20px; }
  .house-switch { width:28px; height:28px; padding:5px; }
  .menu-toggle { width:30px; height:30px; }
  .header-inner .brand-symbol { width:19px; }
  .focus-panels,.process-explorer .focus-panels { padding:25px; }
}
@media(prefers-reduced-motion:reduce) {
  ::view-transition-old(root),::view-transition-new(root) { animation:none!important; }
  [data-hero-depth]>img { transform:none!important; }
  .image-single[data-scene] .editorial-image>img { clip-path:none!important; }
  .parent-interlude[data-scene] .interlude-photo img { transform:none!important; }
}
@media print { .house-switch,.house-browser,.focus-tabs { display:none!important; } .focus-panel[hidden] { display:block!important; margin-bottom:25px; } }
