/*
Theme Name: Hugh Langley Design
Description: A one-page editorial portfolio theme.
Version: 1.1.31
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hugh-langley-design
*/
:root {
  color-scheme: light;
  --paper: #d1dad1;
  --on-accent: #ffffff;
  --ink: #232a25;
  --quiet: #48554b;
  --line: #a7b3a7;
  --plum: #aa354b;
  --lilac: #e6d1d5;
  --display: "Geist", "Arial", sans-serif;
  --body: "Geist", "Arial", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
.shell { width: min(100% - 2 * clamp(20px, 5vw, 88px), 1460px); margin-inline: auto; }
.label { font: 500 .75rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; background: var(--paper); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { width: max-content; text-decoration: none; font: 750 1.18rem/.95 var(--display); letter-spacing: -.055em; }
.wordmark span { display: block; color: var(--plum); }
.nav-cta { justify-self: end; }
.nav-cta span { margin-left: .35rem; }
.hero { display: grid; grid-template-columns: 1fr 2.2fr; column-gap: 24px; padding-block: clamp(65px, 8vw, 124px) clamp(72px, 11vw, 170px); }
.hero-label { margin-top: .6em; color: var(--quiet); }
.hero h1 { font-size: clamp(3rem, 9.6vw, 9.5rem); font-weight: 750; line-height: .91; letter-spacing: -.075em; }
.hero h1 em { font: italic 400 1.02em/.75 Georgia, serif; color: var(--plum); letter-spacing: -.075em; }

.section { padding-block: clamp(56px, 8vw, 118px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr; column-gap: 24px; }
.split > .label { margin: 0 0 14px; color: var(--quiet); }
.footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; }



.basics > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.basics > div:first-child { border-top: 1px solid var(--line); }
.basics dt { font-weight: 700; }
.basics dd { color: var(--quiet); }
.footer { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .masthead { min-height: 72px; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero-label, .split > .label { margin: 0 0 22px; }
  .hero h1 { font-size: clamp(2.7rem, 11.3vw, 5.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.section h2 { font-size: clamp(2.7rem, 6vw, 6rem); line-height: .97; letter-spacing: -.075em; }
.sample { margin-top: clamp(22px, 4vw, 48px); }
.about-layout { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: clamp(16px, 5vw, 66px); }
.about-layout .wp-block-image { width: 76%; max-width: 300px; margin-inline: auto; }
.lines { display: grid; gap: 8px; }
.lines i { display: block; height: 5px; background: var(--line); }
.lines i:nth-child(2) { width: 83%; }
.lines i:nth-child(3) { width: 57%; }
.portrait-slot { display: grid; place-items: center; aspect-ratio: 1.35; background: var(--lilac); color: var(--plum); font: italic clamp(2rem, 6vw, 5rem)/1 Georgia, serif; }
.info-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .9rem; }
.info-nav a { padding-block: 8px; }
.service-layout, .process-layout { padding: 0; list-style: none; }
.service-layout li { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0; font-weight: 700; }
.service-layout li:last-child { border-bottom: 1px solid var(--line); }
.work-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-layout figure { margin: 0; }
.project-slot { aspect-ratio: 1.32; display: grid; place-items: center; padding: 13%; background: #302a33; color: #e3d8e7; }
.project-slot.clinic { background: #dfd9e4; color: #5b4361; }
.project-slot.local { background: #dadfd9; color: #3f5149; }
.mini-page { width: 100%; height: 100%; border: 1px solid currentColor; padding: 9%; display: grid; gap: 10%; align-content: center; }
.mini-page i { display: block; width: 68%; height: 7px; background: currentColor; }
.mini-page i:first-child { width: 85%; height: clamp(12px, 3vw, 32px); }
.mini-page i:last-child { width: 29%; opacity: .65; }
.clinic .mini-page i { justify-self: center; }
.local .mini-page i { justify-self: end; }
.work-layout figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 12px; font-weight: 700; }
.work-layout figcaption span { color: var(--quiet); }
.process-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: stage; }
.process-layout li { border-top: 1px solid var(--line); padding-top: 12px; counter-increment: stage; font-weight: 700; }
.process-layout li::before { content: "0" counter(stage); display: block; margin-bottom: 9px; color: var(--plum); font: .75rem var(--mono); }
.faq-layout { border-bottom: 1px solid var(--line); }
.faq-layout details { border-top: 1px solid var(--line); }
.faq-layout summary { cursor: pointer; padding-block: 15px; font-weight: 650; }
.faq-layout p { color: var(--quiet); padding-bottom: 15px; }
.contact-layout { background: var(--plum); color: var(--on-accent); }
.contact-layout .section { border: 0; }
.contact-layout h2 { margin-top: 12px; }
.contact-layout fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.contact-layout legend { padding: 0; margin-bottom: 14px; color: #f2e5f0; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-layout label { display: grid; gap: 5px; margin-bottom: 12px; }
.contact-layout input, .contact-layout textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #bca6ba; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.contact-layout textarea { resize: none; }
.contact-layout button { padding: 12px 15px; background: var(--paper); color: var(--plum); border: 0; font: 650 .9rem var(--body); }
@media (max-width: 760px) {
  .work-layout, .process-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout .split { row-gap: 24px; }
}
@media (max-width: 460px) {
  .work-layout, .contact-fields { grid-template-columns: 1fr; }
}

.wp-block-group.shell { margin-inline: auto; }
.wp-block-site-title { margin: 0; }
.wordmark a { text-decoration: none; }
.wordmark { max-width: 7ch; }
.footer-title a { text-decoration: none; }
.nav-cta { margin: 0; }
.service-layout .service-row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); font-weight: 700; }
.service-layout .service-row:last-child { border-bottom: 1px solid var(--line); }
.concept-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 12px; font-weight: 700; }
.concept-caption .label { color: var(--quiet); }
.concept-card .wp-block-image, .about-layout .wp-block-image { margin: 0; }
.concept-card img, .about-layout img { display: block; width: 100%; height: auto; }
.contact-layout fieldset:disabled button { opacity: 1; }

.hero { row-gap: 26px; }
.hero .hero-actions { grid-column: 2; }
.hero .enquire-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--plum);
  border-radius: 0;
  background: var(--plum);
  color: var(--paper);
  font: 700 .95rem/1.2 var(--body);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.hero .enquire-button .wp-block-button__link:hover {
  background: var(--paper);
  color: var(--plum);
}
.hero .enquire-button .wp-block-button__link:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .hero { row-gap: 18px; }
  .hero .hero-actions { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .enquire-button .wp-block-button__link { transition: none; }
}


.wordmark { max-width: none; }

.hero-track { position: relative; }
.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 82svh;
  background: var(--paper);
  overflow: clip;
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  background:
    radial-gradient(ellipse at 78% 30%, color-mix(in srgb, var(--plum) 58%, var(--paper)) 0%, transparent 45%),
    radial-gradient(ellipse at 14% 90%, #ecf0ec 0%, transparent 52%);
  filter: blur(58px);
  opacity: .58;
  pointer-events: none;
}
.hero-stage .hero {
  grid-template-columns: 1fr;
  padding-block: clamp(40px, 8vh, 92px);
}
.hero-copy { min-width: 0; }
.hero-copy .hero-label { margin: 0 0 22px; }
.hero-copy h1 { font-size: clamp(2.7rem, 12vw, 13rem); }
.hero-copy .hero-actions { margin-top: 26px; }

.hero-scroll {
  position: absolute;
  inset-inline-start: 50%;
  translate: -50% 0;
  inset-block-end: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--plum);
  text-decoration: none;
}
.hero-scroll span:last-child { font-size: 1.15rem; }
.hero-scroll:hover span:first-child { text-decoration: underline; }
.hero-stage .hero { padding-bottom: max(72px, 8vh); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
#info, #contact { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.hero-scroll a { text-decoration: none; }
.hero-scroll a:hover { text-decoration: underline; }
.service-description, .concept-description, .step-copy { color: var(--quiet); font-weight: 400; }
.concept-description, .step-copy { font-size: .92rem; }
.concept-description { margin-top: 6px; }
.step-copy { display: inline-block; margin-top: 5px; }
.section-copy { margin-top: 16px; }
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.editor-styles-wrapper .hero-track { min-height: 0; margin-bottom: 0; }
.editor-styles-wrapper .hero-stage { animation: none; position: relative; min-height: 0; }
.editor-styles-wrapper .hero-track + #info { margin-top: 0; }
@media (max-width: 500px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* The homepage supplies its own section and block spacing. */
body.home .wp-site-blocks > * { margin-block: 0; }

/* Left-align the Services heading block, which was pushed to the right. */
#services .is-content-justification-right { justify-content: flex-start; }

/* ---- Refined body typography ---- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Lead / intro paragraphs: airier leading, a comfortable measure, slightly larger. */
.about-layout > .wp-block-paragraph,
.section-copy {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
}
.section-copy { margin-top: 20px; }

/* Secondary description text: quieter, measured, easy to scan. */
.service-description {
  max-width: 58ch;
  font-size: .98rem;
  line-height: 1.68;
  letter-spacing: 0.005em;
}
.faq-layout p {
  max-width: 56ch;
  font-size: .98rem;
  line-height: 1.72;
  letter-spacing: 0.005em;
}
.step-copy {
  line-height: 1.62;
  letter-spacing: 0.004em;
}


/* About and Services */
body.home #info {
  background: var(--plum);
  color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--plum);
  clip-path: inset(0 -100vmax);
  border-top: 0;
}
body.home #info > .label { color: var(--lilac); }
#info h2 {
  font-size: clamp(4.6rem, 15vw, 13rem);
  line-height: .86;
  letter-spacing: -.09em;
  margin-inline-start: -.05em;
}
#info .about-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 7vw, 112px);
  margin-top: clamp(30px, 5vw, 72px);
}
#info .about-layout > p {
  max-width: 25ch;
  font-size: clamp(1.3rem, 3.05vw, 2.85rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.038em;
}
#info .about-layout .wp-block-image {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}
#info .info-nav {
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: clamp(34px, 6vw, 82px);
  border-top: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  padding-top: 9px;
}
#info .info-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
#info .info-nav a:hover,
#info .info-nav a:focus-visible { text-decoration-color: currentColor; }

