/* ==========================================================================
   SilaGreen Guard Corsos — styles
   ========================================================================== */

:root {
  --night: #10191D;
  --night-2: #0B1215;
  --night-3: #16232A;
  --navy: #354D75;
  --teal: #175552;
  --turq: #3BA6A6;
  --turq-light: #5CC2C0;      /* used for small turquoise text on dark: AA safe */
  --paper: #F3F0E8;
  --paper-2: #EAE6DB;
  --stone: #D3D0C6;
  --ink: #10191D;
  --ink-soft: #46524F;        /* body on paper: 7.4:1 */
  --stone-dim: #A9AFA9;       /* secondary on night: 8:1 */

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1440px;
  --section-y: clamp(88px, 12vw, 176px);
  --header-h: clamp(64px, 7vw, 84px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; text-decoration: none;
  font-weight: 600; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--turq-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--turq-light);
}
.eyebrow .rule { display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .6; }

.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  line-height: .98; letter-spacing: -.012em; text-transform: uppercase;
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.8rem, 1.2rem + 5.6vw, 6.6rem); }
.display em, .hero-title em { font-style: italic; text-transform: none; letter-spacing: 0; }

.lede { max-width: 56ch; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); color: var(--stone-dim); }

/* --------------------------------------------------------------------------
   Buttons / links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--turq); color: var(--night); }
.btn-primary:hover { background: var(--paper); }
.btn-lg { min-height: 60px; padding: 0 38px; font-size: 13px; }
.btn .wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; position: relative;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 1.6em; bottom: 10px; height: 1px;
  background: currentColor; transform-origin: left; transform: scaleX(.35); opacity: .7;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); opacity: 1; }
.link-arrow span { transition: transform 240ms var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(243, 240, 232, .28); cursor: pointer; border-radius: 50%;
  transition: background-color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn:hover:not(:disabled) { background: var(--turq); border-color: var(--turq); color: var(--night); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* --------------------------------------------------------------------------
   Placeholder tags (preview mode only)
   -------------------------------------------------------------------------- */
.ph {
  display: inline-block; padding: .1em .55em; border: 1px dashed currentColor; opacity: .62;
  font-family: var(--sans); font-style: normal; font-size: .72em; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; vertical-align: middle;
}
.media-tag {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  padding: 4px 9px; background: rgba(16, 25, 29, .72); color: var(--stone);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  backdrop-filter: blur(6px); pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.site-header.is-scrolled { background: rgba(16, 25, 29, .94); box-shadow: 0 1px 0 rgba(211, 208, 198, .1); backdrop-filter: blur(10px); }
.header-inner {
  max-width: var(--max); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
}
.brand { display: block; flex: none; margin-right: auto; text-decoration: none; }
/* The logo's navy needs a light ground to stay legible: a crisp paper plate. */
.brand-plate {
  display: block; background: var(--paper); padding: 9px 14px;
  transition: padding 320ms var(--ease);
}
.brand-plate img { width: clamp(132px, 10vw + 80px, 214px); height: auto; }
.nav-list { display: none; gap: clamp(24px, 3vw, 44px); }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); position: relative;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--turq-light);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.header-enquire {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(92, 194, 192, .55); color: var(--paper); text-decoration: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.header-enquire:hover { background: var(--turq); border-color: var(--turq); color: var(--night); }
.header-enquire .wa-icon { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; margin-right: -10px;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: var(--paper); position: relative;
  transition: transform 240ms var(--ease), background-color 240ms;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: var(--night); border-top: 1px solid rgba(211, 208, 198, .12); padding: 8px var(--gutter) 24px; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(211, 208, 198, .1);
  font-family: var(--serif); font-size: 1.75rem; text-decoration: none;
}

@media (max-width: 420px) { .header-enquire span { display: none; } .header-enquire { padding: 0 12px; } }
@media (min-width: 900px) {
  .nav-list { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   01 · Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(96px, 12vh, 140px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--night-3); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%;
  transform: scale(1.04); transition: transform 2400ms var(--ease);
  filter: saturate(.78) contrast(1.04) brightness(.9);
}
.is-loaded .hero-media img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,25,29,.62) 0%, rgba(16,25,29,0) 26%),
    linear-gradient(0deg, rgba(16,25,29,.96) 0%, rgba(16,25,29,.55) 42%, rgba(16,25,29,.08) 72%),
    linear-gradient(180deg, rgba(23,85,82,.12), rgba(53,77,117,.12));
}
.hero-content { position: relative; }
.hero-title {
  margin: 22px 0 22px; font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.9rem, 1.1rem + 7.4vw, 8rem); line-height: .92; letter-spacing: -.015em;
}
.hero-title span { display: block; }
.hero-title em { color: var(--paper); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; color: var(--paper); max-width: 34ch; }
.hero-copy { margin-top: 12px; max-width: 46ch; color: var(--stone); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 32px; }

