:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #ababab;
  --accent: #5ac8fa;
  --border: #383838;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Schibsted Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Generic container */

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* STICKY HEADER (visible on scroll) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.98),
    rgba(0, 0, 0, 0.9)
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 56, 56, 0.8);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 50px; /* reduced from 160px for desktop & tablet */
}

.header-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.header-subtitle {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.nav-link {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  opacity: 0.7;
  transition: color 0.16s ease, opacity 0.16s ease, text-decoration-color 0.16s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-nav .nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* MAIN LAYOUT */

.layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* LEFT COLUMN */

.sidebar {
  flex: 0 0 368px;
  max-width: 368px;
  padding-right: 10px;
}

/* RIGHT COLUMN */

.content {
  flex: 1 1 auto;
  padding-left: 20px;
}

/* Generic block with top border */

.block {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-bottom: 40px;
}

/* Bio */

.bio {
  padding-right: 40px;
  padding-bottom: 40px;
}

.bio p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Contact links */

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  text-decoration: none;
  border-top: 0.5px solid var(--border);
  background: #000000;
}

.link-row-main {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.link-row-arrow {
  font-size: 10px;
  color: var(--text);
}

/* SECTION TITLES (H1) */

.section-title {
  margin: 0 0 24px;
  font-size: 24px;          /* H1 -> 24px */
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Generic body of sections */

.section-body {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* EXPERIENCE / JOBS */

.job {
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}

/* two-column layout on desktop/tablet */
.job-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.4fr);
  column-gap: 30px;
  row-gap: 0;
}

.job-title-group {
  min-width: 220px;
}

.job-role {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-company,
.job-time,
.job-location {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* used on <ul> */
.job-description {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  list-style-position: outside;
  padding-left: 20px;
  margin: 0;
}

.job-description li {
  margin-bottom: 8px;
}

/* SKILLS */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  column-gap: 37px;
  row-gap: 48px;
}

.skills-column {
  max-width: 387.5px;
}

.skills-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.skills-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.skills-list li {
  margin-bottom: 6px;
}

/* EDUCATION */

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  column-gap: 37px;
  row-gap: 20px;
}

.education-column {
  max-width: 387.5px;
}

.education-degree {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.education-meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
  border-top: 0.5px solid var(--border);
}

.footer-link {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-link.accent {
  color: var(--accent);
  text-decoration: underline;
}

.footer-link.muted {
  color: var(--text);
  opacity: 0.5;
}

/* -----------------------------------
   RESPONSIVE
   -------------------------------- */

/* Tablet (similar to 740px Figma layout) */
@media (max-width: 900px) {
  .header-inner {
    max-width: 740px;
    padding-bottom: 50px; /* also 50px on tablet */
  }

  .header-title,
  .header-subtitle,
  .nav-link {
    font-size: 22px;
  }

  .layout {
    max-width: 740px;
    flex-direction: row;
  }

  .sidebar {
    flex: 0 0 360px;
    padding-right: 10px;
  }

  .content {
    flex: 1 1 auto;
    padding-left: 20px;
  }

  .bio {
    padding-right: 0;
  }

  .footer-link {
    font-size: 22px;
  }
}

/* Mobile (similar to 335px Figma layout) */
@media (max-width: 640px) {
  .container {
    max-width: 335px;
  }

  .header-inner {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 10px;
  }

  .header-name {
    width: 100%;
  }

  .header-title,
  .header-subtitle {
    font-size: 20px;
  }

  .header-nav {
    gap: 26px;
  }

  .nav-link {
    font-size: 20px;
  }

  .layout {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar,
  .content {
    padding: 0;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .bio {
    padding-right: 0;
  }

  .section-body {
    gap: 40px;
  }

  /* stack experience columns on mobile */
  .job-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .job-description {
    font-size: 15px;
    line-height: 1.4;
  }

  /* stack skills and education columns on mobile */
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    width: 100%;
  }

  .footer-link {
    font-size: 20px;
  }
}

/* ================================
   WORK PAGE
   ================================ */

.work-page {
  padding-top: 40px;
}

.work-hero {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-heading {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.work-intro-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Projects list */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.project-meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.project-summary {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* 3-column grid for goals / process / outcomes */
.project-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.project-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-section ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.project-section li {
  margin-bottom: 6px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive tweaks for work page */

@media (max-width: 900px) {
  .work-heading {
    font-size: 28px;
  }

  .project-sections {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .work-page {
    padding-top: 24px;
  }

  .work-heading {
    font-size: 24px;
  }

  .projects-grid {
    margin-top: 24px;
    gap: 32px;
  }

  .project-sections {
    grid-template-columns: 1fr;
  }
}


/* Images inside project case studies */
.project-media {
  margin: 12px 0 20px;
}

.project-media img {
  width: 100%;
  display: block;
  border-radius: 16px;
  max-height: 320px;
  object-fit: cover;
  background: #090101;
  border: 1px solid rgba(255, 255, 255, 0.06);
}


/* ================================
   WORK PAGE – WIP PLACEHOLDER
   ================================ */

.wip-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(90, 200, 250, 0.6);
  animation: wip-pulse 1.6s ease-out infinite;
}

@keyframes wip-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(90, 200, 250, 0.6);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(90, 200, 250, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(90, 200, 250, 0);
  }
}

/* Work section placeholder – case studies in progress */

.work-placeholder {
  margin-top: 40px;
  padding-top: 30px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border);
}

.work-placeholder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.placeholder-column {
  flex: 1 1 320px;
  max-width: 480px;
}

.work-subheading {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}

.work-placeholder-copy {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.placeholder-list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.placeholder-list li {
  margin-bottom: 6px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.inline-link:hover {
  opacity: 0.9;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
}

.primary-cta:hover {
  background: rgba(90, 200, 250, 0.08);
}

@media (max-width: 640px) {
  .work-placeholder {
    margin-top: 24px;
    padding-bottom: 60px;
  }
}
