/* Avvocato Sorio – cinematic theme.
   Black-and-white photography of the studio, ivory paper, one brass accent.
   Display: Cormorant Garamond (as classic as the monogram). Text: Inter. */

:root {
	--sorio-ink: #0e0e0f;
	--sorio-ink-2: #19191b;
	--sorio-ink-3: #232326;
	--sorio-paper: #f4f1ea;
	--sorio-paper-2: #ebe6db;
	--sorio-text: #1d1c1a;
	--sorio-muted: #6b675f;
	--sorio-on-dark: #f4f1ea;
	--sorio-on-dark-2: #b9b4a9;
	--sorio-brass: #b08d57;
	--sorio-brass-2: #c9a978;
	--sorio-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
	--sorio-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--sorio-pad: clamp(20px, 5vw, 64px);
	--sorio-max: 1240px;
	--sorio-ease: cubic-bezier(.22, .61, .36, 1);
	--sorio-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--sorio-paper); color: var(--sorio-text); font: 400 17px/1.65 var(--sorio-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
figure { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sorio-skip:focus { clip-path: none; width: auto; height: auto; left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: var(--sorio-paper); color: var(--sorio-ink); }
:focus-visible { outline: 2px solid var(--sorio-brass); outline-offset: 3px; }

.sorio-wrap { max-width: var(--sorio-max); margin: 0 auto; padding-inline: var(--sorio-pad); }
.sorio-kicker { font: 500 .82rem/1.2 var(--sorio-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sorio-brass); }

/* ---------- buttons ---------- */
.sorio-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font: 500 .95rem/1 var(--sorio-sans); letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; transition: background .35s var(--sorio-ease), color .35s var(--sorio-ease), border-color .35s, transform .4s var(--sorio-out); }
.sorio-btn:active { transform: scale(.98); }
.sorio-btn-solid { background: var(--sorio-brass); color: var(--sorio-ink); }
.sorio-btn-solid:hover { background: var(--sorio-brass-2); }
.sorio-btn-line { border-color: rgba(244, 241, 234, .5); color: var(--sorio-on-dark); }
.sorio-btn-line:hover { border-color: var(--sorio-on-dark); background: rgba(244, 241, 234, .08); }
.sorio-btn-dark { border-color: rgba(29, 28, 26, .4); color: var(--sorio-text); }
.sorio-btn-dark:hover { border-color: var(--sorio-text); background: rgba(29, 28, 26, .05); }

/* ---------- top bar ---------- */
.sorio-bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; transition: background .5s var(--sorio-ease), padding .5s var(--sorio-ease); padding: 22px 0; }
.sorio-bar-in { max-width: var(--sorio-max); margin: 0 auto; padding-inline: var(--sorio-pad); display: flex; align-items: center; justify-content: space-between; }
.sorio-bar-brand img { width: 84px; height: auto; filter: brightness(0) invert(1); opacity: .95; transition: width .5s var(--sorio-ease); }
.sorio-bar.is-solid { background: rgba(14, 14, 15, .94); padding: 10px 0; }
.home .sorio-bar .sorio-bar-brand { transition: opacity .5s var(--sorio-ease); }
.home .sorio-bar:not(.is-solid) .sorio-bar-brand { opacity: 0; pointer-events: none; }
.sorio-bar.is-solid .sorio-bar-brand img { width: 62px; }
.sorio-hmenu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 44px); }
.sorio-hmenu a { position: relative; display: block; padding: 8px 0; color: var(--sorio-on-dark); text-decoration: none; font: 500 .82rem/1 var(--sorio-sans); letter-spacing: .2em; text-transform: uppercase; }
.sorio-hmenu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sorio-brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--sorio-out); }
.sorio-hmenu a:hover::after, .sorio-hmenu .current-menu-item > a::after { transform: none; }
.sorio-hmenu .sub-menu { display: none; }
.sorio-menu-btn { display: none; }

