@layer reset, base, layout, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, dl, dd { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; color: inherit; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  button { border: 0; background: none; }
}
@layer base {
  :root { color-scheme: dark; --ink: #111210; --surface: #151613; --white: #f4f3ef; --muted: #a5a69d; --gold: #ae9670; --line: #34352e; --gutter: clamp(24px, 4.2vw, 88px); --header-height: 104px; }
  html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
  body { background: var(--ink); color: var(--white); font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  ::selection { color: var(--ink); background: var(--gold); }
  :focus-visible { outline: 1px solid var(--gold); outline-offset: 7px; }
  [tabindex='-1']:focus { outline: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: 12px; left: 20px; padding: 12px 20px; background: var(--white); color: var(--ink); z-index: 100; transform: translateY(-200%); }
  .skip-link:focus { transform: translateY(0); }
  h2 { font-size: clamp(44px, 5.5vw, 80px); font-weight: 300; line-height: 1.12; letter-spacing: -.045em; }
  h3 { font-weight: 300; letter-spacing: -.025em; }
  .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 24px; }
}
@layer layout {
  .site-header { position: fixed; top: 0; width: 100%; height: var(--header-height); padding: 0 var(--gutter); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 40px; transition: background .25s; }
  .site-header.is-scrolled { background: #111210f5; }
  .site-header::after { content: ''; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: #f4f3ef1c; }
  .header-brand { flex: 0 1 245px; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
  .header-brand-name { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: .025em; white-space: nowrap; }
  .header-brand-caption { font-size: 10px; font-weight: 400; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
  .main-nav { display: flex; gap: clamp(22px, 2.8vw, 44px); align-items: center; }
  .main-nav a { font-size: 14px; color: #b8b8b0; position: relative; padding: 15px 0; transition: color .2s; }
  .main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .main-nav a:hover, .main-nav a.is-active { color: var(--white); }
  .main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: 25px; }
  .language-switch { display: flex; align-items: center; gap: 5px; font-size: 13px; letter-spacing: .04em; }
  .language-switch button { min-height: 44px; min-width: 32px; padding: 0; color: #92948b; }
  .language-switch button[aria-pressed='true'] { color: var(--white); }
  .language-switch span { color: #73746c; padding: 0 4px; }
  .menu-toggle { display: none; width: 44px; height: 44px; padding: 10px 5px; }
  .menu-toggle span { display: block; height: 1px; width: 27px; background: var(--white); margin: 7px 0; transition: transform .25s; }
  .hero { min-height: 680px; height: 100vh; height: 100svh; position: relative; display: grid; place-items: center; padding: var(--header-height) var(--gutter) 0; isolation: isolate; background: #121210; }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('./assets/brand/texture.webp') center / cover no-repeat; opacity: .59; }
  .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#0c0d0b20 0%,transparent 35%,#0d0e0c30 100%); }
  .hero-composition { width: min(100%, 1440px); padding: 0 clamp(20px, 3.5vw, 68px); transform: none; cursor: pointer; }
  .hero-composition:focus-visible { outline: 1px solid var(--gold); outline-offset: 12px; }
  .clients-section .eyebrow { color: #c4af88; }
  .hero-art { width: 100%; height: auto; overflow: visible; }
  .hero-art-mobile { display: none; }
  .hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding-top: 27px; border-top: 1px solid #f4f3ef20; gap: 20px; }
  .hero-caption { color: var(--muted); font-size: 13px; letter-spacing: .10em; text-transform: uppercase; }
  .discover-link, .replay-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: #c4c3b9; }
  .discover-link { justify-self: center; }
  .scroll-line { display: block; height: 26px; width: 1px; background: linear-gradient(var(--gold),#ae967038); }
  .replay-button { justify-self: end; padding: 0; }
  .replay-symbol { width: 13px; height: 13px; border: 1px solid var(--gold); border-right-color: transparent; }
  .replay-button:hover, .discover-link:hover { color: var(--white); }
  .section { max-width: 1600px; margin: 0 auto; padding: 125px var(--gutter); border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
  .about-section, .contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .about-section { padding-top: 145px; padding-bottom: 145px; }
  .about-body { padding-top: 7px; max-width: 530px; }
  .placeholder-label { color: var(--gold); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; display: inline-flex; gap: 12px; align-items: center; }
  .placeholder-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
  .about-body h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; margin: 30px 0 22px; }
  .about-body p, .section-description { color: var(--muted); max-width: 460px; line-height: 1.8; }
  .editorial-note { margin-top: 38px; display: block; color: #898d82; font-size: 13px; }
  .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-bottom: 64px; }
  .section-heading .section-description { max-width: 385px; padding-bottom: 5px; }
  .about-body > p { white-space: pre-line; }
  .practices-section .section-description:empty { display: none; }
  .practice-item { border-bottom: 1px solid var(--line); }
  .practice-item:last-child { border-bottom: 0; }
  .practice-item > .practice-row { position: relative; cursor: pointer; list-style: none; border-bottom: 0; }
  .practice-item > .practice-row::-webkit-details-marker { display: none; }
  .practice-item > .practice-row::after { content: '+'; position: absolute; right: 0; top: 36px; color: var(--gold); font-size: 18px; }
  .practice-item[open] > .practice-row::after { content: '−'; }
  .practice-item > .practice-row > p { padding-right: 24px; }
  .practice-item > .practice-row:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; }
  .practice-details { margin-left: calc(50% + 40px); padding-bottom: 32px; color: #92978b; font-size: 16px; line-height: 1.8; }
  .practice-services-label { margin-bottom: 12px; }
  .practice-details ul { list-style: disc; padding-left: 20px; }
  .practice-details li + li { margin-top: 8px; }
  .practice-list { border-top: 1px solid var(--line); }
  .practice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
  .practice-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .practice-row h3 { font-size: 28px; }
  .practice-row p { color: #92978b; font-size: 16px; }
  .practice-row.is-placeholder h3 { color: #a8aca0; }
  .social-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
  .social-body .section-description { max-width: 720px; }
  .social-logo { min-width: 0; }
  .social-section h2 { overflow-wrap: anywhere; }
  .clients-section .section-description:empty { display: none; }
  .client-slot { min-width: 0; min-height: 208px; display: flex; align-items: center; justify-content: center; padding: 36px 28px; border-right: 1px solid var(--line); transition: background-color .25s ease; }
  .client-slot > span { text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
  .client-visual { width: 100%; max-width: 180px; height: 82px; display: flex; align-items: center; justify-content: center; overflow: hidden; opacity: .82; transition: opacity .25s ease; }
  .client-logo { display: block; width: auto; height: 72px; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
  /* Transparent SVG wrappers retain the original raster geometry and use
     luminance-derived alpha to remove the background without redrawing. */

  .client-logo--svoyi { width: min(204px, 138%); height: auto; max-width: none; flex-shrink: 0; transform: translateY(3px); filter: none; }

  .client-logo--bodim { width: auto; height: 110px; max-width: none; flex-shrink: 0; transform: translateY(1px); filter: none; }
  .client-wordmark { color: var(--white); font-size: clamp(18px, 1.7vw, 25px); font-weight: 300; letter-spacing: .055em; white-space: nowrap; }
  .client-slot:focus-visible { outline-offset: -5px; }
  .client-slot:focus-visible .client-visual { opacity: 1; }
  @media (hover: hover) {
    .client-slot:hover { background-color: #f4f3ef03; }
    .client-slot:hover .client-visual { opacity: 1; }
  }
  .logo-carousel { min-width: 0; --visible: min(3, var(--items)); }
  .logo-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / var(--visible)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overscroll-behavior-x: contain; }
  .logo-track::-webkit-scrollbar { display: none; }
  .logo-track .client-slot { min-height: 180px; padding: 28px 16px; scroll-snap-align: start; border-top: 0; border-right: 1px solid var(--line); }
  .logo-track .client-slot:last-child { border-right: 0; }
  .logo-track .client-visual { max-width: 160px; height: 90px; }
  .logo-track .client-logo--brp { height: 76px; }
  .logo-track .client-logo--cwp { width: 150px; height: auto; max-height: 76px; filter: none; }
  .logo-track .client-logo--btfv { width: 150px; height: auto; max-height: 90px; filter: none; }
  .carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
  .carousel-controls[hidden] { display: none; }
  .carousel-controls button { width: 44px; height: 40px; border: 1px solid var(--line); color: var(--gold); font-size: 22px; line-height: 1; }
  .carousel-controls button:disabled { opacity: .3; cursor: default; }
  .carousel-controls button:hover:not(:disabled) { border-color: var(--gold); }
  .contact-section .section-description { margin-top: 30px; max-width: 340px; }
  .contact-list { border-top: 1px solid var(--line); }
  .contact-item { padding: 23px 0; border-bottom: 1px solid var(--line); }
  .contact-item dt { font-size: 13px; color: var(--muted); margin-bottom: 9px; }
  .contact-item dd { font-size: 21px; font-weight: 300; overflow-wrap: anywhere; }
  .contact-item dd.is-placeholder { color: #a8aca0; }
  .contact-copy { display: inline-flex; align-items: center; gap: 9px; padding: 0; min-height: 44px; max-width: 100%; text-align: left; cursor: pointer; font-weight: inherit; }
  .contact-copy span { min-width: 0; overflow-wrap: anywhere; }
  .contact-copy svg { flex-shrink: 0; opacity: .55; }
  .contact-copy-status { display: block; font-size: 12px; color: var(--muted); }
  .contact-copy-status:empty { display: none; }
  .contact-item a:hover { color: var(--gold); }
  .site-footer { max-width: 1600px; padding: 25px var(--gutter); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .site-footer small, .site-footer a { font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--muted); letter-spacing: .02em; }
  .footer-copyright { justify-self: start; }
  .footer-credit { justify-self: end; }
  .site-footer a { padding: 12px 0; min-height: 44px; }
  .site-footer a:hover { color: var(--white); }
  html:not(.js) .language-switch, html:not(.js) .replay-button { display: none; }
}
@layer motion {
  .is-animating .brand-mark path, .is-animating .mobile-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.32s cubic-bezier(.4,0,.2,1) forwards; }
  .is-animating .brand-mark path:nth-child(2), .is-animating .mobile-mark path:nth-child(2) { animation-delay: .12s; }
  .is-animating .brand-mark path:nth-child(3), .is-animating .mobile-mark path:nth-child(3) { animation-delay: .24s; }
  .is-animating .brand-divider { opacity: 0; animation: reveal .7s ease .65s forwards; }
  .is-animating .brand-wordmark, .is-animating .mobile-wordmark { opacity: 0; animation: reveal 1s cubic-bezier(.2,.65,.3,1) .9s forwards; }
  .is-animating .brand-tagline path, .is-animating .mobile-tagline path { opacity: 0; animation: reveal .8s cubic-bezier(.2,.65,.3,1) 1.5s forwards; }
  .is-animating .brand-tagline path:nth-child(2), .is-animating .mobile-tagline path:nth-child(2) { animation-delay: 1.67s; }
  .is-animating .brand-tagline path:nth-child(3), .is-animating .mobile-tagline path:nth-child(3) { animation-delay: 1.84s; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
  @keyframes reveal { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .is-animating .brand-mark path, .is-animating .mobile-mark path { stroke-dashoffset: 0; }
    .is-animating .brand-divider, .is-animating .brand-wordmark, .is-animating .mobile-wordmark, .is-animating .brand-tagline path, .is-animating .mobile-tagline path { opacity: 1; }
  }
}
@layer responsive {
  @media (min-width: 1200px) {
    .about-section { grid-template-columns: minmax(0, 1fr) minmax(0, 650px); }
    .about-body { width: 100%; max-width: 650px; }
    .about-body h3 { font-size: 26px; line-height: 1.5; margin: 24px 0 28px; }
    .about-body p { max-width: none; font-size: 18px; line-height: 1.75; }
  }
  @media (min-width: 1800px) { .hero-composition { width: 84%; max-width: 1680px; } }
  @media (max-width: 1020px) {
    :root { --header-height: 88px; }
    .site-header { gap: 20px; }
    .main-nav { gap: 21px; }
    .main-nav a { font-size: 13px; }
    .header-brand { flex-basis: 185px; }
    .header-brand-name { font-size: 18px; }
    .header-brand-caption { font-size: 9px; }
    .hero-composition { padding: 0; }
    .section { padding-top: 90px; padding-bottom: 90px; }
    .section-heading, .about-section, .contact-section, .practice-row { gap: 48px; }
    .practice-details { margin-left: calc(50% + 24px); }
  }
  @media (max-width: 760px) {
    :root { --header-height: 84px; }
    .site-header { gap: 14px; }
    .header-brand { flex-basis: 160px; }
    .header-brand-name { font-size: clamp(13px, 4vw, 16px); letter-spacing: .01em; }
    .header-brand-caption { font-size: 8px; letter-spacing: .15em; }
    .menu-toggle { display: block; width: 36px; padding: 10px 4px; }
    .main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; padding: 30px var(--gutter) 38px; background: #131411; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 30px 60px #0006; }
    .main-nav a { font-size: 22px; font-weight: 300; padding: 14px 0; }
    .main-nav a::after { right: auto; width: 28px; }
    .menu-open .main-nav { display: flex; }
    .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .header-actions { gap: 10px; flex-shrink: 0; }
    .language-switch { gap: 0; font-size: 12px; }
    .language-switch button { min-width: 28px; }
    .language-switch span { padding: 0 2px; }
    .hero { min-height: 640px; padding-top: var(--header-height); padding-bottom: 0; }
    .hero-art { display: none; }
    .hero-composition { max-width: 450px; transform: none; }
    .hero-art-mobile { display: grid; grid-template-columns: .24fr 1fr; column-gap: 34px; row-gap: 48px; align-items: center; }
    .hero-art-mobile svg { width: 100%; height: auto; overflow: visible; }
    .mobile-tagline { grid-column: 2; width: 78%; }
    .hero-bottom { bottom: 24px; padding-top: 20px; grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-caption { grid-column: 1 / -1; font-size: 12px; margin-bottom: 1px; }
    .discover-link { justify-self: start; }
    .discover-link, .replay-button { font-size: 12px; gap: 10px; }
    .section { padding-top: 76px; padding-bottom: 76px; }
    .about-section, .contact-section { grid-template-columns: 1fr; gap: 40px; }
    .section-heading { display: block; margin-bottom: 38px; }
    .section-heading .section-description { margin-top: 28px; max-width: 460px; }
    .eyebrow { margin-bottom: 18px; font-size: 12px; }
    .about-body h3 { margin-top: 25px; }
    .editorial-note { margin-top: 24px; }
    .practice-details { margin-left: 0; padding-bottom: 25px; }
    .practice-item > .practice-row > h3 { padding-right: 24px; }
    .practice-item > .practice-row::after { top: 28px; }
    .practice-row { grid-template-columns: 1fr; gap: 10px; padding: 25px 0; }
    .practice-row h3 { font-size: 25px; }
    .logo-carousel { --visible: min(2, var(--items)); }
    .logo-track .client-slot { min-height: 148px; padding: 24px 10px; }
    .social-body { grid-template-columns: 1fr; gap: 32px; }
    .social-logo { width: 100%; }
    .client-slot { min-height: 158px; padding: 28px 20px; }
    .client-visual { height: 70px; }
    .client-logo { height: 60px; }
    .client-logo--svoyi { width: min(172px, 138%); height: auto; transform: translateY(2px); }
    .client-logo--bodim { height: 92px; }
    .client-wordmark { font-size: clamp(15px, 4.4vw, 20px); letter-spacing: .035em; }
    .site-footer { grid-template-columns: 1fr auto; gap: 6px 20px; padding-top: 26px; padding-bottom: 26px; }
    .footer-copyright { grid-column: 1 / -1; }
    .footer-credit { grid-column: 1; grid-row: 2; justify-self: start; }
    .footer-back-top { grid-column: 2; grid-row: 2; justify-self: end; }
    html:not(.js) .main-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 10px 0; background: transparent; border: 0; box-shadow: none; }
    html:not(.js) .main-nav a { font-size: 14px; padding: 5px; }
    html:not(.js) .menu-toggle { display: none; }
    html:not(.js) .site-header { flex-wrap: wrap; height: auto; padding-top: 20px; }
  }
  @media (max-width: 360px) {
    .header-brand-caption { display: none; }
    .hero-art-mobile { column-gap: 24px; }
    .header-actions { gap: 8px; }
    .hero-bottom { column-gap: 8px; }
    .discover-link, .replay-button { font-size: 12px; gap: 6px; }
  }
  @media (max-height: 520px) and (min-width: 761px) {
    .hero { min-height: 520px; }
    .hero-composition { max-width: 1050px; }
  }
}
