:root {
  color-scheme: light;
  --tear-height: 48px;
  /* Backgrounds - soft warm cream */
  --color-parchment: #f9f6f2;
  --color-parchment-warm: #f5f0e8;
  --color-cream: #fffcf9;

  /* Soft palette - dreamlike warmth */
  --color-verde: #8fa686;
  --color-rosso: #c8897f;
  --color-rosso-text: #8f4f44; /* AA contrast on cream cards */
  --color-ochre: #e2c9a8;
  --color-azure: #b8c9d4;

  /* Text colors - softer contrast */
  --color-ink: #4a4540;
  --color-ink-mid: #635c54;

  /* Borders/Shadows - barely there */
  --color-border: #e8e0d6;

  /* Typography */
  --font-display: "Cormorant", Georgia, serif;
  --font-script: "Cormorant", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  /* Spacing - fluid */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 4vw, 3rem);
  --space-lg: clamp(3rem, 6vw, 6rem);
  --space-xl: clamp(4rem, 10vw, 10rem);

  /* Text sizes - fluid */
  --text-base: clamp(1.1rem, 1.2vw, 1.4rem);
  --text-sm: clamp(0.95rem, 1vw, 1.2rem);
  --text-lg: clamp(1.25rem, 1.5vw, 1.6rem);

  /* Heading scale - fluid, one token per visual weight.
     Pick by how loud the heading should read, not by HTML tag. */
  --heading-hero-first: clamp(3rem, 10vw, 8rem); /* hero logotype, first line */
  --heading-hero-last: clamp(5rem, 14vw, 13rem); /* hero logotype, second line */
  --heading-xl: clamp(2.6rem, 6.5vw, 8rem); /* section statements */
  --heading-lg: clamp(2.4rem, 4.5vw, 6rem); /* secondary statements */
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-ink-mid);
  background: var(--color-parchment);
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.nav {
  position: static;
  z-index: 100;
  width: 100%;
}

.nav-inner {
  max-width: 1400px;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  width: fit-content;
  padding: 0 1.4rem;
  border-radius: 18px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 3vw, 3rem);
  background: radial-gradient(
    ellipse at 30% 0%,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.45) 80%,
    rgba(255, 255, 255, 0.35) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 8px rgba(120, 100, 80, 0.06);
}

.nav-link {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.3em 0.6em;
  transition: opacity 0.2s;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  border-radius: 12px 10px;
}

.nav-link:nth-of-type(2n) {
  border-radius: 10px 12px;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-link-accent {
  font-weight: 500;
}

.nav-link:focus-visible,
.contact-btn:focus-visible,
.materials-telegram-link:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

/* Hero Section */
.hero {
  /* min-height: 100svh; */
  padding: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2a2520;
  background-image: url("assets/landscape-cropped.avif");
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--color-ink) 0.8px, transparent 0.8px);
  background-size: 6px 6px;
  opacity: 0.06;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--color-ink) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.05;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: clamp(1rem, 10vw, 8rem);
}

.hero-title {
  font-weight: inherit;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero-name-first {
  font-family: "Angst", var(--font-display);
  font-size: var(--heading-hero-first);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 0 30px rgba(255, 255, 255, 0.3);
  /* margin-right: 1vw; */
}

.hero-name-last {
  font-family: "Angst", var(--font-display);
  font-size: var(--heading-hero-last);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 0.85;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 255, 255, 0.25);
  margin-left: clamp(0px, 4vw, 56px);
}

