/*
Theme Name: Soléna
Theme URI: https://example.com/solena
Author: Soléna Studio
Author URI: https://example.com
Description: A warm, editorial block theme for travel and lifestyle photographers, bloggers and content creators. Twenty ready-made pages, a journal with category filters, galleries, services with packages, a contact form and six colour palettes — every page is built from native blocks and stays fully editable in the WordPress editor. No page builder required.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solena
Tags: block-theme, full-site-editing, block-patterns, style-variations, photography, blog, portfolio, wide-blocks, editor-style, custom-colors, translation-ready
*/

/* ==========================================================================
   Soléna — shared stylesheet (static mockup AND WordPress theme).
   Every class starts with "so-". Every colour is a token bound to one of the
   eight palette roles; section tints are mixed from those roles, so a style
   variation recolours the whole site.

   The markup is the markup of native blocks (figure.wp-block-image,
   .wp-block-button, core/navigation…). Component classes sit on the blocks
   (className). Where a block stylesheet already styles an element, selectors
   are doubled (.wp-block-image.so-arch img) so the theme wins whatever the
   loading order.
   ========================================================================== */

:root {
  --so-base: var(--wp--preset--color--base, #F7F4EE);         /* page background, cream */
  --so-surface: var(--wp--preset--color--surface, #FCFBF9);   /* cards, form fields */
  --so-contrast: var(--wp--preset--color--contrast, #1C1A17); /* headings, logo, menu */
  --so-text: var(--wp--preset--color--body, #5F5B54);         /* body copy */
  --so-muted: var(--wp--preset--color--muted, #6E695F);       /* dates, captions */
  --so-line: var(--wp--preset--color--line, #DCD5CA);         /* hairlines, outlines */
  --so-accent: var(--wp--preset--color--accent, #A35E41);     /* terracotta: labels, links, newsletter */
  --so-accent-2: var(--wp--preset--color--accent-2, #565B45); /* olive: solid buttons, line drawings */
  --so-on-image: #FFFFFF;                                     /* text over photographs: never follows the palette */
  --so-shade: 20, 16, 10;                                     /* veils over photographs (rgb) */

  /* Section tints, derived from the roles. Measured on the reference: sand #EFE7DC and sage
     #E3E5DD are the cream turned a little warmer or greener. */
  --so-sand: oklch(from var(--so-base) calc(l - .035) calc(c + .012) h);
  --so-sage: oklch(from var(--so-base) calc(l - .05) calc(c + .004) calc(h + 40));
  --so-blush: color-mix(in srgb, var(--so-base) 94%, var(--so-accent));
  --so-paper: color-mix(in srgb, var(--so-base) 45%, var(--so-surface));
  --so-olive-deep: color-mix(in srgb, var(--so-accent-2) 86%, var(--so-contrast));
  --so-accent-soft: oklch(from var(--so-accent) calc(l + .15) calc(c * 1.08) h); /* the light disc */
  /* Small terracotta text on tinted bands stays above 4.5:1. */
  --so-accent-ink: color-mix(in srgb, var(--so-accent) 86%, var(--so-contrast));

  --so-font-heading: var(--wp--preset--font-family--heading, 'Newsreader', Georgia, serif);
  --so-font-body: var(--wp--preset--font-family--body, 'Poppins', system-ui, sans-serif);
  --so-font-script: var(--wp--preset--font-family--script, 'Waterfall', cursive);

  --so-wrap: 1070px;
  --so-wide: 1186px;
  --so-gutter: 24px;
  --so-ease: cubic-bezier(.2, .65, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--so-base);
  color: var(--so-text);
  font-family: var(--so-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; } /* decorative layers (palm shadow, sprigs) may cross the edge, never the page */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--so-font-heading);
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  color: var(--so-contrast);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  hyphens: none;
}
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, figure.wp-block-image { margin: 0; }
.so-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Gutenberg's automatic spacing is switched off at the source ("blockGap": null in theme.json).
   Safety net at ZERO specificity: it never overrides a component's own margins. */
:where(.wp-block-group) > :where(*) { margin-block: 0; }

.so-wrap { width: min(100% - 2 * var(--so-gutter), var(--so-wrap)); margin-inline: auto; }
.so-wide { width: min(100% - 2 * var(--so-gutter), var(--so-wide)); margin-inline: auto; }

/* --- Shared text styles ---------------------------------------------------------------- */
.so-eyebrow {
  font-family: var(--so-font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--so-contrast);
}
.so-eyebrow--accent { color: var(--so-accent-ink); }
.so-eyebrow a { color: inherit; text-decoration: none; }
.so-title { font-size: 44px; }
.so-lead {
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 24;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--so-contrast);
}
.so-text { font-size: 16px; line-height: 1.65; }
.so-script {
  font-family: var(--so-font-script);
  font-weight: 400;
  line-height: .8;
  letter-spacing: 0;
}

/* --- Buttons (core/buttons + core/button) -------------------------------------------------
   The class sits on div.wp-block-button; the link carries the look. The arrow is a
   pseudo-element: nothing to type in the editor. Text on solid buttons takes the page
   background, so every palette (dark included) keeps a readable button. */
.so-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.so-buttons--center { justify-content: center; }
.wp-block-button[class*="so-button--"] .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 0 30px;
  font-family: var(--so-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .35s var(--so-ease), color .35s var(--so-ease), border-color .35s var(--so-ease);
}
.wp-block-button[class*="so-button--"] .wp-block-button__link::after {
  content: "→";
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transition: transform .35s var(--so-ease);
}
.wp-block-button[class*="so-button--"] .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.so-button--solid .wp-block-button__link { background: var(--so-accent-2); color: var(--so-base); }
.wp-block-button.so-button--solid .wp-block-button__link:hover { background: var(--so-olive-deep); }
.wp-block-button.so-button--outline .wp-block-button__link { border-color: var(--so-contrast); color: var(--so-contrast); background: transparent; }
.wp-block-button.so-button--outline .wp-block-button__link:hover { background: var(--so-contrast); color: var(--so-base); }
.wp-block-button.so-button--accent .wp-block-button__link { background: var(--so-accent); color: var(--so-base); }
.wp-block-button.so-button--light .wp-block-button__link { border-color: color-mix(in srgb, var(--so-on-image) 85%, transparent); color: var(--so-on-image); background: transparent; }
.wp-block-button.so-button--light .wp-block-button__link:hover { background: var(--so-on-image); color: var(--so-contrast); }

/* Text links with an arrow: "Read the story" (core/read-more) and paragraph links. */
a.so-more, .so-more a {
  display: inline-flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--so-accent-ink);
  text-decoration: none;
}
a.so-more::after, .so-more a::after { content: "→"; display: inline-block; transition: transform .35s var(--so-ease); }
a.so-more:hover::after, .so-more a:hover::after { transform: translateX(4px); }

/* --- Header -----------------------------------------------------------------------------
   Pattern "header": core/site-title, core/navigation (desktop, never collapses), core/search
   (button only), core/social-links, core/buttons, core/navigation (mobile, overlay). */
.so-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  transition: background-color .45s var(--so-ease), box-shadow .45s var(--so-ease);
}
.admin-bar .so-header { top: var(--wp-admin--admin-bar--height, 0px); }
/* Below 600px WordPress lets the admin bar scroll away: the header then rises to the top. */
@media (max-width: 600px) { .admin-bar .so-header.so-is-scrolled { top: 0; } }
/* Over the hero the header is transparent; once the page scrolls it takes the cream. */
.so-header.so-is-scrolled {
  background: color-mix(in srgb, var(--so-base) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--so-line);
}
.so-header-row { display: flex; align-items: center; gap: 24px; height: 72px; transition: height .45s var(--so-ease); }
.so-is-scrolled .so-header-row { height: 62px; }
.so-logo {
  margin: 0 auto 0 0;
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 72;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--so-contrast);
}
.so-logo a { text-decoration: none; }

.wp-block-navigation.so-nav { margin-right: auto; font-size: 13.5px; color: var(--so-contrast); }
.wp-block-navigation.so-nav .wp-block-navigation__container { gap: 31px; flex-wrap: nowrap; }
.wp-block-navigation.so-nav .wp-block-navigation-item__content {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--so-contrast);
  text-decoration: none;
  white-space: nowrap;
}
.wp-block-navigation.so-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--so-ease);
}
.wp-block-navigation.so-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.wp-block-navigation.so-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.so-nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content::after { transform: scaleX(1); }
/* Submenus open on hover, as a light card; the chevron button stays for keyboard users. */
.wp-block-navigation.so-nav .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 3px; padding: 0; opacity: .55; }
.wp-block-navigation.so-nav .wp-block-navigation__submenu-icon svg { width: 10px; height: 10px; stroke: currentColor; }
.wp-block-navigation.so-nav .has-child .wp-block-navigation__submenu-container {
  left: -18px;
  min-width: 200px;
  padding: 10px 0;
  border: 0;
  background: var(--so-surface);
  color: var(--so-contrast);
  box-shadow: 0 18px 40px -18px rgba(var(--so-shade), .35);
}
.wp-block-navigation.so-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 20px; font-size: 14px; }
.wp-block-navigation.so-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation.so-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { color: var(--so-accent-ink); }

