/* DeepTech Ventures Australia — site styles. No framework, no build step. */

@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-latin-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --light: #f6f6f6;
  --dark: #1d1d1d;
  --card: #2a2a2a;
  --ink: #333;
  --muted: #666;
  --on-dark: rgba(255, 255, 255, 0.72);
  --blue: #2c5ee8;
  --violet: #c19dff;
  --coral: #ff646d;
  --heading: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--light);
  color: var(--muted);
  font: 500 16px/1.75 var(--body);
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, ul { margin: 0; }

h2, h3 {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 12px 20px;
  background: var(--dark);
  color: #fff;
  z-index: 10;
}
.skip:focus { left: 0; }

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

/* Eyebrow labels */
.eyebrow {
  font: 700 13px/1.4 var(--heading);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--violet); }

/* Buttons. The arrow is a CSS mask, so no icon font is needed. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 16px 40px;
  border-radius: 100px;
  background: var(--card);
  color: #fff;
  font: 700 14px/1.5 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, gap 0.2s, padding 0.2s;
}
.btn::after {
  content: "";
  width: 0;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: width 0.2s;
}
.btn:hover, .btn:focus-visible { background: #000; gap: 10px; padding-inline: 30px 26px; }
.btn:hover::after, .btn:focus-visible::after { width: 14px; }
.btn--coral { background: var(--coral); color: var(--dark); }
.btn--coral:hover, .btn--coral:focus-visible { background: #ff8088; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after { transition: none; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 100px) 0 clamp(56px, 8vw, 90px); }

.hero__brand {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 48px);
}
.hero__logo { width: clamp(120px, 22vw, 240px); border-radius: 20px; }

.hero__sectors {
  list-style: none;
  padding: 0;
  font: 700 clamp(17px, 2.2vw, 22px)/1.35 var(--body);
  color: var(--ink);
}
.hero__sectors li + li { margin-top: 0.35em; }

.hero h1 { margin-bottom: 16px; }

.hero__lead {
  max-width: 880px;
  font: 500 clamp(21px, 2.6vw, 32px)/1.3 var(--body);
  color: var(--ink);
  margin-bottom: 32px;
}

.tiles {
  list-style: none;
  padding: 0;
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 40px);
}
.tiles a {
  display: block;
  text-align: center;
  text-decoration: none;
  font: 500 clamp(14px, 1.6vw, 20px)/1.3 var(--heading);
  color: var(--ink);
}
.tiles img { width: 100%; max-width: 160px; margin: 0 auto 14px; transition: transform 0.2s; }
.tiles a:hover img { transform: translateY(-4px); }

@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}

/* About */
/* The card's bottom edge sits on the dark band; the portrait runs past it
   by --overlap into the services section, which pads its top to match. */
.about {
  --overlap: clamp(72px, 12vw, 170px);
  padding: clamp(56px, 8vw, 100px) 0 0;
  background: var(--light);
}
.about__intro {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.4;
  max-width: 980px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.about__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(24px, 5vw, 60px);
}
.about__card {
  background: #fff;
  padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2vw, 24px);
  font-size: 14px;
  line-height: 1.8;
}
.about__card p + p { margin-top: 0.6em; }
.about__card .btn { margin-top: 24px; }

/* The card alone sets the row height. The portrait is pinned to the top of
   its cell and is --overlap taller than it, so it starts level with the card
   and always runs the same distance into the dark band. */
.about__media { position: relative; z-index: 1; }
.about__photo {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% + var(--overlap));
  object-fit: cover;
  object-position: 50% 20%;
}

@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 640px; }
  .about__photo {
    position: static;
    height: auto;
    max-width: 520px;
    margin-bottom: calc(-1 * var(--overlap));
  }
}

/* Services */
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.services { padding: calc(clamp(72px, 12vw, 170px) + clamp(64px, 9vw, 110px)) 0 clamp(64px, 9vw, 110px); }
.services h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.service {
  background: var(--card);
  border-radius: 30px;
  padding: 30px;
  scroll-margin-top: 24px;
}
.service .eyebrow { color: #fff; }
/* Shape strips overlap the card's left edge by --hang. */
.service { --hang: 14px; }
.service img { width: calc(100% + var(--hang)); max-width: 320px; margin: 12px 0 44px calc(-30px - var(--hang)); }
.service h3 { font-size: 20px; margin-bottom: 14px; }
.service p { font-size: 15px; line-height: 1.85; }
.services__cta { display: flex; align-items: center; justify-content: center; padding: 30px; }

@media (max-width: 960px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service { --hang: 7px; } .services__grid { grid-template-columns: 1fr; } .services__cta { justify-content: flex-start; padding: 10px 0 0; } }

/* Call to action */
/* Shapes sit in the bottom-left corner. Where the margin is wide enough the
   text stands beside them, top-aligned; otherwise it rests just above them. */
.cta {
  --shapes: clamp(220px, 25vw, 480px);
  padding: clamp(64px, 8vw, 110px) 0 calc(var(--shapes) + 8px);
  background: var(--light) url("/assets/img/shapes.svg") left bottom / var(--shapes) no-repeat;
}
.cta h2 { font-size: clamp(32px, 4.6vw, 52px); max-width: 760px; margin-bottom: 36px; }

/* Side by side once the left margin can hold the shapes' first two columns
   (2/3 of their width): the shapes grow with the margin up to 480px, and the
   text's top lines up with theirs, as on the original. */
@media (min-width: 1620px) {
  .cta {
    --shapes: min(480px, calc(75vw - 840px));
    padding: calc(var(--shapes) / 2) 0 0;
    min-height: calc(var(--shapes) * 1.5);
  }
}

/* Footer */
.footer { padding: clamp(56px, 8vw, 90px) 0 40px; text-align: center; font-size: 16px; }
.footer h2 { font-size: 22px; margin-bottom: 24px; }
.footer address { font-style: normal; }
.footer address p + p { margin-top: 8px; }
.footer a { text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; text-decoration: none; }
.footer__social svg { width: 28px; height: 28px; fill: currentColor; }
.footer__legal {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.footer__legal a { margin-left: 6px; }
.footer__legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Long-form pages (privacy policy, 404) */
.page-head { padding: 28px 0; background: var(--dark); }
.page-head a { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font: 700 15px/1.3 var(--heading); letter-spacing: 0.08em; text-transform: uppercase; }
.page-head img { width: 48px; border-radius: 8px; }

.prose { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 110px); color: #444; font-size: 16px; }
.prose .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.prose h1 { font: 500 clamp(32px, 4vw, 44px)/1.15 var(--heading); color: var(--ink); margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose .btn { color: #fff; margin-top: 16px; }
