/* =========================================================
   STUDENT ORBIT
   LIGHT GREEN • YELLOW • OFF-WHITE
========================================================= */

:root {

  --cream: #faf8ed;
  --paper: #fffdf5;

  --green: #dbeab8;
  --green-light: #edf5d9;
  --green-deep: #9dbd72;

  --yellow: #f6d653;
  --yellow-light: #ffe997;

  --ink: #191b16;
  --soft-ink: #45483d;

  --line: rgba(25, 27, 22, 0.18);

  --serif:
    "Fraunces",
    Georgia,
    serif;

  --sans:
    "DM Sans",
    Arial,
    sans-serif;

  --hand:
    "Caveat",
    cursive;

}


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

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(246,214,83,0.18),
      transparent 24%
    ),
    var(--cream);

  color: var(--ink);

  font-family: var(--sans);

}


button,
input,
textarea,
select {

  font: inherit;

}


button {
  cursor: pointer;
}


a {
  color: inherit;
}


/* =========================================================
   GENERAL
========================================================= */

.eyebrow {

  margin-bottom: 18px;

  font-size: 0.7rem;

  font-weight: 800;

  letter-spacing: 0.16em;

}


.button {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 15px 22px;

  min-height: 52px;

  border: 2px solid var(--ink);

  text-decoration: none;

  font-weight: 800;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

}


.button:hover {

  transform:
    translate(-3px, -3px);

  box-shadow:
    6px 6px 0 var(--ink);

}


.dark-button {

  background: var(--ink);

  color: var(--cream);

}


.yellow-button {

  background: var(--yellow);

}


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

.student-hero {

  position: relative;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 70px;

  align-items: center;

  min-height: 800px;

  max-width: 1400px;

  margin: 0 auto;

  padding:
    110px
    clamp(25px, 7vw, 100px);

}


.student-hero::after {

  content: "";

  position: absolute;

  bottom: 0;

  left: 6%;
  right: 6%;

  height: 2px;

  background: var(--ink);

}


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


.student-hero h1 {

  margin:
    0 0
    20px;

  font-family: var(--serif);

  font-size:
    clamp(4rem, 8vw, 8.6rem);

  line-height: 0.84;

  letter-spacing: -0.07em;

}


.student-hero h1 span {

  display: inline-block;

  padding:
    3px
    18px
    10px;

  background: var(--yellow);

  transform: rotate(-1deg);

}


.hero-big {

  margin:
    35px 0
    14px;

  font-family: var(--hand);

  font-size:
    clamp(2rem, 4vw, 3.2rem);

}


.hero-copy-small {

  max-width: 560px;

  font-size: 1.08rem;

  line-height: 1.7;

  color: var(--soft-ink);

}


.hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 32px;

}


/* =========================================================
   ORBIT ART
========================================================= */

.orbit-art {

  position: relative;

  width: min(560px, 100%);
  aspect-ratio: 1;

  margin: auto;

}


.orbit {

  position: absolute;

  top: 50%;
  left: 50%;

  border: 1.5px solid var(--ink);

  border-radius: 50%;

  transform:
    translate(-50%, -50%);

  opacity: 0.4;

}


.orbit-one {

  width: 94%;
  height: 43%;

  transform:
    translate(-50%, -50%)
    rotate(18deg);

}


.orbit-two {

  width: 90%;
  height: 48%;

  transform:
    translate(-50%, -50%)
    rotate(77deg);

}


.orbit-three {

  width: 84%;
  height: 44%;

  transform:
    translate(-50%, -50%)
    rotate(135deg);

}


.student-centre {

  position: absolute;

  top: 50%;
  left: 50%;

  width: 220px;
  height: 220px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  background: var(--green);

  border: 2px solid var(--ink);

  border-radius: 50%;

  transform:
    translate(-50%, -50%);

  text-align: center;

  box-shadow:
    10px 10px 0 var(--ink);

}


.student-centre small {

  font-size: 0.55rem;

  font-weight: 800;

  letter-spacing: 0.13em;

}