.hero-role {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: clamp(0.4rem, 4vw, 2rem);
  padding: 0.2em 0.8em;
  background: rgba(245, 240, 232, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(120, 100, 80, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: block;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}

.hero-role::after {
  border-radius: 24px;
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper.png");
  background-repeat: repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Flip Postcard - bridges hero and about */
.flip-postcard-front,
.flip-postcard-back {
  width: clamp(280px, 80vw, 900px);
  margin: 0 auto;
  border-radius: 0;
}

.flip-postcard-front {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 2;
  margin-top: clamp(1rem, 7vw, 8rem);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(80, 60, 40, 0.8);
}

.flip-postcard-back::after,
.flip-postcard-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper.png");
  background-repeat: repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.flip-postcard-back::after {
  opacity: 0.3;
}

.flip-postcard-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(0.95);
}

.flip-postcard-stack {
  position: relative;
  width: clamp(280px, 80vw, 900px);
  margin-block: 30px;
  margin-inline: auto;
}

.flip-postcard-under {
  position: absolute;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(80, 60, 40, 0.15);
  z-index: 0;
  filter: saturate(0.85) contrast(0.95);
}

.flip-postcard-under-left {
  top: 15px;
  left: -60px;
  transform: rotate(-3deg);
  transform-origin: center center;
}

.flip-postcard-under-right {
  top: 40px;
  right: -38px;
  transform: rotate(7deg);
  transform-origin: center center;
}

.flip-postcard-back {
  min-height: calc(clamp(280px, 80vw, 900px) / (3 / 2)); /* Maintains 3:2 ratio */
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  padding-bottom: clamp(2rem, 8vw, 8rem);
  background: linear-gradient(170deg, #fff1e0 0%, #ede1c9 100%);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(80, 60, 40, 0.3);
}

.flip-postcard-greeting {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--color-ink);
  /* background-image: url("assets/hi.png"); */
  /* background-size: contain; */
  /* background-repeat: no-repeat; */
  /* color: transparent; */
  /* width: 250px; */
  /* height: 100px; */
  margin: 0;
  /* opacity: 0.6; */
}

.flip-postcard-message {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  /* font-style: italic; */
  color: var(--color-ink-mid);
  line-height: 1.2;
  margin: 0;
}

/* Materials Section - scattered lesson screenshots */
.materials {
  width: 100%;
  margin: 0 auto;
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: visible;
}

.materials::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgb(184, 122, 112, 0.4) 0%,
    rgb(235, 215, 188, 0.4) 25%,
    rgba(237, 221, 83, 0) 60%
  );
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.materials-title {
  font-family: var(--font-display);
  font-size: var(--heading-xl);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-ink);
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.materials-textbooks {
  margin-top: clamp(3rem, 6vw, 8rem);
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 6rem);
}

.materials-textbooks img {
  display: block;
  width: clamp(8rem, 25vw, 20rem);
  height: auto;
}

.textbook-cover {
  position: relative;
  flex-shrink: 0;
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    /* stacked page edges, peeking out on the right */
    2px 1px 0 -1px var(--color-cream),
    2px 1px 0 0 var(--color-border),
    4px 2px 0 -1px var(--color-cream),
    4px 2px 0 0 var(--color-border),
    6px 3px 0 -1px var(--color-cream),
    6px 3px 0 0 var(--color-border),
    8px 4px 0 -1px var(--color-cream),
    8px 4px 0 0 var(--color-border),
    10px 5px 0 -1px var(--color-cream),
    10px 5px 0 0 var(--color-border),
    12px 6px 0 -1px var(--color-cream),
    12px 6px 0 0 var(--color-border),
    14px 7px 0 -1px var(--color-cream),
    14px 7px 0 0 var(--color-border),
    /* soft ambient shadow the book casts on the page */ 10px 14px 24px rgba(80, 60, 40, 0.22);
}

.textbook-cover:nth-child(even) {
  transform: rotate(1.2deg);
}

.textbook-cover:nth-child(odd) {
  transform: rotate(-1deg);
}

.textbook-cover img {
  position: relative;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 3px 0 6px rgba(0, 0, 0, 0.15);
}

.textbook-cover::before {
  /* hardcover spine along the left edge */
  content: "";
  position: absolute;
  top: 2%;
  bottom: 2%;
  left: 0;
  width: 10px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.12) 40%, transparent);
  z-index: 1;
}

