/* d0txyz portfolio. Swiss layout: one grid, one accent, mono labels. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #111418;
  --muted: #59636e;
  --line: #d5dae0;
  --accent: #2447f9;
  --shadow: 0 1px 2px rgb(17 20 24 / 6%), 0 12px 32px -12px rgb(17 20 24 / 18%);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1115;
    --surface: #161a20;
    --ink: #f0f3f6;
    --muted: #8d96a0;
    --line: #2a3038;
    --accent: #7b93ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 40px; } }

.mono {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.muted { color: var(--muted); }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
}
.top .mark { display: block; width: 104px; color: var(--ink); }
.top .mark:hover { color: var(--ink); }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Wordmark */
.wordmark { display: block; width: 100%; height: auto; aspect-ratio: 536 / 163; overflow: visible; }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 48px 72px;
  border-bottom: 1px solid var(--line);
}
.hero .big { width: min(100%, 620px); color: var(--ink); }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.025em;
  max-width: 20ch;
  margin-top: 40px;
}
.hero .lede { color: var(--muted); max-width: 54ch; margin-top: 20px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.status .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .status .pulse::after { animation: none; opacity: 0; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.actions a { font-weight: 500; }

.facts { display: grid; gap: 20px; align-content: end; }
.facts dt { margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 8fr 4fr; gap: 48px; padding-block: 64px 96px; }
  .facts { padding-bottom: 6px; }
}

/* Sections */
section.block { padding-block: 72px; }
.block + .block { border-top: 1px solid var(--line); }
.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  margin-bottom: 48px;
}
.head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.head h2 .mono { color: var(--muted); font-weight: 400; margin-right: 12px; }

/* Selected work */
.cases { display: grid; gap: 88px; }
.case { display: grid; gap: 24px; }
.case .meta { display: grid; gap: 16px; align-content: start; }
.case .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.case h3 { font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.case .what { font-size: 18px; line-height: 1.45; }
.case .context { color: var(--muted); }
.case .points { display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.case .points li { padding-left: 18px; position: relative; }
.case .points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 1px;
  background: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links a { font-family: var(--mono); font-size: 13px; }

.shot {
  align-self: start;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot .bar span { margin-left: 10px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

@media (min-width: 960px) {
  .case { grid-template-columns: 4fr 8fr; gap: 48px; }
}

/* Other work */
.rows > li {
  display: grid;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 18px; font-weight: 500; }
.rows p { color: var(--muted); font-size: 15px; }
@media (min-width: 960px) {
  .rows > li { grid-template-columns: 3fr 6fr 3fr; gap: 32px; align-items: baseline; }
  .rows .end { justify-self: end; text-align: right; }
}

/* Capabilities */
.caps { display: grid; gap: 0 48px; }
.caps > div { padding-block: 22px; border-top: 1px solid var(--line); }
.caps h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.caps p { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .caps { grid-template-columns: 1fr 1fr; } }

/* Languages */
.langs > li {
  display: grid;
  gap: 6px 32px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.langs > li:last-child { border-bottom: 1px solid var(--line); }
.langs .name { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.langs p { color: var(--muted); font-size: 15px; }
@media (min-width: 960px) {
  .langs > li { grid-template-columns: 3fr 5fr 4fr; align-items: baseline; }
  .langs .tags { justify-content: flex-end; }
}

/* Contact */
.contact { padding-block: 96px 72px; }
.contact h2 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.03em;
  max-width: 18ch;
}
.contact .actions a { font-size: 19px; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer a { color: var(--muted); }
