/* Formal: the house style, set to a finished standard. Review copy only.
   Every rule is scoped to :root[data-style="formal"], so the site without a data-style is untouched.
   Identity kept: ivory paper, night navy, antique gold for rules and ornament, Cormorant Garamond only.
   The system in one line: capitals only on things you press; every other label is set in italic or plain case.
   No kicker labels over headings, no one-sided bars, no washes over photographs.
   Motion: the home page masthead enters once; the inner room's picture settles as it scrolls in; hover, press and focus answer quickly.
   Everything that moves rests under prefers-reduced-motion. */

/* Tokens --------------------------------------------------------------------------------------------- */
:root[data-style="formal"] {
  --hdr: 84px;
  --f-ease: cubic-bezier(.23, 1, .32, 1);
  --f-ease-io: cubic-bezier(.77, 0, .175, 1);
  --f-line: #CDBE9C;
  --f-shadow: 0 1px 2px rgba(22, 20, 45, .05), 0 22px 40px -24px rgba(22, 20, 45, .34);
  --f-shadow-lg: 0 1px 2px rgba(22, 20, 45, .06), 0 40px 70px -36px rgba(11, 10, 39, .45);
  accent-color: var(--navy);
  caret-color: var(--navy);
  scrollbar-color: var(--rule-2) var(--ivory);
  interpolate-size: allow-keywords;
}
:root[data-style="formal"] body { font-size: 20px; line-height: 1.62; font-kerning: normal; }
:root[data-style="formal"] ::selection { background: var(--navy); color: var(--on-night); }
:root[data-style="formal"] .night ::selection, :root[data-style="formal"] .ftr ::selection, :root[data-style="formal"] .card--night ::selection, :root[data-style="formal"] .tile--book ::selection { background: var(--gold-lite); color: var(--night); }

/* Focus: one ring everywhere, navy on paper and gold on night */
:root[data-style="formal"] :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
:root[data-style="formal"] .night :focus-visible, :root[data-style="formal"] .ftr :focus-visible, :root[data-style="formal"] .card--night :focus-visible, :root[data-style="formal"] .util :focus-visible, :root[data-style="formal"] .tool__out :focus-visible { outline-color: var(--gold-lite); }
:root[data-style="formal"] .skip { padding: 14px 20px; font-size: 17px; }

