/* ==========================================================================
   Style 02: ATTIO (https://refero.design/search?site_id[id][]=37 · ID 9f0c028b)
   "Precision Digital Toolkit"
   Pure White (#ffffff) + Stone Grid (#e4e7ec) + Ink (#1c1d1f) + Action Blue (#407ff2)
   Tiempos/Newsreader Serif Headlines + Inter ("ss03" on) UI Toolkit
   ========================================================================== */

:root {
  --color-white: #ffffff;
  --color-ash: #f3f4f6;
  --color-stone: #e4e7ec;
  --color-slate: #d3d8df;
  --color-lead: #b5bdc9;
  --color-overcast: #8f99a8;
  --color-metal: #6f7988;
  --color-carbon: #505967;
  --color-ink: #1c1d1f;
  --color-abyss: #000000;
  --color-action-blue: #407ff2;
  --color-focus-blue: #94b9ff;
  --color-success-green: #075a39;
  --color-danger-red: #772322;
  --color-warning-yellow: #705500;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-tabs: 0px;
  --radius-tags: 4px;
  --radius-inputs: 7px;
  --radius-cards: 8px;
  --radius-buttons: 10px;

  --shadow-ui-frame: rgba(28, 40, 64, 0.1) 0px 2px 3px -2px, rgba(28, 40, 64, 0.04) 0px 4px 6px -2px;
  --shadow-focus: 0 0 0 3px rgba(148, 185, 255, 0.45);
}

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

html {
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-inter);
  font-feature-settings: "ss03" 1;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* Top Refero Style Switcher Bar */
.refero-switcher {
  background: var(--color-ash);
  border-bottom: 1px solid var(--color-stone);
  padding: 6px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-metal);
}
.rs-pills {
  display: inline-flex;
  gap: 4px;
  background: var(--color-white);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--color-slate);
}
.rs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-metal);
  transition: color 150ms, background-color 150ms;
}
.rs-pill:hover {
  color: var(--color-ink);
}
.rs-pill.on {
  background: var(--color-ink);
  color: var(--color-white);
}
.rs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Attio Architectural Grid Container (1220px framed with 1px #e4e7ec hairlines) */
.a-grid-shell {
  max-width: 1220px;
  margin: 0 auto;
  border-left: 1px solid var(--color-stone);
  border-right: 1px solid var(--color-stone);
  position: relative;
}
.a-wrap {
  padding: 0 32px;
}

/* Sticky Top Navigation (Attio Spec) */
.a-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-stone);
}
.a-nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  border-left: 1px solid var(--color-stone);
  border-right: 1px solid var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.a-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-ink);
}
.a-brand img {
  height: 24px;
  width: auto;
}
.a-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Header Navigation Button: #6f7988, 14px Inter weight 500, 6px 10px, radius 10px, hover #f3f4f6 */
.a-nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-buttons);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-metal);
  transition: background-color 150ms, color 150ms;
}
.a-nav-link:hover {
  background: var(--color-ash);
  color: var(--color-ink);
}
.a-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Attio Buttons (10px radius, Primary #1c1d1f, Secondary #ffffff with 1px #d3d8df) */
.a-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-ink);
  color: var(--color-white);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-buttons);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 150ms, transform 150ms;
}
.a-btn-primary:hover {
  opacity: 0.9;
}
.a-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-slate);
  border-radius: var(--radius-buttons);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 150ms, border-color 150ms;
}
.a-btn-secondary:hover {
  background: var(--color-ash);
}
.a-btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* Attio Typography Scale (Tiempos/Newsreader Display + Inter UI) */
.a-display {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -1.28px;
  color: var(--color-ink);
}
.a-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--color-ink);
}
.a-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--color-metal);
}

/* Attio Centered Hero with Subtle Dot Grid & Relational Table UI Frame */
.a-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--color-stone);
  background-image: radial-gradient(var(--color-slate) 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
}
.a-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-slate);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-ink);
  box-shadow: var(--shadow-ui-frame);
  margin-bottom: 24px;
}
.a-eyebrow-badge span.blue {
  color: var(--color-action-blue);
  font-weight: 600;
}
.a-hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Attio Relational Node Diagram Strip above Table */
.a-node-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px auto 20px;
}
.a-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-cards);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-ink);
  box-shadow: var(--shadow-ui-frame);
}
.a-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-action-blue);
}

/* Attio UI Frame Card (white bg, 16px padding, 8px radius, 1px #e4e7ec border, --shadow-ui-frame) */
.a-ui-frame {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-ui-frame);
  text-align: left;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
}
/* Feature Tab Bar (0px radius bottom border 2px #1c1d1f) */
.a-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-stone);
  background: #FAFBFD;
  flex-wrap: wrap;
  gap: 8px;
}
.a-tabs {
  display: flex;
  gap: 4px;
}
.a-tab {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-metal);
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.a-tab:hover {
  color: var(--color-ink);
}
.a-tab.on {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

/* Relational Data Table inside UI Frame */
.a-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.a-table th {
  font-weight: 500;
  font-size: 12px;
  color: var(--color-metal);
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-stone);
  border-right: 1px solid var(--color-stone);
  background: #FAFBFD;
}
.a-table th:last-child, .a-table td:last-child {
  border-right: 0;
}
.a-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-stone);
  border-right: 1px solid var(--color-stone);
  color: var(--color-ink);
  vertical-align: middle;
}
.a-table tr:last-child td {
  border-bottom: 0;
}
.a-table tr:hover td {
  background: var(--color-ash);
}
.a-table tr.is-hidden {
  display: none;
}

