/* IndiaWise — editorial landing. White, black type, flag saffron and green. */

:root {
  --paper: #ffffff;
  --paper-2: #f7f7f7; /* very light grey for manifesto / alt bands only */
  --paper-3: #f0f0f0;
  --ink: #111111; /* black text */
  --ink-soft: #333333;
  --ink-faint: #555555;
  --rule: #e6e6e6;
  --saffron: #FF9933; /* flag saffron */
  --saffron-deep: #E07B12; /* hover, still saffron */
  --saffron-text: #C2410C; /* darker saffron for SMALL text on white — #FF9933 fails WCAG as text */
  --green: #138808; /* flag green */
  --green-deep: #0E6B06;
  --cream: #ffffff; /* inputs now white */
  --focus: #138808;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
  --wide: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  background: #111111;
  color: #ffffff;
  padding: 0.5rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(to right, var(--saffron) 50%, var(--green) 50%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  height: 2.35rem;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink) !important;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--saffron);
  border-radius: 2px;
  white-space: nowrap;
  min-height: 44px;
}

.cta-short {
  display: none;
}

.nav-cta:hover {
  background: var(--saffron);
  color: var(--ink) !important;
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    gap: 0.5rem;
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.5rem;
    align-items: center;
  }

  .nav-hide {
    display: none;
  }

  .nav {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand-mark {
    height: 1.8rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .nav-cta {
    padding: 0.45rem 0.75rem;
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}

/* Layout */

main {
  overflow-x: hidden;
}

.wrap {
  width: min(var(--wide), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Hero */

.hero {
  padding: clamp(2.25rem, 8vw, 6.5rem) 0 clamp(2.5rem, 8vw, 6rem);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.75rem;
}

.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.15rem, 8.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  max-width: 14ch;
  overflow-wrap: break-word;
}

.hero h1,
.hero h1 em {
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 450;
}

.hero-lead {
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem;
}

.hero-sydney {
  max-width: 38rem;
  color: var(--ink-soft);
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.85rem 1.35rem;
}

.btn-primary {
  background: var(--saffron);
  color: #111111;
  border-color: var(--saffron);
}

.btn-primary:hover {
  background: var(--saffron-deep);
  border-color: var(--saffron-deep);
  color: #111111;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--green);
}

.hero-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Sections */

.section {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  margin-bottom: 2rem;
}

.num {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--saffron-text);
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.lede {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
}

.muted {
  color: var(--ink-soft);
}

/* Who we are / will be */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.will-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.will-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.will-list li span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin-bottom: 0.15rem;
}

.will-list li:nth-child(even) span {
  color: var(--green);
}

.philosophy {
  margin: 1.75rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

/* Pillars + ecosystem */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 3rem;
}

@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--ink);
}

.pillar:nth-child(1) {
  border-top-color: var(--saffron);
}

.pillar:nth-child(2) {
  border-top-color: var(--green);
}

.pillar:nth-child(3) {
  border-top-color: var(--ink);
}

.pillar h3 {
  margin-bottom: 0.35rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
}

.ecosystem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.eco {
  padding: 1.5rem 1.4rem 1.6rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.eco:nth-child(2n) {
  border-right: 0;
}

.eco:nth-child(n + 3) {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .ecosystem {
    grid-template-columns: 1fr;
  }

  .eco {
    border-right: 0;
  }

  .eco:nth-child(n + 3) {
    border-bottom: 1px solid var(--rule);
  }

  .eco:last-child {
    border-bottom: 0;
  }
}

.eco p {
  margin: 0;
  color: var(--ink-soft);
}

.eco .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin-bottom: 0.45rem;
}

.eco:nth-child(even) .tag {
  color: var(--green);
}

/* Gathering */

.gather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.gather-meta li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.gather-meta strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

/* Manifesto */

.manifesto {
  background: var(--paper-2);
  border-top: 4px solid var(--saffron);
  border-bottom: 4px solid var(--green);
}

.manifesto-inner {
  max-width: 36rem;
}

.manifesto p {
  font-size: 1.15rem;
  line-height: 1.6;
}

.belief {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 1.75rem 0 0;
}

.belief em {
  font-style: italic;
}

.belief small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* Form */

.form-intro {
  max-width: var(--measure);
}

.application {
  margin-top: 2rem;
  padding: 1.75rem 0 0;
  border-top: 2px solid var(--ink);
}

.application-ref {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}

.span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hint {
  font-weight: 400;
  color: var(--ink-faint);
}

.req {
  color: var(--saffron-text);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 0.7rem 0.75rem;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--saffron);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.form-error {
  margin: 0.5rem 0 0;
  color: var(--saffron-text);
  font-weight: 600;
}

.thanks {
  padding: 2rem 0;
}

.thanks h3 {
  font-size: 1.8rem;
}

/* Footer */

.site-footer {
  position: relative;
  padding-top: 2.25rem;
  padding-bottom: max(2.75rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--rule);
}

.site-footer .wrap {
  width: min(var(--wide), 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: linear-gradient(to right, var(--saffron) 50%, var(--green) 50%);
  pointer-events: none;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.15rem;
}

.footer-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-meta a {
  color: var(--ink);
}

.footer-line {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

/* 404 */

.notfound {
  min-height: calc(100vh - var(--header-h) - 8rem);
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.notfound h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

/* Grain — very light paper tooth */

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.015;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
  }
}

.footer-sub {
  margin-top: 0.75rem;
}

.channel-note {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.pledge .lede {
  max-width: 40rem;
}
.pledge p {
  max-width: 40rem;
}

.impact-list {
  max-width: 40rem;
  margin: 1.25rem 0 0;
}

/* Photos */
.shot {
  margin: 1.75rem 0 0;
  min-width: 0;
}

.shot::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--saffron) 50%, var(--green) 50%);
  border-radius: 4px 4px 0 0;
}

.shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0 0 4px 4px;
  background: var(--paper-3);
}

.shot figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 0.6rem 0 0;
}

.shot-hero {
  margin-top: 2rem;
}

.split .shot {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

#gathering .shot {
  margin-top: 0;
  margin-bottom: 0;
}

/* Mobile polish */
@media (max-width: 720px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(2.05rem, 9.5vw, 3.4rem);
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .form-actions .btn-primary {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    min-height: 44px;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px;
    padding: 0.8rem 0.85rem;
  }

  .application-ref {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-meta {
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .thanks p:has(.btn) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-social a {
  text-decoration: none;
  color: var(--ink);
}
.footer-social a:hover {
  color: var(--green);
}
.footer-social span {
  font-weight: 500;
  color: var(--ink-soft);
}

.ms-form-wrap {
  margin: 0.5rem 0 1rem;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}
.ms-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 72rem;
  height: 72rem;
  border: 0;
}
