/* Clark Ruttinger consulting site — Quarto
   Visual system inspired by the Point → Circle → Relation → System lecture:
   dark navy field, cyan/gold/violet geometry, restrained sacred-geometry motifs. */

:root {
  --ink: #11182f;
  --ink-soft: #3b4662;
  --navy: #0d1328;
  --navy-2: #151c36;
  --navy-3: #202847;
  --teal: #137b83;
  --teal-dark: #0d6168;
  --cyan: #27c7cb;
  --gold: #dcb447;
  --gold-light: #f0ce70;
  --violet: #6954c7;
  --sand: #f7f4ed;
  --paper: #fffdf9;
  --accent: #dcb447;
  --accent-dark: #bd9330;
  --line: #dce2eb;
  --muted: #68738e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 19, 40, 0.10);
}

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: -0.035em;
}

h3, h4, h5 {
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.022em;
}

h1 { line-height: 1.04; }
h2 { line-height: 1.14; }
h3 { line-height: 1.25; }

/* NAVIGATION / BRAND MARK */
.navbar {
  box-shadow: none;
  border-bottom: 1px solid rgba(220, 180, 71, .24);
  padding-top: .62rem;
  padding-bottom: .62rem;
  background: var(--navy) !important;
}

.navbar-brand {
  font-weight: 760;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: .42rem;
}

.navbar-brand img,
.navbar-logo {
  max-height: 38px;
  width: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(39, 199, 203, .13));
}

.navbar .nav-link { font-weight: 600; opacity: .91; }
.navbar .nav-link:hover { opacity: 1; color: var(--gold-light) !important; }

#quarto-content { padding-top: 0; }

.section-shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

.section-spacious { padding-top: 5rem; padding-bottom: 5rem; }

.eyebrow,
.section-kicker,
.card-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Tiny circumpunct: point + circle, used as the recurring micro-brand motif. */
.eyebrow::before,
.section-kicker::before,
.card-label::before {
  content: "";
  flex: 0 0 auto;
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: radial-gradient(circle at center, currentColor 0 1.8px, transparent 2.1px);
  opacity: .95;
}

.eyebrow { color: var(--gold-light); margin-bottom: 1.1rem; }
.eyebrow.dark, .section-kicker, .card-label { color: var(--teal); }
.section-kicker { margin-bottom: .75rem; }

/* HOME HERO */
.hero-shell {
  color: var(--white);
  padding: 5.7rem 0 5.2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(7, 12, 29, .98) 0%, rgba(7, 12, 29, .95) 40%, rgba(7, 12, 29, .70) 67%, rgba(7, 12, 29, .48) 100%),
    url("images/geometry-hero.webp");
  background-size: cover;
  background-position: center center;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto auto -190px -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(39, 199, 203, .10);
  border-radius: 50%;
  box-shadow:
    0 0 0 78px rgba(220, 180, 71, .025),
    0 0 0 155px rgba(105, 84, 199, .018);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 {
  color: white;
  font-size: clamp(3.1rem, 7vw, 5.55rem);
  max-width: 850px;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero-copy p {
  color: #e8edf6;
  font-size: 1.2rem;
  max-width: 790px;
  margin-bottom: 1.2rem;
}

.hero-copy .btn { margin: .4rem .55rem .4rem 0; }
.hero-note { color: #c6d1e1; margin-top: 1rem; font-size: .95rem; }

.hero-portrait {
  text-align: center;
  background: rgba(9, 15, 34, .32);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(2px);
  border-radius: 32px;
  padding: 1rem 1rem 1.15rem;
}

.hero-headshot {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px 24px 72px 24px;
  border: 2px solid rgba(240, 206, 112, .88);
  box-shadow: 0 28px 70px rgba(0,0,0,.28), 0 0 0 6px rgba(255,255,255,.05);
}

.portrait-caption { color: #edf1f8; font-size: .94rem; margin-top: .9rem; }

/* Conceptual brand line: primitive → relation → system → action. */
.brand-path {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: #69758d;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .14em;
  background: var(--paper);
  border-bottom: 1px solid #ece8df;
}

.brand-path i {
  position: relative;
  width: 48px;
  height: 1px;
  display: inline-block;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--violet));
  opacity: .75;
}

.brand-path i::before,
.brand-path i::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.brand-path i::before { left: -1px; }
.brand-path i::after { right: -1px; background: var(--cyan); }

.btn { border-radius: 999px; padding-left: 1.2rem; padding-right: 1.2rem; font-weight: 700; }
.btn-primary { background: var(--teal); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline-primary { color: var(--teal); border-color: var(--teal); }
.btn-outline-primary:hover { background: var(--teal); border-color: var(--teal); }
.btn-accent {
  background: var(--gold);
  color: var(--navy) !important;
  border: 1px solid var(--gold);
}
.btn-accent:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy) !important; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 3rem 0 0;
  border-radius: 18px;
  overflow: hidden;
}
.proof-item { background: white; padding: 1.7rem; }
.proof-number { font-size: 1.65rem; font-weight: 800; color: var(--teal); }
.proof-label { color: var(--ink-soft); font-size: .95rem; margin-top: .35rem; }

