/* ========================================
   2E Science — Global Stylesheet
   ======================================== */

:root {
  --white: #FFFFFF;
  --bg: #F4F4EF;
  --black: #1A1917;
  --g1: #4A4A45;
  --g2: #7A7A72;
  --g3: #B0B0A8;
  --g4: #DDDDD6;
  --accent: #2563EB;
  --accent-soft: #EFF4FF;
  --accent-text: #1E40AF;
  --warm: #E8553D;
  --warm-soft: #FEF2EF;
  --green: #16A34A;
  --green-soft: #F0FDF4;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 18px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--g4);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; color: var(--black); text-decoration: none;
}
.nav-logo i { color: var(--accent); font-style: italic; }
.nav-right {
  display: flex; gap: 28px; align-items: center;
}
.nav-right a {
  font-size: 13px; color: var(--g1);
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--black); }
.nav-right a.active { color: var(--black); font-weight: 500; }
.nav-cta {
  font-size: 13px; padding: 11px 24px;
  background: var(--accent); color: var(--white) !important;
  border-radius: 10px; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-text); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 56px; max-width: 580px;
}
.hero-centered {
  max-width: 800px; text-align: center;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 56px; font-weight: 400;
  line-height: 1.08; letter-spacing: -1.5px;
  color: #fff; margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: #a3c4ff; }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-motto {
  font-family: 'Instrument Serif', serif;
  font-size: 20px; color: rgba(255,255,255,0.5);
  font-style: italic; margin-bottom: 36px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 16px; border-radius: 20px; margin-top: 22px;
}
.hero-tags {
  position: absolute; right: 56px; top: 50%;
  transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-tags span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5); padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(37,99,235,0.4);
  font-weight: 500;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  padding: 15px 38px; font-size: 15px; font-weight: 500;
  background: var(--accent); color: var(--white);
  border: none; border-radius: 12px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-text); }

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 80px 56px; text-align: center;
  border-bottom: 1px solid var(--g4);
  max-width: 1200px; margin: 0 auto;
}
.manifesto blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; font-weight: 400;
  line-height: 1.35; max-width: 640px; margin: 0 auto;
}
.manifesto em { font-style: italic; color: var(--accent); }

/* ---- SECTIONS ---- */
.section {
  padding: 88px 56px; text-align: center;
  max-width: 1200px; margin: 0 auto;
}
.section-alt { background: var(--bg); max-width: 100%; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sec-kicker {
  font-size: 15px; color: var(--accent);
  font-style: italic; margin-bottom: 10px;
}
.sec-title {
  font-family: 'Instrument Serif', serif;
  font-size: 38px; font-weight: 400;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.sec-sub {
  font-size: 15px; color: var(--g2);
  line-height: 1.7; max-width: 480px;
  margin: 0 auto 48px;
}

/* ---- TWO CARDS ---- */
.two-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.big-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-align: left; display: block;
}
.big-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.big-photo { height: 220px; overflow: hidden; }
.big-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.big-card:hover .big-photo img { transform: scale(1.04); }
.big-body { padding: 32px 32px 36px; }
.big-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 18px; display: inline-block; margin-bottom: 16px;
}
.label-research { color: var(--accent-text); background: var(--accent-soft); }
.label-industry { color: var(--warm); background: var(--warm-soft); }
.big-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; font-weight: 400; font-style: italic;
  line-height: 1.15; margin-bottom: 12px;
}
.big-card p { font-size: 14px; color: var(--g1); line-height: 1.7; margin-bottom: 20px; }
.big-link { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ---- THREE CARDS ---- */
.three-cards {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.svc-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.svc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.icon-blue { background: var(--accent-soft); color: var(--accent); }
.icon-warm { background: var(--warm-soft); color: var(--warm); }
.icon-green { background: var(--green-soft); color: var(--green); }
.svc-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--g1); line-height: 1.6; }

/* ---- SPLIT ---- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 88px 56px;
  max-width: 1200px; margin: 0 auto;
}
.split-text .sec-kicker { text-align: left; }
.split-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 36px; font-weight: 400;
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 20px; text-align: left;
}
.split-text h2 em { font-style: italic; }
.split-text p {
  font-size: 15px; color: var(--g1);
  line-height: 1.7; text-align: left; margin-bottom: 16px;
}
.split-photo {
  border-radius: var(--radius); overflow: hidden;
  height: 360px;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- CTA ---- */
.cta {
  margin: 0 56px 56px; padding: 64px 48px;
  border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, #0f1b2d, #1a2840);
  max-width: 1100px; margin-left: auto; margin-right: auto;
  margin-bottom: 56px;
}
.cta h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 30px; font-weight: 400; color: #fff;
  margin-bottom: 24px; line-height: 1.2;
}

