:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #080a09;
  --charcoal: #0e1210;
  --charcoal-2: #141a16;
  --line: rgba(216, 229, 236, 0.1);
  --line-strong: rgba(216, 229, 236, 0.22);
  --text: #d8e5ec;
  --muted: #aaa295;
  --dim: #746f65;
  --oxidized: #7f9f8d;
  --oxidized-soft: #a7bba9;
  --matter-blue: #7fa9d6;
  --steel: #6f8798;
  --steel-soft: #9bb2bf;
  --onedoc-cyan: #5fd4ff;
  --onedoc-blue: #75a8ff;
  --max: 1180px;
  --visual-max: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 212, 255, 0.075), transparent 38rem),
    radial-gradient(circle at 92% 18%, rgba(127, 159, 141, 0.06), transparent 34rem),
    linear-gradient(180deg, var(--black), var(--ink) 42%, #050605);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216, 229, 236, 0.035), transparent 22rem),
    radial-gradient(circle at 78% 64%, rgba(95, 212, 255, 0.032), transparent 26rem),
    repeating-linear-gradient(105deg, rgba(216, 229, 236, 0.018) 0 1px, transparent 1px 9px);
  background-size: auto, auto, 180px 180px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background:
    repeating-radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

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

a:focus-visible {
  outline: 2px solid var(--onedoc-cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: var(--black);
  color: var(--text);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  color: rgba(216, 229, 236, 0.86);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--oxidized-soft);
}

.brand-mark::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--oxidized-soft);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--oxidized-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: clamp(900px, 106svh, 1120px);
  overflow: clip;
  border-bottom: 1px solid rgba(216, 229, 236, 0.08);
  background: #000;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 32%, rgba(95, 212, 255, 0.06), transparent 30rem),
    linear-gradient(90deg, var(--black) 0%, rgba(5, 5, 5, 0.94) 48%, rgba(5, 5, 5, 0.68) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.36), transparent 34%, rgba(5, 5, 5, 0.7) 86%, var(--black));
}

.hero-portrait {
  position: absolute;
  top: clamp(122px, 14vh, 176px);
  right: clamp(-32px, -1.2vw, 0px);
  z-index: -1;
  width: min(46vw, 680px);
  aspect-ratio: 1145 / 1374;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 74%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 74%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: saturate(0.8) brightness(0.88) contrast(0.98);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(900px, 106svh, 1120px);
  align-items: start;
  padding: clamp(146px, 16vh, 194px) 0 clamp(72px, 8vh, 112px);
}

.hero-editorial {
  max-width: 820px;
  min-width: 0;
}

.hero-main {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--oxidized-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.context-label {
  margin: 0 0 22px;
  color: var(--oxidized-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.hero-wordmark {
  max-width: 6.3ch;
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(4.5rem, 8vw, 8.7rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  font-synthesis: none;
}

.hero-wordmark > span {
  display: block;
}

.wordmark-vx,
.wordmark-onedoc span:last-child {
  color: var(--onedoc-cyan);
}

.wordmark-onedoc span:first-child {
  color: var(--text);
}

.hero-line {
  display: grid;
  width: fit-content;
  justify-items: center;
  gap: 13px;
  max-width: 720px;
  margin-top: clamp(24px, 2.8vw, 38px);
  color: rgba(216, 229, 236, 0.9);
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-line span {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  max-width: 100%;
  text-align: center;
}

.hero-line span::before,
.hero-line span::after {
  width: min(7.5rem, 28vw);
  height: 1px;
  content: "";
  background: var(--onedoc-cyan);
}

.hero-line::after {
  width: min(12rem, 42vw);
  height: 12px;
  background:
    linear-gradient(
      90deg,
      transparent 0 calc(50% - 6px),
      var(--onedoc-cyan) calc(50% - 6px) calc(50% + 6px),
      transparent calc(50% + 6px) 100%
    ),
    linear-gradient(
      90deg,
      var(--onedoc-cyan) 0 calc(50% - 16px),
      transparent calc(50% - 16px) calc(50% + 16px),
      var(--onedoc-cyan) calc(50% + 16px) 100%
    );
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 12px 12px, 100% 1px;
}

.hero-accent {
  display: none;
}

.positioning {
  max-width: 720px;
  margin-top: 42px;
  color: rgba(216, 229, 236, 0.68);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.showcase {
  border-top: 1px solid rgba(216, 229, 236, 0.08);
}

.product-visual {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--visual-max));
  margin-inline: auto;
  padding: clamp(84px, 11vw, 156px) 0;
  border-bottom: 1px solid var(--line);
}

.product-visual img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--charcoal);
}

figcaption {
  display: grid;
  grid-template-columns: minmax(74px, 0.18fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: baseline;
  padding-top: clamp(18px, 2.6vw, 30px);
}

figcaption span:first-child {
  color: var(--dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.9;
}

figcaption span:last-child {
  color: var(--oxidized-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-narrative {
  border-top: 1px solid rgba(216, 229, 236, 0.08);
}

.narrative-row {
  position: relative;
  padding: clamp(108px, 15vw, 210px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.006);
}

.narrative-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(46px, 9vw, 138px);
}

.project-label {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.index {
  color: var(--dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.status {
  display: inline-flex;
  align-items: center;
  color: var(--oxidized-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.quiet {
  color: rgba(155, 178, 191, 0.76);
}

.narrative-body {
  max-width: 820px;
}

.narrative-body p {
  max-width: 720px;
  margin-top: 42px;
  color: rgba(216, 229, 236, 0.68);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 54px);
  margin: 58px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.capability-list li {
  min-height: 74px;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid rgba(216, 229, 236, 0.08);
  color: rgba(216, 229, 236, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
}

.workflow-line {
  color: rgba(216, 229, 236, 0.78);
}

.closing {
  padding: clamp(108px, 15vw, 210px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.006);
}

.closing-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

h2 {
  max-width: 900px;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.closing p:not(.context-label) {
  max-width: 720px;
  margin-top: 42px;
  color: rgba(216, 229, 236, 0.68);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.reserved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 58px;
  color: rgba(155, 178, 191, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reserved-actions span {
  display: inline-flex;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 229, 236, 0.18);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 118px;
  color: var(--muted);
  font-size: 0.85rem;
}

.year {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .hero,
  .hero-inner {
    min-height: 780px;
  }

  .hero-inner {
    padding-top: 124px;
  }

  .hero-portrait {
    top: 156px;
    right: -24vw;
    width: min(76vw, 560px);
    opacity: 0.82;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

  .site-nav {
    justify-content: flex-end;
    text-align: right;
  }

  .hero,
  .hero-inner {
    min-height: 700px;
  }

  .hero-portrait {
    top: 188px;
    right: -42vw;
    width: 108vw;
    opacity: 0.58;
  }

  .hero-wordmark {
    font-size: clamp(4.2rem, 21vw, 7.2rem);
  }

  .hero-line span::before,
  .hero-line span::after {
    width: clamp(28px, 9vw, 54px);
  }

  .product-visual {
    width: min(100% - 24px, var(--visual-max));
    padding-block: clamp(56px, 14vw, 92px);
  }

  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  figcaption {
    grid-template-columns: 1fr;
    gap: 10px;
  }

}

@media (max-width: 500px) {
  .brand-mark,
  .site-nav,
  .context-label,
  figcaption span:last-child,
  .reserved-actions {
    font-size: 0.68rem;
  }

  .site-header {
    gap: 16px;
  }

  .hero,
  .hero-inner {
    min-height: 640px;
  }
}
