/* ===========================================================
   HOME PAGE SECTIONS
   =========================================================== */

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; overflow: hidden; background: #0e0f13; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 14%; z-index: 1; opacity: .95; }
.hero-veil { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(8,9,12,.88) 0%, rgba(8,9,12,.55) 34%, rgba(8,9,12,.12) 66%, rgba(8,9,12,.28) 100%),
    linear-gradient(180deg, rgba(8,9,12,.50) 0%, rgba(8,9,12,.02) 26%, rgba(8,9,12,.45) 70%, var(--bg) 100%); }
.hero-grain { position: absolute; inset: 0; z-index: 2; opacity: .045; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(140px, 21vh, 260px); }
.hero h1 { color: #F6F1E5; max-width: none; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.12; }
.hero .display { animation: heroUp 1s cubic-bezier(.16,1,.3,1) backwards; }
.hero .display .hl { display: block; }
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: clamp(30px, 4vh, 44px);
  animation: heroUp 1s ease .25s backwards; }
/* Mobile hero — mirrors the services-page hero: dim the photo so copy reads,
   pull content into the readable lower band, stack CTAs full-width */
@media (max-width: 1024px){
  .hero-inner { padding-bottom: clamp(96px, 14vh, 150px); }
}
@media (max-width: 680px){
  .hero { min-height: 86svh; }
  .hero h1, .hero .lead, .section-title, .lead, .svc-detail-copy h2 { overflow-wrap: break-word; }
  .hero-photo { width: 100%; opacity: .62; object-position: 78% 0%; transform: scale(1.16) translateY(-6%); transform-origin: top right; }
  .hero-veil { background:
    linear-gradient(180deg, rgba(8,9,12,.5) 0%, rgba(8,9,12,.2) 24%, rgba(8,9,12,.6) 70%, var(--bg) 100%); }
  .hero-inner { padding-bottom: clamp(56px, 9vh, 88px); }
  /* keep copy on the left so the portrait on the right stays visible */
  .hero .eyebrow { display: none; }
  .hero h1 { max-width: 100%; font-size: clamp(20px, 6.2vw, 32px); }
  .hero h1 .hl { white-space: nowrap; }
  .hero-cta { width: auto; max-width: 80%; gap: 10px; }
  .hero-cta .btn { flex: 0 1 auto; justify-content: center; padding-inline: 22px; }
}
@media (max-width: 420px){
  .hero h1 { max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: flex-start; max-width: 74%; }
  .hero-cta .btn { width: 100%; }
}
.hero .eyebrow { white-space: nowrap; }
@keyframes fadeIn { from { opacity: 0; } }

/* Once entrance anims finish, drop them so static captures (PDF/export) render the settled state */
body.anim-settled .hero .display,
body.anim-settled .hero-cta { animation: none !important; }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; width: max-content;
  animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-style: italic; font-size: clamp(26px,3vw,42px); color: var(--ink); display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 16px; color: var(--gold); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: stretch; }
