/* Solenne — global styles. Tokens come from theme.json (--wp--preset--*). */
:root {
	--ink: var(--wp--preset--color--ink);
	--ivory: var(--wp--preset--color--ivory);
	--paper: var(--wp--preset--color--paper);
	--sand: var(--wp--preset--color--sand);
	--stone: var(--wp--preset--color--stone);
	--brass: var(--wp--preset--color--brass);
	--ease: cubic-bezier(.2, .7, .1, 1);
	--header-h: var(--wp--custom--header-height, 84px);
}

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.s-locked { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--brass); color: var(--ink); }
img { max-width: 100%; height: auto; }
em { font-style: italic; font-family: var(--wp--preset--font-family--display); }
h1 em, h2 em, h3 em { color: var(--brass); font-weight: 300; }
.wp-site-blocks { padding: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.s-main { margin-top: 0 !important; }
.s-muted { color: var(--stone); }
.s-lede, .s-lede p { font: 300 clamp(22px, 1.9vw, 28px)/1.45 var(--wp--preset--font-family--display); color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; background: var(--ivory); color: var(--ink); clip: auto; width: auto; height: auto; }

/* Block styles */
.is-style-eyebrow { font: 600 11px/1.3 var(--wp--preset--font-family--body) !important; letter-spacing: .28em !important; text-transform: uppercase; color: var(--brass) !important; margin-bottom: 18px !important; }
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.s-btn-light .wp-block-button__link { background: var(--ivory); color: var(--ink); }
.s-btn-light .wp-block-button__link:hover { background: var(--brass); }
.wp-block-button__link { transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.is-style-parallax { overflow: hidden; border-radius: 4px; }
.is-style-parallax img { transform: scale(1.14); will-change: transform; }
.is-style-dark { background: var(--ink); color: var(--ivory); }

/* Reveal — lines rise in from a mask (JS adds .is-in). */
.is-style-reveal, [data-s-reveal] { --d: 0s; }
.js .is-style-reveal .s-line { display: block; overflow: hidden; padding-bottom: .06em; }
.js .is-style-reveal .s-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) + var(--l, 0) * .09s); }
.js .is-style-reveal.is-in .s-line > span { transform: none; }
.js [data-s-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d); }
.js [data-s-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Preloader / curtain / cursor ---------- */
.s-preloader { position: fixed; inset: 0; z-index: 9999; background: var(--ink); color: var(--ivory); display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.s-preloader__inner { display: flex; align-items: baseline; gap: 24px; overflow: hidden; }
.s-preloader__word { font: 300 clamp(48px, 9vw, 140px)/1 var(--wp--preset--font-family--display); letter-spacing: -.02em; animation: s-rise 1.1s var(--ease) both; }
.s-preloader__count { font: 500 13px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; color: var(--brass); font-variant-numeric: tabular-nums; min-width: 3ch; }
html.is-loaded .s-preloader { clip-path: inset(0 0 100% 0); }
html.s-seen .s-preloader { display: none; }
html:not(.js) .s-preloader { display: none; }
@keyframes s-rise { from { transform: translateY(100%); } }

.s-curtain { position: fixed; inset: 0; z-index: 9998; background: var(--ink); transform: translateY(100%); pointer-events: none; }
html.is-leaving .s-curtain { transform: none; transition: transform .7s var(--ease); }

.s-cursor { position: fixed; top: 0; left: 0; z-index: 9997; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--brass); pointer-events: none; mix-blend-mode: normal; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s var(--ease), opacity .3s; opacity: 0; display: grid; place-items: center; }
.s-cursor.is-visible { opacity: 1; }
.s-cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ivory); }
.s-cursor__label { font: 700 10px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.s-cursor.is-label .s-cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .s-cursor { display: none; } }

/* ---------- Header ---------- */
.s-header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .7s var(--ease); }
.s-header-wrap.is-hidden { transform: translateY(-100%); }
.s-header { color: var(--ink); transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); padding-top: 0 !important; padding-bottom: 0 !important; }
.s-header__inner { height: var(--header-h); }
.s-header-wrap.is-solid .s-header { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
.s-header--overlay { color: var(--ivory); }
.s-header-wrap.is-solid .s-header--overlay { color: var(--ink); }
.s-logo { gap: 12px !important; }
.s-logo__mark { display: grid; color: inherit; }
.s-logo__title { margin: 0; font: 400 26px/1 var(--wp--preset--font-family--display) !important; letter-spacing: .04em; }
.s-logo__title a { color: inherit; text-decoration: none; }
.s-nav a { text-decoration: none; position: relative; text-transform: uppercase; }
.s-nav .wp-block-navigation-item__content { padding: 8px 2px; }
.s-nav .wp-block-navigation__container { gap: clamp(18px, 2.4vw, 40px); align-items: center; }
.s-nav .wp-block-navigation-item:not(.s-nav__cta) a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.s-nav .wp-block-navigation-item:not(.s-nav__cta) a:hover::after { transform: scaleX(1); transform-origin: left; }
.s-nav__cta a { padding: 12px 20px !important; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; transition: background .4s var(--ease), color .4s var(--ease); }
.s-nav__cta a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.s-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--ink) !important; color: var(--ivory) !important; padding: 32px clamp(20px, 6vw, 64px); }
.s-nav .is-menu-open .wp-block-navigation__container { gap: 10px; align-items: flex-start !important; }
.s-nav .is-menu-open .wp-block-navigation-item__content { font: 300 44px/1.1 var(--wp--preset--font-family--display); text-transform: none; letter-spacing: 0; }
.s-nav .is-menu-open .s-nav__cta a { font: 600 13px/1 var(--wp--preset--font-family--body) !important; text-transform: uppercase; margin-top: 24px; }

