/* ==========================================================================
   Morph4Sys (M4S) — Website v2.2
   Static CSS — compiled for DreamHost + Cloudflare CDN delivery
   No external dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-black: #000000;
  --color-near-black: #1a1a1a;
  --color-orange: #FF4B2D;
  --color-amber: #F39C12;
  --color-white: #ffffff;
  --color-off-white: #f9f7f4;
  --color-warm-gray: #f0ede8;
  --color-text: #1a1a1a;
  --color-muted: #555550;
  --color-border: #e0dbd4;

  /* Semantic Roles */
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-off-white);
  --color-bg-panel: var(--color-warm-gray);
  --color-accent: var(--color-orange);
  --color-rule: var(--color-orange);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;   /* 17px — slightly larger for readability */
  --text-lg: 1.1875rem;     /* ~19px */
  --text-xl: 1.3125rem;     /* ~21px */
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 3.5rem;       /* hero headline — slightly larger, more commanding */
  --line-height-tight: 1.1; /* tighter for large headline */
  --line-height-snug: 1.5;  /* up from 1.4 for pull-quotes */
  --line-height-normal: 1.72; /* up from 1.6 for body readability */

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 52rem;
  --max-width-wide: 68rem;
  --max-width-cards: 65rem;    /* ~1040px — card sections breathe more */
  --section-pad-y: var(--space-20);

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;        /* 12px — slightly rounder for tile/card unity */
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 2px 8px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.07);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--color-near-black);
  text-decoration-color: var(--color-accent);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-near-black);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.container--cards {
  max-width: var(--max-width-cards);
}

.section-pad {
  padding-block: var(--section-pad-y);
}

/* --------------------------------------------------------------------------
   Orange Rule Separator
   -------------------------------------------------------------------------- */
.rule-orange {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-orange);
  border: none;
  opacity: 0.20;  /* further reduced — more premium, less heavy */
}

/* Left-accent variant — shorter, more selective divider */
.rule-orange--accent {
  width: 3rem;
  height: 2px;
  opacity: 0.55;
  margin-inline: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.label-eyebrow {
  display: block;
  font-size: 0.8375rem;          /* up from 0.7rem (~20% increase) */
  font-weight: 700;
  letter-spacing: 0.14em;        /* slightly reduced for legibility */
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.label-eyebrow--accent {
  color: var(--color-orange);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-near-black);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2.section-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-near-black);
  margin-bottom: var(--space-8);
}

h3.card-title {
  font-size: 0.8375rem;          /* up from 0.7rem (~20% increase) */
  font-weight: 700;
  letter-spacing: 0.14em;        /* slightly reduced for legibility */
  text-transform: uppercase;
  color: var(--color-near-black);
  margin-bottom: var(--space-6);
}

.subhead {
  font-size: var(--text-lg);
  line-height: var(--line-height-normal);
  color: var(--color-muted);
  max-width: 42rem;
}

.body-copy {
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  max-width: 42rem;
}

.body-copy p + p {
  margin-top: var(--space-4);
}

/* Pull-quote treatment */
.pull-quote {
  font-size: var(--text-xl);
  line-height: var(--line-height-snug);
  font-weight: 400;
  color: var(--color-near-black);
  border-left: 2px solid var(--color-orange);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  max-width: 38rem;
}

/* Bulleted lists for content sections */
.content-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.content-list li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text);
  line-height: var(--line-height-normal);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background-color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: static;              /* normal document flow — no sticky/fixed */
  padding-block: var(--space-3);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo img {
  height: 144px;  /* up from 96px — ~50% increase */
  width: auto;
}