#services > .wp-block-group { display: block; }
#services .service-layout {
  margin-top: clamp(24px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}
#services .service-layout .service-row {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  align-items: baseline;
  gap: 12px clamp(24px, 5vw, 76px);
  padding-block: clamp(18px, 2.8vw, 36px);
  border-bottom: 0;
}
#services .service-row > p:first-child {
  color: var(--plum);
  font: 690 clamp(1.25rem, 2.7vw, 2rem)/1.12 var(--display);
  letter-spacing: -.045em;
}
#services .service-description {
  max-width: 51ch;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.55;
}
@media (max-width: 620px) {
  #info .about-layout,
  #services .service-layout .service-row { grid-template-columns: minmax(0, 1fr); }
  #info .about-layout .wp-block-image { justify-self: start; max-width: 340px; }
  #services .service-layout .service-row { gap: 8px; }
}


/* Header index */
.masthead { min-height: 76px; gap: 12px 24px; }
body.home .site-header.is-hidden:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}
.site-index { justify-self: end; font-size: .86rem; font-weight: 550; }
.site-index .wp-block-navigation__container { gap: 4px clamp(12px, 2.5vw, 34px); }
.site-index .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline transparent;
  text-underline-offset: .35em;
}
.site-index .wp-block-navigation-item__content:hover,
.site-index .wp-block-navigation-item__content:focus-visible,
.site-index a[aria-current="location"] { text-decoration-color: currentColor; }
.site-index .site-index-contact a { color: var(--plum); font-weight: 720; }
.site-index-contact a::after { content: "↗" / ""; margin-inline-start: .35em; }
#info, #services, #process, #contact, #faq, #work {
  scroll-margin-top: calc(86px + var(--wp-admin--admin-bar--height, 0px));
}

