/* Amphibia case study — scoped for embed + standalone page */

.amphibia-case {
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --ink: #0c0c0d;
  --ink-soft: #5c5a55;
  --ink-faint: #9b988f;
  --line: #e4e2dd;
  --line-2: #d4d1ca;
  --pin-yellow: #d2b489;
  --pin-kraft: #d2b489;
  --pin-blue: #d2b489;
  --pin-red: #d2b489;
  --pin-green: #d2b489;
  --pin-shadow: rgba(20, 18, 14, 0.28);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.amphibia-case--standalone {
  background: var(--paper);
  color: var(--ink);
}

.amphibia-case--standalone > .bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 54px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.amphibia-case--standalone > .bar a,
.amphibia-case--standalone > .bar span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.amphibia-case--standalone > .bar .meta {
  color: var(--ink-faint);
}

.amphibia-case--standalone > .bar a:hover {
  opacity: 0.6;
}

.amphibia-case .case-page {
  min-height: 100vh;
  padding: clamp(86px, 12vh, 140px) clamp(20px, 6vw, 96px) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.amphibia-case .case-page__num {
  position: absolute;
  top: clamp(70px, 10vh, 110px);
  right: clamp(20px, 6vw, 96px);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.amphibia-case .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.amphibia-case .display,
.amphibia-case .headline,
.amphibia-case h1,
.amphibia-case h2,
.amphibia-case .ps__statement,
.amphibia-case .credit .mark,
.amphibia-case .pillar .t {
  color: var(--ink);
}

.amphibia-case .display {
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 7vw, 6rem);
  text-wrap: balance;
}

.amphibia-case .headline {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  text-wrap: balance;
}

.amphibia-case .sub {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  max-width: 34ch;
  margin-top: clamp(14px, 1.6vw, 22px);
}

.amphibia-case .cap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.amphibia-case .zone {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  box-shadow: 0 24px 60px -34px rgba(20, 18, 14, 0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s;
}

.amphibia-case .zone:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -30px rgba(20, 18, 14, 0.55);
}

.amphibia-case .zone::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.5px), var(--line-2) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(45deg, transparent calc(50% - 0.5px), var(--line-2) 50%, transparent calc(50% + 0.5px));
}

.amphibia-case .zone__lbl {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 14px;
  background: rgba(244, 243, 241, 0.7);
}

.amphibia-case .zone__lbl small {
  display: block;
  margin-top: 6px;
  font-size: var(--text-micro);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-faint);
  opacity: 0.8;
}

.amphibia-case .zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: block;
  filter: none;
}

.amphibia-case .zone:has(img)::before {
  display: none;
}

.amphibia-case .zone:has(img) .zone__lbl {
  display: none;
}

.amphibia-case .zone--contain img {
  object-fit: contain;
  background: var(--paper-2);
}

.amphibia-case .family__row .zone--dark img {
  background: #0a0a0c;
}

.amphibia-case .pin {
  position: relative;
  z-index: 30;
  display: inline-block;
  font-family: var(--font-hand);
  color: #1c1a16;
  background: var(--pin-yellow);
  padding: 14px 18px 16px;
  line-height: 1.1;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  box-shadow: 2px 6px 14px -4px var(--pin-shadow);
  transform: rotate(-2.2deg);
  max-width: 22ch;
}

.amphibia-case .pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.35), transparent 42%);
  pointer-events: none;
}

.amphibia-case .pin small {
  display: block;
  font-size: 0.7em;
  opacity: 0.7;
  margin-top: 4px;
}

.amphibia-case .pin--kraft { background: var(--pin-kraft); }
.amphibia-case .pin--blue { background: var(--pin-blue); }
.amphibia-case .pin--red { background: var(--pin-red); }
.amphibia-case .pin--green { background: var(--pin-green); }
.amphibia-case .pin--r { transform: rotate(2.4deg); }
.amphibia-case .pin--r2 { transform: rotate(1.4deg); }
.amphibia-case .pin--l2 { transform: rotate(-1.3deg); }

