/* =========================================================
CAGE — Human-Robot Coexistence Dataset
Main stylesheet
========================================================= */

/* =========================================================
RESET
========================================================= */

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

html {
scroll-behavior: smooth;
}

body {
margin: 0;
background: #f5f4f0;
color: #171717;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
line-height: 1.6;
}

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

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

button,
a {
-webkit-tap-highlight-color: transparent;
}

::selection {
background: #171717;
color: #ffffff;
}

/* =========================================================
GLOBAL
========================================================= */

.container {
width: min(1180px, calc(100% - 48px));
margin: 0 auto;
}

.section {
padding: 90px 0;
}

.section-label {
margin: 0 0 22px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #77756f;
}

.section-heading {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
gap: 80px;
align-items: end;
margin-bottom: 70px;
}

.section-heading > p {
max-width: 440px;
margin: 0 0 5px auto;
color: #66645f;
font-size: 1rem;
line-height: 1.75;
}

h1,
h2,
h3,
p {
margin-top: 0;
}

h2 {
margin-bottom: 0;
font-size: clamp(2.5rem, 5vw, 4.6rem);
font-weight: 500;
letter-spacing: -0.045em;
line-height: 0.98;
}

h2 em {
font-style: normal;
color: #77756f;
}

/* =========================================================
ACCESSIBILITY
========================================================= */

.skip-link {
position: fixed;
top: -100px;
left: 20px;
z-index: 9999;
padding: 10px 16px;
background: #171717;
color: #ffffff;
font-size: 0.9rem;
}

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

/* =========================================================
HEADER
========================================================= */

.site-header {
position: absolute;
top: 0;
left: 0;
z-index: 20;
width: 100%;
color: #ffffff;
}

.nav-wrap {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 86px;
gap: 30px;
}

.brand {
display: inline-flex;
align-items: center;
gap: 12px;
}

.brand-mark {
font-size: 1rem;
font-weight: 800;
letter-spacing: 0.12em;
}

.brand-text {
padding-left: 12px;
border-left: 1px solid rgba(255, 255, 255, 0.45);
font-size: 0.75rem;
letter-spacing: 0.04em;
opacity: 0.82;
}

.nav-list {
display: flex;
align-items: center;
gap: 28px;
margin: 0;
padding: 0;
list-style: none;
}

.nav-list a {
position: relative;
font-size: 0.78rem;
font-weight: 500;
opacity: 0.82;
transition: opacity 0.2s ease;
}

.nav-list a::after {
position: absolute;
right: 0;
bottom: -7px;
left: 0;
height: 1px;
background: #ffffff;
content: "";
transform: scaleX(0);
transform-origin: left;
transition: transform 0.2s ease;
}

.nav-list a:hover {
opacity: 1;
}

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

/* =========================================================
HERO
========================================================= */

.hero {
position: relative;
min-height: 760px;
display: flex;
align-items: center;
overflow: hidden;
background: #111111;
color: #ffffff;
}

.hero-image {
position: absolute;
inset: 0;
}

.hero-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.hero-overlay {
position: absolute;
inset: 0;
background:
linear-gradient(
90deg,
rgba(0, 0, 0, 0.78) 0%,
rgba(0, 0, 0, 0.52) 45%,
rgba(0, 0, 0, 0.18) 100%
);
}

.hero-content {
position: relative;
z-index: 2;
padding-top: 90px;
}

.eyebrow {
margin-bottom: 26px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.16em;
opacity: 0.7;
}

.hero h1 {
max-width: 850px;
margin-bottom: 32px;
font-size: clamp(4rem, 8vw, 7.8rem);
font-weight: 500;
letter-spacing: -0.065em;
line-height: 0.88;
}

.hero h1 span {
color: rgba(255, 255, 255, 0.68);
}

.hero-description {
max-width: 590px;
margin-bottom: 34px;
font-size: clamp(1.05rem, 1.7vw, 1.3rem);
line-height: 1.55;
color: rgba(255, 255, 255, 0.84);
}

.button-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 12px 20px;
border: 1px solid transparent;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.03em;
transition:
background 0.2s ease,
color 0.2s ease,
border-color 0.2s ease,
transform 0.2s ease;
}

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

.btn-primary {
background: #ffffff;
color: #171717;
}

.btn-primary:hover {
background: #e9e8e4;
}

.btn-light {
border-color: rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
}

.btn-light:hover {
background: #ffffff;
color: #171717;
}

