/* ============================================================
   ESENDES.COM — MASTER STYLESHEET
   Colour palette, typography, layout, components, responsive
   ============================================================ */

/* ------------------------------------------------------------
   GOOGLE FONTS — Inter
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Colours */
  --bg:            #FAFAF7;
  --bg-alt:        #F5F4F0;
  --text-primary:  #1A1A1A;
  --text-secondary:#6B6B6B;
  --accent:        #1E2550;
  --border:        #E4E3DE;
  --white:         #FAFAF7;

  /* Typography */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --max-width:     1200px;
  --reading-width: 752px;
  --section-gap:   100px;
  --nav-height:    76px;

  /* Transitions */
  --transition:    200ms ease;
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

/* ------------------------------------------------------------
   LAYOUT CONTAINERS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.reading-container {
  width: 100%;
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, transform 300ms ease, background-color 300ms ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  background-color: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav.hidden {
  transform: translateY(-100%);
}

.site-nav.visible {
  transform: translateY(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: opacity var(--transition);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu nav a {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 24px;
  display: block;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.mobile-menu nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ------------------------------------------------------------
   PAGE WRAPPER (accounts for fixed nav)
   ------------------------------------------------------------ */
.page-wrapper {
  padding-top: var(--nav-height);
}

/* ------------------------------------------------------------
   HERO — HOMEPAGE
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.hero-headline {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 780px;
  margin-bottom: 36px;
}

.hero-intro {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 680px;
  font-weight: 400;
  margin-bottom: 0;
}

/* Diamond watermark */
.hero-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

/* Hero split layout — text left, portrait right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-portrait {
  flex-shrink: 0;
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(12%);
  max-height: 420px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background-color: var(--text-secondary);
  opacity: 0.5;
}

/* ------------------------------------------------------------
   SECTION — GENERIC
   ------------------------------------------------------------ */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

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

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ------------------------------------------------------------
   TYPOGRAPHY — HEADINGS
   ------------------------------------------------------------ */
.page-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 52px;
}

.section-heading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-heading-sm {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ------------------------------------------------------------
   BODY COPY
   ------------------------------------------------------------ */
.body-copy {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: var(--reading-width);
}

.body-copy p {
  margin-bottom: 24px;
}

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

/* ------------------------------------------------------------
   CREDIBILITY ANCHORS — HOMEPAGE
   ------------------------------------------------------------ */
.anchors-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.anchor-list {
  list-style: none;
  max-width: 860px;
}

.anchor-item {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.anchor-item:last-child {
  border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------
   THREE PILLARS — HOMEPAGE
   ------------------------------------------------------------ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  padding: 48px 44px;
  border-left: 1px solid var(--border);
}

.pillar:first-child {
  border-left: none;
  padding-left: 0;
}

.pillar-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.pillar-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

.pillar-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.pillar-link:hover {
  border-bottom-color: var(--accent);
  opacity: 1;
}

/* ------------------------------------------------------------
   VENTURE CARDS — HOMEPAGE PREVIEW
   ------------------------------------------------------------ */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.venture-card {
  border: 1px solid var(--border);
  padding: 32px 28px;
  background-color: var(--bg);
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  border-color: var(--accent);
}

.venture-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  opacity: 0.35;
}

.venture-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.venture-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}

.venture-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.venture-card-link:hover {
  gap: 10px;
  opacity: 1;
}

.venture-card-link::after {
  content: '→';
}

/* ------------------------------------------------------------
   CONTACT CTA — HOMEPAGE
   ------------------------------------------------------------ */
.cta-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  text-align: center;
}

.cta-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 36px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  opacity: 0.85;
  color: var(--white);
}

/* ------------------------------------------------------------
   PORTRAIT — BACKGROUND PAGE
   ------------------------------------------------------------ */
.portrait-wrap {
  float: right;
  width: 300px;
  margin: 6px 0 32px 52px;
}

.portrait-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* ------------------------------------------------------------
   TRANSITION SENTENCE (Background page)
   ------------------------------------------------------------ */
