/* harrisongeisler.com
   Single dark look, built around a field of device tiles.
   Layout: one 1120px column, left-aligned text; the hero splits text / headshot. */

:root {
  /* Cream City palette: charcoal, Milwaukee cream brick, brick red */
  --ink: #1f1d1b;          /* page background, charcoal */
  --ink-2: #25221f;        /* alternate band */
  --panel: #2e2a26;        /* raised surfaces */
  --line: #3a3430;         /* borders, tile off-state (mortar) */
  --text: #efe4c4;         /* cream brick */
  --muted: #b5aa8c;
  --accent: #efe4c4;       /* primary buttons, enrolled tiles */
  --accent-deep: #8c7f63;  /* in-between tile state */
  --signal: #d2553a;       /* brick red: wavefront, status dot, focus ring (non-text) */
  --signal-text: #e5795e;  /* brick red tuned for text contrast on charcoal */

  --display: "Bricolage Grotesque", "Inter Display", "Inter", system-ui, sans-serif;
  --name: "Sora", "Inter Display", "Inter", system-ui, sans-serif;  /* the name only */
  --body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(3rem, 1.6rem + 6.2vw, 6.25rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1120px;
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; font-variation-settings: "wdth" 88; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--signal); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--name); font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.wordmark svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--step--1)/1 var(--body);
  padding: 13px 20px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #fff4d8; color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.btn-ghost:hover { border-color: var(--signal); color: var(--text); }
.btn-sm { padding: 9px 14px; }
.btn:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-field {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.85) 72%, #000 100%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.85) 72%, #000 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 32px; align-items: end;
  padding-top: clamp(48px, 9vw, 112px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(48px, 8vw, 104px); min-width: 0; }
.hero h1 {
  font-family: var(--name); font-size: var(--step-4); letter-spacing: -0.045em; line-height: .98;
  font-weight: 700;
}
.hero h1 span { display: block; }
.lead { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.4; max-width: 30ch; color: var(--text); font-weight: 500; }
.support { color: var(--muted); max-width: 52ch; }
.availability { display: flex; gap: 10px; align-items: baseline; color: var(--text); max-width: 56ch; font-size: var(--step--1); }
.availability .dot { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); transform: translateY(1px); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-portrait { position: relative; align-self: end; justify-self: end; width: min(100%, 440px); }
.hero-portrait img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10, 8, 6, .55)); }
.field-status {
  position: absolute; right: var(--gutter-r); bottom: 14px; z-index: 2;
  font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--ink) 80%, transparent);
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.field-status b { color: var(--signal-text); font-weight: 600; }

