/* ==========================================================================
   IVI East — redesign
   ========================================================================== */

:root {
  --ink: #0f0d0d;
  --ink-2: #1a1616;
  --ivory: #f6f2ec;
  --ivory-2: #ede7de;
  --paper: #fbf9f6;
  --wine: #8b1c24;
  --wine-2: #a8232d;
  --wine-deep: #5e1117;
  --stone: #7d7670;
  --line: rgba(15, 13, 13, 0.12);
  --line-light: rgba(246, 242, 236, 0.16);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--wine); color: var(--ivory); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #e7b9bd; }
.hero__eyebrow::before { display: none; }

.section__head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 820px; }
.section__head--split {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.section__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
}
.section__title em { color: var(--wine); font-weight: 300; }
.section__intro { max-width: 380px; color: var(--stone); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory); --fill: var(--wine);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: 0.02em; white-space: nowrap;
  background: var(--bg); color: var(--fg); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { --bg: var(--wine); --fill: var(--ivory); }
.btn--primary:hover { color: var(--ink); }
.btn--ghost { --bg: transparent; --fill: var(--ivory); border-color: var(--line-light); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --bg: var(--ink); --fill: var(--wine); }
.btn--light { --bg: var(--ivory); --fg: var(--ink); --fill: var(--wine); }
.btn--light:hover { color: var(--ivory); }
.btn--sm { padding: 12px 20px; font-size: 13px; }

.arrow {
  position: relative; display: inline-block; width: 18px; height: 1px; background: currentColor;
  transition: width .4s var(--ease);
}
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .arrow, a:hover > .arrow, a:hover .arrow { width: 26px; }

