/* ==========================================================================
   CUPԼԻ — paper cups. Main stylesheet (mobile-first).
   ========================================================================== */

:root {
  --green: #123F2B;
  --green-deep: #0C2E1F;
  --green-soft: #1B4A35;
  --burgundy: #6D1730;
  --burgundy-dark: #561125;
  --olive: #747653;
  --cream: #F6F1E8;
  --cream-dark: #E9DFC9;
  --sand: #DCD3C0;
  --white: #FFFFFF;
  --ink: #17231D;
  --muted: #5C6660;
  --line: rgba(18, 63, 43, .14);
  --line-light: rgba(246, 241, 232, .18);

  --font-display: "Cormorant Garamond", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-brand: "Noto Serif Armenian", "Cormorant Garamond", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 60px -30px rgba(12, 46, 31, .35);
}

/* Armenian text renders better in Noto for headings (Cormorant has no Armenian glyphs) */
html[lang="hy"] {
  --font-display: "Noto Serif Armenian", "Cormorant Garamond", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.section--green :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--cream); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; background: var(--burgundy); color: var(--white); border-radius: var(--radius);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--lg { width: 34px; height: 34px; }
.icon--xl { width: 52px; height: 52px; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-brand); font-weight: 500; font-size: 1.55rem; line-height: 1;
  letter-spacing: .04em; white-space: nowrap;
}
.wordmark__arm { color: inherit; letter-spacing: .02em; }
.wordmark--lg { font-size: 2.3rem; }

/* ---------- Typography ---------- */
.eyebrow {
  display: block;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 20px;
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: -2px 12px 0 0; background: currentColor; }
.eyebrow--light { color: var(--cream-dark); }
html[lang="hy"] .eyebrow { letter-spacing: .06em; text-transform: none; font-size: .85rem; }

.section-title, .display-title {
  font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em;
  color: var(--green);
}
.section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.display-title { font-size: clamp(2.6rem, 7.5vw, 6rem); color: var(--cream); }
.section-title--light { color: var(--cream); }
html[lang="hy"] .section-title, html[lang="hy"] .display-title { line-height: 1.2; letter-spacing: 0; }
html[lang="hy"] .section-title { font-size: clamp(1.8rem, 4.2vw, 3rem); }
html[lang="hy"] .display-title { font-size: clamp(2.2rem, 6vw, 4.6rem); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: var(--cream); --bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
html[lang="hy"] .btn { letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: .72rem; }
.btn--lg { min-height: 58px; padding: 16px 34px; }
.btn--dark:hover { --bg: var(--burgundy); --bd: var(--burgundy); }
.btn--accent { --bg: var(--burgundy); --bd: var(--burgundy); --fg: var(--white); }
.btn--accent:hover { --bg: var(--green); --bd: var(--green); }
.btn--light { --bg: var(--cream); --bd: var(--cream); --fg: var(--green); }
.btn--light:hover { --bg: var(--white); --bd: var(--white); --fg: var(--burgundy); }
.btn--ghost-light { --bg: transparent; --bd: rgba(246, 241, 232, .55); --fg: var(--cream); }
.btn--ghost-light:hover { --bg: var(--cream); --bd: var(--cream); --fg: var(--green); }
.btn--messenger { --bg: transparent; --bd: var(--line); --fg: var(--green); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.btn--messenger:hover { --bg: var(--green); --bd: var(--green); --fg: var(--cream); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--cream);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 232, .94); color: var(--green);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.site-header__logo { margin-right: auto; position: relative; z-index: 2; }
.site-header__actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.site-header__cta { display: none; }

.lang-switch { display: flex; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch li + li::before { content: "|"; opacity: .35; margin: 0 2px; }
.lang-switch a { display: inline-block; padding: 8px 5px; opacity: .65; transition: opacity .25s; }
.lang-switch a:hover, .lang-switch a.is-active { opacity: 1; }
.lang-switch a.is-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; opacity: .9;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile navigation (full-screen overlay) */
.site-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--green); color: var(--cream);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility 0s .4s;
  overflow-y: auto;
}
.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open .site-header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open { overflow: hidden; }
.site-nav__list { display: grid; gap: 6px; }
.site-nav__link {
  display: inline-block; padding: 4px 0;
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.15;
}
.site-nav__mobile-extra { display: grid; gap: 24px; justify-items: start; }
.site-nav__phones { display: grid; gap: 8px; font-size: 1rem; }
.site-nav__phones a { display: inline-flex; align-items: center; gap: 10px; opacity: .85; }

