/* S Mahomed Attorneys. Paper, ink and a signed page. */
:root {
  --paper: #efe9df;
  --paper-2: #e6dfd2;
  --sheet: #fbf8f2;
  --ink: #16181f;
  --ink-2: #3f4047;          /* body secondary, about 8.4 to 1 on paper */
  --blue: #1f3a6b;           /* iron gall ink */
  --seal: #7a1f1f;
  --rule: rgba(22, 24, 31, .16);
  --night: #12151c;
  --night-text: #ece6da;
  --night-2: #b9b3a8;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
  --head: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.62, 0, .16, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--night-text); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 500 .8125rem/1.4 var(--sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.6rem;
}
.slash { display: inline-block; color: var(--blue); transform: skewX(-8deg); margin-right: .35em; }
.label--light { color: var(--night-2); }
.label--light .slash { color: var(--night-text); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head);
  background: rgba(239, 233, 223, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--rule); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.mark .seal { width: 40px; height: 40px; color: var(--blue); flex: none; }
.mark__text { display: flex; align-items: center; gap: .7rem; }
.mark__name { font: 400 1.375rem/1 var(--serif); letter-spacing: -.01em; }
.mark__trade {
  font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); padding-left: .7rem; border-left: 1px solid var(--rule);
}

.nav__toggle { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__list a:not(.pill) {
  font: 500 .9375rem/1 var(--sans); text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding: .4rem 0; transition: background-size .35s var(--ease);
}
.nav__list a:not(.pill):hover { background-size: 100% 1px; }
.pill {
  display: inline-block; font: 600 .875rem/1 var(--sans); text-decoration: none;
  color: var(--paper); background: var(--ink); padding: .8rem 1.1rem; border-radius: 999px;
  transition: background-color .25s var(--ease);
}
.pill:hover { background: var(--blue); }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); border-color: var(--blue); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.btn--paper:hover { background: transparent; color: var(--night-text); }

.link {
  display: inline-flex; gap: .5rem; align-items: center;
  font: 600 1rem/1.4 var(--sans); text-decoration: none; color: var(--blue);
  border-bottom: 1px solid currentColor; padding-bottom: .15rem;
}
.link span { transition: transform .35s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: calc(var(--head) + clamp(3rem, 10vh, 7rem)) 0 clamp(2.5rem, 6vh, 4rem);
  display: flex; align-items: flex-end;
}
.hero .wrap { display: flex; flex-direction: column; min-height: calc(100svh - var(--head) - clamp(5.5rem, 16vh, 11rem)); }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 1rem + 8.4vw, 9.5rem);
  line-height: .98; letter-spacing: -.03em;
  margin-top: auto;
}
.hero__line { display: block; }
.hero__em { position: relative; display: inline-block; }
.hero__em em { color: var(--blue); }
.ink-under {
  position: absolute; left: 0; right: .35em; bottom: -.08em; width: calc(100% - .35em); height: .2em;
  overflow: visible;
}
.ink-under path {
  fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 700; stroke-dashoffset: 0;
}
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between;
  align-items: end; gap: 2rem 3rem; margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__lede { font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
.cue {
  align-self: flex-start; margin-top: clamp(2.5rem, 7vh, 5rem);
  font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
}
.cue span { display: inline-block; margin-left: .4rem; }

/* Load reveal (only when JS runs and motion is fine) */
.js .hero__line, .js .hero__foot, .js .hero .label, .js .cue {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js .hero__line:nth-child(2) { transition-delay: .12s; }
.js .hero__foot { transition-delay: .35s; }
.js .cue { transition-delay: .5s; }
.js .ink-under path { stroke-dashoffset: 700; transition: stroke-dashoffset 1.4s var(--ease-in-out) .7s; }
.is-loaded .hero__line, .is-loaded .hero__foot, .is-loaded .hero .label, .is-loaded .cue { opacity: 1; transform: none; }
.is-loaded .ink-under path { stroke-dashoffset: 0; }

/* ---------- The signing ---------- */
.signing { padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 10vh, 8rem); border-top: 1px solid var(--rule); }
.signing__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.signing__head .label { margin: 0; }
.steps-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); counter-reset: s; }
.steps-nav a {
  font: 500 .9375rem/1 var(--sans); text-decoration: none; color: var(--ink-2);
  padding: .45rem 0; border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.steps-nav a:hover { color: var(--ink); }
.steps-nav a.is-active { color: var(--ink); border-bottom-color: var(--blue); }

.signing__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem); align-items: start;
}
.sheet-dock {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--head) + 4vh);
  height: calc(100svh - var(--head) - 8vh);
  display: flex; align-items: center; justify-content: center;
}
.stages { grid-column: 1; grid-row: 1; }
.stage {
  min-height: calc(100svh - var(--head));
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 0;
}
.stage__num {
  font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.stage__num span { color: var(--ink-2); margin-left: .6rem; }
.stage__title {
  font: 400 clamp(2.25rem, 1rem + 3.6vw, 4.5rem)/1.04 var(--serif);
  letter-spacing: -.025em; margin-bottom: 1.75rem; max-width: 14ch;
}
.stage__title em { color: var(--blue); }
.stage p:not(.stage__num) { max-width: 34rem; color: var(--ink-2); font-size: 1.125rem; }

.js .stage > * { opacity: .28; transition: opacity .6s var(--ease); }
.js .stage.is-active > * { opacity: 1; }

/* The sheet */
.sheet { margin: 0; width: min(100%, 460px, calc((100svh - var(--head) - 8vh) * .77)); }
.sheet svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(22, 24, 31, .12)) drop-shadow(0 2px 3px rgba(22, 24, 31, .08)); overflow: visible; }
.sheet__paper { fill: var(--sheet); }
.sheet .rule { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1; }
.t-title { font: 400 22px var(--serif); fill: var(--ink); letter-spacing: -.2px; }
.t-num { font: 400 15px var(--serif); fill: var(--blue); }
.t-cap { font: 600 8.5px var(--sans); letter-spacing: 1.6px; fill: var(--ink-2); }
.t-small { font: italic 400 10.5px var(--serif); fill: var(--ink-2); }