.hero-note {
margin-top: 48px;
font-size: 0.72rem;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
STATISTICS
========================================================= */

.stats-section {
background: #171717;
color: #ffffff;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 54px 0;
}

.stat {
display: flex;
align-items: center;
gap: 22px;
min-height: 95px;
padding: 10px 35px;
border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:first-child {
padding-left: 0;
border-left: 0;
}

.stat strong {
font-size: clamp(2.5rem, 4vw, 4rem);
font-weight: 500;
letter-spacing: -0.06em;
line-height: 1;
}

.stat .unit {
margin-left: 3px;
font-size: 0.55em;
letter-spacing: -0.02em;
}

.stat span:not(.unit) {
color: rgba(255, 255, 255, 0.55);
font-size: 0.72rem;
line-height: 1.35;
text-transform: uppercase;
letter-spacing: 0.07em;
}

/* =========================================================
ABOUT
========================================================= */

.about-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
gap: 110px;
align-items: start;
}

.about-grid h2 {
max-width: 650px;
}

.section-text {
max-width: 560px;
padding-top: 12px;
}

.section-text p {
margin-bottom: 24px;
color: #55534f;
font-size: 1.05rem;
line-height: 1.8;
}

.text-link {
display: inline-block;
margin-top: 12px;
border-bottom: 1px solid #171717;
padding-bottom: 4px;
font-size: 0.8rem;
font-weight: 700;
}

/* =========================================================
EXPERIMENT DESIGN
========================================================= */

.experiment-section {
background: #eae9e4;
}

.experiment-section .section-heading {
margin-bottom: 90px;
}

.experiment-block {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 80px;
align-items: center;
margin-bottom: 110px;
}

.experiment-block:last-child {
margin-bottom: 0;
}

.experiment-block-large {
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.experiment-block-wide {
grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.experiment-text {
max-width: 590px;
}

.experiment-number {
display: inline-block;
margin-bottom: 20px;
color: #77756f;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.13em;
}

.experiment-text h3 {
margin-bottom: 22px;
font-size: clamp(2rem, 3vw, 3.1rem);
font-weight: 500;
letter-spacing: -0.045em;
line-height: 1;
}

.experiment-text p {
margin-bottom: 20px;
color: #5f5d58;
font-size: 1rem;
line-height: 1.8;
}

.experiment-image {
margin: 0;
}

.experiment-image > img,
.image-pair img {
width: 100%;
object-fit: cover;
background: #d9d8d3;
}

.experiment-image > img {
max-height: 560px;
}

.experiment-image figcaption {
margin-top: 13px;
color: #77756f;
font-size: 0.72rem;
line-height: 1.5;
}

.detail-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0;
margin-top: 38px;
border-top: 1px solid rgba(23, 23, 23, 0.15);
}

.detail {
padding: 22px 20px 22px 0;
border-bottom: 1px solid rgba(23, 23, 23, 0.15);
}

.detail:nth-child(even) {
padding-left: 20px;
border-left: 1px solid rgba(23, 23, 23, 0.15);
}

.detail strong {
display: block;
margin-bottom: 5px;
font-size: 1.4rem;
font-weight: 500;
letter-spacing: -0.03em;
}

.detail span {
display: block;
color: #77756f;
font-size: 0.72rem;
line-height: 1.4;
}

.image-pair {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
.image-pair img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
  }

.experiment-robots {
align-items: stretch;
}

.robot-specs {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
}

.robot-card {
display: flex;
flex-direction: column;
background: #deddd8;
}

.robot-card img {
aspect-ratio: 1 / 1;
object-fit: cover;
}

.robot-card strong {
padding: 18px 18px 3px;
font-size: 1.15rem;
font-weight: 600;
}

.robot-card span {
padding: 0 18px 20px;
color: #77756f;
font-size: 0.72rem;
line-height: 1.4;
}



/* Trajectory section: text on top, image underneath */
.trajectory-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.trajectory-block .experiment-content {
  width: 100%;
}

.trajectory-block .trajectory-image {
  width: 100%;
  margin-top: 28px;
  overflow: visible;
}

.trajectory-block .trajectory-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.survey-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
}

.survey-block .section-number {
  margin-top: 4px;
}

.survey-block .experiment-content {
  max-width: 800px;
}

@media (max-width: 768px) {
  .survey-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================================================
SCENARIOS
========================================================= */

.scenarios-section {
background: #171717;
color: #ffffff;
}

.scenarios-section .section-label {
color: #85837d;
}

.scenarios-section .section-heading > p {
color: #9c9a94;
}

.scenarios-section h2 {
color: #ffffff;
}

.scenario-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.scenario {
display: grid;
grid-template-columns: 58px 1fr;
gap: 25px;
min-height: 270px;
padding: 42px 42px 42px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.scenario:nth-child(even) {
padding-left: 42px;
border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.scenario-number {
color: #77756f;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.1em;
}

.scenario h3 {
margin-bottom: 15px;
font-size: 1.65rem;
font-weight: 500;
letter-spacing: -0.03em;
}

.scenario p {
max-width: 440px;
margin-bottom: 0;
color: #999791;
line-height: 1.75;
}

.scenario-featured {
background: #222222;
}

.scenario-featured h3 {
color: #ffffff;
}

/* =========================================================
DATASET CONTENTS
========================================================= */

.content-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
border-top: 1px solid #d5d3cd;
border-left: 1px solid #d5d3cd;
}

.content-card {
min-height: 100px;
padding: 32px;
border-right: 1px solid #d5d3cd;
border-bottom: 1px solid #d5d3cd;
transition:
background 0.2s ease,
transform 0.2s ease;
}

.content-card:hover {
background: #eae9e4;
}

.content-icon {
display: block;
margin-bottom: 55px;
color: #8a8881;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.1em;
}

.content-card h3 {
margin-bottom: 10px;
font-size: 1.3rem;
font-weight: 500;
letter-spacing: -0.025em;
}

.content-card p {
margin-bottom: 0;
color: #77756f;
font-size: 0.85rem;
line-height: 1.65;
}
/* =========================================================
   DATASET CONTENTS — REDUCED SPACING
   ========================================================= */

   #contents {
    padding-bottom: 5px;
  }
  
  #contents .section-heading {
    margin-bottom: 50px;
  }
  
  /* Bring Get Started closer to the modalities */
  #how-to-use {
    padding-top: 55px;
  }
