/* Rob Todd Law, "Six Doors" build. Shared by the home page and the six practice pages. */

:root {
  --bg: #ecebe7; --paper: #fff; --ink: #0d0d0f; --ink-2: #2b2a30; --soft: #56555b; --line: rgba(13, 13, 15, .15);
  --c: #0d0d0f; --cd: #0d0d0f;            /* a practice page sets its own colour pair */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 3.2vw, 48px);
  --bar: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 12px); }
html.play { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* height:auto matters: every <img> carries width/height attributes, and without it the
   height attribute is used literally (a 1067px-tall photo on a phone). */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; } ul, ol { list-style: none; } fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }
.tag { font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.big { font-weight: 800; font-stretch: 88%; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: .98; letter-spacing: -.028em; word-spacing: .07em; text-wrap: balance; }
.big em { font-style: normal; color: var(--cd); }

.btn { display: inline-flex; align-items: center; gap: .6em; padding: 1.05em 1.5em; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.btn:hover { background: #33323a; } .btn:active { transform: scale(.98); }
.btn.sm { padding: .8em 1.2em; font-size: .7rem; }
.btn.light { background: #fff; color: var(--ink); } .btn.light:hover { background: var(--ink); color: #fff; }
.tel { font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); background: rgba(236, 235, 231, .9); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.bar.stuck { border-bottom-color: var(--line); }
.logo { font-weight: 900; font-stretch: 122%; font-size: 1.05rem; letter-spacing: -.01em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .3s; }
.nav a:hover, .nav a[aria-current] { border-color: var(--ink); }
.bar-right { display: flex; align-items: center; gap: 18px; }

/* ---------- home: first screen ---------- */
.screen { min-height: calc(max(100svh, 700px) - var(--bar)); display: grid; grid-template-rows: auto 1fr; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: end; padding: clamp(12px, 2.4vh, 26px) var(--pad) clamp(16px, 2.6vh, 28px); }
.intro h1 { margin-top: 12px; font-weight: 800; font-stretch: 88%; font-size: clamp(2.3rem, min(5.3vw, 8.6vh), 5.2rem); line-height: .96; letter-spacing: -.028em; word-spacing: .07em; max-width: 17ch; }
.intro h1 span { display: block; overflow: hidden; padding-bottom: .08em; }
.intro h1 span b { display: block; font-weight: inherit; }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(12px, 2vh, 22px); }
.lede { max-width: 46ch; font-size: clamp(.98rem, 1.15vw, 1.14rem); font-weight: 500; color: var(--ink-2); }
.rob-card { position: relative; align-self: stretch; width: clamp(300px, 34vw, 500px); min-height: 240px; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate; box-shadow: 0 18px 44px rgba(13, 13, 15, .16); }
.rob-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 16%; transition: transform 1.6s var(--ease); }
.rob-card:hover img { transform: scale(1.04); }
.rob-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 15, .82) 0%, rgba(13, 13, 15, 0) 52%); }
.rob-card > div { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.rob-card b { display: block; font-weight: 800; font-stretch: 110%; font-size: clamp(1.3rem, 1.9vw, 1.8rem); letter-spacing: -.02em; line-height: 1.05; }
.rob-card span { display: block; margin-top: 4px; font-size: .84rem; line-height: 1.35; opacity: .9; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: .55em .9em; border-radius: 999px; background: rgba(13, 13, 15, .55); color: #fff; backdrop-filter: blur(8px); }
.rob-card .chip { position: absolute; left: 14px; top: 14px; margin: 0; opacity: 1; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #a09ea6; }
.live.on i { background: #22b260; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 178, 96, .55); } 100% { box-shadow: 0 0 0 10px rgba(34, 178, 96, 0); } }

/* ---------- the doors (home hero, and "the other five" on practice pages) ---------- */
.doors { display: flex; gap: 8px; padding: 0 var(--pad) clamp(14px, 2.4vh, 26px); min-height: 300px; }
.door { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border-radius: 18px; overflow: hidden; color: #fff; background: var(--c); isolation: isolate; transition: flex-grow .7s var(--ease); }
.door img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1.03)); transition: transform 1.4s var(--ease); }
.door::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--c); mix-blend-mode: color; transition: opacity .6s ease; }
.door .veil { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 15, .86) 0%, rgba(13, 13, 15, .1) 55%, rgba(13, 13, 15, .35) 100%); }
.door-top { display: flex; justify-content: space-between; align-items: center; }
.door-top .n { font-weight: 800; font-stretch: 115%; font-size: .82rem; letter-spacing: .06em; }
.door-top .go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1rem; transform: rotate(-45deg); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.door h2, .door h3 { font-weight: 800; font-stretch: 90%; font-size: clamp(1.15rem, 1.75vw, 1.75rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.door p { margin-top: 8px; font-size: .86rem; line-height: 1.35; opacity: .9; }
.door ul { display: grid; gap: 4px; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: .84rem; font-weight: 600; transition: max-height .6s var(--ease), opacity .4s ease, margin-top .6s var(--ease); }
.door li::before { content: "+ "; opacity: .7; }
.door:hover, .door:focus-visible, .door.open { flex-grow: 1.75; }
.door:hover::before, .door:focus-visible::before, .door.open::before { opacity: 0; }
.door:hover img, .door:focus-visible img, .door.open img { transform: scale(calc(var(--z, 1.03) + .06)); }
.door:hover .go, .door:focus-visible .go, .door.open .go { transform: rotate(0deg); background: var(--c); color: #fff; }
.door:hover ul, .door:focus-visible ul, .door.open ul { max-height: 120px; opacity: 1; margin-top: 12px; }
.door:focus-visible { outline-offset: -3px; outline-color: #fff; }

/* ---------- tape ---------- */
.tape { overflow: hidden; background: var(--ink); color: var(--bg); }
.tape > div { display: flex; width: max-content; }
.play .tape > div { animation: tape 44s linear infinite; }
.tape:hover > div { animation-play-state: paused; }
.tape ul { display: flex; flex: none; }
.tape li { display: flex; align-items: center; gap: 26px; padding: 15px 0 15px 26px; font-weight: 700; font-stretch: 108%; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tape li::after { content: ""; width: 8px; height: 8px; background: var(--bg); transform: rotate(45deg); opacity: .5; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 132px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 54px); }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 66% 30%; border-radius: 18px; }
.about-copy { display: grid; gap: 18px; }
.about-copy > p:not(.tag) { max-width: 56ch; font-size: 1.06rem; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 60px); margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-weight: 800; font-stretch: 88%; font-size: clamp(2.8rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 6px; color: var(--soft); }

.tl { margin-top: clamp(48px, 7vw, 100px); }
.tl-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--line); }
.tl-fill { position: absolute; left: 0; top: -2px; height: 2px; width: 25%; background: var(--ink); transition: width .7s var(--ease); }
.tl-stop { position: relative; background: none; border: 0; padding: 20px 8px 0 0; text-align: left; cursor: pointer; color: var(--soft); transition: color .4s; }
.tl-stop::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transition: background-color .4s, transform .4s var(--ease); }
.tl-stop.past::before, .tl-stop.on::before { background: var(--ink); }
.tl-stop.on::before { transform: scale(1.3); }
.tl-stop b { font-weight: 800; font-stretch: 90%; font-size: clamp(1.05rem, 2.1vw, 1.9rem); letter-spacing: -.02em; }
.tl-stop.on, .tl-stop:hover { color: var(--ink); }
.tl-cards { display: grid; margin-top: clamp(22px, 3vw, 36px); }
.tl-card { grid-area: 1 / 1; max-width: 60ch; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease), visibility 0s linear .4s; }
.tl-card.on { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.tl-card h3 { font-weight: 800; font-stretch: 92%; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 8px; }
.tl-card p { color: var(--ink-2); font-size: 1.04rem; }

.hall { background: var(--ink); color: var(--bg); }
.hall-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hall .big em { color: #ff8f7a; }
.hall p:not(.tag) { margin-top: 18px; max-width: 52ch; font-size: 1.06rem; color: rgba(236, 235, 231, .78); }
.hall-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hall figure { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 5 / 4; }
.hall figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.langs { text-align: center; }
.lang-line { margin: 14px 0 26px; min-height: 1.05em; font-weight: 800; font-stretch: 84%; font-size: clamp(3rem, 11vw, 10rem); line-height: 1; letter-spacing: -.045em; }
.lang-line span { display: inline-block; }
.lang-line.swap span { animation: swap .6s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(.2em); } to { opacity: 1; transform: none; } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; cursor: pointer; padding: .65em 1.15em; border-radius: 999px; transition: background-color .3s, color .3s; }
.seg button.on { background: var(--ink); color: var(--bg); }
.lang-note { margin-top: 18px; color: var(--soft); }

.intake-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.ask { background: var(--paper); border-radius: 22px; padding: clamp(20px, 3.4vw, 48px); box-shadow: 0 20px 50px rgba(13, 13, 15, .08); }
.sentence { margin-top: 20px; max-width: 36ch; font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; color: var(--soft); }
.sentence b { color: var(--cd); font-weight: 700; border-bottom: 2px solid currentColor; }
.ask fieldset { margin-top: 30px; }
.ask legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--soft); }
.ask legend span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .68rem; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer; padding: .62em 1.05em; font-size: .93rem; font-weight: 500; line-height: 1.2; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.chips button:hover { border-color: var(--ink); }
.chips button:active { transform: scale(.97); }
.chips button.on { background: var(--k, var(--ink)); border-color: var(--k, var(--ink)); color: #fff; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.fields .full { grid-column: 1 / -1; }
.fields label { color: var(--soft); }
.fields label i { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 400; }
.fields input, .fields textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--bg); border: 1.5px solid transparent; border-radius: 10px; color: var(--ink); font: 400 1rem/1.4 "Archivo", sans-serif; letter-spacing: 0; text-transform: none; resize: vertical; transition: border-color .25s, background-color .25s; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.fields .bad { border-color: #d0342c; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.fine { font-size: .8rem; line-height: 1.5; color: var(--soft); }
.ask-foot .fine { max-width: 32ch; }
.sent { margin-top: 26px; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 14px; }
.sent h3 { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 8px; }
.sent p { margin-bottom: 12px; }
.ask.done fieldset, .ask.done .ask-foot, .ask.done .sentence { display: none; }
.office { position: sticky; top: calc(var(--bar) + 24px); }
.office .live { color: var(--ink); background: none; padding: 0; backdrop-filter: none; }
.office-phone { display: block; margin: 12px 0 26px; font-weight: 800; font-stretch: 88%; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.office dl { display: grid; gap: 18px; }
.office dt { color: var(--soft); margin-bottom: 3px; }
.office dd a { border-bottom: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 24px 48px; align-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .9rem; }
.foot-links a { border-bottom: 1px solid var(--line); }
.mbar { display: none; }

/* ---------- practice pages ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: min(78svh, 760px); }
.p-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(22px, 3.4vw, 52px) clamp(20px, 3.4vw, 56px) clamp(26px, 4vw, 56px) var(--pad); background: var(--cd); color: #fff; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: .6em 1em; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 999px; transition: background-color .3s, color .3s; }
.back:hover { background: #fff; color: var(--cd); }
.p-panel h1 { font-weight: 800; font-stretch: 86%; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .92; letter-spacing: -.035em; word-spacing: .06em; text-wrap: balance; }
.p-panel .lede { margin-top: 20px; color: rgba(255, 255, 255, .92); max-width: 44ch; }
.p-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.p-photo { position: relative; overflow: hidden; background: var(--cd); min-height: 280px; }
.p-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1.02)); }
.play .p-photo img { animation: settle 2.6s var(--ease) both; }
@keyframes settle { from { transform: scale(calc(var(--z, 1.02) + .1)); } to { transform: scale(var(--z, 1.02)); } }

.p-lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(22px, 5vw, 80px); align-items: start; }
.p-lead p { font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--ink-2); }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(30px, 5vw, 64px); }
.case { position: relative; padding: clamp(20px, 2.6vw, 34px); border-radius: 18px; background: var(--paper); transition: transform .5s var(--ease), background-color .4s, color .4s; }
.case:hover { transform: translateY(-4px); background: var(--cd); color: #fff; }
.case .n { color: var(--cd); transition: color .4s; }
.case:hover .n { color: rgba(255, 255, 255, .8); }
.case h3 { margin: 12px 0 10px; font-weight: 800; font-stretch: 92%; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.05; letter-spacing: -.02em; }
.case p { color: var(--ink-2); transition: color .4s; }
.case:hover p { color: rgba(255, 255, 255, .9); }
.handles { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(22px, 5vw, 80px); padding: clamp(24px, 4vw, 56px); border-radius: 22px; background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.handles ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.handles li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.handles li::before { content: "+"; color: var(--cd); font-weight: 800; }
.band { background: var(--cd); color: #fff; }
.band-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.band .big em { color: #fff; opacity: .7; }
.others .doors { padding-inline: 0; min-height: 250px; }

/* ---------- entrance and reveal: only when the page is actually being painted ---------- */
.play .intro h1 span b, .play .p-panel h1 { animation: rise 1s var(--ease) both; }
.play .intro h1 span:nth-child(2) b { animation-delay: .09s; } .play .intro h1 span:nth-child(3) b { animation-delay: .18s; }
.play .sub, .play .rob-card { animation: fade .9s var(--ease) .4s both; }
.play .screen .door { animation: up 1s var(--ease) calc(.35s + var(--i) * .07s) both; }
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.play .p-panel h1 { animation-name: fade; }
.play .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.play .rv.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
/* the menu stays in the bar down to tablet landscape; between 861 and 1000 px the phone number makes room for it */
@media (min-width: 861px) and (max-width: 1000px) { .bar-right .tel { display: none; } .nav { gap: 18px; } }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 860px) {
  :root { --bar: 60px; }
  .bar-right .tel { display: none; }
  .screen { min-height: 0; }
  .intro { grid-template-columns: 1fr; align-items: start; }
  .intro h1 { font-size: clamp(2.1rem, 9.6vw, 3.2rem); }
  .rob-card { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .rob-card img { object-position: 66% 14%; }
  .doors { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
  .door { min-height: 190px; padding: 13px; }
  /* an odd card at the end of the two-column grid (the other five practices) spans both columns */
  .doors > .door:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .door ul { display: none; }
  .door p { font-size: .8rem; }
  .door-top .go { width: 28px; height: 28px; font-size: .85rem; }
  .about, .hall-grid, .intake-grid, .p-lead, .handles, .foot-grid { grid-template-columns: 1fr; }
  .about figure img { aspect-ratio: 5 / 4; object-position: 60% 26%; }
  .fields, .handles ul, .cases { grid-template-columns: 1fr; }
  .office { position: static; }
  .p-hero { grid-template-columns: 1fr; min-height: 0; }
  .p-photo { order: -1; height: 40svh; }
  .foot { padding-bottom: 96px; }
  .mbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.3fr; background: var(--ink); color: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { padding: 16px 10px; text-align: center; font-weight: 700; font-size: .9rem; }
  .mbar a + a { background: var(--c); color: #fff; }
  body.home .mbar a + a { background: #fff; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Added for the full site: breadcrumbs, quick answers, FAQs, blog,
   long-form pages (posts and legal), 404 and form states.
   ===================================================================== */
.trail ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.trail li + li::before { content: "/"; opacity: .5; margin-right: 8px; }
.trail a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.trail a:hover { border-color: currentColor; }
.trail [aria-current] { opacity: .75; }
.p-top { align-items: flex-start; }
.post-meta { margin-top: 18px; opacity: .85; }
.post-hero .p-panel h1 { font-size: clamp(2rem, 4.2vw, 4rem); line-height: .98; }

.sec-head.split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }
.sec-head.split .big { max-width: 22ch; }

.quick { margin-top: clamp(26px, 4vw, 52px); padding: clamp(20px, 2.8vw, 36px); border-radius: 18px; background: var(--paper); border-left: 6px solid var(--cd); }
.quick .tag { color: var(--cd); }
.quick h2 { margin: 10px 0 8px; font-weight: 800; font-stretch: 92%; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
.quick p:not(.tag) { max-width: 78ch; font-size: 1.08rem; color: var(--ink-2); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.qas { margin-top: 22px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 2px; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(1.02rem, 1.3vw, 1.18rem); letter-spacing: -.01em; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); font-weight: 600; font-size: 1.1rem; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.qa summary:hover { color: var(--cd); }
.qa[open] summary::after { transform: rotate(45deg); background: var(--cd); color: #fff; }
.qa p { padding: 0 48px 20px 2px; max-width: 72ch; color: var(--ink-2); font-size: 1.04rem; }
.related { display: grid; gap: 12px; }
.related .card { opacity: 1; transform: none; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--paper); transition: transform .5s var(--ease), box-shadow .5s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(13, 13, 15, .12); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cd); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(16px, 1.8vw, 24px); }
.card-tag { color: var(--cd); }
.card h2, .card h3 { font-weight: 800; font-stretch: 92%; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.12; letter-spacing: -.02em; }
.card-desc { color: var(--soft); font-size: .95rem; }
.card-more { margin-top: auto; padding-top: 8px; }
.card[hidden] { display: none; }
.filter { margin-bottom: clamp(20px, 3vw, 34px); border-radius: 22px; }

.article { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 7vw, 100px); }
.toc { position: sticky; top: calc(var(--bar) + 24px); display: grid; gap: 16px; }
.toc-d summary { list-style: none; pointer-events: none; }
.toc-d summary::-webkit-details-marker { display: none; }
.toc ol { display: grid; gap: 2px; margin-top: 16px; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--soft); font-size: .93rem; line-height: 1.3; transition: color .25s, border-color .25s; }
.toc ol a:hover { color: var(--ink); border-color: var(--cd); }
.toc .btn { justify-self: start; }
.prose { max-width: 72ch; min-width: 0; }
.prose .quick { margin-top: 0; }
.prose h2 { margin: 1.9em 0 .5em; font-weight: 800; font-stretch: 92%; font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.1; letter-spacing: -.02em; scroll-margin-top: calc(var(--bar) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }
.prose a:not(.btn) { color: var(--cd); border-bottom: 1px solid currentColor; }
.prose ul { margin: 0 0 1.1em; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 1.06rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--cd); transform: rotate(45deg); }
.takeaways { margin-top: 22px !important; padding: 22px 24px; border-radius: 18px; background: color-mix(in srgb, var(--c) 11%, var(--bg)); }
.takeaways li { font-weight: 600; }
.prose .qas { margin-top: 8px; }
.sources li { font-size: .96rem !important; }
.note { margin-top: 2.2em !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem !important; color: var(--soft) !important; }
.more { margin-top: 1.6em !important; }

.nf { min-height: calc(100svh - var(--bar)); padding-bottom: 0; }
.nf .doors { min-height: 280px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #fbe9e7; color: #8f231c; font-size: .95rem; }
.form-error a { border-bottom: 1px solid currentColor; }
.ask.busy .btn[type="submit"] { opacity: .6; pointer-events: none; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .faq-grid, .article, .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px; border-radius: 14px; background: var(--paper); }
  /* on a phone the list starts closed (app.js) so the article comes first; tap to open */
  .toc-d summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; pointer-events: auto; cursor: pointer; }
  .toc-d summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); font-size: 1.1rem; letter-spacing: 0; transition: transform .4s var(--ease); }
  .toc-d[open] summary::after { transform: rotate(45deg); }
  .qa p { padding-right: 8px; }
  .p-top { flex-wrap: wrap; }
}

/* message shown back to the visitor when the form hands off to their email app */
.sent-copy { margin: 0 0 12px; padding: 14px 16px; border-radius: 10px; background: var(--bg); font: 400 .95rem/1.5 "Archivo", system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { padding: .1em .4em; border-radius: 5px; background: var(--paper); font-size: .92em; }

/* ---------- About photo: the portrait behind six practice-colour panels ----------
   The frame is 5:4 so that Rob's face is narrower than one panel and sits inside the fifth.
   If the photo or the frame shape changes, re-check that no gap crosses his face. */
.about figure.six {
  position: relative; aspect-ratio: 5 / 4; isolation: isolate;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc((100% - 40px) / 6), transparent 0 calc((100% - 40px) / 6 + 8px));
          mask-image: repeating-linear-gradient(90deg, #000 0 calc((100% - 40px) / 6), transparent 0 calc((100% - 40px) / 6 + 8px));
}
.six-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; }
.about figure.six img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 30% 50%; border-radius: 0; filter: grayscale(1) contrast(1.12) brightness(1.05); transition: filter .8s ease; }
.six-bands { position: absolute; inset: 0; display: flex; gap: 8px; border-radius: 18px; overflow: hidden; }
.six-bands i { position: relative; flex: 1; background: var(--k); mix-blend-mode: color; opacity: .92; transition: opacity .6s ease; transition-delay: calc(var(--n) * 60ms); }
.six-bands i::after { content: ""; position: absolute; inset: 0; background: var(--k); mix-blend-mode: multiply; opacity: .28; }
@media (hover: hover) {
  .six:hover .six-bands i { opacity: 0; }
  .six:hover img { filter: none; }
}
.play .six.wave .six-bands i { animation: six-lift 1.7s var(--ease) calc(var(--n) * 120ms) 1; }
@keyframes six-lift { 0%, 100% { opacity: .92; } 40% { opacity: 0; } }
@media (max-width: 860px) {
  .about figure.six img { aspect-ratio: auto; object-position: 30% 50%; }
}