.student-centre strong {

  margin: 8px 0;

  font-family: var(--serif);

  font-size: 2rem;

  line-height: 0.95;

}


.student-centre span {

  padding:
    4px 9px;

  background: var(--yellow);

  font-family: var(--hand);

  font-size: 1rem;

}


.orbit-thought {

  position: absolute;

  padding:
    8px 11px;

  background: var(--paper);

  border: 1.5px solid var(--ink);

  font-family: var(--hand);

  font-size: 1.1rem;

}


.thought-one {
  top: 7%;
  left: 20%;

  transform: rotate(-4deg);
}


.thought-two {
  right: 0;
  top: 38%;

  transform: rotate(4deg);
}


.thought-three {
  left: 0;
  bottom: 27%;

  transform: rotate(-3deg);
}


.thought-four {
  right: 12%;
  bottom: 4%;

  transform: rotate(3deg);
}


.orbit-note {

  position: absolute;

  right: 0;
  top: 7%;

  width: 145px;

  padding: 15px;

  background: var(--yellow);

  border: 2px solid var(--ink);

  transform: rotate(5deg);

}


.orbit-note span {

  display: block;

  font-size: 0.62rem;

  font-weight: 800;

  text-transform: uppercase;

}


.orbit-note strong {

  display: block;

  margin-top: 7px;

  font-family: var(--serif);

  font-size: 1.1rem;

  line-height: 1.1;

}


.floating-doodle {

  position: absolute;

  font-family: var(--hand);

  font-size: 3rem;

}


.doodle-one {
  top: 18%;
  left: 3%;
}


.doodle-two {
  bottom: 12%;
  right: 3%;
}


.doodle-three {
  top: 14%;
  right: 17%;

  transform: rotate(-15deg);
}


/* =========================================================
   REALITY STRIP
========================================================= */

.reality-strip {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  max-width: 1200px;

  margin:
    90px auto
    150px;

  border: 2px solid var(--ink);

}


.reality-strip article {

  min-height: 180px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 27px;

  border-right: 2px solid var(--ink);

}


.reality-strip article:last-child {
  border-right: 0;
}


.reality-strip .yellow-card {
  background: var(--yellow);
}


.reality-strip span {

  font-size: 0.7rem;

  font-weight: 800;

}


.reality-strip p {

  margin:
    30px 0
    5px;

  font-family: var(--serif);

  font-size: 1.6rem;

}


.reality-strip strong {

  font-size: 1rem;

}


/* =========================================================
   STORIES HEADING
========================================================= */

.stories-heading {

  display: grid;

  grid-template-columns:
    1fr 0.7fr;

  gap: 70px;

  max-width: 1220px;

  margin: 0 auto;

  padding:
    20px
    clamp(25px, 5vw, 70px)
    70px;

}


.stories-heading h2 {

  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 6vw, 6rem);

  line-height: 0.95;

  letter-spacing: -0.055em;

}


.stories-intro-copy {

  align-self: end;

}


.stories-intro-copy p {

  margin: 7px 0;

  font-size: 1.05rem;

}


.stories-intro-copy span {

  display: inline-block;

  margin-top: 20px;

  font-family: var(--hand);

  font-size: 1.4rem;

  transform: rotate(-2deg);

}


/* =========================================================
   STORY GRID
========================================================= */

.student-stories {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 25px;

  max-width: 1220px;

  margin: 0 auto;

  padding:
    0
    clamp(25px, 5vw, 70px)
    120px;

}


.story-card {

  display: flex;

  flex-direction: column;

  min-height: 520px;

  padding: 34px;

  background: var(--paper);

  border: 2px solid var(--ink);

  box-shadow:
    8px 8px 0 rgba(25,27,22,0.14);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

}


.story-card:hover {

  transform:
    translateY(-5px);

  box-shadow:
    10px 10px 0 var(--ink);

}


.story-green {
  background: var(--green-light);
}


.story-yellow {
  background: var(--yellow);
}


.story-dark {

  background: var(--ink);

  color: var(--cream);

}


.story-top {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 35px;

}


