/* ============================================================================
   Long-form pages (legal, craft, contact).
   NOTE: the inherited site CSS sets html{font-size:62.5%}, so 1rem = 10px here.
   Everything below is therefore stated in px to stay predictable, and every
   type size is set explicitly because the inherited scale (h4 = 50px) is built
   for full-bleed editorial headings, not for running text.
   ========================================================================== */
.page-title { padding: calc(var(--header-height) + 80px) var(--default-padding-h) 0; }
.page-title__inner { max-width: 760px; }
.page-title__kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 18px;
}
.page-title h2 { margin: 0 0 22px; line-height: 1.02; }
.page-title__standfirst { font-size: 19px; line-height: 1.55; max-width: 620px; margin: 0; }
.page-title__meta { margin: 26px 0 0; font-size: 13px; color: var(--color-muted); }

.prose { padding: 70px var(--default-padding-h) 100px; }
.prose-layout { display: grid; grid-template-columns: 210px minmax(0, 680px); gap: 64px; }

.prose-toc { position: sticky; top: calc(var(--header-height) + 20px); align-self: start; }
.prose-toc__label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 14px;
}
.prose-toc ol { list-style: none; margin: 0; padding: 0; }
.prose-toc li { margin-bottom: 8px; }
.prose-toc a {
  font-size: 14px; line-height: 1.35; color: var(--color-muted);
  text-decoration: none; display: block; transition: color var(--dur-fast) var(--ease);
}
.prose-toc a:hover, .prose-toc a:focus-visible { color: var(--color-black); }

.prose-section { padding-bottom: 40px; }
.prose-section + .prose-section { border-top: 1px solid var(--color-gray); padding-top: 40px; }
.prose-section h4 { font-size: 28px; line-height: 1.15; margin: 0 0 18px; color: var(--color-black); }
.prose-sub {
  font-size: 12px; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase;
  color: var(--color-black); margin: 28px 0 10px;
}
.prose-body p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.prose-body a { color: inherit; text-underline-offset: 3px; }
.prose-list { margin: 0 0 16px; padding-left: 18px; }
.prose-list li { font-size: 16px; line-height: 1.65; margin-bottom: 8px; }
.prose-list--num { list-style: decimal; }
.prose-note {
  font-size: 14px; line-height: 1.6; color: var(--color-muted);
  border-top: 1px solid var(--color-gray); padding-top: 14px; margin: 22px 0 0;
}
.prose-facts { margin: 0 0 18px; }
.prose-facts > div {
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-gray);
}
.prose-facts dt { font-size: 14px; line-height: 1.5; color: var(--color-muted); margin: 0; }
.prose-facts dd { font-size: 16px; line-height: 1.5; margin: 0; }

/* ---------- contact ------------------------------------------------------- */
.contact-panel { padding: 60px var(--default-padding-h) 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.contact-col__label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 16px; padding-bottom: 11px;
  border-bottom: 1px solid var(--color-gray);
}
.contact-col p { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.contact-col .prose-sub { margin: 24px 0 8px; }
.contact-col a { color: inherit; text-underline-offset: 3px; }
.contact-col .prose-facts > div { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }

/* ---------- enquiry form -------------------------------------------------- */
.enquiry { padding: 40px var(--default-padding-h) 110px; }
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; }
.enquiry-intro h4 { font-size: 40px; line-height: 1.05; margin: 0 0 16px; color: var(--color-black); }
.enquiry-intro p { font-size: 17px; line-height: 1.6; max-width: 380px; margin: 0; }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-content: start; }
.enquiry-field { display: flex; flex-direction: column; gap: 7px; }
.enquiry-field--wide, .enquiry-actions { grid-column: 1 / -1; }
.enquiry-field span {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted);
}
.enquiry-field input, .enquiry-field textarea {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-black);
  background: transparent; border: 0; border-bottom: 1px solid var(--color-black);
  padding: 8px 0; border-radius: 0; resize: vertical;
}
.enquiry-field input::placeholder, .enquiry-field textarea::placeholder { color: var(--color-muted); }
.enquiry-field input:focus-visible, .enquiry-field textarea:focus-visible {
  outline: none; border-bottom-width: 2px; padding-bottom: 7px;
}
.enquiry-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.enquiry-submit {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  padding: 16px 34px; border: 1px solid var(--color-black);
  background: var(--color-black); color: var(--color-white);
  cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.enquiry-submit:hover { background: var(--color-white); color: var(--color-black); }
.enquiry-submit:focus-visible { outline: 2px solid var(--color-black); outline-offset: 3px; }
.enquiry-consent { font-size: 13px; line-height: 1.55; color: var(--color-muted); max-width: 300px; margin: 0; }
.enquiry-form [data-clone-note] { grid-column: 1 / -1; font-size: 14px; }

@media (max-width: 1100px) {
  .prose-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prose-toc { position: static; }
  .enquiry-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}
@media (max-width: 768px) {
  .page-title { padding-top: calc(var(--header-h) + 56px); }
  .page-title h2 { font-size: 34px; }
  .contact-grid, .enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .prose-facts > div, .contact-col .prose-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .enquiry-intro h4 { font-size: 30px; }
}
/* ============================================================================
   Full-bleed images carry white copy. The stock photography is much lighter
   than the original site's, so every overlay gets a scrim: without it the
   nav, wordmark and banner copy drop under 4.5:1.
   ========================================================================== */
[class*="FullImage_fullImage__"] [class*="FullImage_image__"] { position: relative; }
[class*="FullImage_fullImage__"] [class*="FullImage_image__"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,.50) 0%, rgba(0,0,0,.16) 22%,
    rgba(0,0,0,.14) 52%, rgba(0,0,0,.58) 100%);
}
/* Centred copy sits mid-frame, where the vertical gradient is weakest. */
[class*="FullImage_fullImage__"]:has([class*="FullImage_centerin__"]) [class*="FullImage_image__"]::after {
  background:
    radial-gradient(58% 46% at 50% 46%, rgba(0,0,0,.52) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.42) 100%);
}
/* The hero wordmark is large but light-weight; give it its own pool of shade. */
.hero [class*="FullImage_image__"]::after {
  background:
    radial-gradient(46% 30% at 50% 47%, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.12) 20%,
                    rgba(0,0,0,.12) 50%, rgba(0,0,0,.60) 100%);
}

