:root {
  --teal: #28484a;
  --teal-dark: #19393b;
  --sage: #7f9b7a;
  --coral: #c97e7e;
  --blush: #f8eeee;
  --paper: #fffaf7;
  --white: #ffffff;
  --ink: #243032;
  --muted: #657173;
  --line: rgba(36, 48, 50, 0.14);
  --shadow: 0 28px 80px rgba(36, 48, 50, 0.16);
  --nav-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(40, 72, 74, 0.04) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(180deg, var(--white) 0%, var(--paper) 36%, var(--white) 100%);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
img { color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.scroll-progress {
  display: none;
}

.navbar {
  position: fixed;
  inset: -1px 0 auto;
  z-index: 1000;
  height: calc(var(--nav-h) + 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px clamp(20px, 5vw, 64px) 0;
  background: var(--teal);
  color: var(--white);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), backdrop-filter .45s var(--ease);
}

.navbar.scrolled {
  background: rgba(40, 72, 74, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(25, 57, 59, 0.14);
}

.nav-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform .45s var(--ease);
}

.navbar.scrolled .nav-logo img { height: 68px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  min-width: 44px;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle,
.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lang-toggle {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .72rem;
  letter-spacing: .08em;
}

.lang-toggle span { opacity: .45; }
.lang-toggle .active { opacity: 1; font-weight: 700; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(35deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-35deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
  align-items: center;
  gap: clamp(52px, 7vw, 112px);
  padding: calc(var(--nav-h) + 40px) clamp(22px, 6vw, 86px) 82px;
  overflow: hidden;
}

.hero-copy {
  max-width: 610px;
  position: relative;
  z-index: 2;
}

.hero-copy::before {
  content: "";
  display: block;
  width: clamp(52px, 7vw, 92px);
  height: 1px;
  margin: 0 0 24px;
  background: var(--coral);
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: .98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 7vw, 7.4rem);
  color: var(--teal-dark);
}

.hero-sub {
  margin: 28px 0 12px;
  color: var(--coral);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 700;
  letter-spacing: .06em;
}

.hero-text {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid currentColor;
  overflow: hidden;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--teal);
  transition: height .35s var(--ease);
  z-index: -1;
}

.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn:hover::before { height: 100%; }
.btn.primary { color: var(--teal); }
.btn.ghost { color: var(--muted); }
.btn.coral { color: var(--white); background: var(--coral); border-color: var(--coral); }
.btn.coral::before { background: var(--teal-dark); }

.hero-media {
  position: relative;
  min-height: min(680px, 72vh);
}

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.hero-frame img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translateY(var(--parallax, 0px)) scale(1.04);
  transition: transform .12s linear;
}

.floating-note {
  position: absolute;
  right: 6%;
  bottom: 8%;
  max-width: 220px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 50px rgba(25, 57, 59, .16);
  backdrop-filter: blur(15px);
  color: var(--teal-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.scroll-cue {
  position: absolute;
  left: clamp(22px, 6vw, 86px);
  bottom: 32px;
  display: grid;
  place-items: start center;
  width: 44px;
  height: 52px;
  border: 0;
}

.scroll-cue::before {
  content: "";
  width: 18px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 99px;
  grid-area: 1 / 1;
}

.scroll-cue span {
  width: 4px;
  height: 4px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--coral);
  animation: cue 1.8s infinite var(--ease);
  grid-area: 1 / 1;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(26px); opacity: 0; }
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.method-copy h2,
.gallery-copy h2,
.contact-card h2 {
  color: var(--teal-dark);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.section-heading p {
  margin: 18px auto 0;
  color: var(--muted);
  max-width: 520px;
}

.problems {
  padding: 96px clamp(22px, 6vw, 86px);
  background: var(--teal);
  color: var(--white);
}

.problems .section-heading h2,
.problems .section-heading p { color: var(--white); }

.problem-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.22);
}

.problem-card {
  min-height: 310px;
  padding: 28px;
  background: var(--teal);
  transition: background .35s var(--ease), transform .35s var(--ease);
}

.problem-card:hover {
  background: var(--teal-dark);
  transform: translateY(-8px);
}

.problem-index {
  display: block;
  margin-bottom: 62px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
}

.problem-card h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: .82rem;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.problem-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: .93rem;
  line-height: 1.75;
}

.problems-line {
  margin: 54px auto 0;
  color: var(--white);
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-style: italic;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  padding: 116px clamp(22px, 6vw, 86px);
}