.amphibia-case .case-page.hero {
  padding: 0;
  width: 100%;
  height: min(56.25vw, 100svh);
  max-height: 100svh;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-end;
  position: relative;
  border-bottom: none;
}

.amphibia-case .hero .zone {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: #ececea;
  box-shadow: none;
}

.amphibia-case .hero .zone:hover {
  transform: none;
  box-shadow: none;
}

.amphibia-case .hero .zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 2;
  display: block;
  filter: none;
}

.amphibia-case .hero .zone:has(img)::before {
  display: none;
}

.amphibia-case .hero .zone:has(img) .zone__lbl {
  display: none;
}

.amphibia-case .hero .zone::before {
  opacity: 0.16;
}

.amphibia-case .hero .zone__lbl {
  background: rgba(20, 20, 20, 0.55);
  color: #cfccc4;
}

.amphibia-case .hero__txt {
  position: relative;
  z-index: 35;
  margin-top: auto;
  padding: clamp(48px, 10vh, 120px) clamp(20px, 6vw, 96px) clamp(28px, 5vh, 64px);
  color: var(--ink);
  background: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.amphibia-case .hero__txt .eyebrow {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
  font-size: clamp(0.8125rem, 1.45vw, 1.25rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin: 0 0 clamp(8px, 1.1vw, 14px);
  padding: 0;
  white-space: nowrap;
}

.amphibia-case .hero__txt .display,
.amphibia-case .hero__txt .headline,
.amphibia-case .hero__txt h1,
.amphibia-case .hero__txt h2 {
  color: var(--ink);
  margin: 0;
  width: max-content;
  max-width: 100%;
}

.amphibia-case .hero__txt .sub {
  color: var(--ink-soft);
  margin-top: clamp(12px, 1.5vw, 18px);
}

.amphibia-case .hero__pin {
  position: absolute;
  z-index: 40;
  left: clamp(20px, 6vw, 96px);
  right: auto;
  top: clamp(24px, 6vh, 72px);
  max-width: min(22ch, 42vw);
}

.amphibia-case .family {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.amphibia-case .family__lead {
  position: relative;
  max-width: min(34ch, 100%);
  padding-top: clamp(8px, 1.5vh, 20px);
}

.amphibia-case .family__lead .headline {
  max-width: none;
  line-height: 1.02;
  text-wrap: normal;
}

.amphibia-case .family__lead .headline .line {
  display: block;
}

.amphibia-case .family__lead .sub {
  max-width: none;
  line-height: 1.38;
  margin-top: clamp(18px, 2.2vw, 28px);
  text-wrap: normal;
}

.amphibia-case .family__lead .sub .line {
  display: block;
}

.amphibia-case .family__stage {
  position: relative;
  overflow: visible;
  width: 100%;
  padding-bottom: clamp(16px, 2.5vh, 28px);
}

.amphibia-case .family .family__pin {
  position: absolute;
  z-index: 40;
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  padding: 7px 11px 9px;
  line-height: 1.08;
  max-width: 14ch;
}

.amphibia-case .family .family__pin small {
  display: none;
}

.amphibia-case .family__pin--text {
  position: relative;
  display: inline-block;
  margin-top: clamp(20px, 2.8vh, 32px);
  max-width: 13ch;
}

.amphibia-case .family__row .zone {
  overflow: visible;
}

.amphibia-case .family__pin--corner {
  top: clamp(8px, 1.2vw, 14px);
  right: clamp(8px, 1.2vw, 14px);
}

.amphibia-case .family__pin--foot {
  left: 50%;
  bottom: clamp(-6px, -0.8vw, 2px);
  transform: translateX(-50%) rotate(-1.3deg);
  max-width: 15ch;
  text-align: center;
}

.amphibia-case .family__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: end;
  width: 100%;
}

.amphibia-case .family__row .zone {
  aspect-ratio: 686 / 1024;
  width: 100%;
  height: auto;
  max-height: clamp(360px, calc(58vh * 1.2), 672px);
  justify-self: stretch;
}

.amphibia-case .family__row .zone:nth-child(3) {
  aspect-ratio: 768 / 1024;
}

.amphibia-case .family__row .zone--contain img {
  object-fit: contain;
  object-position: center bottom;
}

.amphibia-case .family__row .zone:nth-child(1) img {
  object-position: center 42%;
}

.amphibia-case .family__row .zone:nth-child(2) img {
  object-position: center 38%;
}

.amphibia-case .family__row .zone:nth-child(3) img {
  object-position: center bottom;
}

/* Descriptor post-its placed under each box (second grid row) */
.amphibia-case .family__row .family__note {
  justify-self: center;
  align-self: start;
  margin-top: clamp(12px, 1.6vw, 20px);
  max-width: 92%;
  text-align: center;
  font-size: clamp(0.78rem, 1.05vw, 0.94rem);
  line-height: 1.15;
}
/* SnackFits 02: lead headline spans full width above the boxes */
#project-snackbox .family { grid-template-columns: 1fr; }
#project-snackbox .family__lead { grid-column: 1 / -1; max-width: none; }
#project-snackbox .family__lead .headline .line { white-space: nowrap; }

.amphibia-case .family__note--green { background: #6f9f5b; color: #14210f; }
.amphibia-case .family__note--darkgreen { background: #2f5d3a; color: #f3f7ef; }
.amphibia-case .family__note--orange { background: #e08a3c; color: #2a1606; }

.amphibia-case .case-page:has(.process__stage) {
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: clamp(72px, 10vh, 112px);
}

.amphibia-case .process__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: end;
  margin-bottom: clamp(28px, 4vh, 48px);
  width: 100%;
}

.amphibia-case .process__head > div {
  grid-column: 1 / 7;
}

.amphibia-case .process__head .headline {
  max-width: 14ch;
}

.amphibia-case .process__stage {
  position: relative;
  overflow: visible;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.amphibia-case .process__cell {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
  align-items: flex-start;
  justify-content: flex-end;
  margin-top: 0;
  min-height: 0;
}

.amphibia-case .process__cell .zone {
  width: 100%;
  flex: 1;
  min-height: 0;
}

.amphibia-case .process__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.82fr);
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: min(68vh, 640px);
}

.amphibia-case .process__grid .zone {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  justify-self: stretch;
  transform: none;
  margin-top: 0;
}

.amphibia-case .process__grid > .zone:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1;
  aspect-ratio: auto;
}

.amphibia-case .process__grid > .zone:nth-child(2) {
  grid-column: 6 / 9;
  grid-row: 1;
  align-self: end;
  margin-bottom: clamp(-24px, -3.5vh, -10px);
  aspect-ratio: auto;
}

.amphibia-case .process__cell {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
}

.amphibia-case .process__grid > .zone:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 2;
  aspect-ratio: auto;
}

.amphibia-case .process__grid .zone--contain img {
  object-fit: contain;
  object-position: center;
  background: var(--paper-2);
}

.amphibia-case .process__grid .zone--dark img {
  background: #1a1a1c;
}

.amphibia-case .process__grid .zone:hover {
  transform: translateY(-4px);
  z-index: 2;
}

.amphibia-case .process__pin {
  position: static;
  z-index: 40;
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  padding: 7px 11px 9px;
  line-height: 1.08;
  max-width: 22ch;
}

.amphibia-case .case-page--app {
  padding: 0;
  min-height: 100vh;
  justify-content: stretch;
  overflow: hidden;
  border-bottom: none;
  background: #141416;
}

.amphibia-case .case-page--app .case-page__num {
  z-index: 5;
  color: rgba(255, 255, 255, 0.55);
  mix-blend-mode: difference;
}

.amphibia-case .app {
  position: relative;
  flex: 1;
  min-height: 100vh;
}

/* ============================================================
   PROCESS — interactive expanding selector (How it was made)
   ============================================================ */
.amphibia-case .amph-selector {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  width: 100%;
  flex: 1;
  min-height: min(64vh, 560px);
  align-items: stretch;
}

.amphibia-case .amph-opt {
  position: relative;
  flex: 1 1 0%;
  min-width: 56px;
  opacity: 0;
  transform: translateX(-34px);
  animation: amphOptIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: flex-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.amphibia-case .amph-opt:nth-child(1) { animation-delay: 0.05s; }
.amphibia-case .amph-opt:nth-child(2) { animation-delay: 0.20s; }
.amphibia-case .amph-opt:nth-child(3) { animation-delay: 0.35s; }
.amphibia-case .amph-opt:nth-child(4) { animation-delay: 0.50s; }

.amphibia-case .amph-opt.is-active { flex-grow: 7; }

@keyframes amphOptIn {
  to { opacity: 1; transform: translateX(0); }
}

.amphibia-case .amph-opt__btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  background-color: #1a1a1c;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 120%;
  box-shadow: 0 12px 32px -20px rgba(20, 18, 14, 0.45);
  transition: background-size 0.7s ease, border-color 0.45s ease, box-shadow 0.45s ease;
  font-family: inherit;
  color: #fff;
}

.amphibia-case .amph-opt.is-active .amph-opt__btn {
  background-size: auto 100%;
  border-color: var(--accent);
  box-shadow: 0 28px 60px -26px rgba(20, 18, 14, 0.6);
}

.amphibia-case .amph-opt__btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.amphibia-case .amph-opt__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.86), rgba(8, 7, 6, 0.42) 42%, transparent);
  pointer-events: none;
}