/* =========================================================
ROBOT INTENT
========================================================= */

.intent-section {
padding: 130px 0;
background: #deddd8;
}

.intent-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
gap: 100px;
}

.intent-grid h2 {
max-width: 700px;
}

.intent-grid > div:last-child {
padding-top: 15px;
}

.intent-grid p {
margin-bottom: 24px;
color: #5f5d58;
font-size: 1.05rem;
line-height: 1.8;
}

/* =========================================================
GET STARTED
========================================================= */

.steps {
margin-top: 45px;
border-top: 1px solid #d3d1cb;
}

.step {
display: grid;
grid-template-columns: 90px 1fr;
gap: 30px;
padding: 34px 0;
border-bottom: 1px solid #d3d1cb;
}

.step > span {
color: #8a8881;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
}

.step h3 {
margin-bottom: 8px;
font-size: 1.45rem;
font-weight: 500;
letter-spacing: -0.025em;
}

.step p {
max-width: 650px;
margin-bottom: 0;
color: #77756f;
}

/* =========================================================
CITATION
========================================================= */

.citation-section {
background: #eae9e4;
}

.citation-wrap {
max-width: 900px;
margin-top: 55px;
}

.bibtex {
overflow-x: auto;
margin: 0 0 20px;
padding: 28px;
background: #171717;
color: #e4e2dc;
font-family:
"SFMono-Regular",
Consolas,
"Liberation Mono",
monospace;
font-size: 0.78rem;
line-height: 1.7;
}

.citation-wrap .btn-primary {
border: 0;
cursor: pointer;
}

.copy-status {
min-height: 22px;
margin: 12px 0 0;
color: #77756f;
font-size: 0.75rem;
}

/* =========================================================
PROJECT LINKS
========================================================= */

.links-section {
padding: 90px 0 120px;
background: #171717;
color: #ffffff;
}

.links-section .container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 50px;
}

.links-section .section-label {
color: #85837d;
}

.links-section h2 {
font-size: clamp(2rem, 4vw, 3.5rem);
}

.link-buttons {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 10px;
}


/* =========================================================
FOOTER
========================================================= */

.site-footer {
padding: 28px 0;
background: #111111;
color: #77756f;
font-size: 0.7rem;
}

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

