/* =========================================================
   JR Vizhuthugal Trust — static rebuild
   Design tokens mirrored from the original Lovable build.
   ========================================================= */

:root {
  --background: oklch(97.5% .012 95);
  --foreground: oklch(22% .025 145);
  --ink: oklch(18% .02 145);
  --cream: oklch(95.5% .018 90);
  --card: oklch(99% .008 95);
  --primary: oklch(36% .06 150);
  --primary-foreground: oklch(97% .012 95);
  --accent: oklch(68% .13 75);
  --accent-foreground: oklch(18% .02 145);
  --secondary: oklch(92% .025 120);
  --muted-foreground: oklch(45% .025 140);
  --border: oklch(86% .02 110);
  --rose: oklch(58% .18 18);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 72rem; /* max-w-6xl */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
}
.eyebrow.accent { color: var(--accent); font-weight: 600; }

.muted { color: var(--muted-foreground); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); font-weight: 600; }
.btn-outline-dark {
  border-color: color-mix(in oklab, var(--background) 30%, transparent);
  background: color-mix(in oklab, var(--background) 10%, transparent);
  color: var(--background);
  backdrop-filter: blur(4px);
}
.btn-outline-dark:hover { background: color-mix(in oklab, var(--background) 20%, transparent); transform: none; }
.btn-sm { padding: 0.625rem 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img {
  width: 44px; height: 44px;
  border-radius: 9999px;
  object-fit: contain;
  background: var(--background);
  box-shadow: 0 0 0 1px var(--border);
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.brand .brand-sub {
  font-size: 11px;
  color: var(--muted-foreground);
}
.main-nav { display: none; gap: 2rem; font-size: 0.875rem; }
.main-nav a { color: var(--muted-foreground); transition: color .2s; }
.main-nav a:hover { color: var(--foreground); }
.main-nav a.active { color: var(--foreground); font-weight: 500; }

.header-cta { display: none; }
.menu-toggle {
  display: inline-flex;
  height: 2.5rem; width: 2.5rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile menu panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  color: var(--foreground);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.mobile-nav .btn { margin-top: 0.75rem; justify-content: center; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero carousel ---------- */
.hero { position: relative; }
.hero-viewport { overflow: hidden; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.hero-slide { position: relative; min-width: 0; flex: 0 0 100%; }
.hero-media { position: relative; height: 78vh; min-height: 560px; width: 100%; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--ink) 55%, transparent),
    color-mix(in oklab, var(--ink) 25%, transparent),
    transparent);
}
.hero-content {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: 1.5rem;
}
.hero-text { max-width: 42rem; color: var(--background); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--background) 25%, transparent);
  background: color-mix(in oklab, var(--background) 10%, transparent);
  padding: 0.375rem 1rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(4px);
}
.hero-badge .dot { height: 6px; width: 6px; border-radius: 9999px; background: var(--accent); }
.hero-text h1 {
  margin-top: 1.75rem;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text p {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: color-mix(in oklab, var(--background) 85%, transparent);
}
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-arrow {
  display: inline-flex;
  height: 2.5rem; width: 2.5rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--background) 40%, transparent);
  background: color-mix(in oklab, var(--background) 15%, transparent);
  color: var(--background);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background-color .2s;
}
.hero-arrow:hover { background: color-mix(in oklab, var(--background) 25%, transparent); }
.hero-arrow svg { width: 1rem; height: 1rem; }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dots button {
  height: 6px; width: 1rem;
  border: 0; padding: 0;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 40%, transparent);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots button.active { width: 2rem; background: var(--accent); }

/* ---------- Stat bar ---------- */
.stats { background: var(--ink); color: var(--background); }
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}
.stat { background: var(--ink); padding: 2.5rem 1.5rem; text-align: center; }
.stat .num { font-size: 2.25rem; font-weight: 700; }
.stat .label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--background) 60%, transparent);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Generic sections ---------- */
.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }
.section.cream { background: var(--cream); }
.section.ink { background: var(--ink); color: var(--background); }
.section.bg { background: var(--background); }

.section-head { text-align: center; }
.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.section-head p { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.05rem; }

