/* =====================================================================
   Arun Rawat  |  Design system "Ink & Paper"
   Deep navy, warm paper, one hairline brass accent, editorial type.
   Mobile first. Glass is used only on the nav, hero panel and form.
   ===================================================================== */

:root {
  /* blues */
  --ink-950: #06122a;
  --ink-900: #0a1b3a;
  --ink-800: #0f2a54;
  --ink-700: #16386f;
  --blue-600: #1f4e8c;     /* interactive */
  --blue-500: #3a6aa8;
  --steel-400: #7f98bb;
  --steel-300: #aebdd4;
  --mist-100: #e4ebf4;
  --mist-50: #f0f4f9;
  /* paper */
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --white: #fff;
  /* text */
  --text: #0e1b33;
  --text-2: #475a76;
  --text-inv: #e9eef6;
  --text-inv-2: #b4c1d6;
  /* accent, used sparingly */
  --brass: #b3966a;
  --brass-d: #8d7248;
  --line: rgba(14, 27, 51, .14);
  --line-inv: rgba(255, 255, 255, .16);

  --f-display: "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --f-body: "Hanken Grotesk", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Newsreader", "Noto Serif Devanagari", Georgia, serif;

  --r-s: 4px;
  --r-m: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink-800); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--brass); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.4vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.12; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
em, i { font-style: italic; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--text-2); max-width: 52ch; }
.dark .lead { color: var(--text-inv-2); }

.wrap { width: min(var(--max), 100% - var(--gut) * 2); margin-inline: auto; }
.narrow { width: min(820px, 100% - var(--gut) * 2); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 168px); position: relative; }
.section.tight { padding-block: clamp(48px, 7vw, 96px); }
.paper2 { background: var(--paper-2); }
.dark { background: var(--ink-900); color: var(--text-inv); }
.dark.deep { background: var(--ink-950); }

.label {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brass-d);
}
.dark .label { color: var(--brass); }
.label i { font-style: normal; font-variant-numeric: tabular-nums; }
.label::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-inv); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink-900); --b-fg: #fff; --b-bd: var(--ink-900);
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px 16px 28px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); border-radius: 999px;
  font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { color: var(--ink-950); border-color: var(--brass); }
.btn .arr { width: 18px; height: 18px; transition: transform .5s var(--ease); flex: none; }
.btn:hover .arr { transform: translateX(4px); }
.btn.light { --b-bg: var(--paper); --b-fg: var(--ink-900); --b-bd: var(--paper); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line); }
.dark .btn.ghost, .btn.ghost.inv { --b-fg: #fff; --b-bd: var(--line-inv); }
.btn.ghost:hover { border-color: var(--brass); }
.btn.sm { padding: 12px 20px 12px 22px; font-size: .76rem; }
.tlink {
  display: inline-flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease);
}
.tlink:hover { background-size: 0 1px; background-position: 100% 100%; }
.tlink svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.tlink:hover svg { transform: translateX(5px); }

/* ---------- Navigation (glass) ---------- */
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 100; pointer-events: none;
  transition: transform .6s var(--ease);
}
.nav.hide { transform: translateY(-140%); }
.nav-in {
  pointer-events: auto; width: min(1380px, 100% - 28px); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px 0 22px; border-radius: 999px;
  background: rgba(8, 22, 48, .52); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px -24px rgba(3, 10, 25, .7);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.brand b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: .01em; }
