/* ==========================================================
   Ingeniosity — Editorial Authority Theme
   ========================================================== */

:root {
  --bg:           #F6F2ED;
  --bg-warm:      #EDE8E0;
  --bg-card:      #FFFFFF;
  --bg-dark:      #1C1917;
  --text:         #1C1917;
  --text-body:    #44403C;
  --text-muted:   #78716C;
  --accent:       #9A3412;
  --accent-light: rgba(154, 52, 18, 0.09);
  --accent-hover: #7C2D12;
  --border:       #D6D3CD;
  --border-light: #E7E5DF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; }

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* === UTILITY === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.label::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1.5px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.75rem;
}

.rule {
  width: 3rem;
  height: 1.5px;
  background: var(--accent);
  border: none;
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  width: auto; height: auto;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.env-notice {
  background: #fff3cd;
  color: #5f370e;
  border-bottom: 1px solid #f1da9e;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* === NAV === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(246, 242, 237, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}

.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.menu a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

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

.menu a.nav-cta {
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu a.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 740px;
}

.hero-content .label {
  margin-bottom: 1.75rem;
  animation: fadeIn 0.7s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  color: var(--bg-dark);
  animation: fadeIn 0.7s ease-out 0.1s both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 580px;
  margin-bottom: 2.75rem;
  animation: fadeIn 0.7s ease-out 0.2s both;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 0.7s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--bg-dark);
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(154, 52, 18, 0.2);
}

.btn-secondary {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.btn-secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-aside {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--border);
  letter-spacing: 0.08em;
  animation: fadeIn 1s ease-out 0.6s both;
}

/* === ONE-LINER === */
.oneliner {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
  text-align: center;
}

.oneliner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
}

.oneliner h2 span {
  color: var(--accent);
  font-weight: 800;
}

/* === SECTIONS === */
.section {
  padding: 7rem 0;
}

/* === PILLARS === */
.pillars-section {
  background: var(--bg);
}

.pillars-intro {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.pillars-intro .label { margin-bottom: 1.5rem; }

.pillars-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.pillars-intro p {
  color: var(--text-body);
  font-size: 1rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.pillar {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.4s;
  position: relative;
}

.pillar:last-child { border-right: none; }

.pillar:hover { background: var(--bg); }

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2.25rem; right: 2.25rem;
  height: 0;
  background: var(--accent);
  transition: height 0.3s;
}

.pillar:hover::after { height: 3px; }

.pillar-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.4s;
}

.pillar:hover .pillar-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.pillar-icon svg {
  width: 18px; height: 18px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.pillar p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.pillar p:last-of-type { margin-bottom: 0; }

.pillar-footer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  line-height: 1.8;
}

/* === PROBLEM === */
.problem-section {
  background: var(--bg-warm);
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.problem-left .label { margin-bottom: 1.5rem; }

.problem-left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.problem-left p {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.problem-left p:last-child { margin-bottom: 0; }

.problem-left strong {
  color: var(--text);
  font-weight: 600;
}

.paradigm-shift {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.paradigm-card {
  padding: 2.25rem 2rem;
}

.paradigm-card--old {
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.paradigm-card--new {
  background: var(--bg-dark);
  color: #F6F2ED;
}

.paradigm-card .label { margin-bottom: 0.75rem; font-size: 0.62rem; }
.paradigm-card--new .label { color: var(--accent); opacity: 0.9; }
.paradigm-card--new .label::before { background: var(--accent); }

.paradigm-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.paradigm-card p { font-size: 0.9rem; line-height: 1.7; }
.paradigm-card--old p { color: var(--text-muted); }
.paradigm-card--new p { color: #A8A29E; }

.paradigm-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0;
  color: var(--accent);
}

/* === HOW WE WORK === */
.how-section { background: var(--bg); }

.how-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: end;
}

.how-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.how-header p {
  color: var(--text-body);
  font-size: 1rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-step {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-light);
  transition: border-color 0.3s;
}

.how-step:hover { border-left-color: var(--accent); }

.how-step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.how-step:hover .how-step-num { color: var(--accent); }

.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.how-step p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* === QUOTE === */
.quote-section {
  background: var(--bg-dark);
  padding: 6rem 2rem;
}

.quote-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 0.5;
  margin-bottom: 1rem;
}

.quote-inner blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.55;
  color: #F6F2ED;
  margin-bottom: 2rem;
}

.quote-inner cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* === ABOUT === */
.about-section { background: var(--bg-warm); }

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.02);
  transition: filter 0.5s;
}

.about-photo img:hover { filter: grayscale(0%); }

.about-photo::after {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1.5px solid var(--accent);
  z-index: -1;
  opacity: 0.4;
}

.about-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.about-body p {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.about-body p strong {
  color: var(--text);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all 0.3s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* === CONTACT === */
.contact-section { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-left .label { margin-bottom: 1.5rem; }

.contact-left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.contact-left > p {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.contact-link:last-of-type { border-bottom: 1px solid var(--border-light); }

.contact-link:hover {
  color: var(--accent);
  padding-left: 0.4rem;
}

.cl-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 70px;
  flex-shrink: 0;
}

.cl-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.75rem 2.5rem;
}

.contact-form-box h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 2px;
  transition: border-color 0.3s;
}

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

.field textarea { height: 110px; resize: vertical; }

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(154, 52, 18, 0.15);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* === FOOTER === */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .problem-layout,
  .how-header,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .pillar {
    border: 1px solid var(--border);
    border-right: 1px solid var(--border);
    margin-bottom: -1px;
  }

  .how-steps { grid-template-columns: 1fr; gap: 1.5rem; }

  .about-photo { max-width: 250px; }

  .hero-aside { display: none; }

  .menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(246, 242, 237, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }

  .menu.open { display: flex; }
  .menu.open a { font-size: 1rem; }

  .nav-toggle {
    display: block;
    z-index: 101;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 5rem 0; }
  .hero { min-height: 88vh; padding-top: 6rem; }
  .pillar { padding: 2rem 1.5rem; }
  .contact-form-box { padding: 2rem 1.5rem; }
  .paradigm-card { padding: 1.75rem 1.5rem; }
  .quote-section { padding: 4rem 1.25rem; }
}
