/* ==========================================================================
   Incipio Holdings Ltd — corporate site
   Deliberately distinct from SaveOnDrive: institutional, quiet, editorial.
   Ink and bone, a single brass accent, serif display over a neutral text face.
   ========================================================================== */

:root {
  --ink:      #101820;
  --ink-2:    #1C2732;
  --ink-3:    #4A5765;
  --ink-4:    #6E7B8A;
  --bone:     #FBFAF7;
  --bone-2:   #F3F1EC;
  --line:     #E1DED6;
  --line-dk:  rgba(255, 255, 255, .13);
  --brass:    #A8813F;   /* 4.6:1 on bone — safe for small text */
  --brass-on-dark: #D7B072;

  --wrap: 1180px;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ── Type ─────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; color: var(--ink); margin: 0; }

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--body); font-weight: 500; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 1.4rem;
}

.lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-3); max-width: 60ch; margin: 0 0 2rem; font-weight: 300; }
.muted { color: var(--ink-3); font-weight: 300; }
.prose-lead { font-size: 1.15rem; color: var(--ink); font-weight: 400; }

.tbc {
  font-style: normal; color: var(--brass);
  background: rgba(168, 129, 63, .1);
  padding: .05em .4em; border-radius: 3px;
  font-size: .92em; white-space: nowrap;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: .93rem; font-weight: 500; letter-spacing: .01em;
  padding: .9rem 1.9rem; border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--brass); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: var(--brass-on-dark);
  border-bottom: 1px solid rgba(215, 176, 114, .35); padding-bottom: 2px;
  transition: border-color .2s ease, gap .2s ease;
}
.link:hover { border-bottom-color: var(--brass-on-dark); gap: .8rem; }

/* ── Nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.logo__mark { color: var(--brass); flex: none; }
.logo__word { font-family: var(--display); font-size: 1.28rem; letter-spacing: -.01em; line-height: 1.15; }
.logo__sub {
  display: block; font-family: var(--body); font-size: .64rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-4); margin-top: 1px;
}

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { text-decoration: none; font-size: .88rem; font-weight: 400; letter-spacing: .04em; color: var(--ink-3); position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--brass); transition: right .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav__toggle span { display: block; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { border-top: 1px solid var(--line); background: var(--bone); padding: .5rem 28px 1.5rem; }
.nav__mobile a { display: block; padding: .85rem 0; text-decoration: none; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding: clamp(4.5rem, 10vw, 8.5rem) 0 0; }
.hero h1 { margin-bottom: 1.75rem; max-width: 16ch; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__rule { height: 1px; background: var(--line); margin: clamp(3.5rem, 7vw, 5.5rem) 0 0; }

.brandline { list-style: none; margin: 0; padding: 2.25rem 0 clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 700px) { .brandline { grid-template-columns: 1fr; gap: 1.5rem; } }
.brandline li { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.brandline span { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.brandline small { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-top: .35rem; }

/* ── Bands ────────────────────────────────────────────────── */

.band { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.wrap.band { padding-inline: 28px; }

.band--dark { background: var(--ink); color: rgba(255,255,255,.72); }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark .eyebrow { color: var(--brass-on-dark); }
.band--dark .lede, .band--dark .muted { color: rgba(255,255,255,.66); }

.band--tint { background: var(--bone-2); }

/* ── Split layout ─────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__main p { margin: 0 0 1.25rem; }
.split__main p:last-child { margin-bottom: 0; }

/* ── Division cards ───────────────────────────────────────── */

.divisions { margin-top: 3rem; border-top: 1px solid var(--line-dk); }

.div-card { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: clamp(2.25rem, 4vw, 3.25rem) 0; border-bottom: 1px solid var(--line-dk); }
@media (max-width: 700px) { .div-card { grid-template-columns: 1fr; gap: .75rem; } }

.div-card__no { font-family: var(--display); font-size: 2.5rem; color: rgba(215, 176, 114, .45); line-height: 1; }
.div-card__kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 .35rem; }
.div-card h3 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: .5rem; }
.div-card__what { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-on-dark); margin: 0 0 1.4rem; }
.div-card__body > p { margin: 0 0 1.1rem; max-width: 62ch; }