/* =========================================================
RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

.container {
width: min(100% - 36px, 900px);
}

.nav-list {
gap: 16px;
}

.brand-text {
display: none;
}

.section {
padding: 90px 0;
}

.section-heading {
grid-template-columns: 1fr;
gap: 25px;
margin-bottom: 55px;
}

.section-heading > p {
margin-left: 0;
}

.about-grid,
.intent-grid {
grid-template-columns: 1fr;
gap: 55px;
}

.experiment-block,
.experiment-block-large,
.experiment-block-wide {
grid-template-columns: 1fr;
gap: 45px;
margin-bottom: 85px;
}

.experiment-block:nth-of-type(even) .experiment-text {
order: 1;
}

.experiment-block:nth-of-type(even) .experiment-image {
order: 2;
}

.stats-grid {
grid-template-columns: repeat(2, 1fr);
}

.stat:nth-child(3) {
border-left: 0;
}

.stat {
padding: 25px;
}

.stat:first-child {
padding-left: 25px;
}

.content-grid {
grid-template-columns: repeat(2, 1fr);
}

.links-section .container {
align-items: flex-start;
flex-direction: column;
}

.link-buttons {
justify-content: flex-start;
}

}

/* =========================================================
RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 680px) {

.container {
width: min(100% - 28px, 560px);
}

.section {
padding: 72px 0;
}

.site-header {
position: absolute;
}

.nav-wrap {
min-height: 70px;
}

.nav-list {
display: none;
}

.brand-mark {
font-size: 0.9rem;
}

.hero {
min-height: 700px;
}

.hero-content {
padding-top: 70px;
}

.hero h1 {
font-size: clamp(3.4rem, 17vw, 5rem);
}

.hero-description {
font-size: 1rem;
}

.hero-note {
max-width: 320px;
line-height: 1.7;
}

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

.stat {
min-height: 105px;
gap: 12px;
padding: 20px 12px;
}

.stat:first-child {
padding-left: 12px;
}

.stat strong {
font-size: 2.2rem;
}

.stat span:not(.unit) {
font-size: 0.62rem;
}

h2 {
font-size: clamp(2.4rem, 12vw, 3.4rem);
}

.about-grid {
gap: 35px;
}

.experiment-block {
gap: 30px;
margin-bottom: 65px;
}

.experiment-text h3 {
font-size: 2rem;
}

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

.detail,
.detail:nth-child(even) {
padding: 18px 0;
border-left: 0;
}

.robot-specs {
grid-template-columns: 1fr;
}

.image-pair {
grid-template-columns: 1fr;
}

.trajectory-image img {
aspect-ratio: auto;
padding: 5px;
}

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

.scenario,
.scenario:nth-child(even) {
min-height: auto;
padding: 32px 0;
border-left: 0;
}

.scenario {
grid-template-columns: 40px 1fr;
gap: 16px;
}

.scenario h3 {
font-size: 1.4rem;
}

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

.content-card {
min-height: 10px;
}

.content-icon {
margin-bottom: 35px;
}

.intent-section {
padding: 80px 0;
}

.step {
grid-template-columns: 45px 1fr;
gap: 15px;
}

.bibtex {
padding: 20px;
font-size: 0.7rem;
}

.links-section {
padding: 70px  0 100px;
}

.link-buttons {
width: 100%;
flex-direction: column;
}

.link-buttons .btn {
width: 100%;
}

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

}
/* =========================================================
   DATASET CONTENTS — MOBILE SPACING
   ========================================================= */

   @media (max-width: 680px) {

    #contents {
      padding-bottom: 35px;
    }
  
    #how-to-use {
      padding-top: 40px;
    }
  
  }
/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

html {
scroll-behavior: auto;
}

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

}
/* =========================================================
   AFFILIATION LOGOS
========================================================= */

.affiliations-section {
  width: 100%;
  padding: 40px 15px 60px;
  text-align: center;
}

.affiliations-section .affiliation-logos {
  width: min(800px, 100%);
  margin: 0 auto;

  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 120px !important;

  gap: 40px;
  align-items: center;
  justify-items: center;
}

.affiliations-section .affiliation-logos img {
  display: block !important;

  width: 100% !important;
  height: 120px !important;

  max-width: 340px !important;
  max-height: 120px !important;

  object-fit: contain !important;
  margin: 0 !important;
}

.affiliations-section .midas-thanks {
  max-width: 750px;
  margin: 28px auto 0;
}


/* MOBILE */

@media screen and (max-width: 680px) {

  .affiliations-section {
    padding: 25px 10px 40px;
  }

  .affiliations-section .affiliation-logos {
    width: 100%;
    max-width: 300px;

    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 55px !important;

    gap: 8px;
  }

  .affiliations-section .affiliation-logos img {
    width: 100% !important;
    height: 55px !important;

    max-width: 150px !important;
    max-height: 55px !important;
  }

  .affiliations-section .midas-thanks {
    max-width: 320px;
    margin: 18px auto 0;
    font-size: 0.72rem;
    line-height: 1.6;
  }
}