.service-grid,
.work-preview-grid,
.public-work-grid,
.engagement-grid,
.principle-grid {
  display: grid;
  gap: 1.25rem;
}
.service-grid { grid-template-columns: repeat(2, 1fr); }
.service-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 6px 24px rgba(16,42,67,.035);
}
.service-card::after {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  right: -54px;
  bottom: -54px;
  border: 1px solid rgba(39,199,203,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(220,180,71,.035), 0 0 0 55px rgba(105,84,199,.025);
  pointer-events: none;
}
.service-card:last-child { grid-column: 1 / -1; }
.service-card h3 { margin-top: 0; }
.service-card a { font-weight: 700; text-decoration: none; }

.band { background: var(--sand); border-top: 1px solid #ece6dc; border-bottom: 1px solid #ece6dc; }

.work-preview-grid, .public-work-grid { grid-template-columns: repeat(3, 1fr); }
.work-preview-card, .public-work-card {
  background: white;
  padding: 1.7rem;
  border-radius: 16px;
  border: 1px solid #e7e1d7;
}
.work-preview-card h3, .public-work-card h3 { margin-top: .6rem; }
.work-preview-card a, .public-work-card a { font-weight: 700; text-decoration: none; }

.principle-grid { grid-template-columns: repeat(2, 1fr); }
.principle {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--cyan), var(--violet)) 1;
  padding: 1.15rem .3rem 0;
}
.principle h3 { margin-top: 0; }

/* CTA and page heroes reuse the geometry mark at low opacity. */
.cta-band, .contact-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.cta-band::after,
.contact-hero::after {
  content: "";
  position: absolute;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: url("images/brand-emblem.png") center/contain no-repeat;
  opacity: .11;
  pointer-events: none;
}

.cta-band { padding: 4.5rem 0; }
.cta-inner, .contact-hero .section-shell { position: relative; z-index: 1; }
.cta-inner h2, .contact-hero h1, .contact-panel h2 { color: white; }
.cta-inner p, .contact-hero p { color: #dce3ee; max-width: 820px; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7f8 0%, #f8f5ee 100%);
  border-bottom: 1px solid #e2e8ee;
  padding: 5rem 0 4rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: min(540px, 47vw);
  aspect-ratio: 1;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  background: url("images/brand-emblem.png") center/contain no-repeat;
  opacity: .075;
  pointer-events: none;
}
.page-hero > .section-shell { position: relative; z-index: 1; }
.page-hero.compact { padding: 4rem 0 3.2rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); max-width: 960px; }
.page-hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 900px; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 3rem;
  align-items: start;
  padding: 1.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}
.capability-panel {
  background: var(--sand);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--gold);
}
.capability-panel p:first-child { margin-top: 0; }

.capability-grid {
  columns: 2;
  column-gap: 4rem;
  background: white;
  border: 1px solid #e7e1d7;
  border-radius: 18px;
  padding: 1.75rem 2rem 1.25rem;
}
.capability-grid ol { margin-top: 0; }
.capability-grid li { break-inside: avoid; margin-bottom: .7rem; }

.engagement-grid { grid-template-columns: repeat(2, 1fr); }
.engagement-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.engagement-card h3 { margin-top: 0; }

.case-card {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 3.1rem 0 3rem 5.7rem;
}
.case-number {
  position: absolute;
  left: 0;
  top: 3rem;
  color: var(--gold);
  font-weight: 850;
  font-size: 1.7rem;
}
.case-card h2 { margin-top: 0; }

.publication-card {
  border-left: 4px solid var(--teal);
  padding: .4rem 0 .6rem 1.4rem;
  margin: 2.2rem 0;
}
.publication-card h3 { margin-top: 0; }

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  gap: 4rem;
  align-items: center;
}
.about-headshot {
  width: min(100%, 310px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 1px solid rgba(220,180,71,.55);
  box-shadow: var(--shadow);
}
.about-copy .btn { margin-right: .5rem; }

.contact-hero { padding: 5rem 0; }
.contact-panel {
  margin-top: 2.5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 2rem;
  max-width: 700px;
  backdrop-filter: blur(3px);
}
.contact-link { color: white; font-size: 1.2rem; font-weight: 700; }
.contact-link:hover { color: var(--gold-light); }

.resume-note, .redirect-notice {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.2rem;
  margin: 1rem 0 2rem;
}

.quarto-title-block { margin-bottom: 2rem; }

.nav-footer {
  position: relative;
  overflow: hidden;
  background: #090f22;
  color: #cbd4e3;
  border-top: 1px solid rgba(220,180,71,.18);
}
.nav-footer a { color: #edf1f8; }

@media (max-width: 920px) {
  .hero-grid, .about-hero-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .hero-portrait { text-align: left; width: fit-content; }
  .hero-headshot, .about-headshot { width: 240px; }
  .work-preview-grid, .public-work-grid { grid-template-columns: 1fr 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .hero-shell {
    background-position: 62% center;
  }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section-shell, .hero-grid, .brand-path { width: min(1120px, calc(100% - 1.5rem)); }
  .hero-shell {
    padding: 3.7rem 0 3.4rem;
    background-image:
      linear-gradient(90deg, rgba(7, 12, 29, .98) 0%, rgba(7, 12, 29, .93) 100%),
      url("images/geometry-hero.webp");
  }
  .hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-copy p { font-size: 1.08rem; }
  .section-spacious { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .service-grid, .work-preview-grid, .public-work-grid, .principle-grid, .engagement-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .capability-grid { columns: 1; }
  .case-card { padding-left: 3.6rem; }
  .case-number { font-size: 1.3rem; }
  .navbar .navbar-collapse { padding-top: .6rem; }
  .brand-path { gap: .35rem; font-size: .58rem; letter-spacing: .09em; }
  .brand-path i { width: 18px; }
  .page-hero::after, .cta-band::after, .contact-hero::after { opacity: .055; width: 78vw; right: -34vw; }
}
