/* ============================================================
   eFeMeX — Monochrome Authority
   Strictly black and white. No color. No photography.
   Typographic formalism at institutional scale.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Libre+Franklin:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* --- Reset & Foundation --- */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --light-gray: #e0e0e0;
  --mid-gray: #999999;
  --dark-gray: #333333;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

  --page-max: 1400px;
  --page-pad: clamp(24px, 5vw, 80px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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


/* --- Utility --- */

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  transition: transform 0.4s var(--ease-out);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  line-height: 1;
}

.wordmark .de-emphasis {
  font-weight: 200;
  opacity: 0.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

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

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}


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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-wordmark {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 16rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 0.88;
  margin-bottom: 0.15em;
}

.hero-wordmark .de-emphasis {
  font-weight: 100;
  opacity: 0.22;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  margin: 2rem 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 600px;
  opacity: 0.85;
}

.hero-descriptor {
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Animated grain overlay for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}


/* --- Section: Common --- */

.section {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

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

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

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

.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.45;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 900px;
}

.section-heading em {
  font-style: italic;
}

.section-body {
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  max-width: 640px;
  opacity: 0.8;
}

.section-body p + p {
  margin-top: 1.5em;
}


/* --- Platform Section --- */

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid;
}

.platform-grid .cell {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid;
  position: relative;
}

.platform-grid .cell:nth-child(odd) {
  border-right: 1px solid;
}

.section--black .platform-grid {
  border-color: rgba(255, 255, 255, 0.15);
}

.section--black .platform-grid .cell {
  border-color: rgba(255, 255, 255, 0.15);
}

.section--white .platform-grid {
  border-color: rgba(0, 0, 0, 0.12);
}

.section--white .platform-grid .cell {
  border-color: rgba(0, 0, 0, 0.12);
}

.cell-number {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.cell-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cell-text {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.65;
}


/* --- Compliance Banner --- */

.compliance-strip {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.compliance-strip .container {
  max-width: none;
}

.compliance-items {
  display: flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.3;
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 1.5rem;
}

.compliance-items span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 1.5rem;
  vertical-align: middle;
}

.compliance-items span:first-child::before {
  display: none;
}


/* --- Philosophy / Approach --- */

.approach-statements {
  margin-top: 4rem;
}

.approach-statement {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.section--black .approach-statement {
  border-color: rgba(255, 255, 255, 0.08);
}

.approach-statement:last-child {
  border-bottom: none;
}

.approach-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  padding-top: 0.3em;
}

.approach-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.5;
  max-width: 700px;
}


/* --- Large Type Statement --- */

.statement-section {
  padding: clamp(100px, 15vh, 200px) 0;
  text-align: center;
}

.statement-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.2;
  max-width: 1000px;
  margin: 0 auto;
}

.statement-text em {
  font-style: italic;
}


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

.contact-section {
  padding: clamp(100px, 15vh, 200px) 0;
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.contact-heading em {
  font-style: italic;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-method {
  margin-bottom: 3rem;
}

.contact-method-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.contact-method-value {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.contact-method-value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.contact-method-value a:hover {
  border-color: currentColor;
}

.contact-note {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.45;
  max-width: 380px;
}


/* --- Footer --- */

.site-footer {
  padding: 2.5rem 0;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.35;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
}

.footer-nav a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
}


/* --- Reveal Animations --- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero-specific entrance */
.hero .hero-wordmark {
  opacity: 0;
  transform: translateY(40px);
  animation: hero-rise 1.2s var(--ease-out) 0.3s forwards;
}

.hero .hero-rule {
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-expand 0.8s var(--ease-out) 0.8s forwards;
}

.hero .hero-tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 0.8s var(--ease-out) 1.1s forwards;
}

.hero .hero-descriptor {
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 1.5s forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rule-expand {
  to {
    transform: scaleX(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 0.4;
  }
}


/* --- Responsive --- */

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1000;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .nav-toggle {
    display: block;
  }

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

  .platform-grid .cell:nth-child(odd) {
    border-right: none;
  }

  .approach-statement {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .compliance-items {
    gap: 2rem;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-wordmark {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .platform-grid .cell {
    padding: 2rem 1.5rem;
  }

  .statement-text {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .compliance-items {
    gap: 1.5rem;
    font-size: 0.55rem;
  }
}