/* ---------- Loader: logo wipes in, hairline fills, screen lifts ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-in-out);
}
.loader.done { display: none; }
.loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.loader__logo {
  width: clamp(170px, 18vw, 230px); height: auto;
  clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(6px);
  transition: clip-path 1.1s var(--ease-in-out), opacity .8s var(--ease), transform 1.1s var(--ease);
}
.loader.go .loader__logo { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.loader__line { width: 120px; height: 1px; background: rgba(246, 242, 236, .12); overflow: hidden; opacity: 0; transition: opacity .6s .4s; }
.loader.go .loader__line { opacity: 1; }
.loader__line span { display: block; height: 100%; background: var(--wine-2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader.exit .loader__inner { opacity: 0; transform: translateY(-16px); }
.loader.exit { transform: translateY(-100%); transition-delay: .25s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: transform .5s var(--ease), background .4s, padding .4s, box-shadow .4s;
}
.nav__inner { display: flex; align-items: center; gap: 32px; }
.nav__logo { position: relative; z-index: 60; }
.nav__logo { display: grid; }
.nav__logo-img { grid-area: 1 / 1; height: 46px; width: auto; transition: opacity .4s, height .4s; }
.nav__logo-img--dark { opacity: 0; }
.nav.scrolled .nav__logo-img { height: 40px; }
.nav.scrolled .nav__logo-img--light { opacity: 0; }
.nav.scrolled .nav__logo-img--dark { opacity: 1; }
body.menu-open .nav .nav__logo-img--light { opacity: 1; }
body.menu-open .nav .nav__logo-img--dark { opacity: 0; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; color: rgba(246, 242, 236, .82); transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav.scrolled {
  padding: 10px 0; background: rgba(246, 242, 236, .82);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .nav__links a { color: rgba(15, 13, 13, .7); }
.nav.scrolled .nav__links a:hover, .nav.scrolled .nav__links a.active { color: var(--ink); }
.nav.hidden { transform: translateY(-100%); }

.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 60; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease), background .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav.scrolled .nav__burger span { background: var(--ink); }
body.menu-open .nav__burger span { background: var(--ivory); }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-in-out);
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.15;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__links a:hover { color: var(--wine-2); font-style: italic; }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; color: rgba(246, 242, 236, .6); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(120% 80% at 80% 20%, #2a1416 0%, var(--ink) 55%);
  color: var(--ivory); display: flex; align-items: center; overflow: hidden;
  padding: 130px 0 90px;
}
.hero__threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__threads path {
  fill: none; stroke: var(--wine-2); stroke-width: 1; opacity: .35;
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
}
body.is-loaded .hero__threads path { animation: draw 3.2s var(--ease-in-out) forwards, sway 9s ease-in-out 3.2s infinite alternate; }
body.is-loaded .hero__threads path:nth-child(2) { animation-delay: .2s, 3.4s; opacity: .22; }
body.is-loaded .hero__threads path:nth-child(3) { animation-delay: .4s, 3.6s; opacity: .14; }
body.is-loaded .hero__threads path:nth-child(4) { animation-delay: .6s, 3.8s; opacity: .12; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { to { transform: translateY(-24px); } }

.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 2; }
.hero__eyebrow { color: rgba(246, 242, 236, .7); letter-spacing: .16em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine-2); box-shadow: 0 0 0 0 rgba(168, 35, 45, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(168, 35, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 35, 45, 0); } }

.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 7.4vw, 112px); line-height: .98; letter-spacing: -0.03em; margin-bottom: 32px;
}
.hero__title em { color: #e2a0a5; font-weight: 300; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
body.is-loaded .line > span { transform: none; }
body.is-loaded .line:nth-child(2) > span { transition-delay: .1s; }
body.is-loaded .line:nth-child(3) > span { transition-delay: .2s; }

.hero__lead, .hero__actions, .hero__eyebrow {
  opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}
.hero__lead { max-width: 480px; font-size: 18px; color: rgba(246, 242, 236, .72); margin-bottom: 40px; transition-delay: .6s; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; transition-delay: .72s; }
.hero__eyebrow { transition-delay: .3s; }
body.is-loaded .hero__lead, body.is-loaded .hero__actions, body.is-loaded .hero__eyebrow { opacity: 1; transform: none; }

.hero__visual { position: relative; }
.hero__img {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  clip-path: inset(100% 0 0 0 round 220px 220px 18px 18px);
  transition: clip-path 1.6s var(--ease-in-out) .15s;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 2.4s var(--ease) .15s; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 13, 13, .55)); }
body.is-loaded .hero__img { clip-path: inset(0 0 0 0 round 220px 220px 18px 18px); }
body.is-loaded .hero__img img { transform: scale(1.06); }

.hero__badge {
  position: absolute; left: -54px; top: 18%; width: 132px; height: 132px; border-radius: 50%;
  background: var(--wine); display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.6) rotate(-30deg); transition: opacity .8s var(--ease) 1.2s, transform 1.2s var(--ease) 1.2s;
}
body.is-loaded .hero__badge { opacity: 1; transform: none; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { fill: var(--ivory); font: 600 9.5px var(--sans); letter-spacing: 2.6px; }
.hero__badge-core { font-family: var(--serif); font-size: 38px; font-weight: 300; line-height: 1; }
.hero__badge-core sup { font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__card {
  position: absolute; right: -20px; bottom: 36px; padding: 16px 20px; border-radius: 14px;
  background: rgba(246, 242, 236, .1); border: 1px solid var(--line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) 1.4s, transform .8s var(--ease) 1.4s;
}
body.is-loaded .hero__card { opacity: 1; transform: none; }
.hero__card-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 236, .6); }
.hero__card-value { font-size: 14px; font-weight: 600; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-light); border-radius: 20px; z-index: 2;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--ivory); border-radius: 2px; animation: scrolly 2s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Clients ---------- */
.clients { padding: 56px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 84px; width: auto; margin: 0 28px; object-fit: contain;
  filter: grayscale(1) contrast(1.1); opacity: .55; mix-blend-mode: multiply;
  transition: filter .4s, opacity .4s, transform .4s var(--ease);
}
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { background: var(--ivory); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; padding: 44px 36px 40px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 460px;
  transition: color .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wine);
  clip-path: circle(0% at 100% 0%); transition: clip-path .9s var(--ease-in-out);
}
.service:hover { color: var(--ivory); transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(94, 17, 23, .45); }
.service:hover::before { clip-path: circle(150% at 100% 0%); }
.service__num { position: absolute; top: 30px; right: 34px; font-family: var(--serif); font-size: 15px; color: var(--stone); transition: color .5s; }
.service:hover .service__num { color: rgba(246, 242, 236, .6); }
.service__icon { width: 52px; height: 52px; fill: none; stroke: var(--wine); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; transition: stroke .5s, transform .6s var(--ease); }
.service:hover .service__icon { stroke: var(--ivory); transform: scale(1.1) rotate(-6deg); }
.service h3 { font-family: var(--serif); font-size: 40px; font-weight: 300; letter-spacing: -.01em; margin-top: 60px; }
.service__tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--wine); margin: 2px 0 18px; transition: color .5s; }
.service:hover .service__tag { color: #f0c3c6; }
.service__text { color: var(--stone); font-size: 15px; transition: color .5s; }
.service:hover .service__text { color: rgba(246, 242, 236, .82); }
.service__link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 118%; object-fit: cover; object-position: 30% center; }
.about__tag {
  position: absolute; left: 24px; bottom: 24px; right: 24px; width: fit-content;
  padding: 12px 18px; border-radius: 999px; background: rgba(246, 242, 236, .9); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600;
}
.about__copy > p { color: var(--stone); font-size: 17px; max-width: 540px; }
.about__copy .section__title { margin-bottom: 28px; font-size: clamp(32px, 4.2vw, 56px); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.stat { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 28px; }
.stat__num, .stat__plus { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.stat__plus { color: var(--wine); }
.stat__label { display: block; margin-top: 8px; font-size: 13px; color: var(--stone); }

/* ---------- Products ---------- */
.products { background: var(--ivory); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: block; perspective: 900px; }
.product__img {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--ivory-2);
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.product__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(94, 17, 23, .55)); opacity: 0; transition: opacity .6s var(--ease);
}
.product:hover .product__img { box-shadow: 0 30px 60px -25px rgba(15, 13, 13, .45); }
.product:hover .product__img img { transform: scale(1.08); }
.product:hover .product__img::after { opacity: 1; }
.product__meta { display: flex; align-items: baseline; gap: 14px; padding: 18px 4px 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; position: relative; }
.product__meta::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.product:hover .product__meta::after { transform: scaleX(1); }
.product__num { font-size: 12px; color: var(--stone); font-weight: 600; }
.product h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; transition: color .4s; }
.product:hover h3 { color: var(--wine); font-style: italic; }
.product .arrow { margin-left: auto; color: var(--wine); opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease), width .4s var(--ease); }
.product:hover .arrow { opacity: 1; transform: none; }
.products__cta { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--ivory); overflow: hidden; }
.process .section__title em { color: #e2a0a5; }
.process .eyebrow { color: #e7b9bd; }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-light); }
.process__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--wine), #e2a0a5); transform: scaleX(0); transform-origin: left; }
.step { position: relative; padding-top: 44px; }
.step__dot {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(246, 242, 236, .4); transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.lit .step__dot { background: var(--wine-2); border-color: var(--wine-2); box-shadow: 0 0 0 6px rgba(168, 35, 45, .2); }
.step__num { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 242, 236, .5); }
.step h3 { font-family: var(--serif); font-size: 28px; font-weight: 300; margin: 12px 0 12px; line-height: 1.15; }
.step p { color: rgba(246, 242, 236, .62); font-size: 15px; max-width: 260px; }

/* ---------- Why ---------- */
.why { background: var(--wine-deep); color: var(--ivory); overflow: hidden; }
.why__bg { position: absolute; inset: -12% 0; z-index: 0; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.why::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, var(--wine-deep) 30%, rgba(94, 17, 23, .7)); }
.why__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why .section__title { margin-bottom: 26px; }
.why .section__title em { color: #f0c3c6; }
.why__copy p:not(.eyebrow) { color: rgba(246, 242, 236, .75); font-size: 17px; max-width: 480px; }
.why__cards { display: grid; gap: 16px; }
.why-card {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; align-items: start;
  padding: 28px 30px; border-radius: var(--radius);
  background: rgba(246, 242, 236, .06); border: 1px solid var(--line-light);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .5s, transform .6s var(--ease), border-color .5s;
}
.why-card:hover { background: rgba(246, 242, 236, .12); border-color: rgba(246, 242, 236, .3); transform: translateX(-10px); }
.why-card__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; transition: transform .6s var(--ease); }
.why-card:hover .why-card__icon { transform: rotate(-12deg) scale(1.06); }
.why-card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--wine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin-bottom: 6px; }
.why-card p { margin: 0; color: rgba(246, 242, 236, .68); font-size: 15px; }