/* ---------- reveal and line effects ---------- */
.sorio-line { display: block; overflow: hidden; padding-bottom: .08em; }
.sorio-line > span { display: inline-block; }
.sorio-js .sorio-line > span { transform: translateY(108%); }
.sorio-js .sorio-fade { opacity: 0; transform: translateY(18px); }
.sorio-js .sorio-reveal { opacity: 0; transform: translateY(28px); }
.sorio-live .sorio-hero .sorio-line > span,
.sorio-live .sorio-page-hero .sorio-line > span { transform: none; transition: transform 1.3s var(--sorio-out) .15s; }
.sorio-live .sorio-hero .sorio-fade,
.sorio-live .sorio-page-hero .sorio-fade { opacity: 1; transform: none; transition: opacity 1.1s var(--sorio-ease) .6s, transform 1.2s var(--sorio-out) .6s; }
.sorio-live .sorio-hero .sorio-hero-cta { transition-delay: .8s; }
.sorio-reveal.is-in, .sorio-contact-cta.is-in .sorio-line > span { opacity: 1; transform: none; transition: opacity 1s var(--sorio-ease), transform 1.2s var(--sorio-out); transition-delay: var(--d, 0s); }

/* ---------- HERO ---------- */
.sorio-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--sorio-on-dark); background: var(--sorio-ink); overflow: hidden; }
.sorio-hero-media { position: absolute; inset: 0; }
.sorio-hero-slide { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 2.4s var(--sorio-ease); filter: grayscale(1) contrast(1.05); }
/* every slide carries the zoom; it runs only on the active one, and the slide going out
   freezes where it is while it fades, so nothing jumps */
.sorio-hero-slide { animation: sorioKen 16s linear both; animation-play-state: paused; }
.sorio-hero-slide.is-active { opacity: 1; animation-play-state: running; }
@keyframes sorioKen { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.sorio-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 15, .55) 0%, rgba(14, 14, 15, .2) 35%, rgba(14, 14, 15, .82) 78%, var(--sorio-ink) 100%); }
/* overlay between the slideshow and the text: a darker veil on the text side and brass line geometry */
.sorio-hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 14, 15, .82) 0%, rgba(14, 14, 15, .55) 38%, rgba(14, 14, 15, .15) 70%, rgba(14, 14, 15, .35) 100%), radial-gradient(70% 90% at 74% 48%, rgba(176, 141, 87, .10), rgba(176, 141, 87, 0) 60%); }
.sorio-hero-geo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.sorio-hero-geo * { fill: none; vector-effect: non-scaling-stroke; }
.sorio-hero-geo .g-line { stroke: rgba(244, 241, 234, .34); stroke-width: 1; }
.sorio-hero-geo .g-thin { stroke: rgba(244, 241, 234, .2); }
.sorio-hero-geo .g-faint { stroke: rgba(244, 241, 234, .1); }
.sorio-hero-geo .g-brass { stroke: var(--sorio-brass-2); stroke-width: 1.5; }
.sorio-hero-geo .g-dash { stroke: rgba(201, 169, 120, .45); stroke-width: 1; stroke-dasharray: 2 10; }
.sorio-hero-geo .g-dot { fill: var(--sorio-brass-2); }
.sorio-hero-geo .g-rot { transform-origin: 1060px 430px; animation: sorioSpin 120s linear infinite; }
@keyframes sorioSpin { to { transform: rotate(360deg); } }
/* draw the lines on load */
.sorio-js .sorio-hero-geo .g-line { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.sorio-live .sorio-hero-geo .g-line { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s var(--sorio-ease) .4s; }
.sorio-live .sorio-hero-geo .g-thin { transition-delay: .9s; }
.sorio-live .sorio-hero-geo .g-brass { transition-delay: 1.5s; }
.sorio-js .sorio-hero-geo .g-dot, .sorio-js .sorio-hero-geo .g-rot { opacity: 0; }
.sorio-live .sorio-hero-geo .g-dot, .sorio-live .sorio-hero-geo .g-rot { opacity: 1; transition: opacity 1.4s var(--sorio-ease) 2.4s; }
.sorio-hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--sorio-max); margin: 0 auto; padding: 0 var(--sorio-pad) clamp(70px, 12vh, 130px); }
.sorio-hero-logo { width: clamp(150px, 16vw, 230px); filter: brightness(0) invert(1); opacity: 0; transform: translateY(12px); transition: opacity 1.4s var(--sorio-ease), transform 1.4s var(--sorio-out); margin-bottom: clamp(26px, 4vh, 44px); }
.sorio-live .sorio-hero-logo { opacity: .95; transform: none; }
.sorio-hero-title { font: 500 clamp(3rem, 8vw, 7.6rem)/.95 var(--sorio-serif); letter-spacing: -.01em; }
.sorio-hero-sub { margin-top: 20px; font: 500 italic clamp(1.3rem, 2.2vw, 1.9rem)/1.3 var(--sorio-serif); color: var(--sorio-brass-2); }
.sorio-hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.sorio-scroll { position: absolute; z-index: 2; right: var(--sorio-pad); bottom: 44px; width: 1px; height: 70px; background: rgba(244, 241, 234, .25); overflow: hidden; }
.sorio-scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--sorio-on-dark); animation: sorioDrop 2.2s var(--sorio-ease) infinite; }
@keyframes sorioDrop { to { top: 100%; } }

