/* swapnilnadkar.com — Premium layer (visual only)
   Loaded LAST on every page. Adds art direction, motion and refinement on top of
   champagne.css (home, privacy, Thinking Room) and styles.css/sn-system.css (case study).
   No text, markup content, URLs or metadata are changed by this file.

   DESIGN SYSTEM
   Colour   ivory #FAF8F3 · cream #F8F3E9 · champagne #EDE3D2 · gold #B88636 / #8C6320 / #D9BE8B · ink #28343D · grey #6B685F · line #E8E1D5
   Type     Lora (display, reading intro, numerals) · Poppins (UI, body). Scale 1.200 on desktop, 1.125 on mobile
   Space    4 · 8 · 12 · 16 · 24 · 32 · 48 · 72 · 112
   Grid     12 col, 1180px container, 56px gutter (fluid), 640 / 960 / 1024 breakpoints
   Radius   2px controls · arch (portrait only)
   Image    4:5 arch portrait · 16:9 covers (4:3 on phones) · hairline inner frame on every feature image
   Motion   one orchestrated hero reveal · scroll-linked image settle · 250-350ms hover answers · all off under reduced motion */

:root{
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --grey:#6B685F;
  --gold-deep:#8C6320;
  --ink-2:#3A474F;
  --gold-wash:rgba(184,134,54,.08);
  --hair:rgba(40,52,61,.12);
  --radius:2px;
  --shadow:0 1px 1px rgba(40,52,61,.04),0 18px 40px -28px rgba(40,52,61,.28);
  --shadow-up:0 1px 1px rgba(40,52,61,.05),0 34px 60px -32px rgba(40,52,61,.40);
  --frame:rgba(255,255,255,.5);
}