.so-header-tools { display: flex; align-items: center; gap: 17px; }
/* Search: the icon opens a field under the header (core/search, "button only"). */
.wp-block-search.so-search { position: relative; overflow: visible; }
.wp-block-search.so-search .wp-block-search__inside-wrapper { position: relative; width: auto !important; }
.wp-block-search.so-search .wp-block-search__button {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--so-contrast);
  cursor: pointer;
}
.wp-block-search.so-search .wp-block-search__button svg { width: 22px; height: 22px; min-width: 0; fill: currentColor; }
.wp-block-search.so-search.wp-block-search__button-only .wp-block-search__input {
  position: absolute;
  top: calc(100% + 22px);
  right: -14px;
  width: min(300px, calc(100vw - 32px)) !important;
  height: 48px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0;
  background: var(--so-surface);
  box-shadow: 0 18px 40px -18px rgba(var(--so-shade), .35);
  font-family: var(--so-font-body);
  font-size: 14.5px;
  color: var(--so-contrast);
  transition: opacity .3s var(--so-ease), transform .3s var(--so-ease), visibility .3s;
}
.wp-block-search.so-search.wp-block-search__searchfield-hidden .wp-block-search__input { opacity: 0; visibility: hidden; transform: translateY(6px); }
.wp-block-search.so-search .wp-block-search__input::placeholder { color: var(--so-muted); }

/* Social icons: official logos in the theme colour (the block prints brand colours). */
.wp-block-social-links.so-socials { display: flex; gap: 17px; font-size: 17px; }
.wp-block-social-links.so-socials .wp-social-link { color: var(--so-contrast); transition: color .3s, transform .3s; }
.wp-block-social-links.so-socials .wp-social-link svg { width: 17px; height: 17px; }
.wp-block-social-links.so-socials .wp-social-link:hover { color: var(--so-accent-ink); transform: none; }

.so-header-cta { margin: 0 0 0 12px; }
.wp-block-button.so-pill .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 36px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--so-olive-deep);
  color: var(--so-base);
  font-family: var(--so-font-body);
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .35s var(--so-ease);
}
.wp-block-button.so-pill .wp-block-button__link:hover { background: var(--so-accent-2); }

/* Mobile menu: hamburger and full-screen panel, only below 1025 px. */
.wp-block-navigation.so-nav-mobile { display: none; color: var(--so-contrast); }
.wp-block-navigation.so-nav-mobile .wp-block-navigation__responsive-container-open { width: 40px; height: 40px; justify-content: center; align-items: center; }
/* The block's own stylesheet paints the open panel white: the one place where !important is right. */
.wp-block-navigation.so-nav-mobile .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--so-base) !important;
  color: var(--so-contrast) !important;
  padding: 24px var(--so-gutter) 40px;
}
.wp-block-navigation.so-nav-mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px; align-items: flex-start; }
.wp-block-navigation.so-nav-mobile .is-menu-open .wp-block-navigation__container { gap: 6px; align-items: flex-start; }
.wp-block-navigation.so-nav-mobile .is-menu-open .wp-block-navigation-item__content { font-family: var(--so-font-heading); font-size: 30px; line-height: 1.25; padding: 4px 0; text-decoration: none; }
.wp-block-navigation.so-nav-mobile .is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 8px 2px !important; gap: 0 !important; }
.wp-block-navigation.so-nav-mobile .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--so-font-body); font-size: 14px; padding: 4px 0; }
.wp-block-navigation.so-nav-mobile .is-menu-open .so-nav-cta { margin-top: 22px; }
.wp-block-navigation.so-nav-mobile .is-menu-open .so-nav-cta .wp-block-navigation-item__content {
  display: inline-flex; padding: 12px 26px; border-radius: 999px; background: var(--so-olive-deep);
  color: var(--so-base); font-family: var(--so-font-body); font-size: 15px;
}

/* --- Hero ------------------------------------------------------------------------------ */
.so-hero {
  position: relative;
  height: clamp(520px, 37vw, 700px);
  overflow: hidden;
  background: rgb(var(--so-shade));
  color: var(--so-on-image);
}
.so-hero-slides { position: absolute; inset: 0; }
.wp-block-image.so-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.wp-block-image.so-hero-slide.so-active { opacity: 1; }
.wp-block-image.so-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.so-hero-slide--1 img { object-position: 50% 55%; }
.wp-block-image.so-hero-slide--2 img { object-position: 50% 50%; }
.wp-block-image.so-hero-slide--3 img { object-position: 50% 60%; }
.wp-block-image.so-hero-slide.so-active img { animation: so-drift 9s ease-out both; }
@keyframes so-drift { from { transform: scale(1.06); } to { transform: none; } }
/* A pale haze under the header (the reference keeps a light sky there), and a warm shade behind the copy. */
.so-hero::before, .so-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.so-hero::before {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--so-base) 90%, transparent) 0, color-mix(in srgb, var(--so-base) 76%, transparent) 58px, color-mix(in srgb, var(--so-base) 30%, transparent) 104px, transparent 170px);
}
.so-hero::after {
  background:
    linear-gradient(90deg, rgba(var(--so-shade), .52) 0%, rgba(var(--so-shade), .18) 46%, rgba(var(--so-shade), 0) 64%),
    linear-gradient(0deg, rgba(var(--so-shade), .38) 0%, rgba(var(--so-shade), 0) 45%);
}
.so-hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: 72px; }
.so-hero-content { position: relative; max-width: 480px; }
.so-hero-title { font-size: 72px; line-height: .98; letter-spacing: -0.03em; color: var(--so-on-image); }
.so-hero-lead { margin-top: 18px; max-width: 345px; font-size: 16.5px; line-height: 1.6; color: color-mix(in srgb, var(--so-on-image) 92%, transparent); }
.so-hero-content .so-buttons { margin-top: 26px; }
.so-hero-content .wp-block-button.so-button--solid .wp-block-button__link { background: color-mix(in srgb, var(--so-accent-2) 88%, transparent); }
.so-hero-content .wp-block-button.so-button--solid .wp-block-button__link:hover { background: var(--so-olive-deep); }
.so-hero-script {
  position: absolute;
  right: 74px;
  top: 172px;
  font-size: 84px;
  color: var(--so-on-image);
  transform: rotate(-19deg);
  transform-origin: center;
}
.so-hero-script p:nth-child(2) { margin-left: 28px; }
.so-hero-script p:nth-child(3) { margin-left: 4px; }
.so-hero-script::after {
  content: "";
  position: absolute;
  left: 60px;
  bottom: -46px;
  width: 66px;
  height: 1px;
  background: color-mix(in srgb, var(--so-on-image) 80%, transparent);
  transform: rotate(19deg);
}
.so-hero-index { position: absolute; right: -2px; top: 372px; display: grid; gap: 14px; }
.so-hero-dot {
  position: relative;
  font-family: var(--so-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: color-mix(in srgb, var(--so-on-image) 72%, transparent);
  cursor: pointer;
}
.so-hero-dot.so-active { font-size: 14px; font-weight: 600; color: var(--so-on-image); }
.so-hero-dot.so-active::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, var(--so-on-image) 0 10px, transparent 10px 16px, var(--so-accent-soft) 16px);
}

