@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #141414;
  --ink-soft: #565656;
  --muted: #9b9b9b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --fill: #f3f3f3;
  --pill: #141414;
  --maxw: 1080px;
  --pad: 32px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap, .nav__inner, .foot__inner, .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   Nav
   ============================================================ */
.nav { padding-top: 26px; }
.nav__inner { display: flex; align-items: baseline; justify-content: flex-end; }
.nav__logo { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav__tabs { display: flex; gap: 26px; font-size: 15px; }
.nav__tabs a {
  color: var(--ink-soft); padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav__tabs a:hover { color: var(--ink); }
.nav__tabs a.is-active { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   Intro
   ============================================================ */
.intro { padding: 168px 0 192px; }
.intro h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 960px;
}

/* ============================================================
   Projects
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: 128px; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.project--reverse .project__media { order: -1; }
.project__text h2 { font-size: 20px; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.02em; }
.project__text p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; max-width: 440px; margin-bottom: 24px; }

.pill {
  display: inline-block; background: var(--pill); color: #fff;
  font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 22px;
  transition: opacity .2s;
}
.pill:hover { opacity: .82; }
.pill--muted { background: var(--fill); color: var(--muted); }

/* Image placeholders */
.ph {
  background: var(--fill); display: flex; align-items: center; justify-content: center;
  color: #b6b6b6; font-size: 13px; text-align: center; padding: 16px; border-radius: 6px;
}
.ph--wide { aspect-ratio: 4 / 3; }
.ph--sm { aspect-ratio: 4 / 3; }
.project__img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; }

/* Laptop device mockup */
.laptop { display: block; }
.laptop__lid {
  display: block; background: #141414; padding: 9px 9px 10px;
  border-radius: 14px 14px 6px 6px; box-shadow: 0 18px 36px rgba(0,0,0,.16);
}
.laptop__lid img { width: 100%; display: block; border-radius: 4px; }
.laptop__base {
  display: block; width: 116%; margin-left: -8%; height: 13px;
  background: linear-gradient(180deg, #d6d6d8 0%, #b2b2b6 55%, #98989c 100%);
  border-radius: 0 0 12px 12px; position: relative;
  box-shadow: 0 10px 14px rgba(0,0,0,.12);
}
.laptop__base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 5px; background: #9a9a9e; border-radius: 0 0 7px 7px;
}

/* ============================================================
   Archive
   ============================================================ */
.archive { margin-top: 140px; }
.label { font-size: 21px; font-weight: 500; margin-bottom: 34px; letter-spacing: -0.01em; }
.archive__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.archive__item .ph { margin-bottom: 14px; }
.archive__item p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   About
   ============================================================ */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; padding-bottom: 40px; }
.prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 560px; margin-bottom: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.about__meta { display: flex; flex-direction: column; gap: 36px; }

/* About — warm intro */
.about-hero { padding: 88px 0 72px; max-width: 840px; }
.about-hero__text p { max-width: 760px; }
.about-hello {
  font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.about-hello .wave { display: inline-block; }
.about-hero__text p:last-child { margin-bottom: 0; }
.about-cta { margin-top: 28px; }

.about-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  padding: 8px 0 56px; border-top: 1px solid var(--line); padding-top: 48px;
}
.meta-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.meta-list li { font-size: 15px; color: var(--ink); padding: 8px 0; border-top: 1px solid var(--line); }
.meta-list--exp li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.meta-list--exp em { font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ============================================================
   Contact
   ============================================================ */
.contact { max-width: 640px; padding-bottom: 60px; }
.contact__lead { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 40px; }
.contact__links li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.contact__k { width: 90px; flex: none; color: var(--muted); font-size: 14px; }
.contact__links a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.contact__links a:hover { border-color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.foot { margin-top: 140px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot__email { font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot__email:hover { border-color: var(--ink); }
.foot__right { display: flex; gap: 24px; align-items: center; }
.foot__right a:hover { color: var(--ink); }

/* ============================================================
   Case study pages (monochrome)
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60; background: var(--ink); transition: width .1s linear; }

.cs-hero { padding: 56px 0 24px; }
.cs-back { display: inline-block; color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.cs-back:hover { color: var(--ink); }
.cs-hero__eyebrow { font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.cs-hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -0.02em; }
.cs-hero__sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 680px; margin-top: 22px; line-height: 1.5; }

.cs-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; margin-top: 40px; }
.cs-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-weight: 500; font-size: 16px; }

.cs-figure { margin: 0 0 8px; }
.cs-figure figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }
.cs-figure video, .cs-figure img {
  width: 100%; display: block; border: 1px solid var(--line); border-radius: 8px;
}
.cs-figure--hero { margin-top: 36px; }
.placeholder {
  border: 1px solid var(--line); border-radius: 6px; background: var(--fill);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--ink-soft); text-align: center; padding: 24px; min-height: 220px;
}
.placeholder span { font-weight: 600; }
.placeholder small { color: var(--muted); }
.placeholder--xl { min-height: 460px; }
.placeholder--sm { min-height: 150px; }

.cs-body { padding: 64px 0 40px; }
.cs-grid { display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: start; }

.cs-toc { position: sticky; top: 40px; }
.cs-toc__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.cs-toc nav { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.cs-toc nav a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: 14px; transition: color .2s, border-color .2s; }
.cs-toc nav a:hover { color: var(--ink); }
.cs-toc nav a.active { color: var(--ink); border-color: var(--ink); }

.cs-content { max-width: 720px; }
.cs-section { margin-bottom: 64px; }
.cs-section h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 600; margin-bottom: 18px; }
.cs-section h3 { font-size: 19px; font-weight: 600; margin: 34px 0 10px; }
.cs-section p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.cs-section .lede { font-size: 20px; color: var(--ink); }
.cs-section .lede strong { color: var(--ink); }

.cs-list { color: var(--ink-soft); font-size: 17px; padding-left: 22px; list-style: disc; }
.cs-list li { margin-bottom: 10px; }

.callout { border-left: 3px solid var(--ink); background: var(--fill); padding: 22px 24px; border-radius: 0 6px 6px 0; margin: 24px 0; }
.callout__q { font-size: 19px; font-style: italic; color: var(--ink); margin-bottom: 10px; }
.callout__src { font-size: 14px; color: var(--muted); }

.cs-figure-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0; }

.feature { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: center; }
.feature__num { font-weight: 600; font-size: 16px; color: #fff; flex: none; width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; text-align: center; }
.stat__num { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.stat__label { color: var(--ink-soft); font-size: 14px; }

.cs-next { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 24px; }
  .project--reverse .project__media { order: 0; }
  .archive__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-hero { padding: 56px 0 48px; }
  .about-facts { grid-template-columns: 1fr; gap: 36px; }
  .cs-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-toc { display: none; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 520px) {
  :root { --pad: 22px; }
  .intro { padding: 72px 0 96px; }
  .projects { gap: 80px; }
  .archive__grid { grid-template-columns: 1fr; }
  .cs-figure-row, .stats { grid-template-columns: 1fr; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
