/* Halden — theme styles: frame, header, footer, motion system, editorial pieces. Block styles live in Halden Core. */
:root {
	--h-ease: cubic-bezier(.2, .7, .1, 1);
	--h-ease-io: cubic-bezier(.76, 0, .24, 1);
	--h-pad: clamp(20px, 4vw, 64px);
	--h-line: color-mix(in srgb, currentColor 16%, transparent);
}
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--wp--preset--color--ember); color: var(--wp--preset--color--soot); }
img { max-width: 100%; height: auto; }
em { font-style: italic; }
h1 em, h2 em, h3 em { font-weight: 300; color: var(--wp--preset--color--linen); }
.has-bone-background-color h1 em, .has-bone-background-color h2 em, .has-bone-background-color h3 em { color: var(--wp--preset--color--ember-deep); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--ember); outline-offset: 3px; border-radius: 4px; }
.has-bone-background-color :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: var(--wp--preset--color--ember-deep); }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100000; clip: auto; width: auto; height: auto; padding: 12px 18px; background: var(--wp--preset--color--bone); color: var(--wp--preset--color--soot); border-radius: 8px; }
.h-main { position: relative; }
.wp-site-blocks > * { margin-block: 0; }
.h-main > .alignfull, .wp-block-post-content > .alignfull { margin-block: 0; }
.h-muted, .h-muted p { color: var(--wp--preset--color--smoke); }
.has-bone-background-color .h-muted { color: #5d554b; }
.is-style-eyebrow { font-family: var(--wp--preset--font-family--body); font-size: 12px !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--ember); margin-bottom: 18px; }
.has-bone-background-color .is-style-eyebrow { color: var(--wp--preset--color--ember-deep); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--bone); color: var(--wp--preset--color--soot); border-color: var(--wp--preset--color--bone); }
.wp-block-button__link { transition: background .45s var(--h-ease), color .45s var(--h-ease), border-color .45s, transform .5s var(--h-ease); }