.brand small { display: block; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-300); margin-top: 4px; }
.menu { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; }
.menu a { display: block; padding: 10px 14px; font-size: .84rem; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .82); position: relative; transition: color .3s; border-radius: 999px; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.has-sub { position: relative; }
.sub {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 220px; padding: 8px; list-style: none; margin: 0; border-radius: 18px;
  background: rgba(8, 22, 48, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { border-radius: 12px; }
.sub a::after { display: none; }
.sub a:hover { background: rgba(255, 255, 255, .08); }
.nav-cta { display: none; }
.burger {
  pointer-events: auto; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); cursor: pointer;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.burger span { display: block; width: 20px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 18, 42, .94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: flex-start; padding: 124px var(--gut) 40px; color: #fff;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s; overflow-y: auto;
}
.menu-open .sheet { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.sheet li a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; transform: translateY(110%); transition: transform .8s var(--ease); }
.sheet li a small { font-family: var(--f-body); font-size: .68rem; letter-spacing: .16em; color: var(--brass); }
.menu-open .sheet li a { transform: none; }
.menu-open .sheet li:nth-child(1) a { transition-delay: .18s; } .menu-open .sheet li:nth-child(2) a { transition-delay: .22s; }
.menu-open .sheet li:nth-child(3) a { transition-delay: .26s; } .menu-open .sheet li:nth-child(4) a { transition-delay: .3s; }
.menu-open .sheet li:nth-child(5) a { transition-delay: .34s; } .menu-open .sheet li:nth-child(6) a { transition-delay: .38s; }
.menu-open .sheet li:nth-child(7) a { transition-delay: .42s; } .menu-open .sheet li:nth-child(8) a { transition-delay: .46s; }
.menu-open .sheet li:nth-child(9) a { transition-delay: .5s; } .menu-open .sheet li:nth-child(10) a { transition-delay: .54s; }
.sheet .sheet-foot { margin-top: 28px; font-size: .9rem; color: var(--text-inv-2); display: grid; gap: 4px; }
.sheet .sheet-foot a { color: #fff; }
@media (min-width: 1060px) {
  .menu { display: flex; } .burger { display: none; } .sheet { display: none; }
  .nav-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink-950); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 18, 42, .66) 0%, rgba(6, 18, 42, .34) 34%, rgba(6, 18, 42, .66) 74%, rgba(6, 18, 42, .94) 100%);
}
.hero .wrap { padding-block: calc(var(--nav-h) + 56px) clamp(36px, 6vw, 72px); display: grid; gap: 40px; }
.hero h1 { max-width: 14ch; margin-bottom: 26px; }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .label { color: rgba(255, 255, 255, .92); }
.glass {
  background: rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-m); box-shadow: 0 24px 50px -30px rgba(2, 8, 22, .8);
}
.hero-panel { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; width: 100%; max-width: 560px; }
.hero-panel div { padding: 16px 16px 14px; }
.hero-panel div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-panel b { display: block; font-family: var(--f-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 500; line-height: 1; }
.hero-panel span { display: block; margin-top: 8px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); line-height: 1.4; }
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .hero-panel { justify-self: end; margin-right: clamp(0px, 4vw, 64px); }
}