.amphibia-case .amph-opt__num {
  position: absolute;
  top: 14px;
  left: 15px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.amphibia-case .amph-opt__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  pointer-events: none;
}

.amphibia-case .amph-opt__ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(28, 26, 24, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.amphibia-case .amph-opt__ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amphibia-case .amph-opt__info {
  min-width: 0;
  white-space: nowrap;
}

.amphibia-case .amph-opt__info b {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.6s ease 0.05s, transform 0.6s ease 0.05s;
}

.amphibia-case .amph-opt__info i {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.2;
  margin-top: 2px;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.amphibia-case .amph-opt.is-active .amph-opt__info b,
.amphibia-case .amph-opt.is-active .amph-opt__info i {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .amphibia-case .amph-opt {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 720px) {
  .amphibia-case .amph-selector {
    flex-direction: column;
    min-height: 0;
    gap: 8px;
  }
  .amphibia-case .amph-opt {
    flex: 1 1 auto;
    min-height: 64px;
  }
  .amphibia-case .amph-opt.is-active {
    flex-grow: 6;
  }
  .amphibia-case .amph-opt.is-active .amph-opt__btn {
    min-height: 296px;
  }
}

.amphibia-case .app__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #141416;
  overflow: hidden;
}

.amphibia-case .app__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.amphibia-case .glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 18px 50px -18px rgba(20, 18, 14, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 0;
  overflow: hidden;
}

.amphibia-case .glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.45), transparent 46%);
}

