/* --- Global Variables & Palette --- */
:root {
  --color-primary: #111315;
  --color-secondary: #1a1d20;
  --color-accent-gold: #c5a059;
  --color-accent-gold-hover: #b38f48;
  --color-blue-badge: #2d5a88;
  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-text-main: #2b2f33;
  --color-text-muted: #6c757d;
  --color-border: #e2e8f0;
  
  /* Sans-serif typography aligned with totellastory.net */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition: all 0.25s ease-in-out;
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Layout Utilities */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-600 {
  max-width: 650px;
}

.section {
  padding: 5.5rem 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-dark {
  background-color: var(--color-primary);
}

.text-white {
  color: #ffffff;
}

.text-gold {
  color: var(--color-accent-gold);
}

.text-center {
  text-align: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Modern Sans-Serif Typography */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 19, 21, 0.94);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.nav-menu a:hover {
  color: var(--color-accent-gold);
}

.nav-btn {
  background: var(--color-accent-gold);
  color: var(--color-primary) !important;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-btn:hover {
  background: var(--color-accent-gold-hover);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/hero-flagship.jpg') center center/cover no-repeat;
  padding-top: 5rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.35) 0%, rgba(11, 22, 38, 0.8) 60%, var(--color-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 860px;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

.btn-primary {
  background: var(--color-accent-gold);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent-gold-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* About / Bio */
.grid-two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.bio-portrait {
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--color-accent-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.bio-text p {
  margin-bottom: 1.25rem;
  color: #3f4448;
}

.inline-link {
  color: var(--color-accent-gold);
  font-weight: 600;
  text-decoration: underline;
}

.quote-intro {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.bio-quote {
  font-size: 1.25rem;
  font-weight: 500;
  border-left: 3px solid var(--color-accent-gold);
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  color: var(--color-primary);
}

.bio-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* The Engine Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: left;
}

.cards-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--color-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-gold);
}

/* Craft Profiles */
.craft-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 8px;
}

.craft-icon {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.craft-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.craft-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Projects Feed */
.slate-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.projects-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.project-entry {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.project-img-container {
  background: #0d0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  padding: 0.75rem;
}

.project-body {
  padding: 2rem 2.5rem 2rem 0.5rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(197, 160, 89, 0.15);
  color: #926d25;
}

.badge-blue {
  background: rgba(45, 90, 136, 0.15);
  color: var(--color-blue-badge);
}

.project-type {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.project-hook {
  font-size: 0.95rem;
  color: #444a50;
  margin-bottom: 0.75rem;
}

.project-source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Timeline */
.timeline-container {
  position: relative;
  border-left: 2px solid var(--color-border);
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-accent-gold);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-tag {
  font-size: 0.7rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: #4a5157;
}

/* References / Testimonials */
.testimonial-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.avatar-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-gold);
  flex-shrink: 0;
}

.ref-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.ref-title {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.ref-quote {
  font-style: italic;
  font-size: 0.92rem;
  color: #4a5157;
  line-height: 1.6;
}

/* Contact */
.contact-box {
  margin: 2.5rem 0;
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-accent-gold);
}

.contact-email:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.contact-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-link:hover {
  color: var(--color-accent-gold);
}

/* Footer */
.site-footer {
  background: #0b0c0d;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .grid-two-col,
  .cards-grid,
  .cards-grid.three-col,
  .cards-grid.two-col,
  .project-entry {
    grid-template-columns: 1fr;
  }
  
  .project-body {
    padding: 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.15rem;
  }
}