/* Type ------------------------------------------------------------------------------------------------ */
:root[data-style="formal"] h1, :root[data-style="formal"] h2, :root[data-style="formal"] h3, :root[data-style="formal"] h4 { font-weight: 500; }
:root[data-style="formal"] .display { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.018em; }
:root[data-style="formal"] .h1 { font-size: clamp(2.5rem, 4.6vw, 4.35rem); line-height: 1.03; letter-spacing: -.015em; }
:root[data-style="formal"] .h2 { font-size: clamp(2.15rem, 3.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.012em; }
:root[data-style="formal"] .h3 { font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.14; letter-spacing: -.004em; }
:root[data-style="formal"] .h4 { font-size: 1.35rem; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
:root[data-style="formal"] .lede { font-size: clamp(1.25rem, 1.6vw, 1.42rem); line-height: 1.52; color: var(--ink-2); }
:root[data-style="formal"] .night .lede { color: var(--on-night-2); }
:root[data-style="formal"] .head { gap: 20px; }
:root[data-style="formal"] .prose { gap: 1.1em; }
:root[data-style="formal"] .prose h2 { margin-top: 1.1em; font-size: clamp(1.75rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.008em; }

/* Small labels that sat over headings: kept out of sight, as the build already does for .kick */
:root[data-style="formal"] .tile__meta { display: none; }
/* Group labels inside menus: quiet italic, not tracked capitals */
:root[data-style="formal"] .kick { font-size: 17px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; line-height: 1.35; color: var(--muted); }
:root[data-style="formal"] .night .kick { color: var(--on-night-3); }

/* Links in running text: a hairline that darkens on hover */
:root[data-style="formal"] .prose a, :root[data-style="formal"] .lede a, :root[data-style="formal"] .qa__a a, :root[data-style="formal"] .situ dd a, :root[data-style="formal"] .docs a, :root[data-style="formal"] .plain a, :root[data-style="formal"] .table a {
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule-2);
  transition: text-decoration-color .2s ease, color .2s ease; }
:root[data-style="formal"] .prose a:hover, :root[data-style="formal"] .lede a:hover, :root[data-style="formal"] .qa__a a:hover, :root[data-style="formal"] .situ dd a:hover, :root[data-style="formal"] .docs a:hover, :root[data-style="formal"] .plain a:hover, :root[data-style="formal"] .table a:hover { text-decoration-color: var(--navy); color: var(--navy); }

/* Rooms ----------------------------------------------------------------------------------------------- */
:root[data-style="formal"] .room { padding-block: clamp(80px, 10vw, 152px); }
:root[data-style="formal"] .room--tight { padding-block: clamp(60px, 6.5vw, 96px); }
:root[data-style="formal"] .gap-l { margin-top: clamp(44px, 5vw, 76px); }
/* Two plain ivory rooms in a row share one gap instead of stacking two */
:root[data-style="formal"] .room--tight:not(.vellum):not(.night) + .room:not(.vellum):not(.night) { padding-top: clamp(24px, 3vw, 48px); }

/* Ornament: the guilloche kept, finer */
:root[data-style="formal"] .guil-band { height: 20px; opacity: .42; }
:root[data-style="formal"] .guil-band--top, :root[data-style="formal"] .guil-band--bottom, :root[data-style="formal"] .chamber .guil-band--top, :root[data-style="formal"] .closer .guil-band--top { height: 18px; opacity: .42; }
:root[data-style="formal"] .chamber .guil { opacity: .1; }
:root[data-style="formal"] .closer .guil { opacity: .075; }

/* Buttons --------------------------------------------------------------------------------------------- */
:root[data-style="formal"] .btn {
  min-height: 52px; padding: 14px 24px; border: 1px solid var(--navy); border-radius: 0;
  font-size: 13.5px; font-weight: 650; letter-spacing: .14em; line-height: 1.2;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .25s ease, transform .18s var(--f-ease); }
:root[data-style="formal"] .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--on-night); }
:root[data-style="formal"] .btn:active { transform: scale(.98); transition-duration: .08s; }
:root[data-style="formal"] .btn--ink { background: var(--navy); color: var(--on-night); }
:root[data-style="formal"] .btn--ink:hover { background: var(--night); border-color: var(--night); color: var(--on-night); }
:root[data-style="formal"] .btn--sm { min-height: 44px; padding: 11px 18px; font-size: 12.5px; letter-spacing: .14em; }
:root[data-style="formal"] .night .btn { border-color: rgba(241, 234, 218, .55); color: var(--on-night); background: transparent; }
:root[data-style="formal"] .night .btn:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
:root[data-style="formal"] .night .btn--ivory { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
:root[data-style="formal"] .night .btn--ivory:hover { background: var(--gold-lite); border-color: var(--gold-lite); color: var(--night); }
:root[data-style="formal"] .btns { gap: 14px 16px; }

/* The arrow link: a rule that draws in navy over a quiet hairline */
:root[data-style="formal"] .more {
  gap: 12px; min-height: 44px; align-items: flex-end; padding-bottom: 7px; border-bottom: 0; font-size: 13.5px; font-weight: 650; letter-spacing: .15em; color: var(--navy);
  background: linear-gradient(var(--navy), var(--navy)) left bottom / 0 1px no-repeat, linear-gradient(var(--f-line), var(--f-line)) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--f-ease), color .2s ease; }
:root[data-style="formal"] .more:hover { background-size: 100% 1px, 100% 1px; }
:root[data-style="formal"] .more svg { margin-bottom: 3px; transition: transform .3s var(--f-ease); }
:root[data-style="formal"] .night .more { color: var(--on-night); background-image: linear-gradient(var(--gold-lite), var(--gold-lite)), linear-gradient(var(--night-rule), var(--night-rule)); }

/* Utility bar and header ------------------------------------------------------------------------------ */
:root[data-style="formal"] .util { font-size: 14.5px; }
:root[data-style="formal"] .util__in { min-height: 44px; }
:root[data-style="formal"] .util p { letter-spacing: .02em; color: var(--on-night-2); }
:root[data-style="formal"] .util a { min-height: 44px; transition: color .2s ease; }
:root[data-style="formal"] .hdr { background: var(--ivory); border-bottom-color: var(--rule); }
:root[data-style="formal"] .hdr__in { gap: 24px; }
:root[data-style="formal"] .brand { gap: 14px; min-height: 48px; }
:root[data-style="formal"] .brand__name { font-size: 24px; font-weight: 600; letter-spacing: .005em; }
:root[data-style="formal"] .brand__sub { margin-top: 6px; font-size: 14.5px; font-weight: 500; font-style: italic; letter-spacing: .01em; text-transform: none; color: var(--gold-ink); }
:root[data-style="formal"] .nav__list { gap: 0; }
:root[data-style="formal"] .nav__a {
  position: relative; padding: 0 15px; border-bottom: 0;
  font-size: 18.5px; font-weight: 500; letter-spacing: .005em; text-transform: none; color: var(--ink); transition: color .2s ease; }
:root[data-style="formal"] .nav__a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: calc(50% - 17px); height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--f-ease); }
:root[data-style="formal"] .nav__a[aria-current]::after { transform: scaleX(1); }
:root[data-style="formal"] .nav__item:hover > .nav__a, :root[data-style="formal"] .nav__item:focus-within > .nav__a { color: var(--navy); }
:root[data-style="formal"] .nav__item:hover > .nav__a::after, :root[data-style="formal"] .nav__item:focus-within > .nav__a::after { transform: scaleX(1); background: var(--navy); }
:root[data-style="formal"] .nav__a[aria-current] { color: var(--navy); }

