/* ============================================================
   C. P. Radhakrishnan — Official Website
   Premium editorial design system
   ============================================================ */

:root {
  --ink:        #0b1320;        /* deep navy */
  --ink-soft:   #14233a;
  --charcoal:   #1a1a1a;
  --ivory:      #f5f1e8;
  --paper:      #faf7f0;
  --bone:       #ece7d9;
  --gold:       #b8965a;
  --gold-soft:  #d6b97a;
  --steel:      #6b7280;
  --line:       rgba(11, 19, 32, 0.12);
  --line-strong:rgba(11, 19, 32, 0.28);
  --shadow-sm:  0 1px 2px rgba(11, 19, 32, 0.04), 0 4px 12px rgba(11, 19, 32, 0.06);
  --shadow-md:  0 6px 24px rgba(11, 19, 32, 0.10);
  --shadow-lg:  0 24px 60px rgba(11, 19, 32, 0.18);

  --serif: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1, 'kern' 1;
}

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

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.sans  { font-family: var(--sans); }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }

h1 { font-size: clamp(2.75rem, 6.5vw, 5.75rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p  { font-size: 1.0625rem; line-height: 1.75; color: #243043; }
p.lead { font-size: 1.25rem; line-height: 1.65; color: var(--ink); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(80px, 11vw, 160px) 0; }

.divider { height: 1px; background: var(--line); width: 100%; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 247, 240, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.94);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-brand {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-brand .name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand .role {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; height: 22px; align-items: flex-end; justify-content: center;
    background: transparent;
  }
  .nav-toggle span {
    width: 100%; height: 1.5px; background: var(--ink);
    transition: transform .35s var(--ease), opacity .35s var(--ease), width .35s var(--ease);
  }
  .nav-toggle span:nth-child(2) { width: 70%; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    padding: 80px var(--gutter);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-family: var(--serif); font-size: 1.65rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .4s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost { border-color: rgba(245, 241, 232, 0.4); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center;
}
.hero-image-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.55) saturate(1.05);
}
.hero-image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,19,32,0.55) 0%, rgba(11,19,32,0.35) 40%, rgba(11,19,32,0.85) 100%),
    linear-gradient(90deg, rgba(11,19,32,0.6) 0%, rgba(11,19,32,0.1) 60%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: end;
}
.hero-title {
  color: var(--paper);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-title .em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero-sub {
  margin-top: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.78);
  max-width: 38ch;
}
.hero-meta {
  border-left: 1px solid rgba(245, 241, 232, 0.18);
  padding-left: 32px;
  display: grid; gap: 28px;
}
.hero-meta .row { display: grid; gap: 6px; }
.hero-meta .label {
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-soft);
}
.hero-meta .value { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); }
.hero-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before { content: ''; width: 38px; height: 1px; background: var(--gold-soft); }
.hero-cta { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245,241,232,0.18); padding-top: 28px; }
}

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245,241,232,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;    transform: scaleY(1); }
}

