/* ============================================================
   SDNielsen Group — shared design system
   ────────────────────────────────────────────────────────────
   One stylesheet, three companies. Each page sets its own accent
   via a :root override (see each index.html <style> block):

     --accent       primary brand color (the wordmark prefix)
     --accent-ink   darkened accent, used for serif emphasis + links
     --brand-prefix wordmark prefix color (usually == --accent)

   Everything else — type scale, spacing, layout, components —
   is identical across sdnielsen / mdnholding / m&mdevelopment so
   the family reads as one group.
   ============================================================ */

:root {
  --bg:        oklch(98.2% 0.005 85);
  --bg-alt:    oklch(95.5% 0.008 80);
  --ink:       oklch(18% 0.012 80);
  --ink-soft:  oklch(38% 0.01 80);
  --ink-mute:  oklch(58% 0.008 80);
  --rule:      oklch(88% 0.008 80);
  --rule-soft: oklch(92% 0.006 80);

  /* Shared neutral for the second half of every wordmark */
  --brand-gray: #4A5047;            /* Pantone 446 — from the 2013 manual */

  /* Per-company accents are overridden in each page. Defaults = SDNielsen. */
  --brand-prefix: #D15128;
  --accent:       #D15128;
  --accent-ink:   oklch(40% 0.11 38);

  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono  { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }

/* ─── Wordmark ──────────────────────────────────────────────
   Lowercase, duo-tone: a colored prefix (.pfx) + warm-gray remainder.
   The real lowercase letters carry the brand idea natively — no dots,
   no negative-space tricks. Scales cleanly at every size.
*/
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-block;
  color: var(--brand-gray);
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
}
.wordmark .pfx { color: var(--brand-prefix); font-weight: 700; }
.wordmark--nav { font-size: 22px; }
.wordmark--xl  { font-size: clamp(72px, 12vw, 160px); }

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: inherit;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: background 120ms, color 120ms;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top:  5px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-right { display: none; }
  .nav-right.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 20px var(--gutter) 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-right.open .nav-links {
    flex-direction: column;
    gap: 14px;
  }
}

/* ─── Section scaffolding ───────────────────────────────── */
section { padding: clamp(64px, 10vh, 120px) 0; border-top: 1px solid var(--rule-soft); }
section:first-of-type { border-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 56px;
}
.sec-num { color: var(--ink-mute); }
.sec-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; max-width: 24ch; }
.sec-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-ink); }
.sec-intro { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }

@media (max-width: 700px) {
  .sec-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(72px, 12vh, 140px);
  border-top: 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 36px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 32px;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent-ink);
}
.hero-lead {
  max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.btn-primary {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform 140ms; }
.btn:hover .arr { transform: translateX(3px); }

.hero-meta {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 6px; }
.hero-meta strong { font-weight: 500; font-size: 15px; }
@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Pillar / feature grid (was .tech-grid) ────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  grid-column: span 6;
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
}
.pillar.third { grid-column: span 4; }
.pillar .logo {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--ink);
}
.pillar h3 { font-size: 22px; letter-spacing: -0.015em; }
.pillar p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.pillar .link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}
.pillar .link:hover { color: var(--accent-ink); }
.pillar .link::after { content: " →"; }
@media (max-width: 900px) {
  .pillar, .pillar.third { grid-column: span 6; }
}
@media (max-width: 600px) {
  .pillar, .pillar.third { grid-column: span 12; }
}

.chips {
  margin-top: 32px;
  display: flex; flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.chips .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
}

/* ─── Service / numbered list ───────────────────────────── */
.service-list { display: flex; flex-direction: column; }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; }
.service-title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; }
.service-body p { color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }
.service-body ul {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px 12px;
}
.service-body ul li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.service-body ul li::before { content: "▪ "; color: var(--accent); }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
}

/* ─── About ─────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: start;
}
.about-lead {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 28px;
}
.about-lead em { font-style: italic; color: var(--accent-ink); }
.about p + p { margin-top: 16px; }
.about p { color: var(--ink-soft); font-size: 16px; max-width: 48ch; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.about-facts > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.about-facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.about-facts .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 6px;
}
.about-facts .v { font-size: 16px; }
.about-facts .v .big { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.02em; display: block; margin-bottom: 4px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
}

/* ─── Cards (portfolio / properties / cases) ────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none;
}
.card-cover {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-alt) 0 10px,
      var(--bg) 10px 20px
    );
  position: relative;
  overflow: hidden;
}
.card-cover .tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.card-cover .ph {
  position: absolute; inset: auto 12px 12px 12px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute);
}
.card-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card-title { font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.card-desc { color: var(--ink-soft); font-size: 14.5px; max-width: 40ch; }
@media (max-width: 860px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
}

/* ─── Contact ───────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lead {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.contact-lead em { font-style: italic; color: var(--accent-ink); }
.contact-links {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.contact-links li { border-bottom: 1px solid var(--rule); }
.contact-links a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--ink);
}
.contact-links .k {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-links .v { font-size: 17px; }
.contact-links .arr { color: var(--ink-mute); transition: transform 140ms, color 140ms; }
.contact-links a:hover .arr { color: var(--accent-ink); transform: translateX(4px); }
.contact-links a:hover .v { color: var(--accent-ink); }

.contact-address {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 72px 0 40px;
  color: var(--ink-mute);
  overflow: hidden;
}
.footer-mark {
  font-size: clamp(80px, 16vw, 220px);
  margin-bottom: 56px;
  display: block;
}
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
.footer-meta a { text-decoration: none; color: inherit; }
.footer-meta a:hover { color: var(--ink); }

/* ─── Group strip (sibling companies) ───────────────────── */
.group-strip {
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--rule-soft);
  margin-top: 8px;
}
.group-strip .gl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}
.group-strip a {
  text-decoration: none;
  font-size: 15px;
}
.group-strip .wordmark { font-size: 18px; }

.tlogo { width: 28px; height: 28px; display: block; }