/* ---------- CLAIM ---------- */
.sorio-claim { background: var(--sorio-ink); color: var(--sorio-on-dark); padding: clamp(120px, 18vh, 200px) 0 clamp(120px, 16vh, 180px); }
.sorio-claim-text { margin-top: 34px; font: 500 clamp(1.9rem, 4.2vw, 3.6rem)/1.22 var(--sorio-serif); max-width: 24ch; }
.sorio-claim-text b, .sorio-claim-text strong { font-weight: 600; color: var(--sorio-brass-2); }
.sorio-claim-text .w { opacity: .18; transition: opacity .5s var(--sorio-ease); }
.sorio-claim-text .w.on { opacity: 1; }

/* ---------- QUALIFICATIONS ---------- */
.sorio-quals { background: var(--sorio-ink); color: var(--sorio-on-dark); padding: 0 0 clamp(110px, 16vh, 180px); }
.sorio-quals-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.sorio-quals-list li { background: var(--sorio-ink-2); padding: 36px 30px 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; transition: background .5s var(--sorio-ease); }
.sorio-quals-list li:hover { background: var(--sorio-ink-3); }
.sorio-quals-list strong { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--sorio-serif); color: var(--sorio-on-dark); }
.sorio-quals-list span { color: var(--sorio-on-dark-2); font-size: .98rem; line-height: 1.55; }
.sorio-quals-list li:nth-child(2) { --d: .08s; } .sorio-quals-list li:nth-child(3) { --d: .16s; } .sorio-quals-list li:nth-child(4) { --d: .24s; }

