/* Upsample Software — site styles. Single dark theme; the logo is drawn for a dark ground. */
:root {
  color-scheme: dark;
  --bg: #0f141b;
  --surface: #161d27;
  --raise: #1c2531;
  --ink: #e9edf2;
  --muted: #9ba7b6;
  --line: #263142;
  --accent: #f4b52f;   /* the logo's yellow-orange */
  --blue: #5aa6f5;     /* the logo's blue square, lifted for dark */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; font-stretch: 88%; letter-spacing: -0.015em; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px; border-bottom: 1px solid var(--line); }
.nav img { width: 180px; height: auto; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 32px); align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.mail { color: var(--bg); background: var(--accent); padding: 8px 14px; border-radius: 4px; font-weight: 600; }

/* Hero */
.hero { padding-block: clamp(64px, 11vw, 140px) clamp(48px, 7vw, 80px); display: grid; gap: 24px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; font-stretch: 80%; letter-spacing: -0.02em; line-height: 0.96; max-width: 18ch; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--muted); max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 8px; font-size: 0.95rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

/* Work grid */
section.block { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; max-width: 64ch; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 24px; }
.work figure { grid-column: span 2; display: grid; gap: 14px; align-content: start; min-width: 0; }
.work figure.lg { grid-column: span 3; }
.work img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--surface); }
.work h3 { font-size: 1.25rem; font-weight: 700; }
.work figcaption { display: grid; gap: 6px; }
.work figcaption p { color: var(--muted); font-size: 0.97rem; }
.work.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work.four figure { grid-column: span 1; }
.work.four img { aspect-ratio: 4 / 3; }
.work h3 .now { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-top: 3px; }
@media (max-width: 900px) { .work.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .work { grid-template-columns: repeat(2, 1fr); } .work figure, .work figure.lg { grid-column: span 1; } .work figure.lg:first-child { grid-column: span 2; } }
@media (max-width: 560px) { .work, .work.four { grid-template-columns: 1fr; } .work figure, .work figure.lg, .work figure.lg:first-child { grid-column: span 1; } }

/* Services band */
.band { background: var(--surface); }

/* Background */
.creds { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.creds li { padding-block: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.creds b { color: var(--ink); font-weight: 700; }

/* Services */
.svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 620px) { .svcs { grid-template-columns: 1fr; } .svc:last-child:nth-child(odd) { grid-column: auto; } }
.svc { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; display: grid; gap: 12px; align-content: start; }
.svc h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 88%; }
.svc p { color: var(--muted); }
.svc .stack { align-self: end; font-size: 0.86rem; font-weight: 600; color: var(--blue); }

/* Contact */
.contact { background: var(--raise); }
.contact .wrap { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 16px; }
.contact a.big { font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 88%; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact p { color: var(--muted); }
footer { padding-block: 24px 36px; color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 12px; border-radius: 4px; font-weight: 600; z-index: 10; }
.skip:focus { left: 16px; }