/* ---------------------------------------------------------------- header */
.h-header-wrap { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .7s var(--h-ease), background .5s, backdrop-filter .5s; }
.admin-bar .h-header-wrap { top: var(--h-top, var(--wp-admin--admin-bar--height, 32px)); }
.h-header { padding-block: 0 !important; }
.h-header__inner { height: var(--wp--custom--header-height); }
.h-header-wrap.is-solid { background: color-mix(in srgb, var(--wp--preset--color--soot) 78%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(242,236,226,.07); }
.h-header-wrap.is-hidden { transform: translateY(calc(-100% - var(--h-top, 32px))); }
body:not(.admin-bar) .h-header-wrap.is-hidden { transform: translateY(-100%); }
.h-logo { gap: 12px !important; color: var(--wp--preset--color--bone); }
.h-logo__mark { display: inline-flex; color: var(--wp--preset--color--ember); }
.h-logo__mark svg { transition: transform .8s var(--h-ease); }
.h-logo:hover .h-logo__mark svg { transform: rotate(-8deg) scale(1.06); }
.h-logo__core { transform-origin: 20px 40px; animation: h-flicker 2.6s infinite ease-in-out; }
@keyframes h-flicker { 0%, 100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.88, 1.06); opacity: .85; } 60% { transform: scale(1.05, .94); opacity: 1; } }
.h-logo__title { font-family: var(--wp--preset--font-family--display) !important; font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 0; line-height: 1; }
.h-logo__title a { text-decoration: none; color: inherit; }
.h-nav .wp-block-navigation-item__content { text-decoration: none; padding: 8px 2px; position: relative; }
.h-nav .wp-block-navigation__container { gap: clamp(16px, 2.2vw, 34px); align-items: center; }
.h-nav .wp-block-navigation-item:not(.h-nav__cta) .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--h-ease); }
.h-nav .wp-block-navigation-item:not(.h-nav__cta) .wp-block-navigation-item__content:hover::after, .h-nav .current-menu-item .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.h-nav__cta .wp-block-navigation-item__content { padding: 12px 22px !important; border-radius: 999px; background: var(--wp--preset--color--ember); color: var(--wp--preset--color--soot) !important; font-weight: 600; transition: background .4s, color .4s; }
.h-nav__cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--bone); }
.h-nav .wp-block-navigation__responsive-container-open, .h-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--bone); }
.h-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--soot) !important; color: var(--wp--preset--color--bone) !important; padding: 28px var(--h-pad); }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 64px; }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 8px; align-items: flex-start; }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-size: clamp(38px, 11vw, 56px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; padding: 4px 0; }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .h-nav__cta .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--body); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-top: 18px; padding: 16px 26px !important; }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { opacity: 0; transform: translateY(24px); animation: h-menu-in .8s var(--h-ease) forwards; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .05s; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .1s; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .15s; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .2s; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: .25s; }
.h-nav .is-menu-open .wp-block-navigation-item:nth-child(7) { animation-delay: .3s; }
.h-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 18px; right: 0; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(242,236,226,.35); border-radius: 50%; color: var(--wp--preset--color--bone); z-index: 5; }
.h-nav .wp-block-navigation__responsive-container-close svg { fill: currentColor; width: 22px; height: 22px; }
.h-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
@keyframes h-menu-in { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- preloader & page transition */
.h-preloader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--wp--preset--color--soot); color: var(--wp--preset--color--bone); transition: clip-path 1.1s var(--h-ease-io) .1s; clip-path: inset(0 0 0 0); }
.h-preloader__inner { display: grid; justify-items: center; gap: 18px; }
.h-preloader__flame { width: 46px; height: 70px; fill: none; stroke: var(--wp--preset--color--ember); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: h-draw-flame 1.6s var(--h-ease) forwards, h-flicker 2s 1.6s infinite; transform-origin: 50% 80%; }
@keyframes h-draw-flame { to { stroke-dashoffset: 0; } }
.h-preloader__word { display: flex; font: 300 clamp(56px, 10vw, 120px)/1 var(--wp--preset--font-family--display); letter-spacing: -.03em; overflow: hidden; }
.h-preloader__word span { display: inline-block; transform: translateY(105%); animation: h-up .9s var(--h-ease) forwards; }
.h-preloader__word span:nth-child(2) { animation-delay: .06s; }
.h-preloader__word span:nth-child(3) { animation-delay: .12s; }
.h-preloader__word span:nth-child(4) { animation-delay: .18s; }
.h-preloader__word span:nth-child(5) { animation-delay: .24s; }
.h-preloader__word span:nth-child(6) { animation-delay: .30s; }
@keyframes h-up { to { transform: none; } }
.h-preloader__count { font: 500 12px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; color: var(--wp--preset--color--smoke); }
.is-loaded .h-preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.h-seen .h-preloader { display: none; }
html:not(.js) .h-preloader { display: none; }
.h-curtain { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--wp--preset--color--char); pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .75s var(--h-ease-io); }
.h-curtain__word { font: 300 italic clamp(40px, 7vw, 90px)/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--ember); opacity: 0; transform: translateY(20px); transition: opacity .4s .25s, transform .6s .25s var(--h-ease); }
.is-leaving .h-curtain { clip-path: inset(0 0 0 0); pointer-events: auto; }
.is-leaving .h-curtain__word { opacity: 1; transform: none; }
.h-arriving .h-curtain { clip-path: inset(0 0 0 0); transition: none; }
.h-arriving .h-curtain__word { opacity: 1; transform: none; transition: none; }
.h-arrived .h-curtain { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--h-ease-io); }
.h-arrived .h-curtain__word { opacity: 0; transition: opacity .3s; }

/* ---------------------------------------------------------------- cursor + grain */
.h-cursor { position: fixed; left: 0; top: 0; z-index: 9998; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--wp--preset--color--ember); pointer-events: none; opacity: 0; transition: opacity .3s, width .45s var(--h-ease), height .45s var(--h-ease), margin .45s var(--h-ease), background .3s; mix-blend-mode: normal; display: grid; place-items: center; }
.h-cursor.is-visible { opacity: 1; }
.h-cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(224,116,63,.18); border: 1px solid var(--wp--preset--color--ember); }
.h-cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--wp--preset--color--bone); }
.h-cursor__label { font: 600 11px/1 var(--wp--preset--font-family--body); letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--soot); opacity: 0; transition: opacity .3s; }
.h-cursor.is-label .h-cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .h-cursor { display: none; } }
.h-grain { position: fixed; inset: -50%; z-index: 9997; pointer-events: none; opacity: .055; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: h-grain 1.2s steps(6) infinite; }
@keyframes h-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------------------------------------------------------------- reveal system */
.js .is-style-reveal .h-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .is-style-reveal .h-line > span { display: block; transform: translateY(110%) rotate(2deg); transform-origin: left top; transition: transform 1.3s var(--h-ease); transition-delay: calc(var(--l, 0) * .09s); }
.js .is-style-reveal.is-in .h-line > span { transform: none; }
.js .is-style-statement .h-w { color: color-mix(in srgb, currentColor 22%, transparent); transition: color .5s; }
.js .is-style-statement .h-w.is-lit { color: inherit; }
.is-style-statement { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: clamp(30px, 4.1vw, 68px) !important; line-height: 1.12; letter-spacing: -.02em; max-width: 1280px; }
.is-style-parallax { overflow: hidden; }
.is-style-parallax img { width: 100%; transform: scale(1.16); will-change: transform; }
.editor-styles-wrapper .is-style-parallax img { transform: none; }

