/* Bedrock Atelier: the Proceedings */

@font-face { font-family: "EB Garamond"; src: url(../assets/fonts/eb-garamond-normal.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../assets/fonts/manrope-normal.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --cloth-deep: #14292d;
  --cloth: #183337;
  --cloth-raised: #1b3438;
  --cloth-line: #2c4a4e;
  --gilt: #c9a65a;
  --gilt-bright: #e0c27e;
  --gilt-dim: rgba(201, 166, 90, .38);
  --ivory: #ece5d6;
  --ivory-soft: #c8cdbf;
  --ink-muted: #9fb0aa;
  --rust: #dd8660;
  --paper: #efe9dc;
  --paper-ink: #1d2b2d;
  --mark-strata: #d8c9a3;

  --display: "EB Garamond", Garamond, Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --page: min(1320px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 4vw, 56px);
  --rhythm: clamp(88px, 11vw, 156px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --masthead: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--masthead) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cloth);
  /* bookcloth: a faint woven grain over the teal */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95 .28' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 70% 0%, #1d3a40 0%, var(--cloth) 55%, var(--cloth-deep) 100%);
  background-attachment: fixed;
  color: var(--ivory);
  font: 400 1.0625rem/1.65 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gilt); color: var(--cloth-deep); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gilt-dim); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gilt); }
:focus-visible { outline: 1.5px solid var(--gilt-bright); outline-offset: 4px; border-radius: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
html { scrollbar-color: var(--cloth-line) var(--cloth-deep); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--gilt); color: var(--cloth-deep); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Masthead */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--masthead);
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled { background: var(--cloth-deep); border-bottom-color: var(--cloth-line); }
.masthead-inner { width: var(--page); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand-mark { width: 34px; height: 34px; color: var(--ivory); --mark-strata: var(--cloth); flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word span:first-child { font: 600 1.06rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand-word span:last-child { font: 500 .7rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--gilt); margin-top: 6px; }

#site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
#site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); }
#site-nav ul a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 0;
  font: 500 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ivory-soft);
  transition: color .2s var(--ease-out);
}
#site-nav .sec { font: 400 .86rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gilt); }
#site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gilt);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
#site-nav ul a:hover, #site-nav ul a[aria-current] { color: var(--ivory); }
#site-nav ul a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) { #site-nav ul a:hover::after { transform: scaleX(1); } }
.nav-enquire {
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 12px 18px; border: 1px solid var(--gilt); color: var(--gilt-bright);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-enquire:hover { background: var(--gilt); color: var(--cloth-deep); }

.menu-toggle { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.button-gilt { background: var(--gilt); color: var(--cloth-deep); box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .35), 0 6px 18px -8px rgba(0, 0, 0, .6); }
.button-gilt:hover { background: var(--gilt-bright); }
.button:active { transform: scale(.97); }
.button[disabled] { opacity: .6; cursor: progress; }
.button-text { font: 500 .95rem/1 var(--sans); color: var(--ivory-soft); text-decoration: none; padding: 14px 4px; transition: color .2s var(--ease-out); }
.button-text span { display: inline-block; color: var(--gilt); transition: transform .2s var(--ease-out); }
.button-text:hover { color: var(--ivory); }
.button-text:hover span { transform: translateX(4px); }
.button-small {
  padding: 8px 12px; background: transparent; border: 1px solid var(--cloth-line); color: var(--ivory-soft); cursor: pointer;
  font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.button-small:hover { border-color: var(--gilt); color: var(--ivory); }

/* Frontispiece */
.frontispiece {
  width: var(--page); margin: auto; min-height: calc(min(100svh, 980px) - 64px);
  padding: calc(var(--masthead) + clamp(24px, 4vh, 56px)) 0 clamp(28px, 4vh, 48px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center;
}
.front-copy { display: flex; flex-direction: column; gap: clamp(22px, 3vh, 32px); }
h1 { font: 400 clamp(2.9rem, 1.4rem + 4.4vw, 5.4rem)/1.02 var(--display); letter-spacing: -.012em; color: var(--ivory); }
.standfirst { font: 400 clamp(1.08rem, .95rem + .4vw, 1.3rem)/1.6 var(--serif); color: var(--ivory-soft); max-width: 34ch; }
.front-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.front-creds { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--gilt-dim); }
.front-creds div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--cloth-line); }
.front-creds dt { font: 500 .7rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); }
.front-creds dd { margin: 0; font-size: .95rem; color: var(--ivory-soft); }

