/* HERO */
#hero {
  padding-top: 10rem;
  padding-bottom: 7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.hero-photo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  cursor: pointer;
}

.hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(196,97,42,0.2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-photo-emoji {
  position: absolute;
  bottom: 4px;
  right: -4px;
  font-size: 2.1rem;
  opacity: 0;
  pointer-events: none;
}

@keyframes emoji-float {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  60%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110px) scale(0.8); }
}

.hero-photo-emoji.floating {
  animation: emoji-float 2s ease-out forwards;
}

.hero-name {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-title-line {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: calc(110px + 2rem);
}

.hero-body p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.75;
  font-weight: 300;
}

.hero-body p strong { color: var(--ink); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* TENETS */
.tenet {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(17,17,16,0.07);
  border-radius: 10px;
  background: rgba(255,255,253,0.6);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}

.tenet:hover { border-color: rgba(196,97,42,0.2); }
.tenet.visible { opacity: 1; transform: translateX(0); }

.tenet-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 2px;
  min-width: 20px;
}

.tenet-text {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
}

/* PROCESS */
#process { background: var(--ivory); color: var(--ink); }
#process .section-label { color: var(--mid-gray); }

#process h2 {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 3.5rem;
  color: var(--ink);
}

#process h2 em { font-style: italic; color: var(--accent); }

.process-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(17,17,16,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.process-step {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(17,17,16,0.08);
  display: grid;
  grid-template-columns: 3rem 12rem 1fr;
  gap: 0 2rem;
  align-items: baseline;
}

.process-step:last-child { border-bottom: none; }

.process-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.process-step h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.7;
}

.process-step p {
  font-size: 0.87rem;
  color: var(--dark-gray);
  line-height: 1.7;
  font-weight: 300;
}

/* WORK */
#work { background: var(--ink); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.work-header h2 {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.work-header p {
  font-size: 0.88rem;
  color: rgba(247,245,240,0.35);
  max-width: 260px;
  text-align: right;
  line-height: 1.55;
  font-weight: 300;
}

#work .section-label { color: rgba(247,245,240,0.6); }
#work .rule { opacity: 0.5; }

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  background: rgba(247,245,240,0.04);
  border: 1px solid rgba(247,245,240,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.bento-card:hover { border-color: rgba(196,97,42,0.35); }

.bento-card.full-width {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bento-card.tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento-card.small {
  display: flex;
  flex-direction: column;
}

.bento-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.bento-info-top { flex: 1; }

.bento-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
  display: block;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.bento-card.full-width .bento-title { font-size: 1.6rem; }

.bento-desc {
  font-size: 0.85rem;
  color: rgba(247,245,240,0.45);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.bento-metrics {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(247,245,240,0.07);
  margin-bottom: 1.25rem;
}

.bento-metric-val {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.bento-metric-label {
  font-size: 0.62rem;
  color: rgba(247,245,240,0.3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.bento-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.bento-skill {
  font-size: 0.65rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(247,245,240,0.1);
  border-radius: 4px;
  color: rgba(247,245,240,0.4);
  background: rgba(247,245,240,0.03);
}

.bento-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.bento-card:hover .bento-cta { gap: 0.7rem; }

.bento-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bento-card.full-width .bento-visual { min-height: 320px; }
.bento-card.tall .bento-visual { flex: 1; min-height: 200px; }
.bento-card.small .bento-visual { height: 180px; }

/* Malt sign-up visual */
.visual-malt { background: #2A1F1A; }

.visual-malt .mock-screen {
  width: 78%;
  background: white;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 64px rgba(196,97,42,0.13);
}

.mock-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mock-logo-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #C4612A;
  letter-spacing: 0.05em;
}

.mock-logo-dot { width: 8px; height: 8px; background: #C4612A; border-radius: 2px; }
.mock-step-label { font-size: 8px; color: #bbb; letter-spacing: 0.06em; text-transform: uppercase; }

.mock-progress {
  height: 3px;
  background: #F0EDE8;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mock-progress::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 60%;
  background: var(--accent);
  border-radius: 4px;
}

.mock-heading { font-size: 9px; font-weight: 600; color: #111; margin-bottom: 0.9rem; }

.mock-field {
  height: 34px;
  border: 1px solid #E8E5E0;
  border-radius: 7px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: #FAFAF8;
}

.mock-field-label { font-size: 9px; color: #bbb; }
.mock-field.filled { border-color: rgba(196,97,42,0.4); background: #fff; }
.mock-field.filled .mock-field-label { color: #3a3a38; font-size: 8px; }

.mock-btn {
  height: 36px;
  background: var(--accent);
  border-radius: 7px;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-btn-text { font-size: 9px; color: white; font-weight: 600; letter-spacing: 0.04em; }

/* Profile visual */
.visual-profile { background: #1E1C1A; }

.profile-mock {
  width: 82%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-card {
  background: white;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.profile-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
}

.profile-info { flex: 1; }
.profile-name { font-size: 9px; font-weight: 600; color: #111; margin-bottom: 3px; }
.profile-role { font-size: 8px; color: #999; }

.profile-score {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.profile-tag {
  font-size: 8px;
  padding: 3px 8px;
  background: #F5F3EF;
  border-radius: 4px;
  color: #555;
  border: 1px solid #E8E5E0;
}

.profile-data {
  background: white;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.profile-data-label { font-size: 7px; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; margin-bottom: 6px; }
.profile-bars { display: flex; flex-direction: column; gap: 5px; }
.profile-bar-row { display: flex; align-items: center; gap: 8px; }
.profile-bar-label { font-size: 8px; color: #888; width: 60px; flex-shrink: 0; }
.profile-bar-track { flex: 1; height: 4px; background: #F0EDE8; border-radius: 4px; overflow: hidden; }
.profile-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; opacity: 0.7; }

/* Nav/Ida visual */
.visual-nav { background: #1A1A18; }

.nav-mock {
  width: 82%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-mock-bar {
  background: rgba(255,255,253,0.06);
  border: 1px solid rgba(255,255,253,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mock-label { font-size: 9px; color: rgba(247,245,240,0.5); font-weight: 400; }

.nav-mock-badge {
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
}

.nav-mock-badge.active { background: rgba(196,97,42,0.2); color: #E8956A; }
.nav-mock-badge.low { background: rgba(247,245,240,0.06); color: rgba(247,245,240,0.3); }

.nav-mock-divider { width: 1px; height: 16px; background: rgba(196,97,42,0.25); margin: 0 auto; }

.nav-mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.nav-mock-half {
  background: rgba(196,97,42,0.08);
  border: 1px solid rgba(196,97,42,0.2);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.nav-mock-half-label { font-size: 8px; color: #E8956A; font-weight: 500; margin-bottom: 4px; }
.nav-mock-half-sub { font-size: 7px; color: rgba(247,245,240,0.3); }

/* Design system visual */
.visual-ds { background: #1E1A18; }

.ds-mock {
  width: 78%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ds-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247,245,240,0.3);
  font-weight: 500;
  margin-bottom: 2px;
}

.ds-card-s, .ds-card-m, .ds-card-funnel {
  background: rgba(247,245,240,0.07);
  border: 1px solid rgba(247,245,240,0.08);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.ds-card-m { flex-direction: column; align-items: stretch; }
.ds-card-top { display: flex; align-items: center; gap: 0.65rem; }

.ds-card-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(196,97,42,0.3);
  flex-shrink: 0;
}

.ds-line { height: 6px; background: rgba(247,245,240,0.1); border-radius: 3px; }
.ds-line-full { height: 1px; background: rgba(247,245,240,0.08); margin: 6px 0 2px; }

.ds-badge {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 7px;
  background: rgba(196,97,42,0.2);
  color: var(--accent-2);
  border-radius: 3px;
  flex-shrink: 0;
  position: absolute;
  top: 8px; right: 8px;
}

.ds-card-funnel { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.ds-funnel-label { font-size: 8px; color: rgba(247,245,240,0.3); letter-spacing: 0.06em; text-transform: uppercase; }
.ds-funnel-steps { display: flex; align-items: center; }

.ds-funnel-step {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #E0DDD8;
  background: white;
  flex-shrink: 0;
}

.ds-funnel-step.active { background: var(--accent); border-color: var(--accent); }
.ds-funnel-connector { flex: 1; height: 1.5px; background: #E0DDD8; }

.ds-storybook {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #1A1A18;
  border-radius: 7px;
  margin-top: 2px;
}

.ds-sb-dot { width: 7px; height: 7px; border-radius: 50%; background: #E8956A; flex-shrink: 0; }
.ds-sb-label { font-size: 8px; color: rgba(247,245,240,0.5); font-weight: 400; }

/* BEYOND */
#side { background: var(--warm-gray); }

.side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.side-card {
  background: var(--ivory);
  border: 1px solid rgba(17,17,16,0.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s;
}

.side-card.visible { opacity: 1; transform: translateY(0); }
.side-card:hover { border-color: rgba(196,97,42,0.25); }

.side-card-top {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.side-card-link { margin-top: auto; }

.side-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}

.side-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }

.side-card p {
  font-size: 0.87rem;
  color: var(--dark-gray);
  line-height: 1.7;
  font-weight: 300;
}

.side-card-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.side-card-link:hover { gap: 0.7rem; }

.side-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
  border-top: 0px solid rgba(17,17,16,0.07);
}

.side-card:hover .side-items {
  max-height: 400px;
  border-top-width: 1px;
}

.side-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid rgba(17,17,16,0.05);
  text-decoration: none;
  transition: background 0.15s;
}

.side-item:last-child { border-bottom: none; }
.side-item:hover { background: var(--accent-light); }

.side-item-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--warm-gray);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.side-item-text { flex: 1; }

.side-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 2px;
}

.side-item-meta { font-size: 0.7rem; color: var(--mid-gray); font-weight: 300; }

/* CONTACT */
#contact { background: var(--ink); padding: 8rem 0; }

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#contact .section-label { color: rgba(247,245,240,0.3); }

.contact-inner h2 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  line-height: 1.05;
  color: var(--ivory);
}

.contact-inner h2 em { font-style: italic; color: var(--accent-2); }

.contact-inner p {
  font-size: 0.97rem;
  color: rgba(247,245,240,0.4);
  max-width: 400px;
  margin-bottom: 2.75rem;
  line-height: 1.65;
  font-weight: 300;
}

.contact-links { display: flex; gap: 1.25rem; align-items: center; }

#contact .btn-ghost {
  border-color: rgba(247,245,240,0.2);
  color: rgba(247,245,240,0.7);
}

#contact .btn-ghost:hover {
  border-color: rgba(196,97,42,0.5);
  background: rgba(196,97,42,0.1);
  color: var(--accent-2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-body { text-align: left; }
  .hero-name { font-size: clamp(2.8rem, 10vw, 4rem); }
  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .work-header p { text-align: left; max-width: 100%; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.full-width { grid-template-columns: 1fr; }
  .bento-card.full-width .bento-visual { min-height: 260px; }
  .bento-card.tall { grid-row: span 1; }
  .process-step { grid-template-columns: 2.5rem 1fr; }
  .process-step p { grid-column: 2; }
  .side-grid { grid-template-columns: 1fr; }
}

/* CASE STUDIES — new section replacing bento grid */
.case-grid { display: flex; flex-direction: column; gap: 1rem; }

.case-card-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(247,245,240,0.04);
  border: 1px solid rgba(247,245,240,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.23,1,0.32,1), box-shadow 0.25s;
  min-height: 320px;
}
.case-card-hero:hover {
  border-color: rgba(196,97,42,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.case-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.case-card {
  background: rgba(247,245,240,0.04);
  border: 1px solid rgba(247,245,240,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.23,1,0.32,1), box-shadow 0.25s;
}
.case-card:hover {
  border-color: rgba(196,97,42,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.case-visual {
  background: rgba(247,245,240,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  flex-shrink: 0;
  padding: 16px;
}
.case-visual-hero {
  background: rgba(247,245,240,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 16px;
}

.case-visual img,
.case-visual-hero img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.case-visual-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.15);
}

.case-info {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}
.case-info-hero {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.case-company {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.case-name {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ivory);
  margin-top: 0.5rem;
}
.case-card .case-name { font-size: 1.1rem; }

.case-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(247,245,240,0.5);
  line-height: 1.5;
  margin-top: 0.5rem;
}
.case-card .case-sub { font-size: 0.8rem; margin-top: 0.4rem; }

.case-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.case-skill {
  font-size: 0.68rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-weight: 400;
  background: rgba(247,245,240,0.08);
  border: 1px solid rgba(247,245,240,0.2);
  color: rgba(247,245,240,0.7);
}

.case-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
  margin-top: 0.5rem;
}
.case-card-hero:hover .case-cta,
.case-card:hover .case-cta { gap: 0.7rem; }

.case-scroll-outer {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.case-scroll-outer::-webkit-scrollbar { display: none; }

.password-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.password-row-line { flex: 1; height: 1px; background: rgba(247,245,240,0.07); }
.password-row-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.25);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .case-card-hero { grid-template-columns: 1fr; }
  .case-scroll-outer { overflow-x: visible; }
  .case-cards-row { grid-template-columns: 1fr; min-width: unset !important; }
  .case-card { width: 100%; }
}

/* PASSWORD MODAL */
.password-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}
.password-modal.open { display: flex; }

.password-modal-box {
  background: #0c0c0b;
  border: 1px solid rgba(247,245,240,0.4);
  border-radius: 14px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}

.password-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(247,245,240,0.6);
  background: transparent;
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.password-close:hover {
  background: rgba(247,245,240,0.1);
  border-color: var(--ivory);
}

.password-modal-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.password-modal-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ivory);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.password-modal-sub {
  font-size: 0.85rem;
  color: rgba(247,245,240,0.55);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 2rem;
}

.password-input-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.password-input {
  width: 100%;
  background: rgba(247,245,240,0.04);
  border: 1px solid rgba(247,245,240,0.2);
  border-radius: 8px;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  color: var(--ivory);
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.password-input:focus {
  border-color: var(--accent-2);
  background: rgba(247,245,240,0.06);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(247,245,240,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.password-toggle:hover { color: var(--ivory); background: rgba(247,245,240,0.06); }
.password-toggle .password-eye-hide { display: none; }
.password-toggle.is-visible .password-eye-show { display: none; }
.password-toggle.is-visible .password-eye-hide { display: block; }

.password-error {
  font-size: 0.75rem;
  color: #e88a8a;
  min-height: 1.1rem;
  margin-bottom: 1.25rem;
}

.password-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.password-btn-primary {
  background: var(--accent);
  color: var(--ivory);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.password-btn-primary:hover:not(:disabled) {
  background: #B3561F;
  transform: translateY(-1px);
}
.password-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-btn-ghost {
  background: transparent;
  color: rgba(247,245,240,0.5);
  border: none;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.password-btn-ghost:hover { color: var(--ivory); }
