/* Indicon — landing page styles */

:root {
  --accent: #02525d;
  --accent-dark: #013a42;
  --highlight: #d4fa00;
  --highlight-soft: #e8fab5;
  --ink: #0e1f22;
  --ink-2: #1f3134;
  --muted: #3d5053;
  --subtle: #4a5c5f;
  --paper: #f3f6f5;
  --surface: #ffffff;
  --tint: #e1eeec;
  --line: #c9d4d2;
  --blue-ink: #1f5fbf;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Noto Sans Tamil", "Noto Sans Devanagari", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--highlight);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: 112px;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-head > :first-child {
  flex: 1 1 520px;
  min-width: 0;
}

.section-head > .lede {
  flex: 1 1 340px;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

/* ---------- Header & hero ---------- */

.site-header {
  background: var(--accent);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links .nav-cta {
  background: #fff;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px;
  padding-top: 56px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  padding-bottom: 96px;
}

.hero-pill {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--highlight);
}

.hero-lede {
  margin: 24px 0 0;
  max-width: 30em;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 36px;
}

.hero-meta {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.store-badge {
  display: inline-block;
}

.store-badge img {
  height: 52px;
  width: auto;
}

/* ---------- Keyboard demo ---------- */

.demo-wrap {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.demo {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 40px 40px 0 0;
  padding: 20px 16px 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
  color: var(--ink);
}

.demo-field {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--paper);
  font-family: "Noto Sans Tamil", sans-serif;
  font-size: 20px;
}

.demo-word {
  display: inline-block;
  max-width: 8em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--accent);
  animation: demo-word 5s ease-out infinite;
}

.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 22px;
  margin-left: 2px;
  vertical-align: -4px;
  background: var(--accent);
  animation: demo-cursor 1s steps(1) infinite;
}

.demo-keyboard {
  margin-top: 16px;
  padding: 10px 10px 14px;
  border-radius: 22px 22px 0 0;
  background: #e6eceb;
}

.demo-suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 45px;
  font-family: "Noto Sans Tamil", sans-serif;
  font-size: 18px;
  text-align: center;
  animation: demo-suggestions 5s ease-out infinite;
}

.demo-suggestions span {
  padding: 9px 4px;
}

.demo-suggestions .demo-top {
  display: block;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  color: var(--accent);
  animation: demo-tap 5s ease-out infinite;
}

.demo-canvas {
  position: relative;
  height: 170px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.demo-canvas svg {
  width: 100%;
  height: 100%;
}

.demo-ink {
  animation: demo-ink 5s linear infinite;
}

.demo-ink text {
  font-family: Kavivanar, "Noto Sans Tamil", sans-serif;
  font-size: 70px;
  fill: var(--ink);
}

.demo-reveal {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: demo-reveal 5s linear infinite;
}

.demo-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--subtle);
}

.demo-hint-write {
  animation: demo-hint-write 5s linear infinite;
}

.demo-hint-done {
  opacity: 0;
  animation: demo-hint-done 5s linear infinite;
}

.demo-keys {
  display: grid;
  grid-template-columns: 44px 44px 44px minmax(0, 1fr) 44px 56px;
  gap: 6px;
  margin-top: 8px;
}

.demo-keys span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--subtle);
}

.demo-keys .demo-return {
  background: var(--accent);
}

@keyframes demo-reveal {
  0%, 3% { stroke-dashoffset: 1; }
  9%, 11% { stroke-dashoffset: 0.79; }
  17%, 19% { stroke-dashoffset: 0.56; }
  23%, 25% { stroke-dashoffset: 0.43; }
  30%, 32% { stroke-dashoffset: 0.2; }
  35%, 100% { stroke-dashoffset: 0; }
}

@keyframes demo-ink {
  0%, 61% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@keyframes demo-suggestions {
  0%, 38% { opacity: 0; transform: translateY(6px); }
  43%, 62% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; }
}

@keyframes demo-tap {
  0%, 58%, 61.5%, 100% { transform: scale(1); }
  59.7% { transform: scale(0.9); }
}

@keyframes demo-word {
  0%, 61% { opacity: 0; max-width: 0; }
  65%, 94% { opacity: 1; max-width: 8em; }
  98.5% { opacity: 0; max-width: 8em; }
  100% { opacity: 0; max-width: 0; }
}

