/* Hallmark · redesign: polish · built: the project · theme: brand (3CDN Wavelength, direction A, white skin) · audit: docs/hallmark-audit.md */
/* Hallmark · waive 1 · Inter is 3CDN's own brand font, named in CLAUDE.md, and the lockup is set in it */
/* Hallmark · waive 42 · the nav shape is set by docs/site-architecture.md section 4, with Register as the one button */
/* wavelength.show: direction A ("In phase"), white skin. */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&display=swap');

:root {
  /* White skin */
  --ground: #FAFBFA; --ink: #16302A; --sub: #4E625B; --forum-ink: #46524E;
  --deep: #1D4F6F; --deep-hover: #164058; --deep-line: rgba(29, 79, 111, .35);
  --green: #057F56; --green-ink: #047550; /* --green-ink: small green text, 4.5:1 on --soft too */
  --line: rgba(22, 48, 42, .12); --soft: #EFF3F1;
  --on-deep: #F7FAF9; --disabled: #DCE4E1;
  --ph-a: #F4F8F6; --ph-b: #E3EBE7; --ph-ink: #738A82;
  --rings: rgba(26, 85, 111, .055);
  /* The wave ramp (white skin), as drawn by waves.js */
  --wave-0: #1A3F66; --wave-1: #1A556F; --wave-1b: #165F6E; --wave-2: #097367;
  --wave-3: #00844F; --wave-3b: #1F914C; --wave-4: #379D49; --wave-4b: #2E9B4E;
  /* LED glow skin */
  --night: #030605; --night-ink: #EEF5F1; --night-sub: #93A9A0; --night-line: rgba(238, 245, 241, .12);
  /* Placeholders (facts still to confirm) */
  --tbc-a: rgba(200, 150, 40, .16); --tbc-b: rgba(200, 150, 40, .06);
  --tbc-night-a: rgba(230, 190, 90, .26); --tbc-night-b: rgba(230, 190, 90, .1);
  --focus: var(--deep); --deep-press: #12384E; --night-ink-hover: #D3E1DA;
  --selection: rgba(9, 115, 103, .2); --scrollbar: #B7C6C0;
  --font: 'Inter', system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px); --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-optical-sizing: auto; font-size: 17.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
::selection { background: var(--selection); color: var(--ink); }
html { caret-color: var(--deep); scrollbar-color: var(--scrollbar) var(--ground); }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale */
h2, .h2 { overflow-wrap: break-word; min-width: 0; }
h2 { margin: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.032em; }
h3 { margin: 0; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.015em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--sub); max-width: 46ch; }
.sub { color: var(--sub); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: 0 1.4em; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; background: var(--deep); color: var(--on-deep); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--deep-hover); }
.btn:active { background: var(--deep-press); transform: translateY(1px); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:active { background: var(--disabled); color: var(--sub); cursor: default; transform: none; }
.code { font-variant-numeric: tabular-nums; color: var(--green-ink); font-weight: 600; }

/* Placeholders: facts we do not have yet. Visible on purpose until Rishab confirms them. */
.tbc { background: repeating-linear-gradient(-45deg, var(--tbc-a) 0 6px, var(--tbc-b) 6px 12px);
  border-radius: 4px; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rings { position: absolute; inset: 0; pointer-events: none;
  --r: clamp(120px, 17vw, 260px);
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(var(--r) - 1px), var(--rings) calc(var(--r) - 1px) var(--r));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, var(--night) 30%, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, var(--night) 30%, transparent 75%); }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--pad); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .14em; }
.mark img { height: 17px; width: auto; }
nav.main { display: flex; gap: clamp(14px, 2.2vw, 32px); align-items: center; font-size: 14.5px; color: var(--sub); }
nav.main a { text-decoration: none; }
nav.main a:hover { color: var(--ink); }
nav.main .btn { min-height: 44px; padding: 0 1.15em; font-size: 14px; color: var(--on-deep); }

