/* Terraform case study — Figma 226:2195 “Terraform- Password Protected View”
   Public page only: intro → hero → meta → internship overview → password gate.
   Locked frame 244:7 is not shipped. */

.terraform-page .bc-main {
  padding: 0 160px 48px;
}

.terraform-page #overview,
.terraform-page #terraform-gate {
  scroll-margin-top: 24px;
}

/* Figma 226:2213 · Satoshi Bold 40 */
.terraform-page .bc-title,
.terraform-title {
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 40px;
  line-height: normal;
  white-space: nowrap;
  text-wrap: unset;
}

/* Figma 243:2 · Satoshi Italic 18 */
.terraform-page .bc-lede {
  font-size: 18px;
  line-height: normal;
}

/* Meta · Figma 226:2224 · labels 14 / values 18 */
.terraform-meta {
  align-items: flex-start;
}

.terraform-meta .bc-meta__label {
  font-size: 14px;
}

.terraform-meta .bc-meta__value,
.terraform-meta .bc-meta__list {
  font-size: 18px;
}

.terraform-meta .bc-meta__item:last-child {
  min-width: 222px;
}

/* Hero · Frame 243:3 · single laptop in #edf2f5 rounded panel (Figma export) */
.terraform-hero {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdcdc;
  border-radius: 30px;
  overflow: hidden;
  background: #edf2f5;
  line-height: 0;
}

.terraform-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Internship Overview · Frame 244:8 */
.terraform-overview {
  gap: 24px;
}

.terraform-overview__intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.terraform-overview__tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: normal;
  color: #14243b;
}

.terraform-overview .bc-body {
  margin: 0;
  font-size: 18px;
  line-height: normal;
  color: #14243b;
}

.terraform-overview__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.terraform-overview__card {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 16px;
  background: #edf2f5;
  border: 1px solid #dcdcdc;
  border-radius: 20px;
  color: #14243b;
}

.terraform-overview__card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.terraform-overview__card p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

/* Password gate UI · Frame 249:40 (locked content frame 244:7 not rendered) */
.terraform-gate {
  gap: 16px;
}

.terraform-gate__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.terraform-gate__heading h2 {
  margin: 0;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: #14243b;
  white-space: nowrap;
}

.terraform-gate__rule {
  flex: 1 1 0;
  min-width: 0;
  height: 0;
  border-top: 1px solid #14243b;
}

.terraform-gate__copy {
  margin: 0;
  font-size: 18px;
  line-height: normal;
  color: #14243b;
}

.terraform-gate__contact {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terraform-gate__contact:hover,
.terraform-gate__contact:focus-visible {
  opacity: 0.75;
}

.terraform-gate__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.terraform-gate__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  width: 100%;
}

.terraform-gate__label {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: #14243b;
}

/* Monkey password widget (CodePen BamQOqP) */
.password {
  --background: #ffffff;
  --text-color: #14243b;
  --border-radius: 8px;
  --width: 380px;
  --height: 55px;
  box-sizing: border-box;
  background: var(--background);
  width: var(--width);
  max-width: 100%;
  height: var(--height);
  padding: 0 var(--height) 0 20px;
  position: relative;
  line-height: var(--height);
  border: 1px solid #dcdcdc;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(65, 72, 86, 0.05);
  font-family: "Satoshi", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  transition: outline 0.15s ease, outline-offset 0.15s ease;
}

.password:focus-within {
  outline: 2px solid #14243b;
  outline-offset: 2px;
}

