:root{
  --paper:#f7f5f1;
  --paper-2:#fbfaf7;
  --ink:#18222d;
  --text:#4e5965;
  --muted:#7d8790;
  --line:#dddcd8;
  --line-soft:#e8e6e1;
  --accent:#ad9064;
  --accent-soft:#c9b89c;
  --white:#fff;
  --max:1420px;
  --gutter:64px;
  --shadow:0 18px 50px rgba(24,34,45,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,"Helvetica Neue",Arial,sans-serif;font-weight:350;line-height:1.7;-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 15% 8%,rgba(255,255,255,.9),transparent 30%),radial-gradient(circle at 90% 12%,rgba(255,255,255,.72),transparent 28%)}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;overflow:visible} svg path,svg line,svg polyline,svg polygon,svg circle,svg ellipse{vector-effect:non-scaling-stroke} .case-visual svg rect{fill:none} .case-visual svg rect.vsoft{fill:#f4f1ea}
.wrap{width:min(var(--max),calc(100% - var(--gutter)));margin-inline:auto}
.top{position:sticky;top:0;z-index:100;background:rgba(251,250,247,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.nav{min-height:94px;display:flex;align-items:center;gap:34px}
.brand{display:flex;align-items:center;gap:15px;min-width:0;flex:0 1 auto}
.brand img{width:50px;height:54px;display:block;object-fit:contain}
.brand-name{font-size:17px;line-height:1.05;letter-spacing:.18em;font-weight:500;color:#26313c}
.brand small{display:block;margin-top:8px;color:#89919a;font-size:8px;letter-spacing:.14em;font-weight:400;white-space:nowrap}
.links{display:flex;align-items:center;gap:27px;margin-left:auto;min-width:0;flex:0 1 auto;color:#58636e;font-size:13px}
.links a{position:relative;padding:12px 0;white-space:nowrap}
.links a:after{content:"";position:absolute;left:0;right:100%;bottom:5px;height:1px;background:var(--accent);transition:right .2s ease}
.links a:hover:after,.links a[aria-current="page"]:after{right:0}
.phone{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:52px;padding:0 17px;border:1px solid #c9c8c4;background:#fbfaf7;font-size:13px;white-space:nowrap;color:#46515d}
.phone:hover{border-color:#b6a487;background:#fff}
.hamb{display:none;margin-left:auto;border:1px solid #c8c7c3;background:#fbfaf7;color:var(--ink);padding:10px 13px;font:inherit;font-size:12px}
.drawer{display:none}
.hero{padding:0;border-bottom:1px solid var(--line);background:var(--paper-2)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);min-height:650px;align-items:stretch;gap:0}
.hero-grid>div:first-child{display:flex;flex-direction:column;justify-content:center;padding:76px 72px 76px 0}
.hero-grid>.hero-photo{min-width:0}
.eyebrow{display:flex;align-items:center;gap:16px;font-size:11px;letter-spacing:.23em;text-transform:uppercase;color:#9b8059;font-weight:550}
.eyebrow:after{content:"";width:38px;height:1px;background:#c8b79c}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--ink)}
h1{font-size:clamp(48px,5.3vw,78px);line-height:1.02;letter-spacing:-.035em;margin:22px 0 28px;max-width:820px}
h2{font-size:clamp(34px,3.4vw,52px);line-height:1.08;letter-spacing:-.028em;margin:0 0 22px}
h3{font-size:20px;line-height:1.25;margin:0 0 10px}
.lead{font-size:18px;line-height:1.75;color:#68737e;max-width:730px}
.hero-photo{position:relative;overflow:hidden;background:#e7e5df;min-height:650px}
.hero-photo:after{content:none}
.hero-photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center center}
.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:34px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border:1px solid #b9b7b1;background:transparent;color:#33404c;font-size:13px;font-weight:500;transition:.2s ease}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 9px 25px rgba(24,34,45,.12)}
.btn:hover{transform:translateY(-1px);border-color:#9e917d;background:#fff}
.btn.primary:hover{background:#283541;border-color:#283541}
section{padding:78px 0;border-bottom:1px solid var(--line)}
.intro{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:92px;align-items:start}
.muted{color:var(--text);font-size:16px;line-height:1.85;margin:0}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:54px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.card{display:block;min-height:225px;padding:28px 28px 30px;background:rgba(255,255,255,.24);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transition:.2s ease}
.card:hover{background:#fff;box-shadow:var(--shadow);transform:translateY(-2px)}
.num{color:var(--accent);font-size:11px;letter-spacing:.18em}
.card h3{margin-top:18px}.card p{color:var(--muted);font-size:14px;line-height:1.7;margin:0}
.portrait-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:52px}
.portrait{position:relative;aspect-ratio:2/3;overflow:hidden;background:#e5e3dd}
.portrait.small{height:auto;min-height:0}
.portrait img{width:100%;height:100%;display:block;object-fit:contain;object-position:center center}
.portrait-copy{position:absolute;left:0;right:0;bottom:0;padding:100px 30px 27px;background:linear-gradient(180deg,transparent,rgba(17,24,31,.86));color:#fff}
.portrait-copy h3{color:#fff;margin:0 0 5px}.portrait-copy p{color:#e8e9ea;margin:0;font-size:13px}
.news{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:0;margin-top:52px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.news article{min-height:220px;padding:25px 28px;border-right:1px solid var(--line);background:rgba(255,255,255,.18)}
.news article:first-child{background:transparent;padding-left:0}
.news article:last-child{border-right:0}
.news time{display:block;color:#927957;font-size:10px;letter-spacing:.05em;margin-top:6px}.news h3{font-size:19px;margin:14px 0 10px}.news p{color:var(--muted);font-size:13px;line-height:1.65;margin:0 0 18px}.news article a{font-size:11px;color:#8b7251}
.news .tag{border:0;padding:0;margin:0;color:#9a7e56;font-size:10px;letter-spacing:.16em;text-transform:uppercase}
.crumb{padding:22px 0 0;color:#87909a;font-size:11px}
.article{max-width:1120px}
.article h1{max-width:980px}.article h2{font-size:34px;margin-top:58px}.article p,.article li{font-size:16px;color:#4f5963;line-height:1.85}.article ul{padding-left:22px}
.casebox{margin:48px 0;border:1px solid var(--line);background:rgba(255,255,255,.35);padding:30px}
.casebox h3{font-family:Inter,"Helvetica Neue",Arial,sans-serif;color:#967b56;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:550}
.flow{display:grid;grid-template-columns:repeat(3,1fr);margin-top:30px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.flow div{padding:25px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.flow strong{display:block;color:#967b56;font-size:10px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:9px;font-weight:550}
.requirements{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:18px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.req{padding:23px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.25)}
.req strong{display:block;margin-bottom:9px;font-weight:500;color:#26313c}
.article-photo{display:block;width:100%;height:auto;max-width:100%;max-height:620px;object-fit:cover;background:#e5e3dd;border:0;margin:32px 0}
.case-visual{max-width:100%;overflow:hidden;margin:38px 0}
.case-visual svg{display:block;width:100%;height:auto;overflow:visible}
.case-visual svg rect.vsoft{fill:#f4f1ea;stroke:#c8c4bb;stroke-width:1.2}
.case-visual svg .vmain{fill:none;stroke:#394550;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.case-visual svg .vline{fill:none;stroke:#a99270;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.case-visual svg .vtitle{fill:#25303b;font-family:Inter,"Helvetica Neue",Arial,sans-serif;font-size:18px;font-weight:500}
.case-visual svg .vtext{fill:#66717c;font-family:Inter,"Helvetica Neue",Arial,sans-serif;font-size:13px;font-weight:400}
.case-visual figcaption{color:#8a929a;font-size:11px;line-height:1.6;margin-top:12px}
.prepare-list{padding-left:22px;color:#5e6872}.prepare-list li{margin:7px 0}
.people{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch}
.person{min-width:0;background:#fbfaf7;border:1px solid var(--line);overflow:hidden;box-shadow:none;display:flex;flex-direction:column}
.person:first-child{border-right:1px solid var(--line)}
.person img{display:block;width:100%;aspect-ratio:2/3;height:auto;object-fit:contain;object-position:center center;background:#e5e3dd}
.person-body{padding:30px}.person-body h2{font-size:32px}.person-body p{color:var(--muted);font-size:14px;line-height:1.8}
.form-shell{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:80px;align-items:start}
.form-note{padding-top:5px}.form-note h3{font-size:31px;font-weight:400}.form-note p{color:var(--muted);font-size:14px;line-height:1.8}.form-note ul{padding-left:18px;color:#626b74;font-size:13px;line-height:1.8}
/* Contact form: three compact contact fields on one line, with the situation field spanning the full width below them on desktop. */
.form{max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0;background:transparent;border:0;box-shadow:none;align-items:start}
.form .email-field{grid-column:auto}
.form .message-field{grid-column:1/-1}
.field label{display:block;font-size:10px;color:#69737d;margin:0 0 7px;letter-spacing:.08em;text-transform:uppercase}.field input,.field textarea{width:100%;background:transparent;border:0;border-bottom:1px solid #c7c7c3;color:var(--ink);padding:13px 0;font:inherit;font-size:14px;font-weight:350;outline:none;border-radius:0}.field input:focus,.field textarea:focus{border-bottom-color:#9e8b6d;box-shadow:none}.field textarea{min-height:138px;resize:vertical}.message-field{width:100%}.message-field textarea{display:block;width:100%;min-height:138px}.err{display:block;color:#9b5f5f;font-size:11px;margin-top:5px;min-height:17px}.check{grid-column:1/-1;color:#707981;font-size:11px}.check input{width:auto;margin-right:7px}.form button{grid-column:1/-1;justify-self:start}.status{grid-column:1/-1;padding:12px 0;display:none;font-size:13px;color:#58636e;background:transparent}
.contact-end{background:#efede8}
.footer{padding:40px 0;color:#7a838c;font-size:11px}
.cta{background:#f0eee9}
.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:56px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.mini{padding:22px 24px;border-right:1px solid var(--line);color:#68717a}.mini:first-child{padding-left:0}.mini:last-child{border-right:0}.mini strong{display:block;color:#2a3440;margin-bottom:7px;font-weight:500;font-family:Georgia,"Times New Roman",serif;font-size:18px}
/* credential strip used on the home page */
.credentials{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:#fbfaf7}
.credential{min-height:118px;padding:28px 28px;display:flex;gap:18px;align-items:center;border-right:1px solid var(--line)}
.credential:last-child{border-right:0}.credential-icon{width:40px;height:40px;flex:0 0 40px;color:#7e8992}.credential-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5}.credential strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:400;color:#2b3540}.credential span{display:block;margin-top:5px;color:#8a929a;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
/* never allow SVG shapes to fall back to black */
svg .vsoft{fill:#f4f1ea;stroke:#c8c4bb}.vmain{fill:none;stroke:#394550}.vline{fill:none;stroke:#a99270}.vtitle{fill:#25303b}.vtext{fill:#66717c}
h1,h2,h3,.lead,.card p,.article p,.article li,.person-body p{overflow-wrap:anywhere}
@media(max-width:1180px){
  .form{grid-template-columns:1fr 1fr}.form .message-field{grid-column:1/-1}
  :root{--gutter:42px}.links{gap:19px}.nav{gap:22px}.hero-grid{grid-template-columns:1fr 1fr}.hero-grid>div:first-child{padding-right:42px}.news{grid-template-columns:1fr 1fr}.news article:first-child{grid-column:1/-1;padding:25px 28px;border-bottom:1px solid var(--line)}.news article:nth-child(2){border-left:0}.credentials{grid-template-columns:1fr 1fr}.credential:nth-child(2){border-right:0}.credential:nth-child(-n+2){border-bottom:1px solid var(--line)}
}
@media(max-width:900px){
  .links,.phone{display:none}.hamb{display:block}.nav{min-height:80px}.brand img{width:42px;height:46px}.hero-grid{grid-template-columns:1fr}.hero-grid>div:first-child{padding:60px 0 46px}.hero-photo{min-height:560px;max-height:650px}.intro,.form-shell{grid-template-columns:1fr;gap:34px}.cards{grid-template-columns:1fr 1fr}.people{grid-template-columns:1fr 1fr}.people .person:first-child{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.people .person:nth-child(2){border-left:1px solid var(--line)}.flow,.requirements{grid-template-columns:1fr}.mini-grid{grid-template-columns:1fr 1fr}.credential{padding:24px 20px}
  .drawer{position:fixed;inset:0 0 0 auto;width:min(390px,90vw);z-index:120;background:#fbfaf7;padding:90px 28px 30px;border-left:1px solid var(--line);box-shadow:-18px 0 50px rgba(20,28,35,.1);overflow:auto}.drawer.open{display:block}.drawer button{position:absolute;top:20px;right:20px;background:none;color:var(--ink);border:1px solid #c8c7c3;padding:8px 11px;font:inherit;font-size:12px}.drawer a{display:block;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.drawer .drawer-phone{color:#947653}
}
@media(max-width:620px){
  :root{--gutter:30px}.wrap{width:calc(100% - 30px)}.nav{min-height:72px}.brand{gap:10px}.brand img{width:36px;height:40px}.brand-name{font-size:13px;letter-spacing:.11em}.brand small{font-size:6.5px;letter-spacing:.1em;margin-top:6px}.hero-grid>div:first-child{padding:42px 0 34px}.hero-photo{min-height:0;height:auto;aspect-ratio:2/3;max-height:none}.eyebrow{font-size:9px;letter-spacing:.19em;gap:11px}.eyebrow:after{width:26px}h1{font-size:clamp(40px,11vw,58px);margin:15px 0 18px;line-height:1.04}h2{font-size:34px;margin-bottom:14px}.lead{font-size:16px;line-height:1.65}.actions{margin-top:24px;gap:10px}.btn{min-height:48px;padding:0 17px;font-size:12px}section{padding:52px 0}.intro{gap:24px}.muted{font-size:15px;line-height:1.75}.cards,.portrait-grid,.news,.people{grid-template-columns:1fr;margin-top:34px}.card{min-height:0;padding:23px}.portrait{aspect-ratio:2/3}.portrait-copy{padding:90px 22px 22px}.news{display:block}.news article,.news article:first-child{min-height:0;padding:23px;border-right:0;border-bottom:1px solid var(--line)}.news article:last-child{border-bottom:0}.credentials{grid-template-columns:1fr}.credential{min-height:94px;border-right:0!important;border-bottom:1px solid var(--line)}.credential:last-child{border-bottom:0}.credential strong{font-size:16px}.credential span{font-size:8px}.article h1{font-size:clamp(40px,10vw,58px)}.article h2{font-size:28px;margin-top:40px}.article p,.article li{font-size:15px;line-height:1.72}.casebox{padding:22px;margin:34px 0}.flow div,.req{padding:20px}.article-photo{margin:24px 0}.case-visual{margin:28px 0}.case-visual figcaption{font-size:10px}.person img{aspect-ratio:2/3}.person-body{padding:23px}.person-body h2{font-size:28px}.form{grid-template-columns:1fr}.field,.field.full,.check,.form button,.status{grid-column:auto}.form button{width:100%}.form-note h3{font-size:27px}.mini-grid{grid-template-columns:1fr}.mini{border-right:0;border-bottom:1px solid var(--line)}.mini:last-child{border-bottom:0}.footer{padding:30px 0}
}

/* Team page: compact hero spacing — avoid the oversized empty area caused by the generic hero min-height. */
.team-hero{min-height:0;grid-template-columns:1fr}
.team-hero>div:first-child{padding:42px 0 46px}
@media(max-width:900px){
  .team-hero{min-height:0}
  .team-hero>div:first-child{padding:34px 0 34px}
}
@media(max-width:620px){
  .team-hero>div:first-child{padding:28px 0 28px}
}


/* =========================================================
   FINAL THEME SYSTEM — LIGHT / DARK
   Default is light. The user's choice is persisted site-wide.
   ========================================================= */
:root{
  color-scheme:light;
  --theme-bg:#f7f5f1;
  --theme-surface:#fbfaf7;
  --theme-surface-2:#efede8;
  --theme-ink:#18222d;
  --theme-text:#4e5965;
  --theme-muted:#7d8790;
  --theme-line:#dddcd8;
  --theme-line-soft:#e8e6e1;
  --theme-accent:#ad9064;
  --theme-accent-soft:#c9b89c;
  --theme-button:#18222d;
  --theme-button-text:#fff;
  --theme-input:#c7c7c3;
  --theme-photo-bg:#e5e3dd;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --theme-bg:#151719;
  --theme-surface:#1b1e21;
  --theme-surface-2:#202428;
  --theme-ink:#f0ede7;
  --theme-text:#c5c8cb;
  --theme-muted:#9ca2a8;
  --theme-line:#34383c;
  --theme-line-soft:#2a2e32;
  --theme-accent:#c6a979;
  --theme-accent-soft:#806d51;
  --theme-button:#e7e1d7;
  --theme-button-text:#17191b;
  --theme-input:#555b60;
  --theme-photo-bg:#292d31;
  --shadow:0 18px 50px rgba(0,0,0,.24);
}
html{background:var(--theme-bg);color-scheme:inherit}
body{background:var(--theme-bg);color:var(--theme-ink)}
body:before{background:radial-gradient(circle at 15% 8%,rgba(255,255,255,.72),transparent 30%),radial-gradient(circle at 90% 12%,rgba(255,255,255,.5),transparent 28%)}
:root[data-theme="dark"] body:before{background:radial-gradient(circle at 15% 8%,rgba(255,255,255,.025),transparent 30%),radial-gradient(circle at 90% 12%,rgba(255,255,255,.018),transparent 28%)}
.top{background:rgba(251,250,247,.96);border-color:var(--theme-line)}
:root[data-theme="dark"] .top{background:rgba(27,30,33,.96)}
.hero,.hero-grid,.credentials{background:var(--theme-surface)}
section{border-color:var(--theme-line)}
.brand-name,h1,h2,h3,.credential strong,.card h3,.person-body h2{color:var(--theme-ink)}
.brand small,.links,.phone,.lead,.muted,.card p,.news p,.article p,.article li,.person-body p,.mini,.form-note p,.form-note ul,.field label,.check,.footer{color:var(--theme-muted)}
.links a{color:var(--theme-text)}
.phone,.hamb,.theme-toggle{background:var(--theme-surface);border-color:var(--theme-line);color:var(--theme-ink)}
.phone:hover,.btn:hover{background:var(--theme-surface);border-color:var(--theme-accent)}
.hero-photo,.portrait,.article-photo{background:var(--theme-photo-bg)}
.btn{border-color:var(--theme-line);color:var(--theme-ink)}
.btn.primary{background:var(--theme-button);border-color:var(--theme-button);color:var(--theme-button-text);box-shadow:0 9px 25px rgba(0,0,0,.12)}
.btn.primary:hover{background:var(--theme-ink);border-color:var(--theme-ink);color:var(--theme-bg)}
.card,.news article,.req,.casebox{background:color-mix(in srgb,var(--theme-surface) 82%,transparent);border-color:var(--theme-line)}
.card:hover{background:var(--theme-surface);box-shadow:var(--shadow)}
.cards,.news,.flow,.requirements{border-color:var(--theme-line)}
.news article,.flow div,.req,.mini,.credential{border-color:var(--theme-line)}
.news article:first-child{background:transparent}
.contact-end,.cta{background:var(--theme-surface-2)}
.casebox{background:var(--theme-surface)}
.field input,.field textarea{color:var(--theme-ink);border-color:var(--theme-input)}
.field input::placeholder,.field textarea::placeholder{color:var(--theme-muted);opacity:.72}
.field input:focus,.field textarea:focus{border-bottom-color:var(--theme-accent)}
.status{color:var(--theme-text)}
.drawer{background:var(--theme-surface);border-color:var(--theme-line)}
.drawer button{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
.drawer a{border-color:var(--theme-line);color:var(--theme-ink)}
.eyebrow{color:var(--theme-accent)}
.eyebrow:after{background:var(--theme-accent-soft)}
.num,.news time,.news article a,.news .tag,.flow strong,.casebox h3{color:var(--theme-accent)}
.credential-icon{color:var(--theme-muted)}
svg .vsoft{fill:var(--theme-surface-2);stroke:var(--theme-line)}
.case-visual svg rect.vsoft{fill:var(--theme-surface-2);stroke:var(--theme-line)}
.case-visual svg .vmain{stroke:var(--theme-ink)}
.case-visual svg .vline{stroke:var(--theme-accent)}
.case-visual svg .vtitle{fill:var(--theme-ink)}
.case-visual svg .vtext{fill:var(--theme-text)}

/* Theme switcher */
.theme-toggle{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;height:42px;padding:0 11px;border:1px solid var(--theme-line);border-radius:999px;cursor:pointer;font:inherit;font-size:11px;line-height:1;transition:background .2s ease,border-color .2s ease,transform .2s ease;color:var(--theme-ink);white-space:nowrap}
.theme-toggle:hover{border-color:var(--theme-accent);transform:translateY(-1px)}
.theme-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;font-size:18px;line-height:1;color:var(--theme-accent)}
.theme-icon.moon{display:none;font-size:15px}
:root[data-theme="dark"] .theme-icon.sun{display:none}
:root[data-theme="dark"] .theme-icon.moon{display:inline-flex}
.theme-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-muted)}
@media(max-width:1180px){
  .theme-toggle{height:40px;padding:0 9px}
  .theme-label{display:none}
  .phone{display:none}
  .nav{gap:18px}
  .links{gap:15px;font-size:12px}
  .brand{gap:11px}
}
@media(max-width:1020px){
  .links{display:none}
  .hamb{display:block;margin-left:0;flex:0 0 auto}
  .nav{gap:10px}
  .brand{margin-right:auto}
  .theme-toggle{margin-left:0;margin-right:0}
}
@media(max-width:620px){.theme-toggle{width:38px;height:38px;padding:0;justify-content:center;margin-right:8px}.theme-icon{width:18px;height:18px}.theme-label{display:none}}

/* =========================================================
   PHOTO BLEND — soft feathered edges, no change to composition
   Photographs remain intact in the centre and dissolve gently
   into the active page palette at their outer edges.
   ========================================================= */
:root{
  --theme-photo-edge:#f7f5f1;
  --theme-photo-soft:#fbfaf7;
}
:root[data-theme="dark"]{
  --theme-photo-edge:#151719;
  --theme-photo-soft:#1b1e21;
}
.hero-photo,.portrait,.person{
  background:var(--theme-photo-edge);
}
.hero-photo img,.portrait img,.person img,.article-photo{
  -webkit-mask-image:radial-gradient(ellipse 96% 96% at 50% 50%,#000 56%,rgba(0,0,0,.97) 68%,rgba(0,0,0,.72) 82%,rgba(0,0,0,.28) 94%,transparent 100%);
  mask-image:radial-gradient(ellipse 96% 96% at 50% 50%,#000 56%,rgba(0,0,0,.97) 68%,rgba(0,0,0,.72) 82%,rgba(0,0,0,.28) 94%,transparent 100%);
}
.hero-photo img{
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 3%,#000 12%,#000 87%,rgba(0,0,0,.82) 94%,rgba(0,0,0,.3) 98%,transparent 100%),linear-gradient(180deg,#000 0%,#000 88%,rgba(0,0,0,.78) 95%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 3%,#000 12%,#000 87%,rgba(0,0,0,.82) 94%,rgba(0,0,0,.3) 98%,transparent 100%),linear-gradient(180deg,#000 0%,#000 88%,rgba(0,0,0,.78) 95%,transparent 100%);
  mask-composite:intersect;
}
.article-photo{
  box-shadow:0 0 0 1px transparent;
}

/* Final content polish: process and practical-situation blocks. */
.process-grid,.scenario-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:48px;border-top:1px solid var(--theme-line);border-left:1px solid var(--theme-line)}
.process-item,.scenario-card{display:block;padding:26px 26px 28px;border-right:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line);background:color-mix(in srgb,var(--theme-surface) 72%,transparent);color:var(--theme-ink)}
.process-item span{display:block;color:var(--theme-accent);font-size:11px;letter-spacing:.18em;margin-bottom:18px}
.process-item h3,.scenario-card h3{color:var(--theme-ink);margin:0 0 9px;font-size:19px}
.process-item p,.scenario-card p{color:var(--theme-muted);font-size:13px;line-height:1.7;margin:0}
.scenario-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.scenario-card{transition:.2s ease}.scenario-card:hover{background:var(--theme-surface);transform:translateY(-2px);box-shadow:var(--shadow)}
.scenario-card .num{display:block;margin-bottom:17px}
@media(max-width:900px){.process-grid{grid-template-columns:1fr 1fr}.scenario-grid{grid-template-columns:1fr}}
@media(max-width:620px){.process-grid{grid-template-columns:1fr}.process-item,.scenario-card{padding:22px}}

/* =========================================================
   GLOBAL SECTION ALIGNMENT — one horizontal rhythm everywhere
   Process/scenario sections are full-width sections, but their
   content must use exactly the same left/right gutter as .wrap.
   ========================================================= */
.process-section > .intro,
.process-section > .process-grid,
.scenario-section > .intro,
.scenario-section > .scenario-grid{
  width:min(var(--max),calc(100% - var(--gutter)));
  margin-left:auto;
  margin-right:auto;
}
.process-section > .process-grid,
.scenario-section > .scenario-grid{
  margin-top:52px;
}

@media(max-width:900px){
  .process-section > .intro,
  .process-section > .process-grid,
  .scenario-section > .intro,
  .scenario-section > .scenario-grid{
    width:min(var(--max),calc(100% - var(--gutter)));
  }
}

/* =========================================================
   GLOBAL SPACING SYSTEM — one horizontal and vertical rhythm
   across every content section.
   ========================================================= */
:root{
  --section-space:78px;
  --content-gap:52px;
}
section{padding-block:var(--section-space);}

/* Full-width sections use the exact same horizontal content grid as .wrap. */
.process-section > .intro,
.process-section > .process-grid,
.scenario-section > .intro,
.scenario-section > .scenario-grid,
.cta > .intro{
  width:min(var(--max),calc(100% - var(--gutter)));
  margin-inline:auto;
}
.process-section > .process-grid,
.scenario-section > .scenario-grid{
  margin-top:var(--content-gap);
}

/* Keep footer notes on the same horizontal grid instead of spanning the viewport. */
.footer-note{
  width:min(var(--max),calc(100% - var(--gutter)));
  margin:14px auto 0;
}

@media(max-width:620px){
  :root{
    --section-space:52px;
    --content-gap:34px;
  }
  .process-section > .intro,
  .process-section > .process-grid,
  .scenario-section > .intro,
  .scenario-section > .scenario-grid,
  .cta > .intro,
  .footer-note{
    width:calc(100% - 30px);
  }
}

/* v20: авторская маркировка и научно-практическая структура материалов */
.author-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 28px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.92rem;color:var(--muted)}
.author-line strong{color:var(--text);font-weight:600}
.copyright-mark,.card-copyright{display:inline-flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-weight:600;color:var(--accent);line-height:1}
.copyright-mark{width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font-size:14px}
.card-copyright{font-size:.72em;margin-right:5px;vertical-align:.08em}
.article-lead{font-size:1.08rem;line-height:1.75;max-width:920px}
.method-note{margin:34px 0 0;padding:20px 22px;border-left:2px solid var(--accent);background:var(--theme-photo-soft);line-height:1.7}
.sources{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.sources h3{margin:0 0 12px}
.sources ul{margin:0;padding-left:20px}
.sources li{margin:7px 0}
.sources a{text-decoration:underline;text-underline-offset:3px}
.copyright-note{margin-top:24px;font-size:.84rem;color:var(--muted)}
@media(max-width:720px){.author-line{gap:7px;font-size:.84rem}.article-lead{font-size:1rem}.method-note{padding:16px 17px}}

/* =========================================================
   HEADER v21 — compact theme control and collision-proof navigation
   The theme switch is intentionally icon-only. The desktop header
   keeps navigation, phone and controls in separate non-overlapping
   flex areas; at narrower widths it changes to the drawer before
   elements can collide.
   ========================================================= */
.theme-toggle{
  width:42px;
  height:42px;
  min-width:42px;
  flex:0 0 42px;
  padding:0;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--theme-line);
  border-radius:50%;
  gap:0;
  overflow:hidden;
}
.theme-toggle .theme-icon{width:18px;height:18px;font-size:18px;line-height:1;flex:0 0 18px}
.theme-toggle .theme-icon.moon{font-size:16px}
.theme-toggle .theme-label{display:none!important}

/* Keep the right controls together and prevent the nav from pushing into them. */
.nav{gap:20px;min-width:0}
.brand{min-width:250px;max-width:390px}
.links{gap:clamp(13px,1.35vw,22px);min-width:0;flex:1 1 auto;justify-content:flex-end}
.links a{flex:0 0 auto}
.phone{font-size:12px;padding:0 13px;min-height:48px}

@media(max-width:1280px){
  .nav{gap:16px}
  .brand{max-width:340px}
  .brand small{font-size:7px;letter-spacing:.11em}
  .links{gap:13px;font-size:12px}
  .phone{font-size:11px;padding:0 11px}
}

@media(max-width:1180px){
  .links{gap:12px}
  .phone{display:none}
}

@media(max-width:1020px){
  .nav{gap:10px}
  .brand{max-width:none;min-width:0;flex:1 1 auto}
  .theme-toggle{width:40px;height:40px;min-width:40px;flex-basis:40px}
  .hamb{display:block;margin-left:0;flex:0 0 auto}
}

@media(max-width:620px){
  .theme-toggle{width:38px;height:38px;min-width:38px;flex-basis:38px;margin:0}
  .theme-toggle .theme-icon{width:18px;height:18px}
}

@media(min-width:1181px) and (max-width:1280px){
  .brand{max-width:285px}
  .brand small{white-space:normal;line-height:1.25;max-width:250px}
  .links{gap:10px;font-size:11.5px}
  .phone{font-size:10.5px;padding:0 9px}
  .nav{gap:12px}
}


/* v22: встроенные авторские аналитические материалы на профильных страницах */
.author-analysis{margin:68px 0 20px;padding:38px 40px;border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line);background:color-mix(in srgb,var(--theme-surface) 72%,transparent)}
.author-analysis-head{margin-bottom:18px}
.author-analysis .author-line{margin:0;padding:10px 0;border-top:0}
.author-analysis>h2{font-size:31px;line-height:1.16;margin:12px 0 18px;max-width:980px}
.author-analysis>h3{font-size:20px;line-height:1.3;margin:34px 0 10px;color:var(--text)}
.author-analysis p{max-width:980px}
.author-practice-box{margin:30px 0 0;padding:20px 22px;border-left:2px solid var(--theme-accent);background:var(--theme-photo-soft)}
.author-practice-box strong{display:block;color:var(--theme-accent);font-size:11px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}
.author-practice-box p{margin:0}
.author-analysis .sources{margin-top:30px}
.author-analysis .sources li{margin:8px 0}
.author-analysis .sources a{color:var(--theme-text);text-decoration:underline;text-decoration-color:var(--theme-accent);text-underline-offset:3px}
@media(max-width:720px){.author-analysis{margin-top:48px;padding:28px 20px}.author-analysis>h2{font-size:26px}.author-analysis>h3{font-size:18px;margin-top:28px}.author-analysis .author-line{font-size:.82rem}}

/* TEAM PHOTO QA — equal visual framing for attorney and assistant */
.people .person img{
  width:100%;
  height:auto;
  aspect-ratio:2 / 3;
  object-fit:cover;
  object-position:center center;
  background:var(--theme-photo-edge);
}
.people .person:first-child img{object-position:center 24%;}
.people .person:nth-child(2) img{object-position:center 34%;}

@media(max-width:620px){
  .people .person img{aspect-ratio:2 / 3;}
}