.textbook-cover::after {
  /* glossy highlight across the cover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 18%,
    rgba(0, 0, 0, 0) 82%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.materials-subtitle {
  font-family: var(--font-display);
  margin-top: clamp(3rem, 8vw, 8rem);
  font-size: var(--heading-lg);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-ink);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.materials-scatter {
  margin-top: var(--space-xl);
  position: relative;
  margin-left: auto;
  margin-right: auto;
  height: clamp(500px, 55vw, 900px);
  z-index: 1;
  max-width: 1600px;
}

.materials-photo {
  width: clamp(300px, 32vw, 650px);
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 4px 16px rgba(80, 60, 40, 0.2),
    0 1px 3px rgba(80, 60, 40, 0.15);
  position: absolute;
  filter: saturate(0.9) contrast(0.95);
  transition: box-shadow 0.6s ease;
}

.materials-photo:hover {
  box-shadow: 0 6px 60px rgba(180, 143, 57, 0.4);
}

.materials-photo:nth-child(1) {
  top: 0%;
  left: 5%;
  transform: rotate(-6deg);
  z-index: 1;
}

.materials-photo:nth-child(2) {
  top: -2%;
  right: 5%;
  transform: rotate(4.5deg);
  z-index: 3;
}

.materials-photo:nth-child(3) {
  top: 50%;
  left: 17%;
  transform: rotate(-26deg);
  z-index: 2;
}

.materials-photo:nth-child(4) {
  top: 42%;
  right: 12%;
  transform: rotate(-4deg);
  z-index: 4;
}

.materials-photo:nth-child(5) {
  top: -2%;
  left: 47%;
  transform: translateX(-50%) rotate(13deg);
  z-index: 5;
}

.materials-photo:nth-child(6) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
  z-index: 6;
}

.materials-telegram-link {
  color: inherit;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.1em;
}

.materials-telegram-title {
  font-family: var(--font-display);
  font-size: var(--heading-xl);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-ink);
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
  margin-top: var(--space-md);
  padding-inline: var(--space-md);
}

/* Materials telegram strip - full-bleed scattered channel posts */
.materials-telegram {
  align-self: stretch;
  margin-top: var(--space-lg);
  margin-inline: calc(-1 * var(--about-gutter));
  column-count: 8;
  column-gap: 0;
  position: relative;
  z-index: 0;
}

.materials-telegram-photo {
  display: block;
  width: 100%;
  height: auto;
  break-inside: avoid;
  box-shadow: 0 2px 10px rgba(80, 60, 40, 0.18);
  filter: saturate(0.85) contrast(0.92);
  position: relative;
  margin-bottom: -4%;
  transform: scale(1.05) rotate(var(--tg-rotate, 0deg)) translate(var(--tg-x, 0), var(--tg-y, 0));
}

.materials-telegram-photo:nth-child(7n + 1) {
  --tg-rotate: -3deg;
  --tg-x: -2%;
  --tg-y: 1%;
  z-index: 2;
}

.materials-telegram-photo:nth-child(7n + 2) {
  --tg-rotate: 2deg;
  --tg-x: 1%;
  --tg-y: -3%;
  z-index: 1;
}

.materials-telegram-photo:nth-child(7n + 3) {
  --tg-rotate: -6deg;
  --tg-x: 2%;
  --tg-y: 2%;
  z-index: 3;
}

.materials-telegram-photo:nth-child(7n + 4) {
  --tg-rotate: 4deg;
  --tg-x: -1%;
  --tg-y: -1%;
  z-index: 1;
}

.materials-telegram-photo:nth-child(7n + 5) {
  --tg-rotate: -1deg;
  --tg-x: 3%;
  --tg-y: 1%;
  z-index: 2;
}

.materials-telegram-photo:nth-child(7n + 6) {
  --tg-rotate: 5deg;
  --tg-x: -3%;
  --tg-y: -2%;
  z-index: 3;
}

.materials-telegram-photo:nth-child(7n + 7) {
  --tg-rotate: -4deg;
  --tg-x: 1%;
  --tg-y: 3%;
  z-index: 1;
}

/* About Section - Postcard Style */
.about {
  --about-gutter: var(--space-md);
  padding: 0 var(--about-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Testimonials Section - Compact & Cute */
.testimonials {
  padding: var(--space-xl) calc(var(--space-md) * 2) var(--space-xl);
  max-width: 1600px;
  margin: 0 auto var(--space-lg);
}

.testimonials-title {
  font-family: var(--font-display);
  font-size: var(--heading-xl);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) auto var(--space-md);
}

.testimonial-mini {
  --card-angle: 170deg;
  --card-from: #fff1e0;
  --card-to: #f6eada;
  --shadow-x: 0;
  --shadow-y: 4px;
  --shadow-blur: 20px;
  --shadow-alpha: 0.08;
  --card-tilt: 0deg;
  transform: rotate(var(--card-tilt));
  background: linear-gradient(var(--card-angle), var(--card-from) 0%, var(--card-to) 100%);
  padding: 2rem;
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur) rgba(120, 100, 80, var(--shadow-alpha));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  position: relative;
}

.testimonial-mini:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper.png");
  background-repeat: repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.testimonial-mini:nth-child(6n + 1) {
  --card-tilt: -0.3deg;
  --card-angle: 155deg;
  --card-from: #fff3e4;
  --card-to: #f3e6d4;
  --shadow-x: 3px;
  --shadow-y: 6px;
  --shadow-blur: 24px;
  --shadow-alpha: 0.1;
}

.testimonial-mini:nth-child(6n + 2) {
  --card-tilt: 0.5deg;
  --card-angle: 190deg;
  --card-from: #fdf0e6;
  --card-to: #f2e8dc;
  --shadow-x: -4px;
  --shadow-y: 3px;
  --shadow-blur: 16px;
  --shadow-alpha: 0.07;
}

.testimonial-mini:nth-child(6n + 3) {
  --card-tilt: -0.2deg;
  --card-angle: 135deg;
  --card-from: #fff0de;
  --card-to: #f5e9d6;
  --shadow-x: 2px;
  --shadow-y: 8px;
  --shadow-blur: 28px;
  --shadow-alpha: 0.11;
}

.testimonial-mini:nth-child(6n + 4) {
  --card-tilt: 0.7deg;
  --card-angle: 205deg;
  --card-from: #fef2e8;
  --card-to: #f4e7d9;
  --shadow-x: -2px;
  --shadow-y: 5px;
  --shadow-blur: 22px;
  --shadow-alpha: 0.09;
}

.testimonial-mini:nth-child(6n + 5) {
  --card-tilt: -0.4deg;
  --card-angle: 165deg;
  --card-from: #fff4e6;
  --card-to: #f1e5d3;
  --shadow-x: 4px;
  --shadow-y: 4px;
  --shadow-blur: 18px;
  --shadow-alpha: 0.08;
}

.testimonial-mini:nth-child(6n) {
  --card-tilt: 0.1deg;
  --card-angle: 180deg;
  --card-from: #fff1e2;
  --card-to: #f7ecdc;
  --shadow-x: -3px;
  --shadow-y: 7px;
  --shadow-blur: 26px;
  --shadow-alpha: 0.1;
}

.testimonial-mini-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-ink-mid);
  margin: 0;
  flex: 1;
  align-self: start;
}

