:root {
  --ink: #14213D;
  --ink-2: #2B3A5C;
  --gold: #B07D1E;
  --gold-text: #8A5F10;
  --gold-soft: #EBCB7A;
  --mist: #EEF2F7;
  --line: #D9E0EA;
  --white: #FFFFFF;
  --leaf: #1F7A4D;
  --muted: #4A5772;
  --radius-s: 12px;
  --radius-m: 20px;
  --wrap: 1180px;
  font-size: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: 'Hind Madurai', system-ui, sans-serif; font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s); border: 0;
  font: 600 1rem/1 'Hind Madurai', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.navy { background: var(--ink); color: #fff; }
.btn.navy:hover { background: var(--ink-2); }
.btn.gold { background: var(--gold-soft); color: var(--ink); }
.btn.gold:hover { background: #E3BC5C; }
.btn.wa { background: var(--leaf); color: #fff; }
.btn.wa:hover { background: #17633E; }
.btn.wide { width: 100%; }
[hidden] { display: none !important; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .emblem3d img { width: 40px; height: auto; }
.brand b { display: block; font: 700 1.28rem/1 'Cinzel', serif; letter-spacing: .02em; color: var(--ink); }
.brand small { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold-soft); }
.nav a.staff { color: var(--gold-text); font-weight: 600; }
.call { min-height: 42px; }
.menu { display: none; }

/* hero */
.hero { padding: 64px 0 72px; background:
  linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr); gap: 56px; align-items: start; }
.hero h1 { max-width: 19ch; }
.lede { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.tamil { margin-top: 16px; font-size: 1.05rem; font-weight: 600; color: var(--gold-text); max-width: 52ch; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.assurances { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.assurances li { position: relative; padding-left: 30px; font-weight: 500; }
.assurances li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* enquiry form: the one framed object on the page, edged like a certificate */
.enquiry {
  position: relative; background: var(--white); border-radius: var(--radius-m);
  padding: 28px 26px 22px; display: grid; gap: 14px;
  border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--gold-soft), 0 24px 48px -28px rgba(20,33,61,.45);
}
.enquiry h2 { font-size: 1.35rem; }
.hint { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.enquiry label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
.enquiry input, .enquiry select {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #B9C3D3; border-radius: var(--radius-s);
  font: 400 1rem 'Hind Madurai', sans-serif; color: var(--ink); background: #fff;
}
.enquiry input:focus, .enquiry select:focus { border-color: var(--ink); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 0; font-weight: 600; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--leaf); }
.form-msg.err { color: #B42318; }
.fine { font-size: .82rem; color: var(--muted); }

/* facts */
.facts { background: var(--ink); color: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { padding: 26px 20px 26px 0; font-size: .95rem; color: #C9D2E3; }
.facts p + p { padding-left: 24px; border-left: 1px solid rgba(235,203,122,.35); }
.facts b { display: block; font-size: 1.3rem; color: var(--gold-soft); margin-bottom: 2px; }

/* sections */
section.partners, section.loans, section.process, section.founders-sec, section.faq, section.visit, section.band { padding: 80px 0; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.split-head p { color: var(--muted); max-width: 58ch; }


.loans { background: var(--mist); }
.loan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.loan-list li { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.ico { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-soft); background: radial-gradient(circle at 35% 30%, #2E4372, var(--ink) 70%); box-shadow: inset 0 0 0 2px rgba(235,203,122,.55), 0 6px 14px -8px rgba(20,33,61,.7); }
.loan-list li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.loan-list p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.1rem 'Cinzel', serif; color: var(--ink); background: var(--gold-soft);
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 54px; right: -16px; height: 1px; background: var(--gold); opacity: .5; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

.founders-sec { background: var(--mist); }
.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.founders-grid p { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder { margin: 0; text-align: center; }
.portrait { width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold-soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder .portrait .mono { display: block; font: 700 2.6rem/1 'Cinzel', serif; color: var(--gold-soft); letter-spacing: .04em; }
.founder figcaption { margin-top: 16px; }
.founder b { display: block; font-size: 1.08rem; }
.founder figcaption span { display: block; color: var(--muted); font-size: .92rem; }

.band { background: var(--white); }
.quotes { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.quote { margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.quote blockquote { margin: 0; }
.quote p { font-size: 1.05rem; line-height: 1.7; }
.quote p::before { content: '“'; color: var(--gold); font: 700 1.6rem/0 'Cinzel', serif; margin-right: 4px; vertical-align: -.35em; }
.quote figcaption { margin-top: 12px; font-size: .92rem; }
.quote figcaption span { display: block; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.faq-grid > div > p { margin-top: 14px; color: var(--muted); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 2px solid var(--ink); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.04rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 1.6rem/1.2 'Hind Madurai', sans-serif; color: var(--gold); }
.qa details[open] summary::after { content: '−'; }
.qa details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

.visit { background: var(--ink); color: #fff; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.visit address { font-style: normal; margin: 22px 0 26px; font-size: 1.08rem; line-height: 1.75; color: #DCE3F0; }
.visit address b { color: var(--gold-soft); font-family: 'Cinzel', serif; }
.visit .btn.navy { background: var(--gold-soft); color: var(--ink); }
.contact-card { border: 1px solid rgba(235,203,122,.4); border-radius: var(--radius-m); padding: 26px; display: grid; gap: 6px; }
.contact-card h3 { color: var(--gold-soft); font-size: 1rem; margin-top: 10px; }
.contact-card h3:first-child { margin-top: 0; }
.contact-card p { color: #DCE3F0; }
.contact-card a { color: #fff; font-weight: 600; }
.contact-card .fine { color: #AEB9CF; margin-top: 12px; }

.foot { background: #0E1830; color: #AEB9CF; padding: 40px 0 96px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.6fr .9fr; gap: 32px; align-items: start; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand b { color: #fff; font-family: 'Cinzel', serif; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { color: #DCE3F0; }
.credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

.dock { display: none; }

/* tablet */
@media (max-width: 1040px) {
  .nav { gap: 14px; }
  .nav a { font-size: .9rem; }
  .bar .call { display: none; }
}
@media (max-width: 900px) {
  .menu { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; cursor: pointer; }
  .menu span:first-child, .menu span:first-child::before, .menu span:first-child::after { content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
  .menu span:first-child::before { position: absolute; top: -6px; }
  .menu span:first-child::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 1rem; }
  .hero { padding: 40px 0 48px; }
  .hero-grid, .split-head, .founders-grid, .faq-grid, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-head { gap: 14px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts p:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid rgba(235,203,122,.25); }
  .loan-list { grid-template-columns: 1fr 1fr; }
  .loan-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .loan-list li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  section.partners, section.loans, section.process, section.founders-sec, section.faq, section.visit, section.band { padding: 56px 0; }
}
/* phone */
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .brand small { display: none; }
  .two, .loan-list, .steps { grid-template-columns: 1fr; }
  .loan-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts p { padding: 18px 12px 18px 0; }
  .facts p + p { padding-left: 12px; }
  .facts p:nth-child(3) { padding-left: 0; }
  .facts b { font-size: 1.1rem; }
  .founders { grid-template-columns: 1fr 1fr; gap: 14px; }
  .portrait { width: 120px; height: 120px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .dock { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); box-shadow: 0 -6px 18px rgba(0,0,0,.2); }
  .dock a { color: #fff; text-align: center; text-decoration: none; font-weight: 600; padding: 15px 4px calc(15px + env(safe-area-inset-bottom)); }
  .dock a:first-child { background: var(--gold-soft); color: var(--ink); }
  .dock a + a { border-left: 1px solid rgba(255,255,255,.15); }
}

/* hero decoration */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; }
.hero-grid { position: relative; }
.seal { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.seal p { font-weight: 600; color: var(--gold-text); max-width: 24ch; line-height: 1.4; }

/* 3D gold emblem: glossy sweep, idle float, spin and coin burst on hover or tap */
.emblem3d { position: relative; display: inline-block; perspective: 700px; background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.emblem3d img { position: relative; transform-style: preserve-3d; filter: drop-shadow(0 2px 0 #8A5F10) drop-shadow(0 8px 10px rgba(122,84,16,.38)) saturate(1.15) contrast(1.05); }
.emblem3d::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.85) 46%, rgba(255,250,220,.2) 54%, transparent 66%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat;
  animation: gloss 5.5s ease-in-out infinite;
}
.emblem3d.sm { --mask: url(/site/emblem-96.png); }
.emblem3d.big { --mask: url(/site/emblem.png); }
.emblem3d.big img { width: 112px; height: auto; animation: float 4s ease-in-out infinite; }
.emblem3d.spin img { animation: spin3d 1.1s cubic-bezier(.3,.7,.3,1); }
@keyframes gloss { 0%, 62% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotateY(-8deg); } 50% { transform: translateY(-6px) rotateY(8deg); } }
@keyframes spin3d { 0% { transform: rotateY(0) scale(1); } 45% { transform: rotateY(200deg) scale(1.12); } 100% { transform: rotateY(360deg) scale(1); } }
.coin {
  position: fixed; z-index: 60; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; font: 700 14px/1 'Hind Madurai', sans-serif; color: #6B4A0C;
  background: radial-gradient(circle at 32% 28%, #FFF6C8 0 14%, #F4D47C 30%, #D9A93F 58%, #9C6C17 100%);
  box-shadow: inset 0 0 0 2px rgba(255,240,190,.75), inset 0 -2px 3px rgba(110,70,10,.5), 0 3px 6px rgba(80,50,0,.3);
}
.coin.note { width: 34px; height: 18px; margin: -9px 0 0 -17px; border-radius: 3px; font-size: 10px; color: #1F5B3A;
  background: linear-gradient(135deg, #CFEBD9, #9ED1B2); box-shadow: inset 0 0 0 1.5px #6FAE8A, 0 3px 6px rgba(0,0,0,.2); }

/* lending partners: moving lanes */
.partners { background: var(--ink); color: #fff; border-top: 1px solid rgba(235,203,122,.28); }
.partners .split-head p { color: #C9D2E3; }
.lanes { display: grid; gap: 14px; padding: 6px 0 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lane { display: flex; overflow: hidden; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; animation: slide var(--dur, 55s) linear infinite; }
.lane.rev .track { animation-direction: reverse; }
.lanes:hover .track, .lanes.paused .track { animation-play-state: paused; }
.track li { flex: 0 0 auto; height: 84px; padding: 0 22px; display: grid; place-items: center; background: #fff; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px rgba(176,125,30,.35); }
.track img { max-height: 52px; width: auto; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.lane-toggle { margin-top: 18px; background: none; border: 1px solid rgba(235,203,122,.5); color: var(--gold-soft); border-radius: var(--radius-s); padding: 8px 14px; font: 600 .9rem 'Hind Madurai', sans-serif; cursor: pointer; }
.lane-toggle:hover { background: rgba(235,203,122,.1); }

@media (max-width: 600px) {
  .seal { gap: 12px; margin-bottom: 18px; }
  .emblem3d.big img { width: 76px; }
  .track li { height: 66px; padding: 0 14px; }
  .track img { max-height: 40px; }
  .ico { flex-basis: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .emblem3d::after, .emblem3d.big img, .emblem3d.spin img { animation: none; }
  .lanes { -webkit-mask: none; mask: none; }
  .lane { overflow: visible; }
  .track { animation: none; flex-wrap: wrap; justify-content: center; }
  .track[aria-hidden="true"], .lane-toggle { display: none; }
}

/* soft UI: rounded, layered shadows, smooth motion */
.btn { transition: transform .18s cubic-bezier(.22,.8,.24,1), box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.navy { background: linear-gradient(180deg, #22345E, #14213D); box-shadow: 0 10px 22px -10px rgba(20,33,61,.7); }
.btn.gold { background: linear-gradient(180deg, #F3D78E, #E3BC5C); box-shadow: 0 10px 22px -10px rgba(176,125,30,.6); }
.btn.wa { background: linear-gradient(180deg, #2E9A62, #1F7A4D); box-shadow: 0 10px 22px -10px rgba(31,122,77,.6); }
.enquiry { border-radius: 24px; }
.enquiry input, .enquiry select { border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.enquiry input:focus, .enquiry select:focus { outline: none; box-shadow: 0 0 0 4px rgba(235,203,122,.4); }
.track li { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(176,125,30,.3), 0 6px 16px -10px rgba(0,0,0,.4); }
.contact-card { border-radius: 20px; background: rgba(255,255,255,.04); }
.portrait { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold-soft), 0 18px 34px -16px rgba(20,33,61,.6); }
.ico { transition: transform .3s cubic-bezier(.22,.8,.24,1); }
.loan-list li:hover .ico { transform: translateY(-2px) rotate(-4deg); }
.masthead { box-shadow: 0 10px 30px -24px rgba(20,33,61,.5); }
.dock a:first-child { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .btn, .ico { transition: none; } .btn:hover, .loan-list li:hover .ico { transform: none; } }
