/* ============================================
   Atelier Haarwerk – Luxury Friseur Template
   ============================================ */

:root {
  --bg: #f7f3ef;
  --bg-alt: #efe8e1;
  --surface: #fffcf9;
  --text: #2a211c;
  --text-soft: #6b5d54;
  --accent: #9c6b4a;
  --accent-light: #c49a72;
  --accent-dark: #6f4a32;
  --line: rgba(42, 33, 28, 0.1);
  --shadow: 0 24px 60px rgba(42, 33, 28, 0.08);
  --shadow-soft: 0 12px 30px rgba(42, 33, 28, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 84px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.28s;
  --duration-normal: 0.45s;
  --duration-slow: 0.9s;
  --transition: var(--duration-normal) var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageIn 0.8s var(--ease-out) forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Cursor glow (desktop only) */
.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 114, 0.14) 0%, rgba(196, 154, 114, 0.04) 40%, transparent 72%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  will-change: transform;
}

body.is-ready .cursor-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.6rem;
}

em {
  font-style: italic;
  color: var(--accent-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .btn:hover {
    color: var(--surface);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translate3d(0, -3px, 0);
    box-shadow: var(--shadow-soft);
  }

  .btn:active {
    transform: translate3d(0, -1px, 0);
    transition-duration: 0.1s;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

.btn-small {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 243, 239, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transform: translate3d(0, 0, 0);
  transition:
    background var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(247, 243, 239, 0.92);
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(42, 33, 28, 0.05);
}

.site-header.is-hidden {
  transform: translate3d(0, -100%, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.logo-text small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .site-nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 154, 114, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(156, 107, 74, 0.1), transparent),
    linear-gradient(180deg, var(--bg) 0%, #f0e9e2 100%);
  animation: heroGlow 12s var(--ease-in-out) infinite alternate;
}

@keyframes heroGlow {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1%, 1%, 0); }
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem 6rem;
}

.hero-lead {
  max-width: 480px;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stats span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-content > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.hero-content.is-loaded > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.hero-content.is-loaded > *:nth-child(1) { transition-delay: 0.1s; }
.hero-content.is-loaded > *:nth-child(2) { transition-delay: 0.22s; }
.hero-content.is-loaded > *:nth-child(3) { transition-delay: 0.34s; }
.hero-content.is-loaded > *:nth-child(4) { transition-delay: 0.46s; }
.hero-content.is-loaded > *:nth-child(5) { transition-delay: 0.58s; }

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card-main {
  position: relative;
  background: var(--surface);
  animation: heroFloat 7s var(--ease-in-out) infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.hero-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-card-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 252, 249, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
}

.hero-card-caption span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.hero-card-caption strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.hero-card-accent {
  position: absolute;
  bottom: -1rem;
  left: -2rem;
  max-width: 280px;
  padding: 1.5rem;
  background: var(--text);
  color: var(--surface);
  animation: heroFloat 7s var(--ease-in-out) 1.2s infinite;
}

.hero-card-accent p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.hero-card-accent cite {
  font-size: 0.78rem;
  font-style: normal;
  opacity: 0.7;
}

/* Marquee */
.marquee {
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  padding-right: 2rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.marquee-group span:nth-child(even) {
  color: var(--accent-light);
}

@media (hover: hover) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 7rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 560px;
  margin-bottom: 4rem;
}

.section-head p:last-child {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow);
    border-color: rgba(156, 107, 74, 0.2);
  }

  .service-card:hover .service-number {
    transform: translate3d(4px, 0, 0);
    opacity: 0.75;
  }
}

.service-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent-light);
  opacity: 0.5;
  margin-bottom: 1rem;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card > p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.service-card ul li span {
  color: var(--accent-dark);
  font-weight: 500;
  white-space: nowrap;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-visual {
  position: relative;
}

.philosophy-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.philosophy-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  animation: badgePulse 5s var(--ease-in-out) infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -6px, 0) scale(1.03); }
}

.philosophy-badge strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.philosophy-badge span {
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.85;
}

.philosophy-content p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.feature-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.feature-list div {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .feature-list div:hover {
    transform: translate3d(6px, 0, 0);
    border-color: rgba(156, 107, 74, 0.25);
    box-shadow: var(--shadow-soft);
  }
}

.feature-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.feature-list span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Gallery */
.section-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: end;
  max-width: none;
  margin-bottom: 3rem;
}

