/* =============================================
   STYLE — Наталья Владыкина · Quiet Luxury
   ============================================= */

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --bg:       #F9F8F6;
  --text:     #2C2B2A;
  --muted:    #8C857D;
  --surface:  #F2EFE9;
  --line:     #E3DCD2;

  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Manrope', system-ui, sans-serif;

  --container: 1280px;
  --px:       clamp(1.5rem, 5vw, 5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── BASE ──────────────────────────────────── */
html {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  cursor: none; /* hide default cursor on desktop */
}

@media (hover: none) {
  body { cursor: auto; }
}

/* ─── CUSTOM CURSOR ─────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear, opacity 0.2s;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 220px;
  height: 280px;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -60%) scale(0);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  will-change: transform;
}

.cursor-follower__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
}

/* ─── TYPOGRAPHY HELPERS ────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s, gap 0.3s var(--ease-out);
}

.link-arrow:hover {
  border-color: var(--text);
  gap: 0.85rem;
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ─── LAYOUT CONTAINER ──────────────────────── */
.header__inner,
.hero__inner,
.statement__inner,
.expertise__inner,
.directions__inner,
.method__inner,
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}


/* ══════════════════════════════════════════════
   BLOCK 1 — HEADER
══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem 0;
  transition: padding 0.4s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 1.1rem 0;
  background: rgba(249, 248, 246, 0.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.65;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.header__nav-link {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.35s var(--ease-out);
}

.header__nav-link:hover::after {
  width: 100%;
}


/* ══════════════════════════════════════════════
   BLOCK 2 — HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(6rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
}

/* Arched photo mask */
.hero__photo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero__photo-mask {
  width: clamp(240px, 35vw, 480px);
  aspect-ratio: 3 / 4;
  border-radius: 300px 300px 0 0;
  overflow: hidden;
  background: var(--surface);
  will-change: transform;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.1);
  will-change: transform;
}


/* ══════════════════════════════════════════════
   BLOCK 3 — STATEMENT
══════════════════════════════════════════════ */
.statement {
  padding: clamp(8rem, 18vh, 14rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.statement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.statement__quote {
  max-width: 620px;
  text-align: center;
  flex-shrink: 0;
}

.statement__quote p {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
}

.statement__author {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Decorative side photos */
.statement__photo-left,
.statement__photo-right {
  flex-shrink: 0;
  overflow: hidden;
}

.statement__photo-left {
  width: clamp(100px, 12vw, 180px);
  aspect-ratio: 2 / 3;
  border-radius: 120px 120px 0 0;
  transform: translateY(2rem);
}

.statement__photo-right {
  width: clamp(80px, 9vw, 140px);
  aspect-ratio: 2 / 3;
  border-radius: 0 0 100px 100px;
  transform: translateY(-2rem);
}

.statement__photo-left img,
.statement__photo-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ══════════════════════════════════════════════
   BLOCK 4 — EXPERTISE
══════════════════════════════════════════════ */
.expertise {
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.expertise__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.expertise__heading-col {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.expertise__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.expertise__photo-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 160px 160px 0 0;
  overflow: hidden;
  background: var(--surface);
}

.expertise__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.expertise__list {
  display: flex;
  flex-direction: column;
}

.expertise__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
}

.expertise__item:last-child {
  border-bottom: 1px solid var(--line);
}

.expertise__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}

.expertise__label {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.expertise__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}


/* ══════════════════════════════════════════════
   BLOCK 5 — DIRECTIONS
══════════════════════════════════════════════ */
.directions {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--surface);
}

.directions__inner {
  display: flex;
  flex-direction: column;
}

.directions__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.directions__list {
  display: flex;
  flex-direction: column;
  cursor: none;
}

@media (hover: none) {
  .directions__list { cursor: auto; }
}

.directions__item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.3s;
}

.directions__item:last-child {
  border-bottom: 1px solid var(--line);
}

.directions__list:hover .directions__item {
  opacity: 0.4;
}

.directions__list:hover .directions__item:hover {
  opacity: 1;
}

.directions__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.directions__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  transition: transform 0.4s var(--ease-out);
}

.directions__item:hover .directions__name {
  transform: translateX(1rem);
}

.directions__arrow {
  font-size: 1.25rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}

.directions__item:hover .directions__arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ══════════════════════════════════════════════
   BLOCK 5.5 — REFLECTION INTERLUDE
══════════════════════════════════════════════ */
.reflection {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--surface);
  overflow: hidden;
}

.reflection__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

/* Photo — square with single corner arch (bottom-right) */
.reflection__photo-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 0 0 50% 0;
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
}

.reflection__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
  will-change: transform;
}

.reflection__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reflection__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.reflection__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.reflection__title em {
  font-style: italic;
  font-weight: 300;
}

.reflection__body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 48ch;
}

@media (max-width: 900px) {
  .reflection__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .reflection__photo-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 0 0 30% 0;
    max-width: 480px;
  }
}

/* ══════════════════════════════════════════════
   BLOCK 6 — METHOD / PHILOSOPHY
══════════════════════════════════════════════ */
.method {
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.method__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.method__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.method__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52ch;
}

/* Rectangular photo with single-side rounding */
.method__photo-wrap {
  display: flex;
  justify-content: flex-end;
}

.method__photo-mask {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 0 180px 0 0;
  overflow: hidden;
  background: var(--surface);
  will-change: transform;
}

.method__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  will-change: transform;
}


/* ══════════════════════════════════════════════
   BLOCK 7 — FOOTER
══════════════════════════════════════════════ */
.site-footer {
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(2rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.footer__heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color 0.25s;
}

.footer__link:hover {
  border-bottom-color: var(--line);
}

.footer__compass {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__compass-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__compass-link {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.25s, gap 0.3s var(--ease-out);
  width: fit-content;
}

.footer__compass-link:hover {
  border-color: var(--text);
  gap: 0.85rem;
}

.footer__compass-desc {
  font-size: 0.8375rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40ch;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer__copy,
.footer__tagline {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════════
   SCROLL REVEAL STATES (initial states for GSAP)
══════════════════════════════════════════════ */
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-line {
  opacity: 0;
}

/* Hero title split lines — overflow hidden wrapper added by JS */
.line-wrap {
  overflow: hidden;
  display: block;
}


/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 768px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .statement__photo-left,
  .statement__photo-right {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__photo-wrap {
    justify-content: center;
    order: -1;
  }

  .hero__photo-mask {
    width: clamp(220px, 65vw, 380px);
  }

  .hero__title {
    text-align: center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__sub {
    text-align: center;
    max-width: none;
  }

  .expertise__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .expertise__heading-col {
    position: static;
  }

  .method__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .method__photo-wrap {
    justify-content: center;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  :root {
    --px: 1.25rem;
  }

  .header__nav {
    gap: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2.75rem, 11vw, 4.5rem);
  }

  .directions__name {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  .directions__item {
    grid-template-columns: 2rem 1fr;
  }

  .directions__arrow {
    display: none;
  }

  /* Disable hover cursor follower on touch */
  .cursor-follower,
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ─── Accessibility: reduce motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
