/* ============================================
   THORVIZ CONSULTING — Design System
   Institutional, restrained, gold-on-navy
   ============================================ */

:root {
  /* Palette */
  --navy:        #0A1628;
  --slate:       #1E2D45;
  --slate-dark:  #161f30;
  --divider:     #2E3F5C;
  --divider-soft:rgba(46, 63, 92, 0.45);
  --gold:        #B8975A;

  /* Text */
  --text-light:  #F0EEE9;
  --text-dim:    rgba(240, 238, 233, 0.65);
  --text-muted:  rgba(240, 238, 233, 0.40);

  /* Type */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* CVA diagram-only colors (not used elsewhere on site) */
  --cva-translate:  #3B8FD1;
  --cva-design:     #2DB67C;
  --cva-strategize: #C8A13A;
  --cva-transform:  #D94F3F;
  --cva-transition: #9B6BC9;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text-light);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-light);
}
h1 { font-size: clamp(2.9rem, 6vw, 4.9rem); font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-weight: 300; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

strong { color: var(--text-light); font-weight: 600; }
em { font-style: italic; }

/* Trademark superscript — subtle, scaled down, gold */
.tm-mark {
  font-size: 0.45em;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--gold);
  font-style: normal;
  vertical-align: super;
  letter-spacing: 0.05em;
  margin-left: 0.1em;
  opacity: 0.85;
}

/* Layout */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 2.5rem; }
.wrap--text { max-width: 720px; margin: 0 auto; padding: 0 2.5rem; }
.gold-bar { width: 2rem; height: 1px; background: var(--gold); margin: 1.6rem 0; border: none; }
hr.rule { border: none; border-top: 1px solid var(--divider); }

/* Fade-in */
.f { opacity: 1; transform: none; }
.js-ready .f {
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.75s ease forwards;
  animation-delay: 0.05s;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
.js-ready .fd1 { animation-delay: 0.14s; }
.js-ready .fd2 { animation-delay: 0.23s; }
.js-ready .fd3 { animation-delay: 0.32s; }
.js-ready .fd4 { animation-delay: 0.41s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 0 2.5rem; height: 72px;
}
.nav__wordmark {
  display: flex;
  align-items: center;
  cursor: pointer;
  line-height: 0;
}

.nav__wordmark img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
  opacity: 0.95;
}

.nav__wordmark:hover img {
  opacity: 1;
}

@media (max-width: 640px) {
  .nav__wordmark img { height: 36px; }
}

.nav__links { display: flex; gap: 2.5rem; list-style: none; }
.nav__links a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); cursor: pointer;
  transition: color 0.25s; position: relative; padding-bottom: 3px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--text-light); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.nav__burger span { display: block; width: 20px; height: 1px; background: var(--text-dim); transition: all 0.3s; }

@media (max-width: 640px) {
  .nav__links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,22,40,0.98); flex-direction: column;
    gap: 0; border-bottom: 1px solid var(--divider);
  }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--divider); }
  .nav__links a { display: block; padding: 1.1rem 2.5rem; }
  .nav__burger { display: flex; }
}

/* Page / hero */
.page { padding-top: 72px; min-height: calc(100vh - 72px); }

.hero { padding: 9rem 0 8.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 65% at 72% 55%, rgba(30, 45, 69, 0.55) 0%, transparent 65%),
    repeating-linear-gradient(90deg, rgba(46, 63, 92, 0.12) 0, rgba(46, 63, 92, 0.12) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(0deg,  rgba(46, 63, 92, 0.12) 0, rgba(46, 63, 92, 0.12) 1px, transparent 1px, transparent 90px);
}
.hero__inner { position: relative; max-width: 1060px; margin: 0 auto; padding: 0 2.5rem; }
.hero .eyebrow { margin-bottom: 2.25rem; }
.hero h1 { max-width: 760px; }
.hero__rule { width: 2rem; height: 1px; background: var(--gold); margin: 2.5rem 0; }
.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.35;
  letter-spacing: 0.005em;
  max-width: 720px;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.hero__sub { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); max-width: 620px; line-height: 1.85; }

/* Page header (non-home) */
.page-hdr { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--divider); }
.page-hdr .eyebrow { margin-bottom: 1.5rem; }
.page-hdr h1 { margin-bottom: 1.5rem; max-width: 20ch; }
.page-hdr__sub { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); max-width: 620px; line-height: 1.85; margin: 0; }

/* Three-pillar (home) */
.props { padding: 5.5rem 0; border-top: 1px solid var(--divider); }
.props__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.prop { padding-right: 3rem; margin-right: 3rem; border-right: 1px solid var(--divider); }
.prop:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.prop .eyebrow { margin-bottom: 1.1rem; }
.prop h3 { font-size: 1.4rem; margin-bottom: 0.9rem; line-height: 1.25; }
.prop p { font-size: 1.1rem; color: var(--text-dim); font-weight: 300; line-height: 1.8; }