.lead-narrow { max-width: 48rem; margin: 0 auto; text-align: center; }
.lead-narrow .body { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--muted-foreground); font-size: 1rem; }
.lead-narrow .divider {
  margin-top: 3rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-top: 2.5rem;
}
.tagline-primary { font-size: 1.4rem; font-weight: 600; color: var(--primary); }

/* ---------- Service cards ---------- */
.cards-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1.75rem;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.service-card:hover { box-shadow: 0 10px 30px -12px rgba(0,0,0,.15); }
.icon-tile {
  display: flex; height: 3rem; width: 3rem;
  align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: var(--secondary);
  color: var(--primary);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.service-card .sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.service-card p { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Why-choose feature cards ---------- */
.feature-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--background); padding: 1.75rem; }
.feature-badge {
  display: flex; height: 2.75rem; width: 2.75rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}
.feature-badge svg { width: 1.25rem; height: 1.25rem; }
.feature-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Stories carousel (home) ---------- */
.stories-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
.stories-head .intro { max-width: 36rem; }
.stories-head h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}
.stories-head p { margin-top: 1.25rem; color: var(--muted-foreground); }
.stories-head a { color: var(--primary); }
.stories-head a:hover { text-decoration: underline; }
.carousel-nav { display: flex; gap: 0.5rem; }
.round-btn {
  display: inline-flex; height: 2.75rem; width: 2.75rem;
  align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--border);
  background: var(--background); color: var(--foreground);
  cursor: pointer; transition: background-color .2s;
}
.round-btn:hover { background: var(--secondary); }
.round-btn:disabled { cursor: not-allowed; opacity: .4; }
.round-btn svg { width: 1rem; height: 1rem; }
@media (min-width: 768px) {
  .stories-head { flex-direction: row; align-items: flex-end; }
}

.stories-viewport { margin-top: 3rem; overflow: hidden; }
.stories-track { display: flex; gap: 1.5rem; transition: transform .5s ease; }
.story-card {
  min-width: 0;
  flex: 0 0 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 640px) { .story-card { flex: 0 0 calc(60% - 0.6rem); } }
@media (min-width: 768px) { .story-card { flex: 0 0 calc(40% - 0.9rem); } }
@media (min-width: 1024px) { .story-card { flex: 0 0 calc(33.3333% - 1rem); } }
.story-media { position: relative; aspect-ratio: 1/1; width: 100%; overflow: hidden; }
.story-media img { height: 100%; width: 100%; object-fit: cover; }
.story-media .topfade {
  position: absolute; inset-inline: 0; top: 0; height: 6rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  pointer-events: none;
}
.story-media .topbar {
  position: absolute; inset-inline: 0; top: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; padding: 1rem; pointer-events: none;
}
.chip {
  display: inline-flex; align-items: center;
  border-radius: 9999px;
  background: rgba(255,255,255,.25);
  padding: 0.25rem 0.75rem;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff; backdrop-filter: blur(4px);
}
.story-icon {
  display: flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 9999px; background: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(4px);
}
.story-icon svg { width: 1.25rem; height: 1.25rem; }
.story-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.story-body .quote { font-size: 0.875rem; font-weight: 500; font-style: italic; color: var(--primary); }
.story-body .date { margin-top: 1rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-foreground); }
.story-body h3 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.story-body p { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; color: var(--muted-foreground); }
.story-foot {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted-foreground);
}
.story-foot .loc, .story-foot .likes { display: inline-flex; align-items: center; gap: 0.25rem; }
.story-foot .likes { color: var(--rose); }
.story-foot svg { width: 0.875rem; height: 0.875rem; }
.story-foot .likes svg { fill: currentColor; }

