/* Time2Graze Colombia: "field atlas" style. Indigo false color, serif headlines, mono map
   labels, alternating dark bands, contour and pixel textures, and calm motion. */

:root {
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --paper: #f6f2ea;
  --white: #ffffff;
  --mist: #e4efea;
  --lavender: #9fd0c4;
  --violet: #5fa59a;
  --indigo: #d9541e;
  --ink: #0f2f2d;
  --night: #0b2625;
  --night_2: #123d3a;
  --muted: #4c605c;
  --dim: #81918d;
  --line: #e3ddd0;
  --line_dark: rgba(159, 208, 196, 0.16);
  --amber: #f2884b;
  --yellow: #f2884b;

  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.visually_hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.serif { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; }
.mono { font-family: var(--mono); }
.muted { color: var(--dim); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.text_link { color: var(--indigo); border-bottom: 1px solid currentColor; }

.label {
  margin: 0 0 18px;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.label.spaced { margin-top: 56px; }

.display {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.display em, .section_title em { font-style: normal; color: var(--yellow); }
.display.small { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

.section_title {
  margin: 0 0 44px;
  max-width: 780px;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
}

.hero_lead {
  max-width: 520px;
  margin: 24px 0 32px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(238, 237, 254, 0.78);
}

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

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font: 500 0.92rem var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn.small { height: 36px; padding: 0 14px; font-size: 0.84rem; }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: var(--indigo); }
.btn.light { background: var(--yellow); color: var(--ink); }
.btn.light:hover { background: #f69c66; }
.btn.line_light { border-color: rgba(238, 237, 254, 0.35); color: var(--mist); }
.btn.line_light:hover { border-color: var(--mist); }
.btn.line { border-color: var(--line_dark); color: var(--mist); background: transparent; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- header */

.site_header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 254, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header_inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.brand_country { font-weight: 500; color: var(--indigo); }

.site_nav { display: flex; gap: 26px; }
.site_nav a { font-size: 0.85rem; color: var(--muted); transition: color 0.15s; }
.site_nav a:hover, .site_nav a.active { color: var(--ink); }
.nav_num { font: 0.68rem var(--mono); color: var(--violet); }

.header_actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang_select select {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 10px;
  font: 500 0.72rem var(--mono);
  cursor: pointer;
}

.nav_toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav_toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform 0.2s; }
.nav_toggle span:first-child { top: 13px; }
.nav_toggle span:last-child { top: 20px; }
.nav_toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav_toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- bands and textures */

.band { position: relative; overflow: hidden; }
.band.dark { background: var(--night); color: var(--mist); }
.band.dark .label { color: var(--violet); }

.pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  image-rendering: pixelated;
  pointer-events: none;
}

.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contours g {
  fill: none;
  stroke: rgba(159, 208, 196, 0.12);
  stroke-width: 1;
  animation: drift 40s ease-in-out infinite alternate;
}

@keyframes drift { from { transform: translateY(-12px); } to { transform: translateY(12px); } }

/* ---------------------------------------------------------------- hero */

.hero { min-height: calc(100vh - 60px); display: flex; align-items: center; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 18%, rgba(11, 38, 37, 0.55) 55%, rgba(11, 38, 37, 0.2));
  pointer-events: none;
}

.hero_inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

/* interactive paddock map */
.paddock_map {
  position: relative;
  margin: 0;
  padding: 14px;
  background: rgba(18, 61, 58, 0.8);
  border: 1px solid var(--line_dark);
  backdrop-filter: blur(6px);
}

.map_caption { margin: 0 0 10px; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }

.paddock_map svg { display: block; width: 100%; height: auto; background: #0e302e; }
.grid10 path { fill: none; stroke: rgba(159, 208, 196, 0.12); stroke-width: 0.5; }

.paddock {
  stroke: var(--night);
  stroke-width: 1.5;
  cursor: pointer;
  transition: opacity 0.2s, stroke 0.2s;
}

.paddock[data-paddock="P1"] { fill: #2c7a70; }
.paddock[data-paddock="P2"] { fill: #17504b; }
.paddock[data-paddock="P3"] { fill: #5fa59a; }
.paddock[data-paddock="P4"] { fill: #9fd0c4; }
.paddock:hover, .paddock.active { stroke: var(--mist); stroke-width: 2.5; }
.paddock.ready { stroke: var(--amber); stroke-width: 3; animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }

.paddock_labels text { font: 10px var(--mono); fill: var(--night); pointer-events: none; }
.paddock_labels text.dm { font-size: 9px; }
.north path, .north text, .scalebar rect, .scalebar text { fill: var(--mist); }
.north text, .scalebar text { font: 9px var(--mono); }
.scalebar rect.hollow { fill: transparent; stroke: var(--mist); stroke-width: 0.6; }

.advice_card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: min(260px, 70%);
  padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.advice_tag { margin: 0 0 6px; font-size: 0.68rem; letter-spacing: 0.1em; color: #b5441a; }
.advice_tag.calm { color: var(--indigo); }
.advice_text { margin: 0; font-size: 0.88rem; line-height: 1.45; }

/* ---------------------------------------------------------------- scroll story */

.story { position: relative; height: 420vh; background: var(--paper); }

.story_sticky {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  gap: 40px;
}

.story_map {
  height: min(78vh, 640px);
  border: 1px solid var(--line);
  background: var(--mist);
  overflow: hidden;
}

.story_map svg { width: 100%; height: 100%; display: block; }
.sea { fill: var(--mist); }
.country { fill: var(--lavender); stroke: var(--indigo); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.region { fill: var(--violet); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.6s; }
.farm { fill: var(--indigo); stroke: var(--white); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.6s; }
.farm_paddocks path { fill: #5fa59a; stroke: var(--night); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.6s; }
.farm_paddocks path:nth-child(1) { fill: #2c7a70; }
.farm_paddocks path:nth-child(2) { fill: #17504b; }
.farm_paddocks path:nth-child(3) { fill: #5fa59a; }
.farm_paddocks path.ready { fill: var(--lavender); stroke: var(--amber); stroke-width: 2.5; }
.map_label { font: 500 22px var(--mono); letter-spacing: 0.2em; fill: var(--indigo); transition: opacity 0.4s; }
.region_label { font-size: 9px; fill: var(--white); opacity: 0; }
.map_note { font: 12px var(--mono); fill: var(--dim); letter-spacing: 0.12em; }

.story[data-step="1"] .region,
.story[data-step="1"] .region_label { opacity: 1; }
.story[data-step="2"] .region,
.story[data-step="3"] .region { opacity: 0.35; }
.story[data-step="2"] .farm { opacity: 1; }
.story[data-step="3"] .farm_paddocks path { opacity: 1; }
.story[data-step="3"] .farm { opacity: 0; }
.story:not([data-step="0"]) .map_label:not(.region_label) { opacity: 0; }

.story_steps { list-style: none; margin: 0; padding: 0; position: relative; height: 60vh; }

.story_step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

.story_step.active { opacity: 1; transform: none; pointer-events: auto; }
.story_step h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
.story_step > p:last-of-type { margin: 0; color: var(--muted); font-size: 1.04rem; max-width: 440px; }

.chat_snippet { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; max-width: 400px; }

.bubble { margin: 0; padding: 10px 14px; font-size: 0.9rem; line-height: 1.45; max-width: 88%; }
.bubble.out { align-self: flex-end; background: var(--indigo); color: var(--white); border-radius: 14px 14px 3px 14px; }
.bubble.in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; }

.story_progress { position: absolute; right: 24px; top: 50%; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
.story_progress span { width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); transition: background 0.3s, transform 0.3s; }
.story_progress span.on { background: var(--indigo); transform: scale(1.4); }

/* ---------------------------------------------------------------- numbers band */

.numbers_inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.numbers_inner > div { border-top: 1px solid var(--line_dark); padding-top: 22px; }
.big { margin: 0; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; color: var(--white); }
.big em { font-style: normal; font-size: 0.4em; color: var(--yellow); }
.numbers_inner .mono { margin: 14px 0 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }

/* ---------------------------------------------------------------- sheets (light sections) */

.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px;
}

.ruler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.tick { position: relative; padding: 26px 24px 0 0; }
.tick::before { content: ""; position: absolute; left: 0; top: -9px; width: 2px; height: 16px; background: var(--ink); }
.tick p { margin: 0 0 8px; color: var(--muted); }
.tick p.serif { font-size: 1.7rem; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.tick p.mono { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--indigo); }

/* collage */
.collage_sheet { padding-top: 40px; }

.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 220px 220px 120px;
}

.photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(242, 136, 75, 0.08) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #17504b, #0b2625);
  color: var(--lavender);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A real photo replaces the placeholder and gets a pine duotone so all photos match */
.photo.has_image { background-size: cover; background-position: center; }
.photo.has_image::after { content: ""; position: absolute; inset: 0; background: #17504b; mix-blend-mode: color; opacity: 0.85; }
.photo.has_image span { display: none; }

.logo img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: opacity 0.15s, filter 0.15s; }
.logo img:hover { filter: none; opacity: 1; }
.logo { padding: 6px 12px; }
/* These two files carry wide empty margins; crop them so the mark matches the others. */
.crop_alliance img { width: 156px; height: 56px; max-width: none; object-fit: cover; }
.crop_lapig img { width: 150px; height: 56px; max-width: none; object-fit: cover; }
/* Pale marks that wash out in gray: larger and darker until hover. */
.tone_dark img { height: 50px; filter: grayscale(1) brightness(0.55) contrast(1.4); }
.tone_dark img:hover { filter: none; }

.big_photo { grid-column: 1 / 9; grid-row: 1 / 3; }
.small_photo { grid-column: 7 / 11; grid-row: 2 / 4; border: 6px solid var(--paper); background: linear-gradient(160deg, #f2884b, #b5441a); color: var(--white); }

.region_cards {
  grid-column: 9 / 13;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

.region_cards article { border-top: 1px solid var(--ink); padding-top: 12px; }
.region_cards h3 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.05; }
.region_cards p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.region_cards .label { margin-bottom: 8px; }

/* work band */
.work_inner { max-width: var(--max); margin: 0 auto; padding: 120px 24px; }
.light_title { color: var(--white); }
.work_list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line_dark); }

.work_list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line_dark);
  transition: background 0.2s;
}

.work_list li:hover { background: rgba(206, 203, 246, 0.04); }
.work_list span { color: var(--violet); font-size: 0.8rem; padding-top: 6px; }
.work_list p { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--mist); }

/* cta and partners */
.cta_sheet { text-align: center; }
.cta_sheet .hero_lead { margin-left: auto; margin-right: auto; }

.partners { max-width: var(--max); margin: 0 auto; padding: 0 24px 100px; text-align: center; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }

.logo_ph {
  padding: 18px 26px;
  border: 1px dashed var(--lavender);
  font: 0.72rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------------------------------------------------------------- inner pages */

.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); margin: 8px 0 16px; }

.segmented button {
  font: 500 0.84rem var(--sans);
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}

.segmented button:last-child { border-right: 0; }
.segmented button[aria-selected="true"] { background: var(--ink); color: var(--white); }

.map_frame { position: relative; height: 72vh; min-height: 440px; border: 1px solid var(--line); background: var(--mist); }
.map_frame iframe { width: 100%; height: 100%; border: 0; }
.map_placeholder { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 0.8rem; color: var(--dim); }

.feature_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.feature_row h3 { margin: 0 0 6px; font-size: 1.8rem; }
.feature_row p { margin: 0; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }

.tag {
  flex: none;
  font: 500 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--lavender);
  color: var(--indigo);
}

.two_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.two_cols p:not(.label) { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- assistant */

.assistant_band { min-height: calc(100vh - 60px); }

.assistant_inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 56px;
  align-items: center;
}

.assistant_inner .text_link { color: var(--lavender); }

.capabilities { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line_dark); }
.capabilities li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line_dark); }
.capabilities strong { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }
.capabilities span { color: rgba(228, 239, 234, 0.82); }

.check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--indigo); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- WhatsApp style phone */

.wa_phone {
  --wa_header: #123d3a;
  --wa_wall: #ece5d8;
  --wa_out: #dcefe4;
  --wa_in: #ffffff;
  --wa_meta: #7b8a86;
  --wa_tick: #2c7a70;

  position: relative;
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 140px));
  min-height: 560px;
  border-radius: 36px;
  border: 10px solid #071a19;
  background: var(--wa_wall);
  color: #111b21;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

/* live agent or simulated examples, a segmented switch under the chat header */
.wa_modes {
  display: flex;
  gap: 4px;
  padding: 6px 10px 8px;
  background: var(--wa_header);
}
.wa_modes[hidden] { display: none; }
.wa_modes button {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.wa_modes button:hover:not(:disabled):not([aria-checked="true"]) { background: rgba(255, 255, 255, 0.1); }
.wa_modes button[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); color: #123d3a; }
.wa_modes button:disabled { opacity: 0.5; cursor: not-allowed; }
.wa_modes button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.wa_phone.dragging { outline: 3px dashed var(--yellow); outline-offset: -14px; }

.wa_header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: var(--wa_header);
  color: #ffffff;
}

.wa_avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font: 700 0.66rem var(--sans);
  flex: none;
}

