/*
  Civility Media Newswire additions to the Fellgate template (template.css).
  Uses Fellgate's own tokens, type styles (m-text-*) and parts (m-btn, m-link, m-field, hairline cells).
*/
@layer tokens, base, atoms, layout, sections, scenes, cmn;

@layer cmn {
:root { --gold-ink: #8A6A3A; }  /* gold dark enough for text on white (4.9:1) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-2); color: var(--color-1); }
.skip:focus { top: 12px; }

/* gold accent: shapes and fills stay Signature Gold; text in the accent uses the deeper gold */
.m-text-5 { color: var(--gold-ink); }
@media (hover: hover) {
  .m-btn:hover { color: var(--color-2); }
  .m-icon:hover { color: var(--color-2); }
}
.m-btn--light { background: var(--color-1); color: var(--color-2); box-shadow: inset 0 0 0 1px var(--color-2); }
.m-btn[aria-current="page"] { background: var(--color-4); color: var(--color-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- logo: CMN icon in place of the square ---------- */
#nav .nav__logo, #footer .footer__logo { letter-spacing: .24em; gap: 12px; }
.cmn-icon { width: 40px; height: 40px; object-fit: contain; flex: none; }
#nav .nav__logo .cmn-icon { width: 42px; height: 42px; }
.cmn-word { display: grid; gap: 3px; line-height: 1; }
.cmn-word small { font-size: 9.5px; letter-spacing: .42em; color: var(--gold-ink); font-weight: 600; }
#nav .nav__links a[aria-current="page"] { background-size: 100% 1px; }
@media (max-width: 1180px) { #nav .nav__links { gap: 18px; } #nav .nav__links .m-link-2 { font-size: 13px; } }
@media (max-width: 420px) { #nav .nav__logo { letter-spacing: .16em; font-size: 13px; gap: 9px; } #nav .nav__logo .cmn-icon { width: 34px; height: 34px; } }
#nav .nav__menu-links a[aria-current="page"] { color: var(--gold-ink); }

/* ---------- opening on inner pages: longer three-line titles ---------- */
#opening.opening--page .opening__title { font-size: clamp(40px, 5.6vw, 86px); top: 19svh; }
#opening.opening--page .opening__line:nth-child(2) { margin-left: .8em; }
#opening.opening--page .opening__line:nth-child(3) { margin-left: 1.6em; }
#opening .opening__about .actions { justify-content: center; }
@media (max-width: 760px) {
  #opening.opening--page .opening__title { font-size: clamp(34px, 9.6vw, 52px); }
  #opening.opening--page .opening__line:nth-child(2) { margin-left: .4em; }
  #opening.opening--page .opening__line:nth-child(3) { margin-left: .8em; }
}
#opening .opening__badge { display: inline-block; padding: 8px 14px 7px; border: 1px solid var(--color-4); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-2); background: var(--color-1); }

/* ---------- practice panels: publications keep their colour; links row ---------- */
#practice .area__links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
#practice .area--colour .area__img { mix-blend-mode: normal; filter: none; }
#practice .area--colour .area__title { text-shadow: 0 0 28px rgba(255, 255, 255, .75), 0 0 6px rgba(255, 255, 255, .6); }
#practice .practice__index ol { max-height: calc(100svh - 140px); }
@media (max-width: 760px) { #practice .practice__index ol { flex-wrap: wrap; row-gap: 4px; max-width: calc(100vw - 2 * var(--space-1)); } }

/* ---------- principles stair used for packages ---------- */
#principles.principles--packages .principles__stair { max-width: none; }
#principles.principles--packages .promise { justify-content: flex-start; }
#principles .promise .checks { margin-top: 4px; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 20px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1px; background: var(--color-4); box-shadow: 0 0 0 .5px var(--color-4); }
.promise__main { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--color-6); }

/* ---------- matters table used for services and notes ---------- */
#matters td a.m-link { white-space: nowrap; }
#matters td:nth-child(2) { color: var(--color-2); }

/* ---------- offices ring of ten publications ---------- */
#offices .offices__list.offices__list--pubs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#offices .offices__list--pubs .offices__city { font-size: 19px; }
#offices .offices__list--pubs li img { width: 52px; height: 52px; object-fit: contain; }
@media (max-width: 900px) { #offices .offices__list.offices__list--pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- people track as cards (focus areas) ---------- */
#people .person__text .m-text-7 { max-width: 30ch; }

/* ---------- generic Fellgate-style blocks ---------- */
.fg-sec { padding: var(--space-2) var(--space-1); }
.fg-sec--pale { background: var(--color-7); }
.fg-sec--tight { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.fg-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 7vw; align-items: end; }
.fg-head > div { display: grid; justify-items: start; gap: 20px; }
.fg-head + * { margin-top: clamp(44px, 6vw, 88px); }
.fg-photo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 6vw; align-items: center; }
.fg-photo--flip > figure { order: 2; }
.fg-photo figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-6); }
.fg-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.fg-photo__text { display: grid; justify-items: start; gap: clamp(24px, 3vw, 40px); }
.fg-photo__text .m-text { max-width: 560px; }
.fg-note { padding: 18px 0 0; border-top: 1px solid var(--color-6); max-width: 640px; }
@media (max-width: 860px) {
  .fg-head, .fg-photo { grid-template-columns: minmax(0, 1fr); }
  .fg-photo--flip > figure { order: 0; }
  .fg-photo figure { aspect-ratio: 4 / 3; }
}

/* ---------- publication logo grid: 5 × 2 desktop, 2 columns phones ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--color-6); border-left: 1px solid var(--color-6); }
.pub-grid a { display: grid; grid-template-rows: 1fr auto; gap: 14px; justify-items: center; align-items: center; padding: 30px 16px 22px; border-right: 1px solid var(--color-6); border-bottom: 1px solid var(--color-6); text-decoration: none; text-align: center; position: relative; isolation: isolate; }
.pub-grid a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-7); clip-path: inset(100% 0 0 0); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
@media (hover: hover) { .pub-grid a:hover::before { clip-path: inset(0); } }
.pub-grid img { width: 100%; max-width: 140px; height: 104px; object-fit: contain; }
@media (max-width: 900px) { .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pub-grid img { height: 80px; } .pub-grid a { padding: 22px 10px 18px; } }

/* ---------- contact section: closing call to action and real forms ---------- */
#contact .contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
#contact .contact__form .m-field--full { grid-column: 1 / -1; }
.m-field__label em { font-style: normal; color: var(--gold-ink); }
.m-field__hint { font-size: 14px; color: var(--color-5); line-height: 1.45; }
.m-field__error { font-size: 14px; color: #A3262A; }
.m-field__error:empty { display: none; }
.m-field__input[aria-invalid="true"] { border-bottom-color: #A3262A; }
.form__status { min-height: 1.45em; }
.form__status[data-state="error"] { color: #A3262A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js [data-existing-prompt]:not([data-active]) { display: none; }
.fg-prompt { padding: 14px 0 0; border-top: 1px solid var(--color-4); }

/* ---------- footer ---------- */
#footer .footer__tag { color: var(--gold-ink); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
}

/* =====================================================================
   Owner revisions (round 2)
   ===================================================================== */
@layer cmn {
/* ---------- all photos in full colour ---------- */
#opening .opening__img, #practice .area__img, #people .person__img, #probono .probono__img,
#contact .contact__photo img, .fg-photo img, #offices .city img { filter: none; mix-blend-mode: normal; }
@keyframes opening-img { 0% { scale: 1; translate: 0 0; } 100% { scale: 1.18; translate: 0 8%; } }

/* ---------- heroes: photo at 30% over Civility Navy, white title with shadow ---------- */
#opening .opening__stage { background: var(--color-2); }
#opening .opening__photo { opacity: .3; }
#opening .opening__fog { display: none; }
#opening .opening__title, #opening .opening__lead, #opening .opening__lead .m-text-6, #opening .opening__lead .m-link { color: #fff; }
#opening .opening__title { text-shadow: 0 2px 6px rgba(4, 16, 36, .55), 0 10px 40px rgba(4, 16, 36, .6); }
#opening .opening__lead .m-text-6 { text-shadow: 0 1px 12px rgba(4, 16, 36, .7); }
#opening .opening__badge { color: var(--color-2); }

/* ---------- covered practice panels shade to gold, not navy ---------- */
#practice .area__shade { background: var(--color-4); }

/* ---------- wide photos: show the 16:9 images at full width ---------- */
#practice .area { grid-template-columns: minmax(0, 1fr) min(54vw, 900px) minmax(0, 1fr); }
#practice .area__media { height: auto; aspect-ratio: 16 / 9; }
#practice .area__figure { --area-u: min(11vw, 17svh); }
#probono { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
#probono .probono__photo { aspect-ratio: 16 / 10; }
#probono .probono__img { object-position: 50% 50%; }
.fg-photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.fg-photo figure { aspect-ratio: 16 / 10; }
#people .person__photo { aspect-ratio: 16 / 10; }
#contact .contact__photo { aspect-ratio: 16 / 10; }
@media (prefers-reduced-motion: no-preference) {
  [data-8b-live] #people .person { width: clamp(300px, 34vw, 520px); }
  [data-8b-live] #people .person__photo { height: auto; aspect-ratio: 16 / 10; }
  [data-8b-live] #people .person__img { height: 100%; }
}
@media (max-width: 760px) {
  #practice .area { grid-template-columns: minmax(0, 1fr); }
  #practice .area__media { width: 100%; height: auto; }
  #probono .probono__photo, .fg-photo figure { aspect-ratio: 16 / 10; }
  #contact .contact__fan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- staircase: text right under the title, boxes grow with their text ---------- */
#principles .principles__stair { grid-auto-rows: auto; }
#principles .principles__stair::before { min-height: clamp(48px, 5vw, 72px); }
#principles .promise { justify-content: flex-start; gap: 18px; }

/* ---------- ring of ten publication logos ---------- */
#offices .city { background: #fff; border: 1px solid var(--color-6); }
#offices .city img { object-fit: contain; padding: 12%; }

/* ---------- publication panels: name beside the photo, never over it ---------- */
#practice .area.area--notitle { grid-template-columns: minmax(200px, .8fr) min(50vw, 820px) minmax(300px, 1.1fr); }
#practice .area--notitle .area__text { grid-column: 3; grid-row: 1 / 4; align-self: center; max-width: 360px; }
#practice .area--notitle .area__terms { display: none; }
#practice .area--notitle .area__name { font-size: clamp(28px, 2.6vw, 40px); }
@media (max-width: 760px) { #practice .area--notitle .area__text { grid-row: auto; } }

/* ---------- footer back-to-top ---------- */
#footer .footer__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
#footer .footer__up .m-icon__glyph { width: 18px; height: 18px; }

/* ---------- services page: plain rows with a sticky menu ---------- */
.svc-menu { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px clamp(18px, 2.6vw, 36px); flex-wrap: wrap; justify-content: center; padding: 18px var(--space-1); background: color-mix(in srgb, var(--color-1) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-6); }
.svc-menu a { font-size: 15px; }
.svc-menu a.is-current { background-size: 100% 1px; color: var(--gold-ink); }
.svc-rows { padding: 0 var(--space-1) var(--space-2); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 5vw; align-items: center; padding: clamp(56px, 7vw, 104px) 0; border-bottom: 1px solid var(--color-6); scroll-margin-top: 72px; }
.svc-row:nth-child(even) > figure { order: 2; }
.svc-row figure { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-6); }
.svc-row figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__text { display: grid; justify-items: start; gap: 20px; }
.svc-row__text .m-text { max-width: 520px; }
.svc-row dl { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--color-6); width: 100%; max-width: 520px; }
.svc-row dd { margin: 0; font-weight: 500; }
.soon { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border: 1px solid var(--color-4); color: var(--gold-ink); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 860px) { .svc-row { grid-template-columns: minmax(0, 1fr); } .svc-row:nth-child(even) > figure { order: 0; } .svc-menu { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; } }

/* ---------- pricing page: two-column hero with the form ---------- */
.p-hero { position: relative; isolation: isolate; min-height: 100svh; padding: calc(64px + clamp(40px, 7vw, 96px)) var(--space-1) clamp(56px, 7vw, 104px); background: var(--color-2); color: #fff; overflow: hidden; }
.p-hero__bg { position: absolute; inset: 0; z-index: -1; opacity: .3; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 6vw; align-items: start; max-width: 1400px; margin: 0 auto; }
.p-hero__left { position: sticky; top: 110px; display: grid; justify-items: start; gap: 28px; }
.p-hero__title { font-size: clamp(52px, 7vw, 112px); color: #fff; text-shadow: 0 2px 6px rgba(4, 16, 36, .55), 0 10px 40px rgba(4, 16, 36, .6); }
.p-hero__title span { display: block; }
.p-hero__title span:nth-child(2) { margin-left: .6em; }
.p-hero__title span:nth-child(3) { margin-left: 1.2em; }
.p-hero__left .m-text-6 { max-width: 460px; color: #fff; text-shadow: 0 1px 12px rgba(4, 16, 36, .7); }
.p-hero__left .m-text { max-width: 460px; color: rgba(255, 255, 255, .9); }
.p-hero__left .opening__badge { display: inline-block; padding: 8px 14px 7px; border: 1px solid var(--color-4); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-2); background: var(--color-4); }
.p-hero__card { padding: clamp(28px, 3.4vw, 52px); background: #fff; color: var(--color-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.p-hero__card h2 { margin-bottom: 26px; }
.cmn-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.cmn-form .m-field--full, .cmn-form .contact__send, .cmn-form .contact__wide { grid-column: 1 / -1; }
.cmn-form .contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
@media (max-width: 960px) { .p-hero__grid { grid-template-columns: minmax(0, 1fr); } .p-hero__left { position: static; } }
@media (max-width: 620px) { .cmn-form { grid-template-columns: minmax(0, 1fr); } }
}

@layer cmn {
/* gold buttons (hero links, home panel links) */
.m-btn--gold { background: var(--color-4); color: var(--color-2); }
.m-btn--gold::before { background: var(--color-2); }
@media (hover: hover) { .m-btn--gold:hover { color: #fff; } }
#opening .opening__lead .m-btn--gold { color: var(--color-2); text-shadow: none; }
@media (hover: hover) { #opening .opening__lead .m-btn--gold:hover { color: #fff; } }
}

@layer cmn {
/* closing row without the statement and photo row */
#contact.contact--plain { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
#contact.contact--plain > .contact__grid:first-child { padding-top: 0; border-top: 0; align-items: center; }
}

@layer cmn {
/* smaller gold buttons inside tables and lists */
#matters td .m-btn, #offices .offices__list .m-btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
#practice .area__links { gap: 12px; }
}

/* =====================================================================
   Owner revisions (round 3): brand gold, ivory, type scale, spacing
   ===================================================================== */
@layer cmn {
:root {
  /* metallic Signature Gold, as on the brand board */
  --gold-grad: linear-gradient(135deg, #B88E4E 0%, #E9CC8E 24%, #F6E3B4 38%, #D4AF7C 55%, #B48A4A 78%, #E2C287 100%);
  --gold-text: linear-gradient(135deg, #7E5E2C 0%, #A8803F 35%, #C49A55 50%, #8E6A33 75%, #7A5A28 100%);
  --space-2: clamp(56px, 6.5vw, 100px);
}

/* ---------- gold effect everywhere gold is used ---------- */
.m-btn--gold, .m-btn[aria-current="page"], #opening .opening__badge, .p-hero__left .opening__badge { background: var(--gold-grad); border: 0; }
.m-btn::before, .m-icon::before { background: var(--gold-grad); }
.m-btn--gold::before { background: var(--color-2); }
#practice .area__piece { background: var(--gold-grad); }
#practice .area__shade { background: var(--gold-grad); }
.checks li::before { background: var(--gold-grad); box-shadow: none; height: 2px; }
.m-text-5 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon { border-image: var(--gold-grad) 1; }
.cmn-word small, #footer .footer__tag { color: #9A7637; }

/* ---------- 16px minimum type ---------- */
.m-text-4 { font-size: 16px; letter-spacing: .05em; }
.m-text-7, .m-link-2, .m-link, .m-field__label, .m-field__hint, .m-field__error, .m-btn { font-size: 16px; }
.m-text, .m-field__input { font-size: 17px; }
#nav .nav__links .m-link-2, #practice .practice__index a, .svc-menu a, #matters td, #practice .area__terms dd, #footer .footer__tag { font-size: 16px; }
#matters td .m-btn, #offices .offices__list .m-btn { font-size: 16px; }
@media (max-width: 1180px) { #nav .nav__links .m-link-2 { font-size: 16px; } #nav .nav__links { gap: 16px; } }
@media (max-width: 1240px) and (min-width: 1001px) { #nav .nav__logo { padding-right: 16px; } }

/* ---------- logo: NEWSWIRE as wide as "Civility Media" ---------- */
.cmn-word { width: max-content; }
.cmn-word small { display: flex; justify-content: space-between; font-size: 16px; letter-spacing: 0; font-weight: 600; }
.cmn-word small i { font-style: normal; }
#nav .nav__logo, #footer .footer__logo { font-size: 17px; letter-spacing: .2em; }

/* ---------- smaller section titles ---------- */
.m-text-3 { font-size: clamp(26px, 2.7vw, 40px); }
.m-text-5 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.12; }
#opening .opening__statement { font-size: clamp(26px, 3vw, 42px); }
#probono .probono__text h2.m-text-3 { font-size: clamp(24px, 2.3vw, 34px); }
#practice .area--notitle .area__name { font-size: clamp(24px, 2.2vw, 32px); }

/* ---------- less empty space ---------- */
#opening .opening__second { min-height: 0; padding: 22svh var(--space-1) clamp(56px, 7vw, 96px); gap: 32px; }
#practice .practice__intro { padding: var(--space-2) var(--space-1) clamp(32px, 4vw, 56px); }
[data-8b-live] #practice .area:not(:last-child) { margin-bottom: 30svh; }
#principles { gap: 40px 6vw; }
#principles .principles__stair::before { min-height: 40px; }
#principles .promise { padding: 22px 22px 24px; gap: 14px; }
.fg-head + * { margin-top: clamp(28px, 4vw, 56px); }
.fg-photo, #probono { align-items: start; gap: 32px 5vw; }
.fg-photo__text, #probono .probono__text { gap: 20px; }
#probono .probono__list { gap: 20px; }
#people .people__head, #matters .matters__head, #fees .fees__head { margin-bottom: clamp(28px, 3.5vw, 48px); }
#offices .offices__list { margin-top: clamp(24px, 3vw, 40px); }
#contact.contact--plain { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.svc-row { padding: clamp(40px, 5vw, 72px) 0; align-items: start; }
#faq { gap: 32px 6vw; }
}

@layer cmn {
/* services menu: sit below the site bar whenever the bar is showing, so it is never covered */
.svc-menu { transition: top .5s cubic-bezier(.6, 0, .2, 1); }
#nav:not(.is-hidden) ~ main .svc-menu { top: 64px; }
.svc-row { scroll-margin-top: 140px; }
}

@layer cmn {
/* boxes size to their own content; headings sit at the top beside their text */
#principles .promise { align-self: start; }
.fg-head { align-items: start; }
#opening .opening__second { padding-bottom: clamp(32px, 4vw, 56px); }
}

@layer cmn {
/* staircase as a plain two-column grid with a small offset: no reserved empty rows */
@media (min-width: 861px) {
  #principles .principles__stair { grid-auto-rows: auto; align-items: start; column-gap: 0; }
  #principles .principles__stair::before { display: none; }
  #principles .promise, #principles .promise:nth-child(odd), #principles .promise:nth-child(even) { grid-row-end: auto; grid-column: auto; }
  #principles .promise:nth-child(even) { margin-left: -1px; transform: translateY(40px); }
  #principles .principles__stair { padding-bottom: 40px; }
}
}

@layer cmn {
#practice .practice__intro, #matters .matters__head, #people .people__head { align-items: start; }
}

@layer cmn {
/* stacked panels: size to their content instead of a full screen, no centred gap */
@media (min-width: 761px) {
  #practice .practice__intro { padding-bottom: clamp(16px, 2vw, 28px); }
  #practice .area { min-height: 0; grid-template-rows: auto; align-items: start; padding: clamp(40px, 4.5vw, 64px) var(--space-1); }
  #practice .area__media { grid-row: 1; align-self: start; }
  #practice .area--notitle .area__text { grid-row: 1; align-self: center; }
  #practice .area__figure { --area-u: min(8vw, 12svh); }
  #practice .practice__index { top: clamp(40px, 4.5vw, 64px); }
}
}

@layer cmn {
/* panels follow one another (no sticky stacking), so there are no empty gaps between them */
[data-8b-live] #practice .area, #practice .area { position: relative; top: auto; margin-bottom: 0; }
[data-8b-live] #practice .area:not(:last-child) { margin-bottom: 0; }
#practice .area + .area { border-top: 1px solid var(--color-6); }
#practice .area__shade { display: none; }
[data-8b-live] #practice .practice__index { position: relative; }
#practice .practice__panels { padding-bottom: clamp(24px, 3vw, 48px); }
}

@layer cmn {
/* Services page: the site bar stays put and the menu sits fixed beneath it, so nothing moves under the cursor */
body:has(.svc-menu) #nav.is-hidden .nav__bar { translate: 0 0; }
.svc-menu, #nav:not(.is-hidden) ~ main .svc-menu { top: 64px; transition: none; z-index: 40; }
.svc-row { scroll-margin-top: 150px; }
}

@layer cmn {
/* staircase boxes stay still: the slide-in made boxes overlap and hide text while scrolling */
[data-8b-live] #principles .principles__stair > li { animation: none !important; translate: none !important; }
}

@layer cmn {
/* side list of panels stays locked in view while scrolling through them (desktop) */
@media (min-width: 761px) {
  #practice .practice__index, [data-8b-live] #practice .practice__index { position: sticky; top: 96px; z-index: 8; }
  [data-8b-live] #practice .practice__index { animation: none; opacity: 1; }
  #practice .area.area--notitle { grid-template-columns: minmax(170px, .7fr) min(46vw, 800px) minmax(0, 1fr); column-gap: clamp(24px, 2.5vw, 40px); }
  #practice .area--notitle .area__text { max-width: 380px; min-width: 0; }
}
}

@layer cmn {
@media (min-width: 761px) { #practice .practice__index ol { background: var(--color-3); padding: 8px 14px 10px 0; box-shadow: 14px 0 0 var(--color-3); } }
}

@layer cmn {
/* tighter vertical rhythm site-wide */
:root { --space-2: clamp(44px, 5vw, 76px); }
/* sliding card row (About › Editorial Focus): start at the top, not centred in a full screen */
@media (prefers-reduced-motion: no-preference) {
  [data-8b-live] #people .people__hold { justify-content: flex-start; padding-top: clamp(84px, 10vh, 112px); padding-bottom: 24px; }
}
#people .people__head { align-items: end; }
}

@layer cmn {
@media (prefers-reduced-motion: no-preference) { [data-8b-live] #people .people__hold { padding-top: 72px; } }
.fg-sec--pale + span + #people .people__hold, .fg-sec + span + #people .people__hold { padding-top: 56px; }
}

@layer cmn {
/* header: always locked at the top, black underline with a soft shadow */
#nav .nav__bar, #nav.is-hidden .nav__bar { translate: 0 0; }
#nav .nav__bar { border-bottom: 1px solid #000; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .14); }
.svc-menu, #nav:not(.is-hidden) ~ main .svc-menu, #nav.is-hidden ~ main .svc-menu { top: 64px; }
}

@layer cmn {
/* gold buttons: easier to read — calmer, deeper gold (navy text ≥ 5:1 everywhere), bolder text, crisp edge */
:root { --gold-btn: linear-gradient(135deg, #C29A5A 0%, #D7B677 28%, #E4CA94 45%, #D4AF7C 62%, #C09756 100%); }
.m-btn--gold, .m-btn[aria-current="page"] { background: var(--gold-btn); color: var(--color-2); font-weight: 700; letter-spacing: .01em; box-shadow: inset 0 0 0 1px #A47F42; }
#opening .opening__lead .m-btn--gold { font-weight: 700; }
}

@layer cmn {
/* navy buttons: white text, gold sweep on hover with navy text */
.m-btn:not(.m-btn--gold) { background: var(--color-2); color: #fff; font-weight: 600; }
@media (hover: hover) { .m-btn:not(.m-btn--gold):hover { color: var(--color-2); } }
/* top bar: navy Request Pricing that turns gold on hover */
#nav .nav__cta { background: var(--color-2); color: #fff; }
#nav .nav__cta[aria-current="page"] { background: var(--gold-btn); color: var(--color-2); }
}

@layer cmn {
/* home logo list: whole logo + name is the link, no buttons */
#offices .pub-tile { display: grid; justify-items: start; gap: 10px; text-decoration: none; color: inherit; }
#offices .pub-tile .offices__city { transition: color .3s; }
@media (hover: hover) { #offices .pub-tile:hover .offices__city { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; } }
}

@layer cmn {
/* top-bar Request Pricing: navy text once the gold fills in on hover / keyboard focus */
#nav .nav__cta:hover, #nav .nav__cta:focus-visible { color: var(--color-2); }
}

@layer cmn {
/* About › Editorial Focus: a plain 4 × 2 grid (no sideways scroll, no reserved full-screen height) */
#people, [data-8b-live] #people { height: auto !important; }
#people .people__hold, [data-8b-live] #people .people__hold { position: static; height: auto; display: block; overflow: visible; padding: var(--space-2) var(--space-1); }
#people .people__track, [data-8b-live] #people .people__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; width: auto; animation: none !important; translate: none !important; }
#people .person, [data-8b-live] #people .person { width: auto; }
#people .person__photo, [data-8b-live] #people .person__photo { height: auto; aspect-ratio: 16 / 10; }
#people .person__img, [data-8b-live] #people .person__img { position: static; width: 100%; height: 100%; left: auto; animation: none !important; translate: none !important; }
@media (max-width: 1000px) { #people .people__track, [data-8b-live] #people .people__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #people .people__track, [data-8b-live] #people .people__track { grid-template-columns: minmax(0, 1fr); } }
}

@layer cmn {
/* two-column hero (Pricing, Contact): longer titles fit */
.p-hero__title { font-size: clamp(44px, 5.4vw, 92px); line-height: .98; }
.cmn-form .fg-prompt { grid-column: 1 / -1; }
}

@layer cmn {
/* two arcs of five publication logos, each fully visible */
#offices .offices__stage--five { --offices-r: clamp(280px, 30vw, 440px); --offices-size: clamp(92px, 9vw, 132px); height: calc(var(--offices-r) * .42 + var(--offices-size) + 24px); margin-top: clamp(8px, 1.5vw, 20px); -webkit-mask-image: none; mask-image: none; }
#offices .offices__stage--five .offices__ring { top: calc(var(--offices-r) + var(--offices-size) / 2 + 12px); }
#offices .offices__stage--five .city { transform: rotate(calc(var(--city-i) * 25deg)) translateY(calc(var(--offices-r) * -1)); }
#offices .offices__stage--five + .offices__stage--five { margin-top: 0; }
#offices .offices__note--below { position: static; translate: none; width: auto; max-width: 760px; margin: clamp(20px, 3vw, 36px) auto 0; text-align: center; }
@media (max-width: 760px) {
  #offices .offices__stage--five { --offices-r: 210px; --offices-size: 74px; height: calc(var(--offices-r) * .42 + var(--offices-size) + 24px); }
  #offices .offices__stage--five .city { transform: rotate(calc(var(--city-i) * 27deg)) translateY(calc(var(--offices-r) * -1)); }
}
}

@layer cmn {
/* logos stay upright on the arcs, and the arcs sit still (no spin-in) */
[data-8b-live] #offices .offices__ring { animation: none !important; rotate: none !important; }
#offices .offices__stage--five .city img { rotate: calc(var(--city-i) * -25deg); }
@media (max-width: 760px) {
  #offices .offices__stage--five { --offices-r: 190px; --offices-size: 68px; }
  #offices .offices__stage--five .city { transform: rotate(calc(var(--city-i) * 22deg)) translateY(calc(var(--offices-r) * -1)); }
  #offices .offices__stage--five .city img { rotate: calc(var(--city-i) * -22deg); }
}
}

@layer cmn {
/* full circle of 20 logo squares (2 sets of 10) that keeps turning; logos stay upright */
#offices .offices__stage--circle { --offices-r: clamp(300px, 38vw, 540px); --offices-size: clamp(84px, 9.5vw, 132px); --a: 18deg; }
#offices .offices__stage--circle .city { --angle: calc(var(--city-i) * var(--a)); transform: rotate(var(--angle)) translateY(calc(var(--offices-r) * -1)); }
#offices .offices__stage--circle .city img { rotate: calc(var(--angle) * -1); }
@keyframes cmn-ring-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cmn-logo-upright { from { rotate: calc(var(--angle) * -1); } to { rotate: calc(var(--angle) * -1 - 360deg); } }
@media (prefers-reduced-motion: no-preference) {
  #offices .offices__stage--circle .offices__ring, [data-8b-live] #offices .offices__stage--circle .offices__ring { animation: cmn-ring-turn 90s linear infinite !important; }
  #offices .offices__stage--circle .city img, [data-8b-live] #offices .offices__stage--circle .city img { animation: cmn-logo-upright 90s linear infinite !important; scale: 1; }
  #offices .offices__stage--circle:hover .offices__ring, #offices .offices__stage--circle:hover .city img { animation-play-state: paused !important; }
}
@media (max-width: 760px) {
  #offices .offices__stage--circle { --offices-r: 330px; --offices-size: 80px; height: 520px; }
}
}

@layer cmn {
/* button sits under the paragraph inside the circle */
#offices .offices__note { display: grid; justify-items: center; gap: 22px; }
#offices .offices__action { display: flex; justify-content: center; }
}

@layer cmn {
/* keep the button clear of the circle's bottom fade */
#offices .offices__stage--circle { height: calc(var(--offices-r) * .84 + 170px); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
#offices .offices__stage--circle .offices__ring { top: calc(var(--offices-r) + 92px); }
@media (max-width: 760px) { #offices .offices__stage--circle { height: 600px; } }
}

@layer cmn {
/* Service or Package checkboxes */
.svc-checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.svc-checks legend { padding: 0; margin-bottom: 6px; }
.svc-checks__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 10px; }
.svc-checks__group { display: grid; gap: 8px; align-content: start; padding: 12px 14px; border: 1px solid var(--color-6); }
.svc-checks__group.is-suggested { border-color: #A47F42; box-shadow: inset 3px 0 0 #A47F42; }
.svc-checks__title { font-size: 16px; font-weight: 700; color: var(--color-2); }
.svc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.35; cursor: pointer; color: var(--color-2); }
.svc-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-2); cursor: pointer; }
.svc-checks[aria-invalid="true"] .svc-checks__group { border-color: #A3262A; }
@media (max-width: 620px) { .svc-checks__groups { grid-template-columns: minmax(0, 1fr); } }
}

/* =====================================================================
   PHONE LAYOUT (≤ 760px) — kept last so desktop rules above can't override it
   ===================================================================== */
@layer cmn {
@media (max-width: 760px) {
  /* heroes: one short screen, not two tall ones */
  #opening .opening__stage { height: 62svh; }
  #opening .opening__first { height: 62svh; margin-top: -62svh; }
  #opening .opening__title, #opening.opening--page .opening__title { top: auto; bottom: 8svh; }
  #opening .opening__second { padding: 40px var(--space-1) 32px; gap: 22px; background: var(--color-1); }
  #opening .opening__mist { display: none; }
  #opening .opening__statement { font-size: 24px; }
  .p-hero { min-height: 0; padding-top: calc(64px + 32px); padding-bottom: 40px; }
  .p-hero__title { font-size: 44px; }

  /* photo + text sections stack: photo on top, text below */
  #probono, .fg-photo, .fg-photo--flip, .svc-row, .h-feature { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  .fg-photo--flip > figure, .svc-row:nth-child(even) > figure { order: 0; }
  #probono .probono__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fg-head, #matters .matters__head, #people .people__head, #practice .practice__intro, #faq { grid-template-columns: minmax(0, 1fr); }

  /* stacked panels (Home › Civility Where It Happens, Publications): plain stacked cards with text */
  #practice .practice__index { display: none !important; }
  #practice .area, #practice .area.area--notitle, [data-8b-live] #practice .area {
    display: grid; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none; row-gap: 16px;
    min-height: 0; padding: 28px var(--space-1) 32px; position: relative; top: auto; margin: 0; }
  #practice .area__media { grid-column: 1 !important; grid-row: auto !important; width: 100%; height: auto; aspect-ratio: 16 / 9; justify-self: stretch; }
  #practice .area__figure { display: none; }
  #practice .area__title { grid-column: 1 !important; grid-row: auto !important; font-size: 30px; }
  #practice .area__text, #practice .area--notitle .area__text { grid-column: 1 !important; grid-row: auto !important; max-width: none; align-self: start; }
  #practice .area__terms { grid-column: 1 !important; grid-row: auto !important; }
  #practice .area--notitle .area__name { font-size: 26px; }
  #practice .practice__intro { padding-bottom: 8px; }

  /* staircase boxes: full width, height fits the text */
  #principles .principles__stair { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 0; }
  #principles .promise, #principles .promise:nth-child(odd), #principles .promise:nth-child(even) {
    width: 100%; min-height: 0; margin: 0; transform: none; justify-self: stretch; grid-column: 1; grid-row-end: auto; }

  /* tighter section spacing on phones */
  :root { --space-2: 40px; }
  #people .person__text .m-text-7 { max-width: none; }
}
}

@layer cmn {
/* statements are fully dark from the start (no pale "ink-in" effect) */
[data-8b-live] [data-8b-motion~="ink"] .w, [data-8b-live] #opening .opening__statement .w { animation: none !important; color: inherit !important; }
}

/* =====================================================================
   Round: phone polish (hero titles, logo circle, phone menu)
   ===================================================================== */
@layer cmn {
/* hero titles: always solid white — no fade-out while scrolling */
[data-8b-live] #opening .opening__line { animation: none !important; opacity: 1 !important; translate: none !important; }
#opening .opening__title, #opening .opening__title .opening__word { color: #fff !important; opacity: 1 !important; }

/* logo circle: the ring turns inside a clipped orbit box; the paragraph + button sit over it (desktop) */
#offices .offices__stage--circle { overflow: visible; }
#offices .offices__orbit { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
#offices .offices__stage--circle { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 760px) {
  /* phones: show only the top arc, then the paragraph and button below it — no reserved empty space */
  #offices .offices__stage--circle { --offices-r: 300px; --offices-size: 72px; height: auto; margin-top: 8px; }
  #offices .offices__orbit { position: relative; inset: auto; height: calc(var(--offices-r) * .36 + var(--offices-size) + 12px); }
  #offices .offices__stage--circle .offices__ring { top: calc(var(--offices-r) + var(--offices-size) / 2 + 12px); }
  #offices .offices__note { position: static; translate: none; width: auto; max-width: none; margin-top: 16px; }
  #offices { padding-bottom: 40px; }
}

/* phone menu: navy panel, large white block links, current page in gold with black text */
#nav .nav__menu { background: var(--color-2); color: #fff; padding: 84px 0 32px; gap: 24px; }
#nav .nav__menu .nav__close { color: #fff; border-color: rgba(255, 255, 255, .5); }
#nav .nav__menu-links { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
#nav .nav__menu-links a, #nav .nav__menu-links a.m-link-2 {
  display: block; padding: 18px var(--space-1); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
  color: #fff; background: none; border-bottom: 1px solid rgba(255, 255, 255, .18); text-decoration: none; }
#nav .nav__menu-links a[aria-current="page"] { background: var(--gold-btn); color: #000; }
@media (hover: hover) { #nav .nav__menu-links a:not([aria-current="page"]):hover { background: rgba(255, 255, 255, .08); } }
#nav .nav__menu > .m-btn { margin: 0 var(--space-1); align-self: stretch; justify-content: center; min-height: 60px; font-size: 18px; }
}