/* Menus: a card on the paper, with a soft offset shadow and a short entrance */
:root[data-style="formal"] .mega {
  top: calc(100% + 1px); padding: 28px 30px 30px; border: 1px solid var(--rule); border-top: 1px solid var(--rule); background: var(--card);
  box-shadow: var(--f-shadow-lg); transition: opacity .2s var(--f-ease), translate .24s var(--f-ease); }
@starting-style { :root[data-style="formal"] .mega { opacity: 0; translate: 0 -6px; } }
:root[data-style="formal"] .mega__h { display: block; margin-bottom: 8px; }
:root[data-style="formal"] .mega__list a { padding: 12px 0; }
:root[data-style="formal"] .mega__list a b { font-size: 19.5px; font-weight: 600; transition: color .2s ease; }
:root[data-style="formal"] .mega__list a span { font-size: 16px; }
:root[data-style="formal"] .mega__list a:hover b { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:root[data-style="formal"] .mega__feature { padding-left: 30px; }
:root[data-style="formal"] .mega__feature b { font-size: 25px; font-weight: 500; transition: color .2s ease; }
:root[data-style="formal"] .mega__feature:hover b { color: var(--navy); }
:root[data-style="formal"] .mega__note { font-size: 16.5px; }
:root[data-style="formal"] .hdr__search { min-height: 44px; border-color: var(--rule); transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
:root[data-style="formal"] .hdr__search:hover { border-color: var(--navy); color: var(--navy); background: var(--card); }
:root[data-style="formal"] .hdr__search kbd { border-color: var(--rule); }

/* Mobile menu */
:root[data-style="formal"] .mnav summary.btn { min-height: 44px; }
:root[data-style="formal"] .mnav__panel { padding-top: 8px; border-top-color: var(--rule); }
:root[data-style="formal"] .mnav__group { padding: 18px 0; }
:root[data-style="formal"] .mnav__group .kick { display: block; margin-bottom: 4px; }
:root[data-style="formal"] .mnav__group a { min-height: 48px; font-size: 22px; transition: color .2s ease; }
:root[data-style="formal"] .mnav__group a:hover { color: var(--navy); }
:root[data-style="formal"] .mnav__panel .btn { margin-top: 28px; }

/* Home masthead: the headline on the paper, the photograph whole below it, nothing laid over the picture --- */
:root[data-style="formal"] .hero { padding-block: clamp(44px, 5.5vw, 88px) 0; border-bottom: 0; }
:root[data-style="formal"] .hero > .wrap {
  display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); grid-template-rows: 1fr auto; column-gap: clamp(36px, 5.5vw, 96px); align-items: end; }
:root[data-style="formal"] .hero__photo, :root[data-style="formal"] .hero__below { display: contents; background: none; }
:root[data-style="formal"] .hero__photo::after { content: none; }
:root[data-style="formal"] .hero__photo h1 {
  position: static; grid-column: 1; grid-row: 1; max-width: 13.5em; margin: 0;
  color: var(--ink); text-shadow: none; font-size: clamp(2.6rem, 4.9vw, 4.9rem); line-height: 1.02; letter-spacing: -.02em; }
:root[data-style="formal"] .hero__below > div:first-child { grid-column: 1; grid-row: 2; margin-top: clamp(16px, 1.6vw, 24px); }
:root[data-style="formal"] .hero .motto { padding: 0; border: 0; font-size: clamp(1.55rem, 2.1vw, 2.05rem); line-height: 1.2; color: var(--navy); }
:root[data-style="formal"] .hero__side { grid-column: 2; grid-row: 1 / span 2; align-self: end; gap: 28px; padding-bottom: 6px; }
:root[data-style="formal"] .hero__side .lede { max-width: 30em; }
:root[data-style="formal"] .hero__photo img {
  position: static; inset: auto; grid-column: 1 / -1; grid-row: 3; width: 100%; height: auto; aspect-ratio: 2 / 1;
  margin-top: clamp(44px, 5vw, 76px); object-fit: cover; background: var(--vellum); }
/* The credentials strip repeats the utility bar and the lede, and under a photograph it reads as a caption: left out here */
:root[data-style="formal"] .hero .creds { display: none; }

/* Front page: the firm beside the index of practice areas ------------------------------------------------ */
:root[data-style="formal"] .front { gap: clamp(48px, 7vw, 128px); }
:root[data-style="formal"] .front__firm { gap: 24px; }
:root[data-style="formal"] .front__firm > p { color: var(--ink-2); }
:root[data-style="formal"] .ledger { gap: 10px 44px; margin-top: 16px; padding-top: 26px; border-top-color: var(--rule); }
:root[data-style="formal"] .ledger b { font-size: 2.75rem; font-weight: 500; letter-spacing: -.01em; }
:root[data-style="formal"] .ledger span { margin-top: 8px; font-size: 16px; font-style: italic; }
:root[data-style="formal"] .index { gap: 44px; }
:root[data-style="formal"] .index__group > h2, :root[data-style="formal"] .index__group > h3 { padding-bottom: 14px; border-bottom: 1px solid var(--navy); font-style: italic; font-weight: 500; color: var(--navy); }
:root[data-style="formal"] .index__group > h3 { font-size: 1.4rem; }
:root[data-style="formal"] .index__list { column-gap: 40px; }
:root[data-style="formal"] .index__list a {
  align-content: start; gap: 6px; padding: 20px 0 22px; border-bottom: 0;
  background: linear-gradient(var(--navy), var(--navy)) left bottom / 0 1px no-repeat, linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--f-ease); }
