/* Integra Projects — Visual System
   Premium / architectural / understated, brand-blue accented */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --ink: #0E1116;
  --ink-2: #1A1D22;
  --ink-soft: #4A4F57;
  --paper: #F5F2EC;
  --paper-2: #ECE7DD;
  --paper-3: #E2DCCD;
  --blue: #1B6FB8;
  --blue-deep: #134E83;
  --blue-tint: #E8EFF7;
  --rule: rgba(14,17,22,0.12);
  --rule-strong: rgba(14,17,22,0.24);
  --on-ink: #F5F2EC;

  /* Type */
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============== Type scale ============== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow .num { color: var(--blue); margin-right: 10px; }

.display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
}
.display em { font-style: normal; color: var(--blue); }
.display .accent { color: var(--blue); font-style: normal; }

.h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.h1 em { font-style: normal; color: var(--blue); }
.h1 .accent { color: var(--blue); font-style: normal; }

.h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.h2 em { font-style: normal; color: var(--blue); }
.h2 .accent { color: var(--blue); font-style: normal; }

.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
  margin: 0;
}

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ============== Layout ============== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 144px) 0;
  border-top: 1px solid var(--rule);
}
.section--ink { background: var(--ink); color: var(--on-ink); border-top-color: rgba(255,255,255,0.08); }
.section--ink .lede, .section--ink .body, .section--ink .eyebrow { color: rgba(245,242,236,0.7); }
.section--ink .eyebrow .num { color: #6FA8DC; }
.section--paper-2 { background: var(--paper-2); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}

/* ============== Components ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(245,242,236,0.4); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.link:hover { gap: 12px; }

/* Rule */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Tag pill */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  padding: 4px 8px;
  border-radius: 999px;
}

/* ============== Header ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,242,236,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-7);
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 40px; width: auto; display: block; }

.nav { display: flex; gap: var(--s-7); justify-content: center; }
.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a.is-active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--blue);
}

.header__cta { display: flex; align-items: center; gap: var(--s-4); }
.header__phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.header__phone:hover { color: var(--blue); }

@media (max-width: 880px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
}

/* ============== Footer ============== */
.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--s-9) 0 var(--s-6);
}
.footer a { color: rgba(245,242,236,0.7); }
.footer a:hover { color: var(--paper); }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(245,242,236,0.12);
}
.footer__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  margin: 0 0 var(--s-5);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__statement {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-6);
  max-width: 22ch;
}
.footer__statement em { font-style: normal; color: #6FA8DC; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* ============== Placeholder image ============== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(14,17,22,0.05) 0 1px, transparent 1px 14px),
    var(--paper-3);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-soft);
}
.ph[data-img] {
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph[data-img] .ph__label { display: none; }
.ph__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  text-align: center;
  max-width: 80%;
}
.ph--ink {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px),
    #1A1D22;
}
.ph--ink .ph__label { background: var(--ink); color: rgba(245,242,236,0.7); border-color: rgba(245,242,236,0.18); }

/* ============== Reveal ============== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