/* ---------- Offices ---------- */
.offices { background: var(--paper); }
.offices__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.office {
  position: relative; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.office::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.office:hover { color: var(--ivory); padding-left: 28px; padding-right: 28px; }
.office:hover::before { transform: scaleY(1); }
.office__idx { font-size: 13px; color: var(--stone); font-weight: 600; }
.office__name { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; transition: font-style .3s; }
.office:hover .office__name { font-style: italic; }
.office__note { font-size: 14px; color: var(--stone); text-align: right; transition: color .5s; }
.office:hover .office__note { color: rgba(246, 242, 236, .7); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--ivory); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -.03em; margin-bottom: 48px; }
.contact__title em { color: #e2a0a5; }
.contact__details { display: flex; flex-direction: column; gap: 6px; color: rgba(246, 242, 236, .7); }
.contact__details a { width: fit-content; transition: color .3s; }
.contact__details a:hover { color: var(--ivory); }
.contact__big { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); color: var(--ivory); margin-bottom: 12px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact__big:hover { background-size: 100% 1px; }
.contact address { font-style: normal; margin-top: 18px; font-size: 14px; line-height: 1.7; color: rgba(246, 242, 236, .5); }

.form { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line-light); }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea {
  width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1px solid var(--line-light);
  background: transparent; color: var(--ivory); font: 16px var(--sans); outline: none; resize: vertical; border-radius: 0;
  transition: border-color .4s;
}
.field > label:not(.chip) { position: absolute; left: 0; top: 20px; color: rgba(246, 242, 236, .5); font-size: 15px; pointer-events: none; transition: transform .4s var(--ease), font-size .4s var(--ease), color .4s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: #e2a0a5; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px); font-size: 12px; color: #e2a0a5; }
.field--chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field__label { width: 100%; font-size: 12px; color: rgba(246, 242, 236, .5); margin-bottom: 4px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip span:hover { border-color: rgba(246, 242, 236, .5); }
.chip input:checked + span { background: var(--wine-2); border-color: var(--wine-2); }
.chip input:focus-visible + span { outline: 2px solid #e2a0a5; outline-offset: 2px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246, 242, 236, .6); border-top: 1px solid var(--line-light); padding: 72px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__word { display: block; font-family: var(--serif); font-size: 44px; font-weight: 300; color: var(--ivory); line-height: 1; margin-bottom: 14px; }
.footer__word em { color: var(--wine-2); }
.footer__brand p { max-width: 280px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--wine-2); pointer-events: none; mix-blend-mode: normal;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.grow { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(168, 35, 45, .18); backdrop-filter: blur(2px); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* service cards keep their own transform transitions after reveal */
.service.reveal.in { transition: opacity 1s var(--ease) var(--d, 0s), transform .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); }
.why-card.reveal.in { transition: opacity 1s var(--ease) var(--d, 0s), transform .6s var(--ease), background .5s, border-color .5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 20px auto 0; width: 100%; }
  .hero__badge { left: -20px; }
  .hero__card { right: -10px; }
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: 40px; }
  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .products__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .hero__badge { width: 104px; height: 104px; left: -6px; }
  .hero__badge-core { font-size: 30px; }
  .hero__card { right: 8px; left: 8px; bottom: 16px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding: 16px 20px; }
  .products__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .office { grid-template-columns: 40px 1fr; }
  .office__note { grid-column: 2; text-align: left; margin-top: -14px; }
  .stat:nth-child(odd) { padding-right: 14px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .why-card { grid-template-columns: 1fr; padding: 24px; }
  .why-card__icon { grid-row: auto; margin-bottom: 16px; }
  .why-card:hover { transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .marquee__track img { height: 64px; margin: 0 16px; }
}

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

/* ---------- Sticky WhatsApp CTA ---------- */
.wa { --wa-green: #25d366; position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 80; font-family: var(--sans); }
body.is-loading .wa { opacity: 0; pointer-events: none; }
.wa { transition: opacity .6s var(--ease) .6s; }

.wa__fab {
  position: relative; display: flex; align-items: center; margin-left: auto;
  height: 60px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wine); color: var(--ivory);
  box-shadow: 0 14px 34px -10px rgba(94, 17, 23, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: translateY(20px) scale(.8); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s, background .4s, box-shadow .4s;
}
body.is-loaded .wa__fab { transform: none; opacity: 1; transition-delay: 1.2s, 1.2s, 0s, 0s; }
.wa__fab:hover { background: var(--wine-2); box-shadow: 0 18px 40px -10px rgba(94, 17, 23, .85); }
.wa__fab::before {
  content: ""; position: absolute; right: 0; top: 0; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--wine-2); animation: waRing 2.8s var(--ease) infinite; pointer-events: none;
}
.wa.open .wa__fab::before { animation: none; opacity: 0; }
@keyframes waRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.wa__fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 600;
  padding-left: 0; opacity: 0; transition: max-width .6s var(--ease), padding .6s var(--ease), opacity .4s;
}
.wa__fab:hover .wa__fab-label, .wa.peek .wa__fab-label { max-width: 140px; padding-left: 22px; opacity: 1; }
.wa.open .wa__fab-label { max-width: 0; padding-left: 0; opacity: 0; }
.wa__fab-icon { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.wa__fab-icon svg { position: absolute; width: 26px; height: 26px; transition: transform .5s var(--ease), opacity .3s; }
.wa__ico-chat { fill: currentColor; }
.wa__ico-close { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.6); }
.wa.open .wa__ico-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.wa.open .wa__ico-close { opacity: 1; transform: none; }
.wa__badge {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--wa-green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--ink); transform: scale(0); transition: transform .5s var(--ease);
}
.wa.has-badge .wa__badge { transform: scale(1); }

/* teaser bubble */
.wa__teaser {
  position: absolute; right: 0; bottom: 76px; width: 240px; padding: 14px 34px 14px 16px;
  background: var(--paper); color: var(--ink); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 20px 40px -18px rgba(15, 13, 13, .45), 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.wa__teaser strong { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.wa__teaser span { color: var(--stone); }
.wa.peek .wa__teaser { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.wa__teaser-close { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; background: none; color: var(--stone); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%; }
.wa__teaser-close:hover { background: var(--ivory-2); color: var(--ink); }

/* panel */
.wa__panel {
  position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px);
  background: var(--paper); color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(15, 13, 13, .55), 0 0 0 1px var(--line);
  transform-origin: bottom right; opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.wa.open .wa__panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

.wa__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 20px; background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.wa__head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 35, 45, .5), transparent 65%); }
.wa__avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; flex: none; }
.wa__avatar img { width: 30px; height: auto; object-fit: cover; object-position: left; aspect-ratio: 1.6; }
.wa__online { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--wa-green); border: 2px solid var(--ink); }
.wa__who { display: flex; flex-direction: column; line-height: 1.3; position: relative; z-index: 1; }
.wa__who strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.wa__who span { font-size: 11px; color: rgba(246, 242, 236, .55); letter-spacing: .04em; }
.wa__close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: var(--ivory); font-size: 20px; line-height: 1; cursor: pointer; position: relative; z-index: 1; transition: background .3s; }
.wa__close:hover { background: rgba(246, 242, 236, .12); }