/* ---------- GALLERY: one photo at a time, revealed by the scroll ---------- */
.sorio-gallery { position: relative; height: 520vh; background: var(--sorio-ink); color: var(--sorio-on-dark); }
.sorio-gallery-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.sorio-gallery-grid { width: 100%; display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sorio-gallery-title { margin-top: 18px; font: 500 clamp(2.4rem, 4.4vw, 4rem)/1 var(--sorio-serif); }
.sorio-gallery-place { margin-top: 14px; font: 500 italic 1.25rem/1.3 var(--sorio-serif); color: var(--sorio-on-dark-2); }
.sorio-gallery-meta { margin-top: clamp(40px, 8vh, 90px); }
.sorio-gallery-count { display: flex; align-items: baseline; gap: 10px; font: 500 clamp(3.4rem, 6vw, 5.4rem)/1 var(--sorio-serif); font-variant-numeric: lining-nums; }
.sorio-gallery-count i { font-style: normal; font-size: .45em; color: var(--sorio-brass); }
.sorio-gallery-count span:last-child { font-size: .45em; color: var(--sorio-on-dark-2); }
.sorio-gallery-caption { margin-top: 14px; min-height: 2.6em; font-size: 1.02rem; color: var(--sorio-on-dark); transition: opacity .4s var(--sorio-ease); }
.sorio-gallery-caption.is-swap { opacity: 0; }
.sorio-gallery-bar { margin-top: 22px; height: 1px; background: rgba(244, 241, 234, .18); }
.sorio-gallery-bar b { display: block; height: 100%; background: var(--sorio-brass); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sorio-gallery-open { margin-top: 30px; border-color: rgba(244, 241, 234, .4); color: var(--sorio-on-dark); background: none; cursor: pointer; }
.sorio-gallery-open:hover { border-color: var(--sorio-on-dark); background: rgba(244, 241, 234, .06); }
.sorio-gallery-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.sorio-gallery-frame { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.25s cubic-bezier(.76, 0, .24, 1); }
.sorio-gallery-frame.is-shown { clip-path: inset(0 0 0 0); }
.sorio-gallery-hit { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sorio-gallery-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.12); transition: transform 2.2s var(--sorio-out); }
.sorio-gallery-frame.is-shown img { transform: scale(1); }
.sorio-gallery-figcap { display: none; }
.sorio-gallery-stage::after { content: ""; position: absolute; inset: 14px; box-shadow: inset 0 0 0 1px rgba(201, 169, 120, .35); pointer-events: none; }

/* ---------- LIGHTBOX ---------- */
.sorio-lightbox { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: #08080a; color: var(--sorio-on-dark); opacity: 0; transition: opacity .45s var(--sorio-ease); }
.sorio-lightbox[hidden] { display: none; }
.sorio-lightbox.is-open { opacity: 1; }
.sorio-lightbox-top, .sorio-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--sorio-pad); }
.sorio-lightbox-count { font: 500 1.3rem/1 var(--sorio-serif); color: var(--sorio-on-dark-2); }
.sorio-lightbox-close { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.sorio-lightbox-close span { position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: var(--sorio-on-dark); transform: rotate(45deg); }
.sorio-lightbox-close span + span { transform: rotate(-45deg); }
.sorio-lightbox-stage { display: flex; align-items: center; justify-content: center; padding: 0 var(--sorio-pad); min-height: 0; touch-action: pan-y; }
.sorio-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); transition: opacity .35s var(--sorio-ease), transform .5s var(--sorio-out); }
.sorio-lightbox-stage img.is-swap { opacity: 0; transform: scale(.985); }
.sorio-lightbox-cap { flex: 1; text-align: center; font: 500 italic 1.3rem/1.3 var(--sorio-serif); }
.sorio-lightbox-nav { width: 52px; height: 52px; border: 1px solid rgba(244, 241, 234, .35); background: none; color: var(--sorio-on-dark); font-size: 1.2rem; cursor: pointer; transition: border-color .3s, background .3s; }
.sorio-lightbox-nav:hover { border-color: var(--sorio-brass); background: rgba(176, 141, 87, .12); }
body.sorio-lb-open { overflow: hidden; }

/* ---------- PERSON ---------- */
.sorio-person { background: var(--sorio-paper); padding: clamp(40px, 6vh, 80px) 0 clamp(110px, 16vh, 180px); }
.sorio-person-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.sorio-person-photo { overflow: hidden; background: var(--sorio-ink); }
.sorio-person-photo img { width: 100%; filter: grayscale(1) contrast(1.05); transform: scale(1.06); transition: transform 2s var(--sorio-out); }
.sorio-person-photo.is-in img { transform: scale(1); }
.sorio-person-name { margin-top: 20px; font: 500 clamp(2.4rem, 5vw, 4.4rem)/1 var(--sorio-serif); }
.sorio-person-facts { list-style: none; margin: 36px 0 40px; padding: 0; }
.sorio-person-facts li { padding: 18px 0; border-top: 1px solid rgba(29, 28, 26, .14); font-size: 1.05rem; }
.sorio-person-facts li:last-child { border-bottom: 1px solid rgba(29, 28, 26, .14); }
.sorio-person-facts li:nth-child(2) { --d: .08s; } .sorio-person-facts li:nth-child(3) { --d: .16s; }