/* --- About ----------------------------------------------------------------------------- */
.so-about { position: relative; background: var(--so-base); padding: 104px 0 112px; overflow: hidden; }
.so-about-grid { position: relative; display: grid; grid-template-columns: 607px 1fr; align-items: center; min-height: 402px; }
.so-about-media { position: relative; height: 402px; }
.wp-block-image.so-arch { overflow: hidden; border-radius: 1000px 1000px 0 0; }
.wp-block-image.so-arch img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.so-about-arch { position: absolute; left: 32px; top: 0; width: 287px; height: 383px; }
.wp-block-image.so-about-arch img { object-position: 50% 40%; }
.wp-block-image.so-about-small {
  position: absolute;
  left: 288px;
  top: 157px;
  width: 248px;
  height: 245px;
  border: 5px solid var(--so-surface);
  box-shadow: 0 20px 40px -24px rgba(var(--so-shade), .45);
  background: var(--so-surface);
}
.wp-block-image.so-about-small img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.so-about-hello { position: absolute; left: 322px; top: 32px; font-size: 72px; color: var(--so-accent-2); transform: rotate(-14deg); }
.so-about-copy { max-width: 400px; padding-top: 6px; }
.so-about-copy .so-title { margin-top: 12px; }
.so-about-copy .so-lead { margin-top: 10px; }
.so-about-copy .so-text { margin-top: 18px; max-width: 400px; }
.so-about-copy .so-buttons { margin-top: 26px; }
/* Two sprigs drawn in line, in the olive of the palette (pseudo-elements: nothing to delete by mistake). */
.so-about-grid::before, .so-about-grid::after {
  content: "";
  position: absolute;
  background: var(--so-accent-2);
  opacity: .78;
  -webkit-mask: var(--so-sprig) no-repeat center / contain;
  mask: var(--so-sprig) no-repeat center / contain;
  pointer-events: none;
}
.so-about-grid::before { --so-sprig: url(assets/img/sprig-short.svg); left: -40px; top: 232px; width: 62px; height: 150px; transform: rotate(-12deg); }
.so-about-grid::after { --so-sprig: url(assets/img/sprig-tall.svg); right: -86px; top: 138px; width: 132px; height: 236px; }

/* --- Categories ------------------------------------------------------------------------ */
.so-categories { background: var(--so-sand); padding: 96px 0 104px; text-align: center; }
.so-categories .so-title { margin-top: 8px; }
.so-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; text-align: left; }
.so-card { position: relative; padding: 3px; background: var(--so-surface); box-shadow: 0 1px 0 rgba(var(--so-shade), .04); }
.so-card .wp-block-image { aspect-ratio: 277 / 219; overflow: hidden; }
.so-card .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--so-ease); }
.so-card:hover .wp-block-image img { transform: scale(1.05); }
.wp-block-image.so-card-photo--inspiration img { object-position: 50% 62%; }
.wp-block-image.so-card-photo--fashion img { object-position: 50% 30%; }
.so-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 17px 0 16px;
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 24;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--so-contrast);
}
.so-card-label a { text-decoration: none; }
/* The whole card is the link (the label's link is stretched over it). */
.so-card-label a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.so-card-label::after { content: "→"; font-family: var(--so-font-body); font-size: 15px; transition: transform .35s var(--so-ease); }
.so-card:hover .so-card-label::after { transform: translateX(4px); }

/* --- Quote band ------------------------------------------------------------------------ */
.so-quote { position: relative; height: 320px; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--so-on-image); }
.so-quote > .wp-block-image { position: absolute; inset: -40px 0; }
.so-quote > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.so-quote::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--so-shade), .3), rgba(var(--so-shade), .5) 50%, rgba(var(--so-shade), .38)); }
.wp-block-quote.so-quote-text { position: relative; z-index: 2; margin: 0; padding: 0; border: 0; }
.so-quote-text p { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 34px; line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance; }
.so-quote-text::after { content: ""; display: block; width: 60px; height: 1px; margin: 26px auto 0; background: color-mix(in srgb, var(--so-on-image) 85%, transparent); }

/* --- Approach -------------------------------------------------------------------------- */
.so-approach { position: relative; background: var(--so-base); padding-top: 88px; overflow: hidden; }
.so-approach-grid { position: relative; display: grid; grid-template-columns: 1fr 392px; align-items: center; gap: 40px; min-height: 422px; }
.so-approach-copy { padding: 0 0 88px 14px; max-width: 460px; }
.so-approach-copy .so-title { margin-top: 12px; }
.so-approach-copy .so-text { margin-top: 16px; max-width: 420px; color: var(--so-contrast); opacity: .86; }
.so-approach-copy .so-buttons { margin-top: 30px; }
.so-approach-media { position: relative; align-self: end; height: 404px; margin-right: -82px; }
.wp-block-image.so-approach-arch { position: relative; z-index: 2; width: 392px; height: 404px; }
.wp-block-image.so-approach-arch img { object-position: 50% 38%; }
/* The disc and the circular badge are decoration of the media group, not blocks. */
.so-approach-media::before { content: ""; position: absolute; z-index: 1; left: 259px; top: 117px; width: 240px; height: 240px; border-radius: 50%; background: var(--so-accent-soft); }
.so-approach-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -94px;
  top: 21px;
  width: 142px;
  height: 142px;
  background: var(--so-accent);
  -webkit-mask: url(assets/img/badge-travel.png) no-repeat center / contain;
  mask: url(assets/img/badge-travel.png) no-repeat center / contain;
}

/* --- Press ----------------------------------------------------------------------------- */
.so-press { background: var(--so-paper); padding: 56px 0 60px; text-align: center; position: relative; z-index: 2; }
.so-press-logos { display: flex; justify-content: center; align-items: center; gap: 76px; margin-top: 24px; color: var(--so-contrast); }
.so-press-logos > * { line-height: 1; white-space: nowrap; }
.so-press-1 { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 33px; letter-spacing: .02em; transform: scaleX(.86); }
.so-press-2 { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 30px; letter-spacing: .32em; font-weight: 400; }
.so-press-3 { font-family: var(--so-font-body); font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.so-press-4 { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 31px; font-weight: 700; letter-spacing: -.04em; }
.so-press-5 { display: grid; text-align: left; }
.so-press-5 p:first-child { font-family: var(--so-font-body); font-size: 12px; font-weight: 400; letter-spacing: .01em; color: var(--so-text); }
.so-press-5 p:last-child { font-family: var(--so-font-body); font-size: 25px; font-weight: 600; letter-spacing: -.03em; }

/* --- Journal cards (core/query + core/post-template) -------------------------------------- */
.so-blog { position: relative; background: var(--so-sage); padding: 100px 0 108px; }
.so-section-head--row .so-buttons { margin: 0 0 4px; }
.so-section-head--row .wp-block-button.so-button--outline .wp-block-button__link { font-size: 13.5px; padding: 0 24px; }
.so-blog .so-section-head { margin-bottom: 0; }
.wp-block-post-template.so-posts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 48px; }
.so-posts > .wp-block-post { background: var(--so-surface); padding: 3px 3px 0; }
.so-posts .wp-block-post-featured-image { aspect-ratio: 325 / 182; overflow: hidden; margin: 0; }
.so-posts .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--so-ease); }
.so-posts > .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.so-post-body { padding: 20px 27px 25px; }
.so-post-meta { display: flex; flex-wrap: wrap; gap: 0 7px; font-size: 11px; font-weight: 500; letter-spacing: .14em; line-height: 1.65; text-transform: uppercase; color: var(--so-muted); }
.so-post-meta .so-post-category a { color: var(--so-accent-ink); text-decoration: none; }
.so-post-meta .so-post-date::before { content: "·"; margin-right: 7px; }
.so-post-title { margin-top: 9px; font-size: 21px; line-height: 1.28; letter-spacing: -0.015em; font-variation-settings: 'opsz' 24; }
.so-post-title a { text-decoration: none; }
.so-post-body .so-more { margin-top: 16px; }
.so-posts .so-is-filtered { display: none; }
/* A palm frond's shadow drifts across the journal and the newsletter (blur drawn in the SVG). */
.so-blog::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -170px;
  bottom: -380px;
  width: 620px;
  height: 780px;
  opacity: .15;
  background: rgb(var(--so-shade));   /* a shadow stays dark, whatever the palette */
  -webkit-mask: url(assets/img/palm-shadow-soft.svg) no-repeat center / contain;
  mask: url(assets/img/palm-shadow-soft.svg) no-repeat center / contain;
  transform: rotate(8deg);
  pointer-events: none;
}