/* ---- FOOTER ---- */
.footer {
  padding: 24px 56px; background: var(--bg);
  display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--g3);
  border-top: 1px solid var(--g4);
}
.footer-right { display: flex; gap: 20px; align-items: center; }
.footer-right a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 13px; }
.footer-dim { color: var(--g2) !important; font-weight: 400 !important; }
.footer-dot { color: var(--g3); }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  padding: 64px 56px 48px;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb {
  font-size: 13px; color: var(--g3); margin-bottom: 24px;
}
.breadcrumb a { color: var(--g3); }
.breadcrumb span { margin: 0 6px; }
.page-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 46px; font-weight: 400;
  line-height: 1.08; letter-spacing: -1px;
  max-width: 560px; margin-bottom: 20px;
}
.page-header h1 em { font-style: italic; }
.page-header > p {
  font-size: 17px; color: var(--g1);
  line-height: 1.7; max-width: 500px;
}

/* ---- SKILL LIST (research page) ---- */
.skill-list { max-width: 800px; }
.skill-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 28px; padding: 28px 0;
  border-bottom: 1px solid var(--g4);
  text-align: left;
}
.skill-row:last-child { border-bottom: none; }
.skill-name { font-size: 16px; font-weight: 500; }
.skill-desc { font-size: 14px; color: var(--g1); line-height: 1.7; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skill-tag {
  font-size: 11px; padding: 4px 10px;
  border: 1px solid var(--g4); border-radius: 14px; color: var(--g2);
}

/* ---- STEPS GRID ---- */
.steps-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; max-width: 800px;
}
.step-card {
  background: var(--white); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow); text-align: left;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 38px; font-style: italic;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.step-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--g1); line-height: 1.6; }

/* ---- QUOTE ---- */
.quote-section {
  padding: 64px 56px; text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--g4);
  border-bottom: 1px solid var(--g4);
}
.quote-section blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; font-weight: 400;
  line-height: 1.35; max-width: 560px; margin: 0 auto;
}
.quote-section em { font-style: italic; color: var(--accent); }
.quote-section .em-warm { color: var(--warm); }

/* ---- ARC (industry page) ---- */
.arc-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 18px; max-width: 900px; margin: 0 auto;
}
.arc-card {
  background: var(--white); border-radius: 16px;
  padding: 32px 24px; box-shadow: var(--shadow);
  position: relative; text-align: left;
}
.arc-phase {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 14px; display: inline-block; margin-bottom: 16px;
}
.phase-1 { background: var(--accent-soft); color: var(--accent); }
.phase-2 { background: var(--warm-soft); color: var(--warm); }
.phase-3 { background: var(--green-soft); color: var(--green); }
.arc-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; font-weight: 400; font-style: italic;
  margin-bottom: 10px;
}
.arc-card p { font-size: 13px; color: var(--g1); line-height: 1.65; }
.arc-arrow {
  position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--white); border: 1px solid var(--g4);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  z-index: 2; font-size: 14px; color: var(--g3);
}

/* ---- DOMAIN TAGS ---- */
.domains { margin-top: 40px; text-align: left; }
.domains-label {
  font-size: 12px; color: var(--g2); font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.domains-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-tag {
  font-size: 13px; padding: 8px 18px;
  border: 1px solid var(--g4); border-radius: 24px; color: var(--g1);
}

/* ---- PRACTICE TEXT ---- */
.practice-text {
  font-size: 15px; color: var(--g1); line-height: 1.8;
  max-width: 700px; text-align: left;
}

/* ---- ABOUT: STORY ---- */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; text-align: left;
}
.story-grid p {
  font-size: 15px; color: var(--g1);
  line-height: 1.75; margin-bottom: 16px;
}

/* ---- ABOUT: BELIEFS ---- */
/* beliefs-grid styles moved to centered section */
.belief-item {
  padding-left: 20px;
  border-left: 2px solid var(--g4);
  transition: border-color 0.2s;
}
.belief-item:hover { border-left-color: var(--accent); }
.belief-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.belief-item p { font-size: 14px; color: var(--g1); line-height: 1.65; }

/* ---- ABOUT: TIMELINE ---- */
/* timeline styles already in centered section above */
.timeline::before {
  content: ''; position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--g4);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -28px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--g3); background: var(--white);
}
.tl-item:last-child .tl-dot { border-color: var(--accent); background: var(--accent-soft); }
.tl-year { font-size: 12px; font-weight: 500; color: var(--g2); letter-spacing: 0.5px; margin-bottom: 4px; }
.tl-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.tl-item p { font-size: 14px; color: var(--g1); line-height: 1.6; }