/* Magazine-style About spread */
@media (min-width: 761px) {
  #info > .wp-block-group {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(24px, 5vw, 76px);
    row-gap: clamp(22px, 4vw, 58px);
    align-items: start;
  }
  #info h2 { grid-area: 1 / 1; font-size: clamp(5.5rem, 12vw, 13rem); }
  #info .about-layout { display: contents; }
  #info .about-layout > p { grid-area: 2 / 1; }
  #info .about-layout .wp-block-image { grid-area: 1 / 2 / 3; }
  #info .info-nav { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 500px) {
  .masthead { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .site-index { justify-self: start; }
  .site-index .wp-block-navigation__container { gap: 0 16px; justify-content: start; }
  .site-index .wp-block-navigation-item__content { min-height: 40px; }
  #info, #services, #process, #contact, #faq, #work {
    scroll-margin-top: calc(92px + var(--wp-admin--admin-bar--height, 0px));
  }
}

/* Editor-style selection flash on the opening headline */
.hero-copy h1 { position: relative; width: fit-content; max-width: 100%; }
.hero-copy h1::after {
  content: "";
  position: absolute;
  inset: -.045em -.06em;
  pointer-events: none;
  opacity: 0;
  outline: 1px solid var(--plum);
  background:
    linear-gradient(var(--plum), var(--plum)) top left / 6px 6px no-repeat,
    linear-gradient(var(--plum), var(--plum)) top right / 6px 6px no-repeat,
    linear-gradient(var(--plum), var(--plum)) bottom left / 6px 6px no-repeat,
    linear-gradient(var(--plum), var(--plum)) bottom right / 6px 6px no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 { animation: editor-drop .55s cubic-bezier(.22,.72,.24,1) both; }
  .hero-copy h1::after { animation: editor-selection 1.55s .14s ease-out both; }
  .site-index-contact a::after { transition: translate .18s ease; }
  .site-index-contact a:hover::after,
  .site-index-contact a:focus-visible::after { translate: 2px -2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes editor-drop {
  from { opacity: 0; translate: 0 -17px; }
  73% { translate: 0 3px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes editor-selection {
  0%, 100% { opacity: 0; }
  25%, 62% { opacity: .64; }
}


/* One continuous page surface */
body.home {
  background: linear-gradient(180deg, var(--paper), #e0e6e0 26%, var(--paper) 55%, #e2e7e2 78%, var(--paper));
}
body.home .hero-stage,
body.home #info,
body.home .contact-layout { background: transparent; }
body.home .hero-stage::before { opacity: .36; }
body.home #info {
  color: var(--ink);
  box-shadow: none;
  clip-path: none;
  border-top: 1px solid var(--line);
}
body.home #info > .label,
body.home .contact-layout legend { color: var(--quiet); }
#info .info-nav { border-top-color: var(--line); }
body.home .contact-layout { color: var(--ink); }
body.home .contact-layout .section { border-top: 1px solid var(--line); }
body.home .contact-layout input,
body.home .contact-layout textarea { background: #fff5; border-color: #78887a; }
body.home .contact-layout button { background: var(--plum); color: var(--on-accent); }

/* Process cards rendered by WP Carousel */
#process { grid-template-columns: minmax(0, 1fr); }
#process > .wp-block-group { min-width: 0; width: 100%; }
#hld-process { min-width: 0; max-width: 100%; }
#process .process-plugin-cards { width: 100%; min-width: 0; max-width: 860px; margin-inline: auto; }
/* Process cards */
#hld-process .swiper-wrapper { counter-reset: process-card; }
#hld-process .wpcp-item {
  --process-card-radius: 18px;
  counter-increment: process-card;
}
#hld-process .wpcp-item-inner {
  border-radius: var(--process-card-radius);
  overflow: hidden;
}
#hld-process .wpcp-carousel-3d-wash { border-radius: var(--process-card-radius); }
#hld-process .wpcp-item-media {
  min-height: 230px;
  background: #edf1ed;
}
#hld-process .wpcp-item-placeholder,
#hld-process .wpcp-item-media::after { display: none; }
#hld-process .wpcp-item-content {
  z-index: 2;
  padding: clamp(14px, 3vw, 32px);
  color: var(--ink);
  background: transparent;
}
#hld-process .wpcp-item-content::before {
  content: counter(process-card, decimal-leading-zero) / "";
  display: block;
  margin-bottom: .8rem;
  color: var(--plum);
  font: 650 .78rem/1 var(--mono);
}
#hld-process .wpcp-item-title {
  margin-block-end: .38em;
  color: var(--ink);
  font: 680 clamp(1.25rem, 3vw, 2.15rem)/1.08 var(--display);
  letter-spacing: -.045em;
}
#hld-process .wpcp-item-desc { color: var(--quiet); font: 400 .94rem/1.42 var(--body); }
@media (prefers-reduced-motion: reduce) {
  #hld-process .wpcp-item, #hld-process .swiper-wrapper { transition-duration: 0ms !important; }
}


