/*
Theme Name: GlueLogic Foundry
Theme URI: http://3.fendicro.com/
Author: Codex
Description: Molecular glue venture foundry theme for 3.fendicro.com. Positions the site around thesis-led asset creation, evidence rooms, operators, and option-to-build partnerships rather than a conventional CRO service menu.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fendi-gluefoundry
*/

:root {
  --ink: #101316;
  --ink-soft: #2b3236;
  --paper: #f4f7f2;
  --paper-2: #ffffff;
  --paper-3: #dfe6dc;
  --line: rgba(17, 19, 21, .16);
  --line-dark: rgba(255, 250, 241, .16);
  --muted: #5d6760;
  --muted-dark: #b7c0b8;
  --amber: #d68b2a;
  --amber-soft: #ffe0ad;
  --green: #1f6f5b;
  --blue: #265f87;
  --radius: 8px;
  --radius-sm: 8px;
  --shadow: 0 22px 70px rgba(17, 19, 21, .14);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 18px; top: 18px; width: auto; height: auto; z-index: 9999;
  padding: 9px 12px; background: var(--ink); color: #fff; border-radius: 8px;
}

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(244, 247, 242, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 246px; flex: 0 0 auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--ink);
  position: relative; box-shadow: 0 12px 30px rgba(17, 19, 21, .18);
}
.brand-mark:before {
  content: ""; position: absolute; left: 10px; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--amber);
}
.brand-mark:after {
  content: ""; position: absolute; right: 9px; bottom: 9px; width: 18px; height: 4px;
  border-radius: 999px; background: var(--paper); transform: rotate(-35deg);
}
.site-title { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 820; letter-spacing: 0; }
.site-title a { color: var(--ink); }
.site-tagline { margin: 2px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink); padding: 9px 12px; border-radius: 999px; white-space: nowrap;
}
.primary-navigation { margin-left: auto; min-width: 0; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; }
.primary-navigation .menu { display: flex; align-items: center; gap: 3px; }
.primary-navigation a {
  display: block; padding: 9px 10px; border-radius: 999px; color: #2c3034;
  font-size: 13px; font-weight: 720; line-height: 1.2; white-space: nowrap;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
  background: var(--ink); color: var(--paper-2);
}
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-height: 42px; padding: 10px 15px; border-radius: 999px; background: var(--amber);
  color: var(--ink); font-size: 13px; font-weight: 840; box-shadow: 0 14px 30px rgba(217, 138, 36, .22);
}
.header-cta:hover { background: var(--ink); color: var(--paper-2); }

.site-main { overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
  color: var(--ink-soft); background: rgba(255, 250, 241, .62);
  font-size: 12px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.section { padding: 76px 0; }
.section.dark { background: var(--ink); color: var(--paper-2); }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2 { margin: 14px 0 10px; font-size: clamp(31px, 4.7vw, 54px); line-height: 1.04; letter-spacing: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.dark .section-head p { color: var(--muted-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 12px 18px; border-radius: 999px; font-weight: 840; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper-2); }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); }
.dark .btn-primary { background: var(--amber); color: var(--ink); }
.dark .btn-secondary { color: var(--paper-2); border-color: var(--line-dark); }

