/* Soca's editorial pages use the same graphite, paper and cut as its wordmark. */
:root { --sm-ink:#242827; --sm-paper:#f5f4ef; --sm-line:#b9beb4; --sm-accent:#b54124; --sm-ease:cubic-bezier(.21,.71,.18,1); }
.sm-status { position:absolute; width:1px; height:1px; clip-path:inset(100%); overflow:hidden; white-space:nowrap; }
.sm-gallery [hidden],.sm-reading[hidden],.sm-panel[hidden]{display:none!important}
.sm-gallery,.sm-service-steps,.sm-almanac { margin:clamp(2rem,4.8vw,5.2rem) 0; }
.sm-gallery-heading { display:flex; justify-content:space-between; align-items:end; gap:1.35rem; margin-bottom:1.3rem; }
.sm-kicker { margin:0 0 .8rem; color:#535950; font-weight:650; font-size:.71rem; letter-spacing:.11em; text-transform:uppercase; }
.sm-gallery h2,.sm-service-steps h2,.sm-almanac h2 { font-size:clamp(2.2rem,4.25vw,4.6rem); font-weight:515; letter-spacing:-.059em; line-height:1.01; margin:0; }
.sm-filters { display:flex; flex-wrap:wrap; gap:.36rem; }
.sm-filters button { border:1px solid var(--sm-line); background:transparent; color:var(--sm-ink); padding:.55rem .85rem; min-height:44px; font-weight:600; font-size:.85rem; cursor:pointer; }
.sm-filters button[aria-pressed=true] { background:var(--sm-ink); color:var(--sm-paper); border-color:var(--sm-ink); }
.sm-filters button:focus-visible,.sm-gallery a:focus-visible,.sm-service-steps summary:focus-visible,.sm-almanac a:focus-visible { outline:3px solid #b94b2c; outline-offset:4px; }
.sm-stage { display:grid; gap:1rem; }
.sm-panel { display:grid; grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr); background:var(--sm-ink); color:var(--sm-paper); }
.sm-panel figure { position:relative; overflow:hidden; margin:0; min-height:clamp(19rem,31vw,32rem); background-color:#40453e; background-position:center; background-size:cover; }
.sm-panel figure img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sm-panel-copy { align-self:center; padding:clamp(1.6rem,3.5vw,4rem); }
.sm-panel h3 { font-size:clamp(2rem,3.6vw,4.2rem); line-height:1.02; letter-spacing:-.06em; font-weight:510; margin:0 0 1rem; }
.sm-panel p { color:#d5d8d1; line-height:1.55; max-width:39ch; margin:0 0 1.5rem; }
a.sm-notch,.nw-home a.sm-notch { color:var(--sm-ink); background:var(--sm-paper); }
a.sm-notch,.nw-home a.sm-notch,.sm-action { display:inline-flex; gap:.85rem; align-items:center; min-height:44px; text-decoration:none; font-size:.88rem; font-weight:650; padding:.6rem .9rem; }
a.sm-notch::after,.sm-action::after,.nw-home .nw-btn::after { content:''; width:.58rem; height:.76rem; background:#c74a29; transform:skew(-22deg); flex:none; transition:width .28s var(--sm-ease); }
a.sm-notch:hover::after,a.sm-notch:focus-visible::after,.sm-action:hover::after,.sm-action:focus-visible::after,.nw-home .nw-btn:hover::after,.nw-home .nw-btn:focus-visible::after { width:1.12rem; }
.sm-stage.is-forward .sm-panel:not([hidden]) img { animation:sm-shutter-forward .56s var(--sm-ease) both; }
.sm-stage.is-back .sm-panel:not([hidden]) img { animation:sm-shutter-back .56s var(--sm-ease) both; }
@keyframes sm-shutter-forward { from { clip-path:inset(0 100% 0 0); transform:scale(1.035); } to { clip-path:inset(0); transform:none; } }
@keyframes sm-shutter-back { from { clip-path:inset(0 0 0 100%); transform:scale(1.035); } to { clip-path:inset(0); transform:none; } }
.sm-service-steps { display:grid; grid-template-columns:.66fr 1.34fr; gap:clamp(1.5rem,5vw,6rem); }
.sm-service-steps h2 { font-size:clamp(2rem,3vw,3.4rem); }
.sm-service-steps ol { list-style:none; padding:0; margin:0; border-top:1px solid var(--sm-line); }
.sm-service-steps details { position:relative; border-bottom:1px solid var(--sm-line); }
.sm-service-steps summary { cursor:pointer; list-style:none; display:grid; grid-template-columns:2.5rem 1fr 1rem; gap:.8rem; align-items:center; padding:1rem 0; font-size:clamp(1.1rem,1.7vw,1.65rem); font-weight:550; letter-spacing:-.035em; }
.sm-service-steps summary::-webkit-details-marker { display:none; }
.sm-step-no { color:var(--sm-accent); overflow:hidden; font-size:1.12em; line-height:1.1; font-variant-numeric:tabular-nums; }
.sm-step-no b { display:block; font-weight:550; }
.sm-service-steps details[open] .sm-step-no b { animation:sm-raise .42s var(--sm-ease) both; }
.sm-service-steps summary i { width:.87rem; height:.87rem; position:relative; }
.sm-service-steps summary i::before,.sm-service-steps summary i::after { content:''; position:absolute; left:0; top:50%; width:100%; height:1px; background:currentColor; }
.sm-service-steps summary i::after { transform:rotate(90deg); transition:transform .22s ease; }
.sm-service-steps [open] i::after { transform:rotate(0deg); }
.sm-service-steps details p { margin:0; padding:.05rem 1.6rem 1.2rem 3.3rem; max-width:69ch; color:#4f554e; line-height:1.5; }
.sm-almanac h2 { margin-bottom:1.3rem; }
.sm-almanac-stack { display:grid; gap:.85rem; position:relative; isolation:isolate; }
.sm-almanac-card { display:grid; grid-template-columns:minmax(12rem,.64fr) minmax(0,1.36fr); gap:clamp(1.2rem,3.5vw,4rem); background:#e7e7df; border:1px solid var(--sm-line); padding:clamp(1rem,2.4vw,2.3rem); align-items:center; text-decoration:none; color:var(--sm-ink); }
.sm-almanac-card:nth-child(2) { background:#e0e3dc; }
.sm-almanac-card:nth-child(3) { background:#eeeee7; }
.sm-almanac-card img { width:100%; aspect-ratio:1.84; height:auto; object-fit:cover; }
.sm-almanac-card h3 { margin:0; max-width:30ch; font-size:clamp(1.45rem,2.5vw,3.1rem); font-weight:530; line-height:1.05; letter-spacing:-.045em; }
.sm-almanac-card p { margin:.7rem 0 0; max-width:65ch; font-size:1rem; line-height:1.45; color:#51584f; }
.sm-almanac-card:hover h3,.sm-almanac-card:focus-visible h3 { text-decoration:underline; text-decoration-color:var(--sm-accent); text-decoration-thickness:2px; text-underline-offset:.1em; }
@media (prefers-reduced-motion:no-preference) and (min-height:610px) {
  .sm-almanac-card { position:sticky; top:calc(var(--home-header-height,72px) + .6rem + var(--card-i)*.9rem); z-index:var(--card-i); }
}
.sm-curtain-line { display:block; overflow:clip; padding-block:.055em .08em; margin-block:-.055em -.08em; }
.sm-curtain-line>span { display:block; animation:sm-raise .59s var(--sm-ease) both; animation-delay:calc(var(--line,0)*60ms); }
@keyframes sm-raise { from { transform:translateY(108%); } to { transform:none; } }
.sm-reading { position:sticky; top:var(--home-header-height,72px); z-index:8; display:flex; align-items:center; gap:.82rem; background:var(--sm-paper); padding:.65rem 0; font-size:.78rem; line-height:1.3; color:#484f47; border-bottom:1px solid var(--sm-line); }
.sm-reading progress { flex:1; min-width:2rem; height:3px; appearance:none; background:#d5d7ce; border:0; }
.sm-reading progress::-webkit-progress-bar { background:#d5d7ce; }
.sm-reading progress::-webkit-progress-value { background:var(--sm-accent); }
.sm-reading progress::-moz-progress-bar { background:var(--sm-accent); }
.sm-reading [data-reading-value] { min-width:4ch; text-align:right; font-variant-numeric:tabular-nums; }
:is(.directory-links>a,.aside-box>a,.nw-disciplines a,.nw-regions-list>a,.sm-service-steps details,.result-list>li,.nw-steps details) { position:relative; }
:is(.directory-links>a,.aside-box>a,.nw-disciplines a,.nw-regions-list>a,.sm-service-steps details,.result-list>li,.nw-steps details)::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:var(--sm-accent); transform:scaleX(0); transform-origin:left; transition:transform .31s var(--sm-ease); pointer-events:none; }
:is(.directory-links>a,.aside-box>a,.nw-disciplines a,.nw-regions-list>a,.sm-service-steps details,.result-list>li,.nw-steps details):is(:hover,:focus-visible,:focus-within,[open])::after { transform:scaleX(1); }
@media (max-width:760px) {
  .sm-gallery-heading { display:grid; }
  .sm-panel { grid-template-columns:1fr; }
  .sm-panel figure { min-height:0; aspect-ratio:1.88; }
  .sm-panel-copy { padding:1.35rem; }
  .sm-panel-copy p { max-width:60ch; }
  .sm-service-steps { grid-template-columns:1fr; }
  .sm-service-steps details p { padding-left:2.6rem; }
  .sm-service-steps summary { grid-template-columns:1.8rem 1fr 1rem; }
  .sm-almanac-card { grid-template-columns:minmax(0,.53fr) minmax(0,1fr); gap:1rem; }
  .sm-almanac-card img { aspect-ratio:1.12; }
}
@media (max-width:500px) {
  .sm-almanac-card { grid-template-columns:1fr; gap:.85rem; }
  .sm-almanac-card img { aspect-ratio:2.65; }
  .sm-filters { gap:.25rem; }
  .sm-filters button { padding:.43rem .67rem; }
}
@media (prefers-reduced-motion:reduce) {
  .sm-curtain-line>span,.sm-stage img,.sm-service-steps details[open] .sm-step-no b { animation:none!important; transform:none!important; }
  .sm-home *, .sm-notch::after,.sm-action::after,.nw-home .nw-btn::after,.sm-service-steps *::after,.directory-links>a::after,.aside-box>a::after,.nw-disciplines a::after,.nw-regions-list>a::after,.result-list>li::after { transition:none!important; }
}
.sm-almanac-card { scroll-margin-block-start:calc(var(--home-header-height,72px) + 1rem); }
.sm-almanac-card:focus-visible { z-index:5; }
.archive-editions article { position:relative; }
.archive-editions article::after { content:''; position:absolute; bottom:-1px; left:0; width:100%; height:2px; background:var(--sm-accent); transform:scaleX(0); transform-origin:left; transition:transform .31s var(--sm-ease); pointer-events:none; }
.archive-editions article:is(:hover,:focus-within)::after { transform:scaleX(1); }
.inquiry-submit { display:inline-flex; align-items:center; gap:.85rem; }
.inquiry-submit::after { content:''; width:.55rem; height:.75rem; background:#ff7954; transform:skew(-22deg); transition:width .28s var(--sm-ease); }
.inquiry-submit:is(:hover,:focus-visible)::after { width:1.1rem; }
@media(prefers-reduced-motion:reduce) { .archive-editions article::after,.inquiry-submit::after { transition:none; } }
.sm-stage { touch-action:pan-y pinch-zoom; }