@media (min-width: 1100px) {
  .menu-toggle, .site-nav__mobile-extra { display: none; }
  .site-header__cta { display: inline-flex; }
  .site-header__logo { margin-right: 0; }
  .site-nav {
    position: static; inset: auto; z-index: auto; flex: 1; flex-direction: row; justify-content: center;
    padding: 0; background: none; color: inherit; opacity: 1; visibility: visible; transform: none; overflow: visible;
  }
  .site-nav__list { display: flex; gap: clamp(14px, 2vw, 30px); }
  .site-nav__link {
    position: relative; font-family: var(--font-body); font-size: .86rem; font-weight: 500; padding: 8px 0;
  }
  .site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
  }
  .site-nav__link:hover::after, .site-nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: var(--cream); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head .lead { margin-top: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; gap: 22px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head--split .lead { margin: 0; max-width: 420px; justify-self: end; }
}

/* ---------- Photos & brand panel ---------- */
.photo { position: relative; display: block; overflow: hidden; background: var(--cream-dark); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--panel { display: grid; place-items: center; min-height: 260px; background: var(--green); color: var(--cream); }
.photo__mark { font-family: var(--font-brand); font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: .06em; opacity: .9; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 1040px); display: flex; align-items: flex-end;
  background: var(--green-deep); color: var(--cream); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero--video .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 46, 31, .55) 0%, rgba(12, 46, 31, .1) 30%, rgba(12, 46, 31, .75) 62%, var(--green-deep) 100%);
}
.hero__photo { position: absolute; inset: 0; background: var(--green); }
.hero__photo img { animation: heroZoom 14s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__mark {
  position: absolute; right: -4vw; bottom: -6vw; font-family: var(--font-brand); line-height: .8;
  font-size: clamp(9rem, 30vw, 30rem); color: transparent; -webkit-text-stroke: 1px rgba(246, 241, 232, .16);
  letter-spacing: .02em; white-space: nowrap; user-select: none;
}
.hero__inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(80px, 12vh, 130px); }
.hero__content { max-width: 680px; }
.hero__title {
  font-family: var(--font-display); font-weight: 500; line-height: .98; letter-spacing: -.015em;
  font-size: clamp(3.1rem, 11vw, 7.4rem); margin-bottom: 26px;
}
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; color: var(--cream-dark); }
html[lang="hy"] .hero__title { font-size: clamp(2.5rem, 8vw, 5.6rem); line-height: 1.12; letter-spacing: 0; }
html[lang="hy"] .hero__title em { font-style: normal; }
html[lang="ru"] .hero__title { font-size: clamp(2.7rem, 8.6vw, 6.2rem); }
.hero__text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 480px; opacity: .92; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid rgba(246, 241, 232, .5); border-radius: 20px; display: none;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--cream); border-radius: 2px; animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 960px) {
  .hero { align-items: center; }
  .hero__media { left: 42%; }
  .hero--video .hero__media::after { background: linear-gradient(90deg, var(--green-deep) 0%, rgba(12, 46, 31, .55) 28%, rgba(12, 46, 31, .05) 62%, rgba(12, 46, 31, .25) 100%); }
  .hero__inner { padding-bottom: 80px; }
  .hero__content { max-width: min(680px, 44vw); }
  .hero__title { font-size: clamp(3rem, 6vw, 7.4rem); }
  html[lang="ru"] .hero__title { font-size: clamp(2.6rem, 4.9vw, 6.2rem); }
  html[lang="hy"] .hero__title { font-size: clamp(2.3rem, 4.5vw, 5.6rem); }
  .hero__scroll { display: block; }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.about__badge {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--green);
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
}
.about__content > p:not(.eyebrow):not(.lead) { color: var(--muted); margin-top: 18px; max-width: 580px; }
.about__content .lead { margin-top: 26px; }
.about__points { display: grid; gap: 1px; margin-top: 44px; background: var(--line); border-block: 1px solid var(--line); }
.about__points li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 0; background: var(--cream); }
.about__num { grid-row: span 2; font-family: var(--font-display); font-size: 1.1rem; color: var(--burgundy); }
.about__points strong { font-weight: 600; color: var(--green); }
.about__points li > span:last-child { color: var(--muted); font-size: .95rem; }
@media (min-width: 640px) {
  .about__points { grid-template-columns: 1fr 1fr; }
  .about__points li { padding: 22px 20px 22px 0; }
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; }
  .about__photo { aspect-ratio: 4 / 5.2; }
}