.ln {
  stroke: var(--ink); stroke-opacity: .2; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 1s var(--ease-in-out), stroke-opacity .6s var(--ease), stroke-width .6s var(--ease);
}
.ln:nth-child(2) { transition-delay: .08s; } .ln:nth-child(3) { transition-delay: .16s; }
.ln:nth-child(4) { transition-delay: .24s; } .ln:nth-child(5) { transition-delay: .32s; }
.ln:nth-child(6) { transition-delay: .4s; }  .ln:nth-child(7) { transition-delay: .48s; }
.ln:nth-child(8) { transition-delay: .56s; } .ln:nth-child(9) { transition-delay: .64s; }
.sheet[data-stage="1"] .ln, .sheet[data-stage="2"] .ln, .sheet[data-stage="3"] .ln { stroke-dashoffset: 0; }
.sheet[data-stage="2"] .ln, .sheet[data-stage="3"] .ln { stroke-opacity: .42; stroke-width: 1.6; }

.sheet__title, .sheet__clauses, .sheet__sign { opacity: 0; transition: opacity .8s var(--ease); }
.sheet__clauses { transition-delay: .2s; }
.sheet[data-stage="2"] .sheet__title, .sheet[data-stage="3"] .sheet__title,
.sheet[data-stage="2"] .sheet__clauses, .sheet[data-stage="3"] .sheet__clauses { opacity: 1; }
.sheet[data-stage="2"] .sheet__sign { opacity: .35; }
.sheet[data-stage="3"] .sheet__sign { opacity: 1; }

.sig__p {
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.3s cubic-bezier(.45, .05, .35, 1);
}
.sheet[data-stage="3"] .sig__p { stroke-dashoffset: 0; }
.sheet[data-stage="3"] .sig__p--2 { transition-delay: 1.1s; }
.sheet[data-stage="3"] .sig__p--3 { transition-delay: 1.9s; }

