*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f2f2f2;
  --bg-card:   #ffffff;
  --bg-phone:  #f5f2f2;
  --text:      #171717;
  --muted:     #636d75;
  --accent:    #aa0911;
  --border:    #d4d7d9;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", "Onest Placeholder", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on;
}

a { color: inherit; text-decoration: none; }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* ── LEFT SIDEBAR ── */
.sidebar {
  width: 400px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Profile photo — square, 100x100, overflow hidden */
.profile-photo {
  width: 100px;
  height: 100px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Good design goes unnoticed" heading */
.hero-heading {
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: pre-wrap;
  width: 100%;
}

/* Greeting paragraph */
.hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 500;
}

/* Contacts column */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}

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

.contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Sidebar bottom */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Audio player */
.audio-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-wrap audio {
  width: 100%;
  height: 28px;
  accent-color: var(--text);
  /* Hide default controls chrome, show simple bar */
}

audio::-webkit-media-controls-panel {
  background: transparent;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-text {
  font-size: 12px;
  color: var(--border);
  font-weight: 400;
  white-space: pre;
}

/* ── RIGHT COLUMN ── */
.content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  overflow: hidden;
}

/* ── NAV TABS ── */
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: min-content;
  overflow: hidden;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  white-space: pre;
}

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

.nav-link.active {
  color: var(--text);
  font-weight: 500;
}

.nav-link .ext-icon {
  width: 16px;
  height: 16px;
}

/* ── CASES COLUMN ── */
.cases-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* ── CASE CARD (desktop, landscape) ── */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: opacity 0.15s;
}

.case-card:hover { opacity: 0.92; }

/* Case 1 — smaller card */
.case-card.case-sm {
  width: 360px;
}

/* Case 2 — full width */
.case-card.case-lg {
  width: 100%;
}

/* Landscape image container */
.case-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e4e4;
}

.case-img-wrap.h-sm {
  height: 225px;
}

.case-img-wrap.h-lg {
  height: 431px;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Case bottom row */
.case-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.case-title-text {
  flex: 1 0 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.case-explore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s;
}

.case-explore:hover { color: var(--text); }

.case-explore svg {
  width: 16px;
  height: 16px;
  transform: rotate(45deg); /* arrow-up-right */
  flex-shrink: 0;
}

/* ── MOBILE PHONE CARDS (hidden on desktop) ── */
.phone-row {
  display: none;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 0 0;
  overflow: hidden;
}

.phone-mockup {
  background: var(--bg-phone);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 280px;
  position: relative;
}

.phone-slideshow {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.phone-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s;
}

.phone-slide.active {
  display: flex;
  opacity: 1;
}

.phone-slide img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* ── INBETWEEN CARD ── */
.inbetween-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.inbetween-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.inbetween-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.inbetween-coming {
  font-size: 14px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */

/* Tablet (810–1199px) */
@media (max-width: 1199px) {
  .sidebar { width: 330px; }
  .case-card.case-sm { width: 100%; }
}

/* Mobile (< 810px) */
@media (max-width: 809px) {
  .page {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
  }

  .content { padding: 0; }

  /* Hide desktop case cards, show phone cards */
  .case-card { display: none; }
  .phone-row { display: flex; }

  .nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