/* ============================================================================
   MINIMAL PASS
   The inherited card interaction cross-faded to a second photograph. That
   doubled the image weight for a decorative effect, so it is gone: hover is
   carried by the frame and the type instead. One motion, one direction.
   ========================================================================== */

/* --- product cards -------------------------------------------------------- */
[class*="ProductFeatured_image__"] { overflow: hidden; background: var(--color-lighter); }
[class*="ProductFeatured_image__"] img {
  transition: transform var(--dur-slow) var(--ease);
}
[class*="ProductFeatured_product__"] a:hover [class*="ProductFeatured_image__"] img,
[class*="ProductFeatured_product__"] a:focus-visible [class*="ProductFeatured_image__"] img {
  transform: scale(1.04);
}
[class*="ProductFeatured_info__"] { padding-top: 14px; }
[class*="ProductFeatured_info__"] p { font-size: 14px; line-height: 1.5; margin: 0; }
[class*="ProductFeatured_info__"] p:first-child {
  position: relative; display: inline-block;
  letter-spacing: .06em; margin-bottom: 3px;
}
/* the name underlines itself, left to right */
[class*="ProductFeatured_info__"] p:first-child::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1px; background: currentColor;
  transition: right var(--dur-mid) var(--ease);
}
[class*="ProductFeatured_product__"] a:hover [class*="ProductFeatured_info__"] p:first-child::after,
[class*="ProductFeatured_product__"] a:focus-visible [class*="ProductFeatured_info__"] p:first-child::after {
  right: 0;
}
[class*="ProductFeatured_info__"] p:nth-child(2),
[class*="ProductFeatured_info__"] p:last-child { color: var(--color-muted); }
/* contrast only ever goes up on hover */
[class*="ProductFeatured_product__"] a:hover [class*="ProductFeatured_info__"] p:last-child,
[class*="ProductFeatured_product__"] a:focus-visible [class*="ProductFeatured_info__"] p:last-child {
  color: var(--color-black);
}

/* --- editorial cards (stories / rails) share the same single motion ------- */
[class*="Standard_image__"] img,
[class*="ListMoreProjects_image__"] img {
  transition: transform var(--dur-slow) var(--ease);
}
[class*="Standard_project__"] a:hover [class*="Standard_image__"] img,
[class*="Standard_project__"] a:focus-visible [class*="Standard_image__"] img,
[class*="ListMoreProjects_project__"] a:hover [class*="ListMoreProjects_image__"] img,
[class*="ListMoreProjects_project__"] a:focus-visible [class*="ListMoreProjects_image__"] img {
  transform: scale(1.04);
}
[class*="ListMoreProjects_image__"] { overflow: hidden; }

/* The inherited rule reserved 9em under every story title, which left a hole
   in a shorter page. Enough to keep the two columns aligned, no more. */
[class*="Standard_project__"] [class*="Standard_title__"] h3 { min-height: 2.4em; }
[class*="Standard_project__"] [class*="Standard_title__"] { padding-top: 1em; padding-bottom: 1em; }

/* --- fewer decorative marks ---------------------------------------------- */
/* Filled accent chips were the loudest thing on the page. Pieces now say what
   they are in the info block instead, so the chip is not rendered at all. */
[class*="ProductFeatured_indication__"] { display: none; }

/* The grid separates cells with hairlines rather than gaps (--gutter: 0).
   Bleeding the photograph to the cell edge hides those rules and makes
   neighbouring images collide, so the image is inset inside its cell. */
[class*="ProductFeatured_product__"] > a { display: block; padding: 26px 26px 30px; }
[class*="ProductFeatured_info__"] { padding: 16px 0 0; }

