:root {
  --bg: oklch(0.968 0.003 95);
  --card: oklch(0.995 0.002 95);
  --card-2: oklch(0.978 0.003 95);
  --ink: oklch(0.23 0.006 270);
  --ink-soft: oklch(0.42 0.006 270);
  --muted: oklch(0.60 0.006 270);
  --faint: oklch(0.74 0.005 270);
  --line: oklch(0.90 0.004 95);
  --line-soft: oklch(0.93 0.003 95);
  --accent: oklch(0.62 0.13 150);
  --accent-ink: oklch(0.46 0.11 150);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px oklch(0.4 0.02 270 / 0.04), 0 8px 24px oklch(0.4 0.02 270 / 0.05);
  --maxw: 820px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 20px 80px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 18px auto 0;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 18px;
  background: oklch(0.995 0.002 95 / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-family: "Schibsted Grotesk";
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  position: relative;
}

.brand .mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.nav-links a:hover {
  background: var(--card-2);
  color: var(--ink);
}

.nav-links a.cta {
  background: var(--ink);
  color: oklch(0.98 0.002 95);
}

.nav-links a.cta:hover {
  background: oklch(0.33 0.006 270);
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: oklch(0.62 0.13 150 / 0.1);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.6);
    opacity: .5
  }

  100% {
    transform: scale(1.8);
    opacity: 0
  }
}

/* ---------- HERO ---------- */
section {
  margin-top: 16px;
}

.hero {
  padding: 38px 40px 40px;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 52px);
  font-weight: 600;
}

.hero h1 .soft {
  color: var(--faint);
}

.hero p.lead {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform .15s, background .2s, border-color .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: oklch(0.98 0.002 95);
}

.btn-primary:hover {
  background: oklch(0.33 0.006 270);
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--faint);
  background: var(--card-2);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- PORTRAIT ---------- */
.portrait {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 12;
  object-fit: cover;
  object-position: 50% 22%;
}

.portrait .cap {
  position: absolute;
  left: 22px;
  bottom: 18px;
  background: oklch(0.995 0.002 95 / 0.86);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- SECTION HEAD ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.block {
  padding: 36px 40px 38px;
}

.block>h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  margin-top: 14px;
}

.block>.sub {
  color: var(--muted);
  margin-top: 10px;
  max-width: 50ch;
  font-size: 16px;
}

/* ---------- EXPERIENCE ---------- */
.xp {
  margin-top: 30px;
  position: relative;
}

.xp-item {
  position: relative;
  padding: 0 0 30px 30px;
  border-left: 1.5px solid var(--line);
}

.xp-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.xp-item::before {
  content: "";
  position: absolute;
  left: -9.5px;
  top: 0px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--faint);
}

.xp-item.now::before {
  background: var(--accent);
  border-color: oklch(0.62 0.13 150 / 0.35);
  box-shadow: 0 0 0 4px oklch(0.62 0.13 150 / 0.12);
}

.xp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.xp-co {
  font-family: "Schibsted Grotesk";
  font-weight: 600;
  font-size: 18px;
}

.xp-date {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.xp-role {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 2px;
}

.xp-desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-top: 10px;
}

/* ---------- SKILLS ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.chip {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  padding: 9px 15px;
  border-radius: 999px;
  transition: border-color .2s, color .2s, transform .15s;
}

.chip:hover {
  border-color: var(--faint);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- PROJECTS ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.proj {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  transition: border-color .25s, transform .2s, box-shadow .25s;
}

a.proj:hover {
  border-color: var(--faint);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.proj-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.proj-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

a.proj:hover .proj-cover img {
  transform: scale(1.04);
}

.proj-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: oklch(0.995 0.002 95 / 0.9);
  backdrop-filter: blur(6px);
  color: var(--ink);
  transition: background .2s, color .2s, transform .25s;
}

a.proj:hover .proj-arrow {
  background: var(--ink);
  color: oklch(0.98 0.002 95);
  transform: rotate(-45deg);
}

.proj-arrow svg {
  width: 14px;
  height: 14px;
}

.proj-body {
  padding: 22px 24px 22px;
  display: flex;
  flex-direction: column;
}

.proj-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-name {
  font-family: "Schibsted Grotesk";
  font-weight: 600;
  font-size: 21px;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.proj-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: oklch(0.62 0.13 150 / 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.proj-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 12px;
}

.proj-url {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  font-family: "Schibsted Grotesk";
}

/* ---------- TWO-COL ---------- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini {
  padding: 30px 32px 32px;
}

.mini h3 {
  font-size: 20px;
  font-weight: 600;
}

.mini .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 4px;
}

.lang-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lang-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lang-row:first-of-type {
  padding-top: 22px;
}

.lang-name {
  font-weight: 600;
  font-family: "Schibsted Grotesk";
}

.lang-lvl {
  font-size: 13.5px;
  color: var(--muted);
}

.edu {
  margin-top: 22px;
}

.edu .deg {
  font-family: "Schibsted Grotesk";
  font-weight: 600;
  font-size: 19px;
}

.edu .school {
  color: var(--ink-soft);
  margin-top: 6px;
  font-size: 15.5px;
}

.edu .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 44px 40px 40px;
  background: var(--ink);
  border-color: oklch(0.3 0.006 270);
}

.contact .eyebrow {
  color: oklch(0.7 0.005 270);
}

.contact .eyebrow .pip {
  background: var(--accent);
}

.contact h2 {
  color: oklch(0.97 0.003 95);
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 600;
  margin-top: 14px;
}

.contact p.sub {
  color: oklch(0.72 0.005 270);
  margin-top: 14px;
  max-width: 46ch;
  font-size: 16.5px;
}

.clist {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.crow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: oklch(0.27 0.006 270);
  border: 1px solid oklch(0.33 0.006 270);
  transition: background .2s, border-color .2s, transform .15s;
}

a.crow:hover {
  background: oklch(0.31 0.006 270);
  border-color: oklch(0.42 0.006 270);
  transform: translateY(-2px);
}

.crow .ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.crow .ico svg {
  width: 100%;
  height: 100%;
}

.crow .ck {
  font-size: 12px;
  color: oklch(0.62 0.005 270);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.crow .cv {
  color: oklch(0.94 0.003 95);
  font-weight: 500;
  font-size: 15px;
  margin-top: 2px;
  word-break: break-word;
}

footer {
  max-width: var(--maxw);
  margin: 26px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13.5px;
}

footer .brand {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .dot::after {
    animation: none
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
  body {
    padding: 0 14px 56px;
    font-size: 16px;
  }

  .nav {
    padding: 9px 10px 9px 14px;
  }

  .nav-links a:not(.cta) {
    display: none;
  }

  .avail span.txt {
    display: none;
  }

  .avail {
    padding: 6px;
  }

  .hero {
    padding: 28px 22px 30px;
  }

  .block,
  .mini,
  .contact {
    padding: 26px 22px 28px;
  }

  .grid2,
  .clist {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }

  .portrait img {
    aspect-ratio: 4 / 4.4;
  }

  .hero p.lead,
  .block>.sub {
    font-size: 16px;
  }
}