/* hero headline waits for its split (safety: shows anyway after 3s if scripts fail) */
.js [data-h-chars]:not(.is-split) { visibility: hidden; animation: h-show 0s 3s forwards; }
@keyframes h-show { to { visibility: visible; } }

/* ---------------------------------------------------------------- marquee */
.h-marquee { overflow: hidden; padding: clamp(20px, 3vw, 44px) 0; border-block: 1px solid rgba(242,236,226,.1); }
.h-marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 54px); width: max-content; animation: h-marquee 34s linear infinite; font: 300 clamp(60px, 9vw, 150px)/1 var(--wp--preset--font-family--display); letter-spacing: -.03em; white-space: nowrap; will-change: transform; }
.h-marquee__track em { color: var(--wp--preset--color--ember); }
.h-marquee__track i { font-style: normal; font-size: .3em; color: var(--wp--preset--color--brass); }
@keyframes h-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- home intro + teaser */
.h-intro__cols { margin-top: var(--wp--preset--spacing--60) !important; gap: clamp(16px, 3vw, 48px) !important; }
.h-intro__img-a img { aspect-ratio: 4 / 5; object-fit: cover; }
.h-intro__img-c { margin-top: clamp(40px, 10vw, 160px) !important; }
.h-intro__img-c img { aspect-ratio: 3 / 4; object-fit: cover; }
.h-intro__note { color: var(--wp--preset--color--smoke); font-size: 15px; }
.h-intro__link a, .h-link-arrow a { font-weight: 500; text-underline-offset: 5px; }
.h-teaser__img img { aspect-ratio: 5 / 4; object-fit: cover; }
.h-teaser__copy { padding-left: clamp(0px, 3vw, 40px); }
.h-sec__head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.h-sec__head h2 { margin: 0; }

/* ---------------------------------------------------------------- journal */
.h-journal__head h1 { margin: 0 0 var(--wp--preset--spacing--50); }
.h-posts .wp-block-post-template { gap: clamp(20px, 3vw, 44px) !important; }
.h-post-card { display: grid; gap: 14px; }
.h-post-card__img { overflow: hidden; border-radius: 4px; margin: 0; }
.h-post-card__img img { transition: transform 1.4s var(--h-ease); }
.h-post-card:hover .h-post-card__img img { transform: scale(1.05); }
.h-post-card__meta { gap: 12px !important; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--smoke); }
.h-post-card__meta a { color: var(--wp--preset--color--ember); text-decoration: none; }
.h-post-card__title { font-size: clamp(24px, 2vw, 32px) !important; line-height: 1.15; margin: 0; }
.h-post-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--h-ease); }
.h-post-card:hover .h-post-card__title a { background-size: 100% 1px; color: inherit; }
.h-post-card__excerpt { color: var(--wp--preset--color--smoke); font-size: 15px; margin: 0; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); }