.about-media { position: relative; min-height: 560px; overflow: hidden; }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.about-media:hover img { transform: scale(1.07); }
.about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 70%, color-mix(in srgb, var(--bg) 70%, transparent) 100%); pointer-events: none; }
.about-tag { position: absolute; left: 0; bottom: 40px; background: var(--gold); color: #14110a; padding: 12px 20px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; z-index: 1; }
.about-body { padding: clamp(70px,10vh,140px) var(--pad) clamp(70px,10vh,140px) clamp(40px,5vw,80px); max-width: 760px; position: relative; }
.about-body::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 40%), rgba(195,163,104,.18), rgba(195,163,104,.06) 40%, transparent 72%); }
.about-body:hover::before { opacity: 1; }
.about-body > * { position: relative; z-index: 1; }
.about-body h2 { margin-bottom: 26px; }
.about-body .lead + .lead { margin-top: 20px; }
.about-stats { display: flex; gap: clamp(22px,4vw,52px); margin: 40px 0 36px; flex-wrap: wrap; }
.about-stats .stat .n { font-family: var(--display); font-size: clamp(38px,4vw,56px); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.about-stats .stat .l { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
.sig { font-family: var(--serif-alt); font-style: italic; font-size: 30px; color: var(--ink); margin-top: 28px; }
@media (max-width: 880px){ .about { grid-template-columns: 1fr; } .about-media { min-height: 420px; } }

/* ---------- SERVICES ---------- */
.services { padding: clamp(80px,10vh,130px) 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.services::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(38% 46% at 18% 28%, rgba(219,196,137,.12), transparent 70%), radial-gradient(40% 50% at 86% 72%, rgba(44,61,94,.22), transparent 72%); }
.services > .wrap { position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.sec-head .lead { margin: 16px 0 0; max-width: 42ch; }

/* ---------- SERVICES / PRICING PACKAGES ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 38px 32px 34px; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 60px -34px rgba(0,0,0,.7);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s; }
.pkg::before { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px; pointer-events:none;
  background: linear-gradient(140deg, rgba(219,196,137,.75), rgba(255,255,255,.06) 40%, rgba(219,196,137,.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity:.5; transition: opacity .55s; }
.pkg:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 0 46px -12px rgba(195,163,104,.42), 0 28px 60px -34px rgba(0,0,0,.72); }
.pkg:hover::before { opacity:1; }
.pkg.featured { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 52px -12px rgba(219,196,137,.45), 0 30px 70px -34px rgba(0,0,0,.75); }
.pkg.featured::before { opacity:1; }
[data-direction="stone"] .pkg { background: linear-gradient(155deg, rgba(255,255,255,.62), rgba(255,255,255,.30)); border-color: rgba(0,0,0,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 24px 60px -36px rgba(40,35,22,.4); }
.pkg-flag { position: absolute; right: 14px; top: 14px; white-space: nowrap; background: var(--gold); color: #14110a; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; z-index: 2; box-shadow: 0 0 18px -4px rgba(219,196,137,.6); }
.pkg-cat { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
.pkg-name { font-family: var(--display); font-weight: 500; font-size: clamp(26px,2.4vw,34px); line-height: 1.05; margin: 14px 0 0; }
.pkg-price { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; margin: 24px 0 4px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.pkg-price .from { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.pkg-price .amt { font-family: var(--display); font-size: clamp(36px,3vw,46px); color: var(--gold); line-height: 1; }
.pkg-price .per { font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.pkg-desc { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; line-height: 1.7; margin: 22px 0 0; }
.pkg-feat { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.pkg-feat li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
.pkg-feat li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 7px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.pkg-btn { margin-top: auto; width: 100%; justify-content: center; }
@media (max-width: 940px){ .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- QUOTE BAND ---------- */
.quote-band { position: relative; padding: clamp(96px,15vh,180px) 0; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--emerald) 26%, var(--emerald) 74%, var(--bg) 100%); }
.quote-band .silk { position:absolute; inset:0; z-index:0; opacity:.55;
  background: radial-gradient(80% 70% at 50% 50%, #2c3d5e 0%, #1c2740 45%, rgba(17,25,43,0) 78%); filter: blur(6px); }
.quote-band .gold-wash { position:absolute; right:-8%; bottom:-24%; width:62%; height:120%; z-index:0; opacity:.4;
  background: radial-gradient(circle at 60% 50%, rgba(220,194,137,.5), transparent 62%); filter: blur(4px); }
.quote-band::before { content:""; position:absolute; left:0; right:0; top:0; height:34%; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, var(--bg), transparent); }
.quote-band::after { content:""; position:absolute; left:0; right:0; bottom:0; height:34%; z-index:0; pointer-events:none;
  background: linear-gradient(0deg, var(--bg), transparent); }
.quote-band .wrap { position: relative; z-index: 1; text-align: center; }
.quote-band blockquote { font-family: var(--display); font-weight: 500; color: #F6F1E5; font-size: clamp(30px,4.4vw,60px); line-height: 1.12; letter-spacing: -.01em; margin: 0 auto; max-width: 24ch; }
.quote-band blockquote em { font-style: italic; color: var(--gold-soft); }
.quote-band .qmark { font-family: var(--display); font-size: 120px; line-height: 0; color: var(--gold); opacity: .5; height: 40px; display:block; }
.quote-band .qby { margin-top: 34px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,241,229,.7); }
.quote-band blockquote .qword { display: inline-block; opacity: 0; transform: translateY(20px); filter: blur(5px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease; }
.quote-band blockquote.in .qword { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce){ .quote-band blockquote .qword { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* ---------- APPROACH / ROADMAP ---------- */
.approach { padding: clamp(90px,12vh,150px) 0; }
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.road-track { position: absolute; top: 41px; left: 16.66%; right: 16.66%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s cubic-bezier(.2,.8,.2,1); }
.roadmap.in .road-track { transform: scaleX(1); }
.road-track::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity .4s ease 1.2s; }
.roadmap.in .road-track::after { opacity: 1; }
.road-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.road-node { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--gold); background: var(--card); display: grid; place-items: center; color: var(--gold); box-shadow: 0 0 0 10px var(--bg); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s, color .45s, background .5s, border-color .5s; }
.road-node.lit { background: var(--gold); color: #14110a; border-color: var(--gold); box-shadow: 0 0 0 10px var(--bg), 0 0 42px -6px rgba(195,163,104,.75); transform: scale(1.06); }

/* traveling spark along the track */
.road-spark { position: absolute; top: 41px; left: 16.66%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--gold); opacity: 0; z-index: 3;
  box-shadow: 0 0 0 5px rgba(195,163,104,.22), 0 0 26px 5px rgba(195,163,104,.85);
  transition: left 1s cubic-bezier(.45,0,.55,1), opacity .4s ease; }
.roadmap.run .road-spark { opacity: 1; }
.road-spark::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(195,163,104,.5), transparent 70%); animation: sparkPulse 1s ease-in-out infinite; }
@keyframes sparkPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.5); opacity: .3; } }
.roadmap.in .road-node { animation: nodePop .65s cubic-bezier(.2,1.3,.5,1) backwards; }
.roadmap.in .road-step:nth-child(3) .road-node { animation-delay: .18s; }
.roadmap.in .road-step:nth-child(4) .road-node { animation-delay: .36s; }
@keyframes nodePop { from { opacity: 0; transform: scale(.4); } }
.road-step:hover .road-node { transform: scale(1.09); box-shadow: 0 0 0 10px var(--bg), 0 0 44px -8px rgba(195,163,104,.55); }
.road-node svg { transition: transform .5s; }
.road-step:hover .road-node svg { transform: scale(1.12) rotate(-4deg); }
.road-num { margin-top: 24px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.road-step h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px,2.2vw,29px); line-height: 1.12; margin: 10px 0 12px; }
.road-step p { color: var(--ink-soft); font-weight: 300; font-size: 15px; line-height: 1.7; margin: 0; max-width: 32ch; }
.road-step .road-num, .road-step h3, .road-step p { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.roadmap.in .road-step .road-num, .roadmap.in .road-step h3, .roadmap.in .road-step p { opacity: 1; transform: none; }
.roadmap.in .road-step:nth-child(2) .road-num { transition-delay: .15s; } .roadmap.in .road-step:nth-child(2) h3 { transition-delay: .2s; } .roadmap.in .road-step:nth-child(2) p { transition-delay: .25s; }
.roadmap.in .road-step:nth-child(3) .road-num { transition-delay: .33s; } .roadmap.in .road-step:nth-child(3) h3 { transition-delay: .38s; } .roadmap.in .road-step:nth-child(3) p { transition-delay: .43s; }
.roadmap.in .road-step:nth-child(4) .road-num { transition-delay: .51s; } .roadmap.in .road-step:nth-child(4) h3 { transition-delay: .56s; } .roadmap.in .road-step:nth-child(4) p { transition-delay: .61s; }
@media (prefers-reduced-motion: reduce){ .road-track{transform:scaleX(1);} .road-step .road-num,.road-step h3,.road-step p{opacity:1;transform:none;} .road-finale{opacity:1;} .road-finale .road-drop{transform:scaleY(1);} .road-finale .road-medallion{transform:none;opacity:1;} }

/* ---------- ROADMAP FINALE / CELEBRATION ---------- */
.road-finale { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 6px; opacity: 0; transition: opacity .5s ease; }
.road-finale.show { opacity: 1; }
.road-drop { width: 2px; height: 66px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); transform: scaleY(0); transform-origin: top; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.road-finale.show .road-drop { transform: scaleY(1); }
.drop-spark { position: absolute; top: 0; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--gold); opacity: 0; z-index: 3; box-shadow: 0 0 0 5px rgba(195,163,104,.22), 0 0 26px 5px rgba(195,163,104,.85); }
.road-finale.run .drop-spark { animation: dropDown .7s cubic-bezier(.5,0,.5,1) forwards; }
@keyframes dropDown { 0% { opacity: 1; top: 0; } 88% { opacity: 1; } 100% { opacity: 0; top: 66px; } }