/* ---------- Products ---------- */
.products { background: var(--white); }
.products__grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.product-card { display: flex; flex-direction: column; }
.product-card__media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; }
.product-card__media .photo { height: 100%; transition: transform 1.1s var(--ease-out); }
.product-card:hover .product-card__media .photo { transform: scale(1.04); }
.product-card__body { padding-top: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.product-card__num { grid-row: span 2; font-family: var(--font-display); color: var(--burgundy); font-size: 1.05rem; padding-top: 4px; }
.product-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--green); }
html[lang="hy"] .product-card h3 { font-size: 1.3rem; }
.product-card p { color: var(--muted); margin-top: 6px; }
.products__note {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.products__note p { max-width: 560px; color: var(--green); font-size: 1.08rem; }
@media (min-width: 640px) { .products__grid { grid-template-columns: 1fr 1fr; } }
/* Editorial layout on desktop: [1 1 2] / [3 4 4] */
@media (min-width: 960px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); row-gap: clamp(40px, 5vw, 64px); }
  .product-card__media { aspect-ratio: auto; height: clamp(380px, 36vw, 520px); }
  .product-card--wide, .product-card:nth-child(4) { grid-column: span 2; }
}

/* ---------- Branding ---------- */
.branding { overflow: hidden; }
.branding::before {
  content: ""; position: absolute; right: -20vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 118, 83, .35), transparent 65%); pointer-events: none;
}
.branding__intro { display: grid; gap: 28px; position: relative; }
.branding__copy { display: grid; gap: 16px; max-width: 620px; }
/* Small drawn cup with rising steam in the top-right corner of the intro. */
.branding__steam { position: absolute; right: 0; top: clamp(-64px, -6vw, -44px); width: clamp(52px, 6vw, 76px); height: auto; overflow: visible; pointer-events: none; }
.branding__steam-cup { fill: var(--cream); }
.branding__steam-band { fill: var(--burgundy); }
.branding__steam-rim { fill: var(--white); }
.steam path { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: steam 3.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.2s; }
.steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(10px) scaleY(.8); }
  35% { opacity: .6; }
  100% { opacity: 0; transform: translateY(-16px) scaleY(1.1); }
}
@media (prefers-reduced-motion: reduce) { .steam path { animation: none; opacity: .45; } }
.branding__copy .lead { color: var(--cream); }
.branding__copy p:not(.lead) { color: rgba(246, 241, 232, .75); }
.branding__collage { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: clamp(16px, 2.4vw, 28px); }
.branding__shot { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.branding__shot .photo { height: 100%; transition: transform 1.2s var(--ease-out); }
.branding__shot:hover .photo { transform: scale(1.04); }
.steps { display: grid; gap: 1px; margin-top: clamp(56px, 8vw, 96px); background: var(--line-light); border-block: 1px solid var(--line-light); counter-reset: s; }
.steps__item { background: var(--green); padding: 30px 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; }
.steps__num { grid-row: span 2; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--olive); }
.steps__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
html[lang="hy"] .steps__item h3 { font-size: 1.2rem; }
.steps__item p { color: rgba(246, 241, 232, .72); margin-top: 6px; }
.branding__cta { margin-top: 48px; display: flex; justify-content: center; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps__item { padding: 34px 28px 34px 0; grid-template-columns: 1fr; }
  .steps__item + .steps__item { padding-left: 28px; }
  .steps__num { grid-row: auto; margin-bottom: 18px; }
  .branding__collage--2 { grid-template-columns: 7fr 5fr; align-items: start; }
  .branding__collage--2 .branding__shot:first-child { aspect-ratio: 5 / 4; }
  .branding__collage--2 .branding__shot:last-child { aspect-ratio: 16 / 10; margin-top: clamp(40px, 10vw, 160px); }
  .branding__collage--3 { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .branding__intro { grid-template-columns: 1.25fr 1fr; align-items: end; column-gap: 60px; }
  .branding__intro .eyebrow { grid-column: 1 / -1; }
}
/* ---------- Why ---------- */
.why__grid { display: grid; gap: 20px; }
.feature {
  padding: 34px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--cream); color: var(--burgundy); margin-bottom: 26px;
  transition: background-color .4s, color .4s;
}
.feature:hover .feature__icon { background: var(--green); color: var(--cream); }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--green); margin-bottom: 10px; }
html[lang="hy"] .feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Details / anatomy ---------- */
.details { background: var(--white); }
.details__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.anatomy { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.anatomy .photo img { height: auto; }
.hotspot {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center;
  border-radius: 50%; background: var(--burgundy); color: var(--white); font-weight: 600; font-size: .95rem;
  box-shadow: 0 0 0 6px rgba(246, 241, 232, .35); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.hotspot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(246, 241, 232, .8);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
[data-active] .hotspot { opacity: .45; }
[data-active="rim"] .hotspot[data-part="rim"], [data-active="body"] .hotspot[data-part="body"], [data-active="bottom"] .hotspot[data-part="bottom"] {
  opacity: 1; transform: scale(1.18); background: var(--green); box-shadow: 0 0 0 8px rgba(246, 241, 232, .5);
}
.anatomy__list { display: grid; gap: 14px; }
.anatomy__item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: default;
  transition: border-color .35s, background-color .35s, transform .35s var(--ease);
}
.anatomy__item:hover, .anatomy__item:focus-visible, .anatomy__item.is-active { border-color: var(--burgundy); background: var(--cream); }
.anatomy__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--burgundy); color: var(--white); font-weight: 600;
}
.anatomy__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--green); }
html[lang="hy"] .anatomy__item h3 { font-size: 1.2rem; }
.anatomy__item p { color: var(--muted); margin-top: 6px; }
/* Close-up thumbnails (round, like on the CUPԼԻ infographic) */
.anatomy__item:has(.anatomy__photo) { grid-template-columns: auto 1fr auto; align-items: center; }
.anatomy__photo { width: 76px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line); }
.anatomy__photo .photo { height: 100%; }
@media (min-width: 960px) {
  .details__grid { grid-template-columns: 1fr 1fr; }
  .anatomy__photo { width: 84px; }
}