/* ---------------------------------------------------------------- article */
.h-article__title { font-size: clamp(44px, 6.4vw, 108px) !important; margin-top: 0; }
.h-article__meta { gap: 16px !important; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.h-article__meta a { color: var(--wp--preset--color--ember); text-decoration: none; }
.h-article__image { overflow: hidden; border-radius: 4px; }
.h-article .h-lede, .h-article .wp-block-post-content p.h-lede { font-family: var(--wp--preset--font-family--display); font-size: clamp(22px, 2vw, 30px); line-height: 1.4; font-weight: 300; }
.h-article .wp-block-post-content p { color: color-mix(in srgb, var(--wp--preset--color--bone) 86%, transparent); }
.h-article .wp-block-quote cite { display: block; margin-top: 12px; font: 500 12px var(--wp--preset--font-family--body); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--wp--preset--color--smoke); }
.h-article .wp-block-post-content > * + * { margin-block-start: 1.5em; }
.h-article .wp-block-post-content > h2, .h-article .wp-block-post-content > h3 { margin-block-start: 2em; }
.h-article .wp-block-post-content p { font-size: 18px; line-height: 1.75; }
.h-article .wp-block-post-content .wp-block-image { margin-block: 2.6em; }
.h-article .wp-block-post-content .wp-block-image img { border-radius: 4px; width: 100%; }
.h-article .wp-block-post-content figcaption { font-size: 13px; color: var(--wp--preset--color--smoke); margin-top: 12px; }
.h-article .wp-block-quote { margin-block: 2.4em; }
.h-article__nav { margin-top: var(--wp--preset--spacing--50) !important; }
.h-article__nav a { text-decoration: none; font-family: var(--wp--preset--font-family--display); font-size: 20px; }

/* ---------------------------------------------------------------- values, FAQ, 404 */
.h-values__cols { gap: clamp(20px, 3vw, 44px) !important; margin-top: var(--wp--preset--spacing--50) !important; }
.h-values__img { overflow: hidden; border-radius: 4px; }
.h-values__img img { aspect-ratio: 4 / 3; object-fit: cover; }
.h-faq .wp-block-details summary { font: 400 clamp(22px, 2vw, 28px)/1.3 var(--wp--preset--font-family--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.h-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.h-faq .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-weight: 300; transition: transform .4s var(--h-ease); }
.h-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.h-faq .wp-block-details p { color: #5d554b; max-width: 680px; }
.h-404 h1 { margin-bottom: var(--wp--preset--spacing--40); }

/* ---------------------------------------------------------------- footer */
.h-footer { position: relative; overflow: hidden; }
.h-footer__top { gap: 30px !important; }
.h-footer__cta { font-size: clamp(56px, 9vw, 160px) !important; line-height: .9; margin: 0; }
.h-footer__btn .wp-block-button__link { padding: 24px 36px; }
.h-footer__rule { margin-block: var(--wp--preset--spacing--50) !important; opacity: .5; }
.h-footer__cols { gap: clamp(24px, 4vw, 64px) !important; }
.h-footer__brand { font-family: var(--wp--preset--font-family--display) !important; font-size: 34px; font-weight: 300; margin: 0 0 12px; }
.h-footer__brand a { text-decoration: none; }
.h-footer__about, .h-footer__office { color: var(--wp--preset--color--smoke); font-size: 15px; }
.h-footer__office a { color: inherit; }
.h-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.h-footer__list a { text-decoration: none; color: var(--wp--preset--color--bone); }
.h-footer__list a:hover { color: var(--wp--preset--color--ember); }
.h-footer .h-hours__list div { font-size: 14px; padding: 8px 0; }
.h-hours__list dd { white-space: nowrap; }
.h-footer__base { margin-top: var(--wp--preset--spacing--50) !important; font-size: 13px; color: var(--wp--preset--color--smoke); }
.h-footer__base p { margin: 0; }
.h-footer__word { margin-top: var(--wp--preset--spacing--40); font: 300 clamp(110px, 25vw, 420px)/.8 var(--wp--preset--font-family--display); letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(242,236,226,.16); user-select: none; overflow: hidden; }
.h-footer__word span { display: inline-block; background: linear-gradient(90deg, var(--wp--preset--color--ember), var(--wp--preset--color--brass)) no-repeat; background-size: var(--fill, 0%) 100%; -webkit-background-clip: text; background-clip: text; transition: background-size .2s linear; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
	.h-teaser__copy { padding-left: 0; }
}
@media (max-width: 781px) {
	.h-intro__img-c { margin-top: 0 !important; }
	.h-intro__col-b { order: 3; }
	.h-posts .wp-block-post-template { grid-template-columns: 1fr !important; }
	.h-footer__cta { font-size: clamp(48px, 15vw, 80px) !important; }
	.h-footer__btn, .h-footer__btn .wp-block-button__link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.js .is-style-reveal .h-line > span { transform: none; transition: none; }
	.js .is-style-statement .h-w { color: inherit; }
	.is-style-parallax img { transform: none; }
	.h-marquee__track { animation: none; }
	.h-grain { display: none; }
}
