/* =========================================================
   Tailored Bonds — index.css (UNIFIED)
   ========================================================= */

/* ------------ Vars ------------ */
:root {
  --black:#000; --off-white:#e0e0e0; --white:#fff; --light-grey:#dadada;
  --bg:#0b1220; --bg-soft:#0f1a30; --text:#e8ecf3; --muted:#ffffff;
  --brand:#e7b44b; --brand-2:#5cc8ff; --stroke:rgba(255,255,255,.08);
  --shadow:0 10px 30px rgba(0,0,0,.35); --radius:16px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 55px; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: 'Lato', sans-serif;
  line-height: 1.35;
  min-height: 100dvh;
  padding-top: 55px;        
  position: relative;               
}

body::before {
  content:"";
  position: fixed; inset: 0; z-index: -1; pointer-events:none;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(231,180,75,.15), transparent 60%),
    radial-gradient(900px 700px at -10% 10%, rgba(92,200,255,.12), transparent 60%),
    var(--bg);
  background-repeat:no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

.wrap { max-width:1200px; margin:0 auto; padding:0 20px; }
section { padding:72px 0; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:4px; }
.section-head h2 { margin:0; font-size: clamp(20px, 3vw, 30px); }
.section-head .header1 { padding-bottom: 20px; }
.kicker { color:var(--muted); max-width:820px; }

.panel {
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius);
  padding:20px 22px;
  box-shadow:0 10px 24px rgba(0,0,0,.30);
}

.panel2 {
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius);
  padding:20px 22px;
  box-shadow:0 10px 24px rgba(0,0,0,.30);
  width: 70%; 
}