.centre { position: relative; z-index: 2; display: grid; place-items: center; padding: 0 20px; pointer-events: none; }
.lockup { display: grid; justify-items: center; text-align: center; margin: 0; font-weight: inherit; animation: rise 1.2s ease .9s both; }
.lockup .by img { height: clamp(22px, 2.7vw, 40px); width: auto; margin-bottom: .55em; }
.lockup .name {
  font-weight: 500; letter-spacing: .14em; margin-right: -.14em;
  font-size: clamp(34px, 8.2vw, 132px); line-height: .92; overflow-wrap: break-word; min-width: 0;
  background: linear-gradient(90deg, var(--wave-0), var(--wave-1) 33%, var(--wave-2) 66%, var(--wave-4b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lockup .forum { margin-top: .7em; font-weight: 400; font-size: clamp(17px, 1.75vw, 25px); letter-spacing: -.005em; color: var(--forum-ink); }
.lockup .forum b { font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 0 var(--pad) clamp(26px, 4.4vh, 44px); }
.when { font-size: 15px; line-height: 1.5; }
.when strong { font-weight: 600; display: block; }
.vs { width: 1.5em; height: 1.1em; vertical-align: -.12em; margin-left: .35em; }
.tag { font-size: clamp(17px, 1.6vw, 22px); color: var(--deep); text-align: center; max-width: 36ch; line-height: 1.35; letter-spacing: -.01em; }
.tag span { display: block; color: var(--sub); font-size: .72em; margin-top: .45em; letter-spacing: 0; }
.act { justify-self: end; display: grid; gap: 10px; justify-items: end; text-align: right; }
.act small, .note { font-size: 13.5px; color: var(--sub); }

/* ---------- Sections ---------- */
section.block { padding: clamp(84px, 11vw, 150px) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(44px, 6vw, 80px); align-items: end; }
.head h2, .head > div { grid-column: 1 / span 7; }
.head .lede { grid-column: 8 / span 5; }

/* Why */
.why .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.why h2 { grid-column: 1 / span 8; max-width: 17ch; }
.why .body { grid-column: 8 / span 5; display: grid; gap: 1em; margin-top: clamp(28px, 5vw, 72px); color: var(--sub); max-width: 46ch; }
.why .body strong { color: var(--ink); font-weight: 500; }

/* Experts: editorial rows, not a card grid */
.expert { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.expert + .expert { margin-top: clamp(72px, 9vw, 130px); }
.expert .pics { grid-column: 1 / span 5; display: grid; gap: 14px; }
.expert .text { grid-column: 7 / span 6; display: grid; gap: 18px; align-content: start; }
.expert.flip .pics { grid-column: 8 / span 5; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expert.flip .text { grid-column: 1 / span 6; grid-row: 1; }
.portrait { margin: 0; }
.portrait img, .portrait .ph { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--soft); }
/* VIVID supplied oval portraits: show them as ovals, with a clean edge whatever the photo's own corners. */
.portrait.oval img { aspect-ratio: 4 / 5; border-radius: 0; background: none; clip-path: ellipse(50% 50% at 50% 50%); }
.portrait figcaption { margin-top: 10px; font-size: 14px; color: var(--sub); line-height: 1.4; }
.portrait figcaption b { display: block; color: var(--ink); font-weight: 500; }
.ph { display: grid; place-items: center; position: relative; overflow: hidden; color: var(--ph-ink); font-size: clamp(36px, 4vw, 56px); font-weight: 300; letter-spacing: .06em;
  background: radial-gradient(120% 90% at 30% 20%, var(--ph-a), var(--ph-b)); }
.ph small { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12.5px; letter-spacing: 0; color: var(--sub); }
.role { color: var(--sub); margin-top: 6px; }
.expert .text > p { max-width: 54ch; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.oneone { margin-top: clamp(56px, 7vw, 96px); padding: 26px 28px; border-radius: 10px; background: var(--soft); display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.oneone p { max-width: 62ch; }

/* The evening: a real sequence, drawn as one thread */
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--wave-1), var(--wave-2) 40%, var(--wave-3) 70%, var(--wave-4)); opacity: .55; }
.flow li { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; padding: 22px 0 22px 48px; }
.flow li::before { content: ''; position: absolute; left: 0; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--c, var(--wave-2)); }
.flow h3 { font-size: clamp(20px, 1.8vw, 25px); }
.flow p { color: var(--sub); max-width: 52ch; }
.flow li.morning { margin-top: 18px; }
.flow li.morning::before { background: var(--c); }

/* Before and after */
.around { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.around > div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--c, var(--deep)); }
.around p { color: var(--sub); }
.soon { font-size: 13.5px; color: var(--green-ink); font-weight: 600; }

/* Sangam: the one dark moment, in the LED glow skin */
.sangam { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; --focus: var(--night-ink); }
section.block.sangam, section.block.sangam + section.block { border-top: 0; }
.sangam canvas { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 420px; opacity: .55; pointer-events: none; }
.sangam .wrap { position: relative; }
.sangam .lede, .sangam .sub, .sangam .note { color: var(--night-sub); }
.sangam .name-def { font-size: 15px; color: var(--night-sub); margin-top: 14px; }
.sangam .name-def i { color: var(--night-ink); font-style: normal; font-weight: 500; }
.reel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.reel video { width: 100%; aspect-ratio: 848 / 480; border-radius: 8px; background: var(--night); }
.reel dl { margin: 0; display: grid; gap: 0; }
.reel dt { font-size: 13.5px; color: var(--night-sub); padding-top: 16px; }
.reel dd { margin: 2px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--night-line); }
.reel dd:last-child { border-bottom: 0; }
.sangam .tbc { background: repeating-linear-gradient(-45deg, var(--tbc-night-a) 0 6px, var(--tbc-night-b) 6px 12px); }
.strip { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strip figure { margin: 0; }
.strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.strip figcaption { font-size: 13.5px; color: var(--night-sub); margin-top: 8px; line-height: 1.4; }
.bridge { margin-top: clamp(48px, 6vw, 84px); font-size: clamp(20px, 2vw, 27px); font-weight: 300; letter-spacing: -.015em; line-height: 1.35; max-width: 34ch; }

.more { margin-top: 28px; }
.more a { color: var(--night-ink); text-underline-offset: 4px; font-weight: 500; }

/* Inner pages (/sangam-2024, /bengaluru-2027) */
.h2 { margin: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.032em; }
.h3 { margin: 0; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.015em; }
body.dark .top { position: absolute; left: 0; right: 0; z-index: 3; color: var(--night-ink); --focus: var(--night-ink); }
body.dark nav.main { color: var(--night-sub); }
body.dark nav.main a:hover { color: var(--night-ink); }
body.dark nav.main .btn { background: var(--night-ink); color: var(--night); }
body.dark nav.main .btn:hover, body.dark nav.main .btn:active { background: var(--night-ink-hover); }
.sangam.first { padding-top: clamp(130px, 14vw, 180px); }
.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 26px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.sangam .crumbs { color: var(--night-sub); }
.gap { margin-top: clamp(56px, 7vw, 96px); }
.intro { margin-top: 10px; max-width: 60ch; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: inherit; }
.btn.ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep-line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--deep); background: transparent; }
.btn.ghost:active { box-shadow: inset 0 0 0 1.5px var(--deep); background: var(--soft); }
.edition { padding-top: clamp(40px, 5vw, 64px); }
.when-line { margin-top: 14px; }
.reel.light dt { color: var(--sub); }
.reel.light dd { border-bottom-color: var(--line); }
.film-ph { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--sub); }
.next .wrap { display: grid; gap: 22px; justify-items: start; }
.next h2 { max-width: 18ch; }

