/* aaraa labs — brand tokens */
:root {
  --ink: #0e0e0f;
  --ink-2: #19191b;
  --paper: #f3efe7;
  --muted: #8d8a84;
  --accent: #ff5b24;   /* aaraa orange */
  --line: rgba(243, 239, 231, 0.14);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(14, 14, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__logo { display: flex; align-items: baseline; gap: 6px; }
.nav__logo img { width: 92px; }
.nav__logo span { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.nav__links { display: flex; gap: 32px; font-weight: 500; font-size: 16px; }

/* Rolling text hover (copy slides up from below) */
.roll { --gap: 0px; display: inline-flex; overflow: hidden; }
.roll > span { position: relative; display: inline-block; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.roll > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: calc(100% + var(--gap));
}
.roll:hover > span, .roll:focus-visible > span { transform: translateY(calc(-100% - var(--gap))); }

.btn {
  --gap: 24px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 15px;
}
.btn > span::after { left: 0; }

/* ---------- Display type ---------- */
.section-title, .contact__title, .label {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .86; letter-spacing: -.01em; margin: 0;
}
.line { display: block; overflow: hidden; padding: 0 .08em .04em 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 56px;
}
.hero__brand { display: flex; align-items: baseline; gap: 1.6vw; margin: 0; }
.hero__logo { flex: 1 1 auto; min-width: 0; height: auto; overflow: hidden; }
.hero__labs {
  flex: none; padding: 0;
  font-family: var(--display); font-weight: 600; font-size: 14vw;
  line-height: .9; color: var(--accent);
}
.hero__labs .split { display: inline-block; }
.hero__sub { max-width: 30ch; margin: 32px 0 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--paper); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1fr 2.4fr; row-gap: 24px;
  padding: clamp(96px, 14vw, 200px) var(--gutter);
}
.about > * { grid-column: 2; }
.label { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .04em; line-height: 1; color: var(--accent); }
.about__text {
  margin: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 88px); line-height: .95;
}

/* ---------- Apps ---------- */
.apps { padding: 0 var(--gutter); }
.values { padding: clamp(96px, 12vw, 180px) var(--gutter); }
.section-title { font-size: clamp(64px, 12vw, 200px); margin-bottom: 48px; }
.section-title .split { display: inline-block; }

/* Each panel sticks to the top, so the next one slides up over it */
.app-panel {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px;
  padding: 96px var(--gutter) 48px;
  background: var(--bg); color: var(--ink);
  overflow: hidden; transform-origin: 50% 0;
}
.app-panel__info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.app-panel__meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 800; font-size: 28px;
}
.pill {
  padding: 4px 14px; border: 1.5px solid currentColor; border-radius: 999px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
}
.app-panel__name {
  margin: 0; overflow: hidden; padding-bottom: .04em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 11vw, 190px); line-height: .86;
}
.app-panel p { max-width: 32ch; margin: 0; font-size: clamp(18px, 1.6vw, 22px); }
.btn--dark { background: var(--ink); color: var(--paper); margin-top: 8px; }

/* Placeholder phone — swap the screen for a real screenshot later */
.phone {
  justify-self: center;
  height: min(70svh, 640px); aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.phone__screen {
  display: grid; place-items: center; height: 100%;
  border-radius: 34px; background: color-mix(in srgb, var(--bg) 55%, white);
  color: rgba(14, 14, 15, .45); font-size: 14px; font-weight: 600;
}
.phone--soon .phone__screen { font-size: 64px; color: var(--accent); }

/* ---------- Values ---------- */
.values__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values__list li {
  display: flex; align-items: baseline; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 112px); line-height: .9;
  transition: color .3s ease, padding .3s ease;
}
.values__list li span { font-size: .3em; color: var(--accent); min-width: 2.2ch; }
.values__list li:hover { color: var(--accent); padding-left: 16px; }

/* ---------- Contact ---------- */
.contact {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
  background: var(--paper); color: var(--ink);
}
.contact__title { font-size: clamp(80px, 20vw, 320px); }
.contact__title em { color: var(--accent); }
.contact p { max-width: 36ch; margin: 24px 0 32px; }
.btn--big { --gap: 36px; background: var(--ink); color: var(--paper); font-size: clamp(16px, 2vw, 22px); padding: 16px 28px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px var(--gutter); color: var(--muted); font-size: 14px;
}
.footer img { width: 72px; opacity: .6; }
.footer p { margin: 0; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .about { grid-template-columns: 1fr; row-gap: 16px; }
  .about > * { grid-column: 1; }
  .app-panel {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start;
    gap: 24px; padding: 88px var(--gutter) 24px;
  }
  .phone { height: min(44svh, 420px); align-self: end; justify-self: end; }
  .hero__brand { flex-direction: column; align-items: flex-end; gap: 2vw; }
  .hero__logo { width: 100%; }
  .hero__labs { font-size: 22vw; }
}

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