:root[data-style="formal"] .index__list a b { align-items: center; font-size: 1.5rem; font-weight: 500; letter-spacing: -.004em; transition: color .2s ease; }
:root[data-style="formal"] .index__list a b::after,
:root[data-style="formal"] .reading a::after,
:root[data-style="formal"] .others a::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-top: 1.25px solid var(--gold); border-right: 1.25px solid var(--gold);
  font-size: 0; color: transparent; transform: rotate(45deg); transition: transform .3s var(--f-ease), border-color .2s ease; }
:root[data-style="formal"] .index__list a span { font-size: 17px; color: var(--muted); }
:root[data-style="formal"] .index__list a:hover { background-size: 100% 1px, 100% 1px; }
:root[data-style="formal"] .index__list a:hover b { color: var(--navy); }
:root[data-style="formal"] .index__list a:hover b::after, :root[data-style="formal"] .reading a:hover::after, :root[data-style="formal"] .others a:hover::after { transform: translateX(4px) rotate(45deg); border-color: var(--navy); }

/* The inner room (night) -------------------------------------------------------------------------------- */
:root[data-style="formal"] .chamber { padding-block: clamp(96px, 11vw, 168px); }
:root[data-style="formal"] .chamber__grid { gap: clamp(48px, 7vw, 128px); }
:root[data-style="formal"] .arch--frame { padding: 12px; border-color: rgba(221, 186, 106, .5); }
:root[data-style="formal"] .chamber__text { gap: 26px; }
:root[data-style="formal"] .chamber__text .btns { margin-top: 10px; }
:root[data-style="formal"] .numerals { column-gap: 36px; }
:root[data-style="formal"] .numerals li { padding: 14px 0; grid-template-columns: 46px 1fr; font-size: 18.5px; }
:root[data-style="formal"] .numerals li::before { color: var(--gold-lite); font-size: 18.5px; }
:root[data-style="formal"] .affil { gap: 40px; margin-top: clamp(64px, 7vw, 104px); padding-top: 36px; }
:root[data-style="formal"] .affil h3 { margin: 0 0 10px; font-size: 1.5rem; color: var(--on-night); }
:root[data-style="formal"] .affil p { font-size: 17.5px; }
:root[data-style="formal"] .chamber .fine { margin-top: 28px !important; font-size: 15.5px; font-style: italic; }

/* Portraits ---------------------------------------------------------------------------------------------- */
:root[data-style="formal"] .gallery { gap: clamp(48px, 6vw, 112px); }
:root[data-style="formal"] .portraits { gap: 32px; }
:root[data-style="formal"] .portrait { gap: 16px; }
:root[data-style="formal"] .portrait .arch img { transition: transform .8s var(--f-ease); }
:root[data-style="formal"] .portrait span { margin-top: 0; font-size: 17px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--muted); }
:root[data-style="formal"] .portrait b { font-size: 1.55rem; font-weight: 500; font-style: normal; transition: color .2s ease; }
:root[data-style="formal"] .portrait span span { margin-top: 4px; }
:root[data-style="formal"] .portrait:hover b { color: var(--navy); }

/* Journal ------------------------------------------------------------------------------------------------ */
:root[data-style="formal"] .journal { gap: 32px; }
:root[data-style="formal"] .tile { gap: 12px; }
:root[data-style="formal"] .tile h3 { font-size: 1.7rem; line-height: 1.12; letter-spacing: -.006em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .25s ease; }
:root[data-style="formal"] .tile:hover h3 { color: var(--navy); text-decoration-color: var(--gold); }
:root[data-style="formal"] .tile p { font-size: 17.5px; color: var(--muted); }
:root[data-style="formal"] .tile > img { margin-bottom: 6px; clip-path: inset(0); transition: transform .7s var(--f-ease), clip-path .7s var(--f-ease); }
:root[data-style="formal"] .tile--book { padding: clamp(32px, 3.4vw, 48px); }
:root[data-style="formal"] .tile--book h3 { font-size: 2.3rem; color: var(--on-night); }
:root[data-style="formal"] .tile--book p { color: var(--on-night-2); }
:root[data-style="formal"] .tile--book:hover h3 { color: var(--on-night); text-decoration-color: var(--gold-lite); }
:root[data-style="formal"] .tile--book .cover img { transition: transform .5s var(--f-ease), box-shadow .5s var(--f-ease); }
:root[data-style="formal"] .tile--a { column-gap: 32px; }
:root[data-style="formal"] .tile--motto { background: var(--card); border-color: var(--rule); }
:root[data-style="formal"] .tile--motto blockquote { font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.01em; }
:root[data-style="formal"] .tile--tool {
  gap: 10px; padding: clamp(26px, 2.6vw, 36px); border: 1px solid var(--rule); border-top: 1px solid var(--rule); background: var(--card);
  transition: transform .3s var(--f-ease), box-shadow .3s var(--f-ease), border-color .2s ease; }
