/* Karishmaa Kakoti — public site styles.
   Palette and typography come from the admin panel's Theme settings,
   injected as CSS custom properties at runtime. */

* { box-sizing: border-box; }

:root {
  --espresso: #3B2A20;
  --espresso-deep: #2B1D14;
  --espresso-panel: #463326;
  --cream: #F6F0E6;
  --cream-panel: #FDFBF5;
  --gold: #C9A24B;
  --gold-light: #E3C57F;
  --gold-dark: #A98837;
  --pink: #E94396;
  --ink: #2E2018;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Segoe UI", sans-serif;

  --w: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }

::selection { background: var(--gold); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--espresso-deep); color: var(--cream);
  padding: 10px 18px; font-size: 14px;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border: 0; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #22180F;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #F0DEB4 0%, var(--gold-light) 40%, var(--gold) 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.35);
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%) 1;
}
.btn-outline:hover { background: var(--gold); border-image: none; color: #22180F; }

/* ---------- header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-block: 18px;
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.logo-img {
  height: 58px; width: auto; max-width: 220px; object-fit: contain;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, #EFDFAF 0%, var(--gold) 45%, #8F6F2A 100%) 1;
  outline: 1px solid rgba(201, 162, 75, 0.35);
  outline-offset: 3px;
  padding: 3px;
  background: var(--espresso-deep);
}
.logo-mark {
  width: 54px; height: 54px; flex: none;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--gold-light); line-height: 1;
}
.logo-text .lt-main { font-family: var(--sans); font-size: 13px; letter-spacing: 0.32em; }
.logo-text .lt-script { font-family: var(--script); font-size: 19px; color: var(--gold-light); margin-top: 1px; }

.nav a[aria-current="page"] { color: var(--gold-light); border-color: var(--gold); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(12px, 1.6vw, 22px); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--cream); text-decoration: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 400; letter-spacing: 0.02em;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--gold-light); border-color: var(--gold); }

.head-cta { white-space: nowrap; }
.head-cta .btn { padding: 10px 20px; font-size: 11px; }

/* mobile nav */
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--gold); color: var(--gold);
  padding: 9px 12px; cursor: pointer; font-size: 16px; line-height: 1;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--espresso-deep); padding: 18px var(--gutter) 26px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 14px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--espresso-deep);
  color: var(--cream);
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0 0 0 auto;
  width: 58%; height: 100%;
  object-fit: cover; object-position: top center;
}
/* slow zoom-in on the hero photo (single load moment, reduced-motion safe) */
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.js .hero-img { animation: heroZoom 2.8s cubic-bezier(0.22, 0.7, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-img { animation: none; }
}

/* dark wash sits ABOVE the photo so text stays legible on any image */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(30,19,11,0.97) 26%, rgba(43,29,20,0.86) 46%, rgba(43,29,20,0.35) 66%, rgba(43,29,20,0.06) 84%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 120px 90px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: 0.3em; font-weight: 400;
  color: var(--gold-light);
  margin: 0 0 18px;
}
.hero-eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--gold); }
.hero-name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 8.2vw, 108px);
  line-height: 0.98; letter-spacing: 0.015em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero-script {
  font-family: var(--script);
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.28; color: var(--gold-light);
  margin: 0 0 40px;
}
.hero .btn-gold { margin-top: 0; }

@media (max-width: 900px) {
  .hero-img { width: 100%; opacity: 0.4; }
  .hero::after { background: rgba(30,19,11,0.55); }
  .hero .wrap { padding-block: 140px 70px; }
}

/* ---------- shared section chrome ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.eyebrow {
  font-size: 11px; letter-spacing: 0.3em; font-weight: 500;
  color: var(--gold-dark); margin: 0 0 14px;
}
.eyebrow.on-dark { color: var(--gold-light); }
.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12; margin: 0 0 20px; text-wrap: balance;
}

/* ---------- about ---------- */
.about { background: var(--cream-panel); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr 0.66fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; }
.about-media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold); z-index: -1;
}
.about-copy .h2 { margin-bottom: 18px; }
.about-copy p { margin: 0 0 16px; font-size: 15.5px; }
.about-cta { margin-top: 26px; }
.about-quote { position: relative; padding-top: 8px; }
.about-quote .qmark {
  font-family: var(--serif); font-size: 92px; line-height: 0.6;
  color: var(--gold); display: block; margin-bottom: 26px;
}
.about-quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 21px; line-height: 1.5; color: var(--ink);
}
.about-quote figcaption { margin-top: 16px; font-size: 13px; color: var(--gold-dark); }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-quote { grid-column: 1 / -1; } }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- ecosystem ---------- */
.ecosystem { background: var(--espresso-panel); color: var(--cream); }
.ecosystem-head { text-align: center; max-width: 720px; margin-inline: auto; }
.ecosystem .h2 { color: var(--cream-panel); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(36px, 5vw, 56px); }
.brand-card { background: var(--espresso); display: flex; flex-direction: column; }
.brand-card-media { position: relative; }
.brand-card-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.brand-card-logo {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(30,19,11,0.72), rgba(30,19,11,0.12));
  text-align: center; padding: 16px;
}
.brand-card-logo .bl-main { font-family: var(--sans); letter-spacing: 0.3em; font-size: 17px; font-weight: 500; color: var(--gold-light); }
.brand-card-logo .bl-script { font-family: var(--script); font-size: 24px; color: var(--cream); margin-top: 4px; }
.brand-card-body { padding: 26px 24px 30px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.brand-card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; margin: 0 0 8px; color: var(--cream-panel); }
.brand-card .tagline { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-light); margin: 0 0 12px; }
.brand-card p { font-size: 14px; margin: 0 0 22px; color: rgba(246,240,230,0.82); flex: 1; }
.brand-card .btn { align-self: center; padding: 10px 20px; font-size: 11px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- projects ---------- */
.projects { background: var(--cream); }
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(30px, 4vw, 44px); }
.project-card { position: relative; display: block; text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-card figcaption { padding-top: 12px; }
.project-card h3 { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 4px; }
.project-card .sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold-dark); margin: 0; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why { background: var(--espresso-deep); color: var(--cream); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.why-media img { width: 100%; object-fit: cover; }
.why-media { position: relative; }
.why-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); z-index: -1;
}
.why-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; margin-top: clamp(28px, 4vw, 42px); }
.why-point { display: flex; align-items: center; gap: 13px; }
.why-icon {
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-light);
}
.why-icon svg { width: 20px; height: 20px; }
.why-point .wp-title { font-size: 14px; font-weight: 500; }
.why-point .wp-sub { font-size: 13px; color: rgba(246,240,230,0.66); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-points { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testimonials { background: var(--cream-panel); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(28px, 4vw, 40px); }
.testi-card { background: #fff; border: 1px solid #EADFCB; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.testi-card .qmark { font-family: var(--serif); font-size: 54px; line-height: 0.5; color: var(--gold); }
.testi-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.5; flex: 1; }
.testi-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.testi-card .author { font-size: 13.5px; color: var(--gold-dark); }
.testi-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- contact ---------- */
.contact { background: var(--espresso-panel); color: var(--cream); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.contact-media img { width: 100%; object-fit: cover; }
.contact h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; line-height: 1.1; margin: 0 0 16px; color: var(--cream-panel); }
.contact .body { max-width: 46ch; color: rgba(246,240,230,0.85); margin: 0 0 26px; }
.contact-form { background: var(--cream-panel); color: var(--ink); padding: clamp(22px, 3vw, 34px); }
.contact-form .form-title { font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.interest-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.interest-tab {
  border: 1px solid #D8CBB2; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; padding: 8px 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.interest-tab[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; border: 1px solid #D8CBB2; background: #fff;
  font-family: var(--sans); font-size: 14.5px; padding: 11px 13px; color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: var(--pink); }
.form-note { font-size: 12.5px; margin: 0 0 14px; color: #7A6A55; }
.form-note.error { color: #A02D2D; }
.form-note.success { color: #3D6B35; }
.contact-form .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--espresso-deep); color: var(--cream); padding-block: 30px; }
.site-foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: rgba(246,240,230,0.78); text-decoration: none; font-size: 12.5px; }
.foot-links a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.socials a {
  color: var(--gold-light); text-decoration: none;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.socials a:hover { color: var(--cream); }
.foot-note { font-size: 12px; color: rgba(246,240,230,0.55); margin: 0; }

/* ---------- subpages (school / bespoke) ---------- */
.subhero { min-height: 520px; }
.hero-name.sm { font-size: clamp(40px, 6vw, 76px); }
.hero-script.one { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.6; max-width: 560px; }
.subhero-logo { display: block; max-height: 92px; width: auto; max-width: 240px; margin: 0 0 28px; }

.points-band { background: var(--cream-panel); padding-block: clamp(40px, 6vw, 64px); }
.why-points.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 0; }
.why-point.on-cream .wp-title { color: var(--ink); }
.why-point.on-cream .wp-sub { color: var(--gold-dark); }
.why-icon.gold { border-color: var(--gold-dark); color: var(--gold-dark); background: #fff; }
@media (max-width: 900px) { .why-points.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-points.four { grid-template-columns: 1fr; } }

.offerings { background: var(--cream); }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.offer { border-top: 1px solid var(--gold); padding-top: 18px; }
.offer h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 8px; }
.offer p { margin: 0; font-size: 15px; color: #5C4F40; }
@media (max-width: 700px) { .offer-grid { grid-template-columns: 1fr; } }

.steps { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; }
.step-line { width: 1px; flex: 1; background: var(--gold); min-height: 34px; }
.step-body { padding-bottom: 30px; }
.step-body h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 0 0 6px; }
.step-body p { margin: 0; font-size: 15px; color: #5C4F40; max-width: 62ch; }

.gallery-band { background: var(--espresso-panel); }

/* category filter pills */
.gfilters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gfilter {
  font: inherit; font-size: 13.5px; letter-spacing: 0.02em;
  padding: 9px 18px; cursor: pointer;
  background: transparent; color: var(--gold-light);
  border: 1px solid rgba(200, 164, 106, 0.45); border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gfilter:hover { border-color: var(--gold-light); }
.gfilter.on { background: var(--gold); border-color: var(--gold); color: #22180F; font-weight: 600; }

/* masonry via CSS columns — natural aspect ratios preserved */
.ggrid { columns: 3 260px; column-gap: 16px; margin-top: clamp(26px, 4vw, 44px); }
.gcell {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0;
  background: none; cursor: pointer; text-align: left;
  break-inside: avoid; position: relative; overflow: hidden;
  border-radius: 4px;
}
.gframe { display: block; position: relative; width: 100%; height: 0; overflow: hidden; background: rgba(0,0,0,0.25); }
.gframe img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gcell:hover .gframe img, .gcell:focus-visible .gframe img { transform: scale(1.05); }

/* caption overlay — quiet until hover/focus */
.gcap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(24, 16, 10, 0.92) 0%, rgba(24, 16, 10, 0.55) 55%, transparent 100%);
  opacity: 0; translate: 0 6px;
  transition: opacity 0.35s ease, translate 0.35s ease;
}
.gcell:hover .gcap, .gcell:focus-visible .gcap { opacity: 1; translate: 0 0; }
.gcap .gcat { font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.gcap .gtitle { font-family: var(--serif); font-weight: 600; font-size: 16.5px; color: var(--cream); line-height: 1.25; }
.gcap .gcap-text { font-size: 12.5px; line-height: 1.45; color: rgba(244, 237, 226, 0.85); }
@media (hover: none) { .gcap { opacity: 1; translate: 0 0; } } /* touch: captions always visible */
@media (prefers-reduced-motion: reduce) { .gframe img, .gcap { transition: none; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); width: auto; }
.lightbox::backdrop { background: rgba(16, 11, 7, 0.9); }
.lb-stage { margin: 0; }
.lb-stage img { max-width: 100%; max-height: 78vh; width: auto; height: auto; display: block; margin: 0 auto; }
.lb-foot {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 4px 2px;
}
.lb-count { font-size: 12.5px; color: var(--gold-light); white-space: nowrap; }
.lb-cap { display: flex; flex-direction: column; gap: 2px; }
.lb-cap strong { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--cream); }
.lb-cap span { font-size: 13px; color: rgba(244, 237, 226, 0.8); max-width: 70ch; }
.lb-close {
  position: fixed; top: 14px; right: 18px; z-index: 2;
  background: none; border: 1px solid var(--gold); color: var(--gold-light);
  width: 44px; height: 44px; font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--gold); color: #22180F; }
.lb-nav {
  position: fixed; top: 50%; translate: 0 -50%; z-index: 2;
  background: none; border: 1px solid rgba(200, 164, 106, 0.5); color: var(--gold-light);
  width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer;
}
.lb-nav:hover { background: var(--gold); color: #22180F; border-color: var(--gold); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-nav[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px);
}
.lightbox::backdrop { background: rgba(20, 14, 9, 0.88); }
.lightbox img { width: 100%; height: auto; display: block; }
.lb-close {
  position: fixed; top: 14px; right: 18px; z-index: 2;
  background: none; border: 1px solid var(--gold); color: var(--gold-light);
  width: 44px; height: 44px; font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--gold); color: #22180F; }

/* ---------- typewriter ---------- */
.typing::after {
  content: ""; display: inline-block;
  width: 2px; height: 0.95em;
  margin-left: 0.09em; vertical-align: -0.12em;
  background: currentColor;
  animation: caretBlink 1.1s steps(2, start) infinite;
}
@keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typing::after { animation: none; }
}

/* ---------- entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .rise { opacity: 0; }
.js .rise.in { animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .rise.in { animation: none; opacity: 1; transform: none; }
}
