/* =========================================================
   Guulba — shared design system
   Edit this once; every page uses it.
   ========================================================= */

:root {
  --paper: #f3eee3;
  --paper-2: #ece4d4;
  --ink: #1c1a17;
  --ink-soft: #4a443c;
  --muted: #8a8275;
  --clay: #c4502e;
  --clay-deep: #a23d20;
  --line: #d8cfbd;
  --card: #faf7f0;
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 74px; /* room for the fixed header */
}

[id] { scroll-margin-top: 92px; } /* keep anchor targets clear of the fixed header */

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

::selection { background: var(--clay); color: var(--paper); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); }

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(243, 238, 227, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
header.scrolled { border-bottom-color: var(--line); }
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 28px;
  height: 74px;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  white-space: nowrap;
}
.logo .mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--clay);
  position: relative;
  flex: none;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--paper);
}
.nav-links { display: flex; gap: 34px; align-items: center; flex: 1 1 auto; justify-content: center; flex-wrap: nowrap; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--clay); }
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: none;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: 100px;
}
.btn-primary:hover { background: var(--clay); transform: translateY(-1px); }
.btn-primary .arr { transition: transform .25s ease; }
.btn-primary:hover .arr { transform: translateX(4px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- HERO ---------- */
.hero { padding: 116px 0 96px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 30px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  max-width: 16ch;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 34px 0 42px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 11px 8px;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--clay); border-color: var(--clay); }

/* compact hero for inner pages */
.page-hero { padding: 84px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04;
  letter-spacing: -1.3px; max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--clay); }
.page-hero p { color: var(--ink-soft); font-size: clamp(17px,2vw,21px); max-width: 56ch; margin-top: 26px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1){ transition-delay:.05s; }
.hero .reveal:nth-child(2){ transition-delay:.18s; }
.hero .reveal:nth-child(3){ transition-delay:.31s; }
.hero .reveal:nth-child(4){ transition-delay:.44s; }