/* ---------- Home sections ---------- */
.s-statement { line-height: 1.12 !important; max-width: 20ch; }
.s-intro__img { margin-bottom: 24px; }
.s-advisory__copy h2 { margin-bottom: var(--wp--preset--spacing--50); }
.s-services { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.s-service { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 24px; padding: 32px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); transition: padding .6s var(--ease); }
.s-service > * { margin: 0 !important; }
.s-service__num { grid-row: span 2; font: 500 12px/2.2 var(--wp--preset--font-family--body); letter-spacing: .2em; color: var(--brass); }
.s-service h3 { margin-bottom: 8px !important; }
.s-service p:last-child { color: var(--stone); max-width: 46ch; }
.s-service:hover { padding-left: 12px; }

.s-places__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: var(--wp--preset--spacing--50) !important; }
.s-place { position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; border-radius: 4px; color: var(--ivory); text-decoration: none; isolation: isolate; }
.s-place__img { position: absolute; inset: 0; z-index: -1; }
.s-place__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.s-place::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(14,14,12,.78)); transition: opacity .6s; }
.s-place:hover .s-place__img img { transform: scale(1.08); }
.s-place__num { position: absolute; top: 20px; left: 22px; font: 600 11px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; }
.s-place__name { position: absolute; left: 22px; bottom: 46px; font: 400 clamp(30px, 2.8vw, 46px)/1 var(--wp--preset--font-family--display); }
.s-place__note { position: absolute; left: 22px; bottom: 22px; font: 500 12px/1 var(--wp--preset--font-family--body); letter-spacing: .06em; color: var(--sand); transform: translateY(8px); opacity: 0; transition: .6s var(--ease); }
.s-place:hover .s-place__note { transform: none; opacity: 1; }

.s-posts .wp-block-post-template { gap: clamp(28px, 3vw, 48px) !important; }
.s-posts .wp-block-post-featured-image { margin-bottom: 20px; overflow: hidden; border-radius: 4px; }
.s-posts .wp-block-post-featured-image img { transition: transform 1.4s var(--ease); }
.s-posts li:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.s-posts .wp-block-post-title { margin: 6px 0 10px; }
.s-posts .wp-block-post-title a { text-decoration: none; }
.s-posts .is-style-eyebrow { margin-bottom: 0 !important; }

.s-closing { color: var(--ivory); }
.s-closing .wp-block-cover__inner-container { max-width: 1440px; margin: 0 auto; padding-bottom: var(--wp--preset--spacing--60); }
.s-closing h2 { max-width: 12ch; margin-bottom: 24px; }
.s-closing__text { max-width: 440px; color: var(--sand); margin-bottom: 32px; }
.s-closing .wp-block-cover__image-background { transform: scale(1.12); will-change: transform; }

/* ---------- Page heads ---------- */
.s-pagehead h1 { margin: 0; }
.s-pagehead__text { max-width: 420px; margin: 0 0 12px; }

/* ---------- Residence ---------- */
.s-residence__title { margin: 0 !important; max-width: 14ch; }
.s-residence__excerpt { max-width: 380px; color: var(--stone); margin: 0 0 14px; }
.s-residence__excerpt p { margin: 0; }
.s-residence__content > * + * { margin-top: 1.2em; }
.s-related .wp-block-post-featured-image { overflow: hidden; border-radius: 4px; margin-bottom: 18px; }
.s-related .wp-block-post-featured-image img { transition: transform 1.4s var(--ease); }
.s-related li:hover img { transform: scale(1.05); }
.s-related .wp-block-post-title a { text-decoration: none; }
.s-related .wp-block-post-title { margin-top: 6px; }

/* ---------- Article ---------- */
.s-article .wp-block-post-featured-image { margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50); }
.s-article .wp-block-post-content > p { font-size: 18px; line-height: 1.8; }
.s-article .wp-block-post-navigation-link { margin-top: 24px; }