@media (max-width: 780px) {
  .props__grid { grid-template-columns: 1fr; }
  .prop { border-right: none; border-bottom: 1px solid var(--divider); padding: 0 0 2.75rem; margin: 0 0 2.75rem; }
  .prop:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}

/* Principles strip (home) */
.principles {
  background: var(--slate-dark);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--divider);
  padding: 5.5rem 0;
  position: relative;
}
.principles::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold) 75%, transparent 100%);
  opacity: 0.5;
}
.principles__head { margin-bottom: 3.5rem; }
.principles__head h2 { margin-top: 0.75rem; }
.principles__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.principle {
  background: transparent; padding: 2.25rem 1.9rem 2.25rem 2rem; position: relative;
  border-right: 1px solid rgba(184, 151, 90, 0.22);
}
.principle:first-child { padding-left: 0; }
.principle:last-child { border-right: none; padding-right: 0; }
.principle .eyebrow { margin-bottom: 1rem; font-size: 0.6rem; }
.principle h3 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400;
  margin-bottom: 0.8rem; line-height: 1.25;
}
.principle p { font-size: 0.98rem; color: var(--text-dim); font-weight: 300; line-height: 1.7; margin: 0; }

@media (max-width: 900px) {
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .principle { padding: 2.25rem 1.9rem; border-right: 1px solid rgba(184, 151, 90, 0.22); }
  .principle:first-child { padding-left: 1.9rem; }
  .principle:nth-child(2) { border-right: none; padding-right: 1.9rem; }
  .principle:nth-child(1), .principle:nth-child(2) { border-bottom: 1px solid rgba(184, 151, 90, 0.22); }
  .principle:nth-child(3) { border-right: 1px solid rgba(184, 151, 90, 0.22); padding-right: 1.9rem; }
  .principle:nth-child(4) { padding-right: 1.9rem; }
}
@media (max-width: 480px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principle { border-right: none !important; border-bottom: 1px solid rgba(184, 151, 90, 0.22); padding: 2rem 0; }
  .principle:last-child { border-bottom: none; }
}

/* Methodology tease (home) */
.meth-tease { padding: 5.5rem 0 6.5rem; border-top: 1px solid var(--divider); }
.meth-tease h2 { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.meth-tease p { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); line-height: 1.9; }
.meth-tease__link {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: opacity 0.2s, letter-spacing 0.3s ease;
}
.meth-tease__link:hover { opacity: 0.75; letter-spacing: 0.26em; }

/* Methodology — CVA diagram */
.cva-diagram-section { padding: 4.5rem 0 2rem; }
.cva-diagram-frame { border: 1px solid var(--divider); background: var(--slate-dark); padding: 2.5rem 2rem; margin-top: 1rem; }
.cva-diagram-label {
  font-family: var(--font-sans);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.cva-diagram svg { width: 100%; height: auto; }

/* Interactive chevron links in the CVA diagram */
.cva-diagram a {
  cursor: pointer;
  outline: none;
}
.cva-diagram a polygon {
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.cva-diagram a:hover polygon,
.cva-diagram a:focus polygon {
  opacity: 1 !important;
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(184, 151, 90, 0.35));
}
.cva-diagram a:hover text,
.cva-diagram a:focus text {
  opacity: 1 !important;
}

.cva-lead { max-width: 760px; margin: 4rem auto 0; padding: 0 2.5rem; text-align: center; }
.cva-lead p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 300; font-style: italic;
  color: var(--text-light); line-height: 1.6; letter-spacing: 0.005em;
}
.cva-lead em { color: var(--gold); }

/* Methodology — phase blocks */
.phases-section { padding: 5.5rem 0 6rem; border-top: 1px solid var(--divider); }
.phases-head { margin-bottom: 4rem; }
.phases-head h2 { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.phases-head p { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); line-height: 1.85; max-width: 620px; }

.phases { display: flex; flex-direction: column; }
.phase {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 4rem; padding: 4rem 0;
  border-bottom: 1px solid var(--divider); align-items: start;
  scroll-margin-top: 90px;
}
.phase:last-child { border-bottom: none; }
.phase__label { padding-top: 0.2rem; }
.phase__num {
  font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  display: block; margin-bottom: 1rem;
}
.phase__name {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400;
  color: var(--text-light); line-height: 1; margin-bottom: 0.6rem;
}
.phase__tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; color: var(--gold); font-weight: 400; letter-spacing: 0.01em;
}
.phase__body p { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); line-height: 1.9; }
.phase__outcomes { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--divider); }
.phase__outcomes .eyebrow { margin-bottom: 1rem; font-size: 0.6rem; }
.phase__outcomes ul { list-style: none; padding: 0; margin: 0; }
.phase__outcomes li {
  font-size: 1rem; font-weight: 300; color: var(--text-dim);
  padding: 0.55rem 0; border-bottom: 1px solid var(--divider-soft); line-height: 1.5;
}
.phase__outcomes li:last-child { border-bottom: none; }