:root[data-style="formal"] .tile--tool h3 { font-size: 1.55rem; }
:root[data-style="formal"] .tile--tool:hover { border-color: var(--rule-2); }
:root[data-style="formal"] .watch { gap: 16px; transition: color .2s ease; }
:root[data-style="formal"] .watch i { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
:root[data-style="formal"] .watch:hover i { background: var(--navy); border-color: var(--navy); color: var(--on-night); }

/* Questions and the way in --------------------------------------------------------------------------------- */
:root[data-style="formal"] .counsel { gap: clamp(48px, 7vw, 128px); }
:root[data-style="formal"] .qa { border-top-color: var(--navy); }
:root[data-style="formal"] .qa details { border-bottom-color: var(--rule); }
:root[data-style="formal"] .qa summary { padding: 24px 0; min-height: 44px; }
:root[data-style="formal"] .qa summary h3 { font-size: clamp(1.35rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.24; transition: color .2s ease; }
:root[data-style="formal"] .qa summary::after { width: 10px; height: 10px; margin-top: 11px; margin-right: 4px; border-right-width: 1.25px; border-bottom-width: 1.25px; transition: transform .35s var(--f-ease), margin .35s var(--f-ease); }
:root[data-style="formal"] .qa details[open] summary::after { margin-top: 16px; }
:root[data-style="formal"] .qa details::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--f-ease), content-visibility .4s allow-discrete; }
:root[data-style="formal"] .qa details[open]::details-content { block-size: auto; }
:root[data-style="formal"] .qa__a { padding-bottom: 28px; display: grid; gap: .8em; }
:root[data-style="formal"] .qa__link { margin-top: 2px; font-size: 15px; letter-spacing: .02em; font-style: italic; }
:root[data-style="formal"] .qa__link a { text-underline-offset: 4px; }
:root[data-style="formal"] .card { padding: clamp(28px, 3vw, 40px); border-color: var(--rule); background: var(--card); }
:root[data-style="formal"] .card + .card { margin-top: 20px; }
:root[data-style="formal"] .card h2, :root[data-style="formal"] .card h3 { margin-bottom: 16px; }
:root[data-style="formal"] .card--night { border-color: var(--night); background: var(--night); }
:root[data-style="formal"] .lines .tel { display: inline-flex; align-items: center; min-height: 48px; font-size: 2.15rem; letter-spacing: -.005em; }
:root[data-style="formal"] .keys a { min-height: 48px; padding: 10px 0; transition: color .2s ease; }
:root[data-style="formal"] .keys a span { color: var(--gold-ink); transition: transform .3s var(--f-ease); }
:root[data-style="formal"] .card--night .keys a span { color: var(--gold-lite); }
:root[data-style="formal"] .keys a:hover span { transform: translateX(3px); }

/* Closing invitation --------------------------------------------------------------------------------------- */
:root[data-style="formal"] .closer { padding-block: clamp(104px, 12vw, 176px); }
:root[data-style="formal"] .closer__in { gap: 28px; }
:root[data-style="formal"] .closer h2 { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
:root[data-style="formal"] .closer__lines { gap: 8px 32px; font-size: 18px; }
:root[data-style="formal"] .closer__lines a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
:root[data-style="formal"] .closer__lines a:hover { text-decoration-color: var(--gold-lite); }

/* Footer --------------------------------------------------------------------------------------------------- */
:root[data-style="formal"] .ftr__top { gap: 44px clamp(32px, 4vw, 72px); padding-block: clamp(64px, 7vw, 104px) 48px; }
:root[data-style="formal"] .ftr .brand__sub { color: var(--gold-lite); }
:root[data-style="formal"] .ftr__motto { margin: 24px 0 20px; font-size: 1.7rem; }
:root[data-style="formal"] .ftr h2 { margin-bottom: 14px; font-size: 20px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--gold-lite); }
:root[data-style="formal"] .ftr__col a { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: 17.5px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s ease, text-decoration-color .2s ease; }
:root[data-style="formal"] .ftr__col a:hover, :root[data-style="formal"] .ftr__lines a:hover, :root[data-style="formal"] .ftr__base a:hover { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--gold-lite); text-underline-offset: 5px; }
:root[data-style="formal"] .ftr__base { padding-block: 24px 36px; font-size: 15.5px; }