/* A section title directly above the grid should not also carry the wrapper's
   16vh top margin — that opened ~140px of dead space between the two. */
[class*="Stories_title__"] + [class*="ListProducts_listProducts__"] { margin-top: 4vh; }
[class*="Stories_title__"] { padding-left: var(--margin); padding-right: var(--margin); }

/* ============================================================================
   ONE-PAGE LANDING
   ========================================================================== */
/* Anchor targets must clear the fixed header. */
section[id], div[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
@media (max-width: 1100px) { section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 12px); } }

/* Text block without the sticky contents list: three readable columns. */
.prose--wide { padding-top: 40px; }
.prose--wide .prose-head { max-width: 700px; margin: 0 0 56px; }
.prose--wide .prose-head h2 { margin: 0 0 20px; line-height: 1.02; }
.prose--wide .prose-head .page-title__standfirst { margin: 0; }
.prose--wide .prose-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.prose--wide .prose-body { display: contents; }
.prose--wide .prose-section,
.prose--wide .prose-section + .prose-section {
  border-top: 1px solid var(--color-black); padding: 18px 0 0;
}
.prose--wide .prose-section h4 { font-size: 21px; line-height: 1.2; margin: 0 0 12px; }
.prose--wide .prose-body p, .prose--wide .prose-list li { font-size: 15px; line-height: 1.62; }
.prose--wide .prose-note { margin-top: 16px; }

@media (max-width: 1100px) {
  .prose--wide .prose-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}
@media (max-width: 768px) {
  .prose--wide .prose-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* The inherited reset strips list markers site-wide; running text needs them
   back, otherwise a list reads as an accidentally indented paragraph. */
.prose-list { list-style: disc; }
.prose-list--num { list-style: decimal; }
.prose-list li::marker { color: var(--color-muted); }

/* ============================================================================
   MOTION
   Two moments only: the hero introduces itself once on load, and each block
   arrives as you reach it. Everything moves on one curve (--ease) and one of
   three durations; nothing loops, nothing follows the cursor.

   Safety rule: the hidden state lives behind .js-motion, and that class is
   added by JS *only* when the visitor has not asked for reduced motion. No
   JS, stale JS, or reduce-motion → every element is simply visible.

   Transform discipline: three elements in the inherited CSS are centred with
   transform (the hero wordmark and both banner copy blocks use
   translate(-50%,-50%)). Animating transform on those would tear them out of
   position, so they fade only. Everything else may translate.
   ========================================================================== */

/* --- hero: overlay only ---------------------------------------------------
   The photograph itself is never animated — it is the largest paint on the
   page and fading it would delay the one thing people came to see. */
.js-motion .hero [class*="FullImage_logo__"] { opacity: 0; }          /* centred by transform → fade only */
.js-motion .hero [class*="FullImage_bottomin__"] > p,
.js-motion .hero [class*="FullImage_bottomin__"] > h6,
.js-motion .hero [class*="FullImage_bottomin__"] > [class*="FullImage_button__"] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}
.js-motion.is-loaded .hero [class*="FullImage_logo__"] {
  opacity: 1;
  transition: opacity var(--dur-slow) var(--ease);
}
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > p,
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > h6,
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > [class*="FullImage_button__"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
/* a short stagger over four items — a sequence, not a queue */
.js-motion.is-loaded .hero [class*="FullImage_logo__"]                                    { transition-delay: 60ms; }
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > p                            { transition-delay: 200ms; }
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > h6                           { transition-delay: 260ms; }
.js-motion.is-loaded .hero [class*="FullImage_bottomin__"] > [class*="FullImage_button__"] { transition-delay: 320ms; }

/* --- blocks arriving on scroll -------------------------------------------- */
/* Sliding variant — for elements with no transform of their own. */
.js-motion [data-reveal]:not([data-reveal="fade"]) {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
.js-motion [data-reveal]:not([data-reveal="fade"]).is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
/* Fading variant — the motion layer never writes `transform` here at all, so
   the inherited translate(-50%,-50%) that centres these blocks survives. */
.js-motion [data-reveal="fade"] { opacity: 0; }
.js-motion [data-reveal="fade"].is-in {
  opacity: 1;
  transition: opacity var(--dur-slow) var(--ease);
}

/* Belt and braces: if the observer never runs, nothing stays invisible. */
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal],
  .js-motion .hero [class*="FullImage_logo__"],
  .js-motion .hero [class*="FullImage_bottomin__"] > * {
    opacity: 1 !important;
    transition: none !important;
  }
  /* Reset transform ONLY where the motion layer set one. The hero wordmark
     and the banner copy are centred with translate(-50%,-50%) by the
     inherited CSS — clearing it here would knock them out of position if the
     visitor turns reduced motion on after the page has loaded. */
  .js-motion [data-reveal]:not([data-reveal="fade"]),
  .js-motion .hero [class*="FullImage_bottomin__"] > * {
    transform: none !important;
  }
}