/* --- Newsletter and forms (Contact Form 7) ------------------------------------------------ */
.so-newsletter { position: relative; background: var(--so-blush); padding: 96px 0 100px; text-align: center; overflow: hidden; }
.so-newsletter .so-title::before {
  content: "";
  display: block;
  width: 26px;
  height: 20px;
  margin: 0 auto 8px;
  background: var(--so-contrast);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Crect x='.6' y='.6' width='24.8' height='18.8'/%3E%3Cpath d='m.6.6 12.4 10 12.4-10'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Crect x='.6' y='.6' width='24.8' height='18.8'/%3E%3Cpath d='m.6.6 12.4 10 12.4-10'/%3E%3C/svg%3E") no-repeat center / contain;
}
.so-newsletter .so-text { max-width: 540px; margin: 6px auto 0; color: var(--so-contrast); opacity: .82; }
.so-newsletter .wpcf7 { position: relative; z-index: 2; margin-top: 36px; }
.wpcf7-form.so-form-newsletter { display: flex; flex-wrap: wrap; justify-content: center; }
.so-form-newsletter .wpcf7-form-control-wrap { display: block; }
.so-form-newsletter .wpcf7-email {
  display: block;
  width: 302px;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--so-surface);
  font-family: var(--so-font-body);
  font-size: 14.5px;
  color: var(--so-contrast);
}
.so-form-newsletter .wpcf7-email::placeholder { color: var(--so-muted); }
.wpcf7-form .wpcf7-submit {
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  background: var(--so-accent);
  color: var(--so-base);
  font-family: var(--so-font-body);
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .35s var(--so-ease);
}
.wpcf7-form .wpcf7-submit:hover { background: color-mix(in srgb, var(--so-accent) 85%, var(--so-contrast)); }
.so-form-newsletter .wpcf7-submit { width: 160px; }
.wpcf7-form .wpcf7-spinner { display: none; }
.wpcf7-form .wpcf7-response-output { flex-basis: 100%; margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--so-line); font-size: 14px; color: var(--so-contrast); }
.wpcf7-form.init .wpcf7-response-output { display: none; }
.wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output { border-color: var(--so-accent-ink); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--so-accent-2); }
.wpcf7-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--so-accent-ink); text-align: left; }

/* --- Instagram strip ------------------------------------------------------------------- */
.so-insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; background: var(--so-base); }
.so-insta .wp-block-image { aspect-ratio: 240 / 189; overflow: hidden; }
.so-insta .wp-block-image > a { display: block; height: 100%; }
.so-insta .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform 1.2s var(--so-ease), filter .6s; }
.so-insta .wp-block-image:hover img { transform: scale(1.06); filter: brightness(.92); }

/* --- Footer ---------------------------------------------------------------------------- */
.so-footer { background: var(--so-paper); padding: 76px 0 40px; }
.so-footer-wrap { width: min(100% - 2 * var(--so-gutter), 1091px); margin-inline: auto; }
.so-footer-grid { display: grid; grid-template-columns: 345px 202px 207px 1fr; padding-left: 15px; }
.so-footer .so-logo { font-size: 33px; margin: 0; }
.so-footer-tagline { margin-top: 14px; max-width: 300px; font-size: 14px; line-height: 1.7; }
.wp-block-social-links.so-footer-socials { gap: 23px; margin-top: 26px; font-size: 16px; }
.wp-block-social-links.so-footer-socials .wp-social-link svg { width: 16px; height: 16px; }
.so-footer-title { font-family: var(--so-font-body); font-variation-settings: normal; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--so-contrast); padding-top: 9px; }
.so-footer-links { margin-top: 10px; display: grid; gap: 1px; }
.so-footer-links a { font-size: 14px; line-height: 1.6; text-decoration: none; transition: color .3s; }
.so-footer-links a:hover { color: var(--so-accent-ink); }
.so-follow { display: grid; grid-template-columns: repeat(4, 75px); gap: 7px; margin-top: 15px; }
.so-follow .wp-block-image { aspect-ratio: 1; overflow: hidden; }
.so-follow .wp-block-image > a { display: block; height: 100%; }
.so-follow .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.so-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--so-line); font-size: 13px; color: var(--so-muted); }
.so-legal { display: flex; gap: 0; }
.so-legal li + li::before { content: "|"; margin: 0 18px; }
.so-legal a { text-decoration: none; }
.so-legal a:hover { color: var(--so-contrast); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--so-accent); outline-offset: 3px; }

/* --- Homepage, responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .wp-block-navigation.so-nav .wp-block-navigation__container { gap: 22px; }
  .so-hero-script { right: 40px; font-size: 70px; }
  .so-about-grid { grid-template-columns: 520px 1fr; }
  .so-about-grid::after { right: -40px; opacity: .5; }
  .so-approach-media { margin-right: 0; }
  .so-press-logos { gap: 48px; }
}
@media (max-width: 1024px) {
  .wp-block-navigation.so-nav, .wp-block-social-links.so-header-socials { display: none; }
  .wp-block-navigation.so-nav-mobile { display: flex; }
  .so-hero-script { top: 120px; font-size: 60px; right: 24px; }
  .so-hero-index { top: auto; bottom: 96px; }
  .so-about-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .so-about-media { height: 380px; }
  .wp-block-image.so-about-arch { left: 0; width: 250px; height: 340px; }
  .wp-block-image.so-about-small { left: 170px; top: 160px; width: 200px; height: 200px; }
  .so-about-hello { left: 210px; top: 20px; font-size: 60px; }
  .so-about-grid::before, .so-about-grid::after { display: none; }
  .so-cards { grid-template-columns: repeat(2, 1fr); }
  .so-approach-grid { grid-template-columns: 1fr 320px; }
  .wp-block-image.so-approach-arch { width: 320px; height: 360px; }
  .so-approach-media { height: 360px; }
  .so-approach-media::before { left: 210px; width: 180px; height: 180px; }
  .so-approach-media::after { left: -70px; width: 120px; height: 120px; }
  .so-press-logos { flex-wrap: wrap; gap: 26px 48px; }
  .wp-block-post-template.so-posts { gap: 20px; }
  .so-post-body { padding: 18px 20px 22px; }
  .so-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px 24px; padding-left: 0; }
  .so-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .so-header-cta { display: none; }
  .so-newsletter .so-text br, .so-quote-text p br { display: none; }
  .so-header-tools { gap: 6px; }
  .so-title { font-size: 36px; }
  .so-hero { height: auto; min-height: 640px; }
  .so-hero-inner { min-height: 640px; }
  .so-hero-content { max-width: none; padding-top: 40px; }
  .so-hero-title { font-size: 52px; }
  .so-hero-script { top: 104px; right: 18px; font-size: 52px; }
  .so-hero-script::after { display: none; }
  .so-hero-index { right: 0; bottom: 28px; display: flex; gap: 18px; }
  .so-hero-dot.so-active::after { display: none; }
  .so-hero::after { background: linear-gradient(0deg, rgba(var(--so-shade), .62) 0%, rgba(var(--so-shade), .2) 55%, rgba(var(--so-shade), 0) 75%); }
  .so-about { padding: 72px 0 80px; }
  .so-about-grid { grid-template-columns: 1fr; }
  .so-about-media { height: 360px; max-width: 360px; width: 100%; margin: 0 auto; }
  .wp-block-image.so-about-arch { width: 230px; height: 310px; }
  .wp-block-image.so-about-small { left: auto; right: 0; top: 170px; width: 170px; height: 170px; }
  .so-about-hello { left: auto; right: 10px; top: 30px; font-size: 54px; }
  .so-quote { height: 300px; padding: 0 var(--so-gutter); }
  .so-quote-text p { font-size: 26px; }
  .so-approach-grid { grid-template-columns: 1fr; gap: 0; }
  .so-approach-copy { padding: 0 0 48px; }
  .so-approach-media { justify-self: center; height: 340px; width: 300px; }
  .wp-block-image.so-approach-arch { width: 270px; height: 340px; }
  .so-approach-media::before { left: 170px; top: 120px; width: 150px; height: 150px; }
  .so-approach-media::after { left: -40px; top: 6px; width: 100px; height: 100px; }
  .so-press-logos { gap: 20px 34px; }
  .so-press-1, .so-press-4 { font-size: 26px; }
  .so-press-2 { font-size: 24px; }
  .so-press-3, .so-press-5 p:last-child { font-size: 21px; }
  .so-blog { padding: 72px 0 80px; }
  .so-categories, .so-newsletter { padding: 72px 0 80px; }
  .so-approach { padding-top: 64px; }
  .wp-block-post-template.so-posts { grid-template-columns: 1fr; }
  .wpcf7-form.so-form-newsletter { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .so-form-newsletter .wpcf7-email, .so-form-newsletter .wpcf7-submit { width: 100%; }
  .so-insta { grid-template-columns: repeat(3, 1fr); }
  .so-footer-grid { grid-template-columns: 1fr 1fr; }
  .so-footer-follow { grid-column: 1 / -1; }
  .so-follow { grid-template-columns: repeat(4, 1fr); }
  .so-footer-bottom { flex-direction: column; }
  .so-legal { flex-wrap: wrap; row-gap: 6px; }
  .so-legal li + li::before { margin: 0 10px; }
}

/* ==========================================================================
   Inner pages — the same system as the homepage: cream bands, arches, square
   corners, serif titles, olive buttons, terracotta labels.
   ========================================================================== */