/* ---- LOCATION BOX ---- */
.location-box {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px; border: 1px solid var(--g4); border-radius: var(--radius);
  text-align: left; max-width: 800px; margin: 0 auto;
}
.location-box h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; font-weight: 400;
}
.location-box p { font-size: 14px; color: var(--g1); margin-top: 6px; }
.location-detail { text-align: right; font-size: 14px; color: var(--g1); line-height: 1.8; }

/* ---- SECTION SPACING HELPERS ---- */
.section .sec-head { margin-bottom: 40px; text-align: center; }
.section .sec-head h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px; font-weight: 400; letter-spacing: -0.4px; margin-bottom: 10px;
}
.section .sec-head p { font-size: 14px; color: var(--g2); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.section .skill-list { max-width: 800px; margin: 0 auto; }
.section .practice-text { max-width: 700px; margin: 0 auto; text-align: left; }
.section .arc-grid { text-align: left; }
.section .domains { text-align: left; max-width: 900px; margin: 40px auto 0; }
.section .steps-grid { max-width: 800px; margin: 0 auto; }
.section-flush { padding-top: 0; }

/* ---- STORY TEXT (about page, single column centered) ---- */
.story-text {
  max-width: 680px; margin: 0 auto; text-align: left;
}
.story-text p {
  font-size: 16px; color: var(--g1);
  line-height: 1.8; margin-bottom: 18px;
}

/* ---- BELIEFS CENTERED ---- */
.beliefs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; text-align: left;
  max-width: 800px; margin: 0 auto;
}

/* ---- TIMELINE CENTERED ---- */
.timeline { position: relative; padding-left: 28px; text-align: left; max-width: 600px; margin: 0 auto; }

/* ---- CTA INNER ---- */
.cta-inner { padding: 56px 48px; text-align: center; }
.cta-inner h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; font-weight: 400; margin-bottom: 8px;
}
.cta-inner p { font-size: 14px; color: var(--g2); margin-bottom: 24px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-inner { padding: 16px 24px; }
  .nav-right { 
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 24px;
    border-bottom: 1px solid var(--g4);
    gap: 16px;
  }
  .nav-right.open { display: flex; }
  .nav-burger { display: block; }
  
  .hero { min-height: 480px; }
  .hero-content { padding: 48px 24px; }
  .hero h1 { font-size: 32px; }
  .hero-tags { display: none; }
  
  .manifesto { padding: 48px 24px; }
  .manifesto blockquote { font-size: 22px; }
  
  .section { padding: 56px 24px; }
  .sec-title { font-size: 30px; }
  
  .two-cards { grid-template-columns: 1fr; }
  .three-cards { grid-template-columns: 1fr; }
  .arc-grid { grid-template-columns: 1fr; }
  .arc-arrow { display: none; }
  
  .split { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
  .split-photo { height: 240px; }
  
  .cta { margin: 0 24px 40px; padding: 48px 24px; }
  .cta h3 { font-size: 24px; }
  
  .footer { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  
  .page-header { padding: 40px 24px 32px; }
  .page-header h1 { font-size: 34px; }
  
  .skill-row { grid-template-columns: 1fr; gap: 8px; }
  .steps-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .beliefs-grid { grid-template-columns: 1fr; }
  .location-box { flex-direction: column; gap: 16px; text-align: left; }
  .location-detail { text-align: left; }
  
  .contact-layout { grid-template-columns: 1fr; padding: 32px 24px; }
  .page-hero-banner { height: 200px; }
}

/* ---- CONTACT FORM ---- */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; padding: 48px 56px 80px;
  max-width: 1200px; margin: 0 auto;
}
.contact-form label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--g1); margin-bottom: 6px; margin-top: 20px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 13px 16px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; color: var(--black);
  background: var(--white); border: 1px solid var(--g4);
  border-radius: 10px; outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238E8E84' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.contact-info { padding-top: 4px; }
.contact-block { margin-bottom: 28px; }
.contact-label {
  font-size: 12px; font-weight: 500; color: var(--g2);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.contact-value { font-size: 15px; color: var(--black); line-height: 1.7; }
.contact-note {
  font-size: 14px; color: var(--g1); line-height: 1.7;
  margin-top: 32px; padding: 24px;
  background: var(--bg); border-radius: 14px;
}
.contact-note p { margin-bottom: 10px; }
.contact-note p:last-child { margin-bottom: 0; }

/* ---- PAGE HERO BANNER (inner pages) ---- */
.page-hero-banner {
  height: 280px; overflow: hidden; position: relative;
}
.page-hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5);
}
.page-hero-banner .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3));
}