/* page header (inner pages) */
.phead { position: relative; background: var(--ink-900); color: #fff; padding: calc(var(--nav-h) + 90px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.phead-media { position: absolute; inset: 0; z-index: -2; opacity: .5; }
.phead-media img { width: 100%; height: 100%; object-fit: cover; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 27, 58, .96) 0%, rgba(10, 27, 58, .72) 55%, rgba(10, 27, 58, .5) 100%); }
.phead h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); max-width: 16ch; margin-bottom: 20px; }
.phead .lead { color: var(--text-inv-2); }
.crumbs { display: flex; gap: 12px; margin-bottom: 36px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-300); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Text split reveal ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.sw > span { display: inline-block; will-change: transform; }
.has-motion [data-split] { visibility: hidden; }
.has-motion [data-split].is-split { visibility: visible; }
.has-motion [data-fade] { opacity: 0; transform: translateY(26px); }
.has-motion [data-img] { clip-path: inset(0 0 100% 0); }
.has-motion [data-hero]:not([data-split]) { opacity: 0; transform: translateY(26px); }
.has-motion [data-line] { transform: scaleX(0); transform-origin: left; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--paper); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--ink-800); white-space: nowrap; padding-right: 3.2rem; display: inline-flex; align-items: center; gap: 3.2rem; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-l { grid-template-columns: 1.1fr .9fr; }
  .split.wide-r { grid-template-columns: .9fr 1.1fr; }
  .split.top { align-items: start; }
  .split.rev > :first-child { order: 2; }
}
.photo { position: relative; overflow: hidden; border-radius: var(--r-s); background: var(--mist-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4/5; }
.photo.wide { aspect-ratio: 16/10; }
.photo.sq { aspect-ratio: 1; }
@media (min-width: 900px) { .stick { position: sticky; top: 120px; } }
.photo-cap { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 14px 18px; color: #fff; }
.photo-cap b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; display: block; line-height: 1.1; }
.photo-cap small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); }
.pullquote { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--ink-800); padding-left: 26px; border-left: 1px solid var(--brass); margin: 34px 0; }
.dark .pullquote { color: #fff; }

/* ---------- Numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-inv); }
.num { padding: 34px 6px 34px 0; border-bottom: 1px solid var(--line-inv); }
.num:nth-child(odd) { border-right: 1px solid var(--line-inv); }
.num:nth-child(even) { padding-left: 24px; }
.num b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.num span { display: block; margin-top: 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-inv-2); max-width: 24ch; }
@media (min-width: 900px) {
  .nums { grid-template-columns: repeat(4, 1fr); }
  .num { border-bottom: 0; padding: 40px 28px 10px; border-right: 1px solid var(--line-inv); }
  .num:first-child { padding-left: 0; } .num:nth-child(even) { padding-left: 28px; } .num:last-child { border-right: 0; }
}

/* ---------- Editorial rows (projects, workshops, principles) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .6s var(--ease); }
.row .n { grid-column: 1 / -1; }
.row h3 { grid-column: 1; }
.row .m { grid-column: 2; grid-row: 2; }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--ink-900); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.row { isolation: isolate; }
.row .n { font-size: .74rem; letter-spacing: .16em; color: var(--brass-d); font-variant-numeric: tabular-nums; transition: color .4s; }
.row h3 { margin: 0; transition: color .4s, transform .6s var(--ease); }
.row .m { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-align: right; transition: color .4s; }
.row .m b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-800); display: block; line-height: 1; transition: color .4s; }
.row p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--text-2); max-width: 62ch; transition: color .4s; }
@media (hover: hover) {
  .row:hover::before { transform: none; }
  .row:hover h3 { color: #fff; transform: translateX(14px); }
  .row:hover .n { color: var(--brass); } .row:hover .m, .row:hover p { color: var(--text-inv-2); } .row:hover .m b { color: #fff; }
}
@media (min-width: 900px) {
  .row { grid-template-columns: 64px 1.1fr 1.2fr auto; align-items: center; padding: 34px 0; gap: 8px 22px; }
  .row .n { grid-column: 1; grid-row: 1; } .row h3 { grid-column: 2; grid-row: 1; }
  .row p { grid-column: 3; grid-row: 1; margin: 0; } .row .m { grid-column: 4; grid-row: 1; min-width: 150px; }
}

/* ---------- Two big panels ---------- */
.panels { display: grid; gap: 20px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { position: relative; min-height: clamp(360px, 46vw, 540px); padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; border-radius: var(--r-s); isolation: isolate; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 42, .12) 0%, rgba(6, 18, 42, .62) 52%, rgba(6, 18, 42, .95) 100%); }
.panel:hover img { transform: scale(1.06); }
.panel h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }
.panel p { color: var(--text-inv-2); max-width: 44ch; }
.panel .tlink { align-self: flex-start; }

/* ---------- Quote band ---------- */
.band { position: relative; overflow: hidden; color: #fff; isolation: isolate; text-align: center; }
.band-media { position: absolute; inset: -12% 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 22, 48, .72); }
.band blockquote { margin: 0 auto; max-width: 20ch; font-family: var(--f-display); font-size: clamp(2.5rem, 7.6vw, 6.4rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.band blockquote em { color: var(--steel-300); }
.band cite { display: block; margin-top: 34px; font-style: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-300); }

/* ---------- Book ---------- */
.book { max-width: 340px; margin-inline: auto; perspective: 1400px; }
.book-3d { position: relative; transform: rotateY(-18deg) rotateX(2deg); transform-style: preserve-3d; transition: transform 1s var(--ease); }
.book:hover .book-3d { transform: rotateY(-4deg); }
.book-3d img { border-radius: 2px 8px 8px 2px; box-shadow: -22px 30px 50px -22px rgba(6, 18, 42, .55); width: 100%; }
.book-3d::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent); border-radius: 2px 0 0 2px; }

/* ---------- Journal cards ---------- */
.posts { display: grid; gap: clamp(36px, 4vw, 56px) 28px; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; }
.post-img { display: block; overflow: hidden; border-radius: var(--r-s); aspect-ratio: 4/3; background: var(--mist-100); margin-bottom: 22px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post-meta { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 12px; font-weight: 600; }
.post h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: 10px; }
.post h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.post:hover h3 a { background-size: 100% 1px; }
.post p { color: var(--text-2); font-size: .98rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: transparent; padding: 10px 18px; border-radius: 999px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--ink-800); }
.filters button.on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.finder { position: relative; max-width: 460px; margin-bottom: 20px; }
.finder input { width: 100%; padding: 16px 20px 16px 52px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font: inherit; color: var(--text); }
.finder svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-2); }
.finder input:focus { outline: none; border-color: var(--blue-600); }
.empty { display: none; padding: 40px 0; color: var(--text-2); }

/* ---------- Article ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; z-index: 120; }
.ahead { background: var(--ink-900); color: #fff; padding: calc(var(--nav-h) + 80px) 0 clamp(40px, 6vw, 72px); }
.ahead h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 20ch; }
.ameta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-300); }
.ameta b { color: var(--brass); font-weight: 600; }
.acover { margin-top: clamp(-40px, -4vw, -24px); position: relative; }
.acover .photo { width: 100%; aspect-ratio: auto; height: clamp(240px, 46vw, 640px); }
.acover.tall .photo { height: clamp(320px, 60vw, 720px); background: var(--paper-2); }
.acover.tall img { object-fit: contain; }
.prose { font-family: var(--f-read); font-size: clamp(1.14rem, 1.5vw, 1.28rem); line-height: 1.85; color: #15243f; }
.prose p { margin-bottom: 1.45em; }
.prose > p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 4.6em; line-height: .8; padding: .06em .1em 0 0; color: var(--ink-800); }
.prose[lang="hi"] > p:first-of-type::first-letter { all: unset; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 clamp(16px, 3vw, 28px); border-left: 1px solid var(--brass); font-family: var(--f-display); font-style: italic; font-size: clamp(1.3em, 3vw, 1.55em); line-height: 1.3; color: var(--ink-800); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.5em; } .prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--r-s); margin: 2em auto; }
.prose hr { border: 0; text-align: center; margin: 3em 0; height: 1em; }
.prose hr::after { content: "\2022  \2022  \2022"; letter-spacing: .6em; color: var(--brass); }
.prose p.verse-start, .prose p.verse-line { margin: 0; padding-left: 1.2em; border-left: 1px solid var(--line); font-family: var(--f-display); font-size: 1.22em; line-height: 1.7; }
.prose p.verse-start { margin-top: 1.5em; }
.prose p.verse-start + p:not([class]), .prose p.verse-line + :not(.verse-line):not(.verse-start) { margin-top: 1.6em; }
.prose > p[class^="verse"]:first-of-type::first-letter { all: unset; }
.prose p:has(> img) { margin: 2em 0; }
.prose p:has(> img)::first-letter { all: unset; }
.prose p > img { margin: 0 auto; height: auto; }
.prose video { display: block; width: 100%; max-height: 80vh; margin: 2em auto; background: var(--ink-950); border-radius: var(--r-s); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 2em 0; font-family: var(--f-body); font-size: .82em; line-height: 1.55; -webkit-overflow-scrolling: touch; }
.prose tbody { display: table; width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: clamp(8px, 2vw, 12px) clamp(8px, 2.4vw, 14px); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose tr:first-child td { background: var(--ink-900); color: #fff; font-weight: 600; border-color: var(--ink-900); }
.prose h4 { font-family: var(--f-body); font-weight: 600; font-size: 1.02em; margin: 1.8em 0 .5em; }
.prose { overflow-wrap: break-word; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.more-wrap small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share a, .share button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.share a:hover, .share button:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.share svg { width: 17px; height: 17px; }
.pn { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .pn { grid-template-columns: 1fr 1fr; } .pn a + a { border-left: 1px solid var(--line); text-align: right; } }
.pn a { padding: 30px 0; display: block; transition: background .4s; }
@media (min-width: 700px) { .pn a { padding: 40px 30px; } .pn a:first-child { padding-left: 0; } .pn a:last-child { padding-right: 0; } }
.pn small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-d); display: block; margin-bottom: 8px; }
.pn b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; display: block; }

/* ---------- Letter of intro ---------- */
.letter { background: var(--white); padding: clamp(28px, 6vw, 80px); border: 1px solid var(--line); position: relative; }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.letter .lh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.letter .lh b { font-family: var(--f-display); font-size: 2.2rem; font-weight: 600; }
.letter h3 { margin-top: 1.4em; }
.letter .q { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: var(--ink-800); text-align: center; padding: 18px 0; margin: 20px 0; border-block: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 700px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 7px; border: solid var(--brass-d); border-width: 0 0 1.5px 1.5px; transform: translateY(-70%) rotate(-45deg); }

/* ---------- Timeline ---------- */
.tl { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 0; }
.tl-i { position: relative; padding: 0 0 34px 34px; }
.tl-i::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.tl-i b { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; display: block; line-height: 1.1; }
.tl-i p { margin: 4px 0 0; color: var(--text-2); font-size: .98rem; }
.dark .tl { border-color: var(--line-inv); } .dark .tl-i p { color: var(--text-inv-2); }

/* ---------- Card grid (principles) ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); } .cards.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.cardx { background: var(--paper); padding: clamp(28px, 3vw, 44px); transition: background .5s var(--ease), color .5s; }
.cardx .n { font-size: .74rem; letter-spacing: .18em; color: var(--brass-d); display: block; margin-bottom: 40px; }
.cardx h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.cardx p { color: var(--text-2); margin: 0; font-size: .98rem; transition: color .5s; }
@media (hover: hover) { .cardx:hover { background: var(--ink-900); color: #fff; } .cardx:hover p { color: var(--text-inv-2); } .cardx:hover .n { color: var(--brass); } }

/* ---------- Workshop cards ---------- */
.wk { display: grid; gap: 28px; }
@media (min-width: 800px) { .wk { grid-template-columns: repeat(2, 1fr); } }
.wk-c { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; display: flex; flex-direction: column; }
.wk-c .photo { aspect-ratio: 16/9; border-radius: 0; }
.wk-c .photo img { transition: transform 1.2s var(--ease); } .wk-c:hover .photo img { transform: scale(1.05); }
.wk-b { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.wk-b h3 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.wk-b blockquote { margin: 0; color: var(--text-2); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--text-2); }
.wk-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }

/* ---------- Contact ---------- */
.cgrid { display: grid; gap: clamp(36px, 6vw, 96px); }
@media (min-width: 900px) { .cgrid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.cinfo { display: grid; gap: 0; }
.cinfo div { padding: 22px 0; border-bottom: 1px solid var(--line-inv); }
.cinfo div:first-child { border-top: 1px solid var(--line-inv); }
.cinfo small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.cinfo a:hover { color: var(--brass); }
.cform { padding: clamp(24px, 3.4vw, 44px); }
.fld { position: relative; margin-bottom: 22px; }
.fld input, .fld textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); color: #fff; font: inherit; font-size: 1.05rem; padding: 26px 0 10px; border-radius: 0; transition: border-color .4s; }
.fld textarea { min-height: 140px; resize: vertical; }
.fld label { position: absolute; left: 0; top: 24px; font-size: 1.02rem; color: var(--text-inv-2); pointer-events: none; transition: transform .45s var(--ease), font-size .45s var(--ease), color .3s; transform-origin: left; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brass); }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label, .fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label { transform: translateY(-22px); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fnote { margin-top: 18px; font-size: .92rem; min-height: 1.4em; color: var(--text-inv-2); }
.fnote.ok { color: #b9e3c6; } .fnote.err { color: #f1b9b9; }
.two { display: grid; gap: 0 28px; } @media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA ---------- */
.cta { display: grid; gap: 30px; align-items: end; }
.cta h2 { margin: 0; max-width: 16ch; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink-950); color: var(--text-inv); padding: clamp(64px, 9vw, 120px) 0 32px; }
.foot-big { font-family: var(--f-display); font-size: clamp(3rem, 11vw, 10rem); line-height: .9; letter-spacing: -.025em; color: #11295a; margin: 0 0 clamp(40px, 6vw, 80px); user-select: none; }
.fgrid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 800px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.foot h4 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--text-inv-2); transition: color .3s; } .foot a:hover { color: #fff; }
.foot .quote { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--text-inv); max-width: 28ch; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; color: #fff; transition: background .4s, color .4s, border-color .4s; }
.socials a:hover { background: var(--brass); color: var(--ink-950); border-color: var(--brass); }
.socials svg { width: 17px; height: 17px; }
.fbot { border-top: 1px solid var(--line-inv); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: var(--steel-400); }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fab.on { opacity: 1; transform: none; pointer-events: auto; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer; background: rgba(8, 22, 48, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--ease), opacity .4s; }
.fab a:hover, .fab button:hover { transform: translateY(-3px); }
.fab svg { width: 22px; height: 22px; }

/* ---------- Intro curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--ink-950); color: #fff; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
html.curtain-on .curtain { display: flex; }
.curtain b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 8vw, 5rem); letter-spacing: .01em; line-height: 1; overflow: hidden; display: block; }
.curtain b span { display: inline-block; }
.curtain small { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--steel-300); }
.curtain i { width: 120px; height: 1px; background: var(--line-inv); position: relative; overflow: hidden; display: block; }
.curtain i::after { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateX(-100%); animation: ld 1.1s var(--ease-io) forwards; }
@keyframes ld { to { transform: none; } }

/* ---------- Cross-page fade ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
@media print { .nav, .fab, .sheet, .curtain, .progress { display: none !important; } }