.portrait-stack {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.portrait-stack::before {
  content: "";
  position: absolute;
  inset: 34px -28px -30px 38px;
  border: 1px solid var(--sage);
  z-index: -1;
}

.portrait-stack img:first-child {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  background: var(--blush);
  box-shadow: 0 24px 70px rgba(36, 48, 50, .12);
}

.badge {
  position: absolute;
  right: -24px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(36, 48, 50, .16);
}

.badge img { border-radius: 50%; }

.about-copy {
  max-width: 620px;
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(135deg, var(--blush), rgba(255, 255, 255, .86));
  border: 1px solid rgba(201, 126, 126, 0.2);
}

.about-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 12px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.text-link:hover::after { width: 72px; }

.method {
  position: relative;
  padding: 104px clamp(22px, 6vw, 86px);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  overflow: hidden;
}

.method::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 46vw;
  height: 100%;
  background: url("assets/home/method-planning.png") center/cover;
  opacity: .18;
  mix-blend-mode: screen;
}

.method-copy,
.method-track,
.method-panel { position: relative; z-index: 2; }

.method-copy {
  max-width: 760px;
  margin-bottom: 46px;
}

.method-copy h2 { color: var(--white); }
.method-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.9;
}

.method-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
}

.method-step {
  min-height: 152px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}

.method-step:hover,
.method-step.active {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .55);
  transform: translateY(-6px);
}

.method-step span {
  display: block;
  color: var(--coral);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  margin-bottom: 26px;
}

.method-step strong,
.method-step small { display: block; }

.method-step strong {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.method-step small {
  margin-top: 6px;
  color: rgba(255, 255, 255, .66);
}

.method-panel {
  max-width: 640px;
  margin-top: 34px;
  padding-left: 24px;
  border-left: 2px solid var(--coral);
}

.method-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.85;
}

.gallery {
  padding: 98px 0;
  background: var(--white);
  overflow: hidden;
}

.gallery-copy {
  max-width: 820px;
  margin: 0 auto 42px;
  padding: 0 clamp(22px, 6vw, 86px);
  text-align: center;
}

.gallery-strip {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.gallery-track img {
  width: min(34vw, 430px);
  min-width: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(.96) contrast(1.02);
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 9px)); }
}

.testimonial {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 112px clamp(22px, 6vw, 86px);
  background: var(--blush);
  text-align: center;
}

.testimonial-shell {
  position: relative;
  width: min(880px, 100%);
  min-height: 340px;
  padding: clamp(40px, 7vw, 74px);
  background: var(--white);
  border: 1px solid rgba(201, 126, 126, .18);
  box-shadow: 0 28px 80px rgba(201, 126, 126, .14);
}

.quote-mark {
  position: absolute;
  top: -28px;
  left: clamp(22px, 5vw, 62px);
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}

.testimonial-slides { position: relative; }

.testimonial-slide {
  display: none;
  animation: quoteIn .45s var(--ease);
}

.testimonial-slide.active { display: block; }

.testimonial-slide p {
  margin: 0 auto 28px;
  max-width: 720px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.45;
}

.testimonial-slide span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@keyframes quoteIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.testimonial-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.testimonial-controls button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.contact {
  padding: 112px clamp(22px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(127, 155, 122, .16), rgba(255, 255, 255, 0)),
    var(--white);
}

.contact-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}

.contact-card p {
  max-width: 620px;
  color: var(--muted);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-style: italic;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-size: .95rem;
  font-weight: 600;
  word-break: break-word;
}

.footer {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.footer span {
  color: var(--teal);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:nth-child(2),
.method-step:nth-child(2) { transition-delay: .08s; }
.problem-card:nth-child(3),
.method-step:nth-child(3) { transition-delay: .16s; }
.problem-card:nth-child(4),
.method-step:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 980px) {
  .navbar { padding-inline: 22px; }
  .nav-logo img,
  .navbar.scrolled .nav-logo img { height: 60px; }
  .menu-toggle { display: grid; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 24px 22px 34px;
    background: rgba(25, 57, 59, .96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s var(--ease);
  }

  .menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    padding: 16px 0;
    font-size: .9rem;
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 34px);
  }

  .hero-copy::before {
    width: 64px;
    margin-bottom: 22px;
  }

  .hero h1 { max-width: 8ch; }
  .hero-media { min-height: 520px; }
  .problem-rail,
  .method-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --nav-h: 76px; }

  .navbar { padding-inline: 18px; }

  .hero {
    min-height: auto;
    padding-bottom: 62px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 4.2rem);
  }
  .hero-copy::before { margin-bottom: 18px; }
  .hero-media { min-height: 410px; }
  .hero-frame { clip-path: none; }
  .floating-note { right: 16px; bottom: 16px; }
  .scroll-cue { display: none; }

  .problems,
  .about,
  .method,
  .testimonial,
  .contact { padding-block: 72px; }

  .problem-rail,
  .method-track { grid-template-columns: 1fr; }

  .problem-card { min-height: auto; }
  .problem-index { margin-bottom: 34px; }
  .badge {
    right: 8px;
    bottom: 16px;
    width: 78px;
    height: 78px;
  }
  .method::after { display: none; }
  .gallery-track img { width: 76vw; }
  .testimonial-shell { min-height: auto; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
}