/* ---------- Gallery (masonry: images keep their own proportions, nothing is cropped) ---------- */
.gallery__grid { columns: 2 160px; column-gap: clamp(10px, 1.6vw, 20px); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 20px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery__item > a { display: block; position: relative; }
.gallery__item .photo { transition: transform 1s var(--ease-out); }
.gallery__item .photo img { height: auto; }
.gallery__item a:hover .photo { transform: scale(1.04); }
.gallery__zoom {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(246, 241, 232, .92); color: var(--green);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery__item a:hover .gallery__zoom, .gallery__item a:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (min-width: 760px) { .gallery__grid { columns: 3; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(8, 26, 18, .96); color: var(--cream);
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; max-width: min(92vw, 1400px); }
.lightbox__figure img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__counter { font-size: .85rem; letter-spacing: .1em; opacity: .7; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(246, 241, 232, .1); border: 1px solid rgba(246, 241, 232, .25); color: var(--cream); cursor: pointer;
  transition: background-color .3s;
}
.lightbox__btn:hover { background: rgba(246, 241, 232, .22); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -26px; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin: 0; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* ---------- Facebook ---------- */
.facebook { background: var(--white); padding-block: clamp(60px, 8vw, 110px); }
.facebook__inner { display: grid; gap: 30px; }
.facebook__card {
  display: grid; gap: 26px; align-items: center;
  padding: clamp(30px, 5vw, 64px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); color: var(--cream);
}
.facebook__card p:not(.eyebrow) { color: rgba(246, 241, 232, .8); margin-top: 14px; max-width: 520px; }
.facebook__logo { color: var(--cream); }
.facebook__card .btn { justify-self: start; }
.facebook__feed { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); display: grid; place-items: center; }
.facebook__feed iframe { width: 100%; max-width: 500px; }
@media (min-width: 960px) {
  .facebook__card { grid-template-columns: auto 1fr auto; gap: 40px; }
  .facebook__inner--plugin { grid-template-columns: 1fr 500px; }
  .facebook__inner--plugin .facebook__card { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.contact-list { display: grid; gap: 26px; margin-bottom: 30px; }
.contact-list dt {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy);
}
.contact-list dd { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; color: var(--green); display: grid; justify-items: start; }
html[lang="hy"] .contact-list dd { font-family: var(--font-body); font-size: 1.15rem; }
.contact-list dd a { transition: color .25s; }
.contact-list dd a:hover { color: var(--burgundy); }
.map { position: relative; margin-top: 30px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-dark); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__link {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--cream); font-size: .85rem; font-weight: 600;
}

.inquiry {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 52px);
  box-shadow: 0 40px 80px -50px rgba(12, 46, 31, .35);
}
.inquiry__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--green); margin-bottom: 24px; }
.inquiry__grid { display: grid; gap: 18px 20px; }
.inquiry__footer { margin-top: 30px; display: grid; gap: 14px; justify-items: start; }
.inquiry__privacy { font-size: .85rem; color: var(--muted); }
@media (min-width: 640px) {
  .inquiry__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 7fr; align-items: start; } }

