/* Ink and Sand, in the style of the Blush Society website: white and warm sand, near black, Playfair Display with Jost,
   small uppercase labels, pill buttons, thin bordered cards and one dark band.
   Every colour and both fonts come from the planner's branding (--we-*) with this template's own values as fallback. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/playfair-display-normal-400-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../assets/fonts/playfair-display-italic-400-500.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../assets/fonts/jost-normal-400.woff2') format('woff2'); }

:root {
  --paper: var(--we-background, #ffffff);
  --ink: var(--we-text, #222222);
  --primary: var(--we-primary, #111111);
  --accent: var(--we-accent, #bcae9b);
  --line: color-mix(in srgb, var(--ink) 9%, var(--paper));
  --sand: color-mix(in srgb, var(--accent) 38%, var(--paper));
  --surface: color-mix(in srgb, var(--ink) 2%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --label: color-mix(in srgb, var(--accent) 80%, var(--ink));
  --head: var(--we-font-heading, 'Playfair Display', Georgia, serif);
  --body: var(--we-font-body, 'Jost', system-ui, sans-serif);
  --page: min(1180px, 100% - 48px);
  --pad: max(24px, calc((100% - 1180px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo { height: 48px; width: auto; max-width: 168px; object-fit: contain; }
.brand-name { font-family: var(--head); font-style: italic; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.menu { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover { border-color: var(--accent); }
.menu a.enquire { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-size: 11px; font-weight: 600; letter-spacing: .1em; transition: opacity .2s; }
.menu a.enquire:hover { opacity: .82; }

/* Hero: full width photo under a soft veil, centred white text */
.hero { position: relative; min-height: min(90vh, 820px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #2a2a2a; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.52)); z-index: -1; }
.hero-inner { width: min(860px, 100% - 48px); padding: 96px 0; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 26px; opacity: .92; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -.005em; margin-bottom: 26px; overflow-wrap: anywhere; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.lede { max-width: 38em; margin: 0 auto 38px; }
.lede p:first-child { font-family: var(--head); font-style: italic; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; opacity: .96; }
.lede p + p { font-size: 16px; line-height: 1.7; opacity: .86; margin-top: 18px; }
.lede p:last-child { margin-bottom: 0; }

/* Pill buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--primary); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 1px solid var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: opacity .2s, background .2s, color .2s; }
.pill:hover { opacity: .85; }
.pill.light { background: #fff; color: #111; border-color: #fff; }
.pill.line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); letter-spacing: .04em; text-transform: none; font-size: 15px; font-weight: 400; }
.pill.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }

/* Bands */
.band { padding: 112px var(--pad); }
.band.sand { background: var(--sand); }
.band.surface { background: var(--surface); }
.band.white { background: var(--paper); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.head.left { align-items: flex-start; text-align: left; margin-bottom: 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.head h2 { font-size: clamp(34px, 4.6vw, 52px); }
.intro { max-width: 38em; font-size: 18px; color: var(--muted); text-align: center; margin: -24px auto 56px; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.features { grid-template-columns: repeat(6, 1fr); }
.cards.features .card { grid-column: span 2; }
.cards.features .card:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.cards.features .card:last-child:nth-child(3n+2) { grid-column: span 2; }
.cards.features .card:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 40px 28px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.card h3 { font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.card.step { counter-increment: step; }
.cards { counter-reset: step; }
.card .num::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--head); font-style: italic; font-size: 44px; line-height: 1; color: var(--label); margin-bottom: 18px; }
.card .num::after { content: ''; display: block; width: 36px; height: 1px; background: var(--line); margin: 0 auto 20px; }
.features .card h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); width: 100%; max-width: 160px; line-height: 1.5; }
.icon { display: block; width: 34px; height: 34px; color: var(--label); margin-bottom: 20px; }
.icon svg { width: 34px; height: 34px; stroke-width: 1.2; }

/* Designs */
.designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 32px; }
.design { text-align: center; }
.design-link { display: block; text-decoration: none; }
.design-photo { display: block; position: relative; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.design-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.design-link:hover img { transform: scale(1.04); }
.ribbon { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.design-name { display: block; font-family: var(--head); font-size: 28px; margin: 22px 0 6px; }
.design-text { color: var(--muted); font-size: 15px; margin: 0 auto 14px; max-width: 26em; }
.more { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* Dark band: heading left, process columns right, large ghost numerals */
.band.dark { background: var(--primary); color: #fff; padding-top: 88px; padding-bottom: 88px; }
.dark .label { color: color-mix(in srgb, var(--accent) 100%, #fff 0%); }
.dark-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.dark .head h2 { font-size: clamp(32px, 4vw, 46px); }
.dark .head { align-items: center; text-align: center; }
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.process li { counter-increment: step; position: relative; padding-top: 6px; isolation: isolate; }
.process .num::before { content: counter(step, decimal-leading-zero); position: absolute; right: -4px; top: 18px; z-index: -1; font-family: var(--head); font-style: italic; font-size: 110px; line-height: 1; color: rgba(255,255,255,.07); }
.process h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.22); line-height: 1.5; }
.process p { color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.7; margin: 0; }

/* Help */
.help .head { margin-bottom: 36px; }
.help-body { max-width: 680px; margin: 0 auto; text-align: center; }
.help-message { font-family: var(--head); font-style: italic; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; margin-bottom: 18px; }
.help-number { color: var(--muted); font-size: 15px; margin: -14px 0 26px; }
.help-name { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 30px; }
.help-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

.foot { text-align: center; padding: 56px 24px 64px; color: var(--muted); font-family: var(--head); font-style: italic; font-size: 22px; border-top: 1px solid var(--line); }

/* Reveal: content is visible without JavaScript; the .js class is added in the head. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .cards.features .card, .cards.features .card:nth-last-child(2):nth-child(3n+1), .cards.features .card:last-child:nth-child(3n+1), .cards.features .card:last-child:nth-child(3n+2) { grid-column: auto !important; }
  .menu a:not(.enquire) { display: none; }
  .band { padding: 72px var(--pad); }
  .band.dark { padding-top: 64px; padding-bottom: 64px; }
  .cards.three, .designs { grid-template-columns: repeat(2, 1fr); }
  .designs { gap: 44px 24px; }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .head { margin-bottom: 40px; }
  .intro { margin-top: -16px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .cards.four, .cards.three, .designs { grid-template-columns: 1fr; }
  .process .num::before { font-size: 70px; top: 28px; }
  .brand-name { max-width: 46vw; font-size: 19px; }
  .hero-inner { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .design-photo img { transition: none; }
}

/* Motion: light and slow. Only transform and opacity move; everything stops for visitors who ask for reduced motion. */
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: drift 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > :nth-child(1) { animation-delay: .15s; }
  .hero-inner > :nth-child(2) { animation-delay: .3s; }
  .hero-inner > :nth-child(3) { animation-delay: .45s; }
  .hero-inner > :nth-child(4) { animation-delay: .6s; }
  .js .card.reveal, .card { transition: opacity .7s ease, transform .7s ease, translate .35s ease, box-shadow .35s ease; }
  .card:hover { translate: 0 -5px; box-shadow: 0 14px 30px rgba(0, 0, 0, .1); }
  .pill span { display: inline-block; transition: translate .25s ease; }
  .pill:hover span { translate: 4px 0; }
  .icon { transition: translate .35s ease; }
  .card:hover .icon { translate: 0 -3px; }
}