@keyframes demo-cursor {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes demo-hint-write {
  0%, 35% { opacity: 1; }
  37%, 100% { opacity: 0; }
}

@keyframes demo-hint-done {
  0%, 37% { opacity: 0; }
  39%, 62% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

/* ---------- Script ribbon ---------- */

.ribbon {
  background: var(--ink);
  color: #fff;
  padding: 22px 24px;
  overflow: hidden;
}

.ribbon ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 22px;
  font-weight: 500;
}

.ribbon li {
  white-space: nowrap;
  opacity: 0.92;
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.grid-steps {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.grid-features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step {
  padding: 32px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--highlight);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.step h3 {
  margin: 20px 0 8px;
  font-size: 26px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature h3 {
  margin-top: 4px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
}

#how {
  padding-bottom: 40px;
}

#how .section-title {
  max-width: 16em;
}

#features {
  padding-block: 80px;
}

/* ---------- Notes ---------- */

.notes {
  background: var(--surface);
}

.notes .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.notes-visual {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.note-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 32px;
  background: var(--paper);
}

.note-mock-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--subtle);
}

.note-mock-title {
  margin: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.note-mock-ink {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.note-mock-ink svg {
  width: 90%;
  height: 100%;
}

.note-mock-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 18px;
}

.note-mock-text span:last-child {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.notes-copy {
  flex: 1 1 460px;
  min-width: 0;
}

.notes-copy .lede {
  margin-top: 20px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 14px;
}

.checklist svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

/* ---------- Languages ---------- */

#languages {
  padding-bottom: 80px;
}

.grid-languages {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.language {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 120px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.language-native {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.language-name {
  font-size: 15px;
  color: var(--muted);
}

.footnote {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--subtle);
}

/* ---------- Make it yours ---------- */

.yours {
  background: var(--highlight);
  color: var(--ink);
}

.yours .eyebrow {
  color: var(--ink);
}

.yours .lede {
  color: var(--ink-2);
}

.grid-yours {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
}

.panel-sub {
  margin: 10px 0 0;
  font-size: 16px;
}

.panel-pen {
  gap: 24px;
  background: var(--surface);
}

.panel-pen .panel-sub,
.pace-caption {
  color: var(--muted);
}

.ink-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ink-sample {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.small-label {
  font-size: 13px;
  color: var(--subtle);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.swatch-auto {
  background: linear-gradient(135deg, var(--ink) 50%, #fff 50%);
  box-shadow: 0 0 0 1px var(--line);
}

.swatch-black {
  background: var(--ink);
}

.swatch-blue {
  background: var(--blue-ink);
}

.swatch-white {
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.pace {
  margin-top: auto;
}

.pace-labels {
  display: flex;
  justify-content: space-between;
}

.pace-labels strong {
  color: var(--ink);
  font-weight: 600;
}

.pace-track {
  position: relative;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--tint);
}

.pace-track::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: 999px;
  background: var(--accent);
}

.pace-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent);
}

.pace-caption {
  margin: 12px 0 0;
  font-size: 14px;
}

.panel-icons {
  background: var(--accent);
  color: #fff;
}

.panel-icons .panel-sub {
  color: rgba(255, 255, 255, 0.86);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: center;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.icon-grid li {
  width: 100%;
  max-width: 84px;
}

.icon-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
}

.icon-grid .is-default img {
  box-shadow: 0 0 0 3px var(--highlight);
}

.panel-privacy {
  background: var(--ink);
  color: #fff;
}

.panel-privacy .feature-icon {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--highlight);
}

.panel-privacy ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.panel-privacy strong {
  color: #fff;
}

/* ---------- Founder's note ---------- */

.founders {
  padding: clamp(32px, 5vw, 72px);
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}

.founders .eyebrow {
  color: var(--highlight);
}

.founders blockquote {
  margin: 16px 0 0;
  max-width: 24em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
}

.founders p {
  max-width: 40em;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.founders .signature {
  color: #fff;
  font-weight: 600;
}

.founders .signature span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact ---------- */

#contact {
  padding-top: 0;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.contact-copy {
  flex: 1 1 380px;
  min-width: 0;
}

.contact-cycle {
  justify-items: start;
  font-weight: 700;
  font-size: 0.72em;
  color: var(--accent);
}

.contact-cycle > :nth-child(1) { font-family: "Noto Sans Tamil", sans-serif; }
.contact-cycle > :nth-child(2) { font-family: "Noto Sans Telugu", sans-serif; }
.contact-cycle > :nth-child(3) { font-family: "Noto Sans Kannada", sans-serif; }
.contact-cycle > :nth-child(4) { font-family: "Noto Sans Devanagari", sans-serif; }
.contact-cycle > :nth-child(5) { font-family: "Noto Sans Gujarati", sans-serif; }

.contact-copy .lede {
  max-width: 26em;
  margin-top: 20px;
}

.contact-copy svg {
  margin-top: 32px;
  color: var(--accent);
}

.contact-form {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  min-height: 50px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 82, 93, 0.18);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-footer p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button svg {
  color: var(--highlight);
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  background: var(--tint);
  color: var(--accent-dark);
}

.form-status.is-error {
  background: #fdecea;
  color: #8a1c12;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 24px;
}

.footer-brand {
  flex: 1 1 360px;
  min-width: 0;
}

.footer-brand h2 {
  max-width: 11em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-size: 17px;
  font-weight: 500;
}

.footer-links a,
.social a {
  color: #fff;
  text-decoration: none;
}

.footer-links a {
  padding: 10px 0;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.social a:hover {
  color: var(--highlight);
}

.footer-actions .store-badge img {
  height: 48px;
}

.footer-art {
  position: relative;
  height: clamp(320px, 40vw, 560px);
}

.footer-art > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-art .glyphs-back {
  fill: #fff;
  fill-opacity: 0.09;
}

.footer-art .glyphs-front {
  fill: #000;
  fill-opacity: 0.2;
}

.wordmark {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wm-stack {
  place-items: center;
  margin-block: -0.12em;
}

.wm-stack > * {
  line-height: 1.25;
}

.wm-stack > :nth-child(1) { font-family: var(--font-display); font-weight: 800; font-size: clamp(88px, 19vw, 290px); letter-spacing: -0.045em; }
.wm-stack > :nth-child(2) { font-family: "Noto Sans Tamil", sans-serif; font-weight: 700; font-size: clamp(48px, 10vw, 156px); letter-spacing: -0.01em; }
.wm-stack > :nth-child(3) { font-family: "Noto Sans Telugu", sans-serif; font-weight: 700; font-size: clamp(58px, 12.5vw, 196px); }
.wm-stack > :nth-child(4) { font-family: "Noto Sans Malayalam", sans-serif; font-weight: 700; font-size: clamp(52px, 11vw, 172px); }
.wm-stack > :nth-child(5) { font-family: "Noto Sans Devanagari", sans-serif; font-weight: 700; font-size: clamp(60px, 13vw, 204px); }
.wm-stack > :nth-child(6) { font-family: "Noto Sans Kannada", sans-serif; font-weight: 700; font-size: clamp(56px, 12vw, 188px); }

.wordmark-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0 clamp(0px, 22vw, 420px);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wordmark-caption svg {
  color: var(--highlight);
}

/* ---------- Handwritten word cycle (driven by js/main.js) ---------- */

.cycle {
  display: inline-grid;
}

.cycle > * {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.js .cycle > * {
  clip-path: inset(0 100% 0 0);
}

.js .cycle > .is-active {
  animation: cycle-write 4s linear forwards;
}

.js .cycle > .is-static {
  clip-path: none;
}

@keyframes cycle-write {
  0% { clip-path: inset(0 100% 0 0); }
  8.4%, 12% { clip-path: inset(0 80% 0 0); }
  19.2%, 22.8% { clip-path: inset(0 55% 0 0); }
  30%, 33.6% { clip-path: inset(0 28% 0 0); }
  42%, 78% { clip-path: inset(0 0 0 0); opacity: 1; }
  93% { clip-path: inset(0 0 0 100%); opacity: 0.35; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-block: 80px 112px;
}

.legal h1 {
  margin: 12px 0 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal {
  overflow-wrap: anywhere;
}

.legal-date {
  margin: 0 0 8px;
  font-size: 15px;
}

.legal address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Motion preferences ---------- */

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

  .demo-word,
  .demo-cursor,
  .demo-suggestions,
  .demo-suggestions .demo-top,
  .demo-ink,
  .demo-reveal,
  .demo-hint-write,
  .demo-hint-done {
    animation: none;
  }

  .demo-hint-write {
    opacity: 0;
  }

  .demo-hint-done {
    opacity: 1;
  }
}