.field { display: grid; gap: 8px; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--green); }
.field__req { color: var(--burgundy); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--cream); border: 1px solid transparent; border-radius: var(--radius);
  font-size: 1rem; color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23123F2B' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8E948F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 63, 43, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--burgundy); background: #FBF3F4; }
.field__error { font-size: .82rem; color: var(--burgundy); min-height: 0; }
.field__error:empty { display: none; }
.field--dark .field__label { color: rgba(246, 241, 232, .8); }
.field--dark input { background: rgba(246, 241, 232, .08); border-color: var(--line-light); color: var(--cream); }
.field--dark input::placeholder { color: rgba(246, 241, 232, .45); }
.field--dark input:focus { background: rgba(246, 241, 232, .12); border-color: var(--cream); box-shadow: none; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 22px;
  border-radius: var(--radius); font-size: .95rem; line-height: 1.5;
}
.form-status.is-visible { display: flex; animation: fadeIn .4s var(--ease); }
.form-status .icon { width: 22px; height: 22px; margin-top: 1px; }
.form-status.is-success { background: #E7F0EA; color: var(--green); }
.form-status.is-error { background: #F8E9EC; color: var(--burgundy); }
.form-status:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(246, 241, 232, .78); padding-top: clamp(60px, 8vw, 100px); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 44px; padding-bottom: 50px; }
.site-footer__brand { display: grid; gap: 20px; justify-items: start; max-width: 380px; }
.site-footer__brand .wordmark { color: var(--cream); }
/* Social buttons: thin cream rings; on hover each fills with its network's own colour and lifts a little. */
.site-footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.site-footer__socials > span { width: 100%; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); margin-bottom: 2px; }
.site-footer__social {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--cream); border: 1px solid rgba(246, 241, 232, .28); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.site-footer__social::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--social-bg, var(--cream)); transform: scale(0); transition: transform .45s var(--ease-out);
}
.site-footer__social--fb { --social-bg: #1877F2; }
.site-footer__social--ig { --social-bg: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.site-footer__social:hover, .site-footer__social:focus-visible {
  color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55);
}
.site-footer__social:hover::before, .site-footer__social:focus-visible::before { transform: scale(1); }
.site-footer__social .icon { width: 20px; height: 20px; }
.site-footer__title { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--white); }
.site-footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contacts .icon { margin-top: 4px; opacity: .7; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-block: 24px 30px; border-top: 1px solid var(--line-light); font-size: .85rem;
}
.lang-switch--footer { letter-spacing: 0; font-weight: 500; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 60px); }
.notfound__inner { display: grid; gap: 22px; justify-items: start; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); line-height: .9; color: var(--olive); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__scroll, .map, .inquiry, .lightbox { display: none !important; }
  .hero { min-height: auto; }
}

/* Brand name inside running text and headings */
.brand-name { font-family: var(--font-brand); font-size: .9em; letter-spacing: .02em; white-space: nowrap; }
.eyebrow .brand-name { font-family: inherit; font-size: inherit; letter-spacing: inherit; }


/* Facebook section with embedded reel(s) / page feed */
.facebook__media { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.fb-reel {
  width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--green-deep); box-shadow: var(--shadow);
}
.fb-reel iframe, .facebook__feed iframe { display: block; width: 100%; height: 100%; border: 0; overflow: hidden; }
.facebook__feed { width: min(100%, 500px); height: 600px; }
@media (min-width: 960px) {
  .facebook__inner--media { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .facebook__inner--media .facebook__card { grid-template-columns: 1fr; align-self: stretch; align-content: center; }
}

/* Hero background video */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--green); }

/* ---------- Products: one large photo + numbered list (until per-product photos exist) ---------- */
.products__showcase { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.products__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.products__photo .photo { height: 100%; transition: transform 1.2s var(--ease-out); }
.products__photo:hover .photo { transform: scale(1.03); }
.products__list { display: grid; border-top: 1px solid var(--line); }
.products__list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.products__list li:hover { padding-left: 10px; }
.products__num { font-family: var(--font-display); font-size: 1.15rem; color: var(--burgundy); padding-top: 3px; }
.products__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--green); }
html[lang="hy"] .products__list h3 { font-size: 1.25rem; }
.products__list p { color: var(--muted); margin-top: 6px; }
@media (min-width: 960px) {
  .products__showcase { grid-template-columns: 7fr 5fr; }
  .products__showcase .products__photo { align-self: start; }
}

