/* Memory — landing (premium static) */

:root {
  --ink: #0a1211;
  --ink-soft: #1a2e2c;
  --body: #3d524f;
  --muted: #6b7f7c;
  --fog: #e8f2ef;
  --mist: #f4faf8;
  --accent: #1a6b63;
  --accent-mid: #2a9d8f;
  --accent-light: #5ec4b8;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 4px 24px rgba(10, 40, 38, 0.06);
  --shadow-lift: 0 20px 50px -20px rgba(12, 50, 48, 0.18);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* —— Atmospheric background —— */
.memory-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.memory-canvas__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: memory-float 28s var(--ease-out) infinite;
}

.memory-canvas__glow--1 {
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(94, 196, 184, 0.35) 0%, transparent 70%);
}

.memory-canvas__glow--2 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 38%;
  right: -8%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.22) 0%, transparent 68%);
  animation-delay: -9s;
  animation-duration: 34s;
}

.memory-canvas__glow--3 {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  bottom: -5%;
  left: 22%;
  background: radial-gradient(circle, rgba(180, 220, 212, 0.5) 0%, transparent 65%);
  animation-delay: -14s;
  animation-duration: 31s;
}

@keyframes memory-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.03);
  }
  66% {
    transform: translate(-1.5%, -2%) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-canvas__glow {
    animation: none;
  }
}

.memory-canvas__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.memory-canvas__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 40%, rgba(244, 250, 248, 0.85) 100%);
}

/* —— Shell —— */
.memory-shell {
  position: relative;
  z-index: 1;
  max-width: min(56rem, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.35rem, 4.5vw, 2rem) clamp(4rem, 12vw, 6rem);
  text-align: center;
}

.memory-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* —— Hero —— */
.memory-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-mid);
  opacity: 0.85;
}

.memory-hero-title {
  font-size: clamp(2.75rem, 10vw, 4.25rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.memory-hero-title__line {
  display: block;
}

.memory-hero-title__line--accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-soft) 45%, var(--accent-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .memory-hero-title__line--accent {
    color: var(--ink);
    background: none;
  }
}

.memory-hero-lead {
  margin: 0 auto 2.25rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--body);
  text-wrap: balance;
}

/* —— Buttons —— */
.memory-hero .memory-btn {
  margin-left: auto;
  margin-right: auto;
}

.memory-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    #156a64 0%,
    #1f8a80 38%,
    #2ea89c 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 40px -12px rgba(21, 106, 100, 0.55),
    0 4px 14px -4px rgba(12, 60, 56, 0.35);
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease-out);
}

.memory-btn--large {
  padding: 1.05rem 2.25rem;
  font-size: 1rem;
}

.memory-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 42%,
    transparent 64%
  );
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}

.memory-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 18px 48px -14px rgba(21, 106, 100, 0.5),
    0 8px 20px -6px rgba(12, 60, 56, 0.3);
}

.memory-btn:hover .memory-btn__shine {
  transform: translateX(100%);
}

.memory-btn:active {
  transform: translateY(0);
  transition-duration: 0.12s;
}

.memory-btn:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 4px;
}

.memory-btn__label {
  position: relative;
  z-index: 1;
}

/* —— Sections —— */
.memory-section {
  margin-top: clamp(4rem, 14vw, 7rem);
}

.memory-section__head {
  margin-bottom: 1.5rem;
}

.memory-section__head--compact {
  margin-bottom: 1.25rem;
}

.memory-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-mid);
  opacity: 0.9;
}

.memory-eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.65);
}

.memory-section__title {
  margin: 0 auto;
  max-width: min(28rem, 100%);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.memory-prose {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.memory-prose p {
  margin: 0 0 1rem;
  color: var(--body);
}

.memory-prose p:last-child {
  margin-bottom: 0;
}

.memory-prose__emphasis {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.memory-techline {
  margin-top: 1.35rem !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* —— Step cards —— */
.memory-step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.memory-step-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.35rem;
  text-align: center;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.4s ease;
}

.memory-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(42, 157, 143, 0.08) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.memory-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(42, 157, 143, 0.25);
}

.memory-step-card__index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-mid);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.memory-step-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.memory-step-card__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .memory-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    align-items: stretch;
  }

  .memory-step-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .memory-step-card__text {
    flex: 1;
  }
}

/* —— Quote band —— */
.memory-quote {
  margin-top: clamp(3.5rem, 12vw, 6rem);
  margin-left: calc(-1 * clamp(0px, 2vw, 0.5rem));
  margin-right: calc(-1 * clamp(0px, 2vw, 0.5rem));
  padding: clamp(2.25rem, 7vw, 3.25rem) clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    #143d3a 0%,
    #1a5c54 42%,
    #1f6d66 100%
  );
  box-shadow:
    0 24px 60px -20px rgba(15, 60, 56, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.memory-quote::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(94, 196, 184, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.memory-quote .memory-eyebrow {
  margin-bottom: 1rem;
}

.memory-quote__body {
  margin: 0;
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
}

.memory-quote__line {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.memory-quote__line--large {
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
}

/* —— Trust —— */
.memory-trust-card {
  padding: 2rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 252, 251, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.memory-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.memory-trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  padding: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.memory-trust-list li:last-child {
  margin-bottom: 0;
}

.memory-trust-list__mark {
  position: static;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-light));
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

/* —— Final CTA —— */
.memory-cta {
  margin-top: clamp(3.5rem, 10vw, 5.5rem);
}

.memory-cta__inner {
  text-align: center;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(232, 242, 239, 0.65) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.memory-cta__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

/* —— Scroll reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.95s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.memory-hero[data-reveal] {
  transition-delay: 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
