/* Sofia Sidera: shared look for every page. Charcoal and ivory with a warm gold accent,
   Noto Serif Display for headings, Manrope for text. Page-specific layouts live at the bottom. */
:root {
  --ink: #2b2c31;
  --ivory: #f6f2ea;
  --paper: #efe9df;
  --night: #141312;
  --gold: #a8875a;
  --champagne: #e2c9a1;
  --muted: #5a5650;
  --line: rgba(43,44,49,.16);
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ivory); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1200px; margin-inline: auto; }
.light { background: var(--ivory); color: var(--ink); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--champagne); }
.eyebrow.dark, .light .eyebrow { color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 300; }
.ink-em em, .light h1 em, .light h2 em, .light h3 em { font-style: italic; color: var(--gold); }
h1 em, h2 em { font-style: italic; color: var(--champagne); }

/* Nav: a floating pill of warm "liquid glass" that blurs and bends whatever scrolls beneath it */
.nav { position: fixed; z-index: 5; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(1200px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 10px 10px 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(246,242,234,.16), rgba(246,242,234,.05)), rgba(32,29,26,.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(1.05); backdrop-filter: blur(22px) saturate(1.7) brightness(1.05);
  border: 1px solid rgba(255,250,240,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 18px rgba(226,201,161,.10), 0 10px 34px rgba(10,8,6,.22);
  transition: background .5s, box-shadow .5s, border-color .5s; overflow: hidden; isolation: isolate; color: var(--ivory); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;   /* specular sheen along the top edge */
  background: radial-gradient(120% 140% at 22% -40%, rgba(255,255,255,.30), transparent 46%), radial-gradient(80% 120% at 88% 140%, rgba(226,201,161,.18), transparent 55%); }
.nav::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: var(--glint, -40%); z-index: -1; pointer-events: none;   /* light that follows the pointer */
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); transition: left .25s ease-out, opacity .4s; opacity: 0; }
.nav:hover::after { opacity: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 24px; height: auto; }
.brand b { font-weight: 600; font-size: 12px; letter-spacing: .22em; white-space: nowrap; }
.links { display: flex; gap: 4px; font-size: 13px; }
.links a { color: rgba(246,242,234,.9); white-space: nowrap; padding: 8px 13px; border-radius: 999px; transition: background .3s, color .3s; }
.links a:hover { background: rgba(246,242,234,.14); color: #fff; }
.links a[aria-current] { background: rgba(226,201,161,.2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.cta { padding: 11px 20px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .16em; white-space: nowrap;
  color: #1e1c1a; background: linear-gradient(180deg, #f3e3c6, #d9bd8f); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 14px rgba(168,135,90,.35); transition: filter .3s; }
.cta:hover { filter: brightness(1.06); }
.nav, .nav * { text-shadow: none; }
/* over the ivory sections the glass turns darker so the light text stays readable */
.nav.solid { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)), rgba(24,22,20,.62); border-color: rgba(255,250,240,.16); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,250,240,.3); background: none; color: inherit; cursor: pointer; place-items: center; }
.burger i, .burger i::before, .burger i::after { display: block; width: 16px; height: 1px; background: currentColor; position: relative; transition: transform .3s, background .3s; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; }
.burger i::before { top: -5px; } .burger i::after { top: 5px; }
.menu-open .burger i { background: transparent; } .menu-open .burger i::before { transform: translateY(5px) rotate(45deg); } .menu-open .burger i::after { transform: translateY(-5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 4; background: rgba(20,19,18,.82); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  display: grid; align-content: center; gap: 8px; padding: 110px 28px 40px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.sheet a { font-family: var(--serif); font-weight: 300; font-size: 32px; color: var(--ivory); padding: 6px 0; transform: translateY(14px); transition: transform .5s var(--ease), color .3s; }
.sheet a[aria-current] { color: var(--champagne); font-style: italic; }
.menu-open .sheet { opacity: 1; pointer-events: auto; }
.menu-open .sheet a { transform: none; }
@media (max-width: 1240px) { .nav { gap: 12px; padding-left: 18px; } .links { gap: 0; font-size: 12.5px; } .links a { padding: 8px 9px; } .brand b { letter-spacing: .16em; } }
@media (max-width: 1000px) { .links { display: none; } .nav { padding-left: 18px; } .burger { display: grid; } .nav .cta { display: none; } }

/* Buttons */
.btn { justify-self: start; display: inline-flex; align-items: center; gap: 14px; border: 1px solid currentColor; padding: 14px 22px; font-size: 11px; font-weight: 600; letter-spacing: .24em; transition: background .3s, color .3s, border-color .3s; background: none; color: inherit; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.gold { background: linear-gradient(180deg, #f3e3c6, #d9bd8f); color: #1e1c1a; border-color: transparent; }
.btn.gold:hover { filter: brightness(1.05); }
.btn .ar { transition: transform .3s; } .btn:hover .ar { transform: translateX(4px); }

/* Scroll reveals: things rise, photos unveil and headings arrive word by word as they enter the screen */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s cubic-bezier(.6,0,.2,1); }
.unveil.in { clip-path: inset(0 0 0 0); }
.unveil img { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.unveil.in img { transform: scale(1); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.75,.15,1); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split.in .w > span { transform: none; }
.split.rv { opacity: 1; transform: none; }
.rule { display: inline-flex; align-items: center; gap: 14px; }
.rule::before { content: ""; height: 1px; width: 0; background: currentColor; transition: width 1s cubic-bezier(.6,0,.2,1); }
.rule.in::before { width: 44px; }
@media (prefers-reduced-motion: reduce) { .rv, .unveil, .unveil img, .split .w > span { transition: none; opacity: 1; transform: none; clip-path: none; } }

/* Footer: an invitation over the view from the office window, then the practical details, signed with a large wordmark */
.foot { background: var(--night); color: rgba(246,242,234,.78); font-size: 14px; overflow: hidden; }
.invite { position: relative; isolation: isolate; min-height: clamp(460px, 82vh, 760px); display: grid; align-items: end; padding-block: clamp(90px, 14vh, 150px) clamp(48px, 8vh, 88px); }
.invite .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.invite .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.invite.in .bg img { transform: scale(1); }
.invite .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.35) 40%, rgba(20,19,18,.92) 88%, var(--night) 100%); }
.invite .wrap { width: 100%; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.invite h2 { margin: 18px 0 0; color: var(--ivory); font-size: clamp(44px, 6.6vw, 104px); line-height: .98; text-wrap: balance; }
.invite .lede { margin: 22px 0 0; max-width: 40ch; line-height: 1.7; color: rgba(246,242,234,.82); }
.direct { display: grid; border-top: 1px solid rgba(246,242,234,.22); }
.direct a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px; border-bottom: 1px solid rgba(246,242,234,.22); transition: padding .35s; }
.direct a small { font-size: 10px; font-weight: 600; letter-spacing: .26em; color: var(--champagne); }
.direct a span { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.1vw, 30px); color: var(--ivory); transition: color .3s; }
.direct a:hover { padding-left: 12px; }
.direct a:hover span { color: var(--champagne); }
@media (max-width: 860px) { .invite .wrap { grid-template-columns: 1fr; } }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(56px, 9vh, 96px) 48px; }
.foot .about { display: grid; gap: 18px; align-content: start; max-width: 34ch; }
.foot .about svg { width: 40px; color: var(--ivory); }
.foot .about p { margin: 0; line-height: 1.75; color: rgba(246,242,234,.62); }
.foot .about .tag { font-size: 11px; letter-spacing: .26em; color: var(--champagne); }
.foot h3 { margin: 0 0 20px; font-size: 11px; font-weight: 600; letter-spacing: .28em; color: var(--champagne); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; line-height: 1.55; }
.foot ul a { background: linear-gradient(var(--champagne), var(--champagne)) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .4s, color .3s; }
.foot ul a:hover { color: var(--ivory); background-size: 100% 1px; }
.foot .small { color: rgba(246,242,234,.5); font-size: 13px; }
.foot .go { display: inline-block; margin-top: 6px; font-size: 11px; letter-spacing: .2em; color: var(--champagne); }
.wordmark { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 15.5vw, 236px); line-height: .8; letter-spacing: -.01em; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(226,201,161,.32); margin-top: 8px; user-select: none; }
.foot .base { border-top: 1px solid rgba(246,242,234,.12); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; font-size: 12px; color: rgba(246,242,234,.5); }
.foot .base nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .base a:hover { color: var(--ivory); }
.lang b { color: var(--ivory); font-weight: 600; }
.top { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .2em; font-size: 11px; color: var(--champagne); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.top i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(226,201,161,.5); border-radius: 50%; font-style: normal; transition: background .3s, color .3s; }
.top:hover i { background: var(--champagne); color: var(--night); }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot .cols { grid-template-columns: 1fr; } }