/* --- Generic sections ------------------------------------------------------------------- */
.so-section { position: relative; padding: 96px 0; }
.so-section--tight { padding: 64px 0; }
.so-bg-sand { background: var(--so-sand); }
.so-bg-sage { background: var(--so-sage); }
.so-bg-blush { background: var(--so-blush); }
/* On the tinted bands the muted grey drifts 15% towards the text colour, so small print keeps 4.5:1. */
.so-categories, .so-blog, .so-newsletter, .so-bg-sand, .so-bg-sage, .so-bg-blush, .so-title-band, .so-cta,
.so-package--featured, .so-article-head, .so-author, .so-aside-card--accent {
  --so-muted: color-mix(in oklab, var(--wp--preset--color--muted, #6E695F) 85%, var(--wp--preset--color--contrast, #1C1A17));
}
.so-bg-paper { background: var(--so-paper); }
.so-section-head { max-width: 640px; margin-bottom: 44px; }
.so-section-head .so-title { margin-top: 10px; }
.so-section-head .so-text { margin-top: 14px; }
.so-section-head--center { margin-inline: auto; text-align: center; }
.so-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.so-narrow { width: min(100% - 2 * var(--so-gutter), 760px); margin-inline: auto; }

/* --- Page hero (photograph) -------------------------------------------------------------- */
.so-page-hero {
  position: relative;
  height: clamp(440px, 34vw, 540px);
  overflow: hidden;
  background: rgb(var(--so-shade));
  color: var(--so-on-image);
}
.so-page-hero > .wp-block-image { position: absolute; inset: 0; }
.so-page-hero > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.so-page-hero::before, .so-page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.so-page-hero::before {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--so-base) 84%, transparent) 0, color-mix(in srgb, var(--so-base) 50%, transparent) 64px, transparent 150px);
}
.so-page-hero::after {
  background:
    linear-gradient(90deg, rgba(var(--so-shade), .5) 0%, rgba(var(--so-shade), .16) 50%, rgba(var(--so-shade), 0) 70%),
    linear-gradient(0deg, rgba(var(--so-shade), .42) 0%, rgba(var(--so-shade), 0) 50%);
}
.so-page-hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 64px; }
.so-page-hero-content { max-width: 560px; }
.so-page-hero .so-eyebrow { color: color-mix(in srgb, var(--so-on-image) 88%, transparent); }
.so-page-hero h1 { margin-top: 12px; font-size: 64px; line-height: 1; letter-spacing: -0.03em; color: var(--so-on-image); }
.so-page-hero-lead { margin-top: 16px; max-width: 440px; font-size: 16.5px; line-height: 1.6; color: color-mix(in srgb, var(--so-on-image) 92%, transparent); }
.so-page-hero-script { position: absolute; right: 0; bottom: 70px; font-size: 76px; color: var(--so-on-image); transform: rotate(-12deg); transform-origin: right bottom; }
.so-page-hero--center .so-page-hero-inner { align-items: center; justify-content: center; padding-bottom: 0; text-align: center; }
.so-page-hero--center .so-page-hero-content { max-width: 620px; }
.so-page-hero--center .so-page-hero-lead { margin-inline: auto; }
.so-page-hero--center::after { background: rgba(var(--so-shade), .36); }
.so-page-hero--tall { height: clamp(560px, 46vw, 700px); }
.so-page-hero-content .so-script--lead { display: block; font-size: 84px; line-height: .7; color: var(--so-on-image); transform: rotate(-6deg); margin-bottom: 18px; }

/* --- Title band (no photograph) ---------------------------------------------------------- */
.so-title-band { background: var(--so-sand); padding: 156px 0 72px; text-align: center; }
.so-title-band h1 { margin-top: 12px; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.so-title-band .so-text { max-width: 560px; margin: 16px auto 0; }
.so-meta { display: flex; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--so-muted); }
.so-meta > * + *::before { content: "·"; margin-right: 10px; }

/* --- Intro hero (split, no full photograph) ---------------------------------------------- */
.so-intro-hero { position: relative; background: var(--so-base); padding: 132px 0 72px; overflow: hidden; }
.so-intro-hero h1 { margin-top: 12px; font-size: 60px; line-height: 1.02; letter-spacing: -0.03em; }

/* --- Split: media and copy side by side -------------------------------------------------- */
.so-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.so-split--reverse > .so-split-media { order: 2; }
.so-split-copy { max-width: 470px; }
.so-split-copy .so-title { margin-top: 12px; }
.so-split-copy .so-lead { margin-top: 12px; }
.so-split-copy .so-text { margin-top: 18px; }
.so-split-copy .so-text + .so-text { margin-top: 14px; }
.so-split-media { position: relative; min-height: 460px; }
.so-split-media .wp-block-image.so-arch { position: relative; z-index: 2; width: min(100%, 360px); aspect-ratio: 3 / 4; }
.so-split--reverse .so-split-media .wp-block-image.so-arch { margin-left: auto; }
.wp-block-image.so-frame {
  position: absolute;
  z-index: 3;
  width: 46%;
  aspect-ratio: 1;
  border: 5px solid var(--so-surface);
  background: var(--so-surface);
  box-shadow: 0 20px 40px -24px rgba(var(--so-shade), .45);
}
.wp-block-image.so-frame img { width: 100%; height: 100%; object-fit: cover; }
.so-split-media .wp-block-image.so-frame { right: 0; bottom: -28px; }
.so-split--reverse .so-split-media .wp-block-image.so-frame { right: auto; left: 0; }
.so-split-media--disc::before { content: ""; position: absolute; z-index: 1; right: -40px; top: 18%; width: 230px; height: 230px; border-radius: 50%; background: var(--so-accent-soft); }
.so-split--reverse .so-split-media--disc::before { right: auto; left: -40px; }
.so-split-script { position: absolute; z-index: 4; right: 6%; top: -10px; font-size: 68px; color: var(--so-accent-2); transform: rotate(-14deg); }
.so-split--reverse .so-split-script { right: auto; left: 4%; }
.so-signature { margin-top: 22px; font-family: var(--so-font-script); font-size: 56px; line-height: .8; color: var(--so-contrast); }
.wp-block-image.so-rect { overflow: hidden; }
.wp-block-image.so-rect img { width: 100%; height: 100%; object-fit: cover; }
.so-split-media .wp-block-image.so-rect { aspect-ratio: 4 / 5; width: min(100%, 440px); }
.so-split--reverse .so-split-media .wp-block-image.so-rect { margin-left: auto; }
.so-split-copy .so-price-row { margin-top: 22px; }