/* ---------- Career timeline on phones ----------
   On a wide screen the timeline is a row of four stops with one card that changes. On a phone
   the card sits below the visible screen, so a card that changes as you scroll is read too
   late. Phones get the whole career as a plain top-to-bottom list: nothing changes on scroll. */
.tl-when { display: none; }
@media (max-width: 860px) {
  .tl-track { display: none; }
  .tl .tl-cards { display: grid; gap: 0; margin: 0 0 0 7px; border-left: 2px solid var(--ink); }
  .tl .tl-card { grid-area: auto; position: relative; max-width: none; padding: 0 0 28px 24px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .tl .tl-card:last-child { padding-bottom: 0; }
  .tl .tl-card::before { content: ""; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-sizing: border-box; }
  .tl-when { display: block; margin-bottom: 4px; font-weight: 800; font-stretch: 90%; font-size: 1.05rem; letter-spacing: -.01em; color: var(--soft); }
  .tl-card h3 { font-size: 1.3rem; }

  /* the three numbers sit in one even row */
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stats dt { font-size: clamp(2.3rem, 11vw, 3rem); }
  .stats dd { font-size: .7rem; letter-spacing: .08em; line-height: 1.35; }
  .seg button { min-height: 44px; }
}

/* ---------- Long-form articles: tables, steps, callouts, related-reading lists ---------- */
.prose h3 { margin: 1.5em 0 .4em; font-weight: 800; font-stretch: 92%; font-size: 1.18rem; letter-spacing: -.01em; }
.prose ol { margin: 0 0 1.1em; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.prose ol li { position: relative; padding-left: 44px; font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); counter-increment: step; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cd); color: #fff; font-weight: 700; font-size: .86rem; }
.prose ol li b { color: var(--ink); }
.prose .table { margin: 0 0 1.3em; overflow-x: auto; border-radius: 14px; background: var(--paper); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cd); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.prose .call { margin: 0 0 1.2em; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--c) 11%, var(--bg)); border-left: 5px solid var(--cd); font-size: 1.02rem; }
.prose .call b { color: var(--ink); }
.more-reading { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.more-reading li { border-bottom: 1px solid var(--line); }
.more-reading a { display: block; padding: 13px 2px; font-weight: 600; line-height: 1.3; transition: color .25s, padding .35s var(--ease); }
.more-reading a:hover { color: var(--cd); padding-left: 8px; }
.more-all { margin-top: 6px; color: var(--cd); }
@media (max-width: 860px) {
  .prose th, .prose td { padding: 10px 10px; hyphens: auto; }
  .prose th { white-space: normal; letter-spacing: .06em; }
  .prose th:first-child, .prose td:first-child { padding-left: 14px; }
  .prose table { font-size: .92rem; }
  .prose table:has(th:nth-child(3)) { font-size: .87rem; }
  .prose table:has(th:nth-child(3)) th, .prose table:has(th:nth-child(3)) td { padding: 9px 7px; }
  .prose table:has(th:nth-child(4)) { font-size: .78rem; }
  .prose table:has(th:nth-child(4)) th { font-size: .62rem; letter-spacing: .03em; }
  /* a button inside an article wraps rather than pushing past the edge of a narrow phone */
  .prose .btn { max-width: 100%; white-space: normal; line-height: 1.35; }
}
/* On a phone, a table of four or more columns shows one block per row, with each value under
   its column name (data-label is added by the build). */
@media (max-width: 560px) {
  .prose .table table.stack, .prose .table table.stack tbody, .prose .table table.stack tr, .prose .table table.stack td { display: block; }
  .prose .table table.stack { font-size: .95rem; }
  .prose .table table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose .table table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .prose .table table.stack tr:last-child { border-bottom: 0; }
  .prose .table table.stack td { padding: 5px 0; border: 0; }
  .prose .table table.stack td:first-child { padding: 0 0 4px; font-size: 1.02rem; }
  .prose .table table.stack td:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cd); }
}
/* practice colour coding on the blog: filter chips and cards carry the colour of their practice */
.filter button { display: inline-flex; align-items: center; gap: 8px; }
.filter .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--k); transition: background-color .3s; }
.filter .n { opacity: .55; font-weight: 500; }
.filter button[style]:hover { color: var(--kd); }
.filter button.on[style] { background: var(--kd); color: #fff; }
.filter button.on .dot { background: #fff; }
.card-body { border-top: 4px solid var(--c); }
.card-tag { display: inline-flex; align-items: center; gap: 8px; }
.card-tag::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.card-more { transition: color .25s; }
.card:hover .card-more { color: var(--cd); }
.more-reading a { position: relative; padding-left: 20px; }
.more-reading a::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.more-reading a:hover { padding-left: 26px; }
/* author byline and author box on articles */
.post-meta a { border-bottom: 1px solid currentColor; }
.author { display: flex; align-items: center; gap: 16px; margin-top: 2.4em; padding: 18px 20px; border-radius: 16px; background: var(--paper); }
.author-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--cd); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 16%; }
.author p { margin: 0 !important; font-size: .98rem !important; line-height: 1.5 !important; }
.author .tag { margin-bottom: 5px !important; font-size: .7rem !important; color: var(--cd) !important; }
.author + .note { margin-top: 1.4em !important; }

