/* Maruti Agro Industries — shared styles (Swiss-minimal) */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --soft: #f5f5f5;
  --line: #e5e5e5;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --radius: 6px;
  --max: 1100px;
  --gutter: 24px;
  --section: 140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.6s var(--ease) both;
}

body.leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.full {
  grid-column: 1 / -1;
}

section {
  padding: var(--section) 0;
}

section.alt {
  background: var(--soft);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

h1,
h2,
h3,
h4 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 4vw, 44px);
}

h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Links & buttons ---------- */
.link {
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-accent {
  color: var(--accent);
}

.arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

a:hover .arrow,
button:hover .arrow {
  transform: translateX(4px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease;
}

/* dark fill sweeps in from the left on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover {
  border-color: var(--accent-dark);
}

.btn-text {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s ease;
}

header.site.scrolled {
  border-bottom-color: var(--line);
}

header.site.hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 1px;
  vertical-align: 1px;
  transition: transform 0.6s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(90deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-auth .btn {
  padding: 9px 18px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 11px;
}
.menu-toggle span:nth-child(2) {
  top: 16px;
}
.menu-toggle span:nth-child(3) {
  top: 21px;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 var(--section);
  overflow: hidden;
}

.hero > .container {
  position: relative;
}

.hero-home {
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  max-width: 900px;
  margin-bottom: 28px;
}

.hero-home h1,
.hero-home .lede {
  margin-left: auto;
  margin-right: auto;
}

.hero-page {
  padding: 140px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-page h1 {
  font-size: clamp(40px, 6vw, 64px);
  max-width: 820px;
}

.hero .lede {
  margin-bottom: 44px;
}

.hero-page .lede {
  margin-bottom: 0;
}

.hero-meta {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* faint 12-column grid lines drawing down behind the hero */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid .container {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.hero-grid span {
  border-left: 1px solid #f1f1f1;
  transform: scaleY(0);
  transform-origin: top;
  animation: col-draw 1.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 60ms);
}

.hero-grid span:last-child {
  border-right: 1px solid #f1f1f1;
}

@keyframes col-draw {
  to {
    transform: scaleY(1);
  }
}

/* headline words rise from behind a mask */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: word-up 1s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 55ms);
}

@keyframes word-up {
  to {
    transform: none;
  }
}

.hero .eyebrow,
.hero .lede,
.hero .hero-actions,
.hero .hero-meta {
  animation: fade-up 0.9s var(--ease) both;
}