.testimonial-mini-author {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-rosso-text);
  font-style: normal;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: end;
  position: relative;
  bottom: -16px;
}

/* Pricing Section - Simple & Personal */
.pricing {
  padding: calc(var(--space-xl) * 2.6) var(--space-md) calc(var(--space-xl) * 1);
  text-align: center;
  position: relative;
  background-image: url("assets/waves.avif");
}

.pricing-main {
  font-family: var(--font-display);
  font-weight: 600;
}

.pricing-title {
  font-size: clamp(2rem, 5vw, 8rem);
  font-family: Angst;
  line-height: 1;
  text-align: right;
  padding-right: 22%;
  position: relative;
  top: -2vw;
}

.pricing-price {
  color: rgb(9, 57, 65);
  font-size: clamp(3.5rem, 12vw, 16rem);
  font-family: "Angst";
  line-height: 1;
  text-align: center;
  padding-right: 6%;
}

.pricing-note {
  position: absolute;
  width: 100%;
  z-index: 7;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: transparent;
  text-align: center;
  top: calc(70%);
  left: 0;
  background-image: url("assets/discounts-text.avif");
  background-repeat: no-repeat;
  background-position: 25% 50%;
  height: max(60px, 9vw);
  opacity: 0.8;
  background-size: contain;
}

