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

:root {
  /* Palette — warm dark base, cream text, antique champagne gold */
  --ink: #0d0c0a;            /* warm near-black */
  --ink-2: #161412;          /* slightly lifted for soft sections */
  --ink-3: #221f1b;          /* card borders, subtle dividers */
  --cream: #ece5d3;          /* primary text */
  --cream-soft: #c9c2b0;     /* secondary text */
  --cream-mute: #8a8470;     /* muted text */
  --gold: #c9a661;           /* primary accent (champagne gold) */
  --gold-soft: #a48845;      /* deeper gold */
  --gold-bright: #e3c585;    /* brighter gold for hover */
  --line: rgba(201, 166, 97, 0.18);

  /* Typography */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

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

/* Subtle ambient gradient for richness */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 166, 97, 0.06), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(201, 166, 97, 0.04), transparent 50%);
  z-index: 0;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  line-height: 1.08;
  color: var(--cream);
}
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h3 {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}
h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.5em;
}
p {
  margin: 0 0 1.1em;
  color: var(--cream-soft);
  font-weight: 300;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}
strong {
  font-weight: 500;
  color: var(--cream);
}

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

/* ---------- 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: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  margin-right: 4px;
  position: relative;
  top: 1px;
}

/* ---------- Drop cap (editorial flourish) ---------- */
.dropcap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 4.6em;
  float: left;
  line-height: 0.82;
  margin: 0.08em 0.14em -0.08em 0;
  color: var(--gold);
  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(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream-soft);
  line-height: 1.5;
  letter-spacing: 0.005em;
  max-width: 60ch;
  margin-top: 1.4em;
}

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 12, 10, 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: 400;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--cream);
  display: block;
}
.brand-line-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: none;
  margin-top: 4px;
  padding-left: 2px;
}
.brand-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 6px 0 6px 2px;
  opacity: 0.7;
}
.brand:hover .brand-line { color: var(--gold-bright); }
.brand:hover .brand-line-italic { color: var(--gold-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: 400;
  color: var(--cream-soft);
  border: none;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--gold); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  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(--gold);
  background: transparent;
  color: var(--gold);
  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 {
  /* subtle gold sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.6,.05,.28,.91);
  z-index: 0;
}
.btn span, .btn { position: relative; }
.btn:hover { color: var(--ink); border-color: var(--gold); border-bottom-color: var(--gold); }
.btn:hover::before { transform: translateX(0); }
.btn-primary { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.btn-primary::before { background: var(--gold-bright); }
.btn-primary:hover { color: var(--ink); }
.btn-ghost { /* same default */ }
.btn-light { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-soft { background: var(--ink-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(201, 166, 97, 0.04); }
.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(--cream);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.theme-list li strong {
  font-weight: 400;
  color: var(--cream);
}
.theme-list li::before {
  content: "—";
  color: var(--gold);
  margin-right: 16px;
}

/* ---------- About bios ---------- */
.bio {
  padding: 56px 48px;
  background: var(--ink-2);
  border: var(--rule);
}
.bio h3 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 6px;
  color: var(--cream);
}
.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(--ink-2);
  border: var(--rule);
  text-align: center;
}
.contact-card h2 { margin-bottom: 0.4em; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  margin: 1.2em 0;
}
.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;
}

/* ---------- Newsletter section ---------- */
.newsletter {
  padding: clamp(80px, 10vw, 130px) 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--ink-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(--gold);
  background: transparent;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--cream-mute);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.newsletter-form button {
  padding: 16px 28px;
  background: var(--gold);
  color: var(--ink);
  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(--gold-bright);
}
.newsletter-fineprint {
  font-size: 0.78rem;
  color: var(--cream-mute);
  margin-top: 1.4em;
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--rule);
  padding: 88px 0 48px;
  background: var(--ink);
}
.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(--cream-soft);
  border: none;
  font-weight: 400;
}
.footer-links a:hover { color: var(--gold); 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: 38px 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .cta-row .btn { width: 100%; text-align: center; }
}
