@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* =========================================================================
   VARIABLES & DESIGN SYSTEM
   ========================================================================= */
:root {
  --color-brand-bg: #F9F8F6;
  --color-brand-dark: #1A1A1A;
  --color-brand-dark-rgb: 26, 26, 26;
  --color-brand-muted: #EAE8E2;
  --color-brand-red: #991B1B; /* text-red-800 */
  --color-emerald-500: #10B981;
  --color-emerald-400-rgb: 52, 211, 153;
  --color-white: #FFFFFF;
  
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", "Lora", "Georgia", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-btn: 2px 2px 0px 0px rgba(26, 26, 26, 0.1);
  --shadow-card: 6px 6px 0px 0px #1A1A1A;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   BASE STYLES
   ========================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--color-brand-bg);
  color: var(--color-brand-dark);
  font-family: var(--font-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-col: column;
}

/* Custom Text Selection Styling */
::selection {
  background-color: var(--color-brand-dark);
  color: var(--color-brand-bg);
}

/* Utility layout wrapper */
#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Global Container Constraints */
.container-6xl {
  width: 100%;
  max-width: 1152px; /* 6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-4xl {
  width: 100%;
  max-width: 896px; /* 4xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
  background-color: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 80px; /* h-20 */
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .brand-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;
  letter-spacing: -0.025em; /* tracking-tight */
  color: var(--color-brand-dark);
  text-transform: uppercase;
}

.brand-dot {
  color: rgba(var(--color-brand-dark-rgb), 0.45);
  font-family: var(--font-serif);
  font-weight: 300;
}

.brand-author {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em; /* tracking-widest */
  color: rgba(var(--color-brand-dark-rgb), 0.4);
  text-transform: uppercase;
  display: none;
}
@media (min-width: 768px) {
  .brand-author {
    display: inline;
    margin-left: 16px; /* sm:space-x-4 spacer */
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Action button in header */
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid var(--color-brand-dark);
  background-color: var(--color-brand-dark);
  padding: 8px 16px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-bg);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}
.header-contact-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0px 0px var(--color-brand-dark);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-editorial {
  max-width: 48rem; /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Alliance dynamic status badge */
.alliance-badge {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--color-brand-dark-rgb), 0.15);
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.ping-indicator {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}

.ping-pulse {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: rgb(52, 211, 153);
  opacity: 0.75;
}

.ping-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 8px;
  width: 8px;
  background-color: rgb(16, 185, 129);
}

.badge-text {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
}

/* Typographic Title Styling */
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem; /* 4xl */
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-brand-dark);
  line-height: 1.08;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem; /* 5xl */
  }
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem; /* 64px */
  }
}

.italic-highlight {
  font-style: italic;
  font-weight: 300;
  color: var(--color-brand-red);
}

/* Editorial Subtitle/lead */
.hero-lead {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 1.125rem; /* text-lg */
  color: rgba(var(--color-brand-dark-rgb), 0.8);
  max-width: 42rem; /* max-w-2xl */
  line-height: 1.625;
  font-weight: 300;
}
@media (min-width: 640px) {
  .hero-lead {
    font-size: 1.25rem; /* text-xl */
  }
}

/* Interactive CTAs */
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  background-color: var(--color-brand-dark);
  padding: 14px 24px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F9F8F6;
  border: 2px solid var(--color-brand-dark);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  cursor: pointer;
}
.primary-btn:hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px 0px var(--color-brand-dark);
}

.primary-btn svg {
  transition: transform 0.2s ease;
}
.primary-btn:hover svg {
  transform: translate(2px, 2px);
}

/* Vision Text Block */
.vision-block {
  margin-top: 80px;
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto;
  margin-right: auto;
  color: var(--color-brand-dark);
}

.vision-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 24px; /* space-y-6 */
  font-size: 17px;
  line-height: 1.8;
  color: rgba(var(--color-brand-dark-rgb), 0.9);
  font-weight: 400;
  font-family: var(--font-serif);
}
@media (min-width: 640px) {
  .vision-paragraphs {
    font-size: 19px;
  }
}

.vision-bold-lead {
  font-weight: 700;
  color: var(--color-brand-dark);
  font-size: 18px;
  padding-top: 16px;
}
@media (min-width: 640px) {
  .vision-bold-lead {
    font-size: 20px;
  }
}

/* =========================================================================
   ABOUT ME SECTION
   ========================================================================= */
.about-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-brand-bg);
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
}
@media (min-width: 768px) {
  .about-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Subtle architectural grid pattern background */
.grid-canvas {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
}

.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
}

/* Image frame styling and offset styling */
.about-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .about-image-col {
    grid-column: span 5 / span 5;
    position: sticky;
    top: 96px;
    margin-bottom: 0;
  }
}

