/* =============================================================
   MINDWORKS GLOBAL — black-tie premium
   Cormorant Garamond + Inter · cream-on-black · champagne gold
   ============================================================= */

:root {
  /* Palette — warm cream base, deep imperial purple accent */
  --bg: #f3ecd8;             /* warm ivory cream */
  --bg-2: #ebe2c9;           /* slightly deeper cream for soft sections */
  --bg-3: #e2d8bd;           /* card backgrounds, subtle contrast */
  --ink: #1c130e;            /* deep warm brown-black */
  --ink-2: #4a3a30;          /* secondary text */
  --ink-3: #8a7560;          /* muted text */
  --purple: #4a2566;         /* primary accent — deep imperial purple */
  --purple-deep: #321a47;    /* darker purple */
  --purple-bright: #6b3a92;  /* brighter for hover */
  --line: rgba(74, 37, 102, 0.18);
  --line-soft: rgba(28, 19, 14, 0.12);

  /* Aliases for legacy class names (kept so HTML doesn't need rewriting) */
  --cream: var(--ink);
  --cream-soft: var(--ink-2);
  --cream-mute: var(--ink-3);
  --oxblood: var(--purple);
  --oxblood-deep: var(--purple-deep);
  --oxblood-bright: var(--purple-bright);
  --gold: var(--purple);
  --gold-soft: var(--purple-deep);
  --gold-bright: var(--purple-bright);

  /* Typography — Playfair Display for confident headlines, Inter for body */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max: 1180px;
  --max-narrow: 760px;
  --radius: 0px;
  --rule: 1px solid var(--line);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

/* Subtle ambient — soft purple glow at corners */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(74, 37, 102, 0.05), transparent 55%),
    radial-gradient(circle at 88% 100%, rgba(74, 37, 102, 0.04), transparent 55%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  line-height: 1.12;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple);
  margin-bottom: 0.5em;
}
p {
  margin: 0 0 1.1em;
  color: var(--ink-2);
  font-weight: 400;
}
em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
strong {
  font-weight: 600;
  color: var(--ink);
}

a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
a:hover {
  color: var(--purple-bright);
  border-bottom-color: var(--purple);
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--max-narrow); }

/* ---------- Eyebrow / small-caps utility ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 2em;
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  align-self: center;
}
/* Roman-numeral section marker */
.section-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple);
  letter-spacing: 0;
  text-transform: none;
  margin-right: 4px;
  position: relative;
  top: 1px;
}

/* ---------- Drop cap (subtle business flourish) ---------- */
.dropcap::first-letter {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  margin: 0.06em 0.12em -0.05em 0;
  color: var(--purple);
  padding: 0;
}

/* ---------- Ornament divider (between sections) ---------- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 56px 0;
  color: var(--gold);
}
.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: var(--line);
}
.ornament-divider span {
  padding: 0 22px;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  opacity: 0.85;
}

/* Italic Cormorant tagline (small flourish) */
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-top: 1.6em;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: 0.005em;
  max-width: 62ch;
  margin-top: 1.4em;
}

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(243, 236, 216, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: var(--rule);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}

/* Refined stacked logotype — wordmark with hairline rule */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.brand-line {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--ink);
  display: block;
}
.brand-line-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--purple);
  text-transform: none;
  margin-top: 4px;
  padding-left: 2px;
}
.brand-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--oxblood);
  margin: 6px 0 6px 2px;
  opacity: 0.85;
}
.brand:hover .brand-line { color: var(--oxblood); }
.brand:hover .brand-line-italic { color: var(--oxblood-bright); }
.brand.small .brand-line { font-size: 0.74rem; letter-spacing: 0.36em; }
.brand.small .brand-line-italic { font-size: 0.95rem; }
.brand.small .brand-rule { width: 24px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-2);
  border: none;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--oxblood); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width .35s ease, left .35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 120px);
  border-bottom: var(--rule);
  position: relative;
}
.hero h1 {
  max-width: 22ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero .lede {
  margin-top: 2em;
  max-width: 56ch;
}

.page-hero {
  padding: clamp(80px, 11vw, 140px) 0 clamp(48px, 7vw, 80px);
  border-bottom: var(--rule);
}
.page-hero h1 {
  max-width: 22ch;
}
.page-hero .lede {
  margin-top: 1.6em;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2.6em;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid var(--oxblood);
  background: transparent;
  color: var(--oxblood);
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, transform .25s ease;
  border-radius: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--oxblood);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.6,.05,.28,.91);
  z-index: 0;
}
.btn span, .btn { position: relative; }
.btn:hover { color: var(--bg); border-color: var(--oxblood); border-bottom-color: var(--oxblood); }
.btn:hover::before { transform: translateX(0); }
.btn-primary { color: var(--bg); background: var(--oxblood); border-color: var(--oxblood); }
.btn-primary::before { background: var(--oxblood-deep); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { /* same default */ }
.btn-light { color: var(--oxblood); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-soft { background: var(--bg-2); }

/* Decorative center-rule ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 48px;
  max-width: 200px;
  color: var(--gold);
  opacity: 0.7;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ornament::before { margin-right: 14px; }
.ornament::after { margin-left: 14px; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--rule); }
.grid-3 > * { border-bottom: var(--rule); border-right: var(--rule); }
.grid-3 > *:nth-child(3n) { border-right: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: var(--rule); }
.grid-2 > * { border-bottom: var(--rule); border-right: var(--rule); }
.grid-2 > *:nth-child(2n) { border-right: none; }

.small-gap { gap: 0; margin-top: 2.4em; border-top: var(--rule); border-left: var(--rule); }

/* ---------- Cards (used in capability grid) ---------- */
.card {
  padding: 44px 36px;
  background: transparent;
  border: none;
  transition: background-color .35s ease;
}
.card:hover { background: rgba(107, 31, 36, 0.05); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--cream);
}
.card h3::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}
.card p {
  margin-bottom: 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--cream-soft);
}

