:root {
  --valence-background-angle: 122deg;
  --valence-rule: color-mix(in srgb, var(--wp--preset--color--paper) 20%, transparent);
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--wp--preset--color--ink);
  background-image: linear-gradient(
    var(--valence-background-angle),
    transparent 18%,
    color-mix(in srgb, var(--wp--preset--color--paper) 1.5%, transparent) 38%,
    color-mix(in srgb, var(--wp--preset--color--paper) 7¸¸¸%, transparent) 50%,
    color-mix(in srgb, var(--wp--preset--color--paper) 1.5%, transparent) 62%,
    transparent 82%
  );
  background-attachment: fixed;
}
img { display: block; }
h1, h2, h3, h4, h5, h6 {
  background: var(--wp--preset--color--paper) !important;
  color: var(--wp--preset--color--ink) !important;
  display: table;
  padding: 0 .07em .015em;
  text-transform: uppercase;
}
h1:has(> .valence-highlight),
h2:has(> .valence-highlight),
h3:has(> .valence-highlight) { background: transparent !important; color: var(--wp--preset--color--paper) !important; display: block; padding: 0; }
.valence-highlight { background: linear-gradient(var(--wp--preset--color--paper), var(--wp--preset--color--paper)) center / 100% .86em no-repeat; box-decoration-break: clone; color: var(--wp--preset--color--ink); padding: 0 .07em; -webkit-box-decoration-break: clone; }

