/* ==========================================================================
   Harmoni Stone — Design Tokens
   ========================================================================== */
:root {
  /* Color: derived from the brand emblem — stone cream, deep navy, antique gold, lapis */
  --c-cream:      #FAF6EE;
  --c-stone:      #EEE6D6;
  --c-stone-dark: #E1D6BE;
  --c-navy:       #1B2A47;
  --c-navy-deep:  #101a2f;
  --c-lapis:      #3E5D8C;
  --c-gold:       #AD8A54;
  --c-gold-light: #D2B784;
  --c-ink:        #262119;
  --c-ink-soft:   #5C5646;

  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; color: var(--c-navy); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-navy); color: #fff;
  padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.eyebrow {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-navy);
  color: var(--c-cream);
}
.btn-primary:hover { background: var(--c-navy-deep); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--c-navy);
  color: var(--c-navy);
  background: transparent;
}
.btn-outline:hover { background: var(--c-navy); color: var(--c-cream); }
.btn-lg { padding: 18px 38px; font-size: 15.5px; }

.text-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-navy);
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 2px;
  transition: color .25s;
}
.text-link:hover { color: var(--c-gold); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 42, 71, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav-word { font-family: var(--f-display); font-size: 19px; color: var(--c-navy); letter-spacing: .01em; }
.nav-word em { font-style: italic; color: var(--c-gold); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--c-ink-soft); transition: color .25s; }
.nav-links a:hover { color: var(--c-navy); }
.nav-ig { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(27,42,71,.18); color: var(--c-navy); transition: background .25s, color .25s; }
.nav-ig:hover { background: var(--c-navy); color: var(--c-cream); }
.nav-ig svg { width: 18px; height: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 0 70px;
  overflow: hidden;
  text-align: center;
}
.hero-texture {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(173, 138, 84, .10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(62, 93, 140, .10), transparent 50%),
    var(--c-stone);
  z-index: -1;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-emblem {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(16, 26, 47, .35);
  margin-bottom: 28px;
  animation: hs-rise .9s var(--ease) both;
}
.hero .eyebrow { animation: hs-rise .9s var(--ease) .1s both; }
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: .98;
  animation: hs-rise .9s var(--ease) .18s both;
}
.hero-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--c-lapis);
  margin-top: 14px;
  animation: hs-rise .9s var(--ease) .26s both;
}
.hero-sub {
  max-width: 480px;
  margin: 22px auto 34px;
  color: var(--c-ink-soft);
  font-size: 16.5px;
  animation: hs-rise .9s var(--ease) .34s both;
}
.hero .btn { animation: hs-rise .9s var(--ease) .42s both; }

@keyframes hs-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue { display: flex; justify-content: center; margin-top: 60px; }
.scroll-cue span {
  width: 1px; height: 46px; background: linear-gradient(var(--c-gold), transparent);
  position: relative;
  animation: hs-cue 2.2s ease-in-out infinite;
}
@keyframes hs-cue {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story { padding: 120px 0; }
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.story-text h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  margin-bottom: 26px;
}
.story-text p { color: var(--c-ink-soft); font-size: 16.5px; max-width: 46ch; }

.story-signature { display: flex; justify-content: center; }
.knot-svg { width: 100%; max-width: 340px; color: var(--c-navy); }
.knot-ring { color: var(--c-stone-dark); }
.knot-path { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.8s var(--ease); }
.knot-path-1 { color: var(--c-navy); }
.knot-path-2 { color: var(--c-gold); transition-delay: .25s; }
.knot-dot { opacity: 0; transition: opacity .6s ease 1.6s; color: var(--c-gold); }
.story-signature.in-view .knot-path { stroke-dashoffset: 0; }
.story-signature.in-view .knot-dot { opacity: 1; }

/* ==========================================================================
   Values
   ========================================================================== */
.values { background: var(--c-navy); padding: 90px 0; }
.values-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  text-align: center;
}
.value-item svg { width: 40px; height: 40px; color: var(--c-gold-light); margin: 0 auto 20px; }
.value-item h3 { color: var(--c-cream); font-size: 20px; margin-bottom: 10px; }
.value-item p { color: rgba(250, 246, 238, .68); font-size: 15px; max-width: 32ch; margin: 0 auto; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 120px 0; }
.gallery h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 50px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-stone);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 26, 47, 0);
  color: #fff;
  opacity: 0;
  transition: background .3s, opacity .3s;
}
.gallery-overlay svg { width: 26px; height: 26px; }
.gallery-item:hover .gallery-overlay { background: rgba(16, 26, 47, .38); opacity: 1; }

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--c-stone-dark);
  border-radius: var(--radius);
}
.gallery-empty-emblem svg { width: 64px; height: 64px; color: var(--c-gold); margin: 0 auto 20px; }
.gallery-empty p { color: var(--c-ink-soft); margin-bottom: 24px; max-width: 40ch; margin-left: auto; margin-right: auto; }

.gallery-more { text-align: center; margin-top: 40px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(173, 138, 84, .12), transparent 55%),
    var(--c-stone);
}
.contact h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin: 18px 0 20px;
}
.contact-note { color: var(--c-ink-soft); max-width: 46ch; margin: 0 auto 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-navy-deep); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap;
}
.footer-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.footer-inner p { color: rgba(250, 246, 238, .6); font-size: 13.5px; }
.footer-inner a { color: rgba(250, 246, 238, .6); display: flex; }
.footer-inner a svg { width: 18px; height: 18px; }
.footer-inner a:hover { color: var(--c-gold-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .story-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .story-text p { margin-left: auto; margin-right: auto; }
  .values-inner { grid-template-columns: 1fr; gap: 46px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .story { padding: 80px 0; }
  .gallery, .contact { padding: 80px 0; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-emblem, .hero .eyebrow, .hero h1, .hero-tagline, .hero-sub, .hero .btn,
  .scroll-cue span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .knot-path { transition: none; stroke-dashoffset: 0; }
  .knot-dot { transition: none; opacity: 1; }
  .gallery-item img { transition: none; }
}
