/* Tim Ness — Portfolio. Simulation aesthetic: dark, data-driven, precise. */

:root {
  --bg: #0a0e13;
  --panel: #10161d;
  --panel-2: #141c25;
  --line: #22303c;
  --text: #d7e0e8;
  --dim: #8296a5;
  --accent: #52e0c4;
  --accent-2: #ffb454;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 70%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 40%, #000 75%);
  mask-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 70%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 40%, #000 75%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(82, 224, 196, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 19, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.site-header .page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.brand .tag { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.site-nav a:hover { color: var(--accent); border-color: var(--line); }
.site-nav a.active { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; }

.hero .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero .headline {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--accent-2);
  margin-bottom: 24px;
}

.hero .lede {
  font-size: 18px;
  color: var(--dim);
  max-width: 800px;
}

.status-line {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.status-line .ok { color: var(--accent); }

/* ---------- sections ---------- */

section { padding: 40px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 20px;
  background: var(--panel);
}

h2 {
  font-size: 26px;
  font-weight: 650;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

p + p { margin-top: 12px; }

.lead { color: var(--dim); font-size: 17px; }

ul.bullets { list-style: none; margin-top: 8px; }

ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

ul.bullets li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

/* ---------- project list ---------- */

.project-list { display: grid; gap: 14px; margin-top: 8px; }

.project-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.project-card .row1 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.project-card h3 { font-size: 19px; }
.project-card h3 .arrow { color: var(--accent); font-family: var(--mono); font-size: 15px; margin-left: 8px; }

.project-card .meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 4px;
}

.project-card .desc {
  color: var(--dim);
  font-size: 14.5px;
  margin-top: 10px;
  max-width: 640px;
}

/* ---------- tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 3px 9px;
  border-radius: 3px;
}

.tag.warn { color: var(--accent-2); }

/* ---------- project page header ---------- */

.project-header { padding: 56px 0 8px; }

.project-header .kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.project-header h1 {
  font-size: 38px;
  font-weight: 650;
  line-height: 1.15;
  margin-bottom: 14px;
}

.project-header .sub {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.9;
}

.project-header .sub b { color: var(--text); font-weight: 600; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.shot {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(82, 224, 196, 0.04) 10px 11px),
    var(--panel);
  border: 1px dashed var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
}

/* ---------- timeline (background page) ---------- */

.timeline { display: grid; gap: 0; margin-top: 8px; }

.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.tl-item:last-child { border-bottom: none; }

.tl-item .when {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  padding-top: 3px;
}

.tl-item h3 { font-size: 17px; }
.tl-item .where {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 2px;
}

.tl-item p { color: var(--dim); font-size: 14.5px; margin-top: 8px; }

/* ---------- contact ---------- */

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.contact-list a, .contact-list .item {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

.contact-list a:hover { border-color: var(--accent); }

.contact-list .label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 40px;
}

.site-footer .page {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- small ---------- */

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.availability .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.note {
  font-size: 13.5px;
  color: var(--dim);
  font-family: var(--mono);
  border-left: 3px solid var(--accent-2);
  padding: 8px 14px;
  background: var(--panel);
  margin-top: 16px;
}

.award-callout {
  display: block;
  text-decoration: none;
  scroll-margin-top: 10rem;
}

.award-callout strong, .award-callout h3, .award-callout a { color: var(--accent-2); }
.award-callout strong { display: block; }
a.award-callout:hover { border-left-color: var(--accent); }
.award-callout + h3 { margin-top: 20px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .project-header h1 { font-size: 28px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
}