.div-card__facts { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 2rem; }
@media (max-width: 620px) { .div-card__facts { grid-template-columns: 1fr; } }
.div-card__facts li { font-size: .9rem; color: rgba(255,255,255,.78); padding-top: .7rem; border-top: 1px solid var(--line-dk); }
.div-card__facts span { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: .2rem; }

/* ── Structure diagram ────────────────────────────────────── */

.diagram { margin: 3rem 0 0; text-align: center; }

.dg-top { display: flex; justify-content: center; }

.dg-box {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 1.4rem 1.5rem; text-align: left; max-width: 480px; width: 100%;
}
.dg-box--head { border-color: var(--ink); border-width: 1.5px; }
.dg-box--op { border-style: dashed; }
.dg-box__k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: .45rem; }
.dg-box__t { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.dg-box__d { font-size: .85rem; color: var(--ink-3); margin-top: .3rem; line-height: 1.55; }

.dg-stem { width: 1px; height: 42px; background: var(--line); margin: 0 auto; }
.dg-stem--short { height: 32px; }

.dg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
@media (max-width: 780px) { .dg-row { grid-template-columns: 1fr; } }
.dg-row .dg-box { max-width: none; }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 880px) { .notes { grid-template-columns: 1fr; } }
.note { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.note h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.note p { margin: 0; font-size: .93rem; color: var(--ink-3); }

/* ── Table ────────────────────────────────────────────────── */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; min-width: 540px; border-collapse: collapse; }
.data th, .data td { padding: 1rem 1rem 1rem 0; text-align: left; }
.data thead th { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ink-4); border-bottom: 1px solid var(--ink); padding-bottom: .7rem; }
.data tbody td { border-bottom: 1px solid var(--line); font-size: .95rem; }
.data .code { font-family: var(--display); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.data .dim { color: var(--ink-4); white-space: nowrap; }

.commit { margin-top: 3rem; }
.commit h3 { margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: .95rem; color: var(--ink-3); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 8px; height: 5px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

/* ── Contact ──────────────────────────────────────────────── */

.contact { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
@media (max-width: 620px) { .contact { grid-template-columns: 1fr; } }
.contact div { border-top: 1px solid var(--line-dk); padding-top: .9rem; }
.contact dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: .35rem; }
.contact dd { margin: 0; font-size: 1rem; color: #fff; }
.contact dd a { text-decoration: none; border-bottom: 1px solid rgba(215,176,114,.4); }
.contact dd a:hover { border-bottom-color: var(--brass-on-dark); color: var(--brass-on-dark); }
/* The address runs to four lines, so it gets the full width rather than
   stretching the row it shares. */
.contact .contact--wide { grid-column: 1 / -1; }
.contact--wide dd { line-height: 1.6; }

.contact__note { margin: 2rem 0 0; font-size: .9rem; color: rgba(255,255,255,.6); max-width: 52ch; }

.band--dark .tbc { color: var(--brass-on-dark); background: rgba(215, 176, 114, .14); }

/* ── Footer ───────────────────────────────────────────────── */

.foot { background: var(--bone-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.foot__links a { text-decoration: none; font-size: .86rem; letter-spacing: .04em; color: var(--ink-3); }
.foot__links a:hover { color: var(--ink); }
.foot__note { margin: 1.75rem 0 0; max-width: 88ch; font-size: .82rem; line-height: 1.65; color: var(--ink-4); }
.foot__legal { margin: 1.75rem 0 0; font-size: .82rem; color: var(--ink-4); }

/* ── Motion ───────────────────────────────────────────────── */

.rise { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.16,1,.3,1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