.wa__body { padding: 20px; background: var(--ivory) radial-gradient(rgba(15, 13, 13, .05) 1px, transparent 1px) 0 0 / 14px 14px; }
.wa__typing, .wa__bubble { background: #fff; border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 0 var(--line); }
.wa__typing { display: inline-flex; gap: 4px; padding: 12px 14px; margin-bottom: 4px; }
.wa__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); animation: waDot 1s infinite ease-in-out; }
.wa__typing i:nth-child(2) { animation-delay: .15s; }
.wa__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa__bubble { padding: 12px 14px; font-size: 14px; line-height: 1.55; display: none; }
.wa__bubble em { font-family: var(--serif); color: var(--wine); }
.wa.typed .wa__typing { display: none; }
.wa.typed .wa__bubble { display: block; animation: waPop .45s var(--ease); }
@keyframes waPop { from { opacity: 0; transform: translateY(6px) scale(.97); } }

.wa__form { margin-top: 16px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.wa.typed .wa__form { opacity: 1; transform: none; }
.wa__topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wa__topics label { position: relative; }
.wa__topics input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wa__topics span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.wa__topics label:hover span { border-color: var(--wine); }
.wa__topics input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.wa__topics input:focus-visible + span { outline: 2px solid var(--wine-2); outline-offset: 2px; }
.wa__msg { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: 14px/1.5 var(--sans); color: var(--ink); resize: none; outline: none; transition: border-color .3s, box-shadow .3s; }
.wa__msg:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(139, 28, 36, .12); }
.wa__send {
  width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wa-green); color: #0b3d1f; font: 700 14px var(--sans);
  transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}