/* Contact panel and search ----------------------------------------------------------------------------------- */
:root[data-style="formal"] .talk__btn { border-color: rgba(221, 186, 106, .45); transition: background-color .2s ease, transform .18s var(--f-ease), box-shadow .25s ease; }
:root[data-style="formal"] .talk__btn:active { transform: scale(.97); }
:root[data-style="formal"] .talk__panel { border-top: 1px solid var(--rule); box-shadow: var(--f-shadow-lg); transform-origin: 100% 100%; transition: opacity .22s var(--f-ease), transform .26s var(--f-ease); }
@starting-style { :root[data-style="formal"] .talk__panel { opacity: 0; transform: translateY(8px) scale(.98); } }
:root[data-style="formal"] .talk__close { width: 44px; height: 44px; top: 8px; right: 8px; }
:root[data-style="formal"] .talk__opt { transition: background-color .2s ease; }
:root[data-style="formal"] .talk__opt:hover { background: var(--ivory); }
:root[data-style="formal"] .search { border-top: 1px solid var(--rule); box-shadow: var(--f-shadow-lg); }
:root[data-style="formal"] .search__close { min-height: 36px; border-color: var(--rule); }
:root[data-style="formal"] .search__results a { transition: background-color .15s ease; }

/* Interior pages ------------------------------------------------------------------------------------------- */
:root[data-style="formal"] .phead { padding-block: clamp(44px, 5.5vw, 80px) clamp(56px, 6.5vw, 96px); border-bottom-color: var(--rule); }
:root[data-style="formal"] .phead__text { gap: 24px; }
:root[data-style="formal"] .phead .arch { box-shadow: none; }
:root[data-style="formal"] .crumbs ol { font-size: 15.5px; }
:root[data-style="formal"] .crumbs li + li::before { margin: 0 10px; color: var(--rule-2); }
:root[data-style="formal"] .crumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
:root[data-style="formal"] .crumbs a:hover { color: var(--navy); text-decoration-color: var(--gold); }

:root[data-style="formal"] .local { background: var(--ivory); }
:root[data-style="formal"] .local__in { gap: 2px; }
:root[data-style="formal"] .local a { min-height: 54px; padding: 0 16px; font-size: 17.5px; font-weight: 500; letter-spacing: .005em; text-transform: none; color: var(--muted); border-bottom-width: 1px; transition: color .2s ease, border-color .2s ease; }
:root[data-style="formal"] .local a:first-child { padding-left: 0; }
:root[data-style="formal"] .local a:hover { color: var(--navy); border-bottom-color: var(--rule-2); }
:root[data-style="formal"] .local a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--gold); }

:root[data-style="formal"] .doc { padding-block: clamp(56px, 6.5vw, 104px); align-items: start; }
:root[data-style="formal"] .doc__main { align-content: start; gap: clamp(64px, 7vw, 104px); }
:root[data-style="formal"] .doc__main > section { align-content: start; gap: 24px; }
:root[data-style="formal"] .doc__side { align-content: start; }

/* "In plain terms": a ruled statement with a run-in head, not a panel with a bar down one side */
:root[data-style="formal"] .plain { padding: 22px 0 24px; border: 0; border-block: 1px solid var(--f-line); background: none; font-size: 1.28rem; line-height: 1.5; color: var(--ink); }
:root[data-style="formal"] .plain b { display: inline; margin: 0; font-size: inherit; font-weight: 600; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--navy); }
:root[data-style="formal"] .plain b::after { content: ".\00a0"; }