/* ───────── Inner pages ───────── */

/* Page header: a full-bleed office photo that settles into place, with the title rising word by word */
.phero { position: relative; isolation: isolate; min-height: clamp(520px, 86vh, 900px); display: grid; align-items: end; padding-block: 140px clamp(56px, 9vh, 96px); overflow: hidden; }
.phero .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.phero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease); will-change: transform; }
.phero.in .bg img { transform: scale(1); }
.phero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.45) 0%, rgba(20,19,18,.12) 38%, rgba(20,19,18,.72) 100%), linear-gradient(90deg, rgba(20,19,18,.4), transparent 60%); }
.phero .wrap { width: 100%; display: grid; gap: 22px; }
.crumbs { font-size: 11px; letter-spacing: .26em; color: rgba(246,242,234,.7); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--champagne); }
.phero h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 8vw, 128px); line-height: .96; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.phero .sub { margin: 0; max-width: 46ch; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; color: rgba(246,242,234,.92); text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.cue { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 28px; margin-right: clamp(0px, 4vw, 48px); font-size: 10px; letter-spacing: .3em; color: rgba(246,242,234,.75); display: grid; justify-items: center; gap: 10px; }
.cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--champagne), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Generic ivory section */
.sec { padding-block: clamp(90px, 15vh, 170px); }
.sec h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1.03; text-wrap: balance; }
.sec .head { display: grid; gap: 18px; margin-bottom: clamp(44px, 7vh, 80px); max-width: 860px; }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; margin: 0; text-wrap: pretty; }
.prose p { margin: 0 0 1.1em; line-height: 1.8; color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }

/* Values: three big lines that light up one by one */
.values { display: grid; border-top: 1px solid var(--line); }
.values > div { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 24px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.values .n { font-family: var(--serif); font-style: italic; color: var(--gold); }
.values h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; }
.values p { margin: 0; color: var(--muted); line-height: 1.75; }
@media (max-width: 760px) { .values > div { grid-template-columns: 40px 1fr; } .values p { grid-column: 2; } }

/* Gallery: the page pins while a strip of office photos glides sideways with the scroll */
.gallery { position: relative; }
.gallery .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; gap: clamp(28px, 5vh, 48px); }
.gallery .track { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: max(16px, calc((100vw - 1200px) / 2)); will-change: transform; }
.gallery figure { margin: 0; flex: none; height: clamp(260px, 58vh, 620px); overflow: hidden; position: relative; }
.gallery figure img { height: 100%; width: auto; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 10px; letter-spacing: .26em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery .meter { height: 1px; background: rgba(246,242,234,.18); margin-top: 6px; }
.gallery .meter i { display: block; height: 100%; width: 0; background: var(--champagne); }
@media (max-width: 760px) { .gallery { height: auto !important; } .gallery .pin { position: static; height: auto; padding-block: 80px; } .gallery .track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; } .gallery figure { scroll-snap-align: center; height: 56vh; } }

/* Chapters (practice areas): sticky numbered index on the left, chapters on the right */
.chapters { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 7vw, 110px); }
.index { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; }
.index a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; color: rgba(43,44,49,.55); transition: color .3s; }
.index a .n { font-family: var(--serif); font-style: italic; color: var(--gold); }
.index a.on, .index a:hover { color: var(--ink); }
.index a.on { font-weight: 600; }
.chapter { padding-bottom: clamp(70px, 12vh, 140px); scroll-margin-top: 110px; }
.chapter + .chapter { padding-top: clamp(30px, 5vh, 60px); border-top: 1px solid var(--line); }
.chapter .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); }
.chapter h2 { margin: 10px 0 22px; }
.chapter .prose { margin-bottom: 34px; }
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; } .index { position: static; } }

/* Accordion: hairline rows that open smoothly; used for sub-areas and services */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 12px; padding: 26px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-family: var(--serif); font-style: italic; color: var(--gold); }
.acc summary h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; transition: color .3s; }
.acc summary small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.acc summary:hover h3 { color: var(--gold); }
.acc .pm { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.acc .pm::before, .acc .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); translate: -50% -50%; transition: transform .4s var(--ease); }
.acc .pm::after { transform: rotate(90deg); }
.acc details[open] .pm { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc details[open] .pm::before, .acc details[open] .pm::after { background: var(--ivory); }
.acc details[open] .pm::after { transform: rotate(0deg); }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc details[open] .body { grid-template-rows: 1fr; }
.acc .body > div { overflow: hidden; padding-left: 64px; }
.acc .body > div > :last-child { margin-bottom: 30px; }
.acc .body p { margin: 0 0 14px; color: var(--muted); line-height: 1.8; max-width: 66ch; }
.acc .body h4 { margin: 22px 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .26em; color: var(--gold); }
@media (max-width: 600px) { .acc summary { grid-template-columns: 34px 1fr 40px; } .acc .body > div { padding-left: 0; } }

/* Service list with gold ticks */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.svc li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid rgba(43,44,49,.1); line-height: 1.65; color: var(--muted); }
.svc li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 1px; background: var(--gold); }
.svc li b { color: var(--ink); font-weight: 600; }
.note { margin-top: 22px; padding: 22px 24px; background: var(--paper); border-left: 2px solid var(--gold); display: grid; gap: 6px; }
.note b { font-size: 11px; letter-spacing: .24em; color: var(--gold); }
.note p { margin: 0 !important; }