/* Plates: tipped-in figures with gilt-ruled mounts and provenance captions */
.plate { margin: 0; display: grid; gap: 14px; }
.plate-mount {
  position: relative; background: var(--paper); padding: clamp(8px, 1vw, 14px);
  box-shadow: 0 0 0 1px var(--gilt-dim), 0 0 0 5px var(--cloth), 0 0 0 6px rgba(201, 166, 90, .22), 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.plate-mount img { width: 100%; }
.plate-mount-dark > img { background: #0d1b1e; }
.plate-mount-paper > img { background: #fff; }
.plate figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding-top: 4px; }
.plate-no { grid-row: span 2; font: 400 1rem/1.4 var(--serif); color: var(--rust); white-space: nowrap; }
.plate-title { font: 400 1rem/1.45 var(--serif); color: var(--ivory); }
.plate-source { font: 500 .72rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

.plate-hero .plate-mount { aspect-ratio: 4 / 3; max-height: calc(100svh - 300px); margin-inline: auto; width: 100%; overflow: hidden; }
.plate-hero canvas { width: 100%; height: 100%; display: block; background: radial-gradient(90% 70% at 50% 40%, #183236 0%, #0e1d20 70%); cursor: grab; touch-action: pan-y; }
.plate-hero canvas:active { cursor: grabbing; }
.plate-hero canvas:focus-visible { outline-offset: -6px; }
.plate-control {
  position: absolute; right: 22px; bottom: 22px; padding: 8px 12px; cursor: pointer;
  background: rgba(13, 27, 30, .8); border: 1px solid var(--cloth-line); color: var(--ivory-soft);
  font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.plate-control:hover { border-color: var(--gilt); color: var(--ivory); }
.legend { grid-column: 2; display: grid; gap: 6px; margin-top: 8px; max-width: 320px; }
.legend-bar { height: 6px; background: linear-gradient(90deg, #0000ff, #007fff, #00ffff, #80ff80, #ffff00, #ff8800, #ff0000); box-shadow: 0 0 0 1px var(--gilt-dim); }
.legend-ends { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* The horizon: one ground line, ruled in gilt, dividing every chapter */
.horizon { width: var(--page); margin: 0 auto; height: 7px; border-top: 1px solid var(--gilt-dim); border-bottom: 1px solid rgba(201, 166, 90, .14); }

/* Chapters */
.chapter { width: var(--page); margin: 0 auto; padding: var(--rhythm) 0; }
.chapter-head {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 22px;
  margin-bottom: clamp(48px, 6vw, 84px); max-width: 980px;
}
.chapter-no { grid-row: 1; font: 400 clamp(1.4rem, 1rem + 1vw, 2rem)/1.15 var(--serif); color: var(--gilt); padding-top: .32em; }
h2 { grid-column: 1 / -1; font: 400 clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem)/1.05 var(--display); letter-spacing: .01em; }
.chapter-intro { grid-column: 1 / -1; max-width: 58ch; font: 400 1.15rem/1.6 var(--serif); color: var(--ivory-soft); }

.lede { font: 400 clamp(1.25rem, 1rem + .7vw, 1.6rem)/1.5 var(--serif); color: var(--ivory); max-width: 40ch; }
h3 { font: 400 1.45rem/1.2 var(--display); }

/* §1 */
.practice-body { display: grid; grid-template-columns: 0px minmax(0, 7fr) minmax(0, 5fr); column-gap: 0; row-gap: clamp(40px, 5vw, 64px); }
.practice-body > .lede { grid-column: 2; padding-right: clamp(24px, 4vw, 64px); }
.practice-name { grid-column: 3; color: var(--ivory-soft); max-width: 44ch; padding-top: .5em; }
.practice-name em { font-family: var(--serif); color: var(--gilt-bright); }
.clauses { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: none; }
.clauses li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding-top: 18px; border-top: 1px solid var(--cloth-line); }
.clause-no { font: 400 1rem/1 var(--serif); color: var(--gilt); }
.clauses p { color: var(--ivory-soft); max-width: 40ch; }

/* §2 Services: a contents page that turns to each chapter */
.contents { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contents-list { position: sticky; top: calc(var(--masthead) + 28px); display: grid; border-top: 1px solid var(--gilt-dim); }
.contents-list [role="tab"] {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 2px 8px; align-items: baseline; width: 100%;
  padding: 18px 8px 18px 0; text-align: left; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--cloth-line);
  color: var(--ivory-soft); transition: color .2s var(--ease-out), padding-left .3s var(--ease-out);
}
.contents-list [role="tab"]::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--gilt);
  transition: width .3s var(--ease-out);
}
.toc-no { font: 400 1rem/1 var(--serif); color: var(--gilt); }
.toc-name { font: 400 1.18rem/1.3 var(--display); }

.contents-list [role="tab"]:hover { color: var(--ivory); }
.contents-list [role="tab"][aria-selected="true"] { color: var(--ivory); padding-left: 22px; }
.contents-list [role="tab"][aria-selected="true"]::before { width: 12px; }

.service { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 52px); }
.service:not([hidden]) { animation: turn .45s var(--ease-out) both; }
@keyframes turn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.service:focus-visible { outline-offset: 12px; }
.service-text { display: grid; gap: 24px; }
.service-text > :not(figure) { max-width: 68ch; }
.service-text .plate { margin: 10px 0 14px; }
.service-text .plate-mount img { max-height: min(46vh, 430px); width: auto; margin: 0 auto; }
.service-text .plate-pair .plate-mount img { max-height: 340px; }
.service h3 { font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.1; }
.service-lede { font: 400 1.2rem/1.55 var(--serif); color: var(--ivory); }
.engagements { display: grid; gap: 14px; }
.engagements li { position: relative; padding-left: 26px; color: var(--ivory-soft); }
.engagements li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--gilt); }
.engagements strong { font-weight: 600; color: var(--ivory); }
.record { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--gilt-dim); border-bottom: 1px solid var(--gilt-dim); }
.record div { padding: 18px 28px 16px 0; margin-right: 28px; border-right: 1px solid var(--cloth-line); }
.record div:last-child { border-right: 0; margin-right: 0; }
.record dt { font: 400 2rem/1 var(--display); color: var(--gilt-bright); font-variant-numeric: lining-nums; }
.record dd { margin: 8px 0 0; font-size: .85rem; color: var(--ink-muted); max-width: 16ch; }
.testament { font: 400 1.15rem/1.55 var(--serif); padding: 18px 0; border-top: 1px solid var(--gilt-dim); border-bottom: 1px solid var(--gilt-dim); }
.testament em { color: var(--gilt-bright); }
.plate-pair { grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 26px; }
.plate-pair figcaption { grid-column: 1 / -1; }

/* §3 */
.plate-wide { margin-bottom: clamp(56px, 6vw, 88px); }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.clauses-tight { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
.colophon { padding: 26px 26px 22px; border: 1px solid var(--gilt-dim); box-shadow: inset 0 0 0 4px var(--cloth), inset 0 0 0 5px rgba(201, 166, 90, .18); }
.colophon h3 { font-size: 1.15rem; color: var(--gilt-bright); margin-bottom: 14px; }
.colophon li { padding: 9px 0; border-top: 1px solid var(--cloth-line); color: var(--ivory-soft); font-size: .95rem; }

/* §4 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--gilt-dim); }
.steps li { padding: 26px clamp(18px, 2vw, 32px) 30px 0; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.steps li + li { padding-left: clamp(18px, 2vw, 32px); border-left: 1px solid var(--cloth-line); }
.step-no { font: 400 1.5rem/1 var(--serif); color: var(--gilt); }
.steps p { color: var(--ivory-soft); }
.clients { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: 0px minmax(0, 3fr) minmax(0, 8fr); }
.clients h3 { grid-column: 2; padding-right: 24px; }
.clients p { grid-column: 3; font: 400 1.2rem/1.7 var(--serif); color: var(--ivory-soft); max-width: 62ch; }

/* §5 */
.principal { display: grid; grid-template-columns: 0px minmax(240px, 4fr) minmax(0, 8fr); column-gap: 0; }
.principal-card { grid-column: 2; padding-right: clamp(24px, 4vw, 64px); display: grid; gap: 10px; align-content: start; }
.principal-name { font: 400 clamp(2rem, 1.4rem + 1.4vw, 2.8rem)/1.05 var(--display); }
.principal-role { font: 400 1.05rem/1.5 var(--serif); color: var(--gilt-bright); }
.badges { display: flex; gap: 14px; margin-top: 18px; }
.badges li { width: 74px; height: 74px; padding: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--gilt-dim), 0 0 0 4px var(--cloth), 0 0 0 5px rgba(201, 166, 90, .2); }
.badges img { width: 100%; height: 100%; object-fit: contain; }
.principal-text { grid-column: 3; display: grid; gap: 20px; max-width: 66ch; }
.principal-text p:not(.lede) { color: var(--ivory-soft); }

/* §6 Enquire */
.enquire { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.optional { color: var(--ink-muted); letter-spacing: .08em; text-transform: lowercase; font-weight: 400; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 0; caret-color: var(--gilt-bright);
  background: rgba(8, 20, 22, .45); border: 1px solid var(--cloth-line); border-bottom-color: var(--gilt-dim); color: var(--ivory);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23c9a65a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--cloth-deep); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d5f63; border-bottom-color: var(--gilt); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gilt); background: rgba(8, 20, 22, .65); }