.story-tag {

  padding:
    6px 10px;

  border:
    1.5px solid currentColor;

  font-size: 0.6rem;

  font-weight: 800;

  letter-spacing: 0.1em;

}


.story-number {

  font-family: var(--hand);

  font-size: 1.2rem;

}


.story-kicker {

  margin-bottom: 10px;

  font-size: 0.76rem;

  font-weight: 800;

  text-transform: uppercase;

}


.story-card h3 {

  margin:
    0 0
    22px;

  max-width: 530px;

  font-family: var(--serif);

  font-size:
    clamp(2.3rem, 4vw, 3.7rem);

  line-height: 0.98;

  letter-spacing: -0.045em;

}


.story-preview {

  line-height: 1.65;

}


.story-full {

  display: none;

  line-height: 1.7;

}


.story-card.open
.story-full {

  display: block;

  animation:
    openStory
    280ms ease;

}


.story-card.open
.story-preview {

  display: none;

}


@keyframes openStory {

  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


.thought-card {

  margin-top: 25px;

  padding: 18px;

  background: var(--green);

  border:
    1.5px solid var(--ink);

}


.thought-card small {

  display: block;

  margin-bottom: 8px;

  font-size: 0.57rem;

  font-weight: 800;

  letter-spacing: 0.12em;

}


.thought-card strong {

  font-family: var(--serif);

  font-size: 1.25rem;

  line-height: 1.2;

}


.yellow-thought {
  background: var(--yellow);
}


.white-thought {
  background: var(--paper);
}


.dark-thought {

  background: var(--yellow);

  color: var(--ink);

}


.story-toggle {

  width: fit-content;

  margin-top: auto;

  padding:
    25px 0
    6px;

  background: transparent;

  border: 0;

  border-bottom:
    2px solid currentColor;

  color: inherit;

  font-weight: 800;

}


/* =========================================================
   BIG PAUSE
========================================================= */

.big-pause {

  max-width: 1000px;

  margin:
    40px auto
    150px;

  padding:
    80px
    clamp(25px, 7vw, 100px);

  text-align: center;

}


.big-pause > span {

  font-size: 3rem;

}


.big-pause h2 {

  margin:
    25px 0
    20px;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 6vw, 5.5rem);

  line-height: 1;

  letter-spacing: -0.055em;

}


.big-pause p {

  font-family: var(--hand);

  font-size: 1.8rem;

}


/* =========================================================
   THOUGHT WALL
========================================================= */

.thought-wall {

  padding:
    110px
    clamp(25px, 7vw, 100px)
    130px;

  background: var(--green-light);

  border-top:
    2px solid var(--ink);

  border-bottom:
    2px solid var(--ink);

}


.wall-heading {

  max-width: 1150px;

  margin:
    0 auto
    60px;

}


.wall-heading h2 {

  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(4rem, 8vw, 7rem);

  line-height: 0.9;

}


.thought-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 17px;

  max-width: 1150px;

  margin: 0 auto;

}


.borrow-thought {

  min-height: 250px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 25px;

  background: var(--paper);

  border:
    2px solid var(--ink);

  color: var(--ink);

  text-align: left;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

}


.borrow-thought:hover {

  transform:
    translate(-4px, -4px);

  box-shadow:
    7px 7px 0 var(--ink);

}


.borrow-thought.yellow {
  background: var(--yellow);
}


.borrow-thought span {

  font-size: 0.65rem;

  font-weight: 800;

}


.borrow-thought strong {

  font-family: var(--serif);

  font-size: 1.6rem;

  line-height: 1.1;

}


.borrow-thought small {

  font-family: var(--hand);

  font-size: 1rem;

}


.borrow-thought.selected {

  background: var(--ink);

  color: var(--cream);

}


.chosen-thought {

  max-width: 1150px;

  margin:
    30px auto
    0;

  padding:
    25px 30px;

  display: flex;

  align-items: center;

  gap: 25px;

  background: var(--yellow);

  border: 2px solid var(--ink);

}


.chosen-thought small {

  min-width: 130px;

  font-size: 0.6rem;

  font-weight: 800;

  letter-spacing: 0.1em;

}