/* ---------- CTA band ---------- */
.cta-band { padding-inline: 1.5rem; padding-bottom: 6rem; }
.cta-inner {
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden; border-radius: 1.5rem;
  background: var(--ink); color: var(--background);
  padding: 5rem 2rem;
}
.cta-content { max-width: 48rem; margin: 0 auto; text-align: center; }
.cta-content h2 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
.cta-content p { margin-top: 1.5rem; color: color-mix(in oklab, var(--background) 70%, transparent); }
.cta-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn-outline-light {
  border-color: color-mix(in oklab, var(--background) 30%, transparent);
  background: color-mix(in oklab, var(--background) 5%, transparent);
  color: var(--background);
}
.btn-outline-light:hover { background: color-mix(in oklab, var(--background) 15%, transparent); transform: none; }
@media (min-width: 768px) { .cta-inner { padding-inline: 4rem; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .page-hero { padding-block: 7rem; } }
.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
  margin-top: 1rem;
}
.page-hero h1 .accent { color: var(--primary); }
.page-hero p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.about-grid .col-text { display: flex; flex-direction: column; gap: 1.5rem; color: var(--muted-foreground); }
.about-grid .col-text .pull { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--primary); }
.about-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--cream); padding: 2rem; }
.about-card .big { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.about-card p { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); }
  .about-grid .col-text { grid-column: span 7; }
  .about-grid .col-aside { grid-column: span 5; }
}

.founder-card {
  margin-top: 3.5rem;
  display: grid; gap: 2rem;
  border-radius: 1.5rem; border: 1px solid var(--border); background: var(--cream);
  padding: 2rem;
}
.founder-card .photo {
  margin: 0 auto; aspect-ratio: 1/1; width: 12rem;
  overflow: hidden; border-radius: 1rem; background: color-mix(in oklab, var(--primary) 10%, transparent);
}
.founder-card .photo img { height: 100%; width: 100%; object-fit: cover; }
.founder-card h3 { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; color: var(--ink); }
.founder-card p { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .founder-card { grid-template-columns: auto 1fr; align-items: center; gap: 3rem; padding: 2.5rem; }
  .founder-card .photo { width: 14rem; }
}

.members-grid {
  margin-top: 2rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .members-grid { grid-template-columns: repeat(4, 1fr); } }
.member { text-align: center; }
.member .photo {
  aspect-ratio: 1/1; width: 100%;
  overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--primary) 10%, transparent);
}
.member .photo img { height: 100%; width: 100%; object-fit: cover; }
.member .name { margin-top: 0.75rem; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--ink); }

/* Services detail list (about, dark) */
.svc-detail { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.svc-detail .intro h2 { margin-top: 0.75rem; font-family: var(--font-display); font-size: clamp(2.25rem,4vw,3rem); font-weight: 500; line-height: 1.05; }
.svc-detail .intro p { margin-top: 1.5rem; font-size: 0.95rem; color: color-mix(in oklab, var(--background) 70%, transparent); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-item {
  display: grid;
  grid-template-columns: 3rem 2.5rem 1fr;
  gap: 1rem; align-items: flex-start;
  border-top: 1px solid color-mix(in oklab, var(--background) 10%, transparent);
  padding-block: 1.75rem;
}
.svc-item:first-child { border-top: 0; }
.svc-item .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: color-mix(in oklab, var(--background) 30%, transparent); }
.svc-item .ic {
  margin-top: 0.25rem; display: flex; height: 2.25rem; width: 2.25rem;
  align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid color-mix(in oklab, var(--background) 15%, transparent);
  color: var(--primary);
}
.svc-item .ic svg { width: 1.1rem; height: 1.1rem; }
.svc-item h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--background); }
.svc-item p { margin-top: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--background) 70%, transparent); }
.svc-item:hover .n { color: var(--accent); }
@media (min-width: 768px) {
  .svc-detail { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
  .svc-detail .intro { grid-column: span 4; position: sticky; top: 6rem; align-self: flex-start; }
  .svc-detail .svc-list { grid-column: span 8; }
  .svc-item { grid-template-columns: 4rem 3rem 1fr; gap: 1.5rem; padding-block: 2rem; }
}

/* What sets us apart (about, light) */
.apart-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); padding: 1.75rem; transition: background-color .2s; }
.apart-card:hover { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.apart-card .badge {
  display: flex; height: 2.75rem; width: 2.75rem;
  align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--background); color: var(--primary);
}
.apart-card .badge svg { width: 1.25rem; height: 1.25rem; }
.apart-card h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.apart-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 1rem; border: 1px solid var(--border); background: var(--secondary);
  cursor: pointer; padding: 0;
}
.gallery-item img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 80%, transparent), transparent);
  padding: 1rem; text-align: left;
}
.gallery-item .cap span { font-size: 0.875rem; font-weight: 500; color: var(--background); opacity: 0; transition: opacity .2s; }
.gallery-item:hover .cap span { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.85);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 0.75rem; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  height: 2.75rem; width: 2.75rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer; font-size: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-aside .box { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--cream); padding: 2rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; font-size: 0.875rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list .ic {
  display: flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--background); color: var(--primary);
}
.contact-list .ic svg { width: 1rem; height: 1rem; }
.contact-list .k { font-weight: 500; color: var(--ink); }
.contact-list .v { color: var(--muted-foreground); }
.contact-list a.v:hover { color: var(--primary); }
.contact-note {
  margin-top: 2rem; border-radius: 1rem; border: 1px solid var(--border);
  background: var(--background); padding: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground);
}

