:root {
  --bg: #fbf8f2;
  --ink: #16140f;
  --muted: #6b665b;
  --line: #e4ded1;
  --card: #fff;
  --accent: #e8590c;
  --glow: #ffb020;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0b;
    --ink: #f4efe4;
    --muted: #a39d8f;
    --line: #2a2720;
    --card: #17150f;
    --accent: #ffb020;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main, .top, footer { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 8px; }
.mark { font-family: var(--serif); font-weight: 700; font-size: 20px; text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 96px 0 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--accent); margin: 0 0 20px; font-weight: 600; }
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 20px; max-width: 620px; color: var(--muted); margin: 0 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--ink); transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 36px; }
h2 { font-family: var(--serif); font-size: 34px; margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; text-decoration: none; min-height: 250px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.card h3 { font-family: var(--serif); font-size: 28px; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.tag { align-self: flex-start; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--accent); }
.go { font-size: 14px; font-weight: 600; margin-top: 8px; }
.go i { font-style: normal; color: var(--accent); }
.card.soon { border-style: dashed; background: transparent; }
.card.soon .tag { color: var(--muted); }

/* contact */
.contact { text-align: center; padding: 96px 0; }
.contact h2 { font-size: clamp(40px, 7vw, 68px); }
.contact p { color: var(--muted); margin: 12px 0 28px; }
.email {
  font-family: var(--serif); font-size: clamp(22px, 4.5vw, 38px); font-weight: 700;
  text-decoration: none; border-bottom: 3px solid var(--glow); padding-bottom: 2px; word-break: break-all;
}
.email:hover { color: var(--accent); }
.social { list-style: none; display: flex; justify-content: center; gap: 28px; padding: 0; margin: 44px 0 0; }
.social a { text-decoration: none; font-weight: 600; color: var(--muted); }
.social a:hover { color: var(--accent); }

footer { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { text-decoration: none; }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* fractional CTO + patent */
.cto-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-bottom: 36px; }
.cto-grid p { margin: 0 0 16px; color: var(--muted); }
.cto-grid .big { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); }
.cto-grid .big a { border-bottom: 2px solid var(--glow); text-decoration: none; }
.focus { list-style: none; margin: 0; padding: 0; align-self: start; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.focus li { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.focus li:last-child { border-bottom: 0; }
.patent {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  border: 1.5px solid var(--accent); border-radius: 18px; padding: 28px;
  background: var(--card); transition: transform .2s, box-shadow .2s;
}
.patent:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.patent h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 0; }
.patent p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .cto-grid { grid-template-columns: 1fr; gap: 24px; } .cto-grid .big { font-size: 20px; } }

/* portrait */
.who { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.portrait { width: 150px; height: 150px; object-fit: cover; object-position: 50% 28%; border-radius: 50%; border: 3px solid var(--glow); }
@media (max-width: 680px) { .who { grid-template-columns: 1fr; gap: 20px; } .portrait { width: 112px; height: 112px; } }

@media (max-width: 900px) {
  .cto-grid { grid-template-columns: 1fr; gap: 24px; }
  .who { grid-template-columns: 112px 1fr; gap: 22px; }
  .portrait { width: 112px; height: 112px; }
}
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }
