/* =========================================================
   EQ Partners — shared stylesheet
   Type: Schibsted Grotesk (display) · Hanken Grotesk (body)
         · Newsreader italic (editorial)
   ========================================================= */

:root {
  /* Core palette */
  --ink:        #141414;
  --ink-2:      #3a3a38;
  --ink-3:      #6b6b66;
  --ink-4:      #9a9a92;
  --paper:      #f7f6f2;
  --paper-2:    #efeee8;
  --paper-3:    #e6e4dc;
  --line:       #dddbd1;
  --line-2:     #cecabd;
  --white:      #fcfbf8;

  /* Accent — muted teal */
  --accent:     #1a7a6b;
  --accent-ink: #0f5a4e;
  --accent-soft:#e2efe9;

  /* Per-product hues */
  --borrow:   #bf6a2e;   /* warm amber  */
  --airtrack: #2b7e8c;   /* air cyan    */
  --interplay:#6a4f9c;   /* plum        */
  --os:       #2f3a36;   /* graphite    */

  /* Type */
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --serif:   "Newsreader", Georgia, serif;

  /* Layout */
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 64px);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 150px); }

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
  line-height: 1;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn { white-space: nowrap; }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.tlink .arrow { transition: transform .35s var(--ease); }
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink); position: relative; flex: none;
}
.brand .mark::before, .brand .mark::after {
  content: ""; position: absolute; background: var(--paper);
}
.brand .mark::before { left: 7px; top: 7px; width: 5px; height: 12px; border-radius: 1px; }
.brand .mark::after  { left: 14px; top: 7px; width: 5px; height: 12px; border-radius: 1px; opacity: .55; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.navitem {
  padding: 9px 14px; border-radius: 100px;
  font-weight: 500; font-size: 15.5px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a.navitem:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.navitem.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; width: 20px; height: 1.6px; background: var(--ink); display: block; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.6px; background: var(--ink); transition: .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(64px, 9vw, 110px) 40px;
}
.site-footer a { color: var(--paper); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid #2c2c2a;
}
.footer-cta h2 { font-size: clamp(34px, 5vw, 60px); color: var(--white); letter-spacing: -0.03em; }
.footer-cta p { color: #b6b5ad; margin-top: 18px; max-width: 34ch; }
.footer-cta .btn-primary { background: var(--paper); color: var(--ink); margin-top: 30px; }
.footer-cta .btn-primary:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-family: var(--body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #84847d; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: #c9c8c0; font-size: 16px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; flex-wrap: wrap; gap: 16px;
  color: #84847d; font-size: 14px;
}
.footer-bottom .brand { color: var(--paper); }
.footer-bottom .brand .mark { background: var(--paper); }
.footer-bottom .brand .mark::before, .footer-bottom .brand .mark::after { background: var(--ink); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 16px var(--gut) 30px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  body.menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a.navitem { padding: 16px 6px; font-size: 19px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.muted { color: var(--ink-3); }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   SHARED COMPONENT: section heading row
   ============================================================ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 50px); max-width: 18ch; }
.sec-head .lead { color: var(--ink-3); max-width: 40ch; }

/* ============================================================
   SHARED COMPONENT: work cards grid
   ============================================================ */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.work-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(20,20,20,.32); border-color: var(--line-2); }
.work-thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: var(--prod, var(--ink));
  display: flex; align-items: flex-end; padding: 26px;
}
.work-thumb .ph-label {
  position: absolute; top: 18px; left: 18px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 7px;
}
.work-thumb .ph-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.work-thumb .thumb-art { position: absolute; inset: 0; opacity: .9; }
.work-thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .92; transition: transform .6s ease; }
.work-card:hover .thumb-img { transform: scale(1.04); }
.work-thumb .wm {
  position: relative; font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 40px); color: #fff; letter-spacing: -0.03em; z-index: 2;
}
.work-thumb .wm-logo { position: relative; z-index: 2; height: clamp(20px, 2vw, 26px); width: auto; max-width: 150px; filter: brightness(0) invert(1); opacity: .9; }
.work-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 100px; background: var(--paper-2); color: var(--ink-2);
}
.work-body h3 { font-size: 25px; letter-spacing: -0.025em; }
.work-body .desc { color: var(--ink-3); font-size: 16px; line-height: 1.5; }
.work-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.work-metric { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.work-metric span { color: var(--ink-3); font-family: var(--body); font-weight: 500; font-size: 13.5px; display: block; letter-spacing: 0; }
.work-foot .go { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: .35s var(--ease); flex: none; }
.work-card:hover .work-foot .go { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }

/* Abstract thumb arts (CSS only — restrained) */
.art-lines { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 2px, transparent 2px 22px); }
.art-dots { background-image: radial-gradient(rgba(255,255,255,.22) 1.3px, transparent 1.4px); background-size: 22px 22px; }
.art-grid { background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 30px 30px; }
.art-rings { background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.18), transparent 42%), radial-gradient(circle at 78% 30%, transparent 26%, rgba(255,255,255,.10) 27%, transparent 28%); }