/* ---------- MARQUEE STRIP ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--paper-2);
}
.strip-inner {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  width: max-content;
}
.strip-inner span {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.strip-inner span::after { content: "✳"; color: var(--clay); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTION SHELL ---------- */
section.block { padding: 110px 0; }
section.block.alt { background: var(--paper-2); }
.sec-head { max-width: 62ch; margin-bottom: 60px; }
.sec-tag {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--clay); margin-bottom: 18px;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -1px;
}
.sec-head p { color: var(--ink-soft); margin-top: 20px; font-size: 19px; }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px 38px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -28px rgba(28,26,23,.4);
  border-color: var(--clay);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--paper-2);
  display: grid; place-items: center;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 22px; font-weight: 600; color: var(--clay);
  transition: background .35s;
}
.card:hover .ico { background: var(--clay); color: var(--paper); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.5px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.card .link {
  margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--clay);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.card .link span { transition: transform .25s; }
.card:hover .link span { transform: translateX(4px); }

/* ---------- SPLIT / PANEL ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px,4vw,50px); line-height: 1.1; letter-spacing: -1px;
}
.split .panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 54px 48px;
  position: relative;
  overflow: hidden;
}
.split .panel::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: var(--clay);
  border-radius: 50%;
  filter: blur(90px);
  opacity: .4;
  top: -80px; right: -80px;
}
.split .panel h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 30px; line-height: 1.2; margin-bottom: 22px; position: relative;
}
.split .panel p { color: #d8d0c4; position: relative; }
.principles { list-style: none; margin-top: 36px; }
.principles li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 22px;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .num {
  font-family: var(--display); font-style: italic;
  font-size: 22px; color: var(--clay);
}
.principles h4 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.principles p { color: var(--ink-soft); font-size: 16px; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1; letter-spacing: -2px; color: var(--clay);
}
.stat .lab { margin-top: 12px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }

/* ---------- NEWS / POST LIST ---------- */
.post-list { border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .3s ease;
}
.post:hover { padding-left: 12px; }
.post .date { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.post .body h3 { font-family: var(--display); font-weight: 500; font-size: 25px; letter-spacing: -.4px; margin-bottom: 8px; }
.post .body p { color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.post .tag { color: var(--clay); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--paper-2);
  border-radius: 26px;
  padding: 76px 56px;
  text-align: center;
  border: 1px solid var(--line);
}
.cta-band .sec-tag { text-align: center; }
.cta-band h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -1px; line-height: 1.08; max-width: 18ch; margin: 0 auto 24px;
}
.cta-band p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 38px; font-size: 18px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.foot-brand .logo { margin-bottom: 18px; }
.foot-brand p { color: var(--ink-soft); font-size: 15px; max-width: 32ch; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 15px; margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: var(--clay); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 28px; flex-wrap: wrap; gap: 14px;
}
.foot-bottom p { font-size: 14px; color: var(--muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post .tag { order: -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 70px 0 64px; }
  section.block { padding: 76px 0; }
  .cta-band { padding: 54px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* =========================================================
   NEWS — featured + filters + card grid
   ========================================================= */
.news-hero { padding: 70px 0 26px; }
.news-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px,5vw,68px); letter-spacing:-1.3px; line-height:1.04; }
.news-hero h1 em { font-style: italic; color: var(--clay); }
.news-hero p { color: var(--ink-soft); font-size: clamp(17px,2vw,20px); max-width: 56ch; margin-top: 18px; }

/* branded cover tile (placeholder "image") */
.cover { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16/10; background: var(--paper-2); display:block; }
.cover::before { /* ring watermark */
  content:""; position:absolute; right:-30px; bottom:-30px;
  width:160px; height:160px; border-radius:50%;
  border:42px solid rgba(255,255,255,.16);
}
.cover .cov-label { position:absolute; left:22px; top:20px; font-family:var(--display); font-style:italic; font-size:22px; opacity:.92; }
.cover.c-product     { background: linear-gradient(135deg,#c4502e,#a23d20); color: var(--paper); }
.cover.c-research    { background: linear-gradient(135deg,#1c1a17,#322d27); color: var(--paper); }
.cover.c-research::before, .cover.c-company::before { border-color: rgba(196,80,46,.5); }
.cover.c-education   { background: linear-gradient(135deg,#2f6f5e,#244f44); color: var(--paper); }
.cover.c-perspective { background: var(--paper-2); color: var(--ink); }
.cover.c-perspective::before { border-color: rgba(196,80,46,.22); }
.cover.c-company     { background: linear-gradient(135deg,#322d27,#1c1a17); color: var(--paper); }

/* featured */
.news-featured { display:grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items:center; padding: 18px 0 8px; text-decoration:none; color:var(--ink); }
.news-featured .cover { aspect-ratio: 16/11; }
.news-featured .feat-meta { display:flex; gap:14px; align-items:center; margin-bottom:18px; }
.news-featured h2 { font-family:var(--display); font-weight:400; font-size: clamp(28px,3.4vw,44px); line-height:1.1; letter-spacing:-1px; }
.news-featured p { color: var(--ink-soft); font-size:18px; margin-top:18px; max-width:52ch; }
.news-featured .more { margin-top:22px; color:var(--clay); font-weight:600; display:inline-flex; gap:6px; }
.news-featured .more span { transition: transform .25s; }
.news-featured:hover .more span { transform: translateX(4px); }

/* category pill + date */
.cat { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--clay); }
.dot-sep { color: var(--muted); }
.when { font-size:13px; color: var(--muted); font-weight:600; letter-spacing:.4px; }

/* filter chips */
.filters { display:flex; flex-wrap:wrap; gap:10px; padding: 36px 0 30px; border-top:1px solid var(--line); margin-top: 40px; }
.chip { font-family:var(--body); font-size:14px; font-weight:600; color:var(--ink-soft); background:transparent; border:1px solid var(--line); border-radius:100px; padding:9px 18px; cursor:pointer; transition: all .2s; }
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* grid */
.news-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 30px 26px; }
.news-card { text-decoration:none; color:var(--ink); display:flex; flex-direction:column; }
.news-card .cover { margin-bottom:18px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.news-card:hover .cover { transform: translateY(-5px); }
.news-card .meta { display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.news-card h3 { font-family:var(--display); font-weight:500; font-size:22px; line-height:1.18; letter-spacing:-.4px; }
.news-card.hide { display:none; }

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; gap: 24px; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}