.road-medallion { position: relative; margin-top: 22px; display: flex; flex-direction: column; align-items: center; transform: scale(.6); opacity: 0; }
.road-finale.pop .road-medallion { animation: medalPop .75s cubic-bezier(.2,1.45,.4,1) forwards; }
@keyframes medalPop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.medal-disc { position: relative; width: 176px; height: 176px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 32%, var(--card-hi), var(--card)); border: 1px solid var(--gold); box-shadow: 0 0 0 10px var(--bg), 0 0 70px -8px rgba(195,163,104,.6), inset 0 0 40px -12px rgba(195,163,104,.5); }
.medal-disc::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid var(--line); }
.medal-disc::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(195,163,104,.3); animation: medalRing 3.4s ease-in-out infinite; }
@keyframes medalRing { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.05); opacity: .9; } }
.medal-num { font-family: var(--display); font-weight: 600; font-size: 78px; line-height: .9; color: var(--gold); text-shadow: 0 0 26px rgba(195,163,104,.5); letter-spacing: -.02em; }
.medal-num em { font-style: normal; font-size: 42px; vertical-align: super; }
.medal-label { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; font-weight: 600; }
.medal-caption { text-align: center; margin-top: 22px; }
.medal-caption h3 { font-family: var(--display); font-weight: 500; font-size: clamp(26px,3.4vw,42px); line-height: 1.08; color: var(--ink); margin: 12px 0 0; }
.medal-caption h3 em { font-style: italic; color: var(--gold); }

