/* =========================================================
   OOPS OBSERVATORY
   Jigyasa Verse
   Full page stylesheet
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
  --oops-ink: #163534;
  --oops-deep: #0f2e30;
  --oops-deeper: #092123;

  --oops-cream: #f5ead8;
  --oops-paper: #fff8ed;
  --oops-soft: #eadcc8;

  --oops-orange: #e46f3f;
  --oops-orange-soft: #f0a14d;
  --oops-yellow: #f0c76c;

  --oops-line: rgba(22, 53, 52, 0.16);
  --oops-line-light: rgba(255, 248, 237, 0.18);

  --oops-shadow:
    0 20px 50px rgba(13, 38, 38, 0.12);

  --oops-radius: 28px;
}


/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--oops-cream);
  color: var(--oops-ink);
  font-family: "DM Sans", sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: "DM Sans", sans-serif;
}

img,
svg {
  max-width: 100%;
}

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

textarea,
input,
select {
  width: 100%;
  color: var(--oops-ink);
}

textarea {
  resize: vertical;
}

::selection {
  background: var(--oops-orange);
  color: white;
}


/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oops-orange);
}

h1,
h2,
h3,
blockquote {
  font-family: "Fraunces", serif;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}


/* =========================================================
   SHARED BUTTONS
========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.95rem 1.25rem;

  border: 0;
  border-radius: 999px;

  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

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

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

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

.oops-primary {
  background: var(--oops-orange);
  color: white;
  box-shadow: 0 12px 24px rgba(228, 111, 63, 0.2);
}

.oops-primary:hover {
  box-shadow: 0 15px 32px rgba(228, 111, 63, 0.28);
}

.oops-dark {
  background: var(--oops-deep);
  color: var(--oops-paper);
}

.oops-light {
  background: var(--oops-paper);
  color: var(--oops-deep);
}


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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;

  padding: 0.8rem 1rem;

  background: white;
  color: black;

  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}


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

.oops-hero {
  position: relative;

  min-height: 88vh;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;

  padding:
    clamp(7rem, 10vw, 10rem)
    clamp(1.4rem, 6vw, 7rem)
    clamp(4.5rem, 8vw, 7rem);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(241, 161, 77, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(228, 111, 63, 0.08),
      transparent 35%
    ),
    var(--oops-paper);
}

.oops-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -160px;
  height: 270px;

  background: var(--oops-cream);

  transform: rotate(-3deg);
}

.oops-hero-copy,
.oops-hero-art {
  position: relative;
  z-index: 2;
}

.oops-hero-copy {
  max-width: 760px;
}

.oops-hero h1 {
  margin: 0;

  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.oops-hero h1 em {
  display: block;
  color: var(--oops-orange);
  font-style: italic;
}

.oops-lead {
  max-width: 650px;
  margin: 1.8rem 0 0;

  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.65;
  color: rgba(22, 53, 52, 0.78);
}


/* =========================================================
   HERO TRUTH STRIP
========================================================= */

.oops-truth-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;

  margin-top: 2rem;
}

.oops-truth-strip span {
  padding: 0.55rem 0.8rem;

  border: 1px solid var(--oops-line);
  border-radius: 999px;

  background: rgba(255,255,255,0.55);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.oops-truth-strip span:nth-of-type(2),
.oops-truth-strip span:nth-of-type(5) {
  transform: rotate(-2deg);
}

.oops-truth-strip span:nth-of-type(3) {
  transform: rotate(2deg);
}

.oops-truth-strip i {
  font-style: normal;
  color: var(--oops-orange);
}


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

.oops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;

  margin-top: 2rem;
}

.oops-text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;

  color: var(--oops-ink);
  font-weight: 700;
  text-decoration: none;
}

.oops-text-link:hover {
  color: var(--oops-orange);
}

.oops-permission {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;

  max-width: 620px;
  margin-top: 2rem;

  font-size: 0.92rem;
  line-height: 1.6;

  color: rgba(22, 53, 52, 0.65);
}