/* Team */
.lead-lawyer { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.lead-lawyer .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.lead-lawyer .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lead-lawyer .role { font-size: 12px; letter-spacing: .2em; color: var(--gold); line-height: 1.7; }
.lead-lawyer h2 { margin: 12px 0 18px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px; }
.creds span { font-size: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 860px) { .lead-lawyer { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.member { display: grid; gap: 14px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.member .ph { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--paper); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.member:hover .ph img { transform: scale(1.05); filter: saturate(1.05); }
.member .ph .more { position: absolute; left: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--ivory);
  background: rgba(32,29,26,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.25); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.member:hover .ph .more, .member:focus-visible .ph .more { opacity: 1; transform: none; }
.member h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 26px; }
.member p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 84px; font-weight: 300; color: var(--gold);
  background: radial-gradient(circle at 30% 20%, #f7f1e6, #e7dccb); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
/* Bio drawer */
dialog.bio { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(620px, 100%); border: 0; padding: 0; background: var(--ivory); color: var(--ink); overflow: auto;
  transform: translateX(100%); transition: transform .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete; }
dialog.bio[open] { transform: none; }
@starting-style { dialog.bio[open] { transform: translateX(100%); } }
dialog.bio::backdrop { background: rgba(20,19,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bio .ph { aspect-ratio: 16 / 11; overflow: hidden; } .bio .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.bio .in { padding: 34px clamp(22px, 5vw, 48px) 60px; display: grid; gap: 14px; }
.bio h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 40px; }
.bio p { margin: 0; line-height: 1.8; color: var(--muted); }
#bio-text { display: grid; gap: 14px; }
.bio .x { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(32,29,26,.35); color: #fff; font-size: 20px; cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Steps (online consultation) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps > div { padding: 30px 26px 10px 0; border-top: 1px solid var(--line); position: relative; display: grid; gap: 12px; align-content: start; }
.steps > div + div { padding-left: 26px; border-left: 1px solid rgba(43,44,49,.08); }
.steps > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.steps > div::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--gold); transition: width 1.2s var(--ease); }
.steps.in > div::after { width: 100%; }
.steps > div:nth-child(2)::after { transition-delay: .25s; } .steps > div:nth-child(3)::after { transition-delay: .5s; } .steps > div:nth-child(4)::after { transition-delay: .75s; }
.steps h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps > div, .steps > div + div { padding-left: 0; border-left: 0; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ticks li { padding: 20px 0 20px 40px; border-top: 1px solid var(--line); position: relative; font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.35; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 19px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 12px; color: var(--gold); border: 1px solid rgba(168,135,90,.5); }
@media (max-width: 760px) { .ticks { grid-template-columns: 1fr; } }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.option { padding: 30px; border: 1px solid var(--line); display: grid; gap: 10px; background: #fbf8f3; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s; }
.option:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,44,49,.08); }
.option b { font-size: 11px; letter-spacing: .26em; color: var(--gold); }
.option strong { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1; }
.option p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }

/* Contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--gold); }
.field input, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(43,44,49,.3); padding: 12px 0; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form .row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.form .row small { color: var(--muted); max-width: 48ch; line-height: 1.6; }
.form .ok { grid-column: 1 / -1; padding: 18px 20px; background: var(--paper); border-left: 2px solid var(--gold); display: none; }
.form.sent .ok { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cards a, .cards div { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cards small { font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--gold); }
.cards span { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.25; }
.cards a:hover span { color: var(--gold); }

/* Phones */
@media (max-width: 860px) {
  .approach .stick { position: static; }
}
@media (max-width: 600px) {
  .acc summary { padding: 20px 0; gap: 10px; grid-template-columns: 30px 1fr 34px; }
  .acc summary h3 { font-size: 21px; }
  .acc summary small { font-size: 13px; }
  .acc .pm { width: 32px; height: 32px; }
  .team { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .member h3 { font-size: 19px; }
  .member p { font-size: 12px; }
  .member .ph .more { display: none; }
  .mono { font-size: 56px; }
  .ticks li { font-size: 18px; }
  .phero { min-height: 82svh; }
  .sec { padding-block: 80px; }
}
.sheet .call { margin-top: 24px; font-family: var(--sans); font-size: 12px; letter-spacing: .24em; color: var(--champagne); }

/* Preloader: an ivory "deed" in two halves with a double-rule frame and an official seal. This only describes the
   look; site.js moves the halves and fades the contents. .full = first visit (counter, Σ filling, values cycling),
   .short = every later page (complete seal and the page title). */
html:not(.ready) { overflow: hidden; }
/* cover the page from the very first paint, before site.js has added the curtain (gives up after 8s in case scripts fail) */
html:not(.ready)::after { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--ivory); animation: cover-off 0s 8s forwards; }
@keyframes cover-off { to { visibility: hidden; } }
.pre { --seal: #4d4d55; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; color: var(--seal); }
.pre .half { position: absolute; left: 0; right: 0; height: 50.5%; will-change: transform; }
.pre .top { top: 0; background: linear-gradient(180deg, #f8f5ef, var(--ivory)); }
.pre .bot { bottom: 0; background: linear-gradient(0deg, #efe9df, var(--ivory)); }
.pre .top::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,135,90,.6), transparent); }
.pre-frame { position: absolute; inset: max(14px, 2.2vw); z-index: 2; pointer-events: none; border: 1px solid rgba(77,77,85,.28);   /* double rule, like a deed */
  box-shadow: inset 0 0 0 5px var(--ivory), inset 0 0 0 6px rgba(168,135,90,.45); }
.pre-in, .pre-count, .pre-bar, .pre-where { z-index: 2; }
.pre-in { position: relative; display: grid; justify-items: center; gap: 20px; text-align: center; padding-inline: 24px; }
/* seal */
.seal { position: relative; width: clamp(180px, 21vw, 240px); aspect-ratio: 1; display: grid; place-items: center; }
.seal .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal .edge { fill: none; stroke: rgba(77,77,85,.35); stroke-width: 1; stroke-dasharray: 2 5; }
.seal .track { fill: none; stroke: rgba(77,77,85,.14); stroke-width: 1; }
.seal .prog { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 150px 150px; }
.short .seal .prog { stroke-dashoffset: 0; }
.seal text { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .32em; fill: rgba(77,77,85,.75); }
.seal .spin { transform-origin: 150px 150px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal .mark { position: relative; width: 34%; overflow: visible; }
.pre .ghost path { fill: rgba(77,77,85,.08); }
.pre .line path { fill: none; stroke: var(--seal); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(var(--k) * .3s + .2s); }
.short .line { display: none; }
.pre .solid path { fill: var(--seal); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-name { display: flex; overflow: hidden; font-size: 11px; font-weight: 600; letter-spacing: .42em; padding-left: .42em; color: rgba(77,77,85,.8); }
.pre-name span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.75,.15,1) forwards; animation-delay: calc(var(--k) * 45ms + .7s); }
.short .pre-name span { animation-duration: .7s; animation-delay: calc(var(--k) * 25ms + .15s); }
@keyframes rise { to { transform: none; } }
/* the page title, set like a heading in a legal document */
.pre-title { display: grid; justify-items: center; gap: 8px; margin-top: 4px; }
.pre-title small { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.pre-title b { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.05; color: var(--ink); text-wrap: balance; }
.full .pre-title b { font-size: clamp(22px, 2.4vw, 30px); }
.pre-title b, .pre-title small { display: block; opacity: 0; transform: translateY(16px); animation: up 1s cubic-bezier(.2,.75,.15,1) forwards; animation-delay: .5s; }
.pre-title small { animation-delay: .35s; }
@keyframes up { to { opacity: 1; transform: none; } }
.pre-words { position: relative; height: 24px; width: min(340px, 80vw); overflow: hidden; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 16px; color: var(--gold); }
.pre-words span { position: absolute; inset: 0; transform: translateY(100%); opacity: 0; animation: word 4.5s cubic-bezier(.2,.75,.15,1) infinite; }
.pre-words span:nth-child(2) { animation-delay: 1.5s; } .pre-words span:nth-child(3) { animation-delay: 3s; }
@keyframes word { 0% { transform: translateY(100%); opacity: 0; } 8%, 30% { transform: none; opacity: 1; } 38%, 100% { transform: translateY(-100%); opacity: 0; } }
.short .pre-words, .short .pre-count, .short .pre-bar { display: none; }
/* corners: address and the § counter */
.pre-where { position: absolute; left: calc(max(14px, 2.2vw) + 26px); bottom: calc(max(14px, 2.2vw) + 26px); font-size: 10px; font-weight: 600; letter-spacing: .26em; line-height: 1.8; color: rgba(77,77,85,.6); }
.pre-count { position: absolute; right: calc(max(14px, 2.2vw) + 26px); bottom: calc(max(14px, 2.2vw) + 18px); display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-weight: 300; color: var(--ink); }
.pre-count b { font-weight: 300; font-size: clamp(44px, 6.5vw, 96px); line-height: .8; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pre-count small { font-size: clamp(22px, 2.6vw, 34px); color: var(--gold); font-style: italic; }
.pre-bar { position: absolute; left: calc(max(14px, 2.2vw) + 26px); right: calc(max(14px, 2.2vw) + 26px); top: calc(max(14px, 2.2vw) + 26px); height: 1px; background: rgba(77,77,85,.12); }
.pre-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@media (max-width: 560px) {
  .pre-where { display: none; }
  .pre-count { right: 50%; translate: 50% 0; }
  .full .pre-in { margin-top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  .pre .line path, .pre-name span, .pre-words span, .seal .spin, .pre-title b, .pre-title small { animation: none; transform: none; opacity: 1; stroke-dashoffset: 0; }
  .pre-words span:not(:first-child) { display: none; }
}
/* arriving from another page: the curtain is already showing this page's title, so nothing animates in again */
.arrive .pre-name span, .arrive .pre-title b, .arrive .pre-title small { animation: none; transform: none; opacity: 1; }
/* no § marks on the curtain: progress shows through the seal and the gold line only */
.pre-count, .pre-title small { display: none !important; }

/* Page header title: centred and minimal, in the middle of the photo, with a short gold rule between title and subtitle */
.phero { align-items: center; text-align: center; padding-block: 120px 80px; }
.phero .bg::after { background: radial-gradient(70% 60% at 50% 52%, rgba(20,19,18,.42), rgba(20,19,18,.18) 70%), linear-gradient(180deg, rgba(20,19,18,.45), transparent 30%, transparent 75%, rgba(20,19,18,.45)); }
.phero .wrap { justify-items: center; gap: 0; }
.phero h1 { font-size: clamp(54px, 8.6vw, 138px); line-height: .98; letter-spacing: -.015em; max-width: 16ch; text-wrap: balance; }
.phero h1 em { color: var(--champagne); }
.phero .sub { position: relative; margin-top: 30px; padding-top: 30px; max-width: 34ch; font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.35; color: rgba(246,242,234,.92); }
.phero .sub::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 1px; background: var(--champagne); translate: -50% 0; transition: width 1.2s cubic-bezier(.6,0,.2,1) .5s; }
.phero.in .sub::before { width: 70px; }
.phero .wrap > .btn { justify-self: center; margin-top: 26px; }
.phero .cue { right: auto; left: 50%; translate: -50% 0; margin-right: 0; }
.form .err { grid-column: 1 / -1; padding: 14px 18px; background: #fbeee9; border-left: 2px solid #b4553f; color: #7a3424; font-size: 14px; }
.foot .soc { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 8px; border: 1px solid rgba(226,201,161,.3); border-radius: 50%; color: var(--champagne); transition: background .3s, color .3s; vertical-align: middle; } .foot .soc:hover { background: var(--champagne); color: var(--night); } .foot .soc svg { width: 16px; height: 16px; }

/* language switch in the nav: the current language bright, the other one a tap away */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid rgba(246,242,234,.28); background: rgba(246,242,234,.08); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: rgba(246,242,234,.85); white-space: nowrap; transition: background .3s, border-color .3s; }
.lang-switch b, .lang-switch span { padding: 6px 9px; border-radius: 999px; }
.lang-switch b { background: rgba(246,242,234,.9); color: #1e1c1a; font-weight: 700; }
.lang-switch:hover { border-color: var(--champagne); background: rgba(246,242,234,.16); }
.lang-switch:hover span { color: #fff; }
.sheet .sheet-lang { margin-top: 6px; }
@media (max-width: 1000px) { .lang-switch { margin-left: auto; margin-right: 8px; } }
