/* Online Capital Group
   Ice-white surface, graphite globe, lighter steel greys for structure. */

:root {
  /* Neutrals, all tinted toward the same cool steel hue (225) */
  --ice: oklch(0.975 0.005 225);
  --ice-2: oklch(0.95 0.007 225);
  --line: oklch(0.885 0.008 225);
  --line-strong: oklch(0.8 0.01 225);
  --mist: oklch(0.74 0.01 225);
  --steel: oklch(0.5 0.012 225);
  --graphite: oklch(0.34 0.012 225);
  --deep: oklch(0.25 0.011 225);
  --ink: oklch(0.2 0.01 225);

  --on-deep: oklch(0.96 0.005 225);
  --on-deep-muted: oklch(0.8 0.01 225);
  --deep-line: oklch(0.36 0.012 225);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.1875rem, 1.06rem + 0.5vw, 1.4375rem);
  --text-xl: clamp(1.4375rem, 1.15rem + 1.15vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-display: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section-y: clamp(80px, 5vw + 48px, 152px);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;
  --radius: 3px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-deep);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--ice);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared type roles */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--steel);
  font-size: var(--text-xs);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow .idx {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hub-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--graphite);
  box-shadow: 0 0 0 3px var(--ice), 0 0 0 4px var(--line-strong);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-sm);
  font-stretch: 108%;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform 260ms var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-solid {
  background: var(--graphite);
  color: var(--ice);
}

.btn-solid:hover {
  background: var(--ink);
}

.btn-outline {
  border-color: var(--graphite);
  color: var(--graphite);
}

.btn-outline:hover {
  background: var(--graphite);
  color: var(--ice);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--graphite);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 180ms var(--ease-out);
}

.link-quiet:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ice);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: var(--header-h);
}

.brand {
  flex: none;
  display: block;
  border-radius: 2px;
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  display: inline-block;
  padding-block: 10px;
  color: var(--graphite);
  font-size: var(--text-sm);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% - 6px);
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 280ms var(--ease-out), color 180ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
  background-size: 100% 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lang button {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--steel);
  font: inherit;
  font-size: var(--text-xs);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.lang button:hover {
  color: var(--ink);
}

.lang button[aria-pressed="true"] {
  background: var(--graphite);
  color: var(--ice);
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-lg);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-block: var(--space-3xl) var(--space-4xl);
}

.hero-copy {
  grid-column: 1 / span 7;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 15ch;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 38ch;
  margin-top: 28px;
  color: var(--graphite);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 44px;
}

.hero-globe {
  grid-column: 7 / -1;
  grid-row: 1;
  justify-self: end;
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin: 0 calc(var(--gutter) * -0.5) 0 0;
}

.hero-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-fallback {
  display: none;
}

.no-js .hero-globe canvas {
  display: none;
}

.no-js .globe-fallback {
  display: block;
  width: 72%;
  margin: 14%;
}

/* Sections */

.section {
  padding-block: var(--section-y);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-lg);
  row-gap: var(--space-lg);
}

.section-label {
  grid-column: 1 / span 3;
  align-self: start;
  padding-top: 0.55em;
}

.section-body {
  grid-column: 4 / -1;
}

.section h2 {
  max-width: 18ch;
  font-size: var(--text-2xl);
}

.section-intro {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--graphite);
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* 01 The group */

.group {
  border-top: 1px solid var(--line);
}

.statement {
  max-width: 34ch;
  color: var(--ink);
  font-size: var(--text-xl);
  font-stretch: 104%;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.012em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 36px var(--space-lg);
  margin: 72px 0 0;
}