.gallery__soon { padding: 60px 0; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* Lining numerals: Cormorant's old-style figures jump up and down */
.steps__num, .products__num, .about__num, .product-card__num, .notfound__code { font-variant-numeric: lining-nums; }

/* ==========================================================================
   Image sizing: frames follow each photo's natural proportions (--ar),
   so low-resolution photos are never cropped hard or blown up.
   ========================================================================== */

/* Hero with a photo card */
.hero--card { align-items: center; }
.hero--card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 85% 50%, rgba(116, 118, 83, .28), transparent 70%);
}
.hero--card .hero__inner { display: grid; gap: 40px; align-items: center; padding-bottom: clamp(60px, 9vh, 110px); }
.hero__card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; max-width: 760px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(246, 241, 232, .08);
}
.hero__card .photo { background: var(--green); }
.hero__card .photo img { height: auto; animation: heroZoom 14s var(--ease-out) both; }
.hero--card .hero__content { max-width: 620px; }
@media (min-width: 960px) {
  .hero--card .hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); }
  .hero--card .hero__content { max-width: none; }
  .hero__card { transform: rotate(1.2deg); transition: transform .8s var(--ease-out); }
  .hero__card:hover { transform: rotate(0); }
}
@media (max-width: 959px) {
  .hero--card .hero__inner { padding-top: calc(var(--header-h) + 24px); }
  .hero--card .hero__card { order: -1; }
}

/* About: square photo stays square */
.about__photo { aspect-ratio: var(--ar, 1); }
@media (min-width: 960px) { .about__photo { aspect-ratio: var(--ar, 1); } }
.about__photo img { height: 100%; }

/* Products showcase */
.products__photo { aspect-ratio: auto; }
.products__photo .photo { height: auto; }
.products__photo .photo img { height: auto; }

/* Branding collage: natural proportions, staggered */
.branding__shot, .branding__collage--2 .branding__shot:first-child, .branding__collage--2 .branding__shot:last-child { aspect-ratio: auto; margin-top: 0; }
.branding__shot .photo, .branding__shot .photo img { height: auto; }
@media (min-width: 760px) {
  .branding__collage--2 { grid-template-columns: 1fr 1.35fr; align-items: end; }
  .branding__collage--2 .branding__shot:first-child { margin-bottom: clamp(40px, 7vw, 110px); }
}

/* Gallery: justified rows — every row fills the width, each photo keeps its proportions */
.gallery__grid { columns: auto; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 20px); }
/* last row also fills the width (no filler) */
.gallery__item { margin: 0; flex: var(--ar, 1) 1 calc(var(--ar, 1) * 150px); aspect-ratio: var(--ar, 1); }
.gallery__item > a, .gallery__item .photo { height: 100%; }
.gallery__item .photo img { height: 100%; }
@media (min-width: 760px) { .gallery__item { flex-basis: calc(var(--ar, 1) * 240px); } }
@media (max-width: 959px) {
  .hero--card { min-height: 0; }
  .hero--card .hero__scroll { display: none; }
}
/* Grid children with photos must be allowed to shrink below the image's intrinsic width */
.details__grid > *, .hero--card .hero__inner > *, .products__showcase > *, .about__grid > * { min-width: 0; }
@media (max-width: 639px) {
  .anatomy__item { padding: 18px; gap: 14px; }
  .anatomy__item:has(.anatomy__photo) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .anatomy__photo { width: 56px; }
  .anatomy__item h3 { font-size: 1.3rem; }
  .anatomy__num { width: 34px; height: 34px; }
}