.amphibia-case .glass__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
}

.amphibia-case .glass__dots {
  display: flex;
  gap: 6px;
}

.amphibia-case .glass__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(20, 18, 14, 0.22);
}

.amphibia-case .glass__dots i:nth-child(1) { background: var(--pin-red); }
.amphibia-case .glass__dots i:nth-child(2) { background: var(--pin-yellow); }
.amphibia-case .glass__dots i:nth-child(3) { background: var(--pin-green); }

.amphibia-case .glass__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.amphibia-case .glass__body {
  padding: clamp(22px, 3vw, 34px);
}

.amphibia-case .glass__body .eyebrow {
  margin-bottom: 12px;
}

.amphibia-case .app__lead {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(20px, 6vw, 96px);
  transform: translateY(-50%);
  width: min(36ch, 24vw);
  max-width: 340px;
  margin-top: 0;
}

.amphibia-case .glass--dark {
  background: linear-gradient(145deg, rgba(36, 36, 40, 0.82), rgba(22, 22, 24, 0.68));
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 56px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.amphibia-case .glass--dark::before {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 48%);
}

.amphibia-case .glass--dark .glass__bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.amphibia-case .glass--dark .glass__bar span {
  color: rgba(245, 243, 239, 0.45);
}

.amphibia-case .glass--dark .glass__body .eyebrow {
  color: rgba(245, 243, 239, 0.5);
}

