/* Griffon Agrotech website
   Paper, ink and the two brand colours. Orange is kept for the mark and the main action;
   pink and yellow appear only on sample documents (duplicate-book paper). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalam';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/kalam-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Kalam';
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/kalam-700.woff2) format('woff2');
}

:root {
  --paper: #f6f7f2;
  --paper-2: #eceee5;
  --white: #ffffff;
  --ink: #16241b;
  --ink-2: #47574d;
  --line: #d3d9cf;
  --line-strong: #b4bdb1;
  --orange: #e8771c;
  --orange-deep: #b95608;
  --leaf: #2e7a35;
  --deep: #183323;
  --pen: #24408e;
  --grid: #d7e2dc;
  --margin-red: #e4a3a0;
  --pink: #f5dad6;
  --yellow: #f4e9b8;
  --error: #b3261e;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.8vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  font-weight: 790;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.code {
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 820px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-stretch: 105%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #f08a33;
  border-color: #f08a33;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.btn-quiet {
  background: transparent;
  border-color: var(--ink);
}
.btn-quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: var(--paper);
  border-color: var(--paper);
}
.btn-light:hover {
  background: var(--white);
  border-color: var(--white);
}
.btn-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.95rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}
.brand img {
  width: 160px;
  height: auto;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
}
.nav a:hover,
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
}
.menu {
  display: none;
  margin-left: auto;
  position: relative;
}
.menu summary {
  list-style: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}
.menu[open] summary span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.menu[open] summary span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(300px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 16px 36px -16px rgba(22, 36, 27, 0.4);
}
.menu-panel a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.menu-panel a:hover {
  background: var(--paper-2);
}
@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }
  .menu {
    display: block;
  }
  .header-row {
    min-height: 68px;
  }
  .brand img {
    width: 136px;
  }
}

/* Hero */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 var(--section);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 40px;
  align-items: start;
}
.hero-title {
  grid-column: 1 / span 6;
  grid-row: 1;
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.1rem);
}
.hero-copy {
  grid-column: 1 / span 6;
  grid-row: 2;
}
.lede {
  margin-top: 28px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-copy .lede {
  margin-top: 4px;
}
.hero .actions {
  margin-top: 36px;
}
.in-use {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 34em;
}
.in-use a {
  color: var(--ink);
}

.sketch-to-screen {
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
  margin: 0;
}
.paper {
  position: relative;
  aspect-ratio: 520 / 500;
  background-color: #fbfcf8;
  background-image: linear-gradient(90deg, transparent 38px, var(--margin-red) 38px, var(--margin-red) 40px, transparent 40px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  background-position: 0 0, 0 -1px, -1px 0;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.sketch {
  position: absolute;
  inset: 4% 2% auto 9%;
  width: 89%;
  height: auto;
  overflow: visible;
}
.sketch .ink path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch .ink .ring {
  stroke: var(--orange-deep);
  stroke-width: 2;
}
.sketch .ink .dash {
  stroke-dasharray: 0.02 0.025;
}
.sketch text {
  font-family: var(--hand);
  font-size: 21px;
  fill: var(--pen);
}
.sketch text.small {
  font-size: 19px;
}
.sketch text.strong {
  font-weight: 700;
}

.screen {
  position: absolute;
  right: -18px;
  bottom: -44px;
  width: 58%;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 48px -24px rgba(22, 36, 27, 0.45), 0 2px 6px rgba(22, 36, 27, 0.06);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow: hidden;
}
.screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 16px;
  background: var(--deep);
  color: var(--paper);
  font-weight: 700;
  font-stretch: 108%;
}
.screen-app {
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.78rem;
  color: #bcd2c2;
}
.screen-rows {
  margin: 0;
  padding: 8px 16px 4px;
}
.screen-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #eef0ea;
}
.screen-rows dt {
  color: var(--ink-2);
}
.screen-rows dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.screen-rows .net {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
  padding-top: 8px;
}
.screen-rows .net dt {
  color: var(--ink);
  font-weight: 700;
}
.screen-rows .net dd {
  font-size: 1.15rem;
  font-weight: 800;
}
.screen-foot {
  margin: 4px 0 0;
  padding: 10px 16px 12px;
  background: #eef6ef;
  color: #1f5a25;
  font-size: 0.8rem;
}
.sketch-to-screen figcaption {
  margin-top: 64px;
  font-size: var(--step--1);
  color: var(--ink-2);
  max-width: 40em;
}

/* The one orchestrated moment: the sketch draws itself, then the screen arrives. */
@media (prefers-reduced-motion: no-preference) {
  .sketch .ink path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.55s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  }
  .sketch .ink .dash {
    stroke-dasharray: 0.02 0.025;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: appear 0.4s ease forwards;
  }
  .sketch text {
    opacity: 0;
    animation: appear 0.35s ease forwards;
  }
  .sketch .ink > :nth-child(1) { animation-delay: 0.15s; }
  .sketch .ink > :nth-child(2) { animation-delay: 0.45s; }
  .sketch .ink > :nth-child(3) { animation-delay: 0.6s; }
  .sketch .ink > :nth-child(4) { animation-delay: 0.8s; }
  .sketch .ink > :nth-child(5) { animation-delay: 1.1s; }
  .sketch .ink > :nth-child(6) { animation-delay: 1.3s; }
  .sketch .ink > :nth-child(7) { animation-delay: 1.45s; }
  .sketch .ink > :nth-child(8) { animation-delay: 1.6s; }
  .sketch .ink > :nth-child(9) { animation-delay: 1.75s; }
  .sketch .ink > :nth-child(10) { animation-delay: 2s; }
  .sketch .ink > :nth-child(11) { animation-delay: 2.15s; }
  .sketch .ink > :nth-child(12) { animation-delay: 2.45s; }
  .sketch .ink > :nth-child(13) { animation-delay: 2.6s; }
  .sketch .ink > :nth-child(14) { animation-delay: 2.75s; }
  .sketch .ink > :nth-child(15) { animation-delay: 3s; }
  .screen {
    opacity: 0;
    transform: translateY(22px);
    animation: arrive 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 3.15s forwards;
  }
  .screen-rows .net dd {
    animation: settle 0.9s ease 3.7s both;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes appear {
  to {
    opacity: 1;
  }
}
@keyframes arrive {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes settle {
  from {
    background: #fde3cb;
  }
  to {
    background: transparent;
  }
}

@media (max-width: 1320px) {
  .screen {
    right: 0;
  }
}
@media (max-width: 1020px) {
  .hero-title,
  .hero-copy,
  .sketch-to-screen {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .sketch-to-screen {
    max-width: 640px;
  }
}
@media (max-width: 560px) {
  .paper {
    aspect-ratio: auto;
    padding: 16px 12px 0 30px;
    background-size: 100% 100%, 18px 18px, 18px 18px;
    background-image: linear-gradient(90deg, transparent 18px, var(--margin-red) 18px, var(--margin-red) 20px, transparent 20px),
      linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  }
  .sketch {
    position: static;
    width: 100%;
  }
  .screen {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    min-width: 0;
    margin: -8px -4px -36px 0;
  }
  .sketch-to-screen figcaption {
    margin-top: 52px;
  }
}

/* Section heads */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
  grid-column: 1 / span 6;
}
.section-head p {
  grid-column: 7 / -1;
  color: var(--ink-2);
  max-width: 36em;
  padding-top: 6px;
}
@media (max-width: 860px) {
  .section-head h2,
  .section-head p {
    grid-column: 1 / -1;
  }
}

/* Trail: the value chain as a line with stations */

.trail {
  padding: var(--section) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  counter-reset: stage;
}
.stages > li {
  position: relative;
  padding-top: 40px;
  counter-increment: stage;
}
.stages > li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  right: -24px;
  height: 2px;
  background: var(--ink);
}
.stages > li:last-child::before {
  right: 0;
}
.stages > li::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--ink);
}
.stages > li:first-child::after {
  background: var(--leaf);
  border-color: var(--leaf);
}
.stages > li:last-child::after {
  background: var(--orange);
  border-color: var(--orange);
}
.stages h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.stages ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.stages ul li + li {
  margin-top: 8px;
}
@media (max-width: 1020px) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .stages > li:nth-child(3n)::before {
    right: 0;
  }
}
@media (max-width: 600px) {
  .stages {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stages > li {
    padding: 0 0 28px 36px;
  }
  .stages > li::before,
  .stages > li:nth-child(3n)::before {
    top: 4px;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .stages > li:last-child::before {
    display: none;
  }
  .stages > li::after {
    top: 4px;
  }
  .stages h3 {
    margin-bottom: 6px;
  }
}

/* Walkthrough video */

.walkthrough {
  padding: var(--section) 0 0;
}
.walk-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 28px;
  align-items: start;
}
.walk-text {
  grid-column: 1 / span 4;
}
.walk-text p {
  margin-top: 18px;
  color: var(--ink-2);
  max-width: 30em;
}
.walk-video {
  grid-column: 5 / -1;
}
.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--line-strong);
}
.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 20px 10px 16px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-stretch: 105%;
  box-shadow: 0 10px 24px -10px rgba(22, 36, 27, 0.55);
  transition: background-color 0.15s;
}
.video:hover .play {
  background: #f08a33;
}
.walk-note {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
@media (max-width: 960px) {
  .walk-text,
  .walk-video {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .play {
    left: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 8px 14px 8px 12px;
    font-size: 0.95rem;
  }
}

/* Audiences */

.audiences {
  padding: var(--section) 0 0;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 32px;
}
.aud-grid h2 {
  grid-column: 1 / span 4;
}
.aud-list {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}
.aud {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  scroll-margin-top: 32px;
}
.aud h3 {
  margin-bottom: 10px;
}
.aud p {
  color: var(--ink-2);
  font-size: 0.98rem;
}
.aud:target {
  border-top-color: var(--orange);
}
@media (max-width: 860px) {
  .aud-grid h2,
  .aud-list {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .aud-list {
    grid-template-columns: 1fr;
  }
}

/* Work */

.work {
  padding: var(--section) 0;
}
.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 32px;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 16px;
}
.case:last-child {
  padding-bottom: 0;
}
.case-text {
  grid-column: 1 / span 7;
}
.case-text h3 {
  font-size: var(--step-3);
  font-weight: 780;
  font-stretch: 118%;
}
.case-kind {
  margin-top: 10px;
  font-weight: 600;
  color: var(--leaf);
  max-width: 36em;
}
.case-text > p:not(.case-kind) {
  margin-top: 20px;
  max-width: 38em;
}
.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  font-size: 0.95rem;
  max-width: 44em;
}
.facts li {
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--orange);
}
.case-doc {
  grid-column: 9 / -1;
  align-self: center;
}
@media (max-width: 960px) {
  .case-text,
  .case-doc {
    grid-column: 1 / -1;
  }
  .case-doc {
    max-width: 420px;
  }
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* Sample documents */

.doc {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid rgba(22, 36, 27, 0.14);
  border-radius: 3px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.doc-white {
  background: var(--white);
}
.doc-yellow {
  background: var(--yellow);
}
.doc-pink {
  background: var(--pink);
  border-top: 2px dashed rgba(22, 36, 27, 0.25);
}
.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
  font-weight: 750;
  font-stretch: 108%;
}
.doc-rows {
  margin: 0;
}
.doc-rows div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(22, 36, 27, 0.3);
}
.doc-rows dt {
  color: var(--ink-2);
}
.doc-rows dd {
  margin: 0;
  font-weight: 600;
}
.stamp {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border: 2px solid var(--leaf);
  outline: 1px solid var(--leaf);
  outline-offset: 2px;
  border-radius: 3px;
  color: var(--leaf);
  font-weight: 800;
  font-size: 0.85rem;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
}
.doc-table th,
.doc-table td {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(22, 36, 27, 0.35);
  text-align: right;
}
.doc-table th:first-child {
  text-align: left;
  font-weight: 600;
}
.doc-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(22, 36, 27, 0.35);
}
.doc-table td + td,
.doc-table th + th {
  padding-left: 12px;
}
.doc-table .short {
  color: var(--error);
  font-weight: 700;
}
.doc-status {
  margin-top: 14px;
  font-weight: 700;
}
.doc-label {
  container-type: inline-size;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 16px 18px 18px;
}
.label-lot {
  font-size: 9.4cqi;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  line-height: 1;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.label-rows {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.label-rows .full {
  grid-column: 1 / -1;
}
.label-rows dt {
  font-size: 0.75rem;
  color: var(--ink-2);
}
.label-rows dd {
  margin: 0;
  font-weight: 700;
}
.doc-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* Krishi Vyapar */

.kv {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0;
}
.kv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 40px;
  align-items: end;
}
.kv-grid > div {
  grid-column: 1 / span 7;
}
.kv h2 {
  max-width: 16ch;
}
.kv p {
  margin-top: 20px;
  color: #d5e2d8;
  max-width: 36em;
}
.kv .actions {
  margin-top: 32px;
}
.kv-price {
  grid-column: 9 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.kv-price div {
  border-top: 2px solid var(--paper);
  padding-top: 12px;
}
.kv-price dt {
  color: #d5e2d8;
  font-size: 0.95rem;
}
.kv-price dd {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.1;
}
.kv-price p {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .kv-grid > div,
  .kv-price {
    grid-column: 1 / -1;
  }
}

/* Process */

.process {
  padding: var(--section) 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3.2rem;
  font-weight: 850;
  font-stretch: 125%;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 18px;
}
.steps h3 {
  margin-bottom: 10px;
}
.steps p {
  color: var(--ink-2);
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 8px;
  }
  .steps li::before {
    grid-row: span 2;
    font-size: 2.4rem;
    margin: 0;
  }
}

/* Contact and forms */

.contact {
  padding: var(--section) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 40px;
}
.contact-intro {
  grid-column: 1 / span 4;
}
.contact-intro p {
  margin-top: 18px;
  color: var(--ink-2);
}
.contact-form {
  grid-column: 6 / -1;
}
.direct {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.direct li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line-strong);
}
.direct span {
  color: var(--ink-2);
}
.direct a {
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .contact-intro,
  .contact-form {
    grid-column: 1 / -1;
  }
}