.fact {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fact dt {
  color: var(--steel);
  font-size: var(--text-xs);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.fact dd a {
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 180ms var(--ease-out);
}

.fact dd a:hover {
  text-decoration-color: currentColor;
}

/* 02 Capabilities */

.capabilities {
  border-top: 1px solid var(--line);
}

.cap-list {
  grid-column: 1 / -1;
  margin-top: 64px;
  border-bottom: 1px solid var(--line);
}

.cap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-lg);
  row-gap: 10px;
  align-items: baseline;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.cap-idx {
  grid-column: 1 / span 3;
  color: var(--steel);
  font-size: var(--text-sm);
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.cap h3 {
  grid-column: 4 / span 4;
  font-size: var(--text-lg);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cap p {
  grid-column: 8 / -1;
  max-width: 44ch;
  color: var(--graphite);
}

/* 03 Global */

.global {
  position: relative;
  overflow: hidden;
  background: var(--ice-2);
}

.global-art {
  position: absolute;
  top: 50%;
  right: max(-18vw, -260px);
  width: min(70vw, 900px);
  height: auto;
  translate: 0 -50%;
  pointer-events: none;
  user-select: none;
}

.global .section-grid {
  position: relative;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xl) var(--space-lg);
  margin-top: 72px;
}

.principles li {
  padding-top: 20px;
  border-top: 1px solid var(--graphite);
}

.principles h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.principles p {
  max-width: 30ch;
  margin-top: 12px;
  color: var(--graphite);
}

/* 04 Contact */

.contact {
  background: var(--deep);
  color: var(--on-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-lg);
  row-gap: var(--space-2xl);
  align-items: start;
}

.contact-intro {
  grid-column: 1 / span 5;
}

.contact .eyebrow {
  color: var(--on-deep-muted);
}

.contact .eyebrow .idx {
  color: var(--on-deep);
}

.contact h2 {
  margin-top: 24px;
  color: var(--on-deep);
  font-size: var(--text-2xl);
}

.contact-intro > p:last-child {
  max-width: 40ch;
  margin-top: 24px;
  color: var(--on-deep-muted);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.channels {
  grid-column: 7 / -1;
  border-bottom: 1px solid var(--deep-line);
}

.channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px var(--space-lg);
  padding-block: 28px;
  border-top: 1px solid var(--deep-line);
}

.channel-label {
  grid-column: 1 / -1;
  color: var(--on-deep-muted);
  font-size: var(--text-xs);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-value {
  color: var(--on-deep);
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem);
  font-stretch: 106%;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 180ms var(--ease-out);
}

.channel-value:hover {
  text-decoration-color: var(--on-deep-muted);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-deep);
  font: inherit;
  font-size: var(--text-xs);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.copy-btn:hover {
  border-color: var(--on-deep-muted);
}

.copy-btn[data-state="copied"] {
  border-color: var(--on-deep);
  background: var(--on-deep);
  color: var(--deep);
}

.copy-btn[data-state="error"] {
  border-color: var(--on-deep-muted);
}

/* Footer */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--deep-line);
  background: var(--deep);
  color: var(--on-deep-muted);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer-brand {
  display: block;
  border-radius: 2px;
}

.footer-brand img {
  width: auto;
  height: 32px;
}

.footer-legal {
  margin-right: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-links a {
  color: var(--on-deep);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Motion: only when JS is running and the visitor has not asked for less motion */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    animation: rise 900ms var(--ease-out) both;
    animation-delay: calc(120ms + var(--i, 0) * 90ms);
  }

  .js .hero-globe {
    animation: globe-in 1600ms var(--ease-out) 180ms both;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes globe-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.95);
  }
}

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

/* Responsive */

@media (max-width: 1080px) {
  .site-nav ul {
    gap: 20px;
  }

  .header-inner {
    gap: var(--space-lg);
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    min-height: 0;
    padding-block: var(--space-2xl) var(--space-3xl);
    row-gap: var(--space-xl);
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-globe {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 480px);
    margin: 0;
  }

  .section-label,
  .section-body {
    grid-column: 1 / -1;
  }

  .section-label {
    padding-top: 0;
    margin-bottom: var(--space-sm);
  }

  .cap h3 {
    grid-column: 3 / span 10;
  }

  .cap p {
    grid-column: 3 / -1;
  }

  .cap-idx {
    grid-column: 1 / span 2;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .global-art {
    top: auto;
    bottom: -34vw;
    right: -36vw;
    width: 92vw;
    translate: none;
  }

  .contact-intro,
  .channels {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    height: 30px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 56px;
  }

  .fact:nth-child(n + 5) {
    grid-column: 1 / -1;
  }

  .cap {
    padding-block: 26px;
  }

  .cap-idx,
  .cap h3,
  .cap p {
    grid-column: 1 / -1;
  }

  .channel {
    grid-template-columns: 1fr;
  }

  .copy-btn {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