/* ---------- Footer ---------- */
.s-footer { position: relative; overflow: hidden; }
.s-footer a { color: inherit; text-decoration: none; }
.s-footer a:hover { color: var(--brass); }
.s-footer__cta { font-size: clamp(48px, 8vw, 128px) !important; line-height: .95 !important; margin: 0; }
.s-footer .wp-block-button__link { background: var(--ivory); color: var(--ink); }
.s-footer .wp-block-button__link:hover { background: var(--brass); }
.s-footer__rule { margin: var(--wp--preset--spacing--50) auto !important; border-color: rgba(244,239,231,.16) !important; opacity: 1; }
.s-footer__brand { font: 400 32px/1 var(--wp--preset--font-family--display) !important; margin-bottom: 16px; }
.s-footer__about { color: color-mix(in srgb, var(--ivory) 60%, transparent); max-width: 320px; font-size: 14px; }
.s-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.s-footer__office { font-size: 15px; line-height: 1.8; }
.s-footer__base { margin-top: var(--wp--preset--spacing--50) !important; font-size: 12px; color: color-mix(in srgb, var(--ivory) 50%, transparent); letter-spacing: .04em; }
.s-footer__base p { margin: 0; }
.s-footer__word { position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%); font: 300 28vw/1 var(--wp--preset--font-family--display); color: rgba(244,239,231,.035); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- 404 ---------- */
.s-404 .wp-block-cover__inner-container { max-width: 1440px; margin: 0 auto; padding-bottom: 10vh; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.s-places__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 781px) {
	.s-posts .wp-block-post-template, .s-related .wp-block-post-template { grid-template-columns: 1fr !important; }
	.s-service { grid-template-columns: 44px 1fr; }
	.s-places__grid { grid-template-columns: 1fr 1fr; }
	.s-place { aspect-ratio: 3 / 4; }
	.s-place__note { display: none; }
	.s-footer__cta { font-size: 52px !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .is-style-reveal .s-line > span, .js [data-s-reveal] { transform: none !important; opacity: 1 !important; }
	.is-style-parallax img, .s-closing .wp-block-cover__image-background { transform: none !important; }
}

/* Editor: show reveal headings normally. */
.editor-styles-wrapper .is-style-reveal .s-line > span, .editor-styles-wrapper [data-s-reveal] { transform: none !important; opacity: 1 !important; }
.editor-styles-wrapper .s-header-wrap { position: relative; }

/* ================= Phase 2 — FX layer ================= */
/* Film grain */
body::after { content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: s-grain 1.2s steps(6) infinite; }
@keyframes s-grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,1%); } }

/* WebGL hover / slide canvas */
.s-fxgl { position: fixed; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.s-fxgl.is-on { opacity: 1; }
.s-fxgl.is-slide { z-index: 3; transition: none; }

/* Hero letters */
.s-hero__title--chars .s-word { overflow: visible; }
.s-hero__title--chars .s-word > span { transform: none !important; transition: none !important; }
.s-ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.3); transition: transform 1.6s var(--ease), opacity 1.2s var(--ease), filter 1.4s var(--ease); transition-delay: calc(.25s + var(--k) * .035s); }
.s-hero.is-in .s-ch { opacity: 1; filter: none; transform: none; }

/* Footer wordmark letters */
.s-footer__word span { display: inline-block; transition: transform .6s var(--ease), color .6s var(--ease); will-change: transform; }

/* Marquee */
.s-marquee { overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; border-block: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.s-marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; }
.s-marquee__track span { font: 300 clamp(56px, 9vw, 150px)/1 var(--wp--preset--font-family--display); letter-spacing: -.02em; padding-right: .5em; }
.s-marquee__track em { color: var(--brass); }

/* Sound toggle */
.s-sound { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font: 600 10px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; mix-blend-mode: normal; }
.s-sound__bars { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.s-sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.s-sound.is-on .s-sound__bars i { animation: s-eq 1s ease-in-out infinite; }
.s-sound.is-on .s-sound__bars i:nth-child(2) { animation-delay: .15s; } .s-sound.is-on .s-sound__bars i:nth-child(3) { animation-delay: .3s; } .s-sound.is-on .s-sound__bars i:nth-child(4) { animation-delay: .45s; }
@keyframes s-eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 760px) { .s-sound__label { display: none; } .s-sound { left: 12px; bottom: 12px; padding: 10px; } }

/* Shared-element page transition (photo expands, next page settles it into place) — see main.js */
.s-fly { position: fixed; z-index: 9996; background: #0e0e0c center / cover no-repeat; border-radius: 4px; pointer-events: none; transition: left .9s cubic-bezier(.7,0,.2,1), top .9s cubic-bezier(.7,0,.2,1), width .9s cubic-bezier(.7,0,.2,1), height .9s cubic-bezier(.7,0,.2,1), border-radius .9s, opacity .6s ease; }
.s-fly.is-gone { opacity: 0; }
html.s-arriving::after { content: ""; position: fixed; inset: 0; z-index: 9996; background: #0e0e0c var(--s-arrive) center / cover no-repeat; }
html.is-expanding .s-main > *, html.is-expanding .s-header-wrap { opacity: 0; transition: opacity .6s ease .15s; }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }
