/* ==========================================================================
   Sabita Adhikari — editorial theme
   Warm paper / ink palette, amber accent. Light + dark.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens: light (default) ---------- */
:root {
  --bg:        #f3f5f4;
  --bg-2:      #e9edeb;
  --surface:   #ffffff;
  --surface-2: #eef2f0;
  --text:      #12181a;
  --text-soft: #48545a;
  --muted:     #7f8b8f;
  --border:    #e1e6e4;
  --border-strong: #cdd5d2;
  --accent:    #0d7a63;
  --accent-2:  #0f9077;
  --accent-soft: rgba(13, 122, 99, .09);
  --gold:      #93753a;
  --shadow-sm: 0 1px 2px rgba(18, 32, 27, .04), 0 3px 10px rgba(18, 32, 27, .05);
  --shadow-md: 0 12px 34px rgba(16, 34, 28, .11);
  --shadow-lg: 0 26px 64px rgba(14, 30, 25, .17);
  --nav-bg:    rgba(243, 245, 244, .8);
  --grid-line: rgba(20, 50, 42, .045);
  --grid-op:   .7;
  --wash:      rgba(20, 55, 46, .045);
  --grain-op:  .02;
  --ring:      rgba(13, 122, 99, .3);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1200px;
  color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
:root[data-theme="dark"] {
  --bg:        #0e1214;
  --bg-2:      #13181a;
  --surface:   #161c1e;
  --surface-2: #1c2325;
  --text:      #e9efed;
  --text-soft: #a4aeb0;
  --muted:     #737e7e;
  --border:    #252d2f;
  --border-strong: #333d3f;
  --accent:    #2ab88f;
  --accent-2:  #40cfa5;
  --accent-soft: rgba(42, 184, 143, .14);
  --gold:      #c2a256;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .5);
  --shadow-lg: 0 26px 72px rgba(0, 0, 0, .62);
  --nav-bg:    rgba(14, 18, 20, .74);
  --grid-line: rgba(190, 214, 208, .035);
  --grid-op:   .7;
  --wash:      rgba(42, 184, 143, .06);
  --grain-op:  .04;
  --ring:      rgba(42, 184, 143, .4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: .01em;
  overflow-x: hidden;
  transition: background .5s ease, color .4s ease;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.section { padding-block: clamp(3.6rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }

/* ---------- Background — quiet, editorial, subtly animated ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
/* faint ruled paper lines that drift very slowly — no glow */
.bg-field::before {
  content: ""; position: absolute; inset: -10%;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 34px; opacity: var(--grid-op);
  animation: paperPan 48s linear infinite;
}
/* one very soft, low-contrast tonal wash for gentle depth (paper-toned, not colored glow) */
.bg-field::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(60% 55% at 78% 12%, var(--wash) 0%, transparent 60%);
  opacity: .5; animation: washDrift 40s ease-in-out infinite;
}
.bg-blob { display: none; }
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes paperPan { from { background-position: 0 0; } to { background-position: 0 340px; } }
@keyframes washDrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4%, 3%); } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .4s ease, box-shadow .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .22em; color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px var(--accent-soft); }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  position: relative; padding: .5rem .85rem; font-size: .93rem; font-weight: 500; color: var(--text-soft);
  border-radius: 8px; transition: color .2s ease, background .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.4,0,.2,1); border-radius: 2px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .3s ease, background .3s ease, border-color .3s;
}
.theme-toggle:hover { transform: rotate(-18deg); border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem; padding: .82rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em; cursor: pointer; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); transition: transform .2s ease, box-shadow .25s ease, background .25s ease, filter .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; filter: none; }
.btn--yt { --btn-bg: #e51e2a; --btn-fg: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .84rem; border-radius: 8px; }

/* ---------- Section heading ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.sec-head { max-width: 640px; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { margin-top: .8rem; }
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.sec-head__row .sec-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 500; color: var(--text-soft); margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); }
.hero__badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 0 rgba(53,192,122,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(53,192,122,.55);} 70%{ box-shadow: 0 0 0 9px rgba(53,192,122,0);} 100%{ box-shadow: 0 0 0 0 rgba(53,192,122,0);} }
.hero__kicker { font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { font-style: italic; color: var(--accent); }
.hero__tag { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 42ch; margin-bottom: 1.1rem; }
.hero__signature { font-style: italic; font-weight: 500; color: var(--accent); font-size: clamp(1.05rem, 2vw, 1.2rem); margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero__stat .n { font-family: var(--font-serif); font-size: 1.9rem; color: var(--text); line-height: 1; }
.hero__stat .l { font-size: .82rem; color: var(--muted); letter-spacing: .04em; margin-top: .35rem; }

/* Hero image — framed card creativity */
.hero__figure { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 4 / 4.7; }
.hero__frame { position: absolute; inset: 0; }
.hero__frame::before { /* offset outline frame — subtle, neutral */
  content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); z-index: 0;
}
.hero__photo-wrap {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; z-index: 2;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  background: var(--surface-2);
}
.hero__photo-wrap::after { /* warm gradient veil */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30,20,10,.28));
  mix-blend-mode: multiply; pointer-events: none;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.hero__figure:hover .hero__photo { transform: scale(1.05); }