/* ---------- Page header (non-home) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(160px, 22vh, 240px);
  padding-bottom: clamp(60px, 8vh, 100px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.35;
  filter: grayscale(20%) contrast(1.05);
}
.page-hero-bg::after {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,19,32,0.55) 0%, rgba(11,19,32,0.92) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--paper);
  font-weight: 300;
  margin-top: 24px;
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero p { color: rgba(245,241,232,0.78); max-width: 64ch; margin-top: 24px; font-size: 1.1rem; }

/* ---------- Cards / Editorial blocks ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .index {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  display: block;
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 0.98rem; color: #3a4658; }

/* ---------- Image utilities ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 1.4s var(--ease);
}
.frame.tall { aspect-ratio: 3/4; }
.frame.square { aspect-ratio: 1/1; }
.frame.wide { aspect-ratio: 16/10; }
.frame.cinematic { aspect-ratio: 21/9; }
.frame:hover img { transform: scale(1.04); }

.frame-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
}
.frame-caption-bg::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(11,19,32,0.85));
}

/* ---------- Section header ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 { line-height: 1.05; }
.section-head .copy { max-width: 50ch; }
.section-head .copy p { color: #3a4658; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
}
.stats .stat:last-child { border-right: 0; }
.stats .stat .num {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}
.stats .stat .num em { color: var(--gold); font-style: normal; }
.stats .stat .label {
  margin-top: 14px;
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel);
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.timeline-item {
  position: relative;
  padding: 0 0 64px 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 8px;
  width: 13px; height: 13px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
  margin-left: -32px;
}
.timeline-item .year {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-style: italic;
}
.timeline-item h3 { margin-bottom: 14px; }
.timeline-item .image {
  margin-top: 24px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--line);
}
.timeline-item .image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 1.2s var(--ease);
}
.timeline-item .image:hover img { transform: scale(1.03); }

/* ---------- Quote ---------- */
.pull-quote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) 0;
}
.pull-quote .mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  font-style: italic;
  display: block;
  margin-bottom: 24px;
}
.pull-quote q {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}
.pull-quote q::before, .pull-quote q::after { content: ''; }
.pull-quote .attr {
  margin-top: 36px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Dark section ---------- */
.dark-section {
  background: var(--ink);
  color: var(--paper);
}
.dark-section h2, .dark-section h3, .dark-section h4 { color: var(--paper); }
.dark-section p { color: rgba(245,241,232,0.78); }
.dark-section .eyebrow { color: var(--gold-soft); }
.dark-section .eyebrow::before { background: var(--gold-soft); }

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
  padding-bottom: 4px;
}
.gallery-tab {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
  color: var(--steel);
}
.gallery-tab.active { color: var(--ink); }
.gallery-tab.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; background: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 220px;
}
.gallery-grid .item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-grid .item img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Anchor to top so faces (typically in the upper portion of the frame)
     are never cropped. Per-image overrides via inline style on <img>. */
  object-position: center top;
  transition: transform 1.2s var(--ease), filter .5s var(--ease);
}
.gallery-grid .item:hover img { transform: scale(1.06); }
.gallery-grid .item .cap {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  color: var(--paper); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: all .4s var(--ease);
  z-index: 2;
}
.gallery-grid .item::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 50%; background: linear-gradient(180deg, transparent, rgba(11,19,32,0.85));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-grid .item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-grid .item:hover::after { opacity: 1; }

/* span helpers */
.gs-1 { grid-column: span 4; grid-row: span 1; }
.gs-2 { grid-column: span 4; grid-row: span 2; }
.gs-3 { grid-column: span 6; grid-row: span 2; }
.gs-4 { grid-column: span 8; grid-row: span 1; }
.gs-5 { grid-column: span 6; grid-row: span 1; }
.gs-6 { grid-column: span 3; grid-row: span 1; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gs-1, .gs-2, .gs-3, .gs-4, .gs-5, .gs-6 { grid-column: span 6; grid-row: span 1; }
  .gs-2 { grid-row: span 2; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,19,32,0.96);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  color: var(--paper); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 12px 18px;
  border: 1px solid rgba(245,241,232,0.35);
}
.lightbox-close:hover { background: var(--paper); color: var(--ink); }