.btn {
  padding:10px 16px; border-radius:999px; border:2px solid var(--stroke);
  background:rgba(255,255,255,.02); color:var(--text); font-weight:600;
  text-decoration:none; display:inline-block;
}
.btn:hover { transform:translateY(-1px); }
.btn.gold { background:linear-gradient(135deg, var(--brand), #ffd98a); color:#1a1a1a; border:none; }

.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:980px){ .grid-3{grid-template-columns:1fr} }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 80px 20px 40px;
}
@media (max-width: 600px) {
  .hero { min-height: 480px; padding: 120px 16px 40px; }
}
.eyebrow { color:var(--brand); font-weight:700; letter-spacing:.4px; text-transform:uppercase; font-size:1.05rem; }
.lead { font-size: clamp(16px, 2.5vw, 20px); color:#fff; margin:12px auto 0; }
.globe-overlay { position:absolute; z-index:2; text-align:center; color:#fff; width:100%; top:42%; transform:translateY(-50%); }
.globe-container { position:absolute; inset:0 auto auto 50%; width:100%; height:100%; transform:translateX(-50%); z-index:1; }
canvas { width:100%; height:100%; display:block; object-fit:cover; }

.badges2 { gap:10px; margin:18px 0; }
.badges { display:flex; gap:10px; margin:18px 0; flex-wrap:wrap; justify-content:center; }

.pill {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:6px 10px; border-radius:2px; border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.05); color:rgba(255,255,255,.85);
  font-size:12.5px; line-height:1; font-weight:500;
  box-shadow:none; text-transform:none; cursor:default;
}

/* =========================================================
   APPROACH / SERVICES / PLACEMENT
   ========================================================= */
.timeline { display:grid; gap:18px; }
.step { display:grid; grid-template-columns:160px 1fr; gap:18px; align-items:flex-start; }
.step .n {
  background:#0e172b; border:1px solid var(--stroke); border-radius:12px;
  padding:10px; text-align:center; color:var(--brand-2); font-weight:700;
}
.step p { margin:4px 0 0; color:var(--muted); }

.offer { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:980px){ .offer{grid-template-columns:1fr} }

/* =========================================================
   BONDS – outer carousel + inner image sliders
   ========================================================= */
.bonds .bond-carousel {
  position:relative; display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:12px; margin-top:8px;
}
.bonds .bc-track {
  display:grid; grid-auto-flow:column; grid-auto-columns:min(92%,680px);
  gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding:8px 0; -webkit-overflow-scrolling:touch;
  -ms-overflow-style:none; scrollbar-width:none;
}
.bonds .bc-track::-webkit-scrollbar{display:none}
@media (min-width:980px){ .bonds .bc-track{ grid-auto-columns:min(48%,560px) } }

.bonds .deal-card {
  scroll-snap-align:start; border-radius:16px; background:#111a2e;
  padding:12px 14px 16px; min-height:260px; display:flex; flex-direction:column;
}
.bonds .deal-card header { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; margin-top:.25rem; }
.bonds .deal-card h3 { font-size:18px; line-height:1.2; margin:0; }
.badge.status { padding:.2rem .5rem; border-radius:999px; font-size:.75rem; }
.badge.status.pre { background:#3b82f6; }
.badge.status.pipe { background:#a78bfa; }
.badge.status.live { background:#22c55e; }
.bonds .kv { margin:.5rem 0 .9rem; }
.bonds .kv li { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed rgba(255,255,255,.08); }
.bonds .kv li span { opacity:.8; }
.bonds .actions { display:flex; gap:.5rem; flex-wrap:wrap; }

.bonds .bc-nav {
  inline-size:44px; block-size:44px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:transparent; backdrop-filter:blur(4px);
  cursor:pointer; font-size:24px; line-height:1;
}
.bonds .bc-nav:disabled { opacity:.35; cursor:not-allowed; }

.deal-slider {
  position: relative;
  margin: -12px -12px 10px;
  border-radius: 12px;
  overflow: hidden;
}
.deal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.deal-track::-webkit-scrollbar { display: none; }
.deal-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  display: block;
}
@media (prefers-reduced-motion:reduce){
  .deal-track, .bonds .bc-track{ scroll-behavior:auto; }
}

/* =========================================================
   FOOTER
   ========================================================= */
/* Base Footer Styles */
footer {
    background-color: var(--black);
    color: var(--off-white);
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid var(--silver);
    font-size: 80em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer a {
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    text-decoration: underline;
    color: var(--deep-blue); /* Adds a slight color change on hover */
}

/* Footer Content Container */
.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Footer Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li {
    margin: 0 5px;
}

.footer-links a {
    font-size: 0.9em;
}


/* =========================================================
   RESPONSIVE DESIGN — MOBILE FOCUS
   ========================================================= */
@media (max-width: 600px) {
  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 16px 40px;
    flex-direction: column;
    text-align: center;
  }
  .globe-overlay { top:auto; transform:none; position:relative; padding:0 10px; }
  .eyebrow { font-size:0.85rem; margin-bottom:6px; }
  h1 { font-size: clamp(20px, 5vw, 28px); line-height:1.3; margin:0 0 12px; }
  .lead { font-size: clamp(14px, 4vw, 16px); margin-bottom:16px; }

  .badges2 { flex-direction: column; align-items:center; gap:10px; }
  .btn { width:100%; max-width:280px; font-size:14px; padding:10px 14px; }

  .pill { padding:8px 12px; font-size:13px; margin-bottom:6px; }

  /* Sections */
  section { padding:36px 0; }
  .section-head h2 { font-size: clamp(18px, 5vw, 22px); }
  .kicker { font-size:14px; line-height:1.4; }

  /* Timeline */
  .step { grid-template-columns: 1fr; gap:10px; }
  .step .n {
    width: fit-content;
    margin-bottom: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
  }
  .step p { font-size:14px; line-height:1.4; }

  /* Carousel */
  .deal-slider { margin: -6px -6px 10px; border-radius:10px; }
  .deal-track { aspect-ratio:auto; max-height:50vh; }
  .deal-track img { width:100%; height:100%; object-fit:cover; object-position:center; }

  #services .section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  #services .section-head h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  #services .section-head .kicker {
    font-size: 14px;
    line-height: 1.5;
    max-width: 90%;
  }

  #services .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #services .card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  #services .card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }
  #services .card p {
    font-size: 14px;
    line-height: 1.45;
  
  
  
  }

/* --- Placement Partners Section --- */
#placement .section-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
#placement .section-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
#placement .section-head .kicker {
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
}

#placement .offer {
  grid-template-columns: 1fr;   /* stack panels */
  gap: 16px;
}

#placement .panel {
  padding: 16px;
  border-radius: 12px;
}

#placement .panel h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

#placement .panel p,
#placement .panel li {
  font-size: 14px;
  line-height: 1.45;
}

#placement .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
#placement .hero-cta .btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}