.narrative-pivot {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 56px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.body-copy::after {
  content: '';
  display: table;
  clear: both;
}

/* ------------------------------------------------------------
   WHAT WE DO — SECTIONS
   ------------------------------------------------------------ */
.wwd-section {
  padding-bottom: var(--section-gap);
  max-width: var(--reading-width);
}

.wwd-section + .wwd-section {
  padding-top: var(--section-gap);
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------
   VENTURES PAGE — FULL CARDS
   ------------------------------------------------------------ */
.ventures-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: var(--border);
}

.venture-full-card {
  background-color: var(--bg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition);
}

.venture-full-card:hover {
  background-color: var(--bg-alt);
}

.venture-full-card.prior .venture-full-name {
  color: var(--text-secondary);
}

.venture-graphic {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  opacity: 0.2;
}

.venture-full-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.venture-full-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  flex: 1;
  margin-bottom: 28px;
}

.venture-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.venture-status,
.venture-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.venture-status::before {
  content: 'Status: ';
  font-weight: 400;
}

.venture-role::before {
  content: 'Role: ';
  font-weight: 400;
}

.venture-meta-divider {
  width: 1px;
  height: 12px;
  background-color: var(--border);
}

/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */
.contact-intro {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 580px;
  margin-bottom: 52px;
}

.contact-direct-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 60px;
}

.contact-direct a {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-direct a:hover {
  opacity: 0.7;
}

.contact-form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-form {
  max-width: 580px;
}

.form-field {
  margin-bottom: 32px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 10px 0 12px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.form-submit {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 44px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
  text-transform: uppercase;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-message {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  display: none;
}

.form-message.visible {
  display: block;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 44px;
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   REVEAL ANIMATION
   ------------------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
}

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

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .reveal {
    animation: fadeUp 0.55s ease both;
  }
  .reveal:nth-child(1) { animation-delay: 0.05s; }
  .reveal:nth-child(2) { animation-delay: 0.13s; }
  .reveal:nth-child(3) { animation-delay: 0.21s; }
  .reveal:nth-child(4) { animation-delay: 0.29s; }
  .reveal:nth-child(5) { animation-delay: 0.37s; }
  .reveal:nth-child(6) { animation-delay: 0.45s; }
  .reveal:nth-child(7) { animation-delay: 0.53s; }
}

/* ------------------------------------------------------------
   RESPONSIVE — TABLET (768px – 1199px)
   ------------------------------------------------------------ */
@media (max-width: 1199px) {
  :root {
    --section-gap: 80px;
    --nav-height: 72px;
  }

  .container,
  .reading-container,
  .hero-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-layout {
    grid-template-columns: 1fr 260px;
    gap: 52px;
  }

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

  .pillar {
    padding: 40px 32px;
  }
}

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

  .pillar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 40px 0;
  }

  .pillar:first-child {
    border-top: none;
    padding-top: 0;
  }

  .ventures-full-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — MOBILE (below 768px)
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --section-gap: 64px;
    --nav-height: 60px;
  }

  html {
    font-size: 16px;
  }

  .container,
  .reading-container,
  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo img {
    height: 44px;
  }

  .hero {
    min-height: calc(100svh - var(--nav-height));
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    display: none;
  }

  .hero-headline {
    font-size: clamp(22px, 7vw, 30px);
    margin-bottom: 24px;
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-watermark {
    display: none;
  }

  .scroll-indicator {
    left: 20px;
    bottom: 28px;
    font-size: 11px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 32px 0;
  }

  .pillar:first-child {
    border-top: none;
    padding-top: 0;
  }

  .ventures-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .anchor-item {
    font-size: 15px;
    padding: 16px 0;
  }

  .cta-section {
    text-align: left;
  }

  .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    padding: 16px;
  }

  .portrait-wrap {
    float: none;
    width: 100%;
    margin: 0 0 28px 0;
  }

  .portrait-photo {
    max-height: 340px;
    object-fit: cover;
    object-position: center 15%;
  }

  .narrative-pivot {
    font-size: 17px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .body-copy {
    font-size: 16px;
  }

  .body-copy p {
    margin-bottom: 20px;
  }

  .wwd-section + .wwd-section {
    padding-top: 56px;
  }

  .ventures-full-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .venture-full-card {
    padding: 32px 20px;
  }

  .venture-full-name {
    font-size: 19px;
  }

  .contact-intro {
    font-size: 17px;
  }

  .contact-direct a {
    font-size: 16px;
  }

  .form-submit {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   PRINT
   ------------------------------------------------------------ */
@media print {
  .site-nav, .mobile-menu, .scroll-indicator { display: none; }
  .page-wrapper { padding-top: 0; }
  body { color: #000; background: #fff; }
}