@media (max-width: 640px) {
  /* Lift the photo so the dog's head sits above the copy block. */
  .hero-media img { height: calc(100% + 10vh); margin-top: -10vh; object-position: 50% 0%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16,25,29,.55) 0%, rgba(16,25,29,0) 18%),
      linear-gradient(0deg, rgba(16,25,29,.97) 0%, rgba(16,25,29,.82) 48%, rgba(16,25,29,.2) 66%, rgba(16,25,29,0) 78%);
  }
  .hero { padding-bottom: 72px; }
  .hero-title { margin: 16px 0; }
  .hero-actions { margin-top: 24px; }
}
@media (min-width: 1025px) {
  .hero { align-items: center; padding-bottom: 96px; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16,25,29,.94) 0%, rgba(16,25,29,.78) 30%, rgba(16,25,29,.25) 56%, rgba(16,25,29,0) 74%),
      linear-gradient(0deg, rgba(16,25,29,.85) 0%, rgba(16,25,29,0) 34%),
      linear-gradient(180deg, rgba(16,25,29,.55) 0%, rgba(16,25,29,0) 22%);
  }
  /* Widen the photo and anchor it left so the dog sits in the right ~55%. */
  .hero-media img { width: 122%; max-width: none; object-position: 0% 50%; }
  .hero-content > * { max-width: 44%; }
  .hero-title { font-size: clamp(3.4rem, 1rem + 5.4vw, 6.75rem); }
  .hero-content > .hero-title { max-width: 58%; }
  .hero-title span { white-space: nowrap; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--stone);
}
.scroll-cue i { display: block; width: 1px; height: 46px; background: rgba(211, 208, 198, .25); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--turq-light);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
@media (min-width: 768px) and (min-height: 700px) { .scroll-cue { display: flex; } }
.hero-tag { right: var(--gutter); bottom: 22px; }