@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CASE STUDY TEMPLATE
   ============================================================ */
.cs-hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 5vw, 64px); }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); transition: color .2s; }
.cs-back:hover { color: var(--ink); }
.cs-back .arrow { transition: transform .35s var(--ease); }
.cs-back:hover .arrow { transform: translateX(-4px); }
.cs-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.cs-hero h1 { font-size: clamp(40px, 6.5vw, 82px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; margin-top: 22px; max-width: 16ch; }
.cs-hero .lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2); max-width: 56ch; margin-top: 28px; line-height: 1.5; }

/* hero banner */
.cs-banner { aspect-ratio: 21 / 9; border-radius: var(--radius); margin-top: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; background: var(--prod, var(--ink)); display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 48px); }
.cs-banner .ph-label { position: absolute; top: 22px; left: 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 8px; }
.cs-banner .ph-label::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.cs-banner .wm { position: relative; z-index: 2; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 92px); color: #fff; letter-spacing: -0.04em; }
.cs-banner .thumb-art { position: absolute; inset: 0; }
.cs-banner .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-banner .wm-logo { position: relative; z-index: 2; height: clamp(28px, 3.5vw, 44px); width: auto; max-width: 220px; filter: brightness(0) invert(1); opacity: .9; }

/* meta bar */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cs-meta .m { padding: 24px 26px; border-right: 1px solid var(--line); }
.cs-meta .m:last-child { border-right: 0; }
.cs-meta .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-4); }
.cs-meta .v { font-family: var(--display); font-weight: 600; font-size: 17px; margin-top: 9px; letter-spacing: -0.01em; line-height: 1.25; }

/* content body: two column with sticky aside */
.cs-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.cs-block { margin-bottom: clamp(40px, 5vw, 64px); }
.cs-block:last-child { margin-bottom: 0; }
.cs-block .label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.cs-block h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; margin-bottom: 20px; max-width: 22ch; }
.cs-block p { color: var(--ink-2); font-size: 18px; line-height: 1.62; margin-bottom: 16px; max-width: 64ch; }
.cs-block p:last-child { margin-bottom: 0; }
.cs-disc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cs-disc .tag { background: var(--white); border: 1px solid var(--line); }

.cs-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.cs-stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.cs-stat .num { font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--ink); }
.cs-stat .num .accent { color: var(--prod, var(--accent)); }
.cs-stat .desc { color: var(--ink-3); font-size: 14.5px; margin-top: 6px; line-height: 1.4; }

/* outcomes list */
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.outcomes li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.outcomes li:last-child { border-bottom: 1px solid var(--line); }
.outcomes .on { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--prod, var(--accent)); flex: none; width: 32px; }
.outcomes .ot { font-size: 18px; color: var(--ink); line-height: 1.45; }
.outcomes .ot span { color: var(--ink-3); }

/* pull quote */
.cs-quote { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cs-quote::after { content:""; position:absolute; inset:0; background: radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--prod, var(--accent)) 32%, transparent), transparent 55%); }
.cs-quote blockquote { margin: 0; position: relative; z-index: 1; }
.cs-quote .q { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.3; letter-spacing: -0.01em; color: var(--white); max-width: 28ch; }
.cs-quote .cite { margin-top: 28px; font-family: var(--body); font-size: 15px; color: #b6b5ad; font-weight: 500; }

/* next project */
.cs-next { border-top: 1px solid var(--line); }
.cs-next a { display: flex; justify-content: space-between; align-items: center; padding: clamp(36px, 5vw, 60px) 0; gap: 24px; }
.cs-next .lbl { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.cs-next .nm { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; margin-top: 10px; transition: color .3s; }
.cs-next a:hover .nm { color: var(--accent); }
.cs-next .go { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 22px; flex: none; transition: .35s var(--ease); }
.cs-next a:hover .go { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }

@media (max-width: 900px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta .m:nth-child(2) { border-right: 0; }
  .cs-meta .m:nth-child(1), .cs-meta .m:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cs-body { grid-template-columns: 1fr; gap: 40px; }
  .cs-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .cs-aside .cs-stat { flex: 1; min-width: 180px; }
}
@media (max-width: 520px) {
  .cs-meta { grid-template-columns: 1fr; }
  .cs-meta .m { border-right: 0; border-bottom: 1px solid var(--line); }
  .cs-meta .m:last-child { border-bottom: 0; }
}