/* ---------- Logo (mark + wordmark) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { width: 1.2em; height: 1.56em; flex: none; font-size: 1.55rem; color: currentColor; }
.logo .wordmark { font-size: 1.55rem; }
.logo--lg .logo__mark, .logo--lg .wordmark { font-size: 2.3rem; }
.site-header .logo__mark { transition: transform .5s var(--ease-out); }
.site-header__logo:hover .logo__mark { transform: rotate(-6deg); }
.photo--panel { background: #626650; }
.photo__logo { width: 22%; min-width: 64px; max-width: 160px; aspect-ratio: 382 / 498; color: var(--cream); opacity: .95; }
.hero__logo { position: absolute; right: 6vw; top: 50%; width: min(34vw, 420px); aspect-ratio: 382 / 498; transform: translateY(-50%); color: rgba(246, 241, 232, .12); }
@media (max-width: 380px) { .logo .wordmark { font-size: 1.35rem; } .logo__mark { font-size: 1.35rem; } }

/* ---------- Logo drawing animation (lid drops in, outline + steam are traced, tail appears) ---------- */
.logo__lid, .logo__tail { transform-box: fill-box; transform-origin: 50% 100%; }
.js .logo--draw .logo__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .logo--draw .logo__lid { opacity: 0; transform: translateY(-45%); }
.js .logo--draw .logo__tail { opacity: 0; transform: scale(.4); transform-origin: 100% 50%; }
.wordmark__latin > span, .wordmark__arm > span { display: inline-block; }
/* Wordmark letters appear one by one while the outline is traced (.35s … 2.25s). */
.js .logo--draw .wordmark__latin > span, .js .logo--draw .wordmark__arm > span { opacity: 0; transform: translateY(.35em); filter: blur(3px); }
.js .logo--draw.is-drawn .logo__lid { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--ease-out); }
.js .logo--draw.is-drawn .logo__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.55, .1, .3, 1) .35s; }
.js .logo--draw.is-drawn .logo__tail { opacity: 1; transform: none; transition: opacity .45s ease 2.05s, transform .6s var(--ease-out) 2.05s; }
.js .logo--draw.is-drawn .wordmark__latin > span, .js .logo--draw.is-drawn .wordmark__arm > span {
  opacity: 1; transform: none; filter: none;
  transition: opacity .45s ease var(--wd), transform .6s var(--ease-out) var(--wd), filter .45s ease var(--wd);
}
.wordmark__latin > span:nth-child(1) { --wd: .35s; }
.wordmark__latin > span:nth-child(2) { --wd: .72s; }
.wordmark__latin > span:nth-child(3) { --wd: 1.09s; }
.wordmark__arm > span:nth-child(1) { --wd: 1.46s; }
.wordmark__arm > span:nth-child(2) { --wd: 1.83s; }
@media (prefers-reduced-motion: reduce) {
  .js .logo--draw .logo__line { stroke-dashoffset: 0; }
  .js .logo--draw .logo__lid, .js .logo--draw .logo__tail { opacity: 1; transform: none; }
  .js .logo--draw .wordmark__latin > span, .js .logo--draw .wordmark__arm > span { opacity: 1; transform: none; filter: none; }
}

/* ---------- Flourish divider between light sections (draws itself on scroll) ---------- */
.flourish { position: relative; z-index: 2; height: 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.flourish svg { width: min(560px, 78vw); height: auto; transform: translateY(-50%); color: var(--burgundy); overflow: visible; }
.flourish path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .flourish path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .flourish.is-drawn .flourish__curl { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.55, .1, .3, 1); }
.js .flourish.is-drawn .flourish__tail { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out) 1.55s; }
@media (prefers-reduced-motion: reduce) { .js .flourish path { stroke-dashoffset: 0; } }

/* ---------- Warm paper grain on cream sections ---------- */
.section--cream, .about__points li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .16 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.about__points { background-image: none; }

/* ---------- Photo hover: tilt + lift + zoom (uses rotate/translate, so reveal's transform is untouched) ---------- */
.gallery__grid, .branding__collage, .products__showcase { perspective: 1100px; }
.js .tilt {
  transition-property: opacity, transform, rotate, translate, box-shadow;
  transition-duration: .9s, 1.1s, .5s, .5s, .5s;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s;
}
.tilt.is-tilted { rotate: var(--tilt-x, 0) var(--tilt-y, 0) 0 var(--tilt-a, 0deg); translate: 0 -6px; box-shadow: 0 42px 64px -30px rgba(12, 46, 31, .55); position: relative; z-index: 2; }
.tilt.is-tilted .photo, .tilt.is-touched .photo { transform: scale(1.07); }
.tilt .photo { transition: transform 1s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .tilt.is-tilted { rotate: none; translate: none; } }

/* ---------- Scroll parallax: the picture is a bit larger than its frame and slides slower than the page ---------- */
.px-img { scale: 1.12; translate: 0 var(--py, 0px); will-change: translate; }

/* ---------- Hero video: soft blur so text baked into the clip doesn't compete with the headline ---------- */
.hero--video .hero__media { overflow: hidden; }
.hero--video .hero__video { filter: blur(7px) saturate(1.05); transform: scale(1.08); }

