/* ==========================================================================
   QPR India — holding page
   Palette lifted directly from the original logo artwork:
   ink #0C131A · oxblood #62181E · mist #A0C2D0
   ========================================================================== */

:root {
  --paper:        #EDF2F4;
  --paper-deep:   #DFE9ED;
  --ink:          #0C131A;
  --oxblood:      #62181E;
  --oxblood-lift: #7A2028;
  --mist:         #A0C2D0;
  --slate:        #55666F;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  --crisis-h: 4.75rem;
  --gutter:   2rem;
  --gutter:   clamp(1.5rem, 6vw, 6rem);
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

/* --------------------------------------------------------------------------
   Crisis line — fixed, unmissable, never overlapped by content
   -------------------------------------------------------------------------- */

.crisis {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: var(--crisis-h);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.9rem var(--gutter);
  background: var(--oxblood);
  color: #F6EEEE;
  box-shadow: 0 -1px 0 rgba(12, 19, 26, 0.14);
}

.crisis__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(246, 238, 238, 0.72);
}

.crisis__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 238, 238, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}

.crisis__link:hover,
.crisis__link:focus-visible { border-bottom-color: #F6EEEE; }

.crisis__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.crisis__number {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.crisis__note {
  font-size: 0.8125rem;
  color: rgba(246, 238, 238, 0.66);
}

/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter) 7rem;
  padding: clamp(2rem, 5vh, 4rem) var(--gutter)
           calc(var(--crisis-h) + clamp(2rem, 5vh, 3.5rem));
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vh, 3.25rem);
  overflow: hidden;
}

/* Signature: the mark's unclosed circle, at page scale.
   It draws itself once and stops — the gap is left open on purpose. */
.arc {
  position: absolute;
  top: 50%;
  right: -14vmin;
  width: 640px;
  height: 640px;
  width: min(86vmin, 780px);
  height: min(86vmin, 780px);
  transform: translateY(-52%);
  pointer-events: none;
  z-index: 0;
}

.arc__ring {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 82 100;   /* 18% of the circumference stays open */
  stroke-dashoffset: 82;
  transform-origin: 50% 50%;
  transform: rotate(-96deg);
  opacity: 0;
}

.arc--drawn .arc__ring {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s var(--ease), opacity 0.5s linear;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.masthead__logo {
  width: 3.75rem;
  height: auto;
  display: block;
}

.masthead__org {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Lede — the three steps
   -------------------------------------------------------------------------- */

.lede {
  position: relative;
  z-index: 1;
  margin-top: auto;
  max-width: 34ch;
}

.steps {
  margin: 0;
  font-family: var(--display);
  font-weight: 200;
  font-size: 4rem;
  font-size: clamp(2.9rem, 11.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.step {
  display: block;
  opacity: 0;
  transform: translateY(0.32em);
}

.step--in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.tagline {
  margin: clamp(1.1rem, 2.5vh, 1.75rem) 0 0;
  font-size: clamp(1.0625rem, 2.1vw, 1.3125rem);
  line-height: 1.45;
  color: var(--slate);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   Notice + actions
   -------------------------------------------------------------------------- */

.notice {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  padding-top: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid var(--paper-deep);
}

.notice__flag {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.6rem;
  background: var(--oxblood);
  color: #F6EEEE;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 2px;
}

.notice__head {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.notice__body {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-size: 0.9688rem;
}

.notice__body--quiet { color: #6D7C85; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease),
              color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn--solid:hover,
.btn--solid:focus-visible { background: var(--oxblood); border-color: var(--oxblood); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid #C3D2D9;
}

.btn--line:hover,
.btn--line:focus-visible { border-color: var(--ink); background: var(--paper-deep); }

/* --------------------------------------------------------------------------
   Foot
   -------------------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: #7A8891;
}

.foot p { margin: 0; }

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
  :root { --crisis-h: 5.5rem; }

  .crisis {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .crisis__note { font-size: 0.75rem; }

  .arc {
    right: -34vmin;
    width: 118vmin;
    height: 118vmin;
  }

  .actions .btn { flex: 1 1 100%; }
  .notice__flag { font-size: 0.65rem; }
}

@media (min-width: 60rem) {
  .lede { max-width: 40ch; }
}

/* --------------------------------------------------------------------------
   Motion and contrast preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .step { opacity: 1; transform: none; }
  .step--in { transition: none; }
  .arc__ring { opacity: 1; stroke-dashoffset: 0; }
  .arc--drawn .arc__ring { transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (prefers-contrast: more) {
  :root { --slate: #33424B; }
  .btn--line { border-color: var(--ink); }
}

/* Inline mail link inside the institutional line */
.notice__mail {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid rgba(98, 24, 30, 0.32);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  overflow-wrap: anywhere;
}

.notice__mail:hover,
.notice__mail:focus-visible { border-bottom-color: var(--oxblood); }