/* Hero line reveal */
.js .hero-line { opacity: 0; transform: translateY(16px); }
.is-loaded .hero-line {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(120ms + var(--i) * 110ms);
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--split { align-items: end; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

/* --------------------------------------------------------------------------
   02 · Bloodline (light)
   -------------------------------------------------------------------------- */
.bloodline { background: var(--paper); color: var(--ink); padding-block: var(--section-y); }
.bloodline .eyebrow { color: var(--teal); }
.bloodline .lede { color: var(--ink-soft); }
.bloodline .display em { color: var(--teal); }
.bloodline :focus-visible { outline-color: var(--teal); }

.parents { display: grid; gap: clamp(64px, 9vw, 120px); }
.parents-connector { display: none; }
.parent-photo { position: relative; overflow: hidden; background: var(--paper-2); }
.parent-photo .frame { aspect-ratio: 3 / 4; overflow: hidden; }
.parent-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transition: transform 900ms var(--ease);
}
@media (hover: hover) { .parent:hover .parent-photo img { transform: scale(1.025); } }
.parent-body { padding-top: 26px; display: grid; gap: 10px; max-width: 46ch; }
.parent-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 12px;
}
.parent-label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.parent-name { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); line-height: 1; }
.parent-meta { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.parent-bio { color: var(--ink-soft); }
.parent-link { justify-self: start; color: var(--teal); }

@media (min-width: 768px) {
  .parents { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; position: relative; }
  .parent--dam { margin-top: clamp(64px, 9vw, 140px); }
  .parents-connector {
    display: block; position: absolute; left: 50%; top: 18%; height: 58%; width: 1px; transform: translateX(-50%);
  }
  .parents-connector span {
    display: block; width: 1px; height: 100%; background: linear-gradient(var(--stone), var(--teal), var(--stone));
    transform-origin: top; transform: scaleY(0); transition: transform 1200ms var(--ease) 300ms;
  }
  .parents.is-in .parents-connector span, .no-motion .parents-connector span { transform: scaleY(1); }
}
@media (min-width: 1200px) {
  .parents { grid-template-columns: 1fr 1fr; padding-inline: 4%; column-gap: 8%; }
}

.pedigree { margin-top: clamp(72px, 9vw, 128px); position: relative; padding-top: 34px; }
.pedigree-line {
  position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink);
  opacity: .22; transform-origin: left; transform: scaleX(0); transition: transform 1100ms var(--ease);
}
.pedigree.is-in .pedigree-line, .no-motion .pedigree-line { transform: scaleX(1); }
.pedigree-list { display: grid; gap: 26px; }
.pedigree-list dt { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.pedigree-list dd { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.25; color: var(--ink); }
.pedigree-list dd .ph { font-size: 11px; }
.parent-name .ph { font-size: .5em; letter-spacing: .1em; }
@media (min-width: 768px) { .pedigree-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* --------------------------------------------------------------------------
   03 · Litter (dark)
   -------------------------------------------------------------------------- */
.litter { background: var(--night); padding-block: var(--section-y); position: relative; }
.litter .display em { color: var(--turq-light); }
.litter-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.2; margin-bottom: 12px; }
.section-head-aside { display: grid; }

.film { position: relative; }
.film-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: var(--night-3); cursor: pointer; overflow: hidden;
}
.film-poster img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.82); transition: transform 1200ms var(--ease), filter 600ms var(--ease); }
.film-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,25,29,.7), rgba(16,25,29,0) 45%); }
@media (hover: hover) {
  .film-poster:hover img { transform: scale(1.03); filter: saturate(.85) brightness(.9); }
  .film-poster:hover .film-play { transform: translate(-50%, -50%) scale(1.06); background: var(--turq); border-color: var(--turq); color: var(--night); }
}
.film-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(68px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper);
  border: 1px solid rgba(243, 240, 232, .7); background: rgba(16, 25, 29, .25); backdrop-filter: blur(4px);
  transition: transform 280ms var(--ease), background-color 280ms var(--ease), border-color 280ms, color 280ms;
}
.film-play svg { width: 30%; fill: currentColor; margin-left: 6%; }
.film-label {
  position: absolute; z-index: 2; left: clamp(16px, 3vw, 32px); bottom: clamp(14px, 2.6vw, 28px);
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.film-note { margin-top: 14px; font-size: 14px; color: var(--stone-dim); }
.film .media-tag { top: 12px; bottom: auto; }

/* Carousel */
.gallery { margin-top: clamp(40px, 6vw, 72px); }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery-track:focus-visible { outline-offset: -2px; }
@media (min-width: 640px) { .gallery-track { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .gallery-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * 22px) / 3.0); } }
@media (min-width: 1440px) { .gallery-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 3 * 22px) / 3.4); } }