:root[data-style="formal"] .situ { gap: 0 44px; border-top-color: var(--rule); }
:root[data-style="formal"] .situ div { padding: 22px 0 24px; }
:root[data-style="formal"] .situ dt { font-size: 1.38rem; font-weight: 600; }
:root[data-style="formal"] .docs li { padding: 22px 0; }
:root[data-style="formal"] .docs b { font-weight: 600; }
:root[data-style="formal"] .facts div { padding: 13px 0; }
:root[data-style="formal"] .facts dt { font-size: 16px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
:root[data-style="formal"] .facts dd { font-size: 18px; }
:root[data-style="formal"] .who span { margin-top: 2px; font-size: 15.5px; font-style: italic; letter-spacing: 0; text-transform: none; }
:root[data-style="formal"] .who a { min-height: 52px; }
:root[data-style="formal"] .who b { font-style: normal; transition: color .2s ease; }
:root[data-style="formal"] .reading a, :root[data-style="formal"] .others a { align-items: center; transition: color .2s ease; }
:root[data-style="formal"] .watch i, :root[data-style="formal"] .videos a i { border-color: var(--rule-2); }

:root[data-style="formal"] .table { border-top-color: var(--navy); }
:root[data-style="formal"] .table caption { font-size: 17px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
:root[data-style="formal"] .table thead th { font-size: 16px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--ink-2); }

:root[data-style="formal"] .guide { border-top-color: var(--navy); }
:root[data-style="formal"] .guide a { padding: 22px 0; transition: color .2s ease; }
:root[data-style="formal"] .guide__a { font-size: 13px; letter-spacing: .15em; transition: transform .3s var(--f-ease); }
:root[data-style="formal"] .guide a:hover .guide__a { transform: translateX(3px); }

:root[data-style="formal"] .diagram { border-color: var(--rule); }
:root[data-style="formal"] .path { border-top-color: var(--navy); }
:root[data-style="formal"] .path li::before { font-size: 1.2rem; }

:root[data-style="formal"] .tool { padding: clamp(28px, 3vw, 44px); border: 1px solid var(--rule); border-top: 1px solid var(--rule); }
:root[data-style="formal"] .tool > .kick { display: none; }
:root[data-style="formal"] .tool__out { padding: 26px 28px; }

:root[data-style="formal"] .consults { gap: 24px; }
:root[data-style="formal"] .consult { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: clamp(28px, 3vw, 40px); border-color: var(--rule); transition: border-color .2s ease, box-shadow .3s var(--f-ease); }
:root[data-style="formal"] .consult__side { justify-items: start; padding-left: 0; border-left: 0; }
:root[data-style="formal"] .consult__side .btn { margin-top: 0; }
:root[data-style="formal"] .consult__for { font-size: 19px; }
:root[data-style="formal"] .consult:target { border-color: var(--navy); box-shadow: var(--f-shadow); }

:root[data-style="formal"] .form { gap: 24px; }
:root[data-style="formal"] .field label, :root[data-style="formal"] .field legend { font-size: 16.5px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--ink-2); }
:root[data-style="formal"] .field input, :root[data-style="formal"] .field select, :root[data-style="formal"] .field textarea { border-color: #8A7650; background: var(--card); transition: border-color .2s ease, box-shadow .2s ease; }
:root[data-style="formal"] .field input:hover, :root[data-style="formal"] .field select:hover, :root[data-style="formal"] .field textarea:hover { border-color: var(--navy); }
:root[data-style="formal"] .field input:focus, :root[data-style="formal"] .field select:focus, :root[data-style="formal"] .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
:root[data-style="formal"] .field input::placeholder, :root[data-style="formal"] .field textarea::placeholder { color: var(--muted); opacity: 1; }
:root[data-style="formal"] .form__review { padding: 18px 22px; }
:root[data-style="formal"] .choice { min-height: 44px; }

:root[data-style="formal"] .team-row { gap: 14px 32px; }
:root[data-style="formal"] .team-row a { min-height: 56px; transition: color .2s ease; }
:root[data-style="formal"] .team-row img { background: var(--vellum); }
:root[data-style="formal"] .topics { gap: 44px 56px; }
:root[data-style="formal"] .topic h3 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s ease, text-decoration-color .2s ease; }
:root[data-style="formal"] .topic h3 a:hover { color: var(--navy); text-decoration-color: var(--gold); }
:root[data-style="formal"] .byline { border-top-color: var(--rule); }
:root[data-style="formal"] .toc a { transition: color .2s ease; }
:root[data-style="formal"] .share { min-height: 44px; padding: 6px 16px; border-color: var(--rule-2); transition: border-color .2s ease, background-color .2s ease; }
:root[data-style="formal"] .share:hover { border-color: var(--navy); background: var(--card); }
:root[data-style="formal"] .cover-lg { box-shadow: 0 2px 4px rgba(22, 20, 45, .08), 0 40px 70px -34px rgba(22, 20, 45, .6); }
:root[data-style="formal"] .videos a i { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
:root[data-style="formal"] .found span { font-size: 15px; font-style: italic; letter-spacing: 0; text-transform: none; }
:root[data-style="formal"] .vcard { text-underline-offset: 4px; }

/* Hover: lifts and zooms only where a fine pointer can hover ---------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  :root[data-style="formal"] .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -16px rgba(13, 11, 87, .6); }
  :root[data-style="formal"] .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
  :root[data-style="formal"] .night .btn:hover { box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .7); }
  :root[data-style="formal"] .more:hover svg { transform: translateX(4px); }
  :root[data-style="formal"] .portrait:hover .arch img { transform: scale(1.03); }
  :root[data-style="formal"] .tile:not(.tile--motto):hover > img { transform: scale(1.03); clip-path: inset(1.456%); }
  :root[data-style="formal"] .tile--book:hover .cover img { transform: translateY(-4px); box-shadow: 0 46px 60px -26px rgba(0, 0, 0, .85); }
  :root[data-style="formal"] .tile--tool:hover { transform: translateY(-2px); box-shadow: var(--f-shadow); }
  :root[data-style="formal"] .talk__btn:hover { box-shadow: 0 22px 44px -18px rgba(11, 10, 39, .7); }
}

/* The two moments. The masthead settles once on load, from a state that is already visible (so a paused or slow page never shows a blank hero):
   the type rises a few pixels, the photograph eases out of a slight zoom inside its own frame.
   The inner room's picture settles the same way as it scrolls into view. */
@keyframes dlgf-rise { from { transform: translateY(18px); } }
@keyframes dlgf-settle-in { from { transform: scale(1.06); clip-path: inset(2.83%); } to { transform: none; clip-path: inset(0); } }
@keyframes dlgf-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="formal"] .hero__photo h1 { animation: dlgf-rise 1s var(--f-ease) both; }
  :root[data-style="formal"] .hero__below > div:first-child { animation: dlgf-rise 1s var(--f-ease) .07s both; }
  :root[data-style="formal"] .hero__side { animation: dlgf-rise 1s var(--f-ease) .14s both; }
  :root[data-style="formal"] .hero__photo img { animation: dlgf-settle-in 1.8s var(--f-ease) .05s both; }
  @supports (animation-timeline: view()) {
    :root[data-style="formal"] .chamber .arch--frame img { animation: dlgf-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-style="formal"] *, :root[data-style="formal"] *::before, :root[data-style="formal"] *::after { transition: none !important; animation: none !important; }
  :root[data-style="formal"] .mega, :root[data-style="formal"] .talk__panel { opacity: 1; translate: none; transform: none; }
}

