/* ==========================================================================
   Ardentech Advisory — site styles
   Tokens and component classes come from the Ardentech design system.
   ========================================================================== */

/* ---- Tokens (light) ---------------------------------------------------- */
:root, [data-theme="light"] {
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --surface-raised: #ffffff;
  --line: #e3e6ea;
  --line-strong: #8a94a3;
  --ink: #0e1116;
  --ink-muted: #5b6472;
  --charcoal: #1b2028;
  --kelly: #2ead4b;          /* brand accent: never for text on white */
  --kelly-soft: #e3f5e7;
  --action: #1e7d35;         /* accessible green for buttons, links, text */
  --on-action: #ffffff;
  --logo-left: #1b2028;
  --logo-a: #ffffff;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --focus: var(--action);
  --link: var(--action);
  --shadow-1: 0 1px 2px rgba(14,17,22,0.08);
  --shadow-2: 0 8px 24px rgba(14,17,22,0.12);
}
/* ---- Tokens (dark) — used on the Experience band and footer ------------ */
[data-theme="dark"] {
  --surface: #0e1116;
  --surface-muted: #161a21;
  --surface-raised: #1b2028;
  --line: #2e3540;
  --line-strong: #6b7585;
  --ink: #f3f4f6;
  --ink-muted: #9aa3b2;
  --kelly-soft: #12301b;
  --action: #4cc067;
  --on-action: #0e1116;
  --logo-left: #ffffff;
  --logo-a: #0e1116;
  --danger: #f97066;
  --danger-soft: #3a1411;
  --warning: #fdb022;
  --warning-soft: #3a2a0a;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.5);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --font-sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1200px;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: #165e28; }
[data-theme="dark"] a:hover { color: #7fd694; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--surface); padding: 8px 12px; border-radius: var(--radius-md);
}
.skip-link:focus { left: 16px; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { position: relative; overflow: hidden; padding-top: 96px; padding-bottom: 96px; }
.section > .container { position: relative; z-index: 1; }

/* Background hexagon outlines, same shape as the hero panel's. Drawn as a mask so
   the stroke takes --line and adapts to light and dark sections. */
:is(.services, .experience, .about, .contact)::before {
  content: ""; position: absolute; width: var(--hex-w, 360px); aspect-ratio: 220 / 250;
  background: var(--hex-line, #d3d8de); pointer-events: none;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 250'%3E%3Cpolygon points='110,4 214,64 214,186 110,246 6,186 6,64' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
  -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat;
}
.services::before   { --hex-w: 380px; left: -110px; top: -60px; }
.experience::before { --hex-w: 440px; right: -120px; bottom: -90px; --hex-line: #343c48; }
.about::before      { --hex-w: 280px; right: -120px; top: -70px; }
.contact::before    { --hex-w: 360px; left: -100px; bottom: -80px; }
.section--muted { background: var(--surface-muted); }
.section--dark { background: var(--charcoal); color: #ffffff; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.overline {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--action);
}
.overline--muted { color: var(--ink-muted); }
.section--dark .overline { color: var(--kelly); }
.h2 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 20px; }

/* ---- Components (Ardentech design system) ------------------------------ */
.at-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); line-height: 1; text-decoration: none; }
.at-mark { display: block; flex: none; }
.at-mark-l { fill: var(--logo-left); }
.at-mark-r { fill: var(--kelly); }
.at-mark-a { fill: var(--logo-a); }
.at-wordmark { font-family: var(--font-sans); font-weight: 700; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-size: 22px; }
.at-wordmark--sm { font-size: 19px; }
.svg-sprite { position: absolute; }

.at-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.at-btn-md { height: 40px; padding: 0 var(--space-4); }
.at-btn-sm { height: 32px; padding: 0 var(--space-3); font-size: 13px; }
.at-btn-primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.at-btn-primary:hover { filter: brightness(0.92); color: var(--on-action); }
.at-btn-secondary { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); }
.at-btn-secondary:hover { background: var(--surface-muted); color: var(--ink); }
.at-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.at-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.at-badge-brand { background: var(--charcoal); color: var(--kelly); }

.at-field { display: flex; flex-direction: column; gap: var(--space-1); }
.at-field-label { font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: 0.01em; color: var(--ink); }
.at-input {
  height: 40px; padding: 0 var(--space-3); font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
}
textarea.at-input { height: auto; padding: 10px var(--space-3); resize: vertical; }
.at-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--action); }
.at-field-hint { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.site-header .at-mark { width: 42px; height: 48px; }
.site-header .at-wordmark { font-size: 32px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-nav a:not(.at-btn) { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:not(.at-btn):hover { color: var(--action); }

/* ---- Hero -------------------------------------------------------------- */
.hero .container {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 48px; padding-bottom: 88px;
}
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; max-width: 680px; }
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 16px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 24px; line-height: 32px; font-weight: 700; }

.hero-panel-wrap { flex: 1 1 360px; min-width: 0; position: relative; }
.hero-hex { position: absolute; right: -24px; top: -40px; opacity: 0.5; }
.hero-panel {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.framework-list { list-style: none; margin: 0; padding: 0; }
.framework {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.framework-name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.code-chip {
  font-family: var(--font-mono); font-size: 13px; line-height: 20px;
  background: var(--surface-muted); border-radius: var(--radius-md); padding: 12px;
}

/* ---- Services ---------------------------------------------------------- */
.services .container { display: flex; flex-direction: column; gap: 48px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.service-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--kelly-soft);
  display: flex; align-items: center; justify-content: center; color: var(--action);
}
.service-card .eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.service-card h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-top: 6px; }
.hex-list {
  list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.hex-list li { display: flex; gap: 8px; font-size: 14px; line-height: 22px; }
.hex-list li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--kelly);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---- Experience -------------------------------------------------------- */
.experience .container { display: flex; flex-wrap: wrap; gap: 56px; }
.experience-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.experience .h2 { color: #ffffff; }
.experience .lead { color: #c4cad4; }
.highlights { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; color: #e6e9ee; }
.highlights svg { flex: none; margin-top: 2px; color: var(--kelly); }
.timeline { flex: 999 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.role { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; border-top: 1px solid #2e3540; }
.role-dates { flex: 0 0 160px; font-family: var(--font-mono); font-size: 13px; line-height: 24px; color: #9aa3b2; }
.role-body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.role-title { font-size: 18px; line-height: 26px; font-weight: 600; color: #ffffff; }
.role-org { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--kelly); }
.role-note { font-size: 14px; line-height: 22px; color: #c4cad4; }

/* ---- About ------------------------------------------------------------- */
.about .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-photo { flex: 1 1 280px; min-width: 0; max-width: 360px; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy .bio-lead { font-size: 18px; line-height: 28px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 8px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.info-card strong { font-weight: 600; }

/* ---- Contact ----------------------------------------------------------- */
.contact .container { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-details { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-details li { display: flex; gap: 12px; align-items: center; }
.contact-details svg { color: var(--ink-muted); flex: none; }
.contact-form {
  flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
/* Spam honeypot: kept off-screen rather than display:none so simple bots still fill it in. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--surface); color: var(--ink-muted); }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-top: 48px; padding-bottom: 48px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: #c4cad4; text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: #ffffff; }

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 720px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero .container { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  html { scroll-padding-top: 136px; }
  .site-header .at-mark { width: 35px; height: 40px; }
  .site-header .at-wordmark { font-size: 26px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .h2 { font-size: 28px; line-height: 36px; }
  .site-nav { gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .hero-hex { display: none; }
  :is(.services, .experience, .about, .contact)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