/* ---------- WORK EXPERIENCE TIMELINE ---------- */
.experience { padding: clamp(80px,11vh,140px) 0; position: relative; overflow: hidden; }
.experience::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(195,163,104,.07) 1px, transparent 1.4px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); opacity: .6; }
.experience > .wrap { position: relative; z-index: 1; }
.exp-timeline { list-style: none; margin: 60px 0 0; padding: 0; position: relative; }
.exp-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 30%, transparent)); }
.exp-item { position: relative; padding: 0 0 40px 44px; }
.exp-item:last-child { padding-bottom: 0; }
.exp-node { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--bg), 0 0 18px -2px rgba(195,163,104,.7); transition: transform .4s, box-shadow .4s; }
.exp-item:hover .exp-node { transform: scale(1.18); box-shadow: 0 0 0 5px var(--bg), 0 0 26px 0 rgba(195,163,104,.9); }
.exp-date { display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.exp-body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px,2.4vw,30px); line-height: 1.1; margin: 0; color: var(--ink); }
.exp-org { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 6px 0 12px; }
.exp-body p { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; line-height: 1.72; margin: 0; max-width: 64ch; }
.exp-cta { margin-top: 48px; padding-left: 44px; }
@media (max-width: 600px){ .exp-item { padding-left: 36px; } .exp-cta { padding-left: 0; } .exp-cta .btn { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce){ .medal-disc::after { animation: none; } }

/* confetti */
.confetti { position: absolute; left: 50%; top: 40px; width: 0; height: 0; pointer-events: none; z-index: 4; }
.confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 13px; border-radius: 1px; opacity: 0; will-change: transform, opacity; }
.road-finale.pop .confetti i { animation: confFall 1.5s ease-out forwards; }
@keyframes confFall { 0% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.6); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(1); } }
@media (max-width: 780px){
  .roadmap { grid-template-columns: 1fr; gap: 46px; max-width: 420px; margin-inline: auto; }
  .road-track { display: none; }
  .road-step::before { content: ""; position: absolute; left: 50%; bottom: -46px; height: 46px; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); transform: translateX(-50%); opacity: .5; }
  .road-step:last-child::before { display: none; }
  .road-spark { display: none; }
}