.field [aria-invalid] { border-color: var(--rust); }
.field-error { min-height: 0; font-size: .85rem; color: var(--rust); }
.field-error:empty { display: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.form-status { font-size: .95rem; color: var(--ivory-soft); max-width: 52ch; }
.form-status[data-state="success"] { color: var(--gilt-bright); font: 400 1.1rem/1.5 var(--serif); }
.form-status[data-state="error"] { color: var(--rust); }
.form-status a { color: var(--ivory); }

.contact { font-style: normal; display: grid; gap: 6px; padding: 28px 0 0; border-top: 1px solid var(--gilt-dim); }
.contact-label { font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); margin-top: 20px; }
.contact-label:first-child { margin-top: 0; }
.contact p { color: var(--ivory-soft); }
.contact a { color: var(--ivory); }
.contact-email { font: 400 1.15rem/1.4 var(--serif); overflow-wrap: anywhere; }
.contact .button-small { justify-self: start; margin-top: 8px; }

/* Footer */
.colophon-foot { border-top: 1px solid var(--gilt-dim); background: var(--cloth-deep); }
.foot-inner { width: var(--page); margin: auto; padding: 48px 0 56px; display: grid; grid-template-columns: auto 1fr; gap: 10px 48px; align-items: center; }
.brand-foot { grid-row: span 3; }
.foot-inner p { font-size: .85rem; color: var(--ink-muted); }

