:root {
  --ground: #EDECE7;
  --ink: #121212;
  --ink-2: #2E2E2C;
  --muted: #4A4A46;
  --rule: rgba(18, 18, 18, .2);
  --accent: #FF6A2B;
  --chip: #D6D4CC;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #B8380A; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; border-bottom: 1.5px solid var(--ink); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.site-nav { display: flex; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { margin: 28px 0 0; font-size: clamp(48px, 8.4vw, 124px); line-height: .92; letter-spacing: -.045em; font-weight: 800; max-width: 12ch; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 48px; }
.hero-foot p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 34ch; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-solid { background: var(--ink); color: var(--ground); }
.btn-solid:hover { color: #fff; background: #000; }
.btn:not(.btn-solid):hover { background: var(--ink); color: var(--ground); }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1.5px solid var(--ink); padding: 20px 0; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.section-head .count { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Project rows */
.project { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 32px 0; border-top: 1px solid var(--rule); }
.project-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.project-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.project-title .num { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.project-title h3 { margin: 0; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.035em; line-height: 1; font-weight: 800; }
.tag { font-family: var(--mono); font-size: 12px; padding: 5px 10px; text-transform: uppercase; align-self: center; }
.tag-live { background: var(--accent); }
.tag-building { border: 1.5px solid var(--ink); padding: 4px 9px; }
.tag-concept { background: var(--chip); }
.project-text p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 46ch; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; font-size: 14px; max-width: 520px; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.project-link { font-weight: 600; font-size: 16px; margin-top: 4px; }
.project-link.pending { color: var(--muted); text-decoration: none; }
.shot { flex: 1 1 340px; min-width: 0; border: 1.5px solid var(--ink); background: #fff; overflow: hidden; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s ease; }
a.shot:hover img { transform: scale(1.02); }
.shot-empty { aspect-ratio: 16 / 10; border-style: dashed; background: transparent; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink); }
.minor div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 24px 24px 24px 0; }
.minor .name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.minor .note { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* Résumé */
.resume { padding: clamp(64px, 8vw, 112px) 0; }
.resume .section-head { border-top: 0; padding-top: 0; margin-bottom: 40px; }
.resume-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.resume h3 { margin: 0 0 20px; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.job { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.job:last-child { border-bottom: 1px solid var(--rule); }
.job strong { display: block; font-size: 20px; }
.job span { display: block; font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.job time { font-family: var(--mono); font-size: 13px; }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 8px 14px; border: 1px solid var(--ink); font-size: 15px; }
.about { margin: 32px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }

/* Footer */
.contact { border-top: 1.5px solid var(--ink); padding: clamp(56px, 8vw, 104px) 0 40px; }
.contact .big { display: block; margin-top: 20px; font-size: clamp(36px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; font-size: 16px; font-weight: 500; }
.contact-links .copy { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; }
  .status { font-size: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-links .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
}

.resume h3.sub { margin-top: 40px; }
.job time:empty { display: none; }