/* Venue */
.venue .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.venue h2 { grid-column: 1 / span 7; }
.venue .vs { width: .9em; height: .66em; margin-left: .2em; vertical-align: .02em; color: var(--deep); }
.venue .info { grid-column: 8 / span 5; display: grid; gap: 14px; color: var(--sub); }
.venue .info strong { color: var(--ink); font-weight: 500; }
.venue .info a { color: var(--deep); text-underline-offset: 3px; }

/* Register: the wave comes back, in phase */
.register { position: relative; text-align: center; overflow: hidden; }
.register canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.register .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.register h2 { max-width: 16ch; }
.register .lede { margin: 0 auto; }
.register .note a { color: var(--deep); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14.5px; color: var(--sub); }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
footer img { height: 26px; width: auto; }
footer a { color: var(--ink); text-underline-offset: 3px; }
footer nav { display: flex; gap: 22px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .head, .why .wrap, .expert, .venue .wrap { grid-template-columns: 1fr; }
  .head h2, .head > div, .head .lede, .why h2, .why .body, .expert .pics, .expert .text,
  .expert.flip .pics, .expert.flip .text, .venue h2, .venue .info { grid-column: 1; grid-row: auto; }
  .expert .pics { max-width: 420px; }
  .expert.flip .pics { max-width: 560px; }
  .why .body { margin-top: 8px; }
  .reel { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .around { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  nav.main a:not(.btn) { display: none; }
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding-bottom: 34px; }
  .act { justify-self: center; justify-items: center; text-align: center; }
  .tag { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .flow li { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
  .flow li::before { top: 27px; }
  .mark span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