/* Motion: plates develop into view once */
.can-reveal [data-reveal] .plate-mount { clip-path: inset(0 0 100% 0); filter: blur(6px); transition: clip-path .9s var(--ease-out), filter .9s var(--ease-out); }
.can-reveal [data-reveal] figcaption { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease-out) .35s, transform .6s var(--ease-out) .35s; }
.can-reveal [data-reveal].is-revealed .plate-mount { clip-path: inset(-12px -12px -40px -12px); filter: none; }
.can-reveal [data-reveal].is-revealed figcaption { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1240px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; cursor: pointer;
    font: 500 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory);
    position: relative; z-index: 2;
  }
  .menu-icon { width: 20px; height: 9px; border-top: 1px solid var(--gilt); border-bottom: 1px solid var(--gilt); transition: transform .3s var(--ease-out); }
  .menu-open .menu-icon { transform: scaleX(.7); border-bottom-color: transparent; }
  .menu-open .masthead { background: var(--cloth-deep); }
  #site-nav {
    position: fixed; inset: var(--masthead) 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 32px var(--gutter) 40px; background: var(--cloth-deep); overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .menu-open #site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  #site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--gilt-dim); }
  #site-nav ul a { display: flex; gap: 16px; padding: 20px 0; font: 400 1.7rem/1 var(--display); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--cloth-line); }
  #site-nav ul a::after { display: none; }
  .nav-enquire { text-align: center; padding: 18px; }
  .nav-divider { margin-top: 0; }
}
@media (max-width: 960px) {
  :root { --masthead: 64px; }

  .frontispiece { grid-template-columns: 1fr; min-height: 0; }
  .plate-hero .plate-mount { aspect-ratio: 1 / 1; }
  .contents { grid-template-columns: 1fr; }
  .contents-list { position: static; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; gap: 0; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .contents-list::-webkit-scrollbar { display: none; }
  .contents-list [role="tab"] { scroll-snap-align: start; border-top: 1px solid var(--cloth-line); border-bottom: 1px solid var(--cloth-line); padding: 16px 18px; }
  .contents-list [role="tab"][aria-selected="true"] { padding-left: 18px; border-top-color: var(--gilt); background: rgba(8, 20, 22, .4); }
  .contents-list [role="tab"]::before { display: none; }
  .toc-name { font-size: 1.05rem; }
  .analysis-grid, .enquire { grid-template-columns: 1fr; }
  .practice-body, .principal, .clients { grid-template-columns: 1fr; row-gap: 28px; }
  .practice-body > *, .principal > *, .clients > * { grid-column: 1 !important; padding-right: 0 !important; }
  .clauses { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--cloth-line); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .chapter-head { row-gap: 14px; }
  .chapter-no { padding-top: 0; font-size: 1.5rem; }
  .chapter-intro { grid-column: 1 / -1; }
  .clauses-tight, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--cloth-line); }
  .enquiry { grid-template-columns: 1fr; }
  .record { grid-template-columns: 1fr; }
  .record div { border-right: 0; margin-right: 0; padding: 14px 0; }
  .record div + div { border-top: 1px solid var(--cloth-line); }
  .plate-pair { grid-template-columns: 1fr; row-gap: 14px; }
  .front-creds div { grid-template-columns: 1fr; gap: 2px; }
  .foot-inner { grid-template-columns: 1fr; }
  .brand-foot { grid-row: auto; }
}