/* page-load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero .lead, .hero .support, .hero .availability, .hero .cta-row, .hero-portrait {
    animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero h1 span:nth-child(2) { animation-delay: .08s; }
  .hero .lead { animation-delay: .22s; }
  .hero .support { animation-delay: .3s; }
  .hero .availability { animation-delay: .38s; }
  .hero .cta-row { animation-delay: .46s; }
  .hero-portrait { animation: portrait 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portrait { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--ink-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 62ch; }
.section-head p { color: var(--muted); }

/* track record */
.record { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.record li { padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.record li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.record strong { font-family: var(--display); font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.4rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.record span { color: var(--muted); font-size: var(--step--1); max-width: 24ch; }

/* case study feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feature-copy h2 { font-size: var(--step-3); }
.feature-copy p { color: var(--muted); max-width: 52ch; }
.feature-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-points li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; }
.feature-points li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--signal); transform: translateY(1px); }

/* fleet module: 175 devices */
.fleet { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fleet-grid { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: clamp(3px, .6vw, 6px); }
.fleet-grid i { aspect-ratio: 1; border-radius: 22%; background: var(--accent); display: block; }
.fleet-grid i.ipad { border-radius: 50%; transform: scale(.82); }
.fleet-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.fleet-meta b { color: var(--text); font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--accent); }
.legend i.l-off { background: var(--line); }
.legend i.l-ipad { border-radius: 50%; }

.fleet.armed .fleet-grid i { background: var(--line); }
.fleet.run .fleet-grid i { animation: enroll .5s ease-out both, patch 1.1s ease-out both; animation-delay: calc(var(--c) * 45ms + var(--r) * 25ms), calc(1600ms + var(--c) * 30ms + var(--r) * 18ms); }
@keyframes enroll { 0% { background: var(--line); transform: scale(.6); } 60% { transform: scale(1.12); } 100% { background: var(--accent-deep); transform: scale(1); } }
@keyframes patch { 0% { background: var(--accent-deep); } 30% { background: var(--signal); box-shadow: 0 0 10px color-mix(in srgb, var(--signal) 70%, transparent); } 100% { background: var(--accent); box-shadow: none; } }
.fleet.run .fleet-grid i.ipad { animation-name: enroll-ipad, patch; }
@keyframes enroll-ipad { 0% { background: var(--line); transform: scale(.5); } 60% { transform: scale(.95); } 100% { background: var(--accent-deep); transform: scale(.82); } }

/* experience timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 40px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--signal), var(--accent-deep)); transform-origin: top; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 70%; }
  }
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.role { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; }
.role::before { content: ""; position: absolute; left: -28px; top: 9px; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); border: 2px solid var(--accent); }
.alt .role::before { background: var(--ink-2); }
.role h3 { grid-column: 1; }
.role .org { grid-column: 1; color: var(--muted); }
.role .when { grid-column: 2; grid-row: 1; color: var(--muted); font-size: var(--step--1); white-space: nowrap; font-variant-numeric: tabular-nums; align-self: baseline; }
.role ul { grid-column: 1 / -1; margin: 8px 0 0; padding-left: 1.1em; color: var(--text); display: flex; flex-direction: column; gap: 6px; max-width: 72ch; }
.role ul li::marker { color: var(--signal); }
.role .note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.skills div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.skills h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 600; color: var(--signal-text); }
.skills ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: var(--step--1); background: color-mix(in srgb, var(--panel) 60%, transparent); }

/* consulting */
.consult { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.consult-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.consult-list li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.consult-list li:last-child { border-bottom: 1px solid var(--line); }
.consult-list b { font-weight: 600; }
.consult-list span { color: var(--muted); font-size: var(--step--1); }

/* contact band */
.contact { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--signal) 22%, transparent), transparent 60%), var(--ink-2); }
.contact .wrap { display: flex; flex-direction: column; gap: 22px; }
.contact h2 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: .95; font-variation-settings: "wdth" 78; font-weight: 800; }
.email-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email-line a { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); font-weight: 600; color: var(--text); word-break: break-all; }
.email-line a:hover { color: var(--signal-text); }
.contact-meta { display: flex; gap: 10px 28px; flex-wrap: wrap; color: var(--muted); font-size: var(--step--1); }
.copied { color: var(--signal-text); font-size: var(--step--1); min-height: 1.2em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); letter-spacing: -0.03em; line-height: .98; font-variation-settings: "wdth" 80; font-weight: 800; }
.page-head h1.name { font-family: var(--name); font-variation-settings: normal; font-weight: 700; letter-spacing: -0.04em; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: var(--step-1); }
.crumb { font-size: var(--step--1); }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--signal); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--panel); }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* résumé */
.resume { display: flex; flex-direction: column; gap: 44px; }
.resume > section { max-width: 860px; }
.resume section { display: flex; flex-direction: column; gap: 18px; }
.resume h2 { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.resume .skills-table { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.resume .skills-table dt { font-weight: 600; }
.resume .skills-table dd { margin: 0; color: var(--muted); }

/* 404 */
.lost { min-height: 60vh; display: flex; align-items: center; }
.lost .wrap { display: flex; flex-direction: column; gap: 20px; padding-block: 80px; }
.lost-tiles { display: grid; grid-template-columns: repeat(12, 18px); gap: 6px; }
.lost-tiles i { width: 18px; height: 18px; border-radius: 4px; background: var(--accent-deep); }
.lost-tiles i.down { background: transparent; border: 2px dashed var(--signal); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  .hero-portrait { justify-self: center; width: min(78%, 360px); }
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record li:nth-child(3) { padding-left: 0; border-left: 0; }
  .record li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature, .consult, .case-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { position: static; }
}
@media (max-width: 600px) {
  .nav a.nav-optional { display: none; }
  .site-header .wrap { gap: 14px; }
  .skills { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .role .when { grid-column: 1; grid-row: auto; }
  .resume .skills-table { grid-template-columns: 1fr; gap: 2px; }
  .resume .skills-table dd { margin-bottom: 10px; }
  .field-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print (résumé PDF) ---------- */
@media print {
  @page { size: letter; margin: 0.36in 0.5in; }
  :root { --ink: #fff; --ink-2: #fff; --panel: #fff; --line: #c9d1dc; --text: #111827; --muted: #4b5563; --accent: #1f3f7a; --accent-deep: #1f3f7a; --signal: #1f3f7a; --signal-text: #1f3f7a; }
  body { font-size: 9pt; line-height: 1.24; background: #fff; }
  .site-header, .site-footer, .no-print, .contact { display: none !important; }
  .page-head { padding: 0 0 8pt; border: 0; }
  .page-head h1 { font-size: 20pt; color: #1f3f7a; }
  .page-head .wrap { gap: 2pt; }
  .page-head p { font-size: 10pt; max-width: none; }
  .page-head p.print-only { font-size: 8.5pt !important; white-space: nowrap; }
  .section { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .resume { gap: 7pt; }
  .resume > section { max-width: none; }
  .resume section { gap: 4pt; break-inside: auto; }
  .resume h2 { font-size: 11pt; padding-bottom: 2pt; color: #1f3f7a; }
  .resume .skills-table { grid-template-columns: 1.7in 1fr; }
  .timeline { padding-left: 0; gap: 4pt; }
  .timeline::before, .timeline::after, .role::before { display: none; }
  .role { gap: 0 12pt; }
  .role h3 { font-size: 10.5pt; }
  .role ul { margin-top: 2pt; gap: 0; max-width: none; padding-left: 1em; }
  .role .org, .role .when, .role .note { font-size: 9.5pt; }
  .resume .skills-table { gap: 1pt 12pt; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
