/* stenbjerre.com — site styles (Nordic) */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #EEF1F3;
  --surface: #FFFFFF;
  --ink: #1D2B36;
  --navy: #1F3A4D;
  --navy-hover: #2F6B8A;
  --muted: #4A5A66;
  --subtle: #5F6E79;
  --rule: #CBD5DC;
  --rule-soft: #DCE4EA;
  --accent: #2F6B8A;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
a:focus-visible { outline: 2px solid var(--navy-hover); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Navigation */
.nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 16px; padding: clamp(20px, 3vw, 36px) 0;
}
.nav__name { font-size: 18px; font-weight: 600; text-decoration: none; }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-block; padding: 12px 0; text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.textlink { text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px;
  border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: background .15s, box-shadow .15s, color .15s;
}
.btn--primary { background: var(--navy); color: var(--bg); }
.btn--primary:hover { background: var(--navy-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--navy); }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 9vw, 112px);
}
.hero__text { flex: 999 1 520px; min-width: 0; }
.eyebrow { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.hero h1 {
  margin: 0 0 32px; font-weight: 300;
  font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.03em;
}
.hero h1 strong { font-weight: 600; }
.lede { margin: 0 0 40px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; color: var(--muted); max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__portrait { flex: 1 1 340px; margin: 0; max-width: 440px; }
.hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(20px, 3vw, 28px); }
.hero__portrait figcaption { margin-top: 14px; font-size: 14px; color: var(--subtle); }

/* Proof strip */
.proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 0; padding: 0; list-style: none;
}
.proof li { padding: 40px 28px; border-left: 1px solid var(--rule); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof__figure {
  display: block; font-size: clamp(28px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.proof p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Sections */
.section { padding-top: var(--section); }
.section h2 {
  margin: 0 0 32px; font-weight: 300;
  font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.15;
}
.section__intro { margin: -16px 0 40px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* What I do */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > h2 { flex: 1 1 260px; margin: 0; }
.pillars { flex: 999 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 40px; }
.pillars h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.pillars p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Track record */
.track { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.track li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 4px 32px; padding: 22px 0; border-top: 1px solid var(--rule);
}
.track__years { font-size: 15px; color: var(--subtle); font-variant-numeric: tabular-nums; padding-top: 2px; }
.track__org { font-weight: 600; display: block; }
.track__role { font-size: 15px; color: var(--subtle); }
.track__industry {
  display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
}
.track__outcome { color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: 24px; overflow: hidden;
  color: var(--ink); text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
a.card:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--rule); transform: translateY(-2px); }
.card__stage {
  background: var(--rule-soft); height: 300px; overflow: hidden;
  display: flex; justify-content: center; padding-top: 36px;
}
.phone {
  position: relative; flex: 0 0 auto; width: 190px;
  background: #10171D; border-radius: 34px 34px 0 0; padding: 9px 9px 0;
}
.phone__screen {
  position: relative; border-radius: 26px 26px 0 0; overflow: hidden;
  padding-top: 30px; background: var(--bar, #10171D);
}
.phone__screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 56px; height: 16px;
  margin-left: -28px; border-radius: 999px; background: #000; z-index: 1;
}
.phone img { width: 172px; height: auto; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { margin: 0; font-size: 22px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.badge { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.badge--live { background: #E3EEE7; color: #2D5A3E; }
.badge--dev { background: #F3ECDD; color: #6B4F1D; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.card__links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 500; }

/* Contact / footer */
.contact { margin-top: var(--section); padding: 64px 0 24px; border-top: 1px solid var(--rule); }
.contact__grid { display: flex; flex-wrap: wrap; gap: 32px 40px; justify-content: space-between; align-items: flex-start; }
.contact__text { flex: 999 1 480px; min-width: 0; }
.contact__mark { flex: 0 0 auto; width: 51px; height: auto; margin-top: 8px; }
.contact__text h2 { margin: 0 0 16px; font-weight: 300; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; }
.contact__text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 620px; }
.contact__links { flex: 1 1 260px; font-size: 16px; line-height: 2; }
.contact__email { font-size: 22px; font-weight: 500; }
.colophon { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--subtle); }

/* About page */
.about-hero { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding: clamp(24px, 4vw, 48px) 0 0; }
.about-hero__text { flex: 999 1 520px; min-width: 0; }
.about-hero h1 { margin: 0 0 28px; font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.about-hero__text p { margin: 0 0 20px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--muted); max-width: 640px; }
.about-hero__portrait { flex: 1 1 240px; max-width: 320px; margin: 0; }
.about-hero__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: clamp(20px, 3vw, 28px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 48px; margin: 0; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .projects { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 720px) {
  .track li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof li { padding: 24px 0; border-left: 0; }
  .proof li:nth-child(n+2) { border-top: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