.enquiry {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 36px);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .fields {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.97rem;
  margin-bottom: 6px;
}
.optional {
  font-weight: 400;
  color: var(--ink-2);
}
.hint {
  margin: -2px 0 8px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-2);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(232, 119, 28, 0.45);
  outline-offset: 0;
  border-color: var(--orange-deep);
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--error);
}
.error {
  min-height: 1.6em;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--error);
  font-weight: 600;
}
.form-alert:empty {
  display: none;
}
.form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--error);
  background: #fbeceb;
  color: #7d1a14;
  font-weight: 600;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 12px;
}
.fineprint {
  font-size: 0.86rem;
  color: var(--ink-2);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-done {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--leaf);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 40px);
}
.form-done:focus {
  outline: none;
}
.form-done h3 {
  font-size: var(--step-2);
}
.form-done p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34em;
}

/* Inner pages */

.page-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head .lede {
  margin-top: 22px;
}
.page-head .actions {
  margin-top: 32px;
}
.terms {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
}
.terms div {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.terms dt {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.terms dd {
  margin: 4px 0 0;
  font-weight: 650;
}
@media (max-width: 700px) {
  .terms {
    grid-template-columns: 1fr;
  }
}
.prose-section {
  padding: clamp(40px, 6vw, 80px) 0 var(--section);
}
.prose > * {
  max-width: 680px;
}
.prose h2 {
  font-size: var(--step-2);
  margin: 48px 0 14px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: #2c3a31;
}
.prose ul {
  padding-left: 1.2em;
  margin: 14px 0 0;
}
.prose li + li {
  margin-top: 10px;
}
.prose li::marker {
  color: var(--orange);
}
.contact-plain {
  background: var(--paper-2);
}
.not-found {
  border-bottom: 0;
  min-height: 50vh;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 24em;
}
.site-footer h2 {
  font-size: 0.95rem;
  font-stretch: 100%;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 8px;
}
.site-footer a {
  color: var(--ink);
}
.footer-base {
  margin-top: 48px;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.footer-base p {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