/* ---------- News cards ---------- */
.news-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.news-item {
  display: block;
  padding: 40px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.news-item:nth-child(3n) { border-right: 0; }
.news-item:hover { background: var(--bone); color: var(--ink); }
.news-item .img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bone);
}
.news-item .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 1.2s var(--ease);
}
.news-item:hover .img-wrap img { transform: scale(1.05); }
.news-item .meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
  display: flex; gap: 14px; align-items: center;
}
.news-item .meta .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.news-item h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
.news-item p { font-size: 0.95rem; color: #3a4658; }
.news-item .read { margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 900px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item { border-right: 0 !important; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-row {
  display: grid; grid-template-columns: 110px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.contact-row a { font-family: var(--serif); font-size: 1.45rem; }

.form-field { margin-bottom: 28px; position: relative; }
.form-field label {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .35s var(--ease);
  outline: 0;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .err {
  position: absolute; left: 0; bottom: -18px;
  font-size: 0.72rem; color: #b54a3b;
  opacity: 0; transition: opacity .3s var(--ease);
}
.form-field.invalid .err { opacity: 1; }
.form-field.invalid input,
.form-field.invalid textarea { border-bottom-color: #b54a3b; }
.form-success {
  background: rgba(184, 150, 90, 0.1);
  border: 1px solid var(--gold);
  padding: 24px 28px;
  margin-top: 24px;
  display: none;
}
.form-success.show { display: block; }
.form-success p { color: var(--ink); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,241,232,0.12);
}
.footer-grid h5 {
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-grid p, .footer-grid a {
  font-size: 0.95rem; color: rgba(245,241,232,0.72);
  display: block; padding: 6px 0;
}
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand .name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 8px;
}
.footer-brand .role {
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 20px;
}
.footer-brand p { max-width: 36ch; }

.socials {
  display: flex; gap: 14px; margin-top: 16px;
}
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(245,241,232,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: all .35s var(--ease);
}
.socials a:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(245,241,232,0.55);
}
.footer-bottom a:hover { color: var(--gold-soft); }
.creaa-link { font-weight: 500; color: rgba(245,241,232,0.78) !important; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Gate ---------- */
body.gate {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.gate-bg {
  position: fixed; inset: 0; z-index: 0;
}
.gate-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  filter: brightness(0.32) saturate(1.1) blur(2px);
}
.gate-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,19,32,0.4) 0%, rgba(11,19,32,0.92) 100%);
}
.gate-card {
  position: relative; z-index: 2;
  max-width: 460px; width: 100%;
  padding: 56px 48px;
  background: rgba(11,19,32,0.72);
  border: 1px solid rgba(245,241,232,0.15);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  text-align: center;
}
.gate-card .seal {
  width: 56px; height: 56px;
  border: 1px solid var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--gold-soft);
  font-size: 1.4rem;
  margin-bottom: 28px;
  border-radius: 50%;
}
.gate-card h1 {
  font-size: 1.6rem;
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 12px;
}
.gate-card .role {
  font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 36px;
}
.gate-card .label {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.6);
  margin-bottom: 12px;
  text-align: left;
  display: block;
}
.gate-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245,241,232,0.4);
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--paper);
  outline: 0;
  letter-spacing: 0.08em;
  transition: border-color .35s var(--ease);
}
.gate-input::placeholder { color: rgba(245,241,232,0.35); letter-spacing: 0.18em; }
.gate-input:focus { border-bottom-color: var(--gold-soft); }
.gate-card form { text-align: left; }
.gate-card .btn {
  margin-top: 36px;
  width: 100%;
  justify-content: center;
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}
.gate-card .btn:hover { background: var(--gold-soft); color: var(--ink); }
.gate-error {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #e88c7d;
  letter-spacing: 0.04em;
  min-height: 18px;
  text-align: left;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gate-error.show { opacity: 1; }
.gate-foot {
  position: fixed; bottom: 24px; left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(245,241,232,0.4);
  z-index: 2;
}

/* ---------- Vision pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; }
.pillar .num {
  font-family: var(--serif); font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.pillar h3 { margin-bottom: 16px; }
.pillar p { font-size: 0.98rem; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* ---------- Achievement cards ---------- */
.achv-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.achv-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.achv-row:last-child { border-bottom: 1px solid var(--line); }
.achv-row .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
}
.achv-row h3 { font-size: 1.5rem; line-height: 1.25; }
.achv-row p { font-size: 0.98rem; }
@media (max-width: 900px) {
  .achv-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}

/* ---------- About ---------- */
.about-portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.about-portrait .stamp {
  position: absolute;
  left: -1px; bottom: -1px;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 22px;
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Featured / Editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.split > div { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split .copy { background: var(--bone); }
.split .img { padding: 0; }
.split .img .frame { height: 100%; aspect-ratio: auto; }
.split.invert { direction: rtl; }
.split.invert > div { direction: ltr; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split .img .frame { aspect-ratio: 4/3; }
  .split.invert { direction: ltr; }
}

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  padding: 14px 0 14px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: #2a3445;
}
.bullet-list li::before {
  content: '';
  position: absolute; left: 0; top: 22px;
  width: 10px; height: 1px;
  background: var(--gold);
}

/* ---------- CTA strip ---------- */
.cta-strip { padding: clamp(70px, 9vw, 110px) 0; }
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.cta-strip-inner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  max-width: 22ch;
}
.cta-strip-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.cta-strip-buttons .btn {
  padding: 14px 22px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
@media (max-width: 1020px) {
  .cta-strip-inner { grid-template-columns: 1fr; }
  .cta-strip-buttons { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Page transitions ---------- */
/* IMPORTANT: must NOT use transform — a non-none transform on <body>
   creates a containing block for `position: fixed`, which would break
   the sticky navigation. Animate opacity only. */
.page-fade { animation: pageFade .7s var(--ease) both; }
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