/* --- Values, steps, stats ---------------------------------------------------------------- */
.so-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.so-value-number, .so-step-number {
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 72;
  font-size: 46px;
  line-height: 1;
  color: var(--so-accent-ink);
}
.so-value h3, .so-step h3 { margin-top: 18px; font-size: 25px; font-variation-settings: 'opsz' 36; }
.so-value .so-text, .so-step .so-text { margin-top: 10px; }
.so-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.so-step { padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--so-contrast) 22%, transparent); }
.so-step h3 { font-size: 22px; }
.so-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.so-stat-number { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 58px; line-height: 1; letter-spacing: -0.03em; color: var(--so-contrast); }
.so-stat .so-eyebrow { display: block; margin-top: 12px; }

/* --- Timeline ---------------------------------------------------------------------------- */
.so-timeline { display: grid; gap: 0; margin-top: 34px; }
.so-timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid color-mix(in srgb, var(--so-contrast) 18%, transparent); }
.so-timeline-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--so-contrast) 18%, transparent); }
.so-timeline-year { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 34px; line-height: 1; color: var(--so-accent-ink); }
.so-timeline-row h3 { font-size: 22px; font-variation-settings: 'opsz' 36; }
.so-timeline-row .so-text { margin-top: 6px; }
.so-journey { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.so-journey .wp-block-image.so-rect { aspect-ratio: 3 / 4; position: sticky; top: 100px; }

/* --- Photo strips ------------------------------------------------------------------------ */
.so-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.so-strip--3 { grid-template-columns: repeat(3, 1fr); }
.so-strip .wp-block-image { aspect-ratio: 4 / 5; overflow: hidden; }
.so-strip .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--so-ease); }
.so-strip .wp-block-image:hover img { transform: scale(1.05); }

/* --- Call to action band ----------------------------------------------------------------- */
.so-cta { position: relative; background: var(--so-blush); padding: 88px 0; text-align: center; overflow: hidden; }
.so-cta .so-script { display: block; font-size: 64px; color: var(--so-accent-2); transform: rotate(-6deg); margin-bottom: 18px; }
.so-cta .so-text { max-width: 560px; margin: 14px auto 0; }

/* --- Gallery tiles (galleries overview) -------------------------------------------------- */
.so-tiles { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 300px 300px 380px; gap: 18px; }
.so-tile { position: relative; overflow: hidden; color: var(--so-on-image); }
.so-tile--tall { grid-row: span 2; }
.so-tile--wide { grid-column: span 2; }
.so-tile .wp-block-image { position: absolute; inset: 0; }
.so-tile .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--so-ease); }
.so-tile:hover .wp-block-image img { transform: scale(1.04); }
.so-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--so-shade), .55) 0%, rgba(var(--so-shade), 0) 55%); pointer-events: none; }
.so-tile-label { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 28px; }
.so-tile-label .so-eyebrow { color: color-mix(in srgb, var(--so-on-image) 86%, transparent); }
.so-tile-label h2 { margin-top: 8px; padding-right: 40px; font-size: 44px; color: var(--so-on-image); }
.so-tile-label h2 a { text-decoration: none; }
.so-tile-label a::before { content: ""; position: absolute; inset: -2000px; z-index: 1; } /* the whole tile is the link */
.so-tile-label::after { content: "→"; position: absolute; right: 0; bottom: 6px; font-size: 22px; line-height: 1; transition: transform .35s var(--so-ease); }
.so-tile:hover .so-tile-label::after { transform: translateX(6px); }

/* --- Gallery grid ------------------------------------------------------------------------ */
.so-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; }
.so-gallery .wp-block-image { position: relative; overflow: hidden; }
.so-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--so-ease); }
.so-gallery .wp-block-image:hover img { transform: scale(1.04); }
.so-gallery .so-span-tall { grid-row: span 2; }
.so-gallery .so-span-wide { grid-column: span 2; }
.so-gallery .wp-block-image .wp-element-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--so-surface) 92%, transparent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--so-contrast);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--so-ease), transform .4s var(--so-ease);
}
.so-gallery .wp-block-image:hover .wp-element-caption { opacity: 1; transform: none; }
.so-gallery-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.so-gallery-intro .so-text { max-width: 470px; }
.so-gallery-facts { display: flex; gap: 48px; margin-top: 26px; }
.so-fact-value { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 40px; line-height: 1; color: var(--so-contrast); }
.so-fact-label { margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.so-next-nav { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0; border-top: 1px solid var(--so-line); }
.so-next-nav > :last-child { text-align: right; }
.so-next-label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--so-muted); }
.so-next-title { margin-top: 6px; font-family: var(--so-font-heading); font-variation-settings: 'opsz' 36; font-size: 28px; line-height: 1.5; color: var(--so-contrast); }
.so-next-title a { text-decoration: none; }
.so-next-title a:hover { color: var(--so-accent-ink); }

/* --- Services overview rows -------------------------------------------------------------- */
.so-rows { display: grid; gap: 112px; }
.so-row { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.so-row:nth-child(even) > .so-row-media { order: 2; }
.so-row-media { position: relative; }
.so-row-media .wp-block-image.so-rect { aspect-ratio: 5 / 4; }
.so-row-number {
  position: absolute;
  z-index: 2;
  top: -34px;
  left: -26px;
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 72;
  font-size: 96px;
  line-height: 1;
  color: var(--so-accent-soft);
}
.so-row:nth-child(even) .so-row-number { left: auto; right: -26px; }
.so-row-copy { max-width: 450px; }
.so-row-copy .so-title { margin-top: 10px; font-size: 40px; }
.so-row-copy .so-text { margin-top: 16px; }

/* --- Checklist --------------------------------------------------------------------------- */
.so-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 22px; }
.so-checklist--single { grid-template-columns: 1fr; }
.so-checklist li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--so-contrast); }
.so-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--so-accent-2);
  border-radius: 50%;
}
.so-checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 4px;
  height: 7px;
  border: solid var(--so-accent-2);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* --- Packages ---------------------------------------------------------------------------- */
.so-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.so-package { display: flex; flex-direction: column; padding: 40px 34px 36px; background: var(--so-surface); }
.so-package--featured { background: var(--so-sand); box-shadow: 0 30px 60px -40px rgba(var(--so-shade), .5); transform: translateY(-14px); }
.so-package h3 { margin-top: 10px; font-size: 28px; }
.so-price-row { display: flex; align-items: baseline; margin-top: 18px; }
.so-price { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: var(--so-contrast); }
.so-price-unit { margin-left: 6px; font-family: var(--so-font-body); font-size: 13px; color: var(--so-muted); }
.so-package .so-text { margin-top: 14px; }
.so-package .so-checklist { grid-template-columns: 1fr; margin-top: 22px; margin-bottom: 30px; }
.so-package .so-buttons { margin-top: auto; }
.so-package .wp-block-button { width: 100%; }
.so-package .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; }
.so-note { margin-top: 34px; font-size: 14px; color: var(--so-text); text-align: center; }  /* body colour: muted is too pale on the tinted bands */

/* --- FAQ (core/details) ------------------------------------------------------------------ */
.so-faq { max-width: 820px; margin-inline: auto; }
.so-faq .wp-block-details { border-bottom: 1px solid color-mix(in srgb, var(--so-contrast) 18%, transparent); }
.so-faq .wp-block-details:first-child { border-top: 1px solid color-mix(in srgb, var(--so-contrast) 18%, transparent); }
.so-faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--so-font-heading);
  font-variation-settings: 'opsz' 36;
  font-size: 22px;
  line-height: 1.3;
  color: var(--so-contrast);
}
.so-faq summary::-webkit-details-marker { display: none; }
.so-faq summary::before, .so-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--so-ease);
}
.so-faq summary::after { transform: rotate(90deg); }
.so-faq details[open] summary::after { transform: rotate(0deg); }
.so-faq details p { padding: 0 48px 26px 0; }