/* ---------- Revision 2 ---------- */

.nav-divider { margin-left: clamp(4px, 1vw, 14px); padding-left: clamp(14px, 1.6vw, 26px); border-left: 1px solid var(--cloth-line); }
#site-nav ul a { letter-spacing: .1em; white-space: nowrap; }
#site-nav ul { gap: clamp(14px, 1.5vw, 26px); }

/* Model stage and service markers */
.model-stage { position: relative; width: 100%; height: 100%; }
.model-markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; inset: 0 auto auto 0; width: 0; height: 0; pointer-events: none; text-decoration: none; color: var(--ivory); }
.marker-dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gilt-bright); box-shadow: 0 0 0 3px rgba(224, 194, 126, .28), 0 0 0 8px rgba(224, 194, 126, .08);
}
.marker-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; padding: 6px 10px; pointer-events: auto;
  font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(13, 27, 30, .88); border: 1px solid var(--gilt-dim);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), opacity .3s var(--ease-out);
}
.marker-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.marker-leaders polyline { fill: none; stroke: var(--gilt); stroke-width: .9; opacity: .75; transition: opacity .3s var(--ease-out); }
.marker-leaders polyline.is-far, .marker.is-far .marker-dot { opacity: .4; }
.marker:hover .marker-label, .marker:focus-visible .marker-label { background: var(--gilt); color: var(--cloth-deep); border-color: var(--gilt); }
.marker:focus-visible { outline: none; }
.marker:focus-visible .marker-label { outline: 1.5px solid var(--gilt-bright); outline-offset: 3px; }

.service-ribbon { display: none; }
@media (max-width: 700px) {
  .model-markers { display: none; }
  .service-ribbon { display: flex; flex-wrap: wrap; gap: 4px 20px; grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--gilt-dim); }
}

.service-ribbon a {
  font: 400 1.12rem/1.2 var(--display); color: var(--ivory-soft); text-decoration: none; padding: 6px 0;
  transition: color .2s var(--ease-out);
}
.service-ribbon a:hover { color: var(--gilt-bright); }

