/* C-Suite Partners
   Site styles
   ----------------------------------- */

:root {
  --spa: #7FB3C1;
  --spa-deep: #5A9BAD;
  --spa-pale: #E8F1F3;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8A8A;
  --paper: #FAFAF8;
  --paper-warm: #F5F2EC;
  --line: rgba(26,26,26,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Sans', monospace;

  --measure: 38rem;
  --section-pad-y: clamp(4rem, 8vw, 8rem);
  --section-pad-x: clamp(1.5rem, 5vw, 5rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--spa-deep);
}

.prose a,
.portfolio-footer a,
.contact-body a,
.credentials a {
  text-decoration: underline;
  text-decoration-color: var(--spa);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose a:hover,
.portfolio-footer a:hover {
  text-decoration-color: var(--spa-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------
   Header
   ----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--section-pad-x);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  color: var(--spa-deep);
}

.header-mark .mark-line-1 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
}

.header-mark .mark-rule {
  width: 60px;
  height: 1px;
  background: var(--ink);
}

.header-mark .mark-line-2 {
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--spa);
  transition: width 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
}

/* -----------------------------------
   Hero
   ----------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) var(--section-pad-x) clamp(4rem, 8vw, 8rem);
  min-height: 80vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--section-pad-x);
  right: var(--section-pad-x);
  height: 1px;
  background: var(--line);
  z-index: -1;
  display: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 32rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--spa-deep);
  line-height: 1.4;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--spa-deep);
}

.hero-headline .accent {
  color: var(--spa);
  font-style: normal;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--spa-deep);
  color: white;
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  filter: drop-shadow(0 30px 60px rgba(127, 179, 193, 0.3));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-image img {
    margin: 0 auto;
  }
}

/* -----------------------------------
   Sections (shared)
   ----------------------------------- */

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--spa-deep);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--spa);
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 24ch;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

/* -----------------------------------
   About
   ----------------------------------- */

.section-about {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* -----------------------------------
   Services
   ----------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--spa);
  transform: translateY(-2px);
}

.service-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--spa);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.service-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.88rem !important;
  color: var(--ink-muted) !important;
  border-top: 1px solid var(--line);
}

.service-meta a {
  color: var(--spa-deep);
  font-weight: 500;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------
   Portfolio
   ----------------------------------- */

.section-portfolio {
  background: white;
}

.portfolio-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 3rem;
  margin-top: -1rem;
}

.portfolio-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.portfolio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portfolio-role {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-deep);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--spa);
  border-radius: 999px;
  background: var(--spa-pale);
  align-self: flex-start;
}

.portfolio-body h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.portfolio-body h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.portfolio-body h3 a:hover {
  color: var(--spa-deep);
}

.portfolio-body h3 .ext {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.85em;
  color: var(--spa);
  transform: translateY(-2px);
}

.portfolio-body p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.portfolio-affiliation {
  font-size: 0.9rem !important;
  color: var(--ink-muted) !important;
  font-style: italic;
}

.portfolio-footer {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .portfolio-meta {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* -----------------------------------
   History (Before USF)
   ----------------------------------- */

.section-history {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.credentials-label {
  font-size: 0.75rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--spa-deep);
  margin-bottom: 1rem !important;
}

.credentials ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credentials li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
}

.credentials li::before {
  content: '·';
  color: var(--spa);
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
  top: -2px;
}

/* -----------------------------------
   Fit list
   ----------------------------------- */

.fit-list {
  list-style: none;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fit-list li {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding-left: 2.5rem;
  position: relative;
}

.fit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.5rem;
  height: 1px;
  background: var(--spa);
}

/* -----------------------------------
   Contact
   ----------------------------------- */

.section-contact {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--paper);
}

.contact-body {
  max-width: var(--measure);
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(250, 250, 248, 0.75);
  margin-bottom: 3rem;
}

.contact-body a {
  color: var(--spa);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 38rem;
  border-top: 1px solid rgba(250, 250, 248, 0.15);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(250, 250, 248, 0.15);
  transition: padding-left 0.25s ease, color 0.2s ease;
}

.contact-link:hover {
  padding-left: 1rem;
  color: var(--spa);
}

.contact-link-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(250, 250, 248, 0.5);
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.contact-link-value .ext {
  font-size: 0.7em;
  color: var(--spa);
  margin-left: 0.3rem;
}

/* -----------------------------------
   Footer
   ----------------------------------- */

.site-footer {
  padding: 3rem var(--section-pad-x);
  background: var(--ink);
  color: rgba(250, 250, 248, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  color: var(--spa);
  margin-bottom: 1rem;
}

.footer-mark .mark-line-1 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
}

.footer-mark .mark-rule {
  width: 80px;
  height: 1px;
  background: rgba(250, 250, 248, 0.3);
}

.footer-mark .mark-line-2 {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  line-height: 1;
}

.footer-meta,
.footer-copy {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* -----------------------------------
   Scroll reveal animations
   ----------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* -----------------------------------
   Selection
   ----------------------------------- */

::selection {
  background: var(--spa);
  color: white;
}