/* --- Journal page ------------------------------------------------------------------------ */
.wp-block-post-template.so-featured > .wp-block-post { display: grid; grid-template-columns: 7fr 5fr; background: var(--so-surface); }
.so-featured .wp-block-post-featured-image { position: relative; min-height: 480px; overflow: hidden; margin: 0; }
.so-featured .wp-block-post-featured-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--so-ease); }
.so-featured > .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.so-featured .so-post-body { display: flex; flex-direction: column; justify-content: center; padding: 56px 52px; }
.so-featured .so-post-meta .so-post-category::before { content: "Featured · "; color: var(--so-accent-ink); }
.so-featured .so-post-title { margin-top: 14px; font-size: 40px; line-height: 1.12; font-variation-settings: 'opsz' 72; }
.so-featured .so-post-excerpt { margin-top: 16px; }
.so-featured .so-post-excerpt p { margin: 0; font-size: 16px; line-height: 1.65; }
.so-featured .so-post-body .so-more { margin-top: 26px; }
.so-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-bottom: 40px; }
.so-chip {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--so-text);
  cursor: pointer;
}
.so-chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--so-contrast);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--so-ease);
}
.so-chip:hover, .so-chip.so-is-active { color: var(--so-contrast); }
.so-chip.so-is-active::after, .so-chip:hover::after { transform: scaleX(1); }
.wp-block-post-template.so-posts--grid { margin-top: 0; row-gap: 40px; }
.wp-block-query-pagination.so-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.so-pagination a, .so-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  font-family: var(--so-font-heading);
  font-size: 18px;
  text-decoration: none;
  color: var(--so-contrast);
}
.so-pagination .current { border-color: var(--so-contrast); }
.so-pagination a:hover { border-color: var(--so-line); }

/* --- Single post ------------------------------------------------------------------------- */
.so-article-head { background: var(--so-sand); padding: 156px 0 210px; text-align: center; }
.so-article-head .wp-block-post-title { max-width: 860px; margin: 14px auto 0; font-size: 58px; line-height: 1.04; letter-spacing: -0.03em; }
.so-article-head .so-eyebrow a { text-decoration: none; }
.so-article-cover { position: relative; z-index: 2; margin-top: -150px; }
.so-article-cover .wp-block-post-featured-image { aspect-ratio: 16 / 8; overflow: hidden; margin: 0; }
.so-article-cover .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.so-prose { width: min(100% - 2 * var(--so-gutter), 720px); margin-inline: auto; padding: 72px 0 24px; }
.so-prose > * + * { margin-top: 22px; }
.so-prose p { font-size: 17px; line-height: 1.8; }
.so-prose .so-dropcap::first-letter { float: left; margin: 8px 12px 0 0; font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 82px; line-height: .78; color: var(--so-contrast); }
.so-prose h2 { margin-top: 56px; font-size: 34px; }
.so-prose h3 { margin-top: 40px; font-size: 24px; font-variation-settings: 'opsz' 36; }
.so-prose .wp-block-list { display: grid; gap: 10px; padding-left: 0; }
.so-prose .wp-block-list li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.7; }
.so-prose .wp-block-list li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 1px; background: var(--so-accent); }
.so-prose .wp-block-quote { margin: 48px 0; padding: 6px 0 6px 34px; border-left: 2px solid var(--so-accent); }
.so-prose .wp-block-quote p { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 30px; line-height: 1.3; letter-spacing: -0.015em; color: var(--so-contrast); }
.so-prose > .wp-block-image { margin-top: 40px; }
.so-prose > .wp-block-image img { width: 100%; }
.so-prose .wp-element-caption { margin: 10px 0 0; font-size: 13px; color: var(--so-muted); text-align: center; }
/* Two photographs side by side, wider than the text column. */
.so-prose > .so-prose-wide { width: min(100vw - 2 * var(--so-gutter), 1070px); margin: 56px 0 0 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.so-prose-wide .wp-block-image { aspect-ratio: 4 / 5; overflow: hidden; }
.so-prose-wide .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.so-prose > .so-prose-wide + * { margin-top: 72px; }
.so-article-foot { width: min(100% - 2 * var(--so-gutter), 720px); margin: 0 auto; padding-bottom: 96px; }
.so-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 26px 0; border-top: 1px solid var(--so-line); border-bottom: 1px solid var(--so-line); }
.so-tags a { padding: 7px 14px; border: 1px solid var(--so-line); font-size: 12.5px; text-decoration: none; transition: border-color .3s; }
.so-tags a:hover { border-color: var(--so-contrast); }
.so-tags .wp-block-post-terms__separator { display: none; }
.so-author { display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: center; margin-top: 48px; padding: 34px; background: var(--so-sand); }
.so-author .wp-block-image.so-arch { width: 150px; aspect-ratio: 3 / 4; }
.so-author h3 { margin-top: 6px; font-size: 26px; }
.so-author .so-text { margin-top: 8px; font-size: 15px; }
.so-author .so-more { margin-top: 14px; }

/* --- Resources --------------------------------------------------------------------------- */
.so-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.so-guide .wp-block-image { aspect-ratio: 4 / 5; overflow: hidden; }
.so-guide .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--so-ease); }
.so-guide:hover .wp-block-image img { transform: scale(1.04); }
.so-guide .so-eyebrow { margin-top: 20px; }
.so-guide h3 { margin-top: 8px; font-size: 24px; font-variation-settings: 'opsz' 36; }
.so-guide .so-text { margin-top: 8px; font-size: 15px; }
.so-guide .so-more { margin-top: 14px; }
.so-gear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.so-gear h3 { font-size: 24px; font-variation-settings: 'opsz' 36; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--so-contrast) 18%, transparent); }
.so-gear .wp-block-list { display: grid; gap: 16px; margin-top: 18px; }
.so-gear li { font-size: 14px; line-height: 1.55; }
.so-gear li strong { display: block; margin-bottom: 2px; font-weight: 500; font-size: 15px; line-height: 1.65; color: var(--so-contrast); }
.so-disclosure { margin-top: 48px; padding: 18px 22px; background: var(--so-surface); font-size: 13.5px; color: var(--so-muted); }

/* --- Contact ----------------------------------------------------------------------------- */
.so-contact-links { margin-top: 22px; }
.so-contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.so-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.so-field { display: grid; gap: 8px; }
.so-field--full { grid-column: 1 / -1; }
.so-field label { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--so-contrast); }
.so-field .wpcf7-form-control-wrap { display: block; }
.so-field input, .so-field select, .so-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--so-surface);
  font-family: var(--so-font-body);
  font-size: 15px;
  color: var(--so-contrast);
  transition: border-color .3s;
}
.so-field textarea { min-height: 180px; resize: vertical; }
.so-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--so-contrast) 50%), linear-gradient(135deg, var(--so-contrast) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.so-field input:focus, .so-field select:focus, .so-field textarea:focus { outline: none; border-color: var(--so-accent-2); }
.so-consent { grid-column: 1 / -1; font-size: 14px; }
.so-consent .wpcf7-list-item { display: block; margin: 0; }
.so-consent label { display: flex; gap: 12px; align-items: flex-start; }
.so-consent input { flex: none; margin-top: 4px; accent-color: var(--so-accent-2); }
.so-submit { grid-column: 1 / -1; justify-self: start; }
.so-submit .wpcf7-submit { background: var(--so-accent-2); }
.so-submit .wpcf7-submit:hover { background: var(--so-olive-deep); }
.so-aside { display: grid; gap: 18px; }
.so-aside-card { padding: 30px; background: var(--so-surface); }
.so-aside-card h3 { margin-top: 8px; font-size: 24px; font-variation-settings: 'opsz' 36; }
.so-aside-card p:not(.so-eyebrow) { margin-top: 8px; font-size: 15px; }
.so-aside-card .so-more a { color: var(--so-contrast); }
.so-aside-card--accent { background: var(--so-blush); }

/* --- Legal ------------------------------------------------------------------------------- */
.so-legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 72px; align-items: start; }
.so-toc { position: sticky; top: 100px; }
.so-toc-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: so-toc; }
.so-toc-list li { counter-increment: so-toc; font-size: 14px; }
.so-toc-list li::before { content: counter(so-toc, decimal-leading-zero) " "; color: var(--so-accent-ink); font-size: 12px; margin-right: 6px; }
.so-toc-list a { text-decoration: none; }
.so-toc-list a:hover { color: var(--so-contrast); }
.so-legal-layout .so-legal-body { width: auto; margin: 0; padding: 0; max-width: 720px; }
.so-legal-body h2 { margin-top: 48px; font-size: 28px; scroll-margin-top: 100px; }
.so-legal-body h2:first-of-type { margin-top: 32px; }
.so-sample { padding: 20px 24px; background: var(--so-blush); font-size: 14.5px; color: var(--so-contrast); }
.so-legal-body .so-sample { font-size: 14.5px; line-height: 1.65; }