/* ---------- CONTACT CTA ---------- */
.sorio-contact-cta { background: var(--sorio-ink); color: var(--sorio-on-dark); padding: clamp(120px, 18vh, 200px) 0; }
.sorio-cta-title { font: 500 clamp(2.8rem, 8vw, 7rem)/.95 var(--sorio-serif); }
.sorio-cta-grid { margin-top: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: center; }
.sorio-cta-tel { font: 500 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--sorio-serif); color: var(--sorio-brass-2); text-decoration: none; }
.sorio-cta-tel:hover { color: var(--sorio-on-dark); }
.sorio-cta-addr { color: var(--sorio-on-dark-2); }
.sorio-cta-grid > *:nth-child(2) { --d: .08s; } .sorio-cta-grid > *:nth-child(3) { --d: .16s; }

/* ---------- INNER PAGE HERO ---------- */
.sorio-page-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; padding: 160px 0 70px; background: var(--sorio-ink); color: var(--sorio-on-dark); overflow: hidden; }
.sorio-page-hero::before { content: ""; position: absolute; inset: -4%; background: var(--sorio-bg) center / cover no-repeat; filter: grayscale(1); opacity: .5; animation: sorioKen 18s linear both; }
.sorio-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 15, .5), var(--sorio-ink)); }
.sorio-page-hero > * { position: relative; z-index: 1; width: 100%; }
.sorio-page-hero-plain { min-height: 42svh; }
.sorio-page-hero-plain::before { display: none; }
.sorio-page-title { margin-top: 16px; font: 500 clamp(3rem, 8vw, 7rem)/.95 var(--sorio-serif); }

/* ---------- CURRICULUM ---------- */
.sorio-cv { padding: clamp(80px, 12vh, 140px) 0 clamp(110px, 16vh, 180px); }
.sorio-cv-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.sorio-cv-side { position: sticky; top: 110px; }
.sorio-cv-photo { overflow: hidden; background: var(--sorio-ink); }
.sorio-cv-photo img { width: 100%; filter: grayscale(1); }
.sorio-cv-caption { margin-top: 18px; font: 500 italic 1.25rem/1.35 var(--sorio-serif); color: var(--sorio-muted); }
.sorio-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.sorio-timeline::before { content: ""; position: absolute; left: 7.4rem; top: 10px; bottom: 10px; width: 1px; background: rgba(29, 28, 26, .14); }
.sorio-timeline-item { position: relative; display: grid; grid-template-columns: 7.4rem 1fr; gap: 0 36px; padding: 0 0 38px; }
.sorio-timeline-item::before { content: ""; position: absolute; left: calc(7.4rem - 4px); top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--sorio-paper); box-shadow: inset 0 0 0 1px var(--sorio-brass); transition: background .6s var(--sorio-ease); }
.sorio-timeline-item.is-in::before { background: var(--sorio-brass); }
.sorio-timeline-year { padding-right: 24px; text-align: right; font: 600 1.35rem/1.3 var(--sorio-serif); color: var(--sorio-brass); }
.sorio-timeline-item p { font-size: 1.06rem; line-height: 1.65; }

