/* ==========================================================
   Dunn4 Industries — site styles
   Brand colours are defined once below; change them here.
   ========================================================== */
:root {
  --bg: #06111b;          /* deep navy, page background */
  --bg-alt: #091a28;      /* alternate section background */
  --surface: #0d2233;     /* cards */
  --line: rgba(120, 200, 220, 0.14);
  --text: #e8f1f5;
  --muted: #93aab8;
  --teal: #3fd2c0;        /* D4 turquoise */
  --teal-deep: #1d7e78;   /* D4 teal (from logo) */
  --azure: #1a8fd6;       /* D4 blue */
  --navy: #003354;        /* D4 deep cyan/navy (from logo) */
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--azure) 100%);
  --radius: 14px;
  --maxw: 1160px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #7de9da; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--teal); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 17, 27, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem var(--font-head); }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { padding: 8px 16px; border: 1px solid var(--teal); border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--grad); color: #04121c; }
.btn-primary:hover { color: #04121c; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(63, 210, 192, .25); }
.btn-ghost { color: var(--text); border: 1px solid rgba(232, 241, 245, .25); }
.btn-ghost:hover { color: var(--text); border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(26, 143, 214, .22), transparent 70%),
    radial-gradient(40% 50% at 60% 80%, rgba(63, 210, 192, .14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpath d='M0 0 L80 46 L0 92' fill='none' stroke='%233fd2c0' stroke-opacity='.06'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
.lede { font-size: 1.15rem; color: #c3d4dd; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-mark img { width: min(100%, 400px); margin-left: auto; filter: drop-shadow(0 30px 60px rgba(26, 143, 214, .35)); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }


/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; position: relative;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.about-card::before { content: ""; position: absolute; left: 0; top: 32px; width: 3px; height: 28px; background: var(--grad); }
.about-key { display: block; font: 700 1.5rem var(--font-head); margin-bottom: .6rem; }
.about-card p { color: #c3d4dd; margin: 0; }

/* ---------- Ventures ---------- */
.venture-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.venture {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.venture:hover { border-color: rgba(63, 210, 192, .45); transform: translateY(-2px); }
.venture h3 { font-size: 1.2rem; margin-bottom: .4em; }
.venture p { color: var(--muted); flex: 1; }
.venture-future { background: transparent; border-style: dashed; }
.icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 18px; border-radius: 10px; background: rgba(63, 210, 192, .1); fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(63, 210, 192, .35); padding: 4px 10px; border-radius: 999px; }
.venture-future .tag { color: var(--azure); border-color: rgba(26, 143, 214, .45); }

/* ---------- Directors ---------- */
.director-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.director {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.avatar {
  width: 88px; height: 88px; margin-bottom: 22px; object-fit: cover;
  display: grid; place-items: center; font: 700 1.3rem var(--font-head); color: #04121c;
  background: var(--grad);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.director-name { font-size: 1.3rem; margin-bottom: .2em; }
.director-title { color: var(--teal); font-weight: 600; font-size: .95rem; margin-bottom: 1.1em; }
.director-role { color: #c3d4dd; font-size: .95rem; }
.purpose { margin: .4em 0 1em; padding: 14px 16px; border-left: 2px solid var(--azure); background: rgba(26, 143, 214, .08); border-radius: 0 8px 8px 0; font-style: italic; }
.purpose p { margin: 0; }
.bio { color: var(--muted); font-size: .9rem; margin: 0; margin-top: auto; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-inner > div > p:last-child { color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.contact-list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.1rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .venture-grid, .director-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr 260px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav li a { display: block; padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 150px; margin: 0; }
  .section { padding: 72px 0; }
  .about-grid, .venture-grid, .director-grid, .contact-inner { grid-template-columns: 1fr; }
  .about-card, .director { padding: 26px 22px; }
  .container { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