.pricing-and-content {
  --tear-edge: url("assets/tear/edge-top.svg");
  --tear-rim: url("assets/tear/rim-top.svg");
  --tear-edge-bottom: url("assets/tear/edge-bottom.svg");
  --tear-rim-bottom: url("assets/tear/rim-bottom.svg");
  position: relative;
  z-index: 1;
  background-image: url("assets/waves.avif");
  -webkit-mask-image: var(--tear-edge), linear-gradient(black, black), var(--tear-edge-bottom);
  mask-image: var(--tear-edge), linear-gradient(black, black), var(--tear-edge-bottom);
  -webkit-mask-size:
    100% var(--tear-height),
    100% calc(100% - 2 * var(--tear-height) + 2px),
    100% var(--tear-height);
  mask-size:
    100% var(--tear-height),
    100% calc(100% - 2 * var(--tear-height) + 2px),
    100% var(--tear-height);
  -webkit-mask-position: top, center, bottom;
  mask-position: top, center, bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Torn paper fibers: pale rim along the ripped top and bottom edges */
.pricing-and-content::before,
.contact::after {
  z-index: 9;
  left: 0;
  right: 0;
  background-color: #fbf8f3;
  background-image: url("assets/paper.png");
  background-blend-mode: multiply;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

.pricing-and-content::before {
  content: "";
  position: absolute;
  top: 0;
  height: var(--tear-height);
  -webkit-mask-image: var(--tear-rim);
  mask-image: var(--tear-rim);
}

/* Paper grain over the waves */
.pricing-and-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background-image: url("assets/paper.png");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

/* Contact Section */
.contact {
  padding: var(--space-xl) var(--space-md) calc(var(--space-xl) + var(--tear-height));
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: var(--tear-height);
  -webkit-mask-image: var(--tear-rim-bottom);
  mask-image: var(--tear-rim-bottom);
}

.contact-card {
  background: linear-gradient(170deg, #fff1e0 0%, #ede1c9 100%);
  padding: var(--space-lg);
  margin-inline: auto;
  width: min(90vw, 900px);
  max-width: 900px;
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 28px rgba(80, 60, 40, 0.3);
  position: relative;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper.png");
  background-repeat: repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.contact-title {
  font-family: var(--font-display);
  font-size: var(--heading-lg);
  line-height: 1;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.contact-text {
  font-size: var(--text-lg);
  color: var(--color-ink-mid);
  margin-bottom: var(--space-sm);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 3rem 1rem 2rem;
  border-radius: 24px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.contact-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  text-align: left;
}

.contact-btn-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.contact-btn-detail {
  font-size: var(--text-lg);
}

.contact-btn:hover {
  box-shadow: 0 4px 12px rgba(120, 100, 80, 0.12);
}

.contact-icon {
  width: clamp(24px, 2vw, 28px);
  height: clamp(24px, 2vw, 28px);
}

.contact-btn-wa {
  background: #d4e8d0;
  color: var(--color-ink);
}

.contact-btn-tg {
  background: #c8dae8;
  color: var(--color-ink);
}

.contact-note {
  font-size: var(--text-lg);
  color: var(--color-ink-mid);
  text-wrap: balance;
  line-height: 1.5;
}

/* FAQ Section */
.faq {
  position: relative;
  margin-top: calc(-1 * var(--tear-height));
  padding: var(--space-xl) var(--space-md) var(--space-xl);
  background: var(--color-parchment-warm);
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--heading-lg);
  text-align: center;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.faq-list {
  width: clamp(300px, 80vw, 700px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  padding-bottom: var(--space-sm);
}

.faq-item:last-child {
  padding-bottom: 0;
}

.faq-question {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  font-size: var(--text-base);
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-family: var(--font-body);
  color: var(--color-ink-mid);
  line-height: 1.5;
  margin-top: var(--space-sm);
}

/* Responsive - tablet */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-scatter {
    width: 100%;
  }

  .materials-telegram {
    column-count: 5;
  }

  .materials-telegram-photo:nth-of-type(n + 11) {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav-link--pricing {
    display: none;
  }
}

@media (max-width: 500px) {
  .nav-link--faq {
    display: none;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* .flip-postcard-front,
  .flip-postcard-back {
    width: clamp(260px, 92vw, 560px);
  } */

  .about {
    --about-gutter: var(--space-sm);
  }

  .flip-postcard-stack {
    width: clamp(260px, 92vw, 560px);
  }

  .flip-postcard-back {
    aspect-ratio: auto;
    margin-inline: 0;
    width: 100%;
  }

  .testimonials {
    padding-inline: calc(var(--space-sm) + var(--space-xs));
  }

  .contact {
    padding-inline: var(--space-sm);
  }

  .contact-card {
    width: 100%;
  }

  .flip-postcard-under-left {
    left: -5%;
  }

  .flip-postcard-under-right {
    right: -5%;
  }

  .materials-scatter {
    height: clamp(500px, 100vw, 900px);
  }

  .materials-photo {
    width: clamp(300px, 44vw, 600px);
  }

  .contact-card {
    padding: var(--space-md);
  }

  .pricing-title {
    padding-right: calc(30% - 70px);
    top: 0;
  }

  .materials-telegram {
    column-count: 3;
  }

  .pricing-note {
    height: max(calc(20vw - 50px), 60px);
    background-position: calc(15% - 20px) 50%;
  }
}