/* Header navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-size: 0.8125rem;          /* 13px — compact, restrained */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-near-black);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
  outline: none;
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Mobile: hide nav links below 600px, stack below logo */
@media (max-width: 37.49rem) {
  .site-header .container {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .site-nav {
    width: 100%;
    gap: var(--space-5);
    padding-bottom: var(--space-2);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
  }
  .site-nav__link {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--color-white);
  padding-block: var(--space-24) var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero h1 {
  margin-bottom: var(--space-10);
  max-width: 42rem;
  padding-top: var(--space-4);
}

/* Phoenix watermark — right-side hero accent */
.hero__phoenix {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  pointer-events: none;
  user-select: none;
  opacity: 0.12;
}

.hero__phoenix img {
  width: 100%;
  height: auto;
}

@media (max-width: 47.99rem) {
  .hero__phoenix {
    opacity: 0.07;
    width: 260px;
    right: -2rem;
  }
}

/* --------------------------------------------------------------------------
   SECTION — Generic content section
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad-y);
}

.section--alt {
  background-color: var(--color-off-white);
}

.section__header {
  margin-bottom: var(--space-10);
}

.section__body > * + * {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   BOTTOM CARDS GRID
   -------------------------------------------------------------------------- */
.cards-section {
  background-color: var(--color-off-white);
  padding-block: var(--section-pad-y);
  border-top: 1px solid var(--color-border);
}

.cards-section__heading {
  margin-bottom: var(--space-8);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-10);         /* increased ~25% from space-8 */
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 75, 45, 0.18);
  border-top: 3px solid rgba(255, 75, 45, 0.18);
  transition: box-shadow 150ms ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card .body-copy {
  font-size: 1rem;                  /* minimum 16px inside cards */
  line-height: 1.72;
}

.card .body-copy + .body-copy {
  margin-top: var(--space-5);      /* slightly more paragraph spacing */
}

/* Founder card is full-width */
.card--founder {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 48rem) {
  .card--founder {
    grid-template-columns: auto 1fr;
  }
}

/* Contact card is full-width */
.card--contact {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   FOUNDER HEADSHOT PLACEHOLDER
   -------------------------------------------------------------------------- */
.headshot-placeholder {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background-color: var(--color-warm-gray);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  /* PLACEHOLDER — replace img src when headshot is available */
}

.headshot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CONTACT / CTA
   -------------------------------------------------------------------------- */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-6);
}

.contact-link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-near-black);
  text-decoration: none;
  padding: 0.45em 1.1em;
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background-color: var(--color-orange);
  color: var(--color-white);
  outline: none;
}

.contact-link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-near-black);
  color: var(--color-white);
  padding-block: var(--space-10);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 48rem) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-white);
  border-color: var(--color-orange);
  outline: none;
}

.footer-link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Phoenix Accent (decorative, restrained)
   -------------------------------------------------------------------------- */
.phoenix-accent {
  display: inline-block;
  width: 28px;
  height: auto;
  opacity: 0.18;
  vertical-align: middle;
  margin-left: var(--space-3);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
/* Mobile section padding — tighter on small screens */
@media (max-width: 47.99rem) {
  :root {
    --section-pad-y: var(--space-12);
  }
  .hero {
    padding-block: var(--space-16) var(--space-16);
  }
  .site-logo img {
    height: 112px;  /* slightly smaller on mobile, still 40% larger than original 96px */
  }
}

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

/* --------------------------------------------------------------------------
   Middle-section Tile Layouts
   Three sections convert bullets → tiles for stronger visual structure
   -------------------------------------------------------------------------- */

/* Unified item grid — 3 columns desktop, stacked mobile */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);   /* 16px mobile */
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);   /* 24px desktop */
    align-items: stretch;
  }
}

/* Unified item tile — used in all three middle-section lists */
.item-tile {
  background-color: var(--color-white);
  border: 1px solid rgba(255, 75, 45, 0.18);
  border-left: 3px solid rgba(255, 75, 45, 0.55);  /* left accent only */
  border-radius: var(--radius-md);
  padding: var(--space-6);         /* 24px desktop */
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-card);
}

@media (max-width: 47.99rem) {
  .item-tile {
    padding: var(--space-5);      /* 18px mobile */
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .skip-link { display: none; }
  .site-footer { background: none; color: var(--color-near-black); }
  .footer-legal, .footer-link { color: var(--color-near-black); }
}
