/* C&G International demo — shared styles for /, /ru/ */
:root {
  --ink: #06130d;
  --ink-2: #0b1d15;
  --ink-3: #12291e;
  --line-d: rgba(236, 228, 210, .12);
  --ivory: #f5f1e8;
  --paper: #ebe4d5;
  --line: #d9d0bd;
  --text: #15201a;
  --muted: #5f6a62;
  --muted-d: #a7b3aa;
  --green: #01a54e;
  --green-hi: #35d684;
  --green-dk: #00713a;
  --gold: #cdb27a;
  --radius: 2px;
  --wrap: 1240px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--green-dk); }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow { color: var(--green-hi); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); }
h2 { font-size: clamp(30px, 4.2vw, 52px); margin: 16px 0 20px; }
h2 em, h1 em { font-style: italic; color: var(--green); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
section { padding: 112px 0; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.dark { background: var(--ink); color: var(--ivory); }
.dark .lead { color: var(--muted-d); }

/* demo ribbon */
.demo-bar { background: #020805; color: #9aa79e; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .05em; }
.demo-bar strong { color: var(--green-hi); font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6,19,13,.96); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-d); color: var(--ivory); }
.nav { display: flex; align-items: center; gap: 36px; height: 76px; }
.brand img { width: 172px; }
.menu { display: flex; gap: 30px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #cfd6cf; padding: 6px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green-hi); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.lang a { text-decoration: none; padding: 4px 8px; color: var(--muted-d); border-radius: var(--radius); }
.lang a[aria-current="true"] { color: var(--ivory); background: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #00b856; }
.btn-ghost { border-color: rgba(245,241,232,.35); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--green-hi); color: var(--green-hi); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--green-dk); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(245,241,232,.3); color: var(--ivory); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* hero */
.hero { padding: 0; position: relative; overflow: hidden; background: radial-gradient(1200px 700px at 78% 40%, #0f2a1d 0%, var(--ink) 62%); color: var(--ivory); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; min-height: calc(100vh - 106px); min-height: calc(100svh - 106px); padding-top: 48px; padding-bottom: 56px; position: relative; z-index: 3; }
.hero-copy { position: relative; z-index: 4; }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); margin: 24px 0 26px; line-height: 1.04; }
.hero .lead { color: #c3cdc5; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hint { margin-top: 30px; line-height: 1.5; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #7f8f84; display: flex; align-items: center; gap: 10px; }
.hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 0 rgba(53,214,132,.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(53,214,132,.55); } 100% { box-shadow: 0 0 0 12px rgba(53,214,132,0); } }

/* the gift panel: product photo, wrap flaps and ribbon (canvas) */
.gift { position: relative; aspect-ratio: 16 / 11.5; cursor: pointer; --bx: 70%; --by: 32%; }
.gift-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(245,241,232,.08); background: #0d2117; }
.gift-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .01s .4s; }
.gift-stack img.on { opacity: 1; transition: none; }
.flap { position: absolute; background-color: #0a2a1a; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px), linear-gradient(160deg, #0f3a24, #072215); transition: transform .9s cubic-bezier(.7,0,.2,1), opacity .9s ease; opacity: 0; pointer-events: none; }
.flap.tl { left: 0; top: 0; width: var(--bx); height: var(--by); transform-origin: 0 0; }
.flap.tr { right: 0; top: 0; width: calc(100% - var(--bx)); height: var(--by); transform-origin: 100% 0; }
.flap.bl { left: 0; bottom: 0; width: var(--bx); height: calc(100% - var(--by)); transform-origin: 0 100%; }
.flap.br { right: 0; bottom: 0; width: calc(100% - var(--bx)); height: calc(100% - var(--by)); transform-origin: 100% 100%; }
.wrapped .flap { opacity: 1; transform: none; transition-duration: .38s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.gift-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(0deg, rgba(4,14,9,.62), rgba(4,14,9,0)); pointer-events: none; z-index: 1; }
.gift-tag { position: absolute; left: 22px; bottom: 20px; z-index: 6; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.gift-tag b { color: var(--green-hi); font-weight: 600; margin-right: 10px; }
.hero-ribbon { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; }

/* stats */
.stats-band { background: var(--ink); color: var(--ivory); border-top: 1px solid var(--line-d); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 34px 22px 32px; border-right: 1px solid var(--line-d); }
.stat:last-child { border-right: 0; }
.stat b { display: block; white-space: nowrap; font: 500 clamp(26px, 3vw, 42px)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--green-hi); font-size: .55em; margin-left: 4px; font-family: var(--sans); letter-spacing: .02em; }
.stat span { display: block; margin-top: 12px; color: var(--muted-d); font-size: 13px; letter-spacing: .03em; }

/* marquee */
.marquee { overflow: hidden; background: var(--ink); border-top: 1px solid var(--line-d); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: italic 500 clamp(26px, 3.4vw, 44px)/1.1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(245,241,232,.38); white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--green-hi); -webkit-text-stroke-color: var(--green-hi); }
.marquee i { font-style: normal; color: var(--gold); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-media { position: relative; }
.about-media .ph { overflow: hidden; border-radius: var(--radius); }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.about-media .badge { position: absolute; left: -24px; bottom: -28px; background: var(--ink); color: var(--ivory); padding: 22px 26px; max-width: 250px; font-size: 13px; line-height: 1.45; }
.about-media .badge b { display: block; font: 500 22px/1.15 var(--serif); white-space: nowrap; color: var(--green-hi); margin-bottom: 6px; }
.timeline { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline b { font: 500 22px/1.2 var(--serif); color: var(--green-dk); }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.values span { border: 1px solid var(--line); padding: 6px 13px; border-radius: 100px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* solutions process */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-d); counter-reset: s; }
.step { padding: 28px 22px 8px 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 13px/1 var(--sans); letter-spacing: .2em; color: var(--green-hi); margin-bottom: 18px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--green-hi); transition: width 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.step.in::after { width: 46px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted-d); font-size: 14px; margin: 0; }
.solution-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 72px; }
.gift-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); min-height: 420px; display: flex; align-items: flex-end; text-decoration: none; }
.gift-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.gift-card:hover img { transform: scale(1.05); }
.gift-card .cap { position: relative; z-index: 2; padding: 120px 32px 30px; width: 100%; background: linear-gradient(0deg, rgba(4,14,9,.94), rgba(4,14,9,0)); }
.gift-card .cap::before { content: ""; display: block; width: 0; height: 2px; background: var(--green-hi); margin-bottom: 14px; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.gift-card:hover .cap::before { width: 54px; }
.gift-card h3 { font: 500 30px/1.1 var(--serif); }
.gift-card p { color: #c5cfc8; margin: 10px 0 0; font-size: 15px; max-width: 460px; }

/* products */
.collections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.collections span { border: 1px solid var(--line); padding: 7px 14px; font-size: 12.5px; letter-spacing: .06em; border-radius: 100px; background: #fbf9f3; }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product { background: #fff; border: 1px solid #e6dfcf; border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.product:hover { border-color: rgba(1,165,78,.5); box-shadow: 0 24px 40px -28px rgba(6,19,13,.45); }
.product figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: #fff; }
.product img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; }
.product:hover img { transform: scale(1.06); }
.product-body { padding: 14px 16px 18px; border-top: 1px solid #efe9dc; }
.code { font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--green-dk); letter-spacing: .08em; }
.product h3 { margin: 8px 0 4px; font-size: 15px; line-height: 1.35; }
.product .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .products:hover .product:not(:hover) img { filter: grayscale(.85) opacity(.55); } }
.cat-note { margin-top: 30px; font-size: 14px; color: var(--muted); }
.cat-note a { color: var(--green-dk); }

/* facility */
.facility-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; overflow: hidden; }
.photos figure.wide { grid-column: 1 / -1; }
.photos img { width: 100%; aspect-ratio: 430 / 230; object-fit: cover; border-radius: var(--radius); }
.photos figure.wide img { aspect-ratio: 900 / 330; }
.photos figcaption { font-size: 12px; color: var(--muted-d); margin-top: 8px; letter-spacing: .04em; }
.us-sites { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.us-sites li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius); }
.us-sites li span { color: var(--muted-d); font-size: 13px; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.certs span { background: var(--ink-2); border: 1px solid var(--line-d); border-left: 3px solid var(--green-hi); padding: 10px 14px; font-weight: 600; font-size: 14px; border-radius: var(--radius); }
.audits { margin-top: 26px; }
.audits h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-d); font-weight: 600; margin-bottom: 12px; }
.audits p { font: 500 21px/1.5 var(--serif); margin: 0; }
.docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 64px; }
.docs figure { margin: 0; background: #f4efe4; padding: 10px; border-radius: var(--radius); }
.docs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.docs figcaption { font-size: 11.5px; color: #3c463f; margin-top: 8px; line-height: 1.35; }

/* fair */
.fair { background: var(--paper); }
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fair-card { background: var(--ink); color: var(--ivory); padding: 40px; border-radius: var(--radius); position: relative; overflow: hidden; }
.fair-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(53,214,132,.25); border-radius: 50%; }
.fair-card .date { font: 500 clamp(34px, 4vw, 52px)/1 var(--serif); }
.fair-card .date small { display: block; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--green-hi); margin-bottom: 16px; }
.booths { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.booths li { border: 1px solid rgba(245,241,232,.25); padding: 8px 12px; font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.fair-list { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.fair-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.fair-list span { color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 500 20px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--green); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.contact-list span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: var(--green-hi); }
form.inquiry { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.field input, .field select, .field textarea { width: 100%; background: var(--ink); border: 1px solid rgba(245,241,232,.16); color: var(--ivory); border-radius: var(--radius); padding: 12px 14px; font: 15px/1.4 var(--sans); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-hi); }
form.inquiry .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted-d); margin: 0; }

