/* v2 design. Trust and authority layout, dark hero, one warm accent.
   Fonts are self-hosted because the CSP allows 'self' only. */
@font-face { font-family: "Outfit"; src: url("/assets/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/work-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* dark bands (hero, AI, footer) */
  --night: #0b1220;
  --night-2: #111a2e;
  --night-line: #22304d;
  --night-ink: #f3f1ec;
  --night-muted: #a9b3c7;
  --gold: #f2b544;
  --gold-ink: #0b1220;
  /* light bands */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5565;
  --line: #e4e0d6;
  --accent: #9a5b00;
  --radius: 16px;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1626;
    --surface: #141e33;
    --ink: #eef0f4;
    --muted: #a9b3c7;
    --line: #26324c;
    --accent: #f2b544;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, .brand, .stat b, .step b { font-family: "Outfit", system-ui, sans-serif; letter-spacing: -0.01em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
header.top { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--night-line); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.brand { color: var(--night-ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand::after { content: "."; color: var(--gold); }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--night-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--night-ink); }
nav a.nav-cta { color: var(--gold-ink); background: var(--gold); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
nav a.nav-cta:hover { color: var(--gold-ink); filter: brightness(1.06); }

/* buttons */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: var(--gold); color: var(--gold-ink); padding: 12px 24px; border-radius: 999px; text-decoration: none; font: 600 1rem "Work Sans", system-ui, sans-serif; border: 0; cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night-muted); }
.button svg { width: 18px; height: 18px; }

/* hero */
.band-dark { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.hero-band::before { /* soft light behind the portrait, and a faint grid for a network feel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 40%, rgba(242, 181, 68, 0.16), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(80, 120, 220, 0.18), transparent 70%),
    linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
  opacity: 0.55;
}
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; margin: 0 0 22px; font-weight: 700; }
h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 1.18rem; color: var(--night-muted); max-width: 56ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.avail { margin: 26px 0 0; color: var(--night-muted); font-size: 0.95rem; }
.avail i, .row em::before { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 10px; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); vertical-align: middle; }

/* hero panel listing the live systems */
.panel { position: relative; display: grid; gap: 4px; padding: 26px; border-radius: 22px; text-decoration: none; color: var(--night-ink); background: linear-gradient(160deg, #1b2846, #111a2e); border: 1px solid var(--night-line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: transform 0.25s, border-color 0.25s; }
.panel:hover { border-color: var(--gold); }
.panel::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--gold); border-radius: 22px; z-index: -1; opacity: 0.7; }
.panel-head { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--night-line); }
.panel-head b { font: 600 1.15rem "Outfit", sans-serif; }
.panel-head span { color: var(--night-muted); font-size: 0.88rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(34, 48, 77, 0.6); font-size: 0.98rem; }
.row em { font-style: normal; font-size: 0.82rem; color: #86efac; white-space: nowrap; }
.row em::before { content: ""; width: 6px; height: 6px; margin-right: 8px; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.panel-foot { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.panel-foot svg { width: 16px; height: 16px; }

/* what I've built */
#built { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.projects { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.project { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.project:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10); border-color: var(--accent); }
.project.feature { grid-column: span 2; background: var(--night); color: var(--night-ink); border-color: var(--night-line); }
.project.feature p, .project.feature li { color: var(--night-muted); }
.project-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.project-top .icon { margin: 0; }
.project.feature .icon { background: var(--gold); color: var(--gold-ink); }
.tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.project.feature .tag { color: var(--gold); }
.live { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: #15803d; background: rgba(34, 197, 94, 0.12); padding: 4px 10px; border-radius: 999px; }
.project.feature .live { color: #86efac; }
.project h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.25; }
.project.feature h3 { font-size: 1.6rem; }
.project p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 22px; font-size: 0.95rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--gold); }

/* proof strip */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.stat { padding: 30px 24px 40px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--night-line); }
.stat b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--night-ink); line-height: 1.1; margin-bottom: 8px; }
.stat b span { color: var(--gold); }
.stat p { margin: 0; color: var(--night-muted); font-size: 0.95rem; line-height: 1.5; }

/* sections */
section { padding: 96px 0; }
.kicker { color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.band-dark .kicker { color: var(--gold); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; margin: 0 0 14px; font-weight: 700; max-width: 22ch; }
.sub { color: var(--muted); margin: 0 0 48px; max-width: 62ch; font-size: 1.08rem; }
.band-dark .sub { color: var(--night-muted); }

/* offer cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10); border-color: var(--accent); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: var(--gold); margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* AI in practice */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ai ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ai li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: var(--night-muted); }
.ai li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.ai li b { color: var(--night-ink); font-weight: 600; }
.lifecycle { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px; padding: 30px; }
.lifecycle h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lifecycle > p { margin: 0 0 22px; color: var(--night-muted); font-size: 0.95rem; }
.diagram { margin: 0; }
.diagram img { display: block; width: 100%; height: auto; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.steps .step { counter-increment: step; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--night-line); }
.step::before { content: counter(step, decimal-leading-zero); font: 600 0.85rem "Outfit", sans-serif; color: var(--gold); }
.step b { font-weight: 600; color: var(--night-ink); }
.step span { color: var(--night-muted); font-size: 0.85rem; }
.lifecycle .foot { margin: 18px 0 0; font-size: 0.92rem; color: var(--night-ink); }

/* experience */
.sectors { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.sectors li { display: grid; grid-template-columns: 64px 260px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sectors .n { font: 600 0.9rem "Outfit", sans-serif; color: var(--accent); }
.sectors b { font: 600 1.2rem/1.3 "Outfit", sans-serif; color: var(--ink); }
.sectors span { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--muted); }
.next li b { display: block; color: var(--ink); font-family: "Outfit", sans-serif; font-size: 1.05rem; }
.next .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 600 0.9rem "Outfit", sans-serif; }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08); }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 150px; resize: vertical; }
form.contact .button { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* footer */
footer { background: var(--night); color: var(--night-muted); padding: 36px 0 44px; font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--night-ink); }

/* inner pages (privacy, thanks) */
main > .hero:only-child, .page { display: block; padding-top: 72px; padding-bottom: 72px; }
main > .hero:only-child .lede { color: var(--muted); }
.prose { max-width: 70ch; padding-top: 56px; padding-bottom: 72px; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }

/* gentle entrance, off when the visitor asks for less motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s ease-out both; }
  .rise.d2 { animation-delay: 0.12s; }
  .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* tablet */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .panel { max-width: 520px; margin-right: 14px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .ai, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .sectors li { grid-template-columns: 48px 1fr; }
  .sectors li > span:last-child { grid-column: 2; }
}
/* phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  section { padding: 64px 0; }
  .grid, .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--night-line); }
  .hero { padding-top: 44px; padding-bottom: 64px; gap: 40px; }
  .panel { padding: 20px; }
  .projects { grid-template-columns: 1fr; }
  .project.feature { grid-column: auto; }
  .project { padding: 22px; }
  .steps .step { grid-template-columns: 34px 1fr; }
  .steps .step span { grid-column: 2; }
  form.contact { padding: 22px; }
}
