/* Priyam Capital Private Limited — Phase 1 (pre-registration) site
   Visual language taken from the company letterhead. */

:root {
  --ink: #2b2b2b;
  --ink-soft: #55504a;
  --copper: #b5601a;
  --copper-deep: #8e4712;
  --brown: #5a2e14;
  --gold-dark: #8a6a2f;
  --gold-light: #e6c77a;
  --paper: #ffffff;
  --wash: #fbf6ef;
  --rule: rgba(181, 96, 26, 0.55);

  --serif: "Libre Caslon Text", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #f4f1ee;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding: clamp(0px, 2vw, 28px);
}

a { color: var(--copper-deep); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- The sheet (letterhead frame) ---------- */
.sheet {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--copper);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 35, 10, 0.06), 0 18px 48px -24px rgba(60, 35, 10, 0.25);
}

/* Gold ribbon in the top-left corner, as on the letterhead */
.ribbon {
  position: absolute; top: 0; left: 0;
  width: 150px; height: 150px;
  pointer-events: none;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; inset: 0;
}
.ribbon::before {
  background: linear-gradient(135deg, #3a2410 0%, #6b4a22 40%, var(--gold-dark) 60%);
  clip-path: polygon(0 0, 62% 0, 0 62%);
}
.ribbon::after {
  background: linear-gradient(135deg, var(--gold-light) 0%, #f6e6b8 35%, var(--gold-dark) 75%, var(--gold-light) 100%);
  clip-path: polygon(62% 0, 82% 0, 0 82%, 0 62%);
}

.inner { padding: 0 clamp(20px, 6vw, 84px); }

/* ---------- Masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.wordmark { text-decoration: none; color: var(--ink); display: inline-block; }
.wordmark__name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.7vw, 4.1rem);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: #333;
}
.wordmark__sub {
  display: flex; align-items: center; gap: 0.9em;
  margin-top: 0.55em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  letter-spacing: 0.32em;
  color: var(--copper);
}
.wordmark__sub::before, .wordmark__sub::after {
  content: ""; flex: 1 1 auto; height: 3px; min-width: 24px;
  background: var(--copper);
  border-radius: 3px;
  clip-path: polygon(0 50%, 12% 0, 100% 0, 100% 100%, 12% 100%);
}
.wordmark__sub::after { clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
.wordmark__sub span { margin-right: -0.32em; } /* balance trailing tracking */

.contact-col {
  list-style: none; margin: 0; padding: 4px 0 4px clamp(18px, 2.5vw, 30px);
  border-left: 2.5px solid var(--copper);
  font-size: 0.98rem;
  display: grid; gap: 10px;
}
.contact-col li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.contact-col a { color: var(--ink); text-decoration: none; }
.contact-col a:hover { color: var(--copper-deep); text-decoration: underline; }
.dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--copper); color: #fff;
  display: grid; place-items: center;
}
.dot svg { width: 16px; height: 16px; }
.contact-col .addr { line-height: 1.45; padding-top: 4px; }
.contact-col li > span:last-child, .contact-col li > a { padding-top: 3px; }

/* ---------- Content ---------- */
main.inner { padding-bottom: clamp(48px, 7vw, 80px); }

.lead {
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
}
.lead-body { max-width: var(--measure); color: var(--ink-soft); margin: 0; font-size: 1.125rem; }

section { padding-top: clamp(48px, 7vw, 80px); }

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--ink);
}

.divider {
  border: 0; height: 1px; margin: clamp(48px, 7vw, 80px) 0 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light) 30%, rgba(230, 199, 122, 0) 100%);
}

/* Status notice — the formal heart of this page */
.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  background: var(--wash);
  border-left: 3px solid var(--copper);
  padding: clamp(24px, 4vw, 44px);
}
.notice h2 { margin-bottom: 0.6em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { position: relative; padding-left: 26px; max-width: var(--measure); }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 10px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.caution {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  align-self: start;
}
.caution h3 {
  font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.5em; color: var(--brown);
}
.caution p { margin: 0 0 0.8em; color: var(--ink-soft); }
.caution p:last-child { margin-bottom: 0; }

/* About + principles */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
}
.two-col p { margin: 0 0 1em; max-width: var(--measure); }
.particulars { margin: 0; display: grid; gap: 14px; }
.particulars div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eee3d6; }
.particulars dt { color: var(--copper-deep); font-weight: 600; }
.particulars dd { margin: 0; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.principles h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.25em; }
.principles p { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.contact-grid h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.4em; color: var(--brown); }
.contact-grid p { margin: 0 0 0.35em; }
.contact-grid address { font-style: normal; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--copper);
  color: var(--copper-deep);
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--copper); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Footer (CIN block like the letterhead) ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding-top: 28px; padding-bottom: 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center;
}
.cin { display: flex; align-items: center; gap: 18px; }
.cin__badge {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--brown); color: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px #7a4220;
}
.cin__badge svg { width: 30px; height: 30px; }
.cin__text { border-left: 2.5px solid var(--copper); padding-left: 16px; }
.cin__label { display: block; font-weight: 700; color: var(--copper); font-size: 1.2rem; line-height: 1.1; }
.cin__num { display: block; font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; }
.foot__meta { justify-self: end; text-align: right; font-size: 0.92rem; color: var(--ink-soft); }
.foot__meta nav a { margin-left: 18px; }
.foot__meta p { margin: 0.4em 0 0; }
.disclaimer {
  grid-column: 1 / -1;
  font-size: 0.86rem; color: #6f6860; margin: 0; max-width: 100ch;
}

