/* ============================================================
   Investaro — style (client redesign, 2026-11)
   Palette: pure black / white / grays / accent (set inline per build)
   Type: Barlow (body) · Barlow Semi Condensed (display)
   ============================================================ */

:root {
  --bg: #000000;
  --ink: #FFFFFF;
  --ink-soft: #D9D9D9;
  --ink-dim: #BFBFBF;
  --ink-faint: #A6A6A6;
  --line: #1A1A1A;
  --line-strong: #333333;
  --num: #5C5C5C;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", sans-serif;
  --ease-nav: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

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

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ---------- Reveal masks ---------- */

.reveal-line {
  display: block;
  overflow: hidden;
}
.line-inner {
  display: block;
  /* initial hidden state is applied by JS only, so content
     stays visible if the animation libraries fail to load */
  will-change: transform;
}

/* ---------- Header / nav ---------- */

.top-nav {
  position: relative;
  z-index: 2;
}
.top-nav nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 40px;
}
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 300ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 300ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.hero-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(80px, 16vh, 180px) clamp(20px, 4vw, 40px) clamp(60px, 10vh, 120px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 980px;
  margin-bottom: 32px;
}

.hero-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 16px 30px;
  min-height: 52px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}
.hero-explore:hover {
  background: var(--ink);
  color: #000;
}
.hero-arrow { display: inline-block; animation: drift 2.4s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Sections ---------- */

.section {
  border-bottom: 1px solid var(--line);
}
.section > .wrap {
  padding-top: clamp(90px, 14vh, 140px);
  padding-bottom: clamp(90px, 14vh, 140px);
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 760px;
  margin-bottom: clamp(48px, 8vh, 72px);
}

/* About: two-column */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 96px;
}
.about-left { flex: 1 1 340px; min-width: 0; }
.about-left .section-title { margin-bottom: 0; }
.prose {
  flex: 999 1 560px;
  min-width: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--ink-soft);
  display: grid;
  gap: 24px;
  align-content: start;
}

/* ---------- Business list ---------- */

.biz-list { border-bottom: 1px solid var(--line-strong); }

.biz-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: baseline;
  padding: 48px 0;
  border-top: 1px solid var(--line-strong);
  transition: background 350ms ease;
}
.biz-item:hover { background: rgba(255, 255, 255, 0.02); }

.biz-index {
  flex: 0 0 120px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--num);
  transition: color 350ms ease;
}
.biz-item:hover .biz-index { color: var(--accent); }

.biz-title {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 350ms var(--ease-nav);
}
.biz-item:hover .biz-title { transform: translateX(10px); }

.biz-text {
  flex: 999 1 460px;
  min-width: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- Banner (statement) ---------- */

.statement {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 120px clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.banner-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* word-by-word scroll scrub */
.word {
  display: inline-block;
  opacity: 0.15;
}

.statement-meta {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Focus grid ---------- */

.focus-intro {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 720px;
  margin: -32px 0 clamp(48px, 8vh, 72px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 40px;
}
.focus-item {
  border-top: 2px solid var(--ink);
  padding-top: 28px;
  transition: background 350ms ease;
}
.focus-item:hover { background: rgba(255, 255, 255, 0.03); }
.focus-item h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.7vw, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  transition: color 300ms ease, transform 300ms var(--ease-nav);
}
.focus-item:hover h3 {
  color: var(--accent);
  transform: translateX(8px);
}
.focus-item p {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-dim);
}

/* ---------- Contact ---------- */

.contact { border-bottom: 1px solid var(--line); }
.contact-inner {
  padding-top: clamp(100px, 16vh, 160px);
  padding-bottom: clamp(100px, 16vh, 160px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.contact-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 900px;
}
.contact-text {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 8px;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #000;
  padding: 18px 32px;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 300ms ease, color 300ms ease;
}
.contact-mail:hover {
  background: var(--accent);
  color: #000;
}

/* ---------- Footer ---------- */

.footer-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 300ms ease;
}
.footer-top:hover { color: var(--ink); }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease-nav), transform 350ms var(--ease-nav), border-color 300ms ease;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover { border-color: #fff; }
.to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
}
.to-top-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
}
.to-top-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 300ms ease;
}
.to-top:hover .to-top-arrow { transform: translateY(-2px); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links { gap: 4px 20px; }
  .biz-item { gap: 12px 24px; }
  .biz-index { flex-basis: 64px; }
  .focus-intro { margin-top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  .line-inner { transform: none !important; }
  .hero-arrow { animation: none; }
  .word { opacity: 1 !important; }
}

/* ============================================================
   Ambient layer — discreet depth effects
   ============================================================ */

/* Soft ambient light, slowly drifting */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 30% at 74% 16%, rgba(255, 255, 255, 0.045), transparent 70%),
    radial-gradient(30% 26% at 16% 82%, rgba(255, 255, 255, 0.03), transparent 70%);
  animation: glow-drift 38s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(2.5%, -2%, 0) scale(1.02); }
}

/* Fine film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -60%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-1.6%, 2.2%, 0); }
  50%  { transform: translate3d(2.2%, -1.4%, 0); }
  75%  { transform: translate3d(-2%, -1.8%, 0); }
  100% { transform: translate3d(1.8%, 1.6%, 0); }
}

/* Slim themed scrollbar */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid var(--bg);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Business rows: accent edge draws in on hover */
.biz-item::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 450ms var(--ease-nav);
}
.biz-item:hover::after { transform: scaleY(1); }

/* Magnetic targets */
.hero-explore, .contact-mail { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  body::after { display: none; }
}