.mini-card {
  padding: 28px 26px;
  background: transparent;
  border-right: var(--rule);
  border-bottom: var(--rule);
}
.mini-card h4 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}
.mini-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream-soft);
  line-height: 1.6;
}
/* Three-column layout for mini-cards */
.small-gap.grid-3 .mini-card:nth-child(3n) { border-right: none; }

/* ---------- Featured project band (home) ---------- */
.feature {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.feature .eyebrow { display: inline-block; }
.feature h2 {
  margin-top: 0.4em;
  margin-bottom: 0.6em;
}
.feature h2 em { color: var(--gold); font-style: italic; }
.feature p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cream-soft);
}
.feature .btn { margin-top: 1.6em; }

/* ---------- Projects feature article ---------- */
.project-feature {
  max-width: 820px;
  margin: 0 auto;
}
.project-feature h2 {
  max-width: 22ch;
  margin-bottom: 0.5em;
}
.project-feature p {
  font-size: 1.05rem;
  line-height: 1.75;
}
.project-feature h3 {
  margin-top: 2.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
}
.theme-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0 1.8em;
  border-top: var(--rule);
}
.theme-list li {
  border-bottom: var(--rule);
  padding: 16px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.theme-list li strong {
  font-weight: 500;
  color: var(--ink);
}
.theme-list li::before {
  content: "—";
  color: var(--purple);
  margin-right: 16px;
  font-weight: 600;
}

/* ---------- About bios ---------- */
.bio {
  padding: 56px 48px;
  background: var(--bg-3);
  border: var(--rule);
}
.bio h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.bio .role {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin: 0 0 1.6em;
  font-weight: 500;
}
.bio p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- Contact ---------- */
.contact-card {
  padding: 56px 48px;
  background: var(--bg-3);
  border: var(--rule);
  text-align: center;
}
.contact-card h2 { margin-bottom: 0.4em; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(1rem, 4vw, 1.9rem);
  font-weight: 600;
  font-style: normal;
  margin: 1.2em 0;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.contact-email a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  color: var(--gold);
}
.contact-email a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.contact-meta { margin-top: 4em; text-align: center; }
.contact-meta h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 1.4em;
  border-top: var(--rule);
}
.faq details {
  border-bottom: var(--rule);
  padding: 22px 0;
}
.faq summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-right: 8px;
  outline: none;
  transition: color .25s ease;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--purple); }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--purple);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .3s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- Newsletter section ---------- */
.newsletter {
  padding: clamp(80px, 10vw, 130px) 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--bg-2);
  text-align: center;
}
.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
}
.newsletter h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.4em;
}
.newsletter p {
  margin-bottom: 2em;
  font-size: 1.02rem;
  color: var(--cream-soft);
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--oxblood);
  background: var(--bg);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
}
.newsletter-form button {
  padding: 16px 28px;
  background: var(--oxblood);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background-color .3s ease;
}
.newsletter-form button:hover {
  background: var(--oxblood-deep);
}
.newsletter-fineprint {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 1.4em;
  font-style: normal;
  font-family: var(--sans);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--rule);
  padding: 88px 0 48px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: var(--rule);
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  border: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--oxblood); border-bottom: none; }
.footer-est {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-top: 10px;
  display: block;
  opacity: 0.85;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0.7;
}

.muted {
  color: var(--cream-mute);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.small { font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > * { border-right: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > * { border-right: none; }
  .small-gap.grid-3 .mini-card { border-right: none; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.18em; }
  body { font-size: 16px; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .nav-links { gap: 18px; }
  .bio, .contact-card { padding: 32px 22px; }
  .contact-card { word-wrap: break-word; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .cta-row .btn { width: 100%; text-align: center; }
}
