/* Zoomash Ltd — company site
   Palette taken from the Zoomash logo: midnight navy from "ZOO",
   and the cyan-to-royal-blue ribbon of the Z and "MASH". */
:root {
  --paper: #F5F8FD;
  --paper-deep: #E9F0FB;
  --ink: #0A1A3F;          /* logo navy, lifted slightly for body text */
  --ink-soft: #46557A;
  --isobar: #A7BCE0;
  --cyan: #01C6F7;         /* light end of the ribbon */
  --blue: #017DFB;         /* mid ribbon */
  --royal: #0039D0;        /* deep end of the ribbon */
  --link: #0057E8;
  --error: #C62A43;
  --rule: #D3DDEE;
  --ribbon: linear-gradient(115deg, #01D5FD 0%, #017DFB 48%, #0039D0 100%);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

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

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: .5rem;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: .5rem; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 2; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 52px; width: auto; }
@media (max-width: 640px) { .wordmark img { height: 36px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 2.4vw, 2rem); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--display); font-size: 1rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-image: var(--ribbon) 1; border-bottom-color: var(--blue); }

@media (max-width: 640px) {
  .site-head .wrap { padding-top: .75rem; padding-bottom: .5rem; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { flex-wrap: nowrap; gap: 1rem; }
  .site-nav a { white-space: nowrap; font-size: .95rem; }
}

/* ---------- Hero: the synoptic chart ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-chart .iso { fill: none; stroke: var(--isobar); stroke-width: 1.1; opacity: .75; }
.hero-chart .iso-label { font-family: var(--display); font-size: 11px; fill: var(--isobar); }
.hero-chart .centre { font-family: var(--display); font-weight: 700; font-size: 44px; }
.hero-chart .centre.low { fill: url(#ribbonGrad); }
.hero-chart .centre.high { fill: var(--royal); opacity: .8; }
.hero-chart .front { fill: none; stroke: var(--ink); stroke-width: 2.25; }
.hero-chart .warm-sym { fill: var(--cyan); }
.hero-chart .cold-sym { fill: var(--royal); }

.hero-chart .front { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out .3s forwards; }
.hero-chart .symbols { opacity: 0; animation: appear .8s ease-out 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-chart .front { animation: none; stroke-dashoffset: 0; }
  .hero-chart .symbols { animation: none; opacity: 1; }
}

.hero-copy { position: relative; padding: clamp(4rem, 11vw, 9rem) 0 clamp(3.5rem, 9vw, 7rem); max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: .98;
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
}
.hero .lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); margin: 1.75rem 0 2.25rem; }
.hero-chart { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 30%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 30%, #000 60%); }
@media (max-width: 760px) {
  .hero-chart { -webkit-mask-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.4) 100%); mask-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.4) 100%); }
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  background: var(--ribbon); background-color: var(--blue); color: #fff; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: 6px; border: 0;
  box-shadow: 0 6px 18px -8px rgba(0, 57, 208, .6);
}
.btn:hover { background: var(--royal); color: #fff; }
.btn-plain { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* ---------- Front divider (between sections) ---------- */
.front-rule { height: 22px; margin: 0; border: 0; color: var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  position: relative;
}
.front-rule::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='14'%3E%3Cpath d='M8 14 L16 2 L24 14Z' fill='%230039D0'/%3E%3Cpath d='M52 14 A10 10 0 0 1 72 14Z' fill='%2301C6F7'/%3E%3C/svg%3E") 0 100% / 88px 14px repeat-x;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 44rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: var(--measure); margin: 0; }

/* Portfolio: grouped by sector, left column carries the group */
.group { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem 3rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.group:last-child { border-bottom: 1px solid var(--rule); }
.group-name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); padding-top: .35rem; }
.group-name span { display: block; font-family: var(--text); font-weight: 400; font-size: .95rem; margin-top: .35rem; line-height: 1.45; }
.products { display: grid; gap: 2.25rem; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .5rem 2.5rem; align-items: start; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.product .domain { font-family: var(--display); font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }
.product p { margin: 0; max-width: var(--measure); }
.product .facts { list-style: none; padding: 0; margin: .75rem 0 0; color: var(--ink-soft); font-size: .98rem; }
.product .facts li { padding-left: 1.1rem; position: relative; margin-bottom: .2rem; }
.product .facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; border: 1.5px solid var(--isobar); }

.product.lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

@media (max-width: 860px) {
  .group { grid-template-columns: 1fr; gap: 1.25rem; }
  .product { grid-template-columns: 1fr; }
}

/* Apps */
.section.alt { background: var(--paper-deep); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.app { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: start; }
.app-mark { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; display: grid; place-items: center; }
.app-mark svg { width: 2.4rem; height: 2.4rem; }
.app h3 { margin-bottom: .2rem; }
.app .platform { font-family: var(--display); font-size: .95rem; color: var(--ink-soft); margin-bottom: .75rem; }
.app p { max-width: 30rem; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }

/* Engineering: definition list on a two-column grid */
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); margin: 0; }
.capabilities div { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.capabilities dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: .4rem; }
.capabilities dd { margin: 0; color: var(--ink-soft); max-width: 32rem; }
@media (max-width: 760px) { .capabilities { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about .copy p { max-width: var(--measure); }
.about .copy p:first-child { font-size: 1.25rem; line-height: 1.5; }
.ledger { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; padding-top: 1.25rem; border-top: 3px solid; border-image: var(--ribbon) 1; }
.ledger dt { font-family: var(--display); font-weight: 600; }
.ledger dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Contact band */
.contact-band { background: #00102F radial-gradient(120% 140% at 100% 0%, rgba(1, 125, 251, .55) 0%, rgba(0, 57, 208, .25) 40%, transparent 70%); color: var(--paper); }
.contact-band h2 { color: var(--paper); margin-bottom: 1rem; }
.contact-band p { color: #C7D6F2; max-width: var(--measure); font-size: 1.15rem; }
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.contact-band a { color: #fff; }
.contact-band .btn { background: #fff; color: var(--ink); box-shadow: none; }
.contact-band .btn:hover { background: var(--cyan); color: #00102F; }
.contact-band .email { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; display: inline-block; margin-bottom: 1.25rem; }
@media (max-width: 760px) { .contact-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: var(--measure); margin: 1rem 0 0; }
.prose { max-width: 42rem; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--ink-soft); font-size: .95rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); align-items: start; }
.contact-grid .ledger { grid-template-columns: 1fr; gap: .25rem; }
.contact-grid .ledger dd { margin-bottom: 1rem; }
.calendly-inline-widget { min-width: 280px; height: 760px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { padding: 3rem 0 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-foot h2 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--ink); }
.site-foot .legal { border-top: 1px solid var(--rule); padding-top: 1.5rem; font-size: .9rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1.25rem; max-width: 36rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--isobar); border-radius: 3px; padding: .7rem .85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 125, 251, .2); }
.field-error { color: var(--error); font-size: .95rem; }
input.btn { cursor: pointer; justify-self: start; }
.notice { display: block; padding: 1rem 1.25rem; border-radius: 3px; border-left: 4px solid; }
.notice-error { background: #FCEEF0; border-color: var(--error); color: #7E1F27; }
.notice-ok { background: #E6F3FE; border-color: var(--blue); }
.notice-ok h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.notice-ok p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