.valence-header { position: relative; }
.valence-header__layout { align-items: center; display: flex; gap: clamp(1.5rem, 4vw, 4rem); justify-content: space-between; }
.valence-header__brand { width: clamp(13.5rem, 21vw, 18.75rem); }
.valence-header__logo {
  display: flex;
  filter: invert(1);
  width: 100%;
}
.valence-header__logo img { height: auto; width: 100%; }
.valence-header__tagline { font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 300; letter-spacing: .12em; margin: 0; text-align: right; text-transform: uppercase; }
.valence-header__menus { align-items: flex-end; display: flex; flex-direction: column; gap: .45rem; justify-content: center; }
.valence-header__menu-row { align-items: center; display: flex; gap: clamp(1rem, 2vw, 2rem); justify-content: flex-end; }
.valence-header__menu-row a { transition: opacity 180ms ease, transform 700ms cubic-bezier(.18, .78, .22, 1); }
.valence-header__menu-row a:hover,
.valence-header__menu-row a:focus-visible { transform: scale(1.2); }
.valence-language-switcher { display: flex; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; gap: .2rem; letter-spacing: .1em; line-height: 1; position: fixed; right: 1.5rem; text-transform: uppercase; top: 0; z-index: 11; }
.admin-bar .valence-language-switcher { top: 32px; }
.valence-language-switcher a { display: block; opacity: .6; padding: .3rem .4rem .2rem; }
.valence-language-switcher a:hover,
.valence-language-switcher a:focus-visible { opacity: .76; }
.valence-language-switcher a[aria-current='true'] { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); opacity: 1; }
.valence-header__nav { display: flex; gap: clamp(.7rem, 1.5vw, 1.25rem); }
.valence-header__nav a { font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.valence-header__nav a:hover,
.valence-header__nav a:focus-visible { opacity: .58; }
.valence-header__menus .valence-social-icons { transform: translateY(.15rem); }
.valence-social-icons { align-items: center; display: flex; gap: .65rem; justify-self: start; }
.valence-social-icons :is(a, span) { display: block; opacity: .72; width: 1.8rem; }
.valence-social-icons a:hover,
.valence-social-icons a:focus-visible { opacity: 1; }
.valence-social-icons svg { fill: none; height: auto; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.25; width: 100%; }
.valence-footer__mark { filter: invert(1); margin: 0; max-width: clamp(11rem, 20vw, 16rem); opacity: .9; }
.valence-footer__mark img { height: auto; width: 100%; }
.valence-footer__layout { align-items: start; display: grid; gap: clamp(3rem, 4vw, 4rem); grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.valence-footer p { letter-spacing: .04em; margin: 0; }
.valence-footer__social { margin: 2rem 0 1rem 0.3rem; }
.valence-footer p.valence-footer__preferred-source { margin-bottom: .45rem; }
.valence-footer__preferred-source a { opacity: .68; text-decoration: underline; text-decoration-color: var(--valence-rule); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: opacity 180ms ease; }
.valence-footer__preferred-source a:hover,
.valence-footer__preferred-source a:focus-visible { opacity: 1; }
.valence-footer__form h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); margin: 0 0 2rem; }
.valence-footer .jetpack-contact-form__form { width: 100%; }
.valence-footer .wp-block-jetpack-contact-form { gap: 0; }
.valence-footer .grunion-field-wrap { margin-bottom: 1rem; width: 100%; }
.valence-footer .grunion-field-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.valence-footer .valence-contact-toggle { margin-bottom: .65rem; }
.valence-footer .valence-contact-toggle .grunion-field-label { margin-bottom: .45rem; }
.valence-footer .valence-contact-toggle .grunion-radio-options { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 20rem; width: 100%; }
.valence-footer .valence-contact-toggle .grunion-radio-options .contact-form-field { align-items: center; border: 1px solid var(--valence-rule); box-sizing: border-box; cursor: pointer; display: flex; font-size: .82rem; font-weight: 600; justify-content: center; letter-spacing: .08em; margin: 0; min-width: 0; overflow: visible; padding: .65rem .8rem .5rem; position: relative; text-align: center; text-transform: uppercase; width: 100%; }
.valence-footer .valence-contact-toggle .contact-form-field + .contact-form-field { border-left: 0; }
.valence-footer .valence-contact-toggle .contact-form-field:not(:has(input:checked)) { opacity: .66; }
.valence-footer .valence-contact-toggle .contact-form-field:has(input:checked) { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.valence-footer .valence-contact-toggle .contact-form-field:has(input:checked)::after { border-left: .3rem solid transparent; border-right: .3rem solid transparent; border-top: .3rem solid var(--wp--preset--color--paper); bottom: -.3rem; content: ''; left: 50%; opacity: .65; pointer-events: none; position: absolute; transform: translateX(-50%); }
.valence-footer .valence-contact-toggle .contact-form-field:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--clay); outline-offset: 2px; }
.valence-footer .valence-contact-toggle .grunion-radio-options input[type='radio'].grunion-field { appearance: none; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; min-height: 1px; min-width: 1px; opacity: 0; overflow: hidden; padding: 0; position: absolute; transform: none; white-space: nowrap; width: 1px; }
.valence-footer .valence-contact-toggle .grunion-radio-label { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.valence-footer .valence-contact-channel[hidden] { display: none !important; }
.valence-footer .valence-contact-channel > .grunion-field-label { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.valence-footer .jetpack-contact-form__form input:not([type='hidden']):not([type='radio']):not([type='submit']),
.valence-footer .jetpack-contact-form__form textarea { background-color: transparent; background-image: linear-gradient(var(--valence-rule), var(--valence-rule)), linear-gradient(var(--valence-rule), var(--valence-rule)), linear-gradient(var(--valence-rule), var(--valence-rule)); background-position: left bottom, right bottom, left bottom; background-repeat: no-repeat; background-size: 1px .55rem, 1px .55rem, 100% 1px; border: 0; border-radius: 0; color: var(--wp--preset--color--paper); font: inherit; height: auto; padding: .45rem .4rem; }
.valence-footer .jetpack-contact-form__form textarea { height: 7rem; min-height: 7rem; resize: vertical; }
.valence-footer .jetpack-contact-form__form button[type='submit'] { background: var(--wp--preset--color--paper); border: 0; border-radius: 0; color: var(--wp--preset--color--ink); cursor: pointer; font-family: var(--wp--preset--font-family--body); font-size: .82rem; font-weight: 600; height: auto; letter-spacing: .09em; padding: .55rem .75rem .45rem; text-transform: uppercase; width: auto; }
.valence-footer .jetpack-contact-form__form :is(input, textarea, button):focus-visible { outline: 2px solid var(--wp--preset--color--clay); outline-offset: 2px; }
.valence-footer .contact-form__error,
.valence-footer .contact-form__input-error { --jetpack--contact-form--error-color: var(--wp--preset--color--clay); }
.valence-footer .contact-form-submission { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); margin: 0; max-width: none; padding: clamp(1.25rem, 3vw, 2.5rem); }
.valence-footer .contact-form-submission h4 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.12; margin: 0 0 1rem; }
.valence-footer .contact-form-submission .jetpack_forms_contact-form-custom-success-message { font-size: 1rem; line-height: 1.45; }