.chosen-thought strong {

  font-family: var(--serif);

  font-size: 1.4rem;

}


/* =========================================================
   SHARE ORBIT
========================================================= */

.share-orbit {

  display: grid;

  grid-template-columns:
    0.65fr 1.35fr;

  gap: 70px;

  align-items: center;

  padding:
    130px
    clamp(25px, 7vw, 100px);

  background: var(--yellow);

}


.share-copy {

  max-width: 450px;

}


.share-copy h2 {

  margin:
    0 0
    25px;

  font-family: var(--serif);

  font-size:
    clamp(3.2rem, 6vw, 6rem);

  line-height: 0.95;

  letter-spacing: -0.055em;

}


.share-copy > p {

  font-size: 1.05rem;

  line-height: 1.6;

}


.hand-note {

  margin-top: 30px;

  font-family: var(--hand);

  font-size: 1.4rem !important;

  transform: rotate(-2deg);

}


/* =========================================================
   STUDENT POSTCARD
========================================================= */

.student-postcard {

  position: relative;

  min-height: 590px;

  padding: 38px;

  background: var(--paper);

  border:
    2px solid var(--ink);

  box-shadow:
    14px 14px 0 var(--ink);

  transform: rotate(0.7deg);

}


.postcard-top {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 40px;

}


.postcard-top > span {

  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 0.14em;

}


.stamp {

  width: 85px;
  height: 95px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  background: var(--green);

  border:
    2px dashed var(--ink);

  transform: rotate(4deg);

}


.stamp strong {

  margin: 5px 0;

  font-size: 1.5rem;

}


.stamp small {

  font-size: 0.48rem;

  font-weight: 800;

}


.story-field span,
.short-field span,
.postcard-row label > span {

  display: block;

  margin-bottom: 8px;

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.07em;

  text-transform: uppercase;

}


.story-field textarea {

  width: 100%;

  min-height: 180px;

  resize: vertical;

  padding: 13px;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(25,27,22,0.16) 32px
    );

  border: 0;

  outline: 0;

  font-family: var(--hand);

  font-size: 1.3rem;

  line-height: 32px;

}


.short-field {

  display: block;

  margin-top: 25px;

}


.short-field input,
.postcard-row input,
.postcard-row select {

  width: 100%;

  padding:
    11px 3px;

  background: transparent;

  border: 0;

  border-bottom:
    1.5px solid var(--ink);

  outline: none;

}


.postcard-row {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 25px;

  margin-top: 30px;

}


.postcard-row small {

  text-transform: none;

}


.permission {

  display: grid;

  grid-template-columns:
    20px 1fr;

  gap: 10px;

  margin-top: 30px;

  font-size: 0.75rem;

  line-height: 1.5;

}


.permission input {

  accent-color: var(--ink);

}


.post-story-button {

  width: 100%;

  display: flex;

  justify-content: space-between;

  margin-top: 25px;

  padding: 16px 18px;

  background: var(--ink);

  border:
    2px solid var(--ink);

  color: var(--cream);

  font-weight: 800;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

}


.post-story-button:hover {

  transform:
    translate(-3px, -3px);

  box-shadow:
    6px 6px 0 var(--green-deep);

}


/* =========================================================
   SENT STATE
========================================================= */

.story-sent {

  position: absolute;

  inset: 0;

  display: none;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 50px;

  background: var(--green-light);

  text-align: center;

}


.story-sent.visible {

  display: flex;

  animation:
    appearSent
    450ms ease;

}


@keyframes appearSent {

  from {

    opacity: 0;

    transform:
      scale(0.88)
      rotate(-4deg);

  }

  to {

    opacity: 1;

    transform:
      scale(1)
      rotate(0);

  }

}


.sent-icon {

  font-size: 3rem;

}


.story-sent > p {

  margin-top: 20px;

  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 0.15em;

}


.story-sent h3 {

  margin:
    10px 0
    25px;

  max-width: 600px;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 6vw, 5rem);

  line-height: 0.95;

}