/* ---------- About Rob fits one screen ----------
   "About Rob" in the menu lands at the top of this section. On a laptop-height window the
   default section spacing pushed the career timeline below the bottom edge, so on wide
   screens the section is tighter: less top padding, a wider text column (the heading takes
   two lines instead of three), smaller stats and a closer timeline. Phones use the stacked
   timeline further up and are not affected. */
@media (min-width: 861px) {
  #rob { padding-top: clamp(48px, 5vw, 72px); }
  #rob .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); }
  #rob .about-copy { gap: 14px; }
  #rob .stats { margin-top: 4px; padding-top: 18px; }
  #rob .stats dt { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  #rob .tl { margin-top: clamp(32px, 3.5vw, 48px); }
  #rob .tl-stop { padding-top: 16px; }
  #rob .tl-stop b { font-size: clamp(1.05rem, 1.7vw, 1.6rem); }
  #rob .tl-cards { margin-top: 18px; }
}
/* Shorter laptop windows (800 px tall and under) get a smaller heading and tighter spacing. */
@media (min-width: 861px) and (max-height: 860px) {
  #rob { padding-top: 32px; }
  #rob .about-copy h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
  #rob .about-copy > p:not(.tag) { font-size: 1rem; }
  #rob .stats { padding-top: 14px; }
  #rob .stats dt { font-size: clamp(2.2rem, 3.4vw, 2.8rem); }
  #rob .tl { margin-top: 28px; }
  #rob .tl-cards { margin-top: 14px; }
}

/* tablet portrait (561 to 860 px): two article cards per row, and the section button keeps its own width */
@media (min-width: 561px) and (max-width: 860px) {
  .sec-head.split > .btn { justify-self: start; }
  /* an odd card at the end spans the row, photo beside the text */
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .cards > .card:last-child:nth-child(odd) .card-img { flex: 0 0 calc(50% - 7px); aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