.hero .eyebrow {
  animation-delay: 0.05s;
}
.hero .lede {
  animation-delay: 0.55s;
}
.hero .hero-actions,
.hero .hero-meta {
  animation-delay: 0.7s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------- Section heads ---------- */
.section-head {
  grid-column: 1 / -1;
  margin-bottom: 72px;
}

.section-head h2 {
  max-width: 640px;
}

.section-head .lede {
  margin-top: 20px;
}

/* ---------- Hairline rules that draw in ---------- */
.rule {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

.rule.dark {
  background: var(--text);
}

.rule.in {
  transform: scaleX(1);
}

/* ---------- Service grid ---------- */
.cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  position: relative;
  padding: 40px 32px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.4s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.card:hover::before {
  transform: scaleX(1);
}

.card .num {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.card:hover .num {
  color: var(--accent);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 16px;
  color: var(--muted);
}

.card ul {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.card li::before {
  content: "—";
  color: var(--muted);
  margin-right: 10px;
}

.card .card-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
}

.cards-foot {
  grid-column: 1 / -1;
  margin-top: 40px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Two-column text ---------- */
.col-title {
  grid-column: 1 / span 5;
}

.col-body {
  grid-column: 7 / span 6;
}

.col-body p {
  color: var(--muted);
}

.col-body p + p {
  margin-top: 20px;
}

.col-body > .link {
  margin-top: 32px;
}

/* ---------- Stats ---------- */
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 96px;
}

.stats .rule {
  grid-column: 1 / -1;
}

.stats.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat {
  padding-top: 32px;
  padding-right: 24px;
}

.stat strong {
  display: block;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stats.six .stat strong {
  font-size: clamp(32px, 3.4vw, 40px);
}

.stat span {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Ruled list (values, principles, steps) ---------- */
.ruled {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--gutter);
}

.ruled.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ruled-item .rule {
  margin-bottom: 28px;
}

.ruled-item .idx {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.ruled-item h3 {
  margin-bottom: 10px;
}

.ruled-item p {
  font-size: 16px;
  color: var(--muted);
}

/* process: an accent line runs across the steps */
.process {
  position: relative;
}

.process-track {
  grid-column: 1 / -1;
  position: relative;
  height: 1px;
  background: var(--line);
  margin-bottom: 40px;
}

.process-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--ease) 0.2s;
}

.process-track.in::after {
  transform: scaleX(1);
}

.process .ruled-item .idx {
  font-size: 40px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---------- People ---------- */
.person .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.person:hover .initials {
  border-color: var(--accent);
  color: var(--accent);
}

.person .role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Tag list (industries) ---------- */
.tags {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.tags li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 300;
  transition: color 0.3s ease, padding 0.5s var(--ease);
}

.tags li small {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tags li:hover {
  color: var(--accent);
  padding-left: 8px;
}

/* ---------- Testimonials ---------- */
.quotes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.quote .rule {
  margin-bottom: 28px;
}

.quote {
  display: flex;
  flex-direction: column;
}

.quote blockquote {
  font-size: 18px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 32px;
}

.quote cite {
  font-style: normal;
  font-size: 15px;
}

.quote cite span {
  display: block;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
}

.cta h2 {
  max-width: 720px;
  margin: 0 auto 20px;
}

.cta .lede {
  margin: 0 auto 40px;
}

/* ---------- Contact ---------- */
.contact-intro {
  grid-column: 1 / span 5;
}

.contact-intro > p {
  margin-top: 24px;
  color: var(--muted);
}

.details {
  margin-top: 48px;
  display: grid;
  gap: 28px;
  font-size: 16px;
}

.details dt,
.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.details dd small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.contact-form {
  grid-column: 7 / span 6;
  display: grid;
  gap: 24px;
  align-content: start;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
}

/* hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.hours td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hours td:last-child {
  text-align: right;
  color: var(--muted);
}

.map {
  grid-column: 1 / -1;
  margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  filter: grayscale(1);
  transition: filter 0.8s ease;
}

.map:hover {
  filter: none;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ ---------- */
.faq {
  grid-column: 3 / span 8;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: 19px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq .plus {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq .plus::before,
.faq .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.faq .plus::after {
  transform: rotate(90deg);
}

.faq details[open] .plus::after {
  transform: rotate(0deg);
}

.faq .answer {
  overflow: hidden;
  transition: height 0.5s var(--ease);
}

.faq .answer p {
  padding-bottom: 28px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Legal ---------- */
.legal {
  padding-top: 96px;
}

.toc {
  grid-column: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 104px;
  font-size: 14px;
}

.toc ol {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 18px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.toc a:hover {
  color: var(--text);
}

.toc a.current {
  color: var(--text);
}

.toc a.current::before {
  transform: scaleY(1);
}

.prose {
  grid-column: 5 / span 8;
}

.prose section {
  padding: 0 0 72px;
}

.prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 24px;
}

.prose h2 .n {
  color: var(--muted);
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}

.prose p,
.prose li {
  color: #333;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + .note,
.prose ul + .note,
.prose .note + p,
.prose .table-wrap + p {
  margin-top: 18px;
}

.prose ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--text);
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

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

.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  font-size: 16px;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--text);
}

/* ---------- Footer ---------- */
footer.site {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.foot-brand {
  grid-column: 1 / span 4;
}

.foot-brand p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 280px;
}

.foot-col {
  grid-column: span 2;
}

.foot-col.wide {
  grid-column: span 4;
}

.foot-col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.foot-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.foot-col address {
  font-style: normal;
}

.foot-bottom {
  grid-column: 1 / -1;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.foot-bottom nav {
  display: flex;
  gap: 24px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.to-top .arrow {
  transform: rotate(-90deg);
}

.to-top:hover .arrow {
  transform: rotate(-90deg) translateX(4px);
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  transform: translateY(16px);
  transition: transform 0.5s var(--ease);
}

.modal.show .modal-box {
  transform: none;
}

.modal-box h3 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-box .sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.modal-box form {
  display: grid;
  gap: 18px;
}

.modal-box .btn {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-switch {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.form-error {
  display: none;
  font-size: 14px;
  color: #b91c1c;
}

.consent {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  :root {
    --section: 120px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.45s var(--ease),
      visibility 0s linear 0.45s;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s ease, transform 0.45s var(--ease);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav-links a.active::after {
    left: auto;
    right: 0;
    bottom: 50%;
    margin: 0 0 -2px;
  }

  .nav-auth {
    margin-top: 24px;
  }

  .cards,
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-title,
  .col-body,
  .contact-intro,
  .contact-form,
  .faq {
    grid-column: 1 / -1;
  }

  .col-body,
  .contact-form {
    margin-top: 40px;
  }

  .stats,
  .stats.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .stats:not(.six) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ruled,
  .ruled.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track {
    display: none;
  }

  .tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .toc {
    display: none;
  }

  .prose {
    grid-column: 1 / -1;
  }

  .foot-brand {
    grid-column: 1 / -1;
    margin-bottom: 48px;
  }

  .foot-col,
  .foot-col.wide {
    grid-column: span 4;
  }

  .hero-grid .container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero-grid span:nth-child(n + 7) {
    display: none;
  }

  .hero-grid span:nth-child(6) {
    border-right: 1px solid #f1f1f1;
  }
}

@media (min-width: 961px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section: 96px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-page {
    padding: 104px 0 72px;
  }

  .hero-home {
    text-align: left;
  }

  .hero-home .lede {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 24px;
  }

  .hero-grid .container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid span:nth-child(n + 5) {
    display: none;
  }

  .hero-grid span:nth-child(4) {
    border-right: 1px solid #f1f1f1;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .cards,
  .cards.two,
  .cards.four,
  .ruled,
  .ruled.three,
  .tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 32px 24px 36px;
  }

  .card .num {
    margin-bottom: 28px;
  }

  .stats,
  .stats.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 64px;
    row-gap: 8px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .map {
    margin-top: 64px;
    height: 300px;
  }

  .legal {
    padding-top: 64px;
  }

  .foot-col,
  .foot-col.wide {
    grid-column: 1 / -1;
    margin-bottom: 36px;
  }

  .foot-bottom {
    margin-top: 24px;
  }

  .modal-box {
    padding: 32px 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .rule {
    transform: none;
  }
}