/* --- 404 --------------------------------------------------------------------------------- */
.so-notfound { padding: 150px 0 110px; background: var(--so-base); overflow: hidden; }
.so-notfound .so-split-media .wp-block-image.so-arch { width: min(100%, 340px); }
.so-notfound-number { font-family: var(--so-font-heading); font-variation-settings: 'opsz' 72; font-size: 170px; line-height: .8; letter-spacing: -0.05em; color: var(--so-contrast); }
.so-notfound-script { display: block; margin: 14px 0 44px; font-size: 64px; color: var(--so-accent-2); transform: rotate(-8deg); transform-origin: left; }
.wp-block-search.so-search-inline { max-width: 420px; margin-top: 28px; }
.wp-block-search.so-search-inline .wp-block-search__inside-wrapper { border: 0; padding: 0; background: none; }
.wp-block-search.so-search-inline .wp-block-search__input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 0; border-radius: 0; background: var(--so-surface); font-family: var(--so-font-body); font-size: 15px; color: var(--so-contrast); }
.wp-block-search.so-search-inline .wp-block-search__button { width: 52px; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--so-accent-2); color: var(--so-base); cursor: pointer; }
.wp-block-search.so-search-inline .wp-block-search__button svg { width: 22px; height: 22px; margin: auto; fill: currentColor; }

/* --- Inner pages, responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .so-split, .so-row, .so-gallery-intro { gap: 56px; }
  .so-row-number { left: -8px; }
  .so-row:nth-child(even) .so-row-number { right: -8px; }
  .so-gear { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .so-page-hero h1 { font-size: 54px; }
  .so-page-hero-script { font-size: 60px; }
  .so-values { gap: 36px; }
  .so-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .so-stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .so-packages { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .so-package--featured { transform: none; }
  .wp-block-post-template.so-featured > .wp-block-post { grid-template-columns: 1fr; }
  .so-featured .wp-block-post-featured-image { min-height: 0; aspect-ratio: 16 / 10; }
  .so-journey { grid-template-columns: 1fr; gap: 48px; }
  .so-journey .wp-block-image.so-rect { position: static; max-width: 420px; }
  .so-contact-grid { grid-template-columns: 1fr; }
  .so-legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .so-toc { position: static; }
  .so-guides { gap: 22px; }
}
@media (max-width: 760px) {
  .so-section { padding: 72px 0; }
  .so-section--tight { padding: 52px 0; }
  .so-page-hero { height: 480px; }
  .so-page-hero--tall { height: 600px; }
  .so-page-hero-inner { padding-bottom: 44px; }
  .so-page-hero h1 { font-size: 44px; }
  .so-page-hero-script { right: 4px; bottom: auto; top: 108px; font-size: 48px; }
  .so-page-hero::after { background: linear-gradient(0deg, rgba(var(--so-shade), .62) 0%, rgba(var(--so-shade), .2) 60%, rgba(var(--so-shade), 0) 80%); }
  .so-page-hero--center::after { background: rgba(var(--so-shade), .42); }
  .so-page-hero-content .so-script--lead { font-size: 60px; }
  .so-title-band { padding: 128px 0 56px; }
  .so-title-band h1, .so-article-head .wp-block-post-title { font-size: 40px; }
  .so-intro-hero { padding: 112px 0 56px; }
  .so-intro-hero h1 { font-size: 44px; }
  .so-section-head--row { flex-direction: column; align-items: flex-start; }
  .so-split, .so-row, .so-gallery-intro { grid-template-columns: 1fr; gap: 48px; }
  .so-split--reverse > .so-split-media, .so-row:nth-child(even) > .so-row-media { order: 0; }
  .so-split-media { min-height: 0; max-width: 360px; width: 100%; margin-inline: auto; }
  .so-split-media .wp-block-image.so-arch { width: 78%; }
  .so-split-media--disc::before { width: 150px; height: 150px; right: 0; top: 22%; }
  .so-split--reverse .so-split-media--disc::before { right: auto; left: 0; }
  .so-split-script { font-size: 52px; }
  .so-split-copy, .so-row-copy { max-width: none; }
  .so-values, .so-steps { grid-template-columns: 1fr; }
  .so-stat-number { font-size: 46px; }
  .so-timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .so-strip { grid-template-columns: repeat(2, 1fr); }
  .so-strip--3 { grid-template-columns: repeat(3, 1fr); }
  .so-tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 320px; }
  .so-tile--tall { grid-row: auto; }
  .so-tile--wide { grid-column: auto; }
  .so-tile-label h2 { font-size: 34px; }
  .so-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 8px; }
  .so-gallery-facts { gap: 28px; }
  .so-next-title { font-size: 22px; }
  .so-row-number { font-size: 72px; top: -26px; }
  .so-row-copy .so-title { font-size: 34px; }
  .so-checklist { grid-template-columns: 1fr; }
  .so-featured .so-post-body { padding: 36px 26px; }
  .so-featured .so-post-title { font-size: 30px; }
  .so-article-head { padding: 128px 0 150px; }
  .so-article-cover { margin-top: -110px; }
  .so-article-cover .wp-block-post-featured-image { aspect-ratio: 4 / 3; }
  .so-prose { padding-top: 48px; }
  .so-prose .wp-block-quote p { font-size: 24px; }
  .so-prose > .so-prose-wide { grid-template-columns: 1fr; }
  .so-author { grid-template-columns: 1fr; text-align: left; }
  .so-guides { grid-template-columns: 1fr; }
  .so-gear { grid-template-columns: 1fr; gap: 32px; }
  .so-fields { grid-template-columns: 1fr; }
  .so-notfound { padding: 120px 0 80px; }
  .so-notfound-number { font-size: 120px; }
  .so-cta { padding: 72px 0; }
}

/* --- Photo focus helpers (Image block classes: "Additional CSS class") -------------------- */
.wp-block-image.so-focus-high img { object-position: 50% 22%; }
.wp-block-image.so-focus-low img { object-position: 50% 78%; }
.wp-block-image.so-focus-left img { object-position: 22% 50%; }
.wp-block-image.so-focus-right img { object-position: 78% 55%; }
.wp-block-image.so-focus-25 img { object-position: 50% 25%; }
.wp-block-image.so-focus-40 img { object-position: 50% 40%; }
.wp-block-image.so-focus-60 img { object-position: 50% 60%; }
.wp-block-image.so-focus-70 img { object-position: 50% 70%; }

/* --- Motion -----------------------------------------------------------------------------
   The hero animates in pure CSS and always ends visible. Below the fold, app.js adds
   .so-reveal (or .so-reveal-image) to elements not yet on screen, then .so-in as they scroll
   into view: without JavaScript, in the editor, or with ?static, nothing is ever hidden. */
@keyframes so-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.so-hero-content > * { animation: so-rise 1.1s var(--so-ease) both; }
.so-hero-content > :nth-child(2) { animation-delay: .12s; }
.so-hero-content > :nth-child(3) { animation-delay: .26s; }
@keyframes so-write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.so-hero-script p { animation: so-write 1.4s .5s var(--so-ease) both; }
.so-hero-script p:nth-child(2) { animation-delay: .85s; }
.so-hero-script p:nth-child(3) { animation-delay: 1.2s; }

.so-motion .so-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--so-ease), transform 1s var(--so-ease);
  transition-delay: var(--so-delay, 0s);
}
.so-motion .so-reveal.so-in { opacity: 1; transform: none; }
.so-motion .so-reveal-image { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.65, 0, .25, 1); transition-delay: var(--so-delay, 0s); }
.so-motion .so-reveal-image img { transform: scale(1.1); transition: transform 2s var(--so-ease); transition-delay: var(--so-delay, 0s); }
.so-motion .so-reveal-image.so-in { clip-path: inset(0 0 0 0); }
.so-motion .so-reveal-image.so-in img { transform: none; }
.wp-block-image.so-parallax { overflow: hidden; }
.so-motion .wp-block-image.so-parallax img { transform: translate3d(0, var(--so-parallax, 0px), 0) scale(1.14); will-change: transform; }
.so-static .wp-block-image.so-hero-slide.so-active img, .so-static .so-hero-content > *, .so-static .so-hero-script p { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