/* ---------- WORK / SELECTED WORK GALLERY ---------- */
.work { padding: clamp(80px,10vh,130px) 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.work::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(195,163,104,.08) 1px, transparent 1.4px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); opacity: .7; }
.work > .wrap { position: relative; z-index: 1; }
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 44px; }
.work-filter button { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 100px; padding: 11px 22px; cursor: pointer; transition: color .35s, background .35s, border-color .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.work-filter button:hover { color: var(--ink); border-color: var(--line); transform: translateY(-2px) scale(1.05); }
.work-filter button.active { background: var(--gold); color: #14110a; border-color: var(--gold); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item { position: relative; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, opacity .45s, scale .45s; }
.work-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.work-item:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 0 46px -12px rgba(195,163,104,.42), 0 28px 60px -34px rgba(0,0,0,.72); }
.work-item:hover img { transform: scale(1.07); }
.work-item .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: linear-gradient(180deg, rgba(8,9,12,0) 42%, rgba(8,9,12,.55) 70%, rgba(8,9,12,.92) 100%); }
.work-item .overlay .cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.work-item .overlay h3 { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.1; margin: 0; color: #F6F1E5; }
.work-item .overlay p { color: rgba(246,241,229,.74); font-size: 13.5px; font-weight: 300; margin: 8px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .5s ease; }
.work-item:hover .overlay p { max-height: 80px; opacity: 1; }
.work-item { cursor: pointer; }
.work-item.hide { display: none; }
.work-item.show-anim { animation: workIn .55s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes workIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.work-hint { margin-top: 26px; font-size: 13.5px; color: var(--ink-mute); letter-spacing: .02em; }
@media (max-width: 900px){ .work-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .work-grid { grid-template-columns: 1fr; } }

/* ---------- PROJECT LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(6,7,10,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s ease; }
.lightbox-card { position: relative; z-index: 1; max-width: min(1000px, 92vw); margin: 0; display: flex; flex-direction: column; align-items: center; animation: modalIn .45s cubic-bezier(.16,1,.3,1); }
.lightbox-card img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow); background: var(--surface); }
.lightbox-cap { text-align: center; margin-top: 18px; }
.lightbox-cap .cat { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.lightbox-cap h3 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0; color: #F6F1E5; }
.lb-close { position: absolute; top: 24px; right: 28px; z-index: 3; background: none; border: 0; color: #F6F1E5; font-size: 40px; line-height: 1; cursor: pointer; transition: color .3s, transform .3s; }
.lb-close:hover { color: var(--gold); transform: rotate(90deg); }
.lb-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(246,241,229,.3); background: rgba(8,9,12,.5); color: #F6F1E5; font-size: 26px; cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.lb-nav:hover { background: var(--gold); color: #14110a; border-color: var(--gold); }
.lb-prev { left: 28px; } .lb-next { right: 28px; }
@media (max-width: 560px){ .lb-nav { width: 44px; height: 44px; font-size: 22px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } .lightbox { padding: 20px; } }

/* ---------- NEWSLETTER / CONTACT ---------- */
.cta { padding: clamp(90px,13vh,160px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('assets/img/o-fmbusiness.jpg') right center / cover no-repeat; opacity: .16;
  -webkit-mask: radial-gradient(125% 110% at 100% 45%, #000 22%, transparent 72%); mask: radial-gradient(125% 110% at 100% 45%, #000 22%, transparent 72%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.cta > .wrap { position: relative; z-index: 1; }
.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.cta h2 { margin-bottom: 22px; }
.cta .lead { margin: 0 0 34px; }
.contact-line { display:flex; align-items:center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); transition: border-color .4s; }
.contact-line:hover { border-color: var(--line); }
.contact-line .ic { width: 42px; height: 42px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; color: var(--gold); flex: none; transition: background .45s cubic-bezier(.2,.8,.2,1), color .45s, transform .45s, box-shadow .45s; }
.contact-line:hover .ic { background: var(--gold); color: var(--bg); transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 26px -6px rgba(195,163,104,.6); }
.contact-line .t small { display:block; font-size: 11px; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-mute); margin-bottom: 3px; }
.contact-line .t a, .contact-line .t span { font-family: var(--display); font-size: 21px; color: var(--ink); transition: color .35s, transform .35s cubic-bezier(.2,.8,.2,1); display: inline-block; }
.contact-line:hover .t a { color: var(--gold); transform: translateX(4px); }
.form { background: var(--surface); border: 1px solid var(--line-soft); padding: clamp(28px,4vw,46px); border-radius: 4px; box-shadow: var(--shadow); position: relative; }
.form::before { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; border-radius: 6px; opacity: 0; transition: opacity .55s ease;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft), var(--gold-deep), var(--gold));
  filter: blur(16px); }
.form:hover::before { opacity: .65; }
.form::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .55s ease;
  box-shadow: inset 0 0 0 1px rgba(195,163,104,.5); }