/* ---------- Quick contact buttons (phones only): call + Facebook/Messenger ---------- */
.quick-contact { display: none; }
@media (max-width: 767px) {
  .quick-contact {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0; transform: translateY(24px); pointer-events: none;
    transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
  }
  html:not(.js) .quick-contact, .quick-contact.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .quick-contact { opacity: 0; pointer-events: none; }
  .quick-contact__btn { display: grid; place-items: center; border-radius: 50%; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .quick-contact__btn:active { transform: scale(.94); }
  .quick-contact__btn--call {
    position: relative; width: 60px; height: 60px; background: var(--burgundy); color: var(--cream);
    box-shadow: 0 14px 30px -10px rgba(109, 23, 48, .7);
  }
  .quick-contact__btn--call::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--burgundy);
    animation: quick-ping 2.6s var(--ease-out) infinite;
  }
  .quick-contact__btn--call .icon { width: 26px; height: 26px; }
  .quick-contact__btn--chat {
    width: 46px; height: 46px; background: var(--white); color: var(--green);
    box-shadow: 0 10px 24px -12px rgba(12, 46, 31, .55);
  }
  .quick-contact__btn--chat .icon { width: 22px; height: 22px; }
}
@keyframes quick-ping { from { transform: scale(1); opacity: .65; } to { transform: scale(1.65); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .quick-contact__btn--call::before { animation: none; } }

/* ---------- Scroll progress bar (top edge, above the header) ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 110; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--burgundy); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.js .scroll-progress { display: block; }
html:not(.js) .scroll-progress { display: none; }
.menu-open .scroll-progress { opacity: 0; }

/* ---------- 404: the logo cup draws itself ---------- */
.notfound__inner { grid-template-columns: 1fr; align-items: center; justify-items: stretch; gap: clamp(24px, 5vw, 60px); }
.notfound__copy { display: grid; gap: 22px; justify-items: start; }
/* Cup width = 1.6 × its previous on-screen size (189px desktop / 117px phone). */
.notfound__art { width: 187px; max-width: 70%; justify-self: center; color: var(--cream); order: -1; overflow: visible; }
@media (min-width: 900px) {
  .notfound__inner { grid-template-columns: 1fr 1fr; }
  .notfound__art { order: 0; width: 302px; }
}

/* ---------- Logo upload + cup preview (inquiry form) ---------- */
.field__hint { font-size: .82rem; color: var(--muted); }
.logo-drop {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px;
  background: var(--cream); border: 1.5px dashed rgba(18, 63, 43, .3); border-radius: var(--radius);
  color: var(--green); font-weight: 600; cursor: pointer; transition: border-color .25s, background-color .25s;
}
.logo-drop .icon { width: 28px; height: 28px; flex: none; }
.logo-drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.logo-drop:hover, .logo-drop.is-over { border-color: var(--green); background: var(--white); }
.logo-drop:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 63, 43, .12); }
.field.has-error .logo-drop { border-color: var(--burgundy); background: #FBF3F4; }

.cup-preview {
  display: grid; gap: 18px; align-items: center; margin-top: 6px; padding: 18px;
  background: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, var(--cream) 60%, var(--cream-dark) 100%);
  border-radius: var(--radius-lg);
}
.cup-preview[hidden] { display: none; }
.cup-preview__canvas { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.cup-preview__side { display: grid; gap: 14px; align-content: start; }
.cup-preview__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--green); }
.cup-preview__note { font-size: .82rem; color: var(--muted); }
.cup-colors { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cup-colors legend { font-size: .82rem; font-weight: 600; color: var(--green); margin-bottom: 8px; padding: 0; }
.cup-colors__item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .85rem; cursor: pointer; }
.cup-colors__item input { position: absolute; opacity: 0; pointer-events: none; }
.cup-colors__item:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.cup-colors__item:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.cup-colors__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.cup-colors__dot--white { background: #FBFAF6; }
.cup-colors__dot--kraft { background: #C49A6C; }
.cup-colors__dot--black { background: #1E1E1E; }
.cup-colors__dot--green { background: var(--green); }
.cup-size { display: grid; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--green); }
.cup-size input { width: 100%; accent-color: var(--burgundy); }
.cup-preview__remove { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0;
  color: var(--burgundy); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.cup-preview__remove .icon { width: 14px; height: 14px; }
@media (min-width: 640px) { .cup-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.inquiry__captcha { margin-top: 22px; }
.inquiry__captcha:empty { margin: 0; }