.wa__send svg { width: 18px; height: 18px; fill: currentColor; }
.wa__send:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(37, 211, 102, .9); filter: brightness(1.05); }
.wa__alt { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--stone); }
.wa__alt a { color: var(--wine); font-weight: 600; }

@media (max-width: 560px) {
  .wa__panel { position: fixed; left: 12px; right: 12px; bottom: 88px; width: auto; max-width: none; }
  .wa__teaser { width: 220px; }
}

/* ==========================================================================
   WordPress theme additions: dropdown nav, mobile sub-menu, footer logo, CTA band
   ========================================================================== */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__drop { position: relative; }
.nav__drop-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.nav__drop:hover .nav__caret, .nav__drop:focus-within .nav__caret { transform: rotate(225deg) translateY(-2px); }
.nav__drop-panel {
  position: absolute; left: 50%; top: calc(100% + 18px); width: 250px; padding: 8px;
  background: var(--paper); border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(15, 13, 13, .45), 0 0 0 1px var(--line);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.nav__drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__drop:hover .nav__drop-panel, .nav__drop:focus-within .nav__drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav__links .nav__drop-panel a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; color: var(--ink) !important; transition: background .25s; }
.nav__links .nav__drop-panel a::after { display: none; }
.nav__drop-panel a:hover { background: var(--ivory-2); }
.nav__drop-panel strong { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.nav__drop-panel span { font-size: 12px; color: var(--stone); }
.menu__sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 10px 18px; border-left: 1px solid var(--line-light); margin-left: 6px; }
.menu__links .menu__sub a { font-size: clamp(24px, 6vw, 34px); color: rgba(246, 242, 236, .75); }
.menu__links { gap: 2px; }
.menu__links > a { font-size: clamp(34px, 9vw, 54px); }

.footer__logo { width: 170px; height: auto; margin-bottom: 18px; }
.footer a:hover { color: var(--ivory); }

/* Closing CTA band (theme footer, all pages except home + contact) */
.cta-band { position: relative; overflow: hidden; background: var(--wine-deep); color: var(--ivory); padding: clamp(90px, 12vw, 150px) 0; text-align: center; }
.cta-band__bg { position: absolute; inset: -15% 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 120% at 50% 100%, rgba(139, 28, 36, .55), var(--wine-deep) 70%); }
.cta-band__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-band__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.03em; max-width: 900px; margin-bottom: 40px; }
.cta-band__title em { color: #f0c3c6; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-band .eyebrow::before { display: none; }

/* Plain (non-Elementor) content fallback */
.ivi-plain { padding: 180px 0 120px; background: var(--paper); min-height: 60vh; }
.ivi-plain__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 64px); margin-bottom: 28px; }
.ivi-plain__content { max-width: 760px; font-size: 17px; }
.ivi-plain__content a { color: var(--wine); text-decoration: underline; }