/* Match the plasma palette when the animated embed is unavailable. */
body.home,
.editor-styles-wrapper .hero-stage {
  --plasma-still:
    radial-gradient(ellipse at 18% 72%, #dee4de 8%, transparent 57%),
    radial-gradient(ellipse at 76% 18%, rgb(169 142 142 / 84%) 4%, transparent 69%),
    radial-gradient(ellipse at 86% 76%, rgb(160 20 119 / 20%) 0%, transparent 54%),
    radial-gradient(ellipse at 39% 51%, rgb(236 149 109 / 26%) 6%, transparent 69%),
    #dee4de;
}
body.home:not(:has(.homepage-gradient)) .hero-stage,
.editor-styles-wrapper .hero-stage {
  background: var(--plasma-still);
}
body.home:not(:has(.homepage-gradient)) .hero-stage::before,
.editor-styles-wrapper .hero-stage::before {
  inset: 0;
  background: rgb(70 70 73 / 4%);
  filter: none;
  opacity: 1;
  animation: none;
}

/* Keep the Gradient Lab artwork behind the homepage content. */
body.home .homepage-gradient-frame {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--plasma-still);
}
body.home .homepage-gradient {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 26px);
  height: calc(100% + 70px);
  border: 0;
  background: transparent;
  filter: blur(1.5px);
}
body.home:has(.homepage-gradient) .wp-site-blocks {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(235 239 235 / 14%) 0 76svh, rgb(235 239 235 / 84%) 128svh 100%);
}
body.home:has(.homepage-gradient) .hero-stage::before {
  inset: 0;
  background: rgb(70 70 73 / 4%);
  filter: none;
  opacity: 1;
  animation: none;
}