/* Touch and narrow screens --------------------------------------------------------------------------------------- */
@media (max-width: 1260px) {
  :root[data-style="formal"] .hdr__in { gap: 14px; }
}
@media (min-width: 1261px) and (max-width: 1480px) {
  :root[data-style="formal"] .nav__a { padding: 0 11px; font-size: 18px; letter-spacing: 0; }
  :root[data-style="formal"] .nav__a::after { left: 11px; right: 11px; }
  :root[data-style="formal"] .hdr__cta { padding: 10px 14px; letter-spacing: .12em; }
}
@media (max-width: 1024px), (pointer: coarse) {
  :root[data-style="formal"] .crumbs ol { gap: 0; }
  :root[data-style="formal"] .crumbs li { display: flex; align-items: center; min-height: 44px; }
  :root[data-style="formal"] .ftr__col a, :root[data-style="formal"] .ftr__lines a, :root[data-style="formal"] .toc a, :root[data-style="formal"] .crumbs a, :root[data-style="formal"] .closer__lines a, :root[data-style="formal"] .qa__link a, :root[data-style="formal"] .vcard, :root[data-style="formal"] .lines a, :root[data-style="formal"] .ftr__base a { display: inline-flex; align-items: center; min-height: 44px; }
  :root[data-style="formal"] .reading a, :root[data-style="formal"] .others a, :root[data-style="formal"] .found a { min-height: 52px; }
  :root[data-style="formal"] .card h2 > a, :root[data-style="formal"] .card h3 > a, :root[data-style="formal"] .topic h3 > a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
  :root[data-style="formal"] .hero > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  :root[data-style="formal"] .hero__photo h1 { grid-column: 1; grid-row: 1; }
  :root[data-style="formal"] .hero__photo img { grid-row: 2; margin-top: 28px; }
  :root[data-style="formal"] .hero__below > div:first-child { grid-row: 3; margin-top: 26px; }
  :root[data-style="formal"] .hero__side { grid-column: 1; grid-row: 4; margin-top: 18px; gap: 24px; }
}
@media (max-width: 760px) {
  :root[data-style="formal"] .hero { padding-block: 28px 64px; }
  :root[data-style="formal"] .hero__photo h1 { font-size: clamp(2.35rem, 9.6vw, 3rem); line-height: 1.04; }
  :root[data-style="formal"] .hero__photo img { aspect-ratio: 4 / 3; object-position: 52% 40%; }
  :root[data-style="formal"] .consult__side { padding-top: 0; border-top: 0; justify-items: stretch; }
}
@media (max-width: 640px) {
  :root[data-style="formal"] .btns { flex-direction: column; align-items: stretch; }
  :root[data-style="formal"] .btns .btn { width: 100%; }
  :root[data-style="formal"] .btn { padding-inline: 16px; letter-spacing: .12em; }
  :root[data-style="formal"] .consult, :root[data-style="formal"] .card { padding: 26px 22px 28px; }
  :root[data-style="formal"] .brand__name { font-size: 21px; }
  :root[data-style="formal"] .hdr__in { gap: 10px; }
  :root[data-style="formal"] .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
  :root[data-style="formal"] .ledger b { font-size: 2.3rem; }
  :root[data-style="formal"] .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  :root[data-style="formal"] .portrait b { font-size: 1.3rem; }
  :root[data-style="formal"] .portrait span { font-size: 15.5px; }
  :root[data-style="formal"] .index__list a b { font-size: 1.4rem; }
  :root[data-style="formal"] .tile--motto div { padding: 28px 24px 32px; }
}

/* Social links page: the accounts sit right below the title, as in the house style */
:root[data-style="formal"] .phead:has(+ .socroom) { padding-bottom: 0; border-bottom: 0; }
:root[data-style="formal"] .socroom { padding-top: clamp(24px, 3vw, 36px); }