/* --- Bonds Section Mobile --- */
.bonds .section-head {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.bonds .bc-track {
  grid-auto-columns: 100%;
  gap: 20px;
  padding: 0 4px;
}

.bonds .deal-card {
  padding: 16px;
  border-radius: 12px;
  min-height: auto;
}

.bonds .deal-card header {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.bonds .deal-card h3 {
  font-size: 16px;
  line-height: 1.3;
}

.badge.status {
  font-size: 12px;
  padding: 4px 8px;
}

.bonds .kv {
  margin: 8px 0 12px;
}

.bonds .kv li {
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.bonds .kv li span {
  font-weight: 500;
  opacity: .85;
}
.bonds .kv li strong {
  font-weight: 600;
  color: var(--white);
}

.bonds .actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bonds .actions .btn {
  width: 100%;
  text-align: center;
}

.bonds .bc-nav {
  inline-size: 36px;
  block-size: 36px;
  font-size: 18px;
  margin: 0 4px;
}

}

@media (max-width: 768px) {
  .bonds .bc-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .bonds .bc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%;          /* each card takes 90% width */
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 5%;                 /* gutters for centering first & last */
  }

  .bonds .deal-card {
    scroll-snap-align: center;       /* snap to center */
  }
}


/* Small screens (max-width: 600px) */
@media (max-width: 600px) {
    footer {
        padding: 15px 20px;
        font-size: 0.50em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

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

/* Medium screens (600px to 992px) */
@media (min-width: 600px) and (max-width: 992px) {
    footer {
        padding: 20px 30px;
        font-size: 0.70em;
    }

    .footer-content {
        justify-content: space-around;
    }
}

/* Large screens (992px and up) */
@media (min-width: 992px) {
    footer {
        padding: 25px 50px;
        font-size: 0.80em;
    }

    .footer-content {
        justify-content: space-between;
    }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
    footer {
        padding: 30px 60px;
    }

    .footer-content {
        max-width: 1400px;
    }
}

/* =========================================================
   PATCH — 1XLR8 Section Alignment & Link Contrast
   ========================================================= */

/* Match card widths & spacing of existing panels */
#technology .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Card styling aligned with your .panel visuals */
#technology .grid-2 > div {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
#technology .grid-2 > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Section text hierarchy */
#technology h2 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
}
#technology h3 {
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 6px;
}
#technology p, #technology ul, #technology li {
  color: var(--off-white);
  font-size: 0.98rem;
  line-height: 1.55;
}
#technology ul { margin: 8px 0 14px 20px; }

/* Buttons inside tech section */
#technology .btn { margin-top: 14px; }

/* === Hyperlink contrast fix (hero + dark panels) === */
.link {
  color: #b693ff;                    /* bright lavender for visibility */
  text-decoration: none;
  border-bottom: 1px solid rgba(182,147,255,0.3);
  transition: color .25s ease, border-color .25s ease;
}
.hero a:hover, #technology a:hover {
  color: var(--brand);
  border-bottom-color: rgba(231,180,75,0.6);
}


#technology .grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns, always */
  gap:24px;
  margin-top:32px;
  align-items:stretch;            /* stretch cells to same row height */
}

@media (max-width: 980px){
  #technology .grid-2{ grid-template-columns: 1fr; }  /* stack on mobile */
}

/* Make each card fill its grid cell cleanly */
#technology .grid-2 > div{
  display:flex; 
  flex-direction:column;
  height:100%;
}

/* ===== 1XLR8 Technology Page Enhancements ===== */
#architecture h2, #deeptech h2, #founder h3 {
  color: var(--brand);
  text-shadow: 0 0 6px rgba(231,180,75,0.6);
}

#architecture p, #deeptech p, #deeptech ul, #founder p {
  color: var(--off-white);
  line-height: 1.6;
  font-size: 1rem;
}

/* Founder Bio Card */
.founder-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  background: url('../assets/images/team/mattias.jpeg') center/cover no-repeat, #0f1a30;
  border: 2px solid var(--brand);
  box-shadow: 0 0 15px rgba(231,180,75,.25);
  flex-shrink: 0;
}

.founder-info h3 {
  margin-top: 0;
  color: var(--brand);
  font-size: 1.3rem;
}
.founder-info p {
  margin: 6px 0;
}

/* Responsive founder layout */
@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .founder-photo {
    width: 100px;
    height: 100px;
  }
}