/* Premium photograph plate with callouts */
.photo-frame { position: relative; overflow: hidden; }
.photo-frame img { width: 100%; filter: saturate(.72) contrast(1.06) brightness(.97) sepia(.1); }
.photo-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 40% 40%, transparent 55%, rgba(16, 32, 34, .45) 100%),
              linear-gradient(180deg, rgba(20, 41, 45, .12), rgba(20, 41, 45, .22));
}
.callout { position: absolute; z-index: 1; display: flex; align-items: center; }
.callout::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(239, 233, 220, .35); }
.callout-line { width: clamp(28px, 5vw, 64px); height: 1px; background: var(--paper); }
.callout-text {
  padding: 6px 10px; font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--ivory); background: rgba(16, 34, 37, .86); border: 1px solid var(--gilt-dim);
}
.callout-casing { left: calc(47% - 4px); top: 44%; }
.callout-props { right: calc(18% - 4px); top: 21%; flex-direction: row-reverse; }
.can-reveal [data-reveal] .callout { opacity: 0; transition: opacity .6s var(--ease-out) .7s; }
.can-reveal [data-reveal].is-revealed .callout { opacity: 1; }

/* Buttons */
.button-outline { background: transparent; border-color: var(--gilt); color: var(--gilt-bright); }
.button-outline:hover { background: var(--gilt); color: var(--cloth-deep); }
.button-ink { background: var(--cloth-deep); color: var(--ivory); }
.button-ink:hover { background: #1d3a40; }

/* Forensic: how the evidence is built */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gilt-dim); border-bottom: 1px solid var(--gilt-dim); }
.evidence li { display: grid; gap: 8px; align-content: start; padding: 20px 22px 22px 0; color: var(--ivory-soft); font-size: .95rem; }
.evidence li + li { padding-left: 22px; border-left: 1px solid var(--cloth-line); }
.evidence-step { font: 400 1.35rem/1.1 var(--serif); color: var(--gilt-bright); }

/* §4 Credentials */
.credentials { display: grid; grid-template-columns: 0px minmax(220px, 4fr) minmax(0, 8fr); align-items: start; }
.portrait { grid-column: 2; margin-right: clamp(28px, 4vw, 64px); }
.portrait figcaption { grid-template-columns: 1fr; }
.portrait .plate-title { font-size: 1.15rem; }
.credentials-text { grid-column: 3; display: grid; gap: 20px; max-width: 68ch; }
.credentials-text > p:not(.lede):not(.principal-role) { color: var(--ivory-soft); }
.cred-list { border-top: 1px solid var(--gilt-dim); margin-top: 8px; }
.cred-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--cloth-line); }
.cred-list strong { font: 500 .78rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.cred-list span { color: var(--ivory-soft); }

.casebook { margin-top: clamp(64px, 7vw, 104px); display: grid; grid-template-columns: 0px minmax(0, 1fr); }
.casebook > * { grid-column: 2; }
.casebook h3 { margin-bottom: 26px; }
.casebook h3 span { display: block; margin-top: 6px; font: 400 1rem/1.4 var(--serif); color: var(--ink-muted); }
.casebook ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.casebook li { display: grid; gap: 10px; align-content: start; padding: 24px 0 28px; border-top: 1px solid var(--cloth-line); }
.casebook h4 { margin: 0; font: 400 1.35rem/1.25 var(--display); }
.casebook li p { color: var(--ivory-soft); max-width: 56ch; }
.casebook .case-tag { font: 500 .72rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }

/* Sydney Water: a cream band, the capability statement set into the page */
.band-paper {
  --cap-ink: var(--ivory); --cap-muted: var(--ink-muted); --cap-gilt: var(--gilt-bright); --cap-rule: var(--cloth-line);
  color: var(--cap-ink); padding: var(--rhythm) 0;
}
.cap-sheet { width: var(--page); margin: 0 auto; }
.cap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.cap-kind { font: 500 .76rem/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cap-muted); }
.cap-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.cap-copy { display: grid; gap: 24px; }
.band-paper h2 { grid-column: auto; font: 400 clamp(2.3rem, 1.3rem + 2.8vw, 4rem)/1.04 var(--display); color: var(--cap-ink); }
.band-paper h2 em { display: block; font: 400 .9em/1.15 var(--serif); color: var(--cap-gilt); }
.cap-lede { font-size: 1.05rem; line-height: 1.7; color: var(--ivory-soft); max-width: 60ch; }
.cap-scope { border-top: 1px solid var(--cap-rule); }
.cap-scope li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--cap-rule); }
.cap-code { grid-row: span 2; font: 600 .74rem/1.9 var(--sans); letter-spacing: .14em; color: var(--cap-gilt); }
.cap-scope strong { font: 400 1.18rem/1.3 var(--display); }
.cap-scope li > span:last-child { font-size: .92rem; color: var(--cap-muted); }
.cap-figure { margin: 0; display: grid; gap: 12px; }