.hero { padding: 76px 0 64px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 72%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .84fr); gap: 34px; align-items: stretch; }
.hero-copy { padding: 24px 0; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(46px, 6.4vw, 78px); line-height: .98; letter-spacing: 0; }
.hero-lead { max-width: 760px; margin: 0 0 26px; color: #3f4843; font-size: 20px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 760px; }
.proof-tile { border: 1px solid var(--line); background: rgba(255, 255, 255, .78); border-radius: 8px; padding: 13px; }
.proof-tile strong { display: block; font-size: 16px; }
.proof-tile span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.deal-board {
  background: var(--ink); color: var(--paper-2); border-radius: 8px; padding: 22px;
  box-shadow: var(--shadow); min-height: 520px; display: flex; flex-direction: column; gap: 14px;
}
.board-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.board-title { font-weight: 840; }
.board-meta { color: var(--muted-dark); font-size: 13px; }
.deal-row {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(255, 255, 255, .045);
}
.deal-code { color: var(--amber-soft); font-size: 12px; font-weight: 840; letter-spacing: .08em; }
.deal-row strong { display: block; line-height: 1.25; }
.deal-row span { display: block; color: var(--muted-dark); font-size: 13px; margin-top: 3px; }
.deal-status { border: 1px solid rgba(217, 138, 36, .42); color: var(--amber-soft); border-radius: 999px; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.board-note { margin-top: auto; background: var(--paper-2); color: var(--ink); border-radius: 8px; padding: 18px; }
.board-note strong { display: block; font-size: 18px; }
.board-note p { margin: 6px 0 0; color: var(--muted); }

.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; background: var(--ink); color: var(--paper-2); }
.manifesto-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: center; }
.manifesto h2 { margin: 12px 0 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; }
.manifesto p { margin: 0 0 14px; color: var(--muted-dark); font-size: 18px; }
.text-link { color: var(--amber-soft); font-weight: 840; border-bottom: 1px solid rgba(255, 224, 173, .48); }
.text-link:hover { color: #fff; }

.thesis-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.thesis-card, .offer-card, .memo-card, .page-panel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.thesis-card.featured { background: var(--ink); color: var(--paper-2); }
.thesis-card h3, .offer-card h3, .memo-card h3 { margin: 8px 0 10px; font-size: 24px; line-height: 1.18; }
.thesis-card p, .offer-card p, .memo-card p { margin: 0; color: var(--muted); }
.thesis-card.featured p { color: var(--muted-dark); }
.signal-list { display: grid; gap: 12px; margin-top: 18px; }
.signal { display: grid; grid-template-columns: 88px 1fr; gap: 14px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 13px; }
.signal b { color: var(--amber-soft); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.signal span { color: var(--muted-dark); }

.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry-panel {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius);
  padding: 26px; min-height: 320px; display: flex; flex-direction: column; align-items: flex-start;
}
.entry-panel.buyer { background: #eef5f8; }
.entry-label { color: var(--blue); font-size: 12px; font-weight: 880; letter-spacing: .12em; text-transform: uppercase; }
.entry-panel h3 { margin: 12px 0 12px; font-size: 28px; line-height: 1.1; }
.entry-panel p { margin: 0 0 22px; color: var(--muted); }
.entry-panel .btn { margin-top: auto; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { min-height: 360px; display: flex; flex-direction: column; }
.offer-kicker { color: var(--amber); font-size: 12px; font-weight: 880; letter-spacing: .12em; text-transform: uppercase; }
.offer-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); }
.offer-card .card-link { margin-top: auto; color: var(--green); font-weight: 840; }
.offer-facts { display: grid; grid-template-columns: 86px 1fr; gap: 8px 12px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.offer-facts dt { color: var(--ink); font-size: 12px; font-weight: 860; letter-spacing: .08em; text-transform: uppercase; }
.offer-facts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.model-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.model-step { padding: 22px; border-right: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.model-step:last-child { border-right: 0; }
.model-step b { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--ink); margin-bottom: 12px; }
.model-step h3 { margin: 0 0 8px; font-size: 19px; }
.model-step p { margin: 0; color: var(--muted-dark); font-size: 14px; }
.method-link { margin-top: 24px; }

.operator-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 20px; align-items: start; }
.operator-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); padding: 24px; }
.operator-panel h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.1; }
.operator-panel p { color: var(--muted); }
.operator-stack { display: grid; gap: 10px; }
.stack-item { display: grid; grid-template-columns: 150px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: rgba(255, 255, 255, .72); }
.stack-item b { color: var(--green); }
.stack-item span { color: var(--muted); }

.memo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.memo-card { display: flex; flex-direction: column; min-height: 236px; }
.memo-card .cat { width: fit-content; background: rgba(217,138,36,.14); color: #8a4f12; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 780; }
.memo-card a { margin-top: auto; color: var(--green); font-weight: 840; }

.page-hero { padding: 74px 0 42px; }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 19px; }
.content-wrap { padding: 0 0 76px; }
.page-panel > *:first-child { margin-top: 0; }
.page-panel h2 { font-size: 30px; line-height: 1.12; margin: 30px 0 10px; }
.page-panel p, .page-panel li { color: var(--muted); }
.page-panel a { color: var(--green); font-weight: 780; border-bottom: 1px solid rgba(31, 111, 91, .25); }
.post-list { display: grid; gap: 16px; }
.post-list article { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.post-list h2 { margin: 0 0 8px; }

.site-footer { background: var(--ink); color: var(--paper-2); }
.footer-cta { padding: 52px 0; border-bottom: 1px solid var(--line-dark); }
.footer-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-cta h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.footer-cta p { margin: 0; color: var(--muted-dark); }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 28px; padding: 42px 0; }
.footer-main h3 { margin: 0 0 12px; }
.footer-main p, .footer-main li { color: var(--muted-dark); }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; color: rgba(255,250,241,.55); font-size: 13px; }

.intake-form { display: grid; gap: 18px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 820; color: var(--ink); }
.form-field .hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); padding: 12px 13px; min-height: 46px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #f0f6f3; color: var(--green); font-weight: 760; }
.form-notice.error { background: #fff6ef; color: #8a3d16; }

@media (max-width: 1040px) {
  .hero-grid, .thesis-grid, .operator-grid, .manifesto-grid { grid-template-columns: 1fr; }
  .deal-board { min-height: auto; }
  .offer-grid, .memo-grid, .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .model-step:nth-child(2) { border-right: 0; }
  .model-step:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-branding { min-width: 0; flex: 1 1 auto; }
  .primary-navigation {
    display: none; position: static; flex: 0 0 100%; width: 100%; margin-left: 0;
    padding: 0 0 14px; background: transparent; border-top: 1px solid var(--line);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .menu { display: grid; gap: 4px; padding-top: 10px; }
  .primary-navigation a { padding: 12px; border-radius: 8px; white-space: normal; }
  .header-inner { min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .site-title { font-size: 14px; }
  .site-tagline { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 8px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-proof, .offer-grid, .memo-grid, .entry-grid, .form-grid, .footer-cta-inner, .footer-main { grid-template-columns: 1fr; }
  .deal-row { grid-template-columns: 1fr; }
  .deal-status { width: fit-content; }
  .signal, .stack-item { grid-template-columns: 1fr; }
  .model-strip { grid-template-columns: 1fr; }
  .model-step { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .model-step:last-child { border-bottom: 0; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 34px; }
}