/* footer */
footer { background: #020805; color: #8d9a91; padding: 44px 0; font-size: 13px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { width: 150px; }

/* responsive */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line-d); }
  .docs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-d); padding: 8px 28px 20px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .nav { gap: 14px; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-top: 22px; }
  .gift { order: -1; }
  .hero h1 { margin-top: 18px; }
  .about-grid, .facility-grid, .faq-grid, .contact-grid, .fair-grid, .solution-row { grid-template-columns: 1fr; gap: 48px; }
  .about-media .badge { left: 14px; bottom: -22px; }
  .solution-row { gap: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .brand img { width: 138px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 16px; }
  .gift { aspect-ratio: 4 / 3.6; margin: 0 -6px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; border-bottom: 1px solid var(--line-d); }
  .stat b { font-size: 27px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-d); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gift-card { min-height: 320px; }
  .gift-card h3 { font-size: 25px; }
  .docs { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 72px 1fr; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .fair-card { padding: 28px; }
  .lang a { padding: 4px 6px; }
}

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.14; } to { scale: 1; } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 65ms + 700ms); }
.motion .hero .eyebrow { animation: fadeUp .8s .5s both; }
.motion .hero .lead { animation: fadeUp .9s 1.4s both; }
.motion .hero .cta-row { animation: fadeUp .9s 1.6s both; }
.motion .hero .hint { animation: fadeUp .9s 2.6s both; }
.motion .gift-frame { animation: fadeUp 1s .1s both; }
.motion .gift-stack img.on { animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
.motion .gift-tag { animation: fadeUp .8s 2.4s both; }
/* opened wrap: each paper flap slides out along the ribbon lines */
.motion .flap.tl { transform: translate(-16%, -34%) rotate(-5deg); }
.motion .flap.tr { transform: translate(30%, -34%) rotate(5deg); }
.motion .flap.bl { transform: translate(-16%, 24%) rotate(4deg); }
.motion .flap.br { transform: translate(30%, 24%) rotate(-4deg); }
.motion .wrapped .flap { transform: none; }

/* hero glow follows the ribbon pointer */
.hero { --mx: 70%; --my: 40%; }
.motion .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(560px circle at var(--mx) var(--my), rgba(53,214,132,.10), transparent 62%); }

/* scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s cubic-bezier(.2,.7,.2,1), transform 1s .12s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -25% -5%); transform: none; }
.motion .about-media.reveal img, .motion .photos figure.reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), scale 1.8s cubic-bezier(.2,.7,.2,1); }
.motion .about-media.reveal.in img, .motion .photos figure.reveal.in img { clip-path: inset(0); scale: 1; }
.motion [data-count].counted { color: var(--green-hi); transition: color 1.2s; }

/* tilt + glow cards (pointer devices) */
.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, opacity .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(28px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(53,214,132,.16), transparent 60%); z-index: 3; }
.motion .tilt:hover::after { opacity: 1; }

/* buttons: subtle magnetic pull */
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .25s, color .25s, border-color .25s, translate .25s cubic-bezier(.2,.7,.2,1); }

/* header shrink + scroll progress */
.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(4,12,8,.95); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.motion .site-header.scrolled .nav { height: 62px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--green-hi); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }
@media (max-width: 900px) { .motion .site-header.scrolled .nav { height: 76px; } .marquee { padding: 16px 0; } }