.cap-figure figcaption { font: 400 .98rem/1.45 var(--serif); color: var(--cap-muted); }
.cap-figure .plate-no { color: var(--rust); margin-right: 6px; }
.cap-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--gilt-dim); border-bottom: 1px solid var(--cap-rule); }
.cap-stats div { padding: 26px 16px 22px; text-align: center; }
.cap-stats div + div { border-left: 1px solid var(--cap-rule); }
.cap-stats dt { font: 400 clamp(2.2rem, 1.4rem + 2vw, 3.2rem)/1 var(--display); color: var(--cap-ink); font-variant-numeric: lining-nums; }
.cap-stats dd { margin: 10px 0 0; font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cap-muted); }
.cap-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 26px; }
.cap-foot p { font: 400 1.1rem/1.5 var(--serif); color: var(--ivory-soft); }


@media (max-width: 960px) {
  .credentials, .casebook { grid-template-columns: 1fr; }
  .portrait, .credentials-text, .casebook > * { grid-column: 1; }
  .portrait { max-width: 320px; margin: 0 0 32px; }
  .cap-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .evidence { grid-template-columns: 1fr; }
  .evidence li, .evidence li + li { padding: 16px 0; border-left: 0; }
  .evidence li + li { border-top: 1px solid var(--cloth-line); }
  .casebook ol { grid-template-columns: 1fr; }
  .cred-list li { grid-template-columns: 1fr; gap: 2px; }
  .cap-kind-right { display: none; }
  .cap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-stats div:nth-child(3) { border-left: 0; }
  .cap-stats div:nth-child(n+3) { border-top: 1px solid var(--cap-rule); }
  .callout-text { font-size: .7rem; padding: 4px 7px; }
  .service-ribbon a { font-size: 1rem; }
}

.service-text .plate-photo .plate-mount img { max-height: none; width: 100%; }
.casebook li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* EB Garamond sets small on the body: display weight and lead sizes tuned to it */
h1 { font-size: clamp(2.7rem, 1.35rem + 4vw, 4.9rem); font-weight: 500; letter-spacing: -.02em; }
.standfirst, .service-lede, .chapter-intro, .lede { font-size: 1.24rem; }
.foot-legal { grid-column: 2; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 600px) { .foot-legal { grid-column: 1; } }

/* Upright throughout: emphasis is carried by colour, not slant */
em, i, cite { font-style: normal; }
.practice-name em, .testament em { color: var(--gilt-bright); }

/* Credentials: principal and partner consultant, one at a time */
.people { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 clamp(36px, 5vw, 56px) 0px; }
.person-tab {
  display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid var(--cloth-line); color: var(--ivory-soft);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.person-tab img { width: 52px; height: 52px; object-fit: cover; object-position: 50% 20%; filter: grayscale(.85) brightness(.85); transition: filter .3s var(--ease-out); }
.person-tab > span { display: grid; gap: 4px; }
.person-tab strong { font: 500 1.2rem/1.1 var(--display); color: inherit; }
.person-tab > span > span { font: 500 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.person-tab:hover { border-color: var(--gilt-dim); color: var(--ivory); }
.person-tab:hover img { filter: grayscale(.3) brightness(.95); }
.person-tab[aria-selected="true"] { border-color: var(--gilt); background: rgba(8, 20, 22, .35); color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gilt); }
.person-tab[aria-selected="true"] img { filter: none; }
.person-tab[aria-selected="true"] > span > span { color: var(--gilt-bright); }
.person:not([hidden]) { animation: turn .5s var(--ease-out) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
@media (max-width: 960px) { .people { margin-left: 0; } }
@media (max-width: 600px) { .person-tab { flex: 1 1 100%; } }
.credentials-text .lede { max-width: 62ch; }
