@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@400;500;600;700&display=swap");

/* 808 Computing home page.
   Dash loads every CSS file in /assets on every page, so everything here is scoped under
   .home-page and every class is prefixed "hp-" to avoid clashing with Bootstrap / Mantine. */

.home-page {
  --background-color: #ffffff;   /* colour of the first section, the front wave blends into it */
  --alt-background: #f4f7f8;
  --default-color: #212529;
  --muted: #5b6770;
  --ink: #1C2B2E;
  --blue: #2E86AB;
  --ochre: #C97B4A;
  --line: rgba(28, 43, 46, 0.12);
  --mono: "Share Tech Mono", monospace;
  --hp-header-h: 40px;          /* keep in sync with the AppShell header height */
  --hp-view-h: calc(100vh - var(--hp-header-h));

  font-family: "Inter", system-ui, sans-serif;
  color: var(--default-color);
  line-height: 1.6;
  background: var(--background-color);
}
.home-page, .home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
html:has(.home-page) { scroll-behavior: smooth; }
.home-page a { color: inherit; }
.home-page img, .home-page svg { vertical-align: middle; }

/* ---------- Nav ---------- */
.home-page .hp-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 4vw, 48px);
}
.home-page .hp-nav-brand { font-family: var(--mono); font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.home-page .hp-nav-brand span { color: var(--ochre); }
.home-page .hp-nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.home-page .hp-nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; }
.home-page .hp-nav-links a:hover { color: #fff; }
@media (max-width: 760px) { .home-page .hp-nav-links { display: none; } }

/* ---------- Hero ---------- */
@supports (height: 100dvh) {
  .home-page { --hp-view-h: calc(100dvh - var(--hp-header-h)); }
}
.home-page .hp-hero {
  width: 100%;
  height: var(--hp-view-h);          /* fills exactly the space under the header */
  min-height: 560px;                 /* but never squashes the content on short screens */
  position: relative;
  padding: 72px 0 0 0;               /* clears the in-page nav */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
.home-page .hp-hero-content {
  flex: 1;                           /* takes all the space above the waves */
  width: 100%;
  max-width: 900px;
  padding: 0 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;           /* vertically centred in the viewport */
}
.home-page .hp-hero-eyebrow { font-family: var(--mono); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; color: #7fc4e0; margin: 0 0 16px; }
.home-page .hp-hero-content h1 {
  margin: 0 0 16px 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1.05;
  color: inherit;
}
.home-page .hp-hero-sub { margin: 0 auto; max-width: 640px; font-size: 1.25rem; opacity: 0.92; }
.home-page .hp-hero-tag { font-family: var(--mono); margin: 18px 0 0; font-size: 1rem; color: var(--ochre); opacity: 1; letter-spacing: 0.08em; }
.home-page .hp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.home-page .hp-btn { display: inline-block; padding: 13px 24px; border-radius: 3px; font-weight: 600; text-decoration: none; font-size: 0.98rem; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; }
.home-page .hp-btn-primary { background: var(--blue); color: #fff; }
.home-page .hp-btn-primary:hover { background: #3a97bd; color: #fff; }
.home-page .hp-btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.home-page .hp-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.home-page .hp-btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.home-page .hp-btn-ghost-dark:hover { background: rgba(28,43,46,0.06); color: var(--ink); }
.home-page .hp-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Waves */
.home-page .hp-hero-waves { display: block; width: 100%; height: 60px; flex-shrink: 0; position: relative; overflow: hidden; }
.home-page .hp-wave1 path { animation: hp-move-forever1 10s linear infinite; animation-delay: -2s; fill: rgba(255,255,255,0.6); opacity: 0.6; }
.home-page .hp-wave2 path { animation: hp-move-forever2 8s linear infinite; animation-delay: -2s; fill: rgba(255,255,255,0.4); opacity: 0.4; }
.home-page .hp-wave3 path { animation: hp-move-forever3 6s linear infinite; animation-delay: -2s; fill: var(--background-color); }
@keyframes hp-move-forever1 { 0% { transform: translate(85px, 0%); } 100% { transform: translate(-90px, 0%); } }
@keyframes hp-move-forever2 { 0% { transform: translate(-90px, 0%); } 100% { transform: translate(85px, 0%); } }
@keyframes hp-move-forever3 { 0% { transform: translate(-90px, 0%); } 100% { transform: translate(85px, 0%); } }
@media (prefers-reduced-motion: reduce) { .home-page .hp-hero-waves path { animation: none !important; } }

/* ---------- Sections ---------- */
.home-page .hp-section {
  color: var(--default-color);
  background-color: var(--background-color);
  min-height: var(--hp-view-h);      /* each section fills the viewport under the header */
  padding: 84px 0;
  display: flex;
  align-items: center;               /* content vertically centred */
  scroll-margin-top: var(--hp-header-h);
  overflow: clip;
}
.home-page .hp-section.hp-alt { background-color: var(--alt-background); }
.home-page .hp-section.hp-dark { background-color: var(--ink); color: #f2efe8; }
.home-page .hp-section-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.home-page .hp-section-head { max-width: 720px; margin: 0 0 44px; }
.home-page .hp-kicker { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem; color: var(--blue); margin: 0 0 12px; }
.home-page .hp-dark .hp-kicker { color: #7fc4e0; }
.home-page .hp-section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.home-page .hp-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.home-page .hp-dark .hp-lead { color: rgba(242,239,232,0.75); }

/* About */
.home-page .hp-about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.home-page .hp-about-grid p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.home-page .hp-about-grid p.hp-kicker { color: var(--blue); font-size: 0.85rem; margin: 0 0 12px; }
.home-page .hp-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.home-page .hp-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.home-page .hp-facts span:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.home-page .hp-facts span:last-child { text-align: right; font-weight: 600; }
@media (max-width: 820px) { .home-page .hp-about-grid { grid-template-columns: 1fr; } }

/* Cards */
.home-page .hp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.home-page .hp-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.home-page .hp-card .hp-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: rgba(46,134,171,0.1); color: var(--blue); margin-bottom: 18px; }
.home-page .hp-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink); }
.home-page .hp-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Industries */
.home-page .hp-industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.home-page .hp-industry { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; padding: 32px; background: #fff; display: flex; flex-direction: column; }
.home-page .hp-industry.hp-mining { border-top-color: var(--ochre); }
.home-page .hp-industry.hp-urban { border-top-color: var(--blue); }
.home-page .hp-industry.hp-oil { border-top-color: #3F6259; }
.home-page .hp-industry .hp-icon { color: var(--ink); margin-bottom: 14px; }
.home-page .hp-industry h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--ink); }
.home-page .hp-industry p { margin: 0 0 18px; color: var(--muted); }
.home-page .hp-industry ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.home-page .hp-industry li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 0.97rem; }
.home-page .hp-industry li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--ochre); }
.home-page .hp-industry.hp-urban li::before { background: var(--blue); }
.home-page .hp-industry.hp-oil li::before { background: #3F6259; }

/* Process */
.home-page .hp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid rgba(242,239,232,0.2); }
.home-page .hp-step { padding: 32px 28px 32px 0; border-bottom: 1px solid rgba(242,239,232,0.2); }
.home-page .hp-step .hp-num { font-family: var(--mono); color: var(--ochre); font-size: 0.95rem; letter-spacing: 0.1em; }
.home-page .hp-step h3 { margin: 8px 0 8px; font-family: var(--mono); font-weight: 400; font-size: 1.9rem; color: inherit; }
.home-page .hp-step p { margin: 0; color: rgba(242,239,232,0.75); font-size: 0.98rem; }

/* Strata spotlight */
.home-page .hp-strata-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.home-page .hp-strata-grid p { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.home-page .hp-strata-grid p.hp-kicker { color: var(--blue); font-size: 0.85rem; margin: 0 0 12px; }
.home-page .hp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-page .hp-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.home-page .hp-stat .hp-big { font-family: var(--mono); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.home-page .hp-stat .hp-big small { font-size: 0.55em; color: var(--ochre); margin-left: 2px; }
.home-page .hp-stat span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 820px) { .home-page .hp-strata-grid { grid-template-columns: 1fr; } }

/* Contact + footer */
.home-page .hp-contact { text-align: center; }
.home-page .hp-contact .hp-section-head { margin: 0 auto 30px; }
.home-page .hp-contact .hp-btn-row { justify-content: center; }
.home-page .hp-site-footer { background: #151f21; color: rgba(242,239,232,0.7); padding: 36px 0; font-size: 0.9rem; }
.home-page .hp-site-footer .hp-section-inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.home-page .hp-site-footer .hp-brand { font-family: var(--mono); color: #f2efe8; font-size: 1.1rem; }
.home-page .hp-site-footer .hp-links { display: flex; gap: 20px; flex-wrap: wrap; }
.home-page .hp-site-footer a { color: inherit; text-decoration: none; }
.home-page .hp-site-footer a:hover { color: #fff; text-decoration: underline; }