@media (max-width: 680px) {
  .phase { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
}

/* Methodology closing */
.meth-closing {
  padding: 5.5rem 0;
  border-top: 1px solid var(--divider);
  background: var(--slate-dark);
}
.meth-closing__inner { max-width: 720px; margin: 0 auto; padding: 0 2.5rem; }
.meth-closing blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 300; font-style: italic;
  color: var(--text-light); line-height: 1.65;
  margin: 1.5rem 0;
}
.meth-closing blockquote em { color: var(--gold); }
.meth-closing p { font-size: 1.1rem; font-weight: 300; color: var(--text-dim); line-height: 1.85; margin-top: 2rem; }

/* Engagements / case studies */
.cases-section { padding: 2rem 0 4rem; }
.case {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 4rem; padding: 4rem 0;
  border-bottom: 1px solid var(--divider); align-items: start;
}
.case__meta { padding-top: 0.2rem; }
.case__num {
  font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  display: block; margin-bottom: 1rem;
}
.case__domain {
  font-family: var(--font-serif);
  font-size: 1.65rem; font-weight: 400;
  color: var(--text-light); line-height: 1.15; margin-bottom: 0.85rem;
}
.case__industry {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.case__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.case__tag {
  font-family: var(--font-sans);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--divider); color: var(--text-dim);
}

.case__body h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem; font-weight: 400;
  color: var(--text-light); line-height: 1.3; margin-bottom: 1.5rem;
}
.case__body p { font-size: 1.1rem; font-weight: 300; color: var(--text-dim); line-height: 1.9; }

.case__placeholder {
  font-style: italic; color: var(--text-muted) !important;
  padding: 1.25rem 1.5rem;
  border-left: 1px solid var(--gold);
  background: rgba(46, 63, 92, 0.15);
  margin: 1rem 0;
  font-size: 1.02rem !important; line-height: 1.7 !important;
}

@media (max-width: 680px) {
  .case { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
}

.cases-footer { max-width: 720px; margin: 4rem auto 6rem; padding: 0 2.5rem; text-align: center; }
.cases-footer p { font-size: 1.05rem; font-weight: 300; color: var(--text-dim); line-height: 1.85; }
.cases-footer a { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* About page */
.about-body { padding: 5.5rem 0; }
.about-body p { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); line-height: 1.95; }
.about-body h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.25rem;
}
.about-body .section-block + .section-block { padding-top: 3.5rem; margin-top: 3.5rem; border-top: 1px solid var(--divider); }

/* Credentials */
.cert-line { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--divider); }
.cert-line .eyebrow { margin-bottom: 1.25rem; font-size: 0.7rem; }
.cert-line ul { list-style: none; padding: 0; margin: 0; }
.cert-line ul li {
  font-size: 1rem; font-weight: 300;
  color: var(--text-dim); letter-spacing: 0.02em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--divider-soft);
}
.cert-line ul li:last-child { border-bottom: none; }

/* At-a-glance summary */
.about-meta {
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem;
}
.about-meta .eyebrow { margin-bottom: 0.9rem; font-size: 0.6rem; }
.about-meta ul { list-style: none; padding: 0; }
.about-meta ul li { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); padding: 0.4rem 0; }

@media (max-width: 600px) {
  .about-meta { grid-template-columns: 1fr; }
}

/* Contact block */
.contact-block { padding: 6rem 0 7rem; border-top: 1px solid var(--divider); }
.contact-block__inner { max-width: 620px; }
.contact-block .eyebrow { margin-bottom: 1.5rem; }
.contact-block h2 { margin-bottom: 1.75rem; max-width: 18ch; }
.contact-block__inner > p { font-size: 1.15rem; font-weight: 300; color: var(--text-dim); line-height: 1.85; }

.contact-email-row {
  margin: 2.75rem 0; padding: 2.25rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.contact-email {
  font-family: var(--font-sans);
  font-size: 1.2rem; font-weight: 300;
  color: var(--text-light); letter-spacing: 0.03em;
  transition: color 0.25s; display: inline-block;
}
.contact-email:hover { color: var(--gold); }
.contact-note {
  font-size: 1rem !important;
  font-style: italic;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
}

/* Footer */
.footer { background: var(--slate); border-top: 1px solid var(--divider); padding: 2.5rem 0; }
.footer__inner {
  max-width: 1060px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer__copy { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; }
.footer__email { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; transition: color 0.2s; }
.footer__email:hover { color: var(--gold); }
.footer__disclaimer {
  font-size: 0.76rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.65;
  opacity: 0.65; max-width: 780px;
  border-top: 1px solid rgba(46, 63, 92, 0.5);
  padding-top: 1rem;
}
