/* =====================================================================
   FALLBACK AI — minimalist, aaru-inspired, foundational infra for robots
   black hero · safety-orange section · white serif section · sparse
   ===================================================================== */

:root{
  --black:    #0a0a0a;
  --ink:      #efebde;          /* warm off-white on black */
  --ink-dim:  #8c8775;
  --paper:    #ffffff;
  --paper-2:  #f5f1e8;
  --bold:     #ED5111;          /* safety orange */
  --bold-ink: #0a0a0a;          /* text on orange */
  --line:     #1c1c1c;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  --pad-x: clamp(24px, 5vw, 80px);
  --max:   1440px;
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul,ol{ list-style:none; padding:0; margin:0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection{ background: var(--bold); color: white; }
:focus-visible{ outline: 1px solid var(--bold); outline-offset: 4px; }

html{ scroll-behavior: smooth; }
body{
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* ============= RIBBON ============= */
.ribbon{
  display: flex; justify-content: center; align-items: center; gap: 14px;
  background: var(--bold);
  color: var(--bold-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 16px;
  text-align: center;
}
.ribbon span{
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.ribbon:hover span{ text-decoration: none; }

/* ============= NAV ============= */
.nav{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--pad-x);
  gap: 24px;
}
.nav__brand{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav__mark{ width: 22px; height: 22px; color: var(--ink); }
.nav__links{
  display: inline-flex; gap: 36px;
  justify-self: center;
  font-size: 14px;
  color: var(--ink);
}
.nav__links a{
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__links a:hover{ color: var(--bold); }
.nav__cta{
  justify-self: end;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.nav__cta:hover{ background: var(--ink); color: var(--black); }

@media (max-width: 760px){
  .nav{ grid-template-columns: 1fr auto; }
  .nav__links{ display: none; }
}

/* ============= HERO ============= */
.hero{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: clamp(48px, 9vw, 140px) var(--pad-x) clamp(48px, 9vw, 140px);
  align-items: center;
  min-height: calc(100vh - 120px);
}
.hero__copy{ max-width: 760px; }
.hero h1{
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__art{
  position: relative;
  height: 70vh;
  max-height: 720px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art .dither{
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 960px){
  .hero{ grid-template-columns: 1fr; min-height: 0; }
  .hero__art{ height: 56vh; min-height: 360px; order: 2; }
}

/* ============= COLOR BLOCK ============= */
.color{
  background: var(--bold);
  color: var(--bold-ink);
  padding: clamp(80px, 12vw, 180px) var(--pad-x) clamp(80px, 10vw, 160px);
}

.color__sentence{
  max-width: 720px;
  margin-bottom: clamp(80px, 12vw, 200px);
}
.color__sentence p{
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--bold-ink);
}

/* numbered ladder */
.ladder{
  border-top: 1px solid rgba(10,10,10,.25);
  max-width: 760px;
}
.ladder li{
  border-bottom: 1px solid rgba(10,10,10,.25);
}
.ladder details{ }
.ladder summary{
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 26px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bold-ink);
  position: relative;
}
.ladder summary::-webkit-details-marker{ display: none; }
.ladder summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.ladder details[open] summary::after{ content: "−"; }
.ladder__num{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ladder__lbl{ font-weight: 600; }
.ladder__body{
  padding: 4px 0 32px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}
.ladder__body p{
  grid-column: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: 0.001em;
  color: var(--bold-ink);
  max-width: 56ch;
}

/* ============= SCALE (white serif) ============= */
.scale{
  background: var(--paper);
  color: var(--black);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
  align-items: center;
}
.scale__art{
  position: relative;
  display: flex;
  justify-content: center;
}
.scale__art .dither{
  width: 100%;
  max-width: 480px;
  height: 600px;
  display: block;
}
@media (max-width: 880px){
  .scale__art .dither{ height: 480px; }
}
.scale__copy{
  max-width: 640px;
}
.scale__eyebrow{
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}
.scale__copy p{
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--black);
}

@media (max-width: 880px){
  .scale{ grid-template-columns: 1fr; }
  .scale__art{ order: 2; }
}

/* ============= PRODUCTS ============= */
.products{
  background: var(--black);
  color: var(--ink);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
}
.products ol{
  border-top: 1px solid rgba(255,255,255,.1);
}
.products li{
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: padding .2s;
}
.products li:hover{ padding-left: 8px; }
.products__link{
  display: contents;
  cursor: pointer;
}
.products li:has(.products__link):hover .products__name{ color: var(--bold); }
.products__desc em{ color: var(--bold); font-style: normal; font-weight: 500; letter-spacing: 0.04em; }
.products__num{
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.products__name{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.products__desc{
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}
@media (max-width: 720px){
  .products li{ grid-template-columns: 40px 1fr; }
  .products__desc{ grid-column: 2; padding-top: 4px; }
}

/* ============= CONTACT ============= */
.contact{
  background: var(--black);
  color: var(--ink);
  padding: clamp(80px, 14vw, 200px) var(--pad-x);
  display: flex;
  justify-content: center;
}
.contact__inner{
  text-align: center;
  max-width: 900px;
}
.contact h2{
  margin: 0 0 40px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.contact__btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background .2s, color .2s;
}
.contact__btn svg{ width: 16px; height: 16px; transition: transform .25s; }
.contact__btn:hover{ background: var(--bold); color: white; border-color: var(--bold); }
.contact__btn:hover svg{ transform: translateX(4px); }

/* ============= FOOTER ============= */
.footer{
  background: var(--black);
  color: var(--ink-dim);
  padding: 32px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.footer > div:first-child{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.footer__mark{ width: 20px; height: 20px; color: var(--ink); }
.footer__cols{
  display: inline-flex;
  gap: 28px;
  justify-self: center;
}
.footer__cols a{
  transition: color .2s;
}
.footer__cols a:hover{ color: var(--ink); }
.footer__btm{
  justify-self: end;
}

@media (max-width: 720px){
  .footer{ grid-template-columns: 1fr; text-align: center; }
  .footer__cols{ justify-self: center; }
  .footer__btm{ justify-self: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