.password .monkey,
.password .monkey-hands {
  position: absolute;
  width: var(--height);
  height: 100%;
  right: 0;
  top: 0;
  margin: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.password .monkey svg,
.password .monkey-hands svg {
  height: calc(var(--height) - 20px);
  width: calc(var(--height) - 20px);
}

.password .monkey {
  cursor: pointer;
}

.password .monkey:focus-visible {
  outline: 2px solid #14243b;
  outline-offset: 2px;
  border-radius: 8px;
}

.password .monkey::before {
  content: "";
  position: absolute;
  transition: all 0.2s ease;
  width: 3px;
  height: 0;
  border-radius: 50%;
  top: 36px;
  border-bottom: 3px solid #3c302a;
}

.password .monkey-hands {
  z-index: 2;
  perspective: 80px;
  pointer-events: none;
}

.password .monkey-hands svg {
  transition: transform 0.2s ease-in, opacity 0.1s;
  transform-origin: 50% 100%;
}

.password .password-wrapper {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.password .password-input,
.password .password-text,
.password .password-dots {
  letter-spacing: 2px;
  color: var(--text-color);
}

.password .password-input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0;
  background: none;
  color: transparent;
  caret-color: transparent;
  font: inherit;
}

.password .password-input::selection {
  background: transparent;
  color: transparent;
}

.password .password-input::-moz-selection {
  background: transparent;
  color: transparent;
}

.password .password-input:disabled {
  opacity: 0.7;
  cursor: wait;
}

.password .password-text,
.password .password-dots {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
  line-height: var(--height);
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

.password .password-text > span,
.password .password-dots > span {
  display: inline-block;
  opacity: 1;
}

.password .password-text > span.is-new,
.password .password-dots > span.is-new {
  animation: terraform-pw-bounce 0.45s cubic-bezier(0, 1.26, 0.42, 1.26) forwards;
}

.password .password-selection {
  position: absolute;
  top: 50%;
  left: 0;
  height: 28px;
  margin-top: -14px;
  border-radius: 4px;
  background: rgba(20, 36, 59, 0.18);
  pointer-events: none;
  z-index: 1;
}

.password .password-caret {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 20px;
  margin-top: -10px;
  background: rgba(65, 72, 86, 0.55);
  pointer-events: none;
  z-index: 3;
  animation: terraform-pw-blink 0.75s linear infinite alternate;
}

.password .password-dots {
  letter-spacing: 6px;
}

.password.show .monkey-hands svg {
  transform: perspective(100px) rotateX(-90deg);
  perspective-origin: bottom;
  opacity: var(--opacity, 0);
  transition: transform 0.2s ease, opacity 0.1s 0.1s;
}

.password.show .monkey::before {
  content: "";
  border-radius: 45%;
  width: 9px;
  height: 6px;
  border: 0;
  border-bottom: 2px solid #3c302a;
  top: 30px;
}

.password.show .password-dots {
  visibility: hidden;
}

.password:not(.show) .password-text {
  visibility: hidden;
}

@keyframes terraform-pw-bounce {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terraform-pw-blink {
  25% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.terraform-gate__submit {
  box-sizing: border-box;
  height: 55px;
  padding: 0 18px;
  border: 1px solid #14243b;
  border-radius: 8px;
  background: #14243b;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

.terraform-gate__submit:hover,
.terraform-gate__submit:focus-visible {
  opacity: 0.88;
}

.terraform-gate__submit:focus-visible {
  outline: 2px solid #14243b;
  outline-offset: 2px;
}

.terraform-gate__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.terraform-gate__error {
  margin: 0;
  font-size: 14px;
  line-height: normal;
  color: #b42318;
}

.terraform-gate__unlocked-msg {
  display: none;
  margin: 0;
  font-size: 14px;
  line-height: normal;
  color: #14243b;
}

.terraform-gate--unlocked .terraform-gate__label,
.terraform-gate--unlocked .terraform-gate__row,
.terraform-gate--unlocked .terraform-gate__error {
  display: none;
}

.terraform-gate--unlocked .terraform-gate__unlocked-msg {
  display: block;
}

.terraform-locked {
  width: 100%;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.terraform-locked.is-open {
  opacity: 1;
}

.terraform-locked.is-open--instant {
  transition: none !important;
}

.terraform-locked.is-settled {
  height: auto !important;
  overflow: visible;
  opacity: 1;
}

.terraform-locked[hidden] {
  display: none !important;
}

.terraform-locked__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.terraform-page #problem,
.terraform-page #users,
.terraform-page #design-system,
.terraform-page #considerations,
.terraform-page #solution,
.terraform-page #reflections {
  scroll-margin-top: 24px;
}

/* Coming Soon shell (kept for restore if needed) */
.terraform-page--soon .bc-canvas {
  min-height: 100vh;
}

.terraform-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding-bottom: 80px;
}

.terraform-soon__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.terraform-soon__eyebrow {
  margin: 0;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14243b;
}

.terraform-soon__title {
  margin: 0;
  font-family: "Cross Stitch Cursive", cursive;
  font-weight: 400;
  font-size: 64px;
  line-height: normal;
  color: #14243b;
}

.terraform-soon__body {
  margin: 0 0 8px;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: normal;
  color: #14243b;
}