.image-frame-wrapper {
  position: relative;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Offset decorative heavy lines background */
.bracket-offset {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 256px;
  height: 320px;
  background-color: rgba(var(--color-brand-dark-rgb), 0.05);
  border: 2px solid var(--color-brand-dark);
  pointer-events: none;
}

/* Primary thick photo border container */
.primary-frame {
  position: relative;
  width: 256px;
  height: 320px;
  overflow: hidden;
  border-radius: 0;
  border: 3px solid var(--color-brand-dark);
  background-color: var(--color-white);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: transform var(--transition-normal);
}
.primary-frame:hover {
  transform: translate(4px, -4px);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-label {
  text-align: center;
  margin-top: 20px;
}

.avatar-name {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

/* Text col */
.about-text-col {
  color: var(--color-brand-dark);
}
@media (min-width: 768px) {
  .about-text-col {
    grid-column: span 7 / span 7;
  }
}

.about-title {
  font-family: var(--font-serif);
  font-size: 1.5rem; /* 2xl */
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-brand-dark);
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .about-title {
    font-size: 1.875rem; /* 3xl */
  }
}

.narrative-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(var(--color-brand-dark-rgb), 0.9);
  font-weight: 400;
  font-family: var(--font-serif);
}
@media (min-width: 640px) {
  .narrative-paragraphs {
    font-size: 19px;
  }
}

.bold-statement {
  font-weight: 700;
}

/* Elegant left quote layout */
.quote-box {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem; /* 2xl */
  color: var(--color-brand-red);
  font-style: italic;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(153, 27, 27, 0.3);
}
@media (min-width: 640px) {
  .quote-box {
    font-size: 1.875rem; /* 3xl */
  }
}

.divider-paragraph {
  padding-top: 24px;
  border-top: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
}

/* =========================================================================
   LEAD CAPTURE SECTION
   ========================================================================= */
.contact-section {
  padding-top: 96px;
  padding-bottom: 96px;
  background-color: var(--color-brand-bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
  scroll-margin-top: 80px; /* header space fallback */
}

.contact-header {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-brand-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .contact-title {
    font-size: 26px;
  }
}

.contact-subtitle-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-brand-red);
  font-size: 16px;
}
@media (min-width: 640px) {
  .contact-subtitle-group {
    font-size: 18px;
  }
}

.contact-lead {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(var(--color-brand-dark-rgb), 0.85);
  line-height: 1.625;
  max-width: 32rem; /* max-w-lg */
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}
@media (min-width: 640px) {
  .contact-lead {
    font-size: 16px;
  }
}

/* Interactive Card / Sheet Layout */
.contact-panel {
  border: 2px solid var(--color-brand-dark);
  background-color: var(--color-white);
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-header {
  border-bottom: 2px solid var(--color-brand-dark);
  background-color: rgba(242, 239, 233, 0.4);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--color-brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.panel-dot {
  height: 10px;
  width: 10px;
  background-color: var(--color-brand-dark);
}

.panel-body {
  padding: 32px;
}
@media (min-width: 640px) {
  .panel-body {
    padding: 40px;
  }
}

/* Alerts and errors */
.error-alert {
  display: flex;
  align-items: start;
  gap: 12px;
  border-radius: 0;
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 16px;
  font-size: 0.75rem; /* text-xs */
  color: var(--color-brand-red);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.error-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Interactive inputs and alignment */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(var(--color-brand-dark-rgb), 0.5);
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--color-brand-dark);
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.75rem; /* text-xs */
  color: var(--color-brand-dark);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
}
.form-input::placeholder {
  color: rgba(var(--color-brand-dark-rgb), 0.25);
}
.form-input:focus {
  border-color: rgba(var(--color-brand-dark-rgb), 0.6);
  outline: none;
}

.button-wrapper {
  padding-top: 8px;
}

.submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  background-color: var(--color-brand-dark);
  padding: 14px 24px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F9F8F6;
  border: 2px solid var(--color-brand-dark);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.submit-btn:not(:disabled):hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px 0px var(--color-brand-dark);
}

.submit-btn svg {
  transition: transform 0.2s ease;
}
.submit-btn:not(:disabled):hover svg {
  transform: translateX(2px);
}

.spinner {
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  border-radius: 50%;
  border: 1px solid var(--color-brand-bg);
  border-top-color: transparent;
}

/* Success panel state layout */
.success-panel {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.success-icon-wrapper {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid var(--color-brand-dark);
  background-color: var(--color-brand-bg);
  color: var(--color-brand-dark);
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px 0px var(--color-brand-dark);
}

.success-title {
  font-size: 0.875rem; /* text-sm */
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
}

.success-text {
  color: rgba(var(--color-brand-dark-rgb), 0.7);
  font-size: 0.75rem;
  max-width: 28rem; /* max-w-md */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: 0.025em;
  line-height: 1.625;
}

.reset-btn {
  border-radius: 0;
  border: 2px solid var(--color-brand-dark);
  background-color: var(--color-brand-dark);
  padding: 12px 24px;
  font-size: 10px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: #F9F8F6;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}
.reset-btn:hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  box-shadow: 3px 3px 0px 0px var(--color-brand-dark);
}

/* Dynamic toggling states */
.hidden {
  display: none !important;
}

/* =========================================================================
   FOOTER SECTION
   ========================================================================= */
.footer {
  border-top: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
  background-color: var(--color-brand-bg);
  padding-top: 64px;
  padding-bottom: 64px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(var(--color-brand-dark-rgb), 0.1);
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  color: var(--color-brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo-dot {
  color: rgba(var(--color-brand-dark-rgb), 0.45);
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.75rem; /* text-xs */
  color: rgba(var(--color-brand-dark-rgb), 0.5);
  max-width: 20rem; /* max-w-xs */
  font-weight: 300;
  line-height: 1.625;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: rgba(var(--color-brand-dark-rgb), 0.45);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copyright {
  letter-spacing: 0.05em;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}