/* Packaging-inspired type over the original mesh. */
body.home .hero-copy .hero-label {
  color: var(--ink);
  letter-spacing: .09em;
}
body.home .hero-copy h1 {
  color: #27272a;
  font-weight: 850;
  line-height: .88;
}
body.home:has(.homepage-gradient) .hero-stage::before {
  background: radial-gradient(ellipse at 30% 52%, rgb(244 237 226 / 78%), rgb(244 237 226 / 46%) 43%, transparent 73%);
}
@media (max-width: 620px) {
  body.home:has(.homepage-gradient) .hero-stage::before {
    background: radial-gradient(ellipse at 40% 52%, rgb(244 237 226 / 84%), rgb(244 237 226 / 64%) 42%, transparent 78%);
  }
}

/* Snap homepage sections to the viewport, independently of the header. */
html:has(body.home) {
  --slide-top: var(--wp-admin--admin-bar--height, 0px);
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--slide-top);
}
body.home .site-header {
  position: fixed;
  inset-inline: 0;
}
body.home .hero-track,
body.home #main section[id]:not(.hero) {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
  min-height: calc(100svh - var(--slide-top));
}
body.home .hero-stage { min-height: calc(100svh - var(--slide-top)); }
body.home #main section[id]:not(.hero) {
  align-content: center;
  padding-block-start: max(var(--home-header-height, 90px), clamp(56px, 8vw, 118px));
}
body.home .wp-site-blocks > footer { scroll-snap-align: end; }
body.home #contact > .section { border-top: 0; }
body.home #contact { border-top: 1px solid var(--line); }
body.home #info .info-nav p:not(:has(a[href$="#faq"])) { display: none; }

#hld-process .wpcp-nav,
#hld-process .swiper-pagination,
#hld-process .wpcp-pagination { display: none; }
#hld-process { cursor: grab; }
#hld-process:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-snap-type: y proximity; }
}

/* Keep the enquiry fields compact inside the contact slide. */
#contact .enquiry-form { display: block; }
#contact .enquiry-form form { margin-top: clamp(16px, 3vw, 32px); }
#contact .enquiry-form textarea { min-height: 116px; height: 132px; resize: vertical; }
#contact .enquiry-form button[type="submit"] { min-height: 44px; border-radius: 0; }