.sheet__seal { opacity: 0; transform-box: fill-box; transform-origin: center; }
.sheet__seal use { transform: scale(1.4); transform-origin: 0 0; opacity: 0; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1) 2.8s, opacity .3s ease 2.8s; }
.sheet[data-stage="3"] .sheet__seal { opacity: 1; }
.sheet[data-stage="3"] .sheet__seal use { transform: scale(1); opacity: 1; }
.seal-big__disc { fill: var(--seal); }
.seal-big__ring { fill: none; stroke: #f3d9cf; stroke-opacity: .55; stroke-width: 1; }
.seal-big__txt { font: italic 400 22px var(--serif); fill: #f6e6de; }

/* ---------- Without a will ---------- */
.without { padding: clamp(5rem, 14vh, 10rem) 0; background: var(--paper-2); }
.statement {
  font: 400 clamp(2rem, 1rem + 3vw, 3.75rem)/1.14 var(--serif);
  letter-spacing: -.02em; max-width: 22ch;
}
.statement em { color: var(--blue); }
.without__sub { margin-top: 2rem; max-width: 36rem; font-size: 1.125rem; color: var(--ink-2); }
.ruled { margin-top: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--rule); }
.ruled li {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.ruled__n { font: italic 400 1.25rem/1 var(--serif); color: var(--blue); }
.ruled p { font: 400 clamp(1.25rem, 1rem + .9vw, 1.75rem)/1.35 var(--serif); max-width: 40ch; }

/* ---------- On record ---------- */
.record { padding: clamp(5rem, 14vh, 10rem) 0; }
.record__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: end; }
.record__title { font: 400 clamp(2rem, 1rem + 2.6vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.record__title em { color: var(--blue); }
.record__text { color: var(--ink-2); margin-bottom: 2rem; max-width: 32rem; }
.years { border-top: 1px solid var(--rule); }
.years li {
  font: 400 clamp(3rem, 1rem + 6vw, 7.5rem)/1 var(--serif);
  letter-spacing: -.03em; padding: .9rem 0 .7rem; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: flex-end; color: var(--ink);
}
.years li:nth-child(odd) { justify-content: flex-start; }
.years li:last-child { color: var(--blue); font-style: italic; }
.js .years li { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .years.is-in li { opacity: 1; transform: none; }
.js .years.is-in li:nth-child(2) { transition-delay: .1s; }
.js .years.is-in li:nth-child(3) { transition-delay: .2s; }
.js .years.is-in li:nth-child(4) { transition-delay: .3s; }

/* ---------- Office ---------- */
.office { padding: clamp(5rem, 14vh, 10rem) 0; border-top: 1px solid var(--rule); }
.office__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.office__title { font: 400 clamp(2.25rem, 1rem + 4vw, 5.5rem)/1.02 var(--serif); letter-spacing: -.03em; max-width: 13ch; }
.office__title em { color: var(--blue); }

.lift { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); }
.lift__arrow { color: var(--blue); font-size: .8rem; transition: transform .4s var(--ease); }
.lift.is-moving .lift__arrow { animation: nudge .5s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateY(-3px); } }
.lift__floors { display: flex; gap: .35rem; }
.lift__floors li {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  font: 500 .9375rem/1 var(--sans); color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 50%;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lift__floors li.is-lit { background: var(--paper-2); color: var(--ink); }
.lift__floors li.is-here { background: var(--blue); border-color: var(--blue); color: #fff; }

.office__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.office__photo { margin: 0 0 2.25rem; overflow: hidden; border-radius: 2px; }
.office__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.facts { margin: 0 0 2.25rem; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 .8125rem/1.7 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: .1rem; }
.facts dd { margin: 0; font-size: 1.0625rem; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .3s; }
.facts a:hover { border-color: var(--ink); }
.map { min-height: 420px; border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: var(--night-text); padding: clamp(5rem, 14vh, 10rem) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.contact__title { font: 400 clamp(2.5rem, 1rem + 5vw, 6.5rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 1.75rem; }
.contact__title em { color: #a9bde6; }
.contact__text { color: var(--night-2); font-size: 1.125rem; max-width: 30rem; margin-bottom: 2.5rem; }
.lines { border-top: 1px solid rgba(236, 230, 218, .2); }
.lines a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(236, 230, 218, .2);
  font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1.1 var(--serif); text-decoration: none;
  transition: padding .4s var(--ease), color .3s var(--ease);
}
.lines a span { font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--night-2); }
.lines a:hover { padding-left: .75rem; color: #fff; }

.note { background: #1b1f28; border: 1px solid rgba(236, 230, 218, .14); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.note__title { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 1.5rem; }
.note label, .note legend { display: block; font: 500 .9375rem/1.4 var(--sans); color: var(--night-text); margin-bottom: .5rem; }
.opt-note { color: var(--night-2); font-weight: 400; }
.note input[type="text"], .note textarea {
  width: 100%; margin-bottom: 1.4rem; padding: .85rem 1rem;
  font: 400 1rem/1.4 var(--sans); color: var(--night-text);
  background: var(--night); border: 1px solid rgba(236, 230, 218, .28); border-radius: 3px;
}
.note input[type="text"]:focus, .note textarea:focus { border-color: var(--night-text); outline: none; box-shadow: 0 0 0 2px rgba(236, 230, 218, .35); }
.note textarea { resize: vertical; min-height: 6rem; }
.note fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.note .opt { display: flex; align-items: center; gap: .6rem; font-weight: 400; margin: 0 0 .35rem; cursor: pointer; }
.note .opt input { width: 1.1rem; height: 1.1rem; accent-color: #a9bde6; margin: 0; }
.note .btn { width: 100%; }
.note__err { color: #ffb4a8; margin: -0.6rem 0 1rem; font-size: .9375rem; }
.note__small { font-size: .875rem; color: var(--night-2); margin-top: 1rem; line-height: 1.55; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--night-2); padding: 0 0 2.5rem; font-size: .9375rem; }
.foot .wrap { border-top: 1px solid rgba(236, 230, 218, .2); padding-top: clamp(3rem, 7vh, 4.5rem); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot .seal { width: 44px; height: 44px; color: var(--night-text); margin-bottom: 1rem; }
.foot__name { font: 400 1.375rem/1.2 var(--serif); color: var(--night-text); margin-bottom: .6rem; }
.foot__h { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--night-text); margin-bottom: .9rem; }
.foot li { margin-bottom: .45rem; }
.foot a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.foot a:hover { color: var(--night-text); border-color: currentColor; }
.foot__legal { margin-top: clamp(3rem, 7vh, 4.5rem); max-width: 46rem; font-size: .875rem; line-height: 1.6; }
.foot__copy { margin-top: 1rem; font-size: .875rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a4d; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  transition: transform .3s var(--ease), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --head: 64px; }
  .mark .seal { width: 34px; height: 34px; }
  .mark__name { font-size: 1.2rem; }
  .mark__trade { font-size: .6875rem; letter-spacing: .12em; padding-left: .55rem; }

  .nav__toggle {
    display: block; font: 600 .9375rem/1 var(--sans); color: var(--ink);
    background: transparent; border: 1px solid var(--ink); border-radius: 999px;
    padding: .65rem 1rem; cursor: pointer;
  }
  .nav__list {
    position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__list li.nav__call { border: 0; padding-top: 1.25rem; }
  .nav__list a:not(.pill) { display: block; font: 400 1.75rem/1.2 var(--serif); padding: 1rem 0; background: none; }
  .pill { display: block; text-align: center; padding: 1rem; font-size: 1rem; }

  .hero__foot { grid-template-columns: 1fr; }

  .signing__grid { grid-template-columns: 1fr; gap: 0; }
  .sheet-dock {
    grid-column: 1; top: var(--head); z-index: 2;
    height: 46svh; padding: 1rem 0 1.25rem;
    background: linear-gradient(var(--paper) 88%, rgba(239, 233, 223, 0));
  }
  .sheet { width: auto; height: 100%; }
  .sheet svg { height: 100%; width: auto; margin: 0 auto; }
  .stages { grid-column: 1; grid-row: 2; position: relative; z-index: 1; }
  .stage { min-height: 62svh; justify-content: flex-start; padding: 2.5rem 0 3rem; }
  .steps-nav { width: 100%; justify-content: space-between; }

  .record__grid, .office__grid, .contact__grid { grid-template-columns: 1fr; }
  .office__head { align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .mark { gap: .55rem; }
  .mark__text { display: flex; flex-direction: column; gap: .3rem; }
  .mark__trade { border-left: 0; padding-left: 0; font-size: .625rem; }
  .actions .btn { width: 100%; }
  .ruled li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
  .lift { padding: .7rem .8rem; gap: .7rem; }
  .lift__floors li { width: 1.9rem; height: 1.9rem; font-size: .8125rem; }
  .map, .map iframe { min-height: 320px; }
  .foot__grid { grid-template-columns: 1fr; }
  .lines a { flex-direction: column-reverse; gap: .5rem; align-items: flex-start; }
}

@media (min-width: 1700px) {
  :root { --max: 1600px; }
}

/* ---------- Reduced motion: everything shown, still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero__line, .js .hero__foot, .js .hero .label, .js .cue, .js .years li { opacity: 1; transform: none; }
  .js .ink-under path { stroke-dashoffset: 0; }
  .js .stage > * { opacity: 1; }
  .sheet .ln { stroke-dashoffset: 0; stroke-opacity: .42; stroke-width: 1.6; }
  .sheet .sheet__title, .sheet .sheet__clauses, .sheet .sheet__sign { opacity: 1; }
  .sheet .sig__p { stroke-dashoffset: 0; }
  .sheet .sheet__seal, .sheet .sheet__seal use { opacity: 1; transform: none; }
}
