/* Arcwise Technology landing page */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors sampled from the logo */
  --navy-950: #00142b;
  --navy-900: #011c38;
  --navy-800: #022a4b;
  --navy-700: #033e5e;
  --teal-600: #027087;
  --teal-500: #0590a8;
  --cyan-400: #00c1d3;
  --cyan-300: #00f2f5;
  --sun: #ffd857;
  --sun-bright: #ffe27f;

  --paper: #f3f7f9;
  --white: #ffffff;
  --ink: #0a2238;
  --ink-soft: #4a5d6f;
  --line: #d9e3ea;
  --on-dark: #e8f1f6;
  --on-dark-soft: #a9c0cf;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

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

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

section[id] {
  scroll-margin-top: 72px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--sun);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Type */

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.eyebrow {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.eyebrow-dark {
  color: var(--teal-600);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.btn-sun {
  background: var(--sun);
  color: var(--navy-900);
  box-shadow: 0 8px 28px -10px rgba(255, 216, 87, 0.65);
}

.btn-sun:hover {
  background: var(--sun-bright);
  box-shadow: 0 14px 34px -10px rgba(255, 216, 87, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.is-stuck {
  background: rgba(1, 28, 56, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: auto;
  flex: none;
}

.mark-arc {
  fill: none;
  stroke: var(--white);
  stroke-width: 46;
  stroke-linecap: round;
}

.mark-dot {
  fill: var(--sun);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name span {
  font-weight: 500;
  color: var(--on-dark-soft);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(70% 85% at 100% 100%, rgba(0, 242, 245, 0.42) 0%, rgba(0, 193, 211, 0.24) 24%, rgba(2, 112, 135, 0.14) 46%, rgba(3, 62, 94, 0) 72%),
    linear-gradient(180deg, var(--navy-900) 0%, #02264a 60%, var(--navy-700) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 940px);
  padding-top: 120px;
  padding-bottom: 48px;
}

.hero h1 {
  max-width: 9.8em;
}

.hero-lead {
  max-width: 30em;
  margin-top: 26px;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.6;
  color: var(--on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-art {
  position: absolute;
  right: max(-40px, calc((100vw - 1160px) / 2 - 80px));
  top: 50%;
  width: min(47vw, 620px);
  height: auto;
  overflow: visible;
  transform: translateY(-54%);
  pointer-events: none;
}

.hero-rings path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero-arc {
  fill: none;
  stroke: var(--white);
  stroke-width: 44;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 18px 40px rgba(0, 20, 43, 0.35));
}

.hero-dot {
  fill: var(--sun);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 26px rgba(255, 216, 87, 0.55));
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 880px;
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.facts dt {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.facts dd {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
}

/* Sections */

.services,
.experience,
.process,
.contact {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-lead {
  margin-top: 20px;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

/* Services */

.services {
  background: var(--paper);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
  box-shadow: 0 24px 48px -28px rgba(1, 28, 56, 0.4);
}

.card-n {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #8fa3b3;
}

.card-icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-900), var(--teal-600));
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 24px;
}

.card p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Experience */

.experience {
  background: var(--white);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.experience-figure {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
}

.big-number {
  display: flex;
  align-items: baseline;
  margin-left: -0.05em;
  font-size: clamp(7.5rem, 3rem + 15vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.big-digits {
  padding-right: 0.06em;
  color: var(--navy-900);
  background: linear-gradient(150deg, var(--navy-900) 20%, var(--teal-600) 62%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.big-plus {
  color: var(--sun);
  letter-spacing: 0;
}

.big-caption {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.experience-body h2 + p {
  margin-top: 26px;
}

.experience-body p + p {
  margin-top: 16px;
}

.experience-body > div > p:not(.eyebrow) {
  max-width: 36em;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.habits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 44px;
}

.habits li {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}

.habits h3 {
  position: relative;
  padding-left: 20px;
}

.habits h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 216, 87, 0.28);
}

.habits p {
  margin-top: 8px;
  padding-left: 20px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Process */

.process {
  padding-bottom: clamp(48px, 6vw, 80px);
  color: var(--white);
  background: var(--navy-900);
}

.process .section-head {
  margin-bottom: 8px;
}

.process-arc {
  width: 100%;
  height: auto;
  overflow: visible;
}

.process-arc path {
  fill: none;
  stroke: var(--white);
  stroke-width: 5;
  stroke-linecap: round;
}

.process-arc circle {
  fill: var(--navy-900);
  stroke: var(--white);
  stroke-width: 4;
}

.process-arc .process-dot {
  fill: var(--sun);
  stroke: none;
  filter: drop-shadow(0 0 14px rgba(255, 216, 87, 0.6));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.steps li {
  padding: 0 18px;
  text-align: center;
}

.step-n {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cyan-300);
}

.step-n-sun {
  color: var(--sun);
}

.steps h3 {
  margin-top: 10px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.steps p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--on-dark-soft);
}

/* Contact */

.contact {
  padding-top: clamp(24px, 4vw, 56px);
  color: var(--white);
  background:
    radial-gradient(80% 115% at 0% 100%, rgba(0, 242, 245, 0.95) 0%, rgba(0, 193, 211, 0.6) 20%, rgba(2, 112, 135, 0.38) 44%, rgba(3, 62, 94, 0) 74%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.contact-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(1, 24, 48, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 12, 28, 0.7);
}

.contact-lead {
  max-width: 32em;
  margin-top: 20px;
  font-size: 1.14rem;
  color: var(--on-dark);
}

.contact-email {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(1.15rem, 0.6rem + 2.9vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--sun);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.copy-status:empty {
  display: none;
}

.copy-status {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan-300);
}

/* Footer */

.site-footer {
  padding-block: 36px;
  color: var(--on-dark-soft);
  background: var(--navy-950);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.footer-copy {
  margin-left: auto;
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(3n + 2),
.steps .reveal:nth-child(2),
.habits .reveal:nth-child(2n) {
  transition-delay: 0.08s;
}

.cards .reveal:nth-child(3n),
.steps .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.steps .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes draw-arc {
  from {
    stroke-dashoffset: 1.02;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes land-dot {
  0% {
    opacity: 0;
    transform: translate(-30px, -46px) scale(0.4);
  }
  70% {
    opacity: 1;
    transform: translate(0, 4px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-arc {
  animation: draw-arc 1.5s 0.15s var(--ease) both;
}

.hero-dot {
  animation: land-dot 0.6s 1.35s var(--ease) both;
}

.hero-inner > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-inner > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-inner > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-inner > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-inner > :nth-child(5) {
  animation-delay: 0.36s;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards .reveal:nth-child(n) {
    transition-delay: 0s;
  }

  .hero-art {
    top: 92px;
    right: -21vw;
    width: 54vw;
    opacity: 0.3;
    transform: none;
  }
}

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

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

  .experience-figure {
    position: static;
  }

  .process-arc {
    display: none;
  }

  .process .section-head {
    margin-bottom: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-left: 7px;
  }

  .steps li {
    position: relative;
    padding: 0 0 34px 28px;
    text-align: left;
  }

  .steps li:last-child {
    padding-bottom: 0;
  }

  .steps li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--navy-900);
  }

  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 22px;
    bottom: -2px;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
  }

  .steps li:last-child::before {
    border-color: var(--sun);
    background: var(--sun);
    box-shadow: 0 0 14px rgba(255, 216, 87, 0.6);
  }

  .steps .reveal:nth-child(n) {
    transition-delay: 0s;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .nav {
    height: 66px;
    gap: 16px;
  }

  .brand-name span {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 124px;
    padding-bottom: 44px;
  }

  .hero-art {
    top: auto;
    bottom: 40px;
    right: 8px;
    width: min(40vw, 190px);
    opacity: 1;
  }

  .hero-rings {
    display: none;
  }

  .hero-arc {
    filter: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 52px;
  }

  .cards,
  .habits {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 30px 22px 28px;
    border-radius: 24px;
  }

  .contact-email {
    font-size: min(4.5vw, 1.5rem);
    text-decoration-thickness: 2px;
  }

  .contact-actions .btn {
    flex: 1 1 auto;
  }

  .site-footer .brand-name span {
    display: inline;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}