.form:hover::after { opacity: 1; }
.form > * { position: relative; z-index: 1; }
.form .fld { margin-bottom: 22px; }
.form label { display:block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.form input, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 16px; padding: 10px 2px; transition: border-color .4s; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-mute); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 880px){ .cta-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- CERTIFICATIONS ---------- */
.page-hero { position: relative; padding: clamp(150px,22vh,250px) 0 clamp(40px,6vh,72px); text-align: center; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 80% at 50% 0%, rgba(195,163,104,.14), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px,8vw,104px); line-height: 1; letter-spacing: -.01em; margin: 22px 0 0; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .lead { margin: 24px auto 0; max-width: 56ch; }
.certs { padding: clamp(80px,11vh,140px) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.certs::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(195,163,104,.08) 1px, transparent 1.4px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%); opacity: .7; }
.certs > .wrap { position: relative; z-index: 1; }
.certs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 54px; }
.cert-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; cursor: pointer; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .5s, box-shadow .5s; }
.cert-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 0 46px -12px rgba(195,163,104,.42), 0 28px 60px -34px rgba(0,0,0,.72); }
.cert-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.cert-card:hover .cert-thumb img { transform: scale(1.05); }
.cert-thumb.is-pdf { display: grid; place-items: center; background: linear-gradient(150deg, var(--surface-2), var(--card-hi)); }
.cert-thumb.is-pdf .doc { width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 12px; display: grid; place-items: center; color: var(--gold); }
.cert-thumb .view-pill { position: absolute; right: 12px; bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #14110a; background: var(--gold); padding: 6px 12px; border-radius: 100px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.cert-card:hover .view-pill { opacity: 1; transform: none; }
.cert-info { padding: 18px 20px 22px; }
.cert-info .iss { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.cert-info h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.18; margin: 8px 0 0; }
@media (max-width: 980px){ .certs-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 720px){ .certs-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .certs-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* cert preview modal */
.cert-modal { position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center; padding: 30px; }
.cert-modal.open { display: flex; }
.cert-modal .modal-overlay { position: absolute; inset: 0; background: rgba(6,7,10,.88); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.cert-stage { position: relative; z-index: 1; width: min(960px,100%); max-height: 90vh; display: flex; align-items: center; justify-content: center; animation: modalIn .45s cubic-bezier(.16,1,.3,1); }
.cert-stage img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 5px; box-shadow: var(--shadow); background: #fff; }
.cert-stage iframe { width: min(900px,90vw); height: 86vh; border: 0; border-radius: 5px; background: #fff; box-shadow: var(--shadow); }
.cert-pdf-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(900px,90vw); }
.cert-pdf-wrap iframe { width: 100%; height: 78vh; }
.cert-pdf-bar { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cert-pdf-bar .btn { padding: 13px 24px; font-size: 12px; }
.cert-pdf-bar .btn--ghost { color: #F6F1E5; border-color: rgba(246,241,229,.4); }
.cert-close { position: absolute; top: 18px; right: 24px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(8,9,12,.6); border: 1px solid var(--line-soft); color: #F6F1E5; font-size: 26px; line-height: 1; cursor: pointer; transition: color .3s, transform .3s, background .3s; }
.cert-close:hover { color: var(--gold); transform: rotate(90deg); }

/* ---------- MOTION CONTROL + REDUCED MOTION ---------- */
.motion-off .marquee-track { animation: none !important; }
.motion-off .hero-bg { transform: none !important; }
.motion-off .scroll-cue .bar::after { animation: none; }
.motion-subtle .marquee-track { animation-duration: 64s; }
[data-par] { transition: transform .1s linear; }
.motion-off [data-par] { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero .display .line > span { transform: none !important; animation: none !important; }
  .hero-sub p, .hero-sub .btn { opacity: 1 !important; animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- MOBILE MENU — compact glass control panel ---------- */
.mobile-sheet { position: fixed; top: 72px; right: 14px; z-index: 80; width: min(248px, calc(100vw - 28px));
  display: flex; flex-direction: column; padding: 8px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform-origin: top right; transform: scale(.92) translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .34s cubic-bezier(.2,.9,.3,1), opacity .28s ease; }
.mobile-sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-sheet .ms-label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); padding: 8px 12px 6px; }
.mobile-sheet a { display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: 15px; letter-spacing: .01em; color: var(--ink-soft); padding: 11px 12px; border-radius: 10px; transition: background .25s, color .25s; }
.mobile-sheet a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; color: var(--gold); }
.mobile-sheet a:hover, .mobile-sheet a.active { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); }
.mobile-sheet a:hover::after, .mobile-sheet a.active::after { opacity: 1; transform: none; }
.mobile-sheet .ms-divider { height: 1px; background: var(--line-soft); margin: 6px 8px; }
.mobile-sheet .ms-cta { justify-content: center; background: var(--gold); color: #14110a; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 2px; padding: 13px; }
.mobile-sheet .ms-cta::after { display: none; }
.mobile-sheet .ms-cta:hover { background: var(--gold-soft); color: #14110a; }
.mobile-sheet .close { position: absolute; top: -52px; right: 0; background: none; border: 0; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; display: none; }

/* ---------- PROPOSAL MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(6,7,10,.74); backdrop-filter: blur(6px); animation: fadeIn .4s ease; }
.modal-card { position: relative; z-index: 1; width: min(680px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(30px,4vw,52px); box-shadow: var(--shadow); animation: modalIn .5s cubic-bezier(.16,1,.3,1); }

/* Split proposal modal: photo/logo aside + form */
.modal-card--split { width: min(1000px, 100%); padding: 0; overflow: hidden; display: grid; grid-template-columns: 0.78fr 1fr; }
.modal-aside { position: relative; overflow: hidden; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 30px; }
.modal-aside-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: 0; }
video.modal-aside-photo { background: #16181D; }

/* proposal form deliverables picker */
.svc-pick-sub { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--ink-mute); font-weight: 300; margin-top: 5px; }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.svc-pick-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 4px; cursor: pointer; transition: border-color .3s, background .3s; }
.svc-pick-item:hover { border-color: var(--line); }
.svc-pick-item input { accent-color: var(--gold); width: 16px; height: 16px; flex: none; cursor: pointer; }
.svc-pick-item:has(input:checked) { border-color: var(--gold); background: var(--card-hi); }
.svc-pick-name { font-size: 13px; color: var(--ink); flex: 1; line-height: 1.25; }
.svc-pick-price { font-size: 12px; color: var(--gold); white-space: nowrap; }
@media (max-width: 560px){ .svc-pick { grid-template-columns: 1fr; } }
.modal-aside-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,11,14,.45) 0%, rgba(10,11,14,.25) 40%, rgba(10,11,14,.86) 100%); }
.modal-aside-top, .modal-aside-bottom { position: relative; z-index: 2; }
.modal-aside-logo { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.modal-aside-quote { font-family: var(--display); font-style: italic; font-size: 23px; line-height: 1.25; color: #F6F1E5; margin: 0 0 18px; }
.modal-aside-name { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: #F6F1E5; margin: 0; font-weight: 600; }
.modal-aside-name span { display: block; font-weight: 400; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin-top: 5px; }
.modal-aside-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.modal-aside-contact a { font-size: 13.5px; color: #F6F1E5; transition: color .3s; }
.modal-aside-contact a:hover { color: var(--gold-soft); }
.modal-body { position: relative; padding: clamp(30px,4vw,50px); max-height: 92vh; overflow-y: auto; }
.modal-close--body { display: none; }
@media (max-width: 720px){
  .modal-card--split { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  /* Clean stacked layout: video/photo as a banner, logo + text in a solid strip below — no overlap */
  .modal-aside { min-height: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; gap: 0; background: var(--surface-2); }
  .modal-aside-photo { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 5 / 4; object-position: 50% 12%; }
  video.modal-aside-photo { aspect-ratio: 5 / 4; }
  .modal-aside-veil { display: none; }
  .modal-aside-top { padding: 18px 22px 0; }
  .modal-aside-logo { height: 34px; }
  .modal-aside-bottom { padding: 10px 22px 18px; }
  .modal-aside-quote { display: none; }
  .modal-aside-contact { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .modal-card--split > .modal-close { display: grid; top: 12px; right: 12px; }
  .modal-close--body { display: none; }
}

/* CV preview modal */
.cv-card { position: relative; z-index: 1; width: min(920px, 100%); height: min(90vh, 1180px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); animation: modalIn .5s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; overflow: hidden; }
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 16px 24px; border-bottom: 1px solid var(--line-soft); flex: none; }
.cv-head-id { display: flex; align-items: center; gap: 16px; }
.cv-head-logo { height: 34px; width: auto; }
.cv-head-title { font-family: var(--display); font-size: 19px; color: var(--ink); }
.cv-head-actions { display: flex; align-items: center; gap: 12px; }
.cv-dl { padding: 12px 20px; font-size: 11px; }
.cv-close { position: static; }
.cv-viewer { flex: 1; min-height: 0; background: var(--bg); position: relative; overflow: auto; }

/* Branded CV document */
.cv-doc { max-width: 860px; margin: 0 auto; padding: clamp(26px,4vw,52px); color: var(--ink); }
.cv-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.cv-kicker { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.cv-name { font-family: var(--display); font-weight: 500; font-size: clamp(34px,5vw,52px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.cv-role { color: var(--ink-soft); font-size: 14.5px; font-weight: 300; margin: 14px 0 0; max-width: 46ch; }
.cv-contacts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; text-align: right; }
.cv-contacts li { font-size: 13.5px; color: var(--ink); }
.cv-contacts li span { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
.cv-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px,4vw,52px); margin-top: 34px; }
.cv-block { margin-bottom: 34px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-h { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.cv-profile { color: var(--ink-soft); font-size: 15px; font-weight: 300; line-height: 1.75; margin: 0 0 14px; }
.cv-profile strong { color: var(--ink); font-weight: 500; }
.cv-timeline { display: flex; flex-direction: column; gap: 24px; }
.cv-item, .cv-edu, .cv-ref { position: relative; }
.cv-timeline .cv-item { padding-left: 22px; border-left: 1px solid var(--line); }
.cv-timeline .cv-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.cv-date { display: inline-block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.cv-org { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.2; margin: 0 0 7px; color: var(--ink); }
.cv-org .cv-tag { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #14110a; background: var(--gold); padding: 3px 8px; border-radius: 3px; vertical-align: middle; margin-left: 8px; }
.cv-desc { color: var(--ink-soft); font-size: 13.8px; font-weight: 300; line-height: 1.68; margin: 0; }
.cv-desc em { color: var(--gold-soft); font-style: italic; }
.cv-edu, .cv-ref { margin-bottom: 20px; }
.cv-edu:last-child, .cv-ref:last-child { margin-bottom: 0; }
.cv-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-tags li { font-size: 12.5px; color: var(--ink); background: var(--card-hi); border: 1px solid var(--line-soft); padding: 7px 13px; border-radius: 100px; }
.cv-tags--ghost li { background: transparent; color: var(--ink-soft); }
@media (max-width: 720px){ .cv-grid { grid-template-columns: 1fr; gap: 30px; } .cv-contacts { text-align: left; } .cv-top { gap: 18px; } }
@media (max-width: 560px){ .cv-head-title { display: none; } .cv-dl span:first-child { display: none; } }

@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 20px; z-index: 8; background: none; border: 0; color: var(--ink-soft); font-size: 30px; line-height: 1; cursor: pointer; transition: color .3s, transform .3s; }
.modal-close:hover { color: var(--gold); transform: rotate(90deg); }
.modal-card--split > .modal-close { color: #F6F1E5; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,9,12,.5); }
.modal-title { font-family: var(--display); font-weight: 500; font-size: clamp(28px,3.4vw,44px); line-height: 1.05; margin: 14px 0 0; }
.modal-sub { color: var(--ink-soft); font-weight: 300; margin: 14px 0 30px; max-width: 52ch; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modal-form .fld { display: flex; flex-direction: column; }
.modal-form .fld.full { grid-column: 1 / -1; }
.modal-form label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 9px; }
.modal-form input, .modal-form select, .modal-form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 15.5px; padding: 9px 2px; transition: border-color .3s; }
.modal-form select option { color: #14140f; }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: var(--ink-mute); }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--gold); }
.modal-form textarea { resize: vertical; min-height: 92px; }
.modal-form .btn { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
@media (max-width: 620px){ .modal-form { grid-template-columns: 1fr; } }