.contact-form { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 1.25rem; }
.field:first-child, .form-row .field { margin-top: 0; }
.field label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted-foreground);
}
.field input, .field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}
.form-note { margin-top: 1rem; font-size: 0.875rem; color: var(--primary); display: none; }
.form-note.show { display: block; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .contact-aside { grid-column: span 5; }
  .contact-main { grid-column: span 7; }
}

/* ---------- Recent achievement (home alt — kept as feature) ---------- */

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 3rem;
  padding: 4rem 1.5rem;
  grid-template-columns: 1fr;
}
.footer-brand img { width: 56px; height: 56px; border-radius: 9999px; background: var(--background); object-fit: contain; box-shadow: 0 0 0 1px var(--border); }
.footer-brand .name { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.footer-brand .slogan { margin-top: 0.5rem; font-size: 0.875rem; font-style: italic; color: var(--muted-foreground); }
.socials { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.socials a {
  display: flex; height: 2rem; width: 2rem;
  align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--border); background: var(--background);
  color: var(--foreground); transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--primary); border-color: var(--primary); }
.socials svg { width: 0.875rem; height: 0.875rem; }
.footer-col .head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }
.footer-col ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--primary); }
.footer-contact li { display: flex; gap: 0.625rem; color: var(--foreground); }
.footer-contact svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); margin-top: 0.1rem; }
.footer-bar { border-top: 1px solid var(--border); }
.footer-bar .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center; justify-content: space-between;
  padding: 1.5rem; font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bar .inner { flex-direction: row; }
}

/* Recent achievement section on home (optional) */
.achieve-grid { display:grid; gap:3rem; grid-template-columns:1fr; }
.achieve-grid h2 { font-family:var(--font-display); font-size:clamp(2.25rem,4vw,3rem); font-weight:500; line-height:1.1; color:var(--ink); }
.achieve-grid p { margin-top:1.5rem; color:var(--muted-foreground); }
.achieve-card { border-radius:1.5rem; border:1px solid color-mix(in oklab,var(--primary) 20%,transparent); background:linear-gradient(135deg,var(--primary),color-mix(in oklab,var(--primary) 80%, black 5%)); color:var(--primary-foreground); padding:2.5rem; box-shadow:0 10px 30px -12px rgba(0,0,0,.25); }
.achieve-card .amt { margin-top:0.75rem; font-family:var(--font-display); font-size:3.5rem; font-weight:500; line-height:1; }
@media(min-width:768px){ .achieve-grid{ grid-template-columns:repeat(12,1fr); gap:4rem;} .achieve-grid .col-a{grid-column:span 7;} .achieve-grid .col-b{grid-column:span 5;} }

.tags { margin-top:2rem; display:flex; flex-wrap:wrap; gap:0.5rem; font-size:0.75rem; color:var(--muted-foreground); }
.tags span { border-radius:9999px; border:1px solid var(--border); background:var(--card); padding:0.375rem 0.75rem; display:inline-flex; align-items:center; gap:0.375rem; }
.tags svg { width:0.875rem; height:0.875rem; }