.sent-message {

  max-width: 480px;

  font-family: var(--hand);

  font-size: 1.45rem;

}


.story-sent button {

  margin-top: 35px;

  padding:
    12px 18px;

  background: var(--yellow);

  border:
    2px solid var(--ink);

  font-weight: 800;

}


/* =========================================================
   CLOSING
========================================================= */

.orbit-closing {

  max-width: 1100px;

  margin: auto;

  padding:
    150px
    clamp(25px, 6vw, 80px);

  text-align: center;

}


.closing-doodle {

  display: block;

  margin-bottom: 25px;

  font-size: 3rem;

}


.orbit-closing h2 {

  margin:
    0 auto
    25px;

  max-width: 950px;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 6vw, 6rem);

  line-height: 0.95;

  letter-spacing: -0.055em;

}


.orbit-closing > p {

  font-family: var(--hand);

  font-size: 1.8rem;

}


.orbit-closing a {

  display: inline-block;

  margin-top: 35px;

  font-size: 0.8rem;

  font-weight: 800;

}


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

.student-footer {

  display: grid;

  grid-template-columns:
    1fr auto auto;

  gap: 30px;

  align-items: center;

  padding:
    35px
    clamp(25px, 7vw, 100px);

  background: var(--ink);

  color: var(--cream);

  font-size: 0.78rem;

}


.student-footer div {

  display: flex;

  flex-direction: column;

}


.student-footer a {

  color: var(--yellow);

  font-weight: 800;

}


/* =========================================================
   SAFE SCROLL REVEAL

   IMPORTANT:
   Everything is visible normally.
   JS adds .reveal-pending only when animations
   are actually ready to work.
========================================================= */

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


/* JS temporarily adds this class
   to elements waiting to enter the screen */

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
}


/* When element enters screen */

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


/* Accessibility */

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

  .reveal,
  .reveal.reveal-pending,
  .reveal.visible {

    opacity: 1 !important;
    transform: none !important;
    transition: none !important;

  }

}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .student-hero {

    grid-template-columns: 1fr;

    min-height: auto;

  }


  .orbit-art {

    max-width: 520px;

  }


  .stories-heading {

    grid-template-columns: 1fr;

  }


  .student-stories {

    grid-template-columns: 1fr;

  }


  .thought-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .share-orbit {

    grid-template-columns: 1fr;

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .student-hero {

    padding:
      80px
      22px
      70px;

  }


  .student-hero h1 {

    font-size:
      clamp(3.8rem, 18vw, 5.6rem);

  }


  .hero-actions {

    flex-direction: column;

  }


  .button {

    width: 100%;

  }


  .orbit-art {

    margin-top: 30px;

  }


  .student-centre {

    width: 170px;
    height: 170px;

  }


  .student-centre strong {

    font-size: 1.55rem;

  }


  .orbit-thought {

    font-size: 0.85rem;

  }


  .orbit-note {

    width: 115px;

  }


  .reality-strip {

    grid-template-columns: 1fr;

    margin:
      60px
      22px
      100px;

  }


  .reality-strip article {

    border-right: 0;

    border-bottom:
      2px solid var(--ink);

  }


  .reality-strip article:last-child {

    border-bottom: 0;

  }


  .stories-heading {

    padding:
      20px
      22px
      50px;

  }


  .student-stories {

    padding:
      0
      22px
      90px;

  }


  .story-card {

    min-height: 480px;

    padding: 26px;

  }


  .big-pause {

    margin-bottom: 80px;

  }


  .thought-wall {

    padding:
      80px
      22px
      90px;

  }


  .thought-grid {

    grid-template-columns: 1fr;

  }


  .chosen-thought {

    flex-direction: column;

    align-items: flex-start;

  }


  .share-orbit {

    padding:
      90px
      20px;

  }


  .student-postcard {

    padding: 28px 22px;

    min-height: 650px;

    transform: none;

  }


  .postcard-row {

    grid-template-columns: 1fr;

  }


  .orbit-closing {

    padding:
      110px
      22px;

  }


  .student-footer {

    grid-template-columns: 1fr;

    text-align: center;

  }

}