.oops-permission span {
  color: var(--oops-orange);
}


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

.oops-hero-art {
  position: relative;

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

  margin-inline: auto;
}

.oops-sun {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #efb15a 0%,
      #e77644 65%,
      transparent 67%
    );

  transform: translate(-50%, -50%);
  filter: blur(0.2px);
}

.oops-orbit {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;
}

.ring,
.orbit-line {
  fill: none;
  stroke: rgba(22, 53, 52, 0.28);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.zig {
  fill: none;
  stroke: var(--oops-deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.planet {
  fill: var(--oops-orange);
}

.core {
  fill: var(--oops-deep);
}

.oops-note {
  position: absolute;
  z-index: 3;

  padding: 0.55rem 0.8rem;

  border: 1px solid rgba(22, 53, 52, 0.15);
  border-radius: 10px;

  background: #fff7e8;

  font-size: 0.78rem;
  font-weight: 600;

  box-shadow: 0 9px 22px rgba(22, 53, 52, 0.09);
}

.note-a {
  top: 15%;
  left: 0;
  transform: rotate(-5deg);
}

.note-b {
  right: 0;
  top: 47%;
  transform: rotate(4deg);
}

.note-c {
  bottom: 15%;
  left: 18%;
  transform: rotate(2deg);
}


/* =========================================================
   MANIFESTO
========================================================= */

.oops-manifesto {
  position: relative;
  z-index: 2;

  padding:
    clamp(5rem, 9vw, 8rem)
    clamp(1.4rem, 6vw, 7rem);

  background: var(--oops-cream);
}

.oops-manifesto blockquote {
  max-width: 980px;
  margin: 1rem 0 3rem;

  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.oops-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);

  max-width: 1100px;
}

.oops-manifesto-grid p {
  margin: 0;

  font-size: 1.08rem;
  line-height: 1.8;

  color: rgba(22, 53, 52, 0.78);
}


/* =========================================================
   MANIFESTO PUNCH
========================================================= */

.oops-manifesto-punch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;

  max-width: 800px;
  margin-top: 4rem;
  padding: 2rem;

  border: 1px solid var(--oops-line);
  border-radius: var(--oops-radius);

  background: rgba(255,255,255,0.4);
}

.oops-manifesto-punch span {
  color: rgba(22, 53, 52, 0.58);
}

.oops-manifesto-punch strong {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}


/* =========================================================
   MISTAKE REALITY
========================================================= */

.mistake-reality {
  position: relative;
  overflow: hidden;

  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background:
    radial-gradient(
      circle at 86% 10%,
      rgba(255, 177, 74, 0.24),
      transparent 33%
    ),
    #f4ead8;
}

.mistake-reality::after {
  content: "oops oops oops oops";
  position: absolute;
  right: -4rem;
  bottom: -2rem;

  font-family: "Fraunces", serif;
  font-size: clamp(5rem, 11vw, 11rem);
  font-style: italic;
  white-space: nowrap;

  color: rgba(22, 53, 52, 0.035);

  transform: rotate(-6deg);
}

.mistake-reality-head {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.mistake-reality-head h2 {
  margin: 0.7rem 0 1.3rem;

  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.mistake-reality-head h2 em {
  display: block;
  color: var(--oops-orange);
}

.mistake-reality-head > p:last-child {
  max-width: 650px;

  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.75;

  color: rgba(22, 53, 52, 0.72);
}


/* =========================================================
   MISTAKE NUMBERS
========================================================= */

.mistake-counter {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1.2rem;

  max-width: 1080px;
  margin-top: 4rem;
}

.mistake-number {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 2rem;

  border: 2px solid rgba(22, 53, 52, 0.12);
  border-radius: 30px;

  background: rgba(255,255,255,0.4);

  transform: rotate(-1deg);

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

.mistake-number:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--oops-shadow);
}

.mistake-number:nth-child(2) {
  min-height: 360px;
  transform: rotate(1.3deg);
}

.mistake-number--big {
  min-height: 420px;

  background: var(--oops-deep);
  color: var(--oops-paper);

  transform: rotate(-0.8deg);
}

.mistake-number span {
  font-family: "Fraunces", serif;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.mistake-number p {
  max-width: 270px;
  margin: 2rem 0 0;

  font-size: 1rem;
  line-height: 1.55;
}


/* =========================================================
   MISTAKE MESSAGE
========================================================= */

.mistake-message {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;

  max-width: 900px;
  margin-top: 5rem;
  padding-top: 2.5rem;

  border-top: 1px solid var(--oops-line);
}

.mistake-message-icon {
  width: 66px;
  height: 66px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--oops-orange);
  color: white;

  font-size: 2rem;
}

.mistake-message h3 {
  margin: 0 0 1rem;

  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.mistake-message p {
  margin: 0.6rem 0;

  font-size: 1.06rem;
  line-height: 1.7;
}

.mistake-big-question strong {
  color: var(--oops-orange);
}

.mistake-side-note {
  position: relative;
  z-index: 2;

  display: flex;
  gap: 0.8rem;

  max-width: 700px;
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;

  border-left: 3px solid var(--oops-orange);

  font-size: 0.92rem;
  line-height: 1.65;

  color: rgba(22, 53, 52, 0.66);
}


/* =========================================================
   OBSERVATIONS
========================================================= */

.observations {
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background: var(--oops-paper);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;

  margin-bottom: 3rem;
}

.section-head h2 {
  max-width: 760px;
  margin: 0;

  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.progress-copy {
  margin: 0;
  white-space: nowrap;
  color: rgba(22, 53, 52, 0.6);
}

.progress-copy strong {
  color: var(--oops-orange);
}


/* =========================================================
   JS-GENERATED OBSERVATION CONTENT
========================================================= */

.observation-list {
  display: grid;
  gap: 1.1rem;
}

.observation-list > * {
  border: 1px solid var(--oops-line);
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 0 8px 25px rgba(17, 46, 48, 0.04);
}


/* =========================================================
   MIRROR ROOM
========================================================= */

.mirror-room {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);

  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background: #e7d7bf;
}

.mirror-copy h2 {
  margin: 0;

  font-size: clamp(2.7rem, 5.8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.mirror-copy > p:last-child {
  max-width: 500px;
  margin-top: 1.5rem;

  font-size: 1.08rem;
  line-height: 1.7;

  color: rgba(22, 53, 52, 0.7);
}

.mirror-grid {
  display: grid;
  gap: 1rem;
}

.mirror-grid > * {
  border: 1px solid rgba(22, 53, 52, 0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.38);
}


/* =========================================================
   REGRET ROOM
========================================================= */

.regret-room {
  position: relative;

  padding:
    clamp(5rem, 10vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(240, 161, 77, 0.14),
      transparent 30%
    ),
    var(--oops-deep);

  color: var(--oops-paper);
}

.regret-room::before {
  content: "THEN → NOW";
  position: absolute;
  right: -3rem;
  top: 4rem;

  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;

  color: rgba(255,255,255,0.025);

  transform: rotate(90deg);
}

.regret-room-inner {
  position: relative;
  z-index: 2;

  max-width: 1200px;
  margin: 0 auto;
}

.regret-intro {
  max-width: 850px;
}

.regret-intro h2 {
  margin: 0.7rem 0 0;

  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.regret-intro h2 em {
  display: block;
  color: var(--oops-orange-soft);
}


/* =========================================================
   REGRET STORY
========================================================= */

.regret-story {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;

  margin-top: 5rem;
}

.regret-old,
.regret-now {
  min-height: 360px;
  padding: clamp(1.7rem, 4vw, 2.5rem);

  border-radius: 32px;
}

.regret-old {
  border: 1px dashed rgba(255,255,255,0.26);

  background: rgba(255,255,255,0.025);

  transform: rotate(-1.2deg);
}

.regret-now {
  background: var(--oops-orange-soft);
  color: var(--oops-deep);

  transform: rotate(1deg);
}

.regret-tag {
  display: inline-flex;

  padding: 0.45rem 0.75rem;

  border: 1px solid currentColor;
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.regret-face {
  margin: 2rem 0;

  font-family: monospace;
  font-size: 5rem;
  font-weight: 700;
}

.regret-old p,
.regret-now p {
  margin: 0.7rem 0;
  line-height: 1.55;
}

.regret-now strong {
  display: block;

  margin-top: 2rem;

  font-family: "Fraunces", serif;
  font-size: 2.1rem;
}

.regret-arrow {
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--oops-orange-soft);
}


/* =========================================================
   REGRET TRUTH
========================================================= */

.regret-truth {
  max-width: 820px;
  margin: 5rem 0 0 auto;
}

.regret-truth > p {
  max-width: 650px;

  line-height: 1.75;
  color: rgba(255,248,237,0.67);
}

.regret-truth h3 {
  margin: 1rem 0;

  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}


/* =========================================================
   REGRET QUESTION
========================================================= */

.regret-question {
  max-width: 760px;
  margin-top: 5rem;
  padding-top: 2rem;

  border-top: 1px solid var(--oops-line-light);
}

.regret-question > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: var(--oops-orange-soft);
}

.regret-question > p {
  margin: 0.8rem 0 1.5rem;

  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.regret-field textarea {
  min-height: 150px;
  padding: 1.2rem;

  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;

  outline: none;

  background: rgba(255,255,255,0.07);
  color: var(--oops-paper);

  font-size: 1rem;
  line-height: 1.6;
}

.regret-field textarea::placeholder {
  color: rgba(255,255,255,0.38);
}

.regret-field textarea:focus {
  border-color: var(--oops-orange-soft);
}


/* =========================================================
   REPEAT ROOM
========================================================= */

.repeat-room {
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background: #f3e9da;
}

.repeat-room-heading {
  max-width: 820px;
}

.repeat-room-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.repeat-room-heading > p:last-child {
  max-width: 620px;
  margin-top: 1.5rem;

  font-size: 1.08rem;
  line-height: 1.7;

  color: rgba(22, 53, 52, 0.7);
}

.repeat-path {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  gap: 1rem;
  align-items: center;

  margin-top: 4rem;
}

.repeat-step {
  min-height: 220px;

  display: flex;
  flex-direction: column;

  padding: 1.5rem;

  border: 1px solid var(--oops-line);
  border-radius: 24px;

  background: rgba(255,255,255,0.48);
}

.repeat-step:nth-of-type(3) {
  background: #fff6e8;
}

.repeat-step:nth-of-type(5) {
  background: #f7d6b4;
}

.repeat-step:nth-of-type(7) {
  background: var(--oops-deep);
  color: var(--oops-paper);
}

.repeat-step span {
  color: var(--oops-orange);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.repeat-step strong {
  margin-top: auto;

  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.repeat-step p {
  margin-bottom: 0;
  line-height: 1.5;
}

.repeat-line {
  font-size: 2rem;
  color: var(--oops-orange);
}

.repeat-conclusion {
  max-width: 700px;
  margin-top: 4rem;
}

.repeat-conclusion > strong {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--oops-orange);
}

.repeat-conclusion p {
  margin: 0.7rem 0;
  font-size: 1.08rem;
  line-height: 1.7;
}


/* =========================================================
   INSECURITY LAB
========================================================= */

.insecurity-lab {
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background: var(--oops-paper);
}

.lab-intro {
  max-width: 800px;
}

.lab-intro h2 {
  margin: 0;

  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lab-intro > p:last-child {
  max-width: 650px;
  margin-top: 1.5rem;

  line-height: 1.75;
  color: rgba(22, 53, 52, 0.72);
}

.flip-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;

  margin-top: 4rem;
}

.flip-field {
  display: grid;
  gap: 0.8rem;
}

.flip-field > span {
  font-weight: 700;
}

.flip-field textarea {
  min-height: 200px;
  padding: 1.1rem;

  border: 1px solid var(--oops-line);
  border-radius: 20px;

  outline: none;

  background: #fffaf2;

  line-height: 1.6;

  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.flip-field textarea:focus {
  border-color: var(--oops-orange);
  transform: translateY(-2px);
}

.flip-arrow {
  font-size: 2rem;
  color: var(--oops-orange);
}

.insecurity-lab .button {
  margin-top: 2rem;
}

.small-status {
  min-height: 1.4em;
}


/* =========================================================
   FAILURE WALL
========================================================= */

.failure-wall {
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background:
    linear-gradient(
      175deg,
      #e8d7bb 0%,
      #f2e5d1 100%
    );
}

.wall-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 3rem;
  align-items: end;
}

.wall-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.wall-heading h2 em {
  color: var(--oops-orange);
}

.wall-heading > p {
  margin: 0;

  line-height: 1.7;
  color: rgba(22, 53, 52, 0.67);
}


/* =========================================================
   FAILURE FORM
========================================================= */

.failure-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;

  margin-top: 4rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);

  border: 1px solid var(--oops-line);
  border-radius: 30px;

  background: rgba(255,255,255,0.42);
}

.failure-builder label {
  display: grid;
  gap: 0.6rem;
}

.failure-builder label span {
  font-size: 0.85rem;
  font-weight: 700;
}

.failure-builder input,
.failure-builder select {
  min-height: 52px;

  padding: 0 1rem;

  border: 1px solid rgba(22,53,52,0.16);
  border-radius: 15px;

  outline: none;

  background: #fffaf1;

  font-size: 0.95rem;
}

.failure-builder input:focus,
.failure-builder select:focus {
  border-color: var(--oops-orange);
}

.failure-builder .button {
  align-self: end;
  justify-self: start;
}


/* =========================================================
   FAILURE ENTRIES
========================================================= */

.failure-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;

  margin-top: 2rem;
}

.failure-entry-grid > * {
  min-height: 180px;

  border: 1px solid var(--oops-line);
  border-radius: 20px;

  background: #fff8ee;

  box-shadow: 0 8px 20px rgba(22,53,52,0.05);
}


/* =========================================================
   VISION
========================================================= */

.vision-section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(6rem, 11vw, 11rem)
    clamp(1.4rem, 6vw, 7rem);

  background: var(--oops-deeper);
  color: var(--oops-paper);
}

.vision-glow {
  position: absolute;
  top: -250px;
  right: -200px;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(240, 161, 77, 0.25),
    transparent 68%
  );

  pointer-events: none;
}

.vision-inner {
  position: relative;
  z-index: 2;

  max-width: 900px;
}

.vision-inner h2 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.vision-inner > p {
  max-width: 720px;

  font-size: 1.06rem;
  line-height: 1.75;

  color: rgba(255,248,237,0.7);
}

.vision-inner strong {
  color: var(--oops-orange-soft);
}

.vision-question {
  margin-top: 3rem;
}

.vision-question label {
  display: grid;
  gap: 1rem;
}

.vision-question label > span {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.vision-question textarea {
  min-height: 180px;

  padding: 1.1rem;

  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 20px;

  outline: none;

  background: rgba(255,255,255,0.06);
  color: white;

  line-height: 1.6;
}

.vision-question textarea::placeholder {
  color: rgba(255,255,255,0.38);
}

.vision-question textarea:focus {
  border-color: var(--oops-orange-soft);
}


/* =========================================================
   NEXT EXPERIMENT
========================================================= */

.next-experiment {
  padding:
    clamp(5rem, 9vw, 9rem)
    clamp(1.4rem, 6vw, 7rem);

  background: #f5ead8;
}

.next-copy {
  max-width: 840px;
}

.next-copy h2 {
  margin: 0;

  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;

  margin-top: 3rem;
}

.experiment-grid label {
  display: grid;
  gap: 0.75rem;
}

.experiment-grid label > span {
  font-weight: 700;
}

.experiment-grid textarea {
  min-height: 170px;

  padding: 1rem;

  border: 1px solid var(--oops-line);
  border-radius: 20px;

  outline: none;

  background: rgba(255,255,255,0.54);

  line-height: 1.6;
}

.experiment-grid textarea:focus {
  border-color: var(--oops-orange);
}


/* =========================================================
   24 HOUR CHALLENGE
========================================================= */

.oops-challenge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;

  padding:
    clamp(4rem, 8vw, 7rem)
    clamp(1.4rem, 6vw, 7rem);

  background: var(--oops-orange);
  color: white;
}

.oops-challenge-number {
  font-family: "Fraunces", serif;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.oops-challenge-number span {
  display: block;

  margin-top: 0.8rem;

  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.oops-challenge .eyebrow {
  color: rgba(255,255,255,0.65);
}

.oops-challenge-copy {
  max-width: 730px;
}

.oops-challenge-copy h2 {
  margin: 0;

  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.oops-challenge-copy p {
  max-width: 650px;

  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}


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

.oops-closing {
  position: relative;

  min-height: 85vh;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4rem;
  align-items: end;

  padding:
    clamp(6rem, 10vw, 10rem)
    clamp(1.4rem, 6vw, 7rem);

  overflow: hidden;

  background: var(--oops-deep);
  color: var(--oops-paper);
}

.closing-chaos {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.closing-chaos span {
  position: absolute;

  font-family: "Fraunces", serif;
  color: rgba(255,255,255,0.05);
}

.closing-chaos span:nth-child(1) {
  top: 12%;
  left: 6%;
  font-size: 8rem;
  transform: rotate(15deg);
}

.closing-chaos span:nth-child(2) {
  top: 16%;
  right: 12%;
  font-size: 10rem;
}

.closing-chaos span:nth-child(3) {
  bottom: 15%;
  left: 40%;
  font-size: 12rem;
}

.closing-chaos span:nth-child(4) {
  top: 50%;
  right: 3%;
  font-size: 7rem;
}

.closing-chaos span:nth-child(5) {
  top: 8%;
  left: 45%;
  font-size: 6rem;
}

.oops-closing-copy,
.closing-actions {
  position: relative;
  z-index: 2;
}

.oops-closing-copy {
  max-width: 850px;
}

.oops-closing h2 {
  margin: 0;

  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.oops-closing h2 em {
  color: var(--oops-orange-soft);
}

.oops-closing-copy > p {
  max-width: 690px;

  font-size: 1.06rem;
  line-height: 1.7;

  color: rgba(255,248,237,0.72);
}

.closing-big-truth {
  margin: 1.8rem 0 3rem !important;

  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
  line-height: 1.08 !important;

  color: var(--oops-orange-soft) !important;
}


/* =========================================================
   CLOSING REGRET NOTE
========================================================= */

.closing-regret-note {
  max-width: 700px;
  margin: 3rem 0;
  padding: 2rem;

  border-left: 3px solid var(--oops-orange-soft);

  background: rgba(255,255,255,0.055);
}

.closing-regret-note span {
  display: block;

  margin-bottom: 0.7rem;

  color: rgba(255,255,255,0.55);
}

.closing-regret-note strong {
  display: block;

  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.closing-regret-note p {
  margin: 1rem 0 0;

  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}


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

.closing-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;

  margin-top: 3rem !important;

  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem) !important;

  color: white !important;
}

.closing-line span {
  color: var(--oops-orange-soft);
}

.closing-last-line {
  margin-top: 3rem !important;

  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem) !important;
  line-height: 1.3 !important;

  color: white !important;
}

.closing-actions {
  min-width: 210px;
}

.closing-actions p {
  max-width: 220px;

  font-size: 0.8rem;
  line-height: 1.5;

  color: rgba(255,255,255,0.5);
}


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

.oops-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  padding:
    2rem
    clamp(1.4rem, 6vw, 7rem);

  border-top: 1px solid rgba(255,255,255,0.08);

  background: #081d1f;
  color: rgba(255,255,255,0.65);
}

.oops-footer > span {
  font-weight: 700;
  color: white;
}

.oops-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.oops-footer a {
  color: var(--oops-orange-soft);
  text-decoration: none;
}


/* =========================================================
   INPUT PLACEHOLDERS
========================================================= */

input::placeholder,
textarea::placeholder {
  color: rgba(22, 53, 52, 0.4);
}


/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(228, 111, 63, 0.35);
  outline-offset: 3px;
}


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

@media (max-width: 1000px) {

  .oops-hero {
    grid-template-columns: 1fr;
  }

  .oops-hero-copy {
    max-width: 850px;
  }

  .oops-hero-art {
    width: min(100%, 500px);
  }

  .mirror-room {
    grid-template-columns: 1fr;
  }

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

  .repeat-line {
    display: none;
  }

  .flip-board {
    grid-template-columns: 1fr;
  }

  .flip-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .failure-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oops-closing {
    grid-template-columns: 1fr;
  }

}


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

@media (max-width: 760px) {

  .oops-hero {
    min-height: auto;

    padding-top: 7.5rem;
  }

  .oops-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.5rem);
  }

  .oops-hero-art {
    margin-top: 1rem;
  }

  .oops-note {
    font-size: 0.68rem;
  }


  /* HERO STRIP */

  .oops-truth-strip {
    gap: 0.45rem;
  }

  .oops-truth-strip span {
    font-size: 0.65rem;
  }

  .oops-truth-strip i {
    font-size: 0.8rem;
  }


  /* MANIFESTO */

  .oops-manifesto-grid {
    grid-template-columns: 1fr;
  }

  .oops-manifesto-punch {
    grid-template-columns: 1fr;
  }


  /* MISTAKE NUMBERS */

  .mistake-counter {
    grid-template-columns: 1fr;
  }

  .mistake-number,
  .mistake-number:nth-child(2),
  .mistake-number--big {
    min-height: 210px;
    transform: none;
  }

  .mistake-number:hover {
    transform: translateY(-3px);
  }

  .mistake-message {
    grid-template-columns: 1fr;
  }


  /* SECTION HEAD */

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


  /* REGRET */

  .regret-story {
    grid-template-columns: 1fr;
  }

  .regret-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .regret-old,
  .regret-now {
    min-height: auto;
    transform: none;
  }


  /* REPEAT */

  .repeat-path {
    grid-template-columns: 1fr;
  }

  .repeat-step {
    min-height: 180px;
  }


  /* FAILURE */

  .wall-heading {
    grid-template-columns: 1fr;
  }

  .failure-builder {
    grid-template-columns: 1fr;
  }

  .failure-entry-grid {
    grid-template-columns: 1fr;
  }


  /* EXPERIMENT */

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


  /* CHALLENGE */

  .oops-challenge {
    grid-template-columns: 1fr;
  }

  .oops-challenge-number {
    font-size: clamp(6rem, 35vw, 10rem);
  }


  /* CLOSING */

  .oops-closing {
    min-height: auto;
  }

  .closing-actions {
    min-width: 0;
  }

}


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

@media (max-width: 480px) {

  .oops-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .oops-hero-actions .button {
    width: 100%;
  }

  .oops-text-link {
    justify-content: center;
  }

  .oops-sun {
    width: 160px;
    height: 160px;
  }

  .oops-note {
    max-width: 130px;
  }

  .note-a {
    left: 2%;
  }

  .note-b {
    right: 1%;
  }

  .oops-closing h2 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

}
