:root {
  --ink: #0f1720;
  --ink-2: #1a2633;
  --paper: #f6f2ea;
  --paper-2: #ece5d8;
  --text: #1d232b;
  --muted: #5d6670;
  --gold: #c9a46a;
  --gold-2: #e2c48f;
  --gold-dark: #9a7a45;
  --line: rgba(15, 23, 32, .12);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(15, 23, 32, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.3rem; border-radius: 50%; }
.brand-text { font-size: .85rem; letter-spacing: .22em; }
.brand-text b { color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; transition: color .2s; }
.nav a:hover, .nav a.is-current { color: var(--gold-2); }
.nav-cta { border: 1px solid var(--gold); padding: 8px 16px; border-radius: 999px; color: var(--gold-2) !important; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--ink); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 80% 30%, rgba(201,164,106,.22), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, rgba(62,92,120,.35), transparent 70%); }
.hero-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: rgba(255,255,255,.82); margin: 0 0 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .75rem; color: var(--gold-2); margin: 0 0 14px; }
.eyebrow.dark { color: var(--gold-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.socials { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.socials a { color: rgba(255,255,255,.75); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.socials a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.portrait { aspect-ratio: 4 / 5; border-radius: 200px 200px 18px 18px; border: 1px solid rgba(201,164,106,.5); background: linear-gradient(160deg, var(--ink-2), #23344a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.portrait { overflow: hidden; padding: 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* hero — premium */
.h1-line { display: block; opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.h1-line + .h1-line { animation-delay: .15s; }
.gold-text { background: linear-gradient(100deg, #c9a46a 0%, #f3dcaa 40%, #c9a46a 60%, #e8c88e 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) forwards, shine 6s 1.2s linear infinite; }
.hero-content > .eyebrow, .hero-content > .lead, .hero-content > .hero-actions, .stories { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-content > .lead { animation-delay: .3s; } .hero-content > .hero-actions { animation-delay: .45s; } .stories { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: -200% center; } }
.hero-grid > * { min-width: 0; }
.portrait-wrap { position: relative; animation: rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
.portrait-wrap::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 70%; height: 70%; border: 1px solid rgba(201,164,106,.45); border-radius: 220px 220px 24px 24px; z-index: 0; }
.portrait-wrap .portrait { position: relative; z-index: 1; }
.badge { position: absolute; z-index: 2; background: rgba(15,23,32,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(201,164,106,.4); color: #fff; border-radius: 16px; padding: 12px 16px; font-size: .78rem; line-height: 1.3; box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); animation: float 6s ease-in-out infinite; }
.badge b { color: var(--gold-2); }
.badge-a { left: -28px; bottom: 18%; display: flex; flex-direction: column; }
.badge-a b { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.badge-b { right: -20px; top: 14%; display: flex; gap: 10px; align-items: center; animation-delay: -3s; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); flex: none; }
@keyframes float { 50% { transform: translateY(-10px); } }
.stories { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.stories a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,.8); font-size: .76rem; width: 70px; }
.story-ring { width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 210deg, #c9a46a, #f3dcaa, #9a7a45, #c9a46a); transition: transform .25s; }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--ink); }
.stories a:hover .story-ring { transform: scale(1.08) rotate(-4deg); }

/* marquee */
.marquee { background: #0a1016; border-block: 1px solid rgba(201,164,106,.25); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.5rem; color: rgba(255,255,255,.85); white-space: nowrap; align-items: center; }
.marquee-track i { color: var(--gold); font-style: normal; font-size: .9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* gallery */
.gallery-section { background: var(--ink); color: #fff; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-head h2 { max-width: 18ch; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 14px; }
.m-item { position: relative; margin: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; grid-row: span 2; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(.92); }
.m-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.m-item figcaption { position: absolute; inset: auto 0 0; padding: 48px 16px 14px; background: linear-gradient(transparent, rgba(10,16,22,.9)); display: flex; flex-direction: column; transform: translateY(8px); opacity: .92; transition: transform .4s, opacity .4s; }
.m-item:hover figcaption { transform: none; opacity: 1; }
.m-item figcaption b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.m-item figcaption span { font-size: .78rem; color: var(--gold-2); letter-spacing: .06em; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,12,.94); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1000px, 100%); max-height: 82vh; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin: 14px 0 0; font-family: var(--serif); font-size: 1.3rem; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 1.3rem; cursor: pointer; }

/* diary (stories) */
.diary { background: var(--paper); padding-bottom: clamp(56px, 8vw, 96px); }
.diary h2 { max-width: 20ch; }
.diary-nav { display: flex; gap: 8px; }
.diary-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.diary-btn:hover { background: var(--ink); color: var(--gold-2); }
.diary-track { --edge: max(16px, calc((100vw - 1160px) / 2)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--edge) 18px; scroll-padding-inline: var(--edge); scrollbar-width: thin; }
.d-card { flex: none; width: 240px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; position: relative; scroll-snap-align: start; background: var(--ink); box-shadow: 0 20px 40px -26px rgba(15,23,32,.6); transition: transform .4s; }
.d-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from 210deg, #c9a46a, #f3dcaa, #9a7a45, #c9a46a); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }
.d-card:hover { transform: translateY(-6px); }
.d-card img { width: 100%; height: 100%; object-fit: cover; }
.d-info { position: absolute; inset: auto 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(10,16,22,.92) 55%); color: #fff; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.d-info b { font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.d-date { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
@media (max-width: 760px) { .d-card { width: 200px; } .diary-nav { display: none; } }

/* quote */
.quote-band { background: linear-gradient(120deg, #9a7a45, #c9a46a 45%, #e2c48f); padding: clamp(56px, 8vw, 96px) 0; color: var(--ink); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; }
.quote-band p { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 18px; font-weight: 600; }
.quote-band footer { font-size: .95rem; opacity: .8; }

.about-photo { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 380px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; margin-top: 24px; }
.btn-dark:hover { background: var(--ink-2); }

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.stats b { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }

.todo { color: #a0662a !important; background: rgba(201,164,106,.14); border-left: 3px solid var(--gold); padding: 6px 10px; border-radius: 6px; font-size: .88rem !important; }
.todo.inline { margin: 0 0 .6em; }
.todo-mark { font-style: normal; color: #c07a2c; font-size: .8em; }

/* dubai */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.feature-list { display: grid; gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.feature b { font-size: 1.05rem; }
.feature span { color: var(--muted); font-size: .95rem; }
.partners { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.partners-title { margin: 0 0 14px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.partners ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.partners li { font-family: var(--serif); font-size: 1.45rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.partners .btn-dark { background: var(--gold); color: var(--ink); }
.partners .btn-dark:hover { background: var(--gold-2); }

/* dubai: on-site gallery + trust */
.onsite { margin-top: 56px; }
.onsite-head { max-width: 760px; margin-bottom: 20px; }
.onsite-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.onsite-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ph:hover img { transform: scale(1.04); }
.ph-wide { grid-column: span 2; grid-row: span 2; }
.ph-tall { grid-row: span 2; }
.ph figcaption { position: absolute; inset: auto 0 0; padding: 36px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(15,23,32,.82)); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.trust-icon { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.trust-item b { font-size: 1.02rem; }
.trust-item span:last-child { color: var(--muted); font-size: .92rem; }

/* uzbekistan */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15,23,32,.4); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.num { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .93rem; }

/* trade */
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trade-card { border-radius: var(--radius); padding: 28px; background: linear-gradient(150deg, #fff, #f3ecdf); border: 1px solid var(--line); }
.trade-card p { margin: 0; color: var(--muted); }
.dir { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); background: rgba(201,164,106,.15); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.products-title { margin: 32px 0 12px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.products li { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.products img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.products li:hover img { transform: scale(1.06); }
.products span { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(15,23,32,.75)); }

/* bga */
.bga { background: linear-gradient(160deg, var(--ink), #172a3d); color: #fff; }
.bga-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.bga-photo { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 5; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.bga-photo img { width: 100%; height: 100%; object-fit: cover; }
.bga-photo figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-size: .85rem; background: linear-gradient(transparent, rgba(15,23,32,.85)); }
.bga-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 28px; }
.bga-facts div { border-top: 1px solid rgba(201,164,106,.5); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.bga-facts b { color: var(--gold-2); font-size: .95rem; }
.bga-facts span { color: rgba(255,255,255,.72); font-size: .9rem; }

/* events */
.events { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-flow: dense; gap: 18px; margin-top: 12px; }
.events .event:first-child { grid-row: span 3; }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event img { width: 100%; flex: 1; min-height: 220px; object-fit: cover; }
.event-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.event-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.event-date { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.event-text { border-top: 3px solid var(--gold); }
.card-more { margin-top: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.card-more:hover { color: var(--gold-dark); }

/* contacts */
.contacts { background: var(--ink); color: #fff; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead-sm { color: rgba(255,255,255,.75); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li > span:first-child { color: rgba(255,255,255,.55); font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-list a { color: var(--gold-2); text-decoration: none; text-align: right; }
.contact-list a:hover { text-decoration: underline; }
.todo-link { color: #e9b77a !important; font-size: .92rem; }

.contact-cta { margin-top: 24px; }
.head-links { display: flex; gap: 10px; margin-bottom: .6em; }
.head-links a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; }
.head-links a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* floating messenger buttons */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); transition: transform .2s; }
.fab-btn:hover { transform: scale(1.08); }
.fab-btn svg { width: 26px; height: 26px; fill: #fff; }
.fab-wa { background: #25d366; }
.fab-tg { background: #2aabee; }

.site-footer { background: #0a1016; color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-row { display: flex; justify-content: space-between; padding: 22px 0; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--gold-2); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

/* tablet */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(4, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* phone */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px 16px 20px; transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .3s, visibility 0s .3s; border-bottom: 1px solid rgba(255,255,255,.1); z-index: -1; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1px solid var(--gold) !important; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-text { font-size: .75rem; letter-spacing: .16em; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 100px 0 56px; }
  .portrait { order: -1; width: min(240px, 66%); margin-inline: auto; }
  .about-photo { max-width: none; aspect-ratio: 1 / 1; }
  .portrait-initials { font-size: 4rem; }
  .about-grid, .contacts-grid, .trade-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats b { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .partners ul { grid-template-columns: 1fr 1fr; }
  .partners li { font-size: 1.2rem; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .onsite-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .ph-wide { grid-column: span 2; grid-row: span 2; }
  .trust { grid-template-columns: 1fr; }
  .bga-grid { grid-template-columns: 1fr; gap: 28px; }
  .bga-photo { aspect-ratio: 4 / 5; }
  .bga-facts { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .events .event:first-child { grid-row: auto; }
  .fab { right: 12px; bottom: 12px; gap: 8px; }
  .fab-btn { width: 50px; height: 50px; }
  .site-footer { padding-bottom: 70px; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list a { text-align: left; }
  .btn { flex: 1 1 100%; text-align: center; }
  .btn-dark { display: block; }
}

@media (max-width: 960px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 760px) {
  .badge-a { left: -8px; bottom: 10%; padding: 9px 12px; }
  .badge-a b { font-size: 1.4rem; }
  .badge-b { right: -8px; top: 8%; padding: 9px 12px; font-size: .7rem; }
  .portrait-wrap { width: min(280px, 78%); margin-inline: auto; order: -1; }
  .portrait-wrap .portrait { width: 100%; }
  .portrait-wrap::before { inset: -10px -10px auto auto; }
  .stories { gap: 12px; margin-right: -16px; padding-right: 16px; }
  .marquee-track { font-size: 1.15rem; animation-duration: 28s; }
  .masonry { grid-auto-rows: 120px; gap: 10px; }
  .m-item figcaption b { font-size: 1.05rem; }
  .gallery-head .btn { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h1-line, .gold-text, .hero-content > *, .stories, .portrait-wrap { animation: none !important; opacity: 1 !important; transform: none !important; }
  .badge, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Personal-brand home (v38) ===== */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.path li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.path li:first-child { padding-top: 0; }
.path-n { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.path b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.path p { margin: 6px 0 0; color: var(--muted); }
.proof-title { margin-top: 32px; }

.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proj-grid > * { min-width: 0; }
.proj { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 50px -36px rgba(15,23,32,.55); transition: transform .4s; }
.proj:hover { transform: translateY(-6px); }
.proj-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proj:hover .proj-img img { transform: scale(1.06); }
.proj-tag { position: absolute; left: 12px; top: 12px; background: rgba(15,23,32,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--gold-2); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.proj-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-size: 1.7rem; margin: 0; }
.proj-role { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.proj-role span { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.proj-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 600; }
.proj-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.proj-links a:hover { color: var(--gold-dark); }
.soon { margin-top: 18px; display: flex; align-items: center; gap: 18px; background: var(--ink); color: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; padding-right: 22px; }
.soon img { width: 140px; height: 96px; object-fit: cover; flex: none; }
.soon b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.soon em { font-style: normal; color: var(--gold-2); font-size: .9rem; }

.case { background: var(--ink); color: #fff; }
.case-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.case-grid > * { min-width: 0; }
.case-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 560px; }
.case-photos .ph:first-child { grid-row: span 2; }
.case h2 { color: #fff; }
.case-steps { margin: 24px 0 28px; display: grid; gap: 0; }
.case-steps div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.case-steps dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.case-steps dd { margin: 0; color: rgba(255,255,255,.82); }

.talks { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.talks > * { min-width: 0; }
.talk { position: relative; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; margin: 0; }
.talk-video { grid-row: span 2; }
.talk img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.talk:hover img { transform: scale(1.05); }
.talk-body { position: absolute; inset: auto 0 0; padding: 60px 18px 16px; background: linear-gradient(transparent, rgba(10,16,22,.92) 55%); display: flex; flex-direction: column; gap: 4px; }
.talk-body em { font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.talk-body b { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.talk-video .talk-body b { font-size: 2rem; }
.talk-body span { color: rgba(255,255,255,.8); font-size: .92rem; }
.play { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; box-shadow: 0 0 0 10px rgba(201,164,106,.25); transition: transform .3s; }
.talk-video:hover .play { transform: translate(-50%,-50%) scale(1.08); }

.page-hero { background: var(--ink); color: #fff; padding: 120px 0 48px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 12px 0 0; }
.back { color: var(--gold-2); text-decoration: none; font-size: .9rem; }

@media (max-width: 1000px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .case-photos { height: 440px; }
  .talks { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 220px 220px; }
  .talk-video { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 560px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-img { aspect-ratio: 4 / 3; }
  .case-photos { height: 360px; }
  .talks { grid-template-columns: 1fr; grid-template-rows: 340px repeat(4, 220px); }
  .talk-video { grid-column: auto; }
  .soon img { width: 96px; }
  .path li { grid-template-columns: 40px 1fr; }
}

/* v39 draft */
.about-intro { font-size: 1.12rem; color: var(--text); margin: 0 0 18px; }
.about-note { color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.proj-what { margin: 0; font-size: .93rem; color: var(--text); }
.proj-role { flex: 1; }
.proj-img-mark { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #23344a, var(--ink) 70%); }
.proj-mono { font-family: var(--serif); font-size: 4.2rem; letter-spacing: .08em; color: var(--gold-2); border: 1px solid rgba(201,164,106,.5); border-radius: 50%; width: 160px; height: 160px; display: grid; place-items: center; }
.proj-soon { font-size: .85rem; color: var(--muted); font-weight: 500; }
.case-lead { font-size: 1.2rem; color: rgba(255,255,255,.85); margin: 18px 0 28px; }
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dev-grid > * { min-width: 0; }
.dev { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.dev:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.dev img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dev:hover img { transform: scale(1.05); }
.dev figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10,16,22,.88)); color: #fff; display: flex; flex-direction: column; }
.dev figcaption b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.dev figcaption span { font-size: .78rem; color: var(--gold-2); }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dev-grid { grid-template-columns: 1fr; } .dev:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; } }
.dev:nth-child(n+6) { grid-column: span 2; aspect-ratio: 16 / 7; }
@media (max-width: 900px) { .dev:nth-child(n+6) { grid-column: auto; aspect-ratio: 4 / 3; } .dev:nth-child(7) { grid-column: span 2; aspect-ratio: 16 / 7; } }
@media (max-width: 520px) { .dev:nth-child(7) { grid-column: auto; aspect-ratio: 4 / 3; } }
.talk-video img { object-position: 60% 30%; }
.talk-video .play { left: auto; right: 22px; top: 22px; transform: none; width: 60px; height: 60px; }
.talk-video:hover .play { transform: scale(1.08); }
.proj-img-logo { background: #fff; }
.proj-img-logo img { object-fit: contain; padding: 8%; }
.proj:hover .proj-img-logo img { transform: scale(1.03); }