.amphibia-case .glass--dark .headline {
  color: #f5f3ef;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.amphibia-case .glass--dark .sub {
  color: rgba(245, 243, 239, 0.72);
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.45;
}

.amphibia-case .ps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.amphibia-case .ps__col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.amphibia-case .ps__statement {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-wrap: balance;
}

.amphibia-case .ps__arrow {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  text-align: center;
  font-size: 1.6rem;
}

.amphibia-case .pillars {
  margin-top: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 34px);
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 3vw, 38px);
}

.amphibia-case .pillar .n {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.amphibia-case .pillar .t {
  font-weight: 600;
  font-size: var(--text-lg);
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.amphibia-case .pillar .d {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.amphibia-case .credit {
  border-bottom: none;
  padding-top: clamp(40px, 6vh, 70px);
  padding-bottom: clamp(60px, 9vh, 110px);
  text-align: center;
}

.amphibia-case .credit .mark {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.amphibia-case .credit p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  line-height: 1.9;
}

.amphibia-case .credit .back {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.amphibia-case .credit .back:hover {
  opacity: 0.6;
}

@media (max-width: 680px) {
  .amphibia-case .hero__pin {
    display: none;
  }
}

@media (max-width: 820px) {
  .amphibia-case .family {
    grid-template-columns: 1fr;
  }

  .amphibia-case .family__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .amphibia-case .family__row .zone {
    max-height: clamp(280px, calc(52vh * 1.2), 520px);
  }

  .amphibia-case .process__head > div {
    grid-column: 1 / -1;
  }

  .amphibia-case .process__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    min-height: 0;
  }

  .amphibia-case .process__grid > .zone:nth-child(1),
  .amphibia-case .process__grid > .zone:nth-child(2),
  .amphibia-case .process__grid > .zone:nth-child(4),
  .amphibia-case .process__cell {
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 0;
    max-height: clamp(280px, calc(52vh * 1.2), 520px);
    aspect-ratio: 1024 / 764;
  }

  .amphibia-case .process__grid > .zone:nth-child(4) {
    aspect-ratio: 686 / 1024;
  }

  .amphibia-case .ps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .amphibia-case .ps__arrow {
    transform: rotate(90deg);
  }

  .amphibia-case .pillars {
    grid-template-columns: 1fr;
  }

  .amphibia-case .case-page--app,
  .amphibia-case .app {
    min-height: 100svh;
  }

  .amphibia-case .app__lead {
    top: clamp(86px, 12vh, 120px);
    left: clamp(20px, 6vw, 96px);
    right: clamp(20px, 6vw, 96px);
    transform: none;
    width: auto;
    max-width: min(34ch, 100%);
  }

  .amphibia-case .app__bg img {
    object-position: center 32%;
  }

  .amphibia-case .process__grid > .zone:nth-child(2),
  .amphibia-case .process__grid > .zone:nth-child(4),
  .amphibia-case .process__cell {
    margin-top: 0;
  }
}

/* ============================================================
   PACKAGING — section 04
   ============================================================ */
.amphibia-case .case-page--pkg {
  justify-content: flex-start;
  padding-top: clamp(72px, 10vh, 112px);
}

.amphibia-case .pkg {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.amphibia-case .pkg__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(26px, 4vh, 46px);
}

.amphibia-case .pkg__lead .headline {
  max-width: none;
  line-height: 1.02;
}

.amphibia-case .pkg__lead .headline .line {
  display: block;
}

.amphibia-case .pkg__lead .sub {
  max-width: 42ch;
}

.amphibia-case .pkg__pin {
  justify-self: end;
  align-self: end;
  max-width: 16ch;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  padding: 9px 13px 11px;
}

.amphibia-case .pkg__stage {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vh, 84px);
  width: 100%;
}

.amphibia-case .pkg__show {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 3.4vw, 64px);
}

.amphibia-case .pkg__show:nth-child(even) {
  flex-direction: row-reverse;
}

/* frame hugs the image — sized to its own aspect-ratio (set inline) */
.amphibia-case .pkg__show-img {
  flex: 0 0 auto;
  background: #edece9;
}

/* landscape image — driven by width */
.amphibia-case .pkg__show:not(.pkg__show--tall) .pkg__show-img {
  width: min(56%, 620px);
  height: auto;
}

/* portrait image — driven by height */
.amphibia-case .pkg__show--tall .pkg__show-img {
  height: clamp(360px, 58vh, 580px);
  width: auto;
  max-width: 46%;
  background: #ffffff;
}

.amphibia-case .pkg__cap {
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;
  padding-top: clamp(4px, 0.6vw, 10px);
  font-family: var(--font-sans);
  color: var(--ink-soft);
}

.amphibia-case .pkg__cap b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.amphibia-case .pkg__cap span {
  display: block;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* reversed rows (image on the right) — keep the caption hugging the image */
.amphibia-case .pkg__show:nth-child(even) .pkg__cap {
  text-align: right;
}
.amphibia-case .pkg__show:nth-child(even) .pkg__cap span {
  margin-left: auto;
}

@media (max-width: 820px) {
  .amphibia-case .pkg__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .amphibia-case .pkg__pin {
    justify-self: start;
  }
  .amphibia-case .pkg__show,
  .amphibia-case .pkg__show:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 3vw, 20px);
  }
  .amphibia-case .pkg__show-img,
  .amphibia-case .pkg__show:not(.pkg__show--tall) .pkg__show-img,
  .amphibia-case .pkg__show--tall .pkg__show-img {
    width: 100%;
    height: auto;
    max-width: none;
  }
  .amphibia-case .pkg__cap {
    padding-top: 0;
  }
  .amphibia-case .pkg__cap span {
    max-width: none;
  }
}

/* Portfolio embed wrapper */
.project-case {
  width: 100%;
  background: #fff;
}

.project-case__head {
  padding: clamp(56px, 9vh, 100px) clamp(20px, 6vw, 96px) clamp(28px, 4vh, 44px);
  border-bottom: 1px solid #e4e2dd;
}

.project-case__head .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9b988f;
  margin-bottom: 12px;
}

.project-case .project-case__title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #0c0c0d;
}

.project-case__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: #9b988f;
}

.project-case .amphibia-case .case-page {
  padding-top: clamp(48px, 8vh, 88px);
}

.project-case .amphibia-case .case-page.hero {
  padding-top: 0;
  width: 100%;
  min-height: 0;
  height: min(56.25vw, 100svh);
  max-height: 100svh;
}

.project-case .amphibia-case .case-page--app {
  padding: 0;
}

.project-case .amphibia-case .case-page__num {
  top: clamp(24px, 4vh, 48px);
}

/* ============================================================
   SNACKFITS — full-page hero with glass design-decision card
   ============================================================ */
/* full-page render is object-fit:cover; pin to the top so the site's
   top navigation always stays visible and any crop falls at the bottom */
#project-snackbox .hero .zone img {
  object-position: center top;
}
#project-snackbox .hero__txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  margin-top: 0;
  align-items: flex-start;
  padding: 0 clamp(20px, 6vw, 96px) clamp(16px, 3vh, 40px);
}
#project-snackbox .hero__glass {
  position: relative;
  max-width: min(46ch, 82vw);
  padding: clamp(14px, 1.6vw, 20px) clamp(16px, 1.9vw, 24px);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(32, 28, 24, 0.9), rgba(20, 17, 14, 0.82));
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -28px rgba(20, 18, 14, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
#project-snackbox .hero__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 50%);
}
#project-snackbox .hero__glass .eyebrow {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: none;
  white-space: normal;
  margin: 0 0 clamp(6px, 0.9vw, 10px);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#project-snackbox .hero__glass .display {
  color: #fff;
  width: auto;
  max-width: none;
  font-size: clamp(1.1rem, 1.95vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 560;
}