.hero__corner { position: absolute; width: 34px; height: 34px; z-index: 3; border-color: var(--accent); }
.hero__corner.tl { top: -6px; left: -6px; border-top: 2.5px solid; border-left: 2.5px solid; border-top-left-radius: 8px; }
.hero__corner.br { bottom: -6px; right: -6px; border-bottom: 2.5px solid; border-right: 2.5px solid; border-bottom-right-radius: 8px; }
.hero__chip {
  position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: .7rem .95rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--text);
}
.hero__chip .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero__chip .ic svg { width: 16px; height: 16px; }
.hero__chip.c1 { top: 8%; left: -8%; animation: floaty 5s ease-in-out infinite; }
.hero__chip.c2 { bottom: 12%; right: -10%; animation: floaty 6s ease-in-out infinite .6s; }
.hero__chip .sub { font-weight: 500; color: var(--muted); font-size: .74rem; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--videos { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); z-index: 5; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card:hover::before { transform: scaleX(1); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); letter-spacing: .03em; margin-bottom: .7rem; }
.card__meta .tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.card__title { font-size: 1.22rem; line-height: 1.28; margin-bottom: .6rem; }
.card__excerpt { font-size: .92rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.1rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card__link { font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.card__link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Video card */
.vcard .card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.4));
}
.vcard .play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
}
.vcard .play span {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: #ff0033; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s ease, background .3s ease;
}
.vcard:hover .play span { transform: scale(1.12); background: #ff0033; color: #fff; }
.vcard .play svg { width: 22px; height: 22px; margin-left: 3px; }
.vcard .dur { position: absolute; z-index: 3; bottom: .6rem; right: .6rem; background: rgba(0,0,0,.72); color: #fff; font-size: .74rem; font-weight: 600; padding: .18rem .5rem; border-radius: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid.page { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gitem { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,12,4,.5)); opacity: 0; transition: opacity .3s ease; }
.gitem .zoom { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; color: #fff; }
.gitem .zoom svg { width: 26px; height: 26px; }
.gitem:hover img { transform: scale(1.08); }
.gitem:hover::after, .gitem:hover .zoom { opacity: 1; }
.gallery-grid.page .gitem { aspect-ratio: auto; }
.gallery-grid.page .gitem img { aspect-ratio: 4/5; }

/* ---------- Empty / fallback states ---------- */
.empty {
  text-align: center; padding: clamp(2.6rem, 6vw, 4.5rem) 1.5rem; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
}
.empty__icon { width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty__icon svg { width: 30px; height: 30px; }
.empty h3 { margin-bottom: .5rem; }
.empty p { max-width: 42ch; margin: 0 auto 1.4rem; color: var(--text-soft); }

/* ---------- Skeleton loading ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { height: 320px; }
.sk-line { height: 12px; border-radius: 6px; margin: .5rem 0; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 2rem; color: var(--muted); }

/* ---------- Modal (reader / video / lightbox) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(.8rem, 3vw, 2rem); }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,10,5,.6); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal__panel { position: relative; z-index: 2; width: 100%; max-width: 820px; max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.modal__panel.wide { max-width: 960px; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); transition: transform .25s, background .25s, color .25s; }
.modal__close:hover { transform: rotate(90deg); background: var(--accent); color: #fff; border-color: var(--accent); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* Reader */
.reader__hero { aspect-ratio: 16/7; overflow: hidden; background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.reader__hero img { width: 100%; height: 100%; object-fit: cover; }
.reader__body { padding: clamp(1.4rem, 4vw, 2.6rem); }
.reader__meta { display: flex; gap: .7rem; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }
.reader__body h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
.reader__content { font-size: 1.02rem; line-height: 1.8; color: var(--text-soft); }
.reader__content p { margin-bottom: 1.1rem; }
.reader__content h2, .reader__content h3, .reader__content h4 { color: var(--text); margin: 1.6rem 0 .8rem; }
.reader__content img { border-radius: 12px; margin: 1.4rem 0; }
.reader__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reader__content figure { margin: 1.4rem 0; }
.reader__content blockquote { border-left: 3px solid var(--accent); padding-left: 1.1rem; font-style: italic; color: var(--text); margin: 1.2rem 0; }
.reader__content pre { background: var(--surface-2); padding: 1rem; border-radius: 10px; overflow: auto; }
.reader__foot { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Video modal */
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }

/* Lightbox */
.lightbox__img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.modal__panel.lb { background: transparent; border: 0; box-shadow: none; width: auto; max-width: 92vw; }

/* ---------- Toasts / popups ---------- */
.toast-wrap { position: fixed; z-index: 300; bottom: 1.4rem; right: 1.4rem; display: flex; flex-direction: column; gap: .7rem; max-width: min(92vw, 380px); }
.toast {
  display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.05rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  animation: toastIn .4s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden;
}
.toast.hide { animation: toastOut .35s forwards; }
.toast__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.toast__ic svg { width: 18px; height: 18px; }
.toast--success .toast__ic { background: rgba(53,192,122,.15); color: #23a65f; }
.toast--error .toast__ic { background: rgba(224,72,72,.15); color: #d9463b; }
.toast--info .toast__ic { background: var(--accent-soft); color: var(--accent); }
.toast__body h4 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.toast__body p { font-size: .85rem; color: var(--text-soft); }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); animation: bar 4.2s linear forwards; }
.toast--success .toast__bar { background: #23a65f; }
.toast--error .toast__bar { background: #d9463b; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes bar { from { width: 100%; } to { width: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info .ic svg { width: 20px; height: 20px; }
.contact-info h4 { font-family: var(--font-sans); font-size: .95rem; margin-bottom: .15rem; }
.contact-info p, .contact-info a { font-size: .92rem; color: var(--text-soft); }
.socials { display: flex; gap: .6rem; margin-top: 1.6rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-soft); transition: transform .25s, color .25s, border-color .25s, background .25s; }
.socials a:hover { transform: translateY(-3px); color: #fff; background: var(--accent); border-color: var(--accent); }
.socials a svg { width: 19px; height: 19px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { color: #d9463b; font-size: .8rem; margin-top: .35rem; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #d9463b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading .btn-label { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn { position: relative; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 2rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer__top { padding-block: clamp(2.8rem, 6vw, 4rem); text-align: center; }
.footer__logo { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .18em; color: var(--text); }
.footer__tag { color: var(--muted); margin-top: .7rem; font-size: .95rem; }
.footer__links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.footer__links a { font-size: .92rem; color: var(--text-soft); font-weight: 500; transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer__divider { height: 1px; background: var(--border); }
.footer__bottom { padding-block: 1.4rem; display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); text-align: center; }
.footer__bottom .heart { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Page hero (interior pages) */
.page-hero { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero p { max-width: 52ch; margin: .9rem auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; margin-bottom: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid.page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .6rem 1.1rem 1.1rem;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-md); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .9rem .4rem; border-bottom: 1px solid var(--border); }
  .nav__links a::after { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 720px) {
  .grid--3, .grid--videos { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero__chip.c1 { left: -2%; }
  .hero__chip.c2 { right: -2%; }
  .sec-head__row { align-items: flex-start; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .hero__stats { gap: 1.4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