/* ---------- cross-page transition (progressive) ---------- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.32s;animation-timing-function:var(--ease)}

/* ---------- base polish ---------- */
html{scroll-padding-top:calc(var(--hdr,84px) + 8px)}
body{font-feature-settings:"kern","liga","calt";font-kerning:normal}
h1,h2,h3,.tr__title,.story h3{font-feature-settings:"kern","liga","dlig" 0,"onum" 0;text-wrap:balance;font-optical-sizing:auto}
p,.lead,.tr__teaser,.story__d{text-wrap:pretty}
.story__img img,.tr__img img,.tr-cover img,.portrait img,.cs-cover img{background-color:var(--champ,#EDE3D2)}
::selection{background:#EDE3D2;color:#28343D}
:focus-visible{outline:2px solid var(--gold-deep,#8C6320);outline-offset:4px;border-radius:2px}

/* ---------- header: translucent, quieter, precise ---------- */
.header{background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom-color:rgba(232,225,213,.9)}
@supports not (backdrop-filter:blur(1px)){.header{background:rgba(255,255,255,.98)}}
.header.stuck{box-shadow:0 18px 36px -30px rgba(40,52,61,.5)}
.header::after{height:1px;background:linear-gradient(90deg,#8C6320,#D9BE8B)}
.brand span{letter-spacing:.02em}
.nav-links a{letter-spacing:.015em}
.nav-links a::after{height:1px;bottom:9px;transition:transform .45s var(--ease-out)}

/* ---------- buttons: sweep fill, precise states ---------- */
.btn,.clinks a:first-child,.tr-back.tr-main{
  position:relative;isolation:isolate;overflow:hidden;
  background-image:linear-gradient(var(--ink,#28343D),var(--ink,#28343D));
  background-repeat:no-repeat;background-size:0% 100%;background-position:0 0;
  transition:background-size .5s var(--ease-out),border-color .35s,color .35s,box-shadow .35s,transform .35s var(--ease-out);
}
.btn:hover,.btn:focus-visible,.clinks a:first-child:hover,.clinks a:first-child:focus-visible,.tr-back.tr-main:hover,.tr-back.tr-main:focus-visible{background-size:100% 100%;box-shadow:0 18px 32px -20px rgba(40,52,61,.55)}
.btn:active,.clinks a:first-child:active{transform:translateY(1px)}
.link,.tr__cta{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;border-bottom-color:rgba(184,134,54,.55)}
.link:hover,.tr__cta:hover{background-size:100% 1px}

/* ====================================================================
   HOME · HERO  (signature: arched portrait + one orchestrated reveal)
   ==================================================================== */
body.home .hero{position:relative;background:
    radial-gradient(60% 70% at 82% 38%,rgba(237,227,210,.62),rgba(237,227,210,0) 70%),
    linear-gradient(#fff,#fff)}
body.home .hero::before{content:"";position:absolute;left:var(--gut);right:var(--gut);bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(217,190,139,.8),transparent);margin-inline:auto;max-width:var(--max)}
@media (min-width:960px){body.home .hero__grid{grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr)}}
body.home .hero__grid{align-items:center}
body.home .hero .kicker{margin-bottom:30px}
body.home .hero h1{font-size:clamp(2rem,.85rem + 2.75vw,3.35rem);line-height:1.08;letter-spacing:-.028em;font-weight:500}
body.home .hero h1 span:nth-child(3){color:var(--gold-deep)}
body.home .hero h1::after{width:96px;height:1px;margin-top:clamp(28px,3.4vw,44px)}
body.home .hero .lead{max-width:29em;color:var(--ink-2)}

/* arch portrait */
body.home .portrait{max-width:430px}
body.home .portrait::before{inset:7% -10% 12% 16%;border-radius:999px 999px 2px 2px;background:linear-gradient(180deg,#F8F3E9,#EDE3D2)}
body.home .portrait .frame{border-radius:999px 999px 2px 2px;box-shadow:var(--shadow-up);overflow:visible}
body.home .portrait .frame::after{inset:16px -16px -16px 16px;border-radius:999px 999px 2px 2px;border-color:rgba(184,134,54,.55)}
body.home .portrait img{border-radius:999px 999px 2px 2px;aspect-ratio:4/5.2;object-position:50% 16%}
body.home .portrait figcaption{margin:-64px 0 0 -52px;max-width:372px}
body.home .portrait figcaption p{border-top:1px solid var(--gold);padding:24px 28px;font-size:.93rem;line-height:1.7;box-shadow:var(--shadow-up)}

@media (prefers-reduced-motion:no-preference){
  body.home .hero .kicker{animation:pr-in .9s var(--ease-out) .05s both}
  body.home .hero h1 span{animation:pr-line 1.15s var(--ease-out) both}
  body.home .hero h1 span:nth-child(1){animation-delay:.12s}
  body.home .hero h1 span:nth-child(2){animation-delay:.26s}
  body.home .hero h1 span:nth-child(3){animation-delay:.40s}
  body.home .hero h1::after{transform-origin:left;animation:pr-rule 1.1s var(--ease-out) .7s both}
  body.home .hero .lead,body.home .hero .actions{animation:pr-in 1s var(--ease-out) .62s both}
  body.home .hero .actions{animation-delay:.76s}
  body.home .portrait .frame{animation:pr-arch 1.35s var(--ease-out) .18s both}
  body.home .portrait figcaption{animation:pr-in 1s var(--ease-out) .95s both}
}
@keyframes pr-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes pr-line{from{opacity:0;transform:translateY(.42em);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(-12% 0 -12% 0)}}
@keyframes pr-rule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes pr-arch{from{opacity:0;clip-path:inset(18% 0 0 0 round 999px 999px 2px 2px);transform:translateY(20px)}to{opacity:1;clip-path:inset(-4% -8% -4% -4% round 999px 999px 2px 2px);transform:none}}

/* ====================================================================
   HOME · ABOUT
   ==================================================================== */
body.home #about .sec--paper{background:linear-gradient(180deg,#FAF8F3,#F8F3E9 140%)}
body.home .split h2{font-size:clamp(2rem,1.1rem + 2.8vw,3.4rem);line-height:1.1}
body.home .prose{border-left-color:rgba(217,190,139,.9)}
body.home .prose p{color:var(--ink-2)}
body.home .prose.lead p:first-child{color:var(--ink);font-size:clamp(1.25rem,1.1rem + .7vw,1.6rem);line-height:1.55}
body.home .stance__h{font-size:clamp(1.8rem,1rem + 2.6vw,3.2rem);line-height:1.14}
body.home .stance__p{color:var(--grey)}

/* ====================================================================
   HOME · COMPETENCIES (intelligent asymmetry)
   ==================================================================== */
body.home #competencies{background:linear-gradient(180deg,#F8F3E9,#F4ECDC)}
body.home .pillar{border-top:1px solid var(--gold);border-radius:var(--radius);background:#fff;position:relative;transition:transform .5s var(--ease-out),box-shadow .5s,border-color .4s}
body.home .pillar::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:3px;background:linear-gradient(90deg,#8C6320,#D9BE8B);transform:scaleX(.18);transform-origin:left;transition:transform .7s var(--ease-out)}
body.home .pillar:hover{transform:translateY(-6px);box-shadow:var(--shadow-up)}
body.home .pillar:hover::before{transform:scaleX(1)}
body.home .pillar__top{margin-bottom:30px}
body.home .pillar .n{font:400 2.1rem/1 var(--serif);color:rgba(184,134,54,.55);letter-spacing:0}
body.home .pillar__ico{width:44px;height:44px}
@media (min-width:1024px){
  body.home .pillars{align-items:start}
  body.home .pillar:nth-child(2){margin-top:44px}
  body.home .pillar:nth-child(3){margin-top:88px}
  body.home .pillar{height:auto}
}

/* ====================================================================
   HOME · IMPACT STORIES
   ==================================================================== */
body.home #impact .story{border-radius:var(--radius);border-color:rgba(232,225,213,.95)}
body.home .story__img::after{content:"";position:absolute;inset:16px;z-index:2;pointer-events:none;border:1px solid var(--frame);transition:inset .6s var(--ease-out),border-color .4s}
body.home .story:hover .story__img::after{inset:22px;border-color:rgba(255,255,255,.75)}
body.home .story h3{font-size:clamp(1.55rem,1rem + 1.7vw,2.45rem);line-height:1.16}
body.home .story__cat{letter-spacing:.05em}
body.home .story__d{color:var(--grey)}
body.home .story__foot{border-top-color:rgba(217,190,139,.7)}

/* ====================================================================
   HOME · THE THINKING ROOM (independent journal)
   ==================================================================== */
body.home #thinking-room{background:linear-gradient(180deg,#FAF8F3,#F8F3E9)}
body.home #thinking-room h2.t{font-size:clamp(2.5rem,1.3rem + 4.2vw,4.7rem);letter-spacing:-.03em}
body.home .tr__feature{border-top-color:rgba(217,190,139,.8);gap:clamp(28px,5.4vw,84px)}
body.home .tr__img{border-radius:var(--radius);border-color:rgba(232,225,213,.9);box-shadow:var(--shadow-up)}
body.home .tr__img::after{content:"";position:absolute;inset:14px;z-index:2;pointer-events:none;border:1px solid var(--frame);transition:inset .6s var(--ease-out)}
body.home .tr__feature:hover .tr__img::after{inset:20px}
body.home .tr__title{font-size:clamp(1.55rem,1.05rem + 1.6vw,2.4rem);line-height:1.18}
body.home .tr__teaser{color:var(--grey)}

/* ====================================================================
   HOME · CONTACT + FOOTER
   ==================================================================== */
body.home #contact{position:relative;background:radial-gradient(70% 90% at 50% 0%,#F8F3E9,#F1E8D6)}
body.home #contact::before{content:"";position:absolute;left:50%;top:0;width:1px;height:clamp(40px,6vw,80px);background:linear-gradient(#D9BE8B,transparent)}
body.home .contact h2.t{font-size:clamp(2.6rem,1.3rem + 4.8vw,5.2rem);line-height:1.04}
body.home .contact .lead{color:var(--ink-2)}
/* ====================================================================
   THINKING ROOM · ARTICLES (editorial reading)
   ==================================================================== */
.sn-bar{background:rgba(250,248,243,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.page-article{background:linear-gradient(180deg,#fff 0,#fff 520px,#FEFDFB 100%)}
.tr-article{padding-top:clamp(56px,7.5vw,112px)}
.tr-label{letter-spacing:.14em;font-size:.8rem}
.tr-label::before,.tr-label::after{width:44px}
.tr-article h1{font-size:clamp(2.1rem,1rem + 4vw,4.3rem);line-height:1.06;letter-spacing:-.03em;margin-top:18px}
.tr-sub{color:var(--grey);font-size:clamp(1.1rem,1rem + .55vw,1.4rem)}
.tr-time{border-block-color:rgba(217,190,139,.9);letter-spacing:.1em;padding-inline:34px}
.tr-cover{position:relative;max-width:1120px;border-radius:var(--radius);border-color:rgba(232,225,213,.9);box-shadow:var(--shadow-up)}
.tr-cover::after{content:"";position:absolute;inset:18px;pointer-events:none;border:1px solid var(--frame)}
.tr-col{max-width:700px}
.tr-intro{font-size:clamp(1.3rem,1.1rem + .9vw,1.75rem);line-height:1.52;color:var(--ink);border-bottom-color:rgba(217,190,139,.9);position:relative}
.tr-intro::before{content:"";display:block;width:44px;height:2px;background:var(--gold);margin-bottom:clamp(22px,2.6vw,30px)}
.tr-body p{font-size:1.075rem;line-height:1.95;color:#2E3A42}
.tr-body p+p{margin-top:1.5em}
.tr-body h2{margin-top:clamp(52px,6vw,80px);padding-top:30px;font-size:clamp(1.55rem,1.2rem + 1.3vw,2.15rem)}
.tr-body h2::before{width:56px}
.tr-nav{border-top-color:rgba(217,190,139,.9)}
.tr-nav a{transition:background .4s,padding .4s var(--ease-out)}
.tr-nav a:hover,.tr-nav a:focus-visible{background:linear-gradient(90deg,rgba(248,243,233,.9),rgba(248,243,233,0))}
.tr-nav .next:hover,.tr-nav .next:focus-visible{background:linear-gradient(270deg,rgba(248,243,233,.9),rgba(248,243,233,0))}
.tr-back{border-radius:var(--radius);border-color:rgba(40,52,61,.75)}

/* scroll-linked settle on feature images (progressive, CSS only) */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .story__img img,.tr__img img,.tr-cover img{animation:pr-settle linear both;animation-timeline:view();animation-range:entry 0% cover 45%}
    .story:hover .story__img img,.tr__feature:hover .tr__img img{animation:none;transform:scale(1.025)}
  }
}
@keyframes pr-settle{from{transform:scale(1.07)}to{transform:scale(1)}}

/* ====================================================================
   PRIVACY (home register, reading page)
   ==================================================================== */
body.home:not(:has(#about)) main{max-width:none}

/* ====================================================================
   CASE STUDY · evidence register, brought into the champagne system
   ==================================================================== */
html body.page-case{
  --ivory:#FAF8F3;--paper:#FFFFFF;--champ:#F1E8D6;--line:#E8E1D5;--line2:#EFE9DC;
  --ink:#28343D;--navy:#28343D;--navy2:#34434D;--deep:#222D35;--body:#3A474F;--muted:#6B685F;--stone:#6B685F;
  --gold:#B88636;--gold-hi:#D9BE8B;--gold-deep:#8C6320;--gold-ink:#8C6320;--gold-pale:#F1E8D6;
  background:#FAF8F3;
}
body.page-case .header{background:rgba(255,255,255,.88)}
body.page-case .nav-links a{font:500 .9rem/1 'Poppins',system-ui,sans-serif;letter-spacing:.015em;color:#28343D}
body.page-case .nav-links a:hover,body.page-case .nav-links a.on{color:#8C6320}
body.page-case .brand span{font:500 1.18rem/1 'Lora',Georgia,serif;letter-spacing:.02em;color:#28343D}
body.page-case .sn-bar{background:#F8F3E9;border-bottom:1px solid #E8E1D5}
body.page-case .sn-bar__back{color:#28343D;font:500 .84rem/1 'Poppins',sans-serif;letter-spacing:.02em}
body.page-case .sn-bar__back:hover,body.page-case .sn-bar__back:focus-visible{color:#8C6320}
body.page-case .sn-bar__ctx{color:#6B685F;font:400 .82rem/1 'Poppins',sans-serif;letter-spacing:.02em}
body.page-case .cs-head{border-bottom:1px solid rgba(217,190,139,.9)}
body.page-case .cs-head .kicker{color:#8C6320;letter-spacing:.08em;font-weight:500}
body.page-case .cs-head h1.t{font-size:clamp(2.2rem,1rem + 4.2vw,4.4rem);line-height:1.06;letter-spacing:-.03em;font-weight:500;max-width:15em}
body.page-case .cs-head .story__t{color:#28343D;letter-spacing:.01em;font-weight:500;font-size:1rem}
body.page-case .cs-head .lead{color:#3A474F;max-width:34em}
body.page-case .cs-meta{background:transparent;border:0;border-top:1px solid rgba(217,190,139,.9);gap:0;margin-top:clamp(28px,3.4vw,44px)}
body.page-case .cs-meta span{background:transparent;border:0;border-right:1px solid rgba(217,190,139,.55);padding:18px 22px 4px;letter-spacing:.04em;font-weight:500;font-size:.84rem;color:#28343D}
body.page-case .cs-meta span:first-child{padding-left:0}
body.page-case .cs-meta span:last-child{border-right:0}
body.page-case .cs-cover{position:relative;border-radius:2px;box-shadow:var(--shadow-up);overflow:hidden}
body.page-case .cs-cover::after{content:"";position:absolute;inset:18px;pointer-events:none;border:1px solid rgba(255,255,255,.5)}
body.page-case .toc{background:#fff;border:1px solid #E8E1D5;border-top:2px solid #B88636;border-radius:2px;box-shadow:var(--shadow)}
body.page-case .toc a{transition:color .25s,padding .35s var(--ease-out)}
body.page-case .toc a:hover{color:#8C6320;padding-left:6px}
body.page-case .part__h{border-top:1px solid rgba(217,190,139,.95);border-bottom:1px solid #EFE9DC}
body.page-case .part__h i{color:#8C6320;letter-spacing:.1em;font-weight:500;font-size:.78rem}
body.page-case .part__h h3{font-weight:500;letter-spacing:-.018em;font-size:clamp(1.45rem,1.1rem + 1.2vw,2.1rem)}
body.page-case .kpis{border-block:1px solid rgba(217,190,139,.9);background:transparent}
body.page-case .kpi b,body.page-case .kpi strong{font-family:'Lora',Georgia,serif;font-weight:500;letter-spacing:-.02em;color:#28343D}
body.page-case .fig,body.page-case .scroll.fig{border-radius:2px;border-color:#E8E1D5;background:#fff;box-shadow:var(--shadow)}
/* consulting-grade charts: same semantic colours, desaturated for restraint */
html body.page-case{--pos:#4B7A66;--neg:#A8503A;--amber:#B88636}
body.page-case .fig svg{filter:saturate(.74) contrast(1.02)}
body.page-case .fig .cap,body.page-case .fig figcaption{letter-spacing:.01em}
body.page-case .finding{border-top-color:rgba(217,190,139,.9)}
body.page-case .finding .num{color:#8C6320;font-family:'Lora',Georgia,serif}
body.page-case .note{background:#F8F3E9;border-left:2px solid #B88636}
body.page-case table,body.page-case .tbl{border-color:#E8E1D5}
body.page-case .tbl .r{border-color:#EFE9DC}
body.page-case .tbl .r:hover{background:rgba(248,243,233,.7)}
body.page-case .phase{border-top:2px solid #B88636;background:#fff;border-radius:2px}
body.page-case .btn{border-radius:2px}
body.page-case .disc{color:#6B685F}

/* ====================================================================
   RESPONSIVE ART DIRECTION
   ==================================================================== */
@media (max-width:1023px){
  body.home .pillar:nth-child(n){margin-top:0}
  body.home .pillars{gap:20px}
  body.home .hero h1 span:nth-child(2),body.home .hero h1 span:nth-child(3){padding-left:0}
}
@media (max-width:959px){
  body.home .hero{padding-top:28px}
  body.home .hero__grid{gap:44px}
  body.home .portrait{justify-self:center;max-width:360px;width:82%}
  body.home .portrait figcaption{margin:-52px 0 0 -14px;width:calc(100% + 14px)}
  .tr-cover{max-width:100%}
}
@media (max-width:640px){
  :root{--gut:20px}
  body.home .hero h1{font-size:clamp(2rem,8.6vw,2.6rem);line-height:1.08}
  body.home .hero .actions{gap:14px 24px}
  body.home .hero .btn{width:100%;justify-content:space-between}
  body.home .portrait{width:86%}
  body.home .portrait figcaption p{padding:20px 22px;font-size:.9rem}
  body.home .story__img{aspect-ratio:4/3}
  body.home .story__img::after,body.home .tr__img::after{inset:10px}
  body.home .tr__img img{aspect-ratio:4/3}
  .tr-cover img{aspect-ratio:4/3}
  .tr-cover::after{inset:10px}
  .tr-article h1{font-size:clamp(2rem,9vw,2.6rem)}
  .tr-body p{font-size:1.04rem;line-height:1.88}
    .tr-foot--links{flex-direction:column;align-items:stretch}
  .tr-back{width:100%}
  body.page-case .cs-meta{grid-template-columns:1fr 1fr}
  body.page-case .cs-meta span{border-right:0;padding:14px 0 4px}
  body.page-case .cs-head h1.t{font-size:clamp(2rem,9vw,2.7rem)}
}
@media (min-width:1600px){
  :root{--max:1260px}
  body.home .hero h1{font-size:3.7rem}
}

/* ---------- reduced motion: everything static ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
@media print{.header,.sn-bar,.footer{display:none}}

/* ---- THE THINKING ROOM wordmark: hairlines, spaced serif capitals, restrained gold ---- */
.wm{display:inline-flex;flex-direction:column;align-items:stretch;gap:.9em;font-family:var(--serif,"Lora",serif);color:var(--ink,#28343D)}
.wm__t{font-weight:500;font-size:clamp(1.05rem,.8rem + 1.5vw,1.9rem);letter-spacing:.42em;padding-left:.42em;text-align:center;line-height:1;white-space:nowrap}
.wm__l{display:block;height:1px;background:linear-gradient(90deg,rgba(184,134,54,0),#B88636 18%,#D9BE8B 50%,#B88636 82%,rgba(184,134,54,0))}
.wm__l--d{position:relative}
.wm__l--d::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;background:#B88636;transform:translate(-50%,-50%) rotate(45deg);box-shadow:0 0 0 4px var(--bg,#FAF8F3)}
.tr__wm{margin:0}
@media (max-width:420px){.wm__t{letter-spacing:.3em;padding-left:.3em;font-size:1rem}}
.wm--lt{color:#fff;--bg:#14191D}
.wm--lt .wm__t{font-size:clamp(.8rem,.65rem + .8vw,1.15rem)}

/* Story 01 artwork is a native 2:1 panorama: show it uncropped wherever the card stacks, so the subject and scene both stay in frame. */
@media (max-width:959px){body.home .story__img.story__img--wide{aspect-ratio:2/1}}