.wa_title { display: flex; flex-direction: column; margin-right: auto; line-height: 1.25; }
.wa_title strong { font-weight: 600; font-size: 1rem; }
.wa_title small { font-size: 0.74rem; color: #b9d6cf; }

.wa_mode {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(242, 136, 75, 0.2);
  color: var(--yellow);
}

.wa_icon_button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
}

.wa_icon_button:hover:not(:disabled) { background: rgba(0, 0, 0, 0.08); }
.wa_header .wa_icon_button:hover { background: rgba(255, 255, 255, 0.1); }
.wa_icon_button svg { width: 22px; height: 22px; }
.wa_back { display: none; margin-right: -6px; }

/* Phones: the assistant page is the chat itself, full screen like the WhatsApp app.
   The site header, footer, page text and background texture are hidden; the back arrow
   in the chat header returns to the site. */
@media (max-width: 640px) {
  body.page_assistant .site_header,
  body.page_assistant .site_footer,
  body.page_assistant .assistant_text,
  body.page_assistant .assistant_band .pixels { display: none; }
  body.page_assistant { overflow: hidden; }
  body.page_assistant .assistant_band { min-height: 0; background: none; }
  body.page_assistant .assistant_inner { display: block; padding: 0; }

  body.page_assistant .wa_phone {
    position: fixed;
    inset: 0;
    z-index: 50;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.page_assistant .wa_header { padding-top: max(10px, env(safe-area-inset-top)); }
  body.page_assistant .wa_composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  body.page_assistant .wa_back { display: grid; }
  body.page_assistant .wa_mode { font-size: 0.58rem; padding: 2px 6px; }
  body.page_assistant .wa_msg { max-width: 86%; }
  /* 16px keeps iOS from zooming into the text box */
  body.page_assistant .wa_composer textarea { font-size: 16px; }
}
.wa_icon_button:disabled { opacity: 0.4; cursor: not-allowed; }

/* chat wallpaper with a faint dotted pattern, like WhatsApp's doodles */
.wa_body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  background:
    radial-gradient(circle at 12px 12px, rgba(18, 61, 58, 0.06) 2px, transparent 2.5px) 0 0 / 28px 28px,
    var(--wa_wall);
}

