/* ============================================================
   Katrin Stahl · Fotografie — Onepager
   Warm & herzlich · modern · Chiemgau / Inntal / Rosenheim
   ============================================================ */

:root {
  --bg:        #faf2ee;   /* zartes Rosé-Creme */
  --bg-soft:   #f3e3dd;   /* softer Blush-Ton */
  --surface:   #fffbf9;   /* warmes Weiß mit Rosé-Hauch */
  --surface-2: #fbeee9;
  --line:      #ecd8d0;
  --text:      #3a2a2a;   /* tiefes warmes Braun-Aubergine */
  --text-soft: #6a5150;
  --muted:     #9c817e;
  --muted-dim: #c1aba6;
  --accent:    #bd7d78;   /* gedämpftes Altrosa / Rosewood */
  --accent-hi: #a3635f;   /* dunkleres Rosewood (Hover) */
  --accent-2:  #d9a7a0;   /* softes Rosé */
  --accent-2-soft: #f0d6cf; /* zarter Blush */

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand:  "Caveat", cursive;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 100px;
  --shadow: 0 24px 60px -28px rgba(120, 66, 36, 0.35);
  --shadow-sm: 0 12px 30px -16px rgba(120, 66, 36, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
em { font-style: normal; color: var(--accent); }

a { color: inherit; text-decoration: none; }

.section { padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }

/* handschriftlicher Eyebrow für die persönliche, warme Note */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transform: rotate(-2deg);
  display: inline-block;
}

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lead { color: var(--text-soft); margin-top: 1.1rem; font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 2.1rem;
  border-radius: var(--pill);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(176,78,44,0.5); }
.btn--ghost { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid var(--accent-2-soft);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
  margin-top: 1.6rem;
}
.link-arrow:hover { border-color: var(--accent); }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 243, 233, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -22px rgba(120,66,36,0.5);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); display: flex; flex-direction: column; line-height: 1.02; }
.nav__logo-sub { font-family: var(--font-hand); font-size: 1.2rem; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--text-soft); transition: color 0.3s var(--ease); }
.nav__links a:not(.nav__cta):hover { color: var(--accent); }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 0.6rem 1.4rem; border-radius: var(--pill);
  font-size: 0.9rem !important; transition: all 0.3s var(--ease);
}
.nav__cta:hover { background: var(--accent-hi); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (Split-Layout) ===== */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; overflow: hidden; }
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--gutter) 4rem;
  position: relative;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(217,167,160,0.28) 0%, rgba(217,167,160,0) 55%),
    radial-gradient(90% 80% at 5% 90%, rgba(189,125,120,0.16) 0%, rgba(189,125,120,0) 50%);
}
.hero__eyebrow { font-family: var(--font-hand); font-size: 1.7rem; font-weight: 600; color: var(--accent); transform: rotate(-2deg); margin-bottom: 0.6rem; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 500; max-width: 17ch; }
.hero__text p { color: var(--text-soft); max-width: 48ch; margin-top: 1.6rem; font-size: 1.12rem; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__media { position: relative; min-height: 100vh; }
.hero__media img { filter: saturate(1.05); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(250,243,233,0) 18%);
}
.hero__badge {
  position: absolute; left: -2.5rem; bottom: 3.5rem; z-index: 3;
  background: var(--surface); color: var(--text);
  padding: 1rem 1.4rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-family: var(--font-hand);
  font-size: 1.35rem; line-height: 1.2; transform: rotate(-3deg);
  border: 1px solid var(--line);
}
.hero__badge span { display: block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 0.2rem; }
.hero__scroll { position: absolute; bottom: 1.8rem; left: var(--gutter); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.hero__scroll::after { content: ""; width: 40px; height: 1px; background: var(--muted-dim); animation: line 1.8s var(--ease) infinite; transform-origin: left; }
@keyframes line { 0%,100% { transform: scaleX(0.4); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ===== About ===== */
.about { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: clamp(2rem,5vw,4rem); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__image { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about__image img { transition: transform 0.8s var(--ease); }
.about__image:hover img { transform: scale(1.04); }
.about__text p { color: var(--text-soft); margin-top: 1.1rem; }
.about__text h2 { margin-bottom: 0.3rem; }
.about__stats { list-style: none; display: flex; gap: 2.5rem; margin-top: 2.2rem; flex-wrap: wrap; }
.about__stats li { display: flex; flex-direction: column; }
.about__stats strong { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--accent); line-height: 1; }
.about__stats span { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service { display: block; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.service__link { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--accent); transition: gap 0.3s var(--ease); }
.service:hover .service__link { text-decoration: underline; text-underline-offset: 3px; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 4/4.2; overflow: hidden; }
.service__img img { transition: transform 0.8s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 1.6rem 1.5rem 2rem; }
.service__num { font-family: var(--font-hand); font-size: 1.5rem; color: var(--accent-2); }
.service__body h3 { margin: 0.2rem 0 0.7rem; overflow-wrap: break-word; hyphens: auto; }
.service__body p { color: var(--text-soft); font-size: 0.96rem; line-height: 1.65; }

/* ===== Portfolio ===== */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 1rem; }
.pf { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pf img { transition: transform 0.9s var(--ease); }
.pf:hover img { transform: scale(1.05); }
.pf--tall { grid-row: span 2; }
.pf--wide { grid-column: span 2; }
.pf figcaption {
  position: absolute; left: 1.1rem; bottom: 1rem;
  font-family: var(--font-hand); font-size: 1.25rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(8px); transition: 0.4s var(--ease);
}
.pf:hover figcaption { opacity: 1; transform: translateY(0); }

/* ===== Portfolio-Galerie (filterbar) ===== */
.gfilter { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.6rem; }
.gfilter__btn { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500; color: var(--text-soft); background: transparent; border: 1.5px solid var(--line); border-radius: var(--pill); padding: 0.55rem 1.35rem; cursor: pointer; transition: all 0.3s var(--ease); }
.gfilter__btn:hover { border-color: var(--accent); color: var(--accent); }
.gfilter__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
.gtile { margin: 0; }
.gtile.is-hidden { display: none; }
.gtile__note { display: block; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem 0.15rem; }
.gtile__frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; cursor: pointer; }
.gtile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gtile__frame:hover img { transform: scale(1.05); }
.gtile figcaption { position: absolute; left: 1rem; bottom: 0.9rem; font-family: var(--font-hand); font-size: 1.3rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.45); opacity: 0; transform: translateY(8px); transition: 0.4s var(--ease); pointer-events: none; }
.gtile__frame:hover figcaption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 2rem; background: rgba(35,25,25,0.92); backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: min(92vw, 1100px); display: flex; flex-direction: column; align-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__stage figcaption { color: #fff; font-family: var(--font-hand); font-size: 1.35rem; margin-top: 1rem; }
.lightbox__close, .lightbox__nav { position: absolute; border: none; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.25s var(--ease); }
.lightbox__close { top: 1.2rem; right: 1.4rem; width: 3rem; height: 3rem; font-size: 1.7rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3.3rem; height: 3.3rem; font-size: 2rem; }
.lightbox__prev { left: 1.2rem; } .lightbox__next { right: 1.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }

/* ===== Process ===== */
.process { background: var(--bg-soft); border-radius: var(--radius); }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { padding: 2.4rem 1.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; color: #fff;
  background: var(--accent); width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.98rem; }

/* ===== Quote ===== */
.quote { text-align: center; max-width: 900px; }
.quote blockquote p { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; color: var(--text); }
.quote blockquote p::before { content: "„"; color: var(--accent-2); }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; font-family: var(--font-hand); font-size: 1.35rem; color: var(--accent); }

/* ===== Testimonials (Kundenstimmen) ===== */
.testimonials .section__head { text-align: center; margin-inline: auto; }
.google-rating { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 0.6rem 1.25rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.google-rating:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.google-rating__logo { width: 20px; height: 20px; flex: none; }
.google-rating__score { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.google-rating__stars { color: var(--accent); letter-spacing: 1px; }
.google-rating__count { color: var(--muted); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tcard__stars { color: var(--accent); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 1.1rem; }
.tcard p { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5; color: var(--text); margin-bottom: 1.5rem; flex: 1; }
.tcard footer { display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto; }
.tcard__name { font-weight: 600; color: var(--text); }
.tcard__meta { font-size: 0.82rem; color: var(--muted); }
.testimonials__cta { text-align: center; margin-top: 2.6rem; }
.testimonials__cta a { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent-2-soft); padding-bottom: 2px; transition: border-color 0.3s var(--ease); }
.testimonials__cta a:hover { border-color: var(--accent); }

/* ===== Contact ===== */
.contact__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-hi) 100%);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff; box-shadow: var(--shadow);
}
.contact__grid .eyebrow { color: var(--accent-2-soft); }
.contact__intro h2 { color: #fff; }
.contact__intro p { color: rgba(255,255,255,0.9); margin-top: 1rem; }
.contact__meta { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__meta li { display: flex; flex-direction: column; }
.contact__meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-2-soft); margin-bottom: 0.2rem; }
.contact__meta a, .contact__meta li { color: #fff; }
.contact__meta a:hover { color: var(--accent-2-soft); }

.contact__form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--surface); padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 0.5rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; color: var(--text);
  font-family: var(--font-sans); font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23bd7d78' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; }
.form__note { font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.5; }
.form__note.is-success { color: var(--accent); font-weight: 600; }

/* ===== Footer ===== */
.footer { background: var(--text); color: var(--bg); padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem; margin-top: clamp(3rem,7vw,6rem); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer__logo { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; display: flex; flex-direction: column; }
.footer__logo span { font-family: var(--font-hand); font-size: 1rem; color: var(--accent-2); margin-top: 1px; }
.footer__nav, .footer__legal { display: flex; gap: 1.8rem; }
.footer__nav a, .footer__legal a { font-size: 0.9rem; color: rgba(250,243,233,0.7); transition: color 0.3s var(--ease); }
.footer__nav a:hover, .footer__legal a:hover { color: var(--accent-2); }
.footer__legal a { font-size: 0.82rem; }
.footer__copy { max-width: var(--maxw); margin: 2.5rem auto 0; text-align: center; font-size: 0.82rem; color: rgba(250,243,233,0.55); }

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal-back { font-size: 0.95rem; font-weight: 500; color: var(--accent); transition: color 0.3s var(--ease); }
.legal-back:hover { color: var(--accent-hi); }
.legal { max-width: 820px; margin-inline: auto; padding: 9rem var(--gutter) 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.legal .eyebrow { margin-bottom: 0.4rem; }
.legal .legal__updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin: 2.6rem 0 0.8rem; }
.legal h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 0.9rem; line-height: 1.75; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--accent-2-soft); }
.legal a:hover { border-color: var(--accent); }
/* Buttons innerhalb der Rechts-/Fehlerseiten korrekt einfärben (ohne Link-Unterstrich) */
.legal a.btn { border-bottom: none; }
.legal a.btn--primary { color: #fff; }
.legal a.btn--primary:hover { color: #fff; }
.legal a.btn--ghost { color: var(--accent); }
.legal address { font-style: normal; color: var(--text-soft); margin-bottom: 1rem; line-height: 1.8; }
.legal .note { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: 0.92rem; color: var(--muted); margin: 1.5rem 0; }

/* ===== Modal / Erfolgs-Einblendung ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(58, 42, 42, 0.5); backdrop-filter: blur(5px); }
.modal__card { position: relative; background: var(--surface); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow); transform: translateY(18px) scale(0.96); transition: transform 0.4s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__card .eyebrow { display: block; margin-bottom: 0.3rem; }
.modal__card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.7rem; }
.modal__text { color: var(--text-soft); margin-bottom: 1.8rem; }
.modal__check { width: 78px; height: 78px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--accent-2-soft); display: flex; align-items: center; justify-content: center; }
.modal__check svg { width: 46px; height: 46px; }
.modal__check circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.modal__check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.is-open .modal__check circle { animation: draw 0.5s var(--ease) forwards; }
.modal.is-open .modal__check path { animation: draw 0.4s 0.35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .hero { grid-template-columns: 1fr; }
  .hero__text { padding-top: 6.5rem; min-height: auto; }
  .hero__media { min-height: 60vh; order: -1; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(250,243,233,0) 22%); }
  .hero__badge { display: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__links {
    position: fixed; inset: 0; background: rgba(250,243,233,0.98); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.4rem; color: var(--text); }
  .services__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
  .modal__check circle, .modal__check path { animation: none !important; stroke-dashoffset: 0 !important; }
}