.slide { scroll-snap-align: start; position: relative; overflow: hidden; background: var(--night-3); margin: 0; }
.slide img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.82);
  -webkit-user-drag: none; user-select: none; transition: transform 900ms var(--ease);
}
@media (hover: hover) { .slide:hover img { transform: scale(1.025); } }
.slide figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 10.5px; letter-spacing: .2em; font-weight: 600; color: var(--stone); text-transform: uppercase; }
.slide .media-tag { top: 12px; bottom: auto; }

.gallery-controls { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.gallery-progress { flex: 1; height: 1px; background: rgba(211, 208, 198, .2); position: relative; overflow: hidden; }
.gallery-progress span { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--turq-light); transition: transform 200ms linear, width 200ms; }
.gallery-count { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--stone-dim); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.gallery-buttons { display: flex; gap: 10px; }

.litter-foot {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid rgba(211, 208, 198, .16);
  display: grid; gap: 32px; align-items: end;
}
.litter-meta { display: grid; gap: 20px; }
.litter-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--turq-light); margin-bottom: 4px; }
.litter-meta dd { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); line-height: 1.2; }
.litter-meta dd .ph { font-size: 11px; color: var(--stone); }
.litter-foot .btn { justify-self: start; }
@media (min-width: 640px) { .litter-meta { grid-template-columns: repeat(3, auto); gap: clamp(24px, 4vw, 64px); justify-content: start; } }
@media (min-width: 1024px) { .litter-foot { grid-template-columns: 1fr auto; } }

/* --------------------------------------------------------------------------
   04 · Contact
   -------------------------------------------------------------------------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden; background: var(--night-2);
  min-height: min(92vh, 900px); display: flex; align-items: center;
  padding-block: clamp(120px, 16vw, 200px);
}
.contact-media { position: absolute; inset: 0; z-index: -2; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: saturate(.7) brightness(.7) contrast(1.05); }
.contact-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(11,18,21,.97) 0%, rgba(11,18,21,.82) 45%, rgba(11,18,21,.35) 100%),
    linear-gradient(180deg, rgba(23,85,82,.18), rgba(11,18,21,0));
}
.contact-inner { display: grid; gap: 26px; justify-items: start; }
.contact-inner .display em { color: var(--turq-light); }
.contact-inner .lede { color: var(--stone); }
.contact-inner .btn { margin-top: 12px; }
.wa-pending { font-size: 13px; color: var(--stone-dim); }
.contact-tag { right: var(--gutter); bottom: 18px; }
@media (min-width: 1024px) {
  .contact-media { left: 38%; }
  .contact-shade {
    background:
      linear-gradient(90deg, var(--night-2) 34%, rgba(11,18,21,.75) 50%, rgba(11,18,21,.1) 78%),
      linear-gradient(0deg, rgba(11,18,21,.7), rgba(11,18,21,0) 40%);
  }
  .contact-inner > * { max-width: 680px; }
}

/* --------------------------------------------------------------------------
   Footer (paper, so the logo keeps its true colours)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--paper); color: var(--ink); padding-block: 44px; }
.footer-inner { display: grid; gap: 18px; align-items: center; }
.footer-brand img { width: 190px; }
.footer-place { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-social:empty { display: none; }
.footer-social a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-social a:hover { color: var(--teal); }
.footer-legal { font-size: 13px; color: var(--ink-soft); }
.site-footer :focus-visible { outline-color: var(--teal); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto auto 1fr auto; gap: 40px; }
  .footer-social { justify-content: flex-end; }
  .footer-social:empty + .footer-legal { grid-column: 4; }
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 12px);
  max-width: calc(100% - 32px); width: max-content;
  background: var(--paper); color: var(--ink); padding: 14px 20px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); opacity: 0; transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Scroll reveals (one-time)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 767px) { .js .reveal { transform: translateY(10px); transition-duration: 500ms; } }

/* --------------------------------------------------------------------------
   Reduced motion: no movement, everything visible immediately
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-line { opacity: 1 !important; transform: none !important; }
  .hero-media img { transform: none !important; }
  .parents-connector span, .pedigree-line { transform: none !important; }
}
