/* ==========================================================================
   Arcovia — Track Record
   Colours, type and layout mirrored from the source deck.
   ========================================================================== */

:root {
  --green-deep:   #0A1A0F;  /* card / bar fill            */
  --green-mid:    #1A3D24;  /* table headers, sector bands */
  --gold:         #C9A84C;
  --paper:        #F8F8F6;  /* page background            */
  --row-alt:      #F5F5F3;
  --rule:         #E8E8E4;
  --ink:          #1A1A1A;
  --ink-2:        #444444;
  --ink-3:        #666666;
  --ink-4:        #999999;
  --ink-5:        #AAAAAA;

  --wrap: 1180px;
  --pad: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- shared slide-level typography ---------- */

.slide { padding: 84px 0 76px; scroll-margin-top: 58px; }

.hero, .closing { scroll-margin-top: 58px; }

.slide-head { margin-bottom: 34px; }

.slide-head h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}

.slide-head .sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 400;
}

.slide-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.slide-head.split .meta {
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
}

.slide-head.split .meta .pageof {
  display: block;
  color: var(--ink-4);
  margin-bottom: 2px;
}

/* ---------- brand mark ---------- */

.mark {
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 26, 15, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 20px;
}

.nav .mark { color: #fff; font-size: 17px; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease;
}

.nav a:hover { color: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78dvh; /* avoids the iOS toolbar resize jump */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 0 26px;
  overflow: hidden;
  background: #0d1a18;
}

.hero .bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-coast.jpg');
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.04);
}

.hero .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 16, .72) 0%, rgba(8, 20, 16, .38) 34%, rgba(8, 20, 16, .58) 100%);
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }

/* Spacer only — holds the cover slide's top margin now that the mark is gone. */
.hero-top { height: 24px; }

/* Vertical only — .wrap owns the horizontal padding. */
.hero-body { padding-top: 60px; padding-bottom: 60px; }

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 11vw, 108px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero .kicker {
  margin: 34px 0 0;
  font-size: clamp(17px, 1.9vw, 23px);
  font-style: italic;
  font-weight: 400;
  color: #CCCCCC;
}

.rule-gold {
  width: 74px;
  height: 5px;
  background: var(--gold);
  margin-top: 24px;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.confid {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.confid .pg { margin-left: 16px; letter-spacing: normal; }

/* ==========================================================================
   Case studies
   ========================================================================== */

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case {
  background: #fff;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.case-body { padding: 28px 26px 26px; flex: 1; }

.case h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.case .client {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-4);
}

.case dl { margin: 0; }

.case dt {
  margin-top: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.case dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-3);
}

.case-bar {
  background: var(--green-deep);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
}

.case-advisor {
  padding: 13px 26px 16px;
  background: #fff;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

/* ==========================================================================
   Transaction tables
   ========================================================================== */

.tbl-shell { overflow-x: auto; }

table.deals {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 860px;
}

table.deals thead th {
  background: var(--green-mid);
  color: #fff;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 13px 16px;
  white-space: nowrap;
}

table.deals th.col-year { width: 10%; }
table.deals th.col-txn  { width: 24%; }
table.deals th.col-size { width: 13%; }
table.deals th.col-type { width: 17%; }
table.deals th.col-sect { width: 18%; }

tr.sector-band td {
  background: var(--green-mid);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 9px 16px;
}

table.deals tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  vertical-align: middle;
}

/* Striping restarts inside each sector band, as in the source deck. */
table.deals tbody tr.deal.alt td { background: var(--row-alt); }

table.deals td.year { color: var(--ink-2); white-space: nowrap; }
table.deals td.txn  { color: var(--ink); font-weight: 700; }
table.deals td.size { color: var(--ink); font-weight: 700; white-space: nowrap; }

tr.aggregate td {
  background: var(--green-mid);
  color: #fff;
  padding: 14px 16px;
  border-bottom: none;
  font-size: 13px;
}

tr.aggregate td.label { font-weight: 700; }
tr.aggregate td.total { font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   Core capabilities
   ========================================================================== */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cap {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--gold);
  padding: 26px 26px 28px;
}

.cap h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.cap ul { margin: 0; padding: 0; list-style: none; }

.cap li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.cap li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.cap li:last-child { margin-bottom: 0; }

.sectors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.sectors span {
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding: 12px 8px;
  font-size: 13px;
}

/* ==========================================================================
   Why founders choose Arcovia
   ========================================================================== */

.reasons { display: flex; flex-direction: column; gap: 18px; }

.reason {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
}

.reason-main {
  background: var(--row-alt);
  border: 1px solid var(--rule);
  padding: 24px 28px 26px;
  display: flex;
  gap: 20px;
}

.reason-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  min-width: 26px;
}

.reason-main h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.reason-main p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-3);
}

.stat {
  background: var(--green-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px;
}

.stat .figure {
  font-size: 38px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat .caption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.quote {
  background: var(--row-alt);
  border: 1px solid var(--rule);
  padding: 22px 24px 20px;
}

.quote p {
  margin: 0;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.quote .by {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}

/* ==========================================================================
   Disclosures
   ========================================================================== */

.disclosures { border-top: 1px solid var(--rule); }

.disclosures .slide-head h2 { margin-bottom: 4px; }

.disc-rule {
  height: 1px;
  background: var(--rule);
  margin: 26px 0 30px;
}

.disc-cols {
  column-count: 2;
  column-gap: 52px;
}

.disc-cols section { break-inside: avoid; margin-bottom: 22px; }

.disc-cols h4 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.disc-cols p {
  margin: 0;
  font-size: 12px;
  line-height: 1.62;
  color: var(--ink-3);
}

.copyright {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-4);
}

.disc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 11px;
}

.disc-foot .mark { color: var(--ink); font-size: 14px; }

.disc-foot .confid { color: var(--ink-4); }

/* ==========================================================================
   Closing
   ========================================================================== */

.closing {
  position: relative;
  overflow: hidden;
  background: #101c14;
  padding: 92px 0 40px;
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.closing .bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/closing-lake.jpg');
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.04);
}

