/* ============ tokens ============ */
:root {
  /* exact background color of the ASCII wordmark PNG, so it blends in seamlessly */
  --bg: #09090b;
  --bg-card: #111113;
  --line: #2a2a2e;
  --text: #eceae6;
  --text-dim: #8b8b92;
  --accent: #ff5c1a;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ============ header / nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

/* sizing for the logo asset once dropped in */
.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px clamp(14px, 2.2vw, 32px);
  font-family: var(--mono);
  font-size: 14px;
}

.site-nav a {
  color: var(--text-dim);
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ============ hero ============ */
.hero {
  padding: clamp(32px, 4.5vw, 64px) var(--pad) clamp(48px, 7vw, 100px);
}

.hero h1 {
  font-size: clamp(26px, 4.1vw, 80px);
  font-weight: 600;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin-top: clamp(20px, 2vw, 36px);
  font-size: clamp(16px, 2.5vw, 48px);
  line-height: 1.25;
}

.hero-lead a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.hero-lead a:hover { border-color: var(--accent); }

@media (max-width: 720px) {
  .wide-only { display: none; }
}

/* ============ work ============ */
.work { padding: 0 var(--pad); }

.work-group { margin-bottom: clamp(48px, 8vw, 110px); }

.group-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 28px;
}

.group-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.group-header h2 {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 22vw, 420px), 1fr));
  gap: clamp(22px, 1.6vw, 32px);
}

/* full scale: always four thumbnails across */
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  transition: border-color 0.15s, transform 0.15s;
}

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

.thumb {
  background: var(--bg);
  border-radius: 4px;
  margin-bottom: 14px;
  padding: 14px 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}

.thumb pre {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  transition: color 0.15s;
}

.card:hover .thumb pre { color: var(--accent); }

.thumb-img {
  padding: 0;
}

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

.thumb-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
}

.card-tags {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ============ services page ============ */
.services-page { padding: clamp(32px, 5vw, 72px) var(--pad) 0; }

.services-intro h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.service { margin-bottom: clamp(48px, 8vw, 110px); }

.service-body {
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.service-lead {
  font-family: var(--mono);
  color: var(--accent);
  font-size: clamp(16px, 1.7vw, 20px);
}

.service-body p + p { margin-top: 1em; }

.service-body em { font-style: italic; }

.service-points {
  list-style: none;
  margin-top: 1.2em;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
}

.service-points li { padding: 4px 0; }

.service-points li::before {
  content: "> ";
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
  gap: 22px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.flyer-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ============ case study page ============ */
.case-study { padding: clamp(28px, 4vw, 56px) var(--pad) 0; }

.case-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}

.case-back:hover { color: var(--accent); }

.case-header { margin-top: clamp(20px, 3vw, 40px); }

.case-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.case-header h1 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
}

.case-art {
  margin-top: clamp(24px, 4vw, 40px);
  max-width: 620px;
  min-height: 180px;
}

.case-art pre {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.45;
  color: var(--accent);
}

.case-art.thumb-img {
  min-height: 0;
  border: 1px solid var(--line);
}

.case-art.thumb-img img {
  height: auto;
  object-fit: contain;
}

.case-body {
  max-width: 620px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(48px, 8vw, 96px);
  font-size: clamp(16px, 1.6vw, 19px);
}

.case-body p + p { margin-top: 1em; }

.case-body em { font-style: italic; }

.case-points {
  list-style: none;
  margin-top: 1.2em;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
}

.case-points li { padding: 4px 0; }

.case-points li::before {
  content: "> ";
  color: var(--accent);
}

/* ============ about page ============ */
.about-page {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(40px, 6vw, 96px) var(--pad);
  min-height: calc(100vh - 220px);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.about-text { max-width: 560px; }

.about-text h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
}

.about-contact {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.about-contact a {
  font-family: var(--mono);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

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

.about-bio-label {
  margin-top: 48px;
  font-size: 16px;
  font-weight: 600;
}

.about-bio {
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
}

.about-resume-link {
  font-family: var(--mono);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

.about-resume-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 48px;
}

.social-links a {
  color: var(--text);
  transition: color 0.15s;
}

.social-links a:hover { color: var(--accent); }

.social-links svg { display: block; }

@media (max-width: 760px) {
  .about-page {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ============ footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--pad);
}

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

.footer-links { display: flex; gap: 24px; }

.footer-links a:hover { color: var(--accent); }