.wa_day {
  align-self: center;
  margin: 4px 0 6px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.72rem;
  color: var(--wa_meta);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.wa_notice {
  align-self: center;
  max-width: 92%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf0d9;
  color: #5b4a1f;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.wa_notice p { margin: 0 0 8px; }
.wa_notice.accepted p { display: none; }
.wa_notice.accepted { padding: 6px 12px; }

.wa_msg {
  position: relative;
  max-width: 82%;
  padding: 6px 8px 6px 9px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wa_msg.out { align-self: flex-end; background: var(--wa_out); border-top-right-radius: 0; }
.wa_msg.in { align-self: flex-start; background: var(--wa_in); border-top-left-radius: 0; }

/* bubble tails */
.wa_msg.out::before,
.wa_msg.in::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.wa_msg.out::before { right: -7px; border-width: 0 0 9px 8px; border-color: transparent transparent transparent var(--wa_out); }
.wa_msg.in::before { left: -7px; border-width: 0 8px 9px 0; border-color: transparent var(--wa_in) transparent transparent; }

.wa_msg.error { background: #fdecea; color: #7a1f1f; }
.wa_msg.error::before { border-right-color: #fdecea; }

.wa_text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.wa_meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--wa_meta);
}

.wa_ticks { color: var(--wa_tick); letter-spacing: -0.2em; font-weight: 700; }
.wa_demo { font-weight: 600; color: #b5441a; }

/* attachments inside bubbles */
.wa_image { display: block; margin: -2px -4px 4px; border-radius: 6px; overflow: hidden; }
.wa_image img { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #dfe8e3; }
.wa_video, .wa_audio { display: block; width: 100%; margin-bottom: 4px; border-radius: 6px; }
.wa_video { max-height: 240px; background: #000; }

.wa_doc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  margin: -1px -3px 4px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
}

a.wa_doc:hover { background: rgba(0, 0, 0, 0.08); }

.wa_doc_icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  border-radius: 4px;
  background: var(--violet);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  flex: none;
}

.wa_doc_icon.pdf { background: #d9541e; }

.wa_file_meta { display: flex; flex-direction: column; min-width: 0; }
.wa_file_meta strong { font-size: 0.86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa_file_meta small { font-size: 0.7rem; color: var(--wa_meta); }

.wa_location { margin: -2px -4px 4px; border-radius: 6px; overflow: hidden; }

.wa_location_map {
  position: relative;
  width: 240px;
  max-width: 100%;
  height: 120px;
  background:
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.7) 49% 51%, transparent 51%) 0 0 / 60px 40px,
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.7) 49% 51%, transparent 51%) 0 0 / 60px 40px,
    #b9d9c9;
}

.wa_location_pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: #d9541e;
  transform: translate(-50%, -80%) rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wa_location small { display: block; padding: 6px 8px 0; font-size: 0.7rem; color: var(--wa_meta); }

/* typing indicator */
.wa_msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.wa_msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb5ae; animation: wa_dot 1.2s infinite ease-in-out; }
.wa_msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.wa_msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wa_dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* quick replies */
.wa_quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 4px; background: var(--wa_wall); scrollbar-width: none; }