/* Attio Relational Object Chips (4px radius) */
.a-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-tags);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--color-stone);
  background: var(--color-ash);
  color: var(--color-ink);
  margin-right: 4px;
}
.a-chip.blue {
  background: #EBF2FF;
  border-color: #C7DCFF;
  color: #1849A9;
}
.a-chip.green {
  background: #E6F4EE;
  border-color: #B6E2CE;
  color: var(--color-success-green);
}
.a-chip.amber {
  background: #FEF6E7;
  border-color: #F9DBAF;
  color: var(--color-warning-yellow);
}

/* Logo Cloud Strip (Carbon #505967 grayscale) */
.a-logo-strip {
  padding: 36px 32px;
  border-bottom: 1px solid var(--color-stone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.a-logo-strip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-metal);
}
.a-logo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-carbon);
}

/* Hairline Grid Sections */
.a-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--color-stone);
}
.a-sec-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.a-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-action-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

/* 3-Column Hairline Architectural Matrix */
.a-hairline-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-stone);
  border-bottom: 1px solid var(--color-stone);
}
.a-hg-cell {
  padding: 32px;
  border-right: 1px solid var(--color-stone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.a-hg-cell:last-child {
  border-right: 0;
}
.a-hg-cell h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}
.a-hg-cell p {
  font-size: 14.5px;
  color: var(--color-metal);
  line-height: 1.55;
}

/* Principal Dossier in Attio Style */
.a-dossier-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.a-record-card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-ui-frame);
  overflow: hidden;
}
.a-record-head {
  padding: 20px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--color-stone);
  display: flex;
  align-items: center;
  gap: 14px;
}
.a-record-owl {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-cards);
  background: var(--color-ink);
  padding: 8px;
  object-fit: contain;
}
.a-record-props {
  list-style: none;
}
.a-record-props li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-stone);
  font-size: 13px;
}
.a-record-props li:last-child {
  border-bottom: 0;
}
.a-prop-key {
  color: var(--color-metal);
  font-weight: 500;
}
.a-prop-val {
  color: var(--color-ink);
  font-weight: 500;
}

/* Dark Feature Matrix Band (Attio Bottom Dark Section + Ventures) */
.a-dark-band {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 96px 0;
  border-bottom: 1px solid #2D3139;
}
.a-dark-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.a-dark-card {
  background: #25282C;
  border: 1px solid #363A40;
  border-radius: var(--radius-cards);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 150ms, transform 150ms;
}
.a-dark-card:hover {
  border-color: var(--color-action-blue);
  transform: translateY(-2px);
}
.a-dark-stage {
  height: 185px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.a-dark-stage.s-l1 { background: radial-gradient(circle at 80% 20%, #172B52 0%, #0B1730 75%); }
.a-dark-stage.s-dep {
  background-color: #141210;
  background-image: linear-gradient(180deg, rgba(16,14,12,.52) 0%, rgba(16,14,12,.84) 100%), url('/assets/previews/departure-1903-plate.jpg');
  background-size: cover;
  background-position: center;
}
.a-dark-stage.s-col { background: radial-gradient(circle at 20% 80%, #122942 0%, #081320 75%); }

/* Attio Signature Royal Blue Bottom CTA Banner (#407ff2) */
.a-blue-banner {
  background: var(--color-action-blue);
  color: var(--color-white);
  padding: 64px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* Attio Abyss Footer (#000000) */
.a-footer {
  background: var(--color-abyss);
  color: var(--color-overcast);
  padding: 72px 32px 48px;
  font-size: 14px;
}
.a-footer-grid {
  max-width: 1156px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #22252A;
}
.a-footer h5 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.a-footer ul {
  list-style: none;
}
.a-footer li {
  margin-bottom: 8px;
}
.a-footer a:hover {
  color: var(--color-white);
}

/* Inputs */
.a-input, .a-textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-slate);
  border-radius: var(--radius-inputs);
  padding: 10px 12px;
  font: 400 14px var(--font-inter);
  color: var(--color-ink);
  outline: 0;
  transition: box-shadow 150ms, border-color 150ms;
}
.a-input:focus, .a-textarea:focus {
  border-color: var(--color-action-blue);
  box-shadow: var(--shadow-focus);
}
.a-textarea {
  min-height: 88px;
  resize: vertical;
}

@media (max-width: 960px) {
  .a-nav-links { display: none; }
  .a-grid-shell, .a-nav-inner { border-left: 0; border-right: 0; }
  .a-hairline-grid-3, .a-dossier-split, .a-dark-grid-3, .a-footer-grid {
    grid-template-columns: 1fr;
  }
  .a-hg-cell { border-right: 0; border-bottom: 1px solid var(--color-stone); }
  .a-table th:nth-child(4), .a-table td:nth-child(4) { display: none; }
}

.a-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 960px) {
  .a-wrap { padding: 0 20px; }
  .a-nav-inner { padding: 0 16px; }
  .a-nav-actions .a-btn-secondary { display: none; }
  .a-grid-3, .a-grid-4 { grid-template-columns: 1fr; }
  .a-ui-frame { overflow-x: auto; }
  .a-table th:nth-child(3), .a-table td:nth-child(3),
  .a-table th:nth-child(4), .a-table td:nth-child(4) { display: none; }
}