.closing .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 14, .62) 0%, rgba(8, 20, 14, .42) 45%, rgba(8, 20, 14, .78) 100%);
}

.closing .wrap { position: relative; z-index: 2; width: 100%; }

.closing h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 7.6vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.closing .lede {
  margin: 30px 0 0;
  max-width: 620px;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 21px);
  color: #CCCCCC;
}

.closing-foot {
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.closing-foot a.site {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.closing-foot a.site:hover { color: var(--gold); }

.closing-foot .legal {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.offices { display: flex; gap: 56px; }

.office h5 {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.office p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .cases, .caps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .reason { grid-template-columns: 1fr 240px; }
  .nav ul { gap: 18px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }

  .slide { padding: 60px 0 54px; }
  .slide-head h2 { font-size: 31px; }
  .slide-head.split { align-items: flex-start; }
  .slide-head.split .meta { text-align: left; }

  /* Links stay usable on a phone — they scroll sideways rather than vanish. */
  .nav .wrap { gap: 14px; }
  .nav ul {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav a { font-size: 11px; letter-spacing: 0.07em; }

  .cases, .caps, .quotes { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }

  .reason { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .stat .figure { font-size: 32px; }

  .disc-cols { column-count: 1; }

  .offices { flex-direction: column; gap: 18px; }
  .closing-foot { margin-top: 48px; }

  /* A tall phone crops this photo onto its bright sky — deepen the veil so the
     white headline keeps its contrast. */
  .closing .veil {
    background: linear-gradient(180deg,
      rgba(8, 20, 14, .74) 0%, rgba(8, 20, 14, .60) 45%, rgba(8, 20, 14, .86) 100%);
  }

  .hero { min-height: 84vh; min-height: 84dvh; }
  .hero-body { padding-top: 40px; padding-bottom: 40px; }
  .hero .kicker { margin-top: 22px; }

  .case-body { padding: 22px 20px 20px; }
  .case-bar, .case-advisor { padding-left: 20px; padding-right: 20px; }
  .cap { padding: 22px 20px 24px; }
  .reason-main { padding: 20px 20px 22px; }

  .copyright { font-size: 11.5px; }

  /* Tap targets: give inline links real height. */
  .copyright a, .closing-foot a.site {
    display: inline-block;
    padding: 5px 0;
  }

  /* ----------------------------------------------------------------------
     Transaction tables become compact two-column records. The deck has no
     phone layout, so this is the one invented view: deal + size lead, the
     rest reads as supporting meta. Roughly half the height of a naive
     one-label-per-line stack.
     ---------------------------------------------------------------------- */
  .tbl-shell { overflow-x: visible; }
  table.deals { min-width: 0; display: block; }
  table.deals thead { display: none; }
  table.deals tbody { display: block; }

  table.deals tbody tr.sector-band { display: block; }
  table.deals tbody tr.sector-band td {
    display: block;
    font-size: 11.5px;
    padding: 10px 16px;
  }

  table.deals tbody tr.deal {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    align-items: baseline;
    border-bottom: 1px solid var(--rule);
    padding: 15px 0 14px;
  }

  table.deals tbody tr.deal.alt td { background: transparent; }

  table.deals tbody tr.deal td {
    display: block;
    padding: 0;
    border: none;
    font-size: 13px;
    line-height: 1.45;
  }

  /* Labels are redundant once the layout does the explaining. */
  table.deals tbody tr.deal td::before { content: none; }

  table.deals tbody tr.deal td.txn {
    grid-row: 1; grid-column: 1;
    font-size: 15.5px;
    line-height: 1.3;
  }
  table.deals tbody tr.deal td.size {
    grid-row: 1; grid-column: 2;
    font-size: 15.5px;
    text-align: right;
  }
  table.deals tbody tr.deal td.type {
    grid-row: 2; grid-column: 1;
    padding-top: 4px;
  }
  table.deals tbody tr.deal td.year {
    grid-row: 2; grid-column: 2;
    padding-top: 4px;
    text-align: right;
    color: var(--ink-4);
  }
  table.deals tbody tr.deal td.sect {
    grid-row: 3; grid-column: 1 / -1;
    color: var(--ink-4);
  }
  table.deals tbody tr.deal td.adv {
    grid-row: 4; grid-column: 1 / -1;
    padding-top: 5px;
    font-size: 12.5px;
    font-style: italic;
    color: var(--ink-4);
  }

  tr.aggregate { display: block; }
  tr.aggregate td { display: block; padding: 0 16px; }
  tr.aggregate td.label { padding-top: 13px; font-size: 12.5px; }
  tr.aggregate td.total { font-size: 17px; padding-top: 2px; }
  tr.aggregate td.count { padding-bottom: 14px; font-size: 12.5px; color: rgba(255,255,255,.75); }
}

@media print {
  .nav { display: none; }
  .slide { padding: 28px 0; page-break-inside: avoid; }
}