.wa_quick_button {
  flex: none;
  font: 500 0.8rem var(--sans);
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17504b;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.wa_quick_button:hover:not(:disabled) { background: #f4f9f6; }
.wa_quick_button:disabled { opacity: 0.45; cursor: not-allowed; }

/* reply buttons under the welcome message, like WhatsApp interactive buttons */
.wa_msg.welcome { margin-bottom: -4px; }

.wa_buttons {
  align-self: flex-start;
  display: grid;
  gap: 3px;
  width: min(82%, 320px);
  margin-left: 2px;
}

.wa_reply_button {
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #17504b;
  font: 600 0.84rem var(--sans);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wa_reply_button:hover:not(:disabled) { background: #f4f9f6; }
.wa_reply_button:disabled { opacity: 0.5; cursor: not-allowed; }

/* attachment menu and file preview */
.wa_attach_menu {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 66px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wa_attach_menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: #111b21;
  cursor: pointer;
}

.wa_attach_menu button:hover { background: #f2f5f3; }
.wa_attach_menu strong { display: block; font-size: 0.88rem; font-weight: 600; }
.wa_attach_menu small { display: block; font-size: 0.7rem; color: var(--wa_meta); }

.wa_attach_icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #ffffff; flex: none; }
.wa_attach_icon svg { width: 20px; height: 20px; }
.wa_attach_icon.doc { background: #6b46d9; }
.wa_attach_icon.photo { background: #2c7a70; }
.wa_attach_icon.pdf { background: #d9541e; }
.wa_attach_icon.pin { background: #17504b; }

.wa_file_preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
  padding: 8px 6px 8px 10px;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  border-bottom: 1px solid #e3e8e5;
}

.wa_file_preview .wa_file_meta { margin-right: auto; }

/* composer */
.wa_composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 10px; background: var(--wa_wall); }

.wa_composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  font: 0.94rem var(--sans);
  color: #111b21;
  resize: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wa_composer textarea:focus { outline: 2px solid rgba(44, 122, 112, 0.35); }
.wa_composer > .wa_icon_button { height: 44px; color: #4c605c; }

.wa_send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #d9541e;
  color: #ffffff;
  cursor: pointer;
  flex: none;
}

.wa_send svg { width: 20px; height: 20px; margin-left: 2px; }
.wa_send:disabled, .wa_composer textarea:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------------- footer */

.site_footer { background: var(--night); color: var(--dim); }

.footer_inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.footer_brand { font-size: 1.1rem; color: var(--mist); }
.footer_inner p { margin: 0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contours g, .paddock.ready { animation: none; }
  .story_step { transition: none; }
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 960px) {
  .assistant_inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 16px; }
  .wa_phone { height: min(720px, calc(100vh - 100px)); border-radius: 26px; border-width: 6px; }
  .header_cta { display: none; }
  .nav_toggle { display: block; }
  .site_nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site_nav.open { display: flex; }
  .site_nav a { padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .header_inner { position: relative; }
  .hero_inner { grid-template-columns: 1fr; gap: 64px; }
  .advice_card { right: 8px; }
  .story_sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 16px; padding: 16px 24px 24px; }
  .story_map { height: 44vh; }
  .story_steps { height: 36vh; }
  .story_progress { display: none; }
}

@media (max-width: 640px) {
  .header_inner { gap: 12px; padding: 0 16px; }
  .brand { font-size: 1.2rem; }
  .hero_inner { padding: 56px 16px 80px; }
  .sheet, .work_inner { padding: 80px 16px; }
  .numbers_inner { grid-template-columns: 1fr; padding: 80px 16px; }
  .ruler { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); }
  .tick { padding: 0 0 28px 20px; }
  .tick::before { left: -9px; top: 6px; width: 16px; height: 2px; }
  .collage { grid-template-rows: 200px 160px auto; }
  .big_photo { grid-column: 1 / 13; grid-row: 1 / 2; }
  .small_photo { grid-column: 5 / 13; grid-row: 2 / 3; margin-top: -40px; }
  .region_cards { grid-column: 1 / 13; grid-row: 3 / 4; padding: 24px 0 0; }
  .work_list li { grid-template-columns: 44px 1fr; }
  .feature_row, .rows li { flex-direction: column; align-items: flex-start; }
  .two_cols { grid-template-columns: 1fr; }
  .story_step h2 { font-size: 1.7rem; }
  .chat_snippet { display: none; }
}