/* ---------- CONTACTS ---------- */
.sorio-ct { padding: clamp(80px, 12vh, 140px) 0 clamp(110px, 16vh, 180px); }
.sorio-ct-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.sorio-ct-list { margin: 0; }
.sorio-ct-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(29, 28, 26, .14); }
.sorio-ct-list dt { font: 500 .8rem/1.9 var(--sorio-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sorio-brass); }
.sorio-ct-list dd { margin: 0; font: 500 clamp(1.3rem, 2vw, 1.7rem)/1.3 var(--sorio-serif); }
.sorio-ct-list dd a { text-decoration: none; }
.sorio-ct-list dd a:hover { color: var(--sorio-brass); }
.sorio-map { margin-top: 40px; overflow: hidden; background: var(--sorio-paper-2); }
.sorio-map iframe { display: block; width: 100%; height: 380px; filter: grayscale(1) contrast(1.05); }
.sorio-ct-form { background: var(--sorio-ink); color: var(--sorio-on-dark); padding: clamp(30px, 4vw, 52px); }
.sorio-ct-form-title { font: 500 clamp(1.9rem, 3vw, 2.6rem)/1.1 var(--sorio-serif); margin-bottom: 28px; }
.sorio-contact-form .control-group { margin-bottom: 14px; }
.sorio-contact-form input[type="text"], .sorio-contact-form input[type="email"], .sorio-contact-form input[type="tel"], .sorio-contact-form textarea { width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 241, 234, .3); color: var(--sorio-on-dark); font: 400 1rem/1.4 var(--sorio-sans); border-radius: 0; transition: border-color .3s; }
.sorio-contact-form textarea { min-height: 140px; resize: vertical; }
.sorio-contact-form ::placeholder { color: var(--sorio-on-dark-2); letter-spacing: .08em; font-size: .85rem; }
.sorio-contact-form input:focus, .sorio-contact-form textarea:focus { outline: none; border-bottom-color: var(--sorio-brass); }
.sorio-contact-form .checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--sorio-on-dark-2); }
.sorio-contact-form .checkbox input { margin-top: 4px; accent-color: var(--sorio-brass); }
.sorio-contact-form .required { color: var(--sorio-brass); }
.sorio-form-note { font-size: .82rem; color: var(--sorio-on-dark-2); }
.sorio-contact-form .buttons { display: flex; gap: 12px; margin-top: 10px; }
.sorio-button { min-height: 48px; padding: 0 26px; border: 1px solid rgba(244, 241, 234, .4); background: transparent; color: var(--sorio-on-dark); font: 500 .85rem/1 var(--sorio-sans); letter-spacing: .14em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.sorio-button.submit-button { background: var(--sorio-brass); border-color: var(--sorio-brass); color: var(--sorio-ink); }
.sorio-button.submit-button:hover { background: var(--sorio-brass-2); }
.sorio-button.reset-button:hover { border-color: var(--sorio-on-dark); }
.sorio-hp { position: absolute; left: -9999px; }
.sorio-form-msg { padding: 14px 16px; margin-bottom: 18px; font-size: .92rem; }
.sorio-form-ok { background: rgba(176, 141, 87, .18); color: var(--sorio-on-dark); }
.sorio-form-err { background: rgba(190, 70, 60, .22); color: var(--sorio-on-dark); }

/* ---------- PROSE (cookie policy, extra content) ---------- */
.sorio-article { padding: clamp(70px, 10vh, 120px) 0 clamp(100px, 14vh, 160px); }
.sorio-prose { max-width: 760px; }
.sorio-prose p, .sorio-prose ul, .sorio-prose ol { margin: 0 0 1.2em; }
.sorio-prose h2, .sorio-prose h3 { font-family: var(--sorio-serif); font-size: 1.9rem; margin: 1.6em 0 .6em; }
.sorio-prose a { color: var(--sorio-brass); }
.sorio-extra { padding: 0 0 120px; }

/* ---------- FOOTER ---------- */
.sorio-footer { background: var(--sorio-ink); color: var(--sorio-on-dark-2); }
.sorio-footer-in { max-width: var(--sorio-max); margin: 0 auto; padding: 80px var(--sorio-pad) 56px; display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-end; justify-content: space-between; box-shadow: inset 0 1px 0 rgba(244, 241, 234, .08); }
.sorio-footer-logo img { width: 130px; filter: brightness(0) invert(1); opacity: .85; }
.sorio-footer-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.sorio-footer-address span { display: block; font: 500 1.3rem/1.3 var(--sorio-serif); color: var(--sorio-on-dark); margin-bottom: 4px; }
.sorio-footer-contact { display: flex; flex-direction: column; gap: 4px; }
.sorio-footer-contact a { text-decoration: none; color: var(--sorio-on-dark); }
.sorio-footer-contact a:hover { color: var(--sorio-brass-2); }
.sorio-footer-base { max-width: var(--sorio-max); margin: 0 auto; padding: 22px var(--sorio-pad) 30px; display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; box-shadow: inset 0 1px 0 rgba(244, 241, 234, .08); }
.sorio-footer-base a { color: var(--sorio-on-dark-2); }
.sorio-footer-base .sorio-credit { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; opacity: .75; transition: opacity .3s; }
.sorio-footer-base .sorio-credit:hover { opacity: 1; }
.sorio-credit img { width: 28px; height: 28px; }

/* ---------- COOKIE ---------- */
.sorio-cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--sorio-paper); color: var(--sorio-text); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-size: .88rem; line-height: 1.5; }
.sorio-cookie[hidden] { display: none; }
.sorio-cookie a { color: var(--sorio-brass); }
.sorio-cookie-btns { flex: none; display: flex; gap: 10px; }
.sorio-cookie .decline { min-height: 42px; padding: 0 18px; border: 1px solid var(--sorio-ink); background: none; color: var(--sorio-ink); font: 500 .85rem/1 var(--sorio-sans); letter-spacing: .1em; cursor: pointer; }
.sorio-cookie .accept { flex: none; min-height: 42px; padding: 0 22px; border: 0; background: var(--sorio-ink); color: var(--sorio-on-dark); font: 500 .85rem/1 var(--sorio-sans); letter-spacing: .1em; cursor: pointer; }