.gallery-intro {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 36ch;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-feature {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 8 / 10;
  grid-row: 1;
}

.gallery-item:nth-child(3) {
  grid-column: 10 / 12;
  grid-row: 1;
}

.gallery-tall {
  grid-column: 8 / 10;
  grid-row: 2 / 4;
}

.gallery-item:nth-child(5) {
  grid-column: 10 / 12;
  grid-row: 2;
}

.gallery-wide {
  grid-column: 1 / 8;
  grid-row: 3;
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
}

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

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
  will-change: transform;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(42, 33, 28, 0.82));
  color: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.gallery-item figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (hover: hover) {
  .gallery-item:hover .gallery-image img {
    transform: scale3d(1.06, 1.06, 1);
  }

  .gallery-item:hover figcaption {
    transform: translateY(0);
  }
}

.gallery-feature .gallery-image img { object-position: center 25%; }
.gallery-item:nth-child(2) .gallery-image img { object-position: center 30%; }
.gallery-item:nth-child(3) .gallery-image img { object-position: center 35%; }
.gallery-item:nth-child(5) .gallery-image img { object-position: center 40%; }
.gallery-wide .gallery-image img { object-position: center 45%; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 28, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-lightbox-dialog img {
  width: 100%;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.gallery-lightbox-caption {
  color: var(--surface);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 252, 249, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.gallery-lightbox-close:hover {
  background: rgba(255, 252, 249, 0.1);
  border-color: rgba(255, 252, 249, 0.5);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .team-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: var(--shadow-soft);
  }

  .team-card:hover .team-avatar {
    transform: scale3d(1.05, 1.05, 1);
    border-color: var(--accent-light);
  }
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 8px 24px rgba(156, 107, 74, 0.25);
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.team-avatar span {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--surface);
}

.team-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-card > p:last-child {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Testimonials */
.testimonials {
  padding-block: 5rem;
  background: var(--text);
  color: var(--surface);
}

.testimonial-slider {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  min-height: 180px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.testimonial.leaving {
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(1.01);
  transition-duration: 0.45s;
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.testimonial footer {
  font-size: 0.85rem;
  opacity: 0.65;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 8rem;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 252, 249, 0.28);
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-spring),
    width var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
  .testimonial-dots button:hover {
    background: rgba(255, 252, 249, 0.5);
    transform: scale(1.15);
  }
}

.testimonial-dots button.active {
  background: var(--accent-light);
  transform: scale(1.35);
  width: 22px;
  border-radius: 999px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.contact-list li strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 107, 74, 0.12);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400 !important;
  line-height: 1.5;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  min-height: 1.4em;
}

.form-note.success {
  color: #3d6b4f;
}

.form-note.error {
  color: #8b3a3a;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 252, 249, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 252, 249, 0.1);
}

.footer-contact {
  display: grid;
  gap: 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 252, 249, 0.85);
}

.footer-contact a {
  color: rgba(255, 252, 249, 0.85);
}

.footer-contact a:hover {
  color: var(--accent-light);
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 1.25rem;
}

.footer-grid ul li {
  margin-bottom: 0.65rem;
}

.footer-grid a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  font-size: 0.85rem;
}

.back-top {
  opacity: 0.6;
  transition: opacity var(--transition);
}

.back-top:hover {
  opacity: 1;
  color: var(--accent-light);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Legal pages */
.legal-page .site-header {
  position: sticky;
}

.legal-main {
  padding: 4rem 0 6rem;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--text-soft);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

/* Reveal animations */
.reveal {
  --reveal-delay: 0ms;
  --reveal-distance: 22px;
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

.reveal-left.visible {
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  transform: translate3d(var(--reveal-distance), 0, 0);
}

.reveal-right.visible {
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  --reveal-distance: 0px;
  transform: scale(0.96);
}

.reveal-scale.visible {
  transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .philosophy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    min-height: 420px;
    max-width: 480px;
    margin-inline: auto;
  }

  .hero-card-accent {
    left: auto;
    right: 0;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-feature,
  .gallery-tall,
  .gallery-wide,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .section-head-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-small {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-card-accent {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: none;
    margin-top: 1rem;
    animation: none;
  }

  .hero-card-main {
    animation: none;
  }

  .site-header.is-hidden {
    transform: translate3d(0, 0, 0);
  }

  .philosophy-badge {
    right: 1rem;
    bottom: -1rem;
    width: 110px;
    height: 110px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .legal-page .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 1rem;
  }

  .legal-page .nav-toggle {
    display: none;
  }
}

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

  body {
    animation: none;
    opacity: 1;
  }

  .hero-gradient,
  .hero-card-main,
  .hero-card-accent,
  .philosophy-badge,
  .marquee-track {
    animation: none;
  }

  .hero-content > * {
    opacity: 1;
    transform: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cursor-glow {
    display: none;
  }

  .site-header.is-hidden {
    transform: none;
  }
}
