/* ============================================================
   obliq DESIGN SYSTEM — shared stylesheet
   Used across: index.html, for-architects.html, style-guide.html
   ============================================================ */

/* ---- HoratioDMed (logo only) ---- */
@font-face {
  font-family: "HoratioDMed";
  src: url("../fonts/HoratioDMed.woff") format("woff"),
       url("../fonts/HoratioDMed.ttf")  format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* Colours */
  --obliq-ink:        #0E0E0E;
  --obliq-graphite:   #2B2B2B;
  --obliq-bone:       #F7F4EE;
  --obliq-paper:      #FFFFFF;
  --obliq-champagne:  #CAA27E;
  --obliq-champ-dark: #A47E5C;
  --obliq-warm-100:   #EBE3D6;
  --obliq-line:       #E2DCD2;
  --obliq-muted:      #6B6155;

  /* Typography */
  --font-base: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-logo: "HoratioDMed", "Horatio Std", Georgia, serif;
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  /* Spacing — 8px scale */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Layout */
  --container-max: 1280px;

  /* Motion */
  --ease-soft: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

body {
  font-family: var(--font-base);
  font-weight: var(--weight-regular);
  background: var(--obliq-paper);
  color: var(--obliq-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section--bone { background: var(--obliq-bone); }
.section--ink { background: var(--obliq-ink); color: var(--obliq-paper); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Typography utilities ---- */
.h-display {
  font-weight: var(--weight-light);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-1 {
  font-weight: var(--weight-light);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-2 {
  font-weight: var(--weight-light);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
}
.h-3 {
  font-weight: var(--weight-medium);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.body-lg {
  font-size: 18px;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0;
}
.body {
  font-size: 15px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
  color: var(--obliq-graphite);
}
.eyebrow {
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--obliq-champagne);
  margin: 0 0 12px;
}
.lead {
  font-weight: var(--weight-light);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  margin: 0 0 32px;
  max-width: 720px;
  letter-spacing: -0.005em;
}
.logo-wordmark {
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

/* ---- Header ---- */
.site-header {
  background: var(--obliq-ink);
  color: var(--obliq-paper);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
}
.site-header .logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .logo img {
  height: 36px;          /* was 28px — bumped per Celia's request */
  width: auto;
  filter: invert(1);     /* black wordmark → white on dark header */
}
.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.site-header nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-light);
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
  transition: color .25s var(--ease-soft);
}
.site-header nav a.active { color: var(--obliq-paper); font-weight: var(--weight-medium); }
.site-header nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--obliq-champagne);
  transition: width .3s var(--ease-soft);
}
.site-header nav a:hover { color: var(--obliq-paper); }
.site-header nav a:hover::after,
.site-header nav a.active::after { width: 100%; }

/* Header CTA — small white-outline button */
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  color: var(--obliq-paper);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.55);
  transition: all .25s var(--ease-soft);
  white-space: nowrap;
}
.site-header .header-cta:hover {
  background: var(--obliq-paper);
  color: var(--obliq-ink);
  border-color: var(--obliq-paper);
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--obliq-paper);
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-base);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s var(--ease-soft);
  background: none;
}
.btn-primary { background: var(--obliq-ink); color: var(--obliq-paper); }
.btn-primary:hover { background: var(--obliq-champagne); color: var(--obliq-ink); }
.btn-ghost { background: transparent; color: var(--obliq-ink); border-color: var(--obliq-ink); }
.btn-ghost:hover { background: var(--obliq-ink); color: var(--obliq-paper); }
.btn-ghost--light { color: var(--obliq-paper); border-color: rgba(255,255,255,0.45); }
.btn-ghost--light:hover { background: var(--obliq-paper); color: var(--obliq-ink); border-color: var(--obliq-paper); }
.btn-accent { background: var(--obliq-champagne); color: var(--obliq-ink); }
.btn-accent:hover { background: var(--obliq-champ-dark); color: var(--obliq-paper); }
.btn-link {
  padding: 6px 0;
  color: var(--obliq-ink);
  border-bottom: 1px solid var(--obliq-champagne);
}
.btn-link:hover { color: var(--obliq-champagne); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  background: var(--obliq-ink);
  color: var(--obliq-paper);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero .hero-bg::after {
  /* Dark gradient overlay for text legibility — pure neutrals, no colour cast */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.40) 0%, rgba(14,14,14,0.72) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 {
  max-width: 18ch;
  margin: 16px 0 24px;
}
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-weight: var(--weight-light);
  max-width: 52ch;
}

/* ---- Cards / pillars ---- */
.pillar {
  border-top: 1px solid var(--obliq-line);
  padding-top: 24px;
}
.pillar h3 {
  font-weight: var(--weight-medium);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.pillar p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--obliq-graphite);
  margin: 0;
}

/* ---- Project tile ---- */
.project-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--obliq-bone);
  overflow: hidden;
  text-decoration: none;
  color: var(--obliq-paper);
  display: block;
}
.project-tile .thumb {
  position: absolute; inset: 0;
  background-color: var(--obliq-bone);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s var(--ease-soft);
}
.project-tile:hover .thumb { transform: scale(1.04); }
.project-tile .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(14,14,14,0) 0%, rgba(14,14,14,0.78) 100%);
}
.project-tile .meta .eyebrow { color: var(--obliq-champagne); }
.project-tile .meta h4 {
  font-size: 22px;
  font-weight: var(--weight-light);
  margin: 4px 0 0;
  letter-spacing: -0.005em;
}

/* ---- Reusable image block (for "For Architects" teaser, partner pack, etc.) ---- */
.img-block {
  aspect-ratio: 4 / 5;
  background-color: var(--obliq-bone);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Quote / testimonial ---- */
.quote {
  border-left: 2px solid var(--obliq-champagne);
  padding: 8px 0 8px 32px;
  font-weight: var(--weight-light);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--obliq-muted);
}

/* ---- Process steps ---- */
.steps { counter-reset: step; display: grid; gap: 32px; grid-template-columns: repeat(4, 1fr); }
.step { padding-top: 24px; border-top: 1px solid var(--obliq-line); position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--obliq-champagne);
  margin-bottom: 12px;
  font-weight: var(--weight-medium);
}
.step h4 {
  font-size: 18px;
  font-weight: var(--weight-medium);
  margin: 0 0 8px;
}
.step p { font-size: 14px; line-height: 1.65; color: var(--obliq-graphite); margin: 0; }

/* ---- CTA strip ---- */
.cta-strip {
  background: var(--obliq-ink);
  color: var(--obliq-paper);
  padding: 96px 32px;
  text-align: center;
}
.cta-strip h2 {
  font-weight: var(--weight-light);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 auto 24px;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.cta-strip p {
  color: rgba(255,255,255,0.78);
  margin: 0 auto 32px;
  max-width: 46ch;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--obliq-ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 32px 32px;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding: 0;
}
.site-footer h5 {
  color: var(--obliq-paper);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: var(--weight-medium);
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--obliq-champagne); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-brand .logo-wordmark {
  font-size: 22px;
  color: var(--obliq-paper);
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .site-header { padding: 16px 20px; min-height: 64px; }
  .site-header .logo img { height: 28px; }
  .site-header nav,
  .site-header .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-strip { padding: 64px 20px; }
}