/* ---------- TABLET / PHONE ---------- */
@media (max-width: 1000px) {
	.sorio-quals-list { grid-template-columns: 1fr 1fr; }
	.sorio-cta-grid { grid-template-columns: 1fr; gap: 20px; }
	.sorio-cta-grid .sorio-btn { justify-self: start; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	/* centred text on phones: hero, headings and statements (lists and the CV stay left-aligned) */
	.sorio-hero-in, .sorio-claim .sorio-wrap, .sorio-quals .sorio-wrap > .sorio-kicker, .sorio-quals-list li, .sorio-gallery-info, .sorio-person-text, .sorio-contact-cta .sorio-wrap, .sorio-page-hero .sorio-wrap, .sorio-ct-form-title, .sorio-footer-in, .sorio-footer-base, .sorio-gallery-count, .sorio-gallery-caption { text-align: center; }
	.sorio-hero-logo { margin-inline: auto; }
	.sorio-claim-text { margin-inline: auto; }
	.sorio-quals-list li { align-items: center; }
	.sorio-person-photo { margin-inline: auto; }
	.sorio-person-facts li { text-align: center; }
	.sorio-person-text .sorio-btn, .sorio-cta-grid .sorio-btn { justify-self: center; }
	.sorio-cta-grid { justify-items: center; }
	.sorio-footer-in { flex-direction: column; align-items: center; }
	.sorio-footer-cols { flex-direction: column; align-items: center; }
	.sorio-footer-contact { align-items: center; }
	.sorio-footer-base { align-items: center; }
	.sorio-menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
	.sorio-menu-btn span { display: block; height: 1px; background: var(--sorio-on-dark); transition: transform .4s var(--sorio-out); }
	.sorio-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.sorio-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
	.sorio-menu { position: fixed; inset: 0; background: var(--sorio-ink); display: flex; align-items: center; padding: var(--sorio-pad); opacity: 0; visibility: hidden; transition: opacity .45s var(--sorio-ease), visibility .45s; }
	.sorio-menu.is-open { opacity: 1; visibility: visible; }
	.sorio-hmenu { flex-direction: column; gap: 6px; }
	.sorio-hmenu a { font: 500 2.6rem/1.2 var(--sorio-serif); letter-spacing: 0; text-transform: none; }
	.sorio-bar-brand { position: relative; z-index: 2; }
	.sorio-bar-brand img { width: 66px; }
	.sorio-hero-slide { inset: -6%; }
	.sorio-hero-veil { background: linear-gradient(180deg, rgba(14, 14, 15, .35) 0%, rgba(14, 14, 15, .2) 30%, rgba(14, 14, 15, .75) 62%, rgba(14, 14, 15, .9) 100%); }
	/* on a phone the geometry centre (x 1060, y 430 of the 1440x900 drawing) moves to the upper middle */
	.sorio-hero-geo { inset: auto; opacity: .8; left: 50%; top: 24%; width: 200vw; height: auto; aspect-ratio: 1440 / 900; transform: translate(-73.6%, -47.8%); }
	.sorio-hero-cta { flex-direction: column; align-items: stretch; }
	.sorio-scroll { display: none; }
	.sorio-quals-list { grid-template-columns: 1fr; }
	.sorio-quals-list li { min-height: 0; padding: 28px 24px 30px; }
	.sorio-gallery { height: auto; }
	.sorio-gallery-sticky { position: relative; height: auto; display: block; padding: 90px 0 70px; }
	.sorio-gallery-grid { grid-template-columns: 1fr; gap: 22px; padding-inline: 0; }
	.sorio-gallery-info { padding-inline: var(--sorio-pad); }
	.sorio-gallery-meta { margin-top: 26px; }
	.sorio-gallery-count { justify-content: center; font-size: 2.6rem; }
	.sorio-gallery-stage { aspect-ratio: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--sorio-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; background: none; }
	.sorio-gallery-stage::-webkit-scrollbar { display: none; }
	.sorio-gallery-stage::after { display: none; }
	.sorio-gallery-frame { position: relative; inset: auto; flex: none; width: 86%; aspect-ratio: 4 / 5; clip-path: none; scroll-snap-align: center; transition: none; }
	.sorio-gallery-frame img { transform: none; }
	.sorio-gallery-info, .sorio-gallery-info .sorio-gallery-meta { display: contents; }
	.sorio-gallery-info > .sorio-kicker, .sorio-gallery-title, .sorio-gallery-place { order: 1; padding-inline: var(--sorio-pad); text-align: center; }
	.sorio-gallery-title { margin-top: 0; }
	.sorio-gallery-place { margin-top: -14px; }
	.sorio-gallery-caption { text-align: center; margin-top: -8px; }
	.sorio-gallery-bar { margin-top: 0; }
	.sorio-gallery-grid { display: flex; flex-direction: column; }
	.sorio-gallery-stage { order: 2; }
	.sorio-gallery-count, .sorio-gallery-caption, .sorio-gallery-bar, .sorio-gallery-open { order: 3; margin-inline: var(--sorio-pad); }
	.sorio-gallery-count { margin-top: 26px; }
	.sorio-gallery-open { justify-self: center; align-self: center; }
	.sorio-lightbox-cap { font-size: 1.05rem; }
	.sorio-lightbox-nav { width: 46px; height: 46px; }
	.sorio-person-grid, .sorio-cv-grid, .sorio-ct-grid { grid-template-columns: 1fr; }
	.sorio-person-photo { max-width: 420px; }
	.sorio-cv-side { position: static; max-width: 340px; }
	.sorio-timeline::before { left: 0; }
	.sorio-timeline-item { grid-template-columns: 1fr; padding: 0 0 30px 26px; }
	.sorio-timeline-item::before { left: -4px; }
	.sorio-timeline-year { text-align: left; padding: 0 0 4px; }
	.sorio-ct-list > div { grid-template-columns: 1fr; gap: 4px; }
	.sorio-map iframe { height: 300px; }
	.sorio-footer-base { flex-direction: column; }
	.sorio-footer-base .sorio-credit { margin: 6px auto 0; }
	.sorio-cookie { flex-direction: column; align-items: stretch; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sorio-js .sorio-line > span, .sorio-js .sorio-fade, .sorio-js .sorio-reveal { opacity: 1; transform: none; }
	.sorio-hero-logo { opacity: .95; transform: none; }
	.sorio-hero-geo .g-line { stroke-dashoffset: 0; }
	.sorio-hero-geo .g-dot, .sorio-hero-geo .g-rot { opacity: 1; }
	.sorio-claim-text .w { opacity: 1; }
	.sorio-gallery { height: auto; }
	.sorio-gallery-sticky { position: relative; height: auto; padding: 100px 0; }
	.sorio-gallery-frame { position: relative; clip-path: none; margin-bottom: 12px; }
	.sorio-gallery-stage { aspect-ratio: auto; }
	.sorio-gallery-frame img { transform: none; }
}