/* ---------- Legal pages ---------- */
.inner.doc { max-width: calc(72ch + 2 * clamp(20px, 6vw, 84px)); padding-bottom: 56px; }
.doc h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.3em; }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc .updated { color: var(--ink-soft); margin-top: 0; }
.doc .review-note {
  background: var(--wash); border-left: 3px solid var(--copper);
  padding: 14px 18px; font-size: 0.95rem;
}
.masthead--compact { grid-template-columns: 1fr; padding-top: clamp(56px, 8vw, 84px); padding-bottom: 28px; }
.masthead--compact .wordmark__name { font-size: clamp(2rem, 5vw, 3rem); }
.masthead--compact .wordmark__sub { font-size: clamp(0.8rem, 1.4vw, 1rem); }

/* ---------- Load moment: one quiet reveal of the wordmark rules ---------- */
@media (prefers-reduced-motion: no-preference) {
  .wordmark__sub::before, .wordmark__sub::after {
    animation: draw .9s cubic-bezier(.2,.7,.2,1) .15s both;
    transform-origin: right center;
  }
  .wordmark__sub::after { transform-origin: left center; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; }
  .notice, .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { padding: 0; }
  .sheet { border-width: 1px; }
  .ribbon { width: 96px; height: 96px; }
  .masthead { padding-top: 76px; }
  .contact-grid { grid-template-columns: 1fr; }
  .particulars div { grid-template-columns: 1fr; gap: 2px; }
  .foot { grid-template-columns: 1fr; }
  .foot__meta { justify-self: start; text-align: left; }
  .foot__meta nav a { margin: 0 18px 0 0; }
}

@media print {
  body { background: #fff; padding: 0; }
  .sheet { box-shadow: none; }
  .btn, .skip { display: none; }
}

/* ---------- Holding page ("under development") ---------- */
.sheet--holding {
  min-height: calc(100vh - 2 * clamp(0px, 2vw, 28px));
  min-height: calc(100dvh - 2 * clamp(0px, 2vw, 28px));
  display: flex; flex-direction: column;
}
.holding__main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(56px, 10vh, 120px);
}
h1.wordmark--hero { margin: 0; font-weight: inherit; }
.wordmark--hero .wordmark__name { font-size: clamp(2.1rem, 8vw, 6rem); }
.wordmark--hero .wordmark__sub { font-size: clamp(0.85rem, 2.2vw, 1.6rem); justify-content: center; }
.holding__msg {
  margin: clamp(36px, 6vh, 64px) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.holding__foot {
  border-top: 1px solid var(--rule);
  padding-top: 28px; padding-bottom: 26px;
}
.holding__contact {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: auto auto minmax(0, 1.4fr);
  gap: 20px clamp(24px, 4vw, 56px);
  justify-content: space-between;
  font-size: 0.98rem;
}
.holding__contact li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.holding__contact li > :last-child { padding-top: 3px; line-height: 1.5; }
.holding__contact a { color: var(--ink); text-decoration: none; }
.holding__contact a:hover { color: var(--copper-deep); text-decoration: underline; }
.holding__legal {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #efe5d9;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.88rem; color: #6f6860;
}
.holding__legal a { margin-left: 14px; }
.holding__legal span:first-child { font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .holding__contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sheet--holding { min-height: 100vh; min-height: 100dvh; }
  .holding__legal { flex-direction: column; }
  .holding__legal a { margin: 0 14px 0 0; }
}

/* Bigger tap targets on touch screens (layout looks the same) */
@media (pointer: coarse) {
  .holding__contact a, .holding__legal a {
    display: inline-block; padding: 10px 0; margin-top: -10px; margin-bottom: -10px;
  }
}
