/* George Kulick portfolio — design tokens from the approved Hybrid artboard */
:root {
  --ground: #0F1419;
  --surface: #161D25;
  --line: #2A3540;
  --line-strong: #4A5661;
  --connector: #6B7784;
  --text: #E8ECEF;
  --text-2: #D5DCE3;
  --text-3: #B8C2CC;
  --muted: #9AA5AF;
  --accent: #F2A541;
  --accent-hover: #FFC46B;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* keep the bottom-right assistant launcher clear of the last content */
  padding-bottom: 96px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--ground); padding: 10px 14px; border-radius: 6px;
  font-weight: 600; text-decoration: none; z-index: 100;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.brand { font-family: var(--font-mono); font-size: 14px; color: #C9D1D9; text-decoration: none; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: #C9D1D9; text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--text); }

/* type */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--accent); }
h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; text-wrap: pretty; }
h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; }
h3 { margin: 0; font-weight: 600; font-size: 17px; }
.lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-3); max-width: 52ch; text-wrap: pretty; }
.meta { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); line-height: 1.8; }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-strong); color: var(--text); }
.btn:hover { color: var(--text); border-color: var(--connector); }
.btn-primary { background: var(--accent); color: var(--ground); font-weight: 600; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ground); border-color: var(--accent-hover); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.section { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.section-head .hint { font-size: 13px; color: var(--muted); }

/* hero */
.hero { padding-top: 56px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-row { display: flex; align-items: center; gap: 10px; }
.node { flex: 1; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.node-accent { border-color: var(--accent); }
.h-link { width: 18px; height: 1px; background: var(--connector); flex: none; }
.v-link { width: 1px; height: 18px; background: var(--connector); }
.flow-turn { display: flex; justify-content: flex-end; padding-right: calc(50% - 14px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.stat-n { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.stat-l { font-size: 12px; color: var(--muted); }

/* case studies */
.case { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.case-head { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.case-head .where { font-size: 13px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cell { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.cell:last-child { border-right: 0; }
@media (max-width: 1060px) { .cell { border-right: 0; border-bottom: 1px solid var(--line); } .cell:last-child { border-bottom: 0; } }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .node { padding: 6px 10px; font-size: 13px; font-weight: 400; border-radius: 4px; color: var(--text); }
.stack .v-link { height: 10px; margin-left: 16px; }

/* AI builds */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; font-size: 14px; color: var(--text-3); }
.card h3 { font-size: 18px; line-height: 1.3; }
.shot { aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #0B1015; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 12px; }
.split .label { font-size: 11px; margin-bottom: 4px; display: block; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.principle { display: flex; flex-direction: column; gap: 8px; }
.principle .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.principle .t { font-weight: 600; font-size: 15px; }
.principle p { margin: 0; font-size: 14px; color: var(--text-3); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.timeline li { border-top: 1px solid var(--line-strong); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.timeline li.now { border-top-color: var(--accent); }
.timeline .role { font-weight: 600; font-size: 14px; }
.timeline .org { font-size: 13px; color: var(--text-3); }

/* resume block */
.resume-block { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.resume-block p { margin: 0; font-size: 14px; color: var(--text-3); max-width: 60ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); margin-top: 48px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; padding-right: 220px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; }
.site-footer a { color: var(--muted); }

/* resume page */
.resume { max-width: 820px; }
.resume h1 { font-size: 36px; }
.resume h2 { font-size: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.resume h3 { font-size: 17px; margin-top: 24px; }
.resume p, .resume li { color: var(--text-2); font-size: 15px; }
.resume ul { padding-left: 20px; }
.resume strong { color: var(--text); }
.resume .contact { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .site-footer .wrap { padding-right: 20px; padding-bottom: 100px; }
  .stats { grid-template-columns: 1fr; }
}

/* print: the resume page becomes a light, letter-sized document */
@media print {
  :root { --ground: #FFFFFF; --surface: #FFFFFF; --line: #D1D5DB; --line-strong: #9CA3AF; --text: #111827; --text-2: #1F2937; --text-3: #374151; --muted: #4B5563; --accent: #B45309; }
  body { padding-bottom: 0; font-size: 9.2pt; line-height: 1.3; }
  .skip-link, .site-header, .site-footer, .actions, elevenlabs-convai { display: none !important; }
  .resume { max-width: none; }
  .resume h1 { font-size: 18pt; margin-bottom: 2pt; }
  .resume h2 { font-size: 11pt; margin-top: 7pt; padding-top: 5pt; break-after: avoid; }
  .resume h3 { font-size: 10pt; margin-top: 6pt; margin-bottom: 0; break-after: avoid; }
  .resume p, .resume li { font-size: 9.2pt; line-height: 1.3; margin: 2pt 0; }
  .resume ul { margin: 2pt 0; padding-left: 14pt; }
  .resume .contact { font-size: 9pt; margin: 1pt 0; }
  a { color: inherit; text-decoration: none; }
  @page { size: letter; margin: 0.45in 0.55in; }
}