.valence-kicker { color: var(--wp--preset--color--clay); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.valence-work-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.valence-work-card { min-width: 0; }
.valence-work-card > a { display: block; overflow: hidden; position: relative; }
.valence-work-card__image { margin: 0; overflow: hidden; position: relative; }
.valence-work-card__image img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; transform-origin: var(--valence-focus-x, 50%) var(--valence-focus-y, 50%); transition: transform 1100ms cubic-bezier(.18, .78, .22, 1); width: 100%; }
.valence-work-card > a:hover .valence-work-card__image img { transform: scale(1.14); }
.valence-work-card__content { bottom: 0; left: 0; max-width: calc(100% - 1rem); position: absolute; z-index: 1; }
.valence-work-card__content h3 { font-size: clamp(2.25rem, 4vw, 4.15rem); margin: 0; }
.valence-work-card--hero { grid-column: 1 / -1; }
.valence-work-card--hero > a { min-height: min(78vh, 58rem); }
.valence-work-card--hero .valence-work-card__image { inset: 0; position: absolute; }
.valence-work-card--hero .valence-work-card__image img { aspect-ratio: auto; height: 100%; }
.valence-work-card--hero .valence-work-card__content h3 { font-size: clamp(2.9rem, 5.4vw, 5.8rem); }

.valence-carousel { position: relative; }
.valence-carousel__stage { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; position: relative; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-color: var(--valence-rule) transparent; scrollbar-width: thin; }
.valence-carousel__stage:focus-visible { outline: 2px solid var(--wp--preset--color--clay); outline-offset: 3px; }
.valence-process-slide { display: grid; flex: 0 0 100%; grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.1fr); min-height: 38rem; scroll-snap-align: start; scroll-snap-stop: always; }
.valence-carousel--wiggle .valence-process-slide { animation: valence-carousel-wiggle 1000ms cubic-bezier(.22, .61, .36, 1) both; }
.valence-process-slide__image { margin: 0; min-height: 28rem; overflow: hidden; }
.valence-process-slide__image img { height: 100%; object-fit: cover; width: 100%; }
.valence-process-slide__content { align-content: center; display: grid; gap: 1.2rem; padding: clamp(2.5rem, 6vw, 6rem); }
.valence-process-slide__content h3 { font-size: clamp(1.65rem, 2.8vw, 2.8rem); margin: 0; max-width: 13ch; }
.valence-process-slide__content p { font-size: 1.05rem; line-height: 1.5; margin: 0; max-width: 42rem; }
.valence-process-slide__number { color: var(--wp--preset--color--clay); font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.valence-process-slide__lead { font-size: 1.3rem !important; font-style: italic; }
.valence-carousel--artwork { --valence-process-artwork-slide: min(100%, 32.4rem); }
.valence-carousel--artwork .valence-carousel__stage { gap: max(.5rem, calc((100vw - 35.4rem) / 2 + .5rem)); padding-inline: calc((100% - var(--valence-process-artwork-slide)) / 2); scroll-padding-inline: calc((100% - var(--valence-process-artwork-slide)) / 2); }
.valence-process-slide--artwork { align-items: center; display: flex; justify-content: center; margin: 0; min-height: 0; }
.valence-carousel--artwork .valence-process-slide--artwork { flex-basis: var(--valence-process-artwork-slide); scroll-snap-align: center; }
.valence-process-slide--artwork img { height: auto; width: min(100%, 72svh, 48rem); }
.valence-carousel__progress { align-items: center; display: flex; gap: .3rem; justify-content: center; margin-top: .8rem; }
.valence-carousel__progress-dot { background: var(--wp--preset--color--paper); border-radius: 50%; height: .56rem; opacity: .25; transform: scale(.78); transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease; width: .56rem; }
.valence-carousel__progress-dot--current { background: var(--wp--preset--color--clay); opacity: 1; transform: scale(1.25); }
.valence-carousel__controls { inset: 0; pointer-events: none; position: absolute; }
.valence-carousel__controls button { appearance: none; align-items: center; background: transparent; border: 0; color: var(--wp--preset--color--paper); cursor: pointer; display: flex; font-family: var(--wp--preset--font-family--display); font-size: clamp(5rem, 8vw, 8rem); font-weight: 300; height: 8rem; justify-content: center; left: 0; line-height: 1; opacity: .38; outline: 0; padding: 0 0 .5rem; pointer-events: auto; position: absolute; top: 50%; transform: translate(calc(-100% - clamp(0rem, 2vw, 2rem)), -50%); transition: opacity 160ms ease; width: 5rem; z-index: 3; }
.valence-carousel__controls button:last-child { left: auto; right: 0; transform: translate(calc(100% + clamp(0rem, 2vw, 2rem)), -50%); }
.valence-carousel__controls button:hover,
.valence-carousel__controls button:focus-visible { opacity: .9; }
.valence-carousel__controls button:disabled { cursor: default; opacity: .12; }

@keyframes valence-carousel-wiggle {
  0%, 100% { transform: translateX(0); }
  42% { transform: translateX(-.9rem); }
  72% { transform: translateX(-.18rem); }
}

@media (max-width: 959px) {
  :root { --valence-background-angle: 111deg; }
}

@media (min-width: 960px) {
  .valence-carousel--artwork { --valence-process-artwork-slide: min(54vw, 46rem); max-width: 100% !important; width: calc(100vw - 3rem); }
  .valence-carousel--artwork .valence-carousel__stage { gap: clamp(1.5rem, 3vw, 3rem); perspective: 1600px; }
  .valence-carousel--artwork .valence-process-slide--artwork img { filter: brightness(var(--valence-slide-brightness, .62)) saturate(var(--valence-slide-saturation, .7)); opacity: var(--valence-slide-opacity, .38); transform: translateX(var(--valence-slide-shift, 0%)) rotateY(var(--valence-slide-rotation, 0deg)) scale(var(--valence-slide-scale, .8)); transform-style: preserve-3d; will-change: filter, opacity, transform; width: 100%; }
  .valence-carousel--artwork .valence-carousel__controls { bottom: auto; height: calc(100% - 1.08rem); }
  .valence-carousel--artwork .valence-carousel__controls button { height: 100%; justify-content: flex-start; left: 0; top: 0; transform: none; width: calc((100% - var(--valence-process-artwork-slide)) / 2); }
  .valence-carousel--artwork .valence-carousel__controls button:last-child { justify-content: flex-end; left: auto; right: 0; transform: none; }
  .valence-carousel--artwork.valence-carousel--wiggle .valence-process-slide { animation: none; }
  .valence-carousel--artwork.valence-carousel--wiggle .valence-carousel__stage { animation: valence-carousel-wiggle 1000ms cubic-bezier(.22, .61, .36, 1) both; }
}

.valence-about .wp-block-columns { margin-bottom: 0; }
.valence-about__intro { align-items: start; display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.valence-about__image { margin: 0; overflow: hidden; }
.valence-about__image img { aspect-ratio: 851 / 955; filter: grayscale(1) contrast(1.04); height: auto; object-fit: cover; transition: filter 700ms cubic-bezier(.2, .7, .25, 1); width: 100%; }
.valence-about__image:hover img,
.valence-about__image--pointer-active img { filter: grayscale(0) contrast(1); }
.valence-about h2 { font-size: clamp(1.85rem, 3vw, 3rem); margin: 0 0 1.5rem; max-width: 15ch; }
.valence-about p:not(.valence-kicker) { font-size: 1.2rem; line-height: 1.5; max-width: 33rem; }
.valence-about__bios { display: grid; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.5rem, 3vw, 3rem); }
.valence-about__bio { align-items: start; display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.valence-about__bio-image { aspect-ratio: 1; margin: 0; overflow: hidden; width: 100%; }
.valence-about__bio-image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.valence-about__bio-copy { min-width: 0; }
.valence-about__bio-copy > :first-child { margin-top: 0; }
.valence-about__contact { font-size: 1rem !important; }
.valence-about__contact a { border-bottom: 1px solid currentColor; }
.valence-text-link { margin-top: 2rem; }
.valence-text-link a { border-bottom: 1px solid currentColor; font-size: .78rem; letter-spacing: .1em; padding-bottom: .25rem; text-transform: uppercase; }

/* Portfolio children use the project-grid gutter as their page-wide rhythm. */
.page-child .valence-page { overflow: clip; }
.page-child .wp-block-post-content { display: grid; gap: 1.5rem; }
.page-child .wp-block-post-content > * { margin-bottom: 0 !important; margin-top: 0 !important; }
.page-child .wp-block-post-content > .alignwide { margin-left: 1.5rem !important; margin-right: 1.5rem !important; max-width: none; width: auto; }
.page-child .wp-block-post-content > .alignfull { margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
.page-child .wp-block-image { margin-bottom: 0; }
.page-child .wp-block-image img { height: 100%; object-fit: cover; width: 100%; }
.valence-project-hero--lead img { height: min(78vh, 58rem) !important; min-height: 34rem; }
.valence-project-hero:not(.valence-project-hero--lead) img { max-height: 58rem; }
.valence-project-intro { padding: clamp(2rem, 5vw, 5rem) 1.5rem; }
.valence-project-intro h1 { font-size: clamp(3.5rem, 8vw, 8rem); margin: 0 0 1.5rem; }
.valence-project-intro p { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.45; margin: 0; max-width: 48rem; }
.valence-project-intro p + p { margin-top: 1.25rem; }
.valence-project-row { gap: 1.5rem; }
.valence-project-row > .wp-block-column { min-width: 0; }
.valence-project-row--portrait img { aspect-ratio: 2 / 3; }
.valence-project-row--square img { aspect-ratio: 1; }
.valence-project-row--landscape img { aspect-ratio: 3 / 2; }
.valence-project-quote { align-content: center; border: 0; display: grid; margin-left: auto !important; margin-right: auto !important; max-width: 58rem; min-height: 38vh; padding: clamp(3rem, 8vw, 8rem) 1.5rem; }
.valence-project-quote p { font-family: var(--wp--preset--font-family--body); font-size: clamp(1.5rem, 2.25vw, 2.5rem); font-weight: 300; line-height: 1.05; margin: 0; }
.valence-project-quote p + p { margin-top: 1rem; }
.valence-project-feature { align-items: stretch !important; gap: 1.5rem; }
.valence-project-feature > .wp-block-column { align-content: center; display: grid; }
.valence-project-feature .valence-project-quote { min-height: 100%; padding-left: clamp(1.5rem, 5vw, 5rem); padding-right: clamp(1.5rem, 5vw, 5rem); }
.valence-project-columns { gap: 1.5rem; padding: clamp(2rem, 5vw, 5rem) 0; }
.valence-project-columns p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; margin: 0; }
.valence-more-projects { padding: clamp(4rem, 8vw, 8rem) 0 1.5rem; }
.valence-more-projects > h2 { font-size: clamp(2rem, 4vw, 4rem); margin: 0 1.5rem 1.5rem; }

@media (max-width: 700px) {
  :root { --valence-background-angle: 102deg; }
  .valence-header__layout { align-items: stretch; flex-direction: column; gap: 1rem; padding-top: 1rem; }
  .valence-header__brand { width: 100%; }
  .valence-header__menus { align-self: flex-end; gap: .55rem; }
  .valence-header__menu-row { gap: 1rem; }
  .valence-header__nav a { font-size: 1rem; }
  .valence-social-icons :is(a, span) { width: 1.35rem; }
  .valence-work-grid { grid-template-columns: 1fr; }
  .valence-work-card--hero { grid-column: auto; }
  .valence-work-card--hero > a { min-height: 68vh; }
  .valence-work-card--hero .valence-work-card__content h3 { font-size: clamp(2.5rem, 13vw, 4.5rem); }
  .valence-process-slide:not(.valence-process-slide--artwork) { grid-template-columns: 1fr; }
  .valence-process-slide__image { height: 62vw; min-height: 18rem; }
  .valence-process-slide__content { padding: 2.5rem 1.25rem 3rem; }
  .valence-carousel__controls button { font-size: 4.5rem; height: 5rem; left: 0; transform: translate(-38%, -50%); width: 3.5rem; }
  .valence-carousel__controls button:last-child { right: 0; transform: translate(38%, -50%); }
  .valence-about__intro { gap: 2.5rem; grid-template-columns: 1fr; }
  .valence-about h2 { font-size: 2.5rem; }
  .valence-footer__layout { grid-template-columns: 1fr; }
  .valence-footer .wp-block-columns { gap: 3rem; }
  .valence-project-hero--lead img { height: 68vh !important; min-height: 28rem; }
  .valence-project-intro h1 { font-size: clamp(3rem, 16vw, 5.5rem); }
  .valence-project-row,
  .valence-project-feature,
  .valence-project-columns { gap: 1.5rem; }
  .valence-project-feature .valence-project-quote { min-height: 45vh; }
}

@media (max-width: 520px) {
  .valence-about__bio { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .valence-carousel--wiggle .valence-process-slide { animation: none; }
  .valence-carousel--artwork .valence-process-slide--artwork img { transition: none; }
  .valence-carousel__progress-dot { transition: none; }
  .valence-about__image img { transition: none; }
  .valence-work-card__image img { transition: none; }
}
