/* ═══════════════════════════════════════════════════════════════════════
   Mohamad Hussein Nasser — Portfolio
   Palette: emerald + gold + cream (light) / deep teal + gold + charcoal (dark)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* light theme — terroso elegante */
  --bg: #f5f1e6;
  --bg-2: #ede6d3;
  --ink: #1f2a26;
  --ink-2: #4a564f;
  --ink-soft: #7a8580;
  --ink-faint: rgba(31, 42, 38, .55);
  --line: rgba(31, 42, 38, .12);
  --line-soft: rgba(31, 42, 38, .07);
  --card: #fbf8ee;
  --card-edge: rgba(31, 42, 38, .08);

  --emerald: #2f6b50;
  --emerald-deep: #1f4a37;
  --emerald-soft: #cfe1d5;
  --gold: #b8893a;
  --gold-soft: #e6c98a;
  --rust: #a85a2c;

  --accent: var(--emerald);
  --accent-2: var(--gold);

  --shadow-sm: 0 1px 2px rgba(31, 42, 38, .06);
  --shadow-md: 0 8px 30px rgba(31, 42, 38, .08);
  --shadow-lg: 0 30px 60px -20px rgba(31, 42, 38, .25);

  --font-display: "Fraunces", "Crimson Pro", Georgia, serif;
  --font-serif: "Crimson Pro", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #11140f;
  --bg-2: #181c14;
  --ink: #ece6d2;
  --ink-2: #c5c1ae;
  --ink-soft: #8e8a78;
  --ink-faint: rgba(236, 230, 210, .55);
  --line: rgba(236, 230, 210, .10);
  --line-soft: rgba(236, 230, 210, .05);
  --card: #1c2018;
  --card-edge: rgba(236, 230, 210, .08);

  --emerald: #6ab089;
  --emerald-deep: #3d8862;
  --emerald-soft: rgba(106, 176, 137, .15);
  --gold: #d4a857;
  --gold-soft: #b88f3f;
  --rust: #c97a48;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

/* watercolor blobs background — same texture as inspiration but emerald palette */
.watercolor-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.watercolor-bg::before,
.watercolor-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .watercolor-bg::before,
[data-theme="dark"] .watercolor-bg::after {
  mix-blend-mode: screen;
  opacity: .25;
}

.watercolor-bg::before {
  width: 60vw;
  height: 60vw;
  top: -10vw;
  right: -15vw;
  background: radial-gradient(circle, var(--gold-soft), transparent 60%);
}

.watercolor-bg::after {
  width: 70vw;
  height: 70vw;
  bottom: -20vw;
  left: -15vw;
  background: radial-gradient(circle, var(--emerald-soft), transparent 60%);
}

.watercolor-bg .blob-3 {
  position: absolute;
  width: 50vw;
  height: 50vw;
  top: 30vh;
  left: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 58, .25), transparent 60%);
  filter: blur(100px);
  mix-blend-mode: multiply;
  opacity: .4;
}

[data-theme="dark"] .watercolor-bg .blob-3 {
  mix-blend-mode: screen;
  opacity: .15;
}

/* tiny dot pattern overlay (like the original) */
.watercolor-bg .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink-faint) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .15;
}

/* ─── layout ──────────────────────────────────────────────────────────── */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

@media (max-width: 1100px) {
  .app { grid-template-columns: 280px 1fr; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
}

/* mobile menu button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .mobile-menu-btn { display: flex; }
}

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 40;
  backdrop-filter: blur(2px);
}

/* floating top-right controls (lang + theme) — always visible */
.floating-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-group {
  display: flex;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 3px;
  gap: 2px;
}

.fc-group button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  font-weight: 600;
}

.fc-group button:hover { color: var(--ink); }

.fc-group button.active {
  background: var(--emerald);
  color: #fbf8ee;
}

[data-theme="dark"] .fc-group button.active {
  background: var(--emerald);
  color: #11140f;
}

.fc-theme {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .18s ease, color .18s ease, transform .25s ease;
}

.fc-theme:hover {
  background: var(--gold);
  color: #fbf8ee;
  transform: rotate(-12deg);
}

[data-theme="dark"] .fc-theme:hover {
  color: #11140f;
}

/* shift hamburger so it doesn't overlap the controls */
@media (max-width: 960px) {
  .mobile-menu-btn { right: auto; left: 18px; }
}

@media (max-width: 480px) {
  .floating-controls { top: 14px; right: 14px; gap: 8px; }
  .fc-group button { padding: 7px 10px; font-size: 10px; }
  .fc-theme { width: 40px; height: 40px; }
}

@media (max-width: 960px) {
  .sidebar-scrim { display: block; }
}

/* ─── sidebar / explorer ─────────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--emerald-deep);
  flex-shrink: 0;
}

[data-theme="dark"] .sidebar-avatar {
  color: var(--emerald);
}

.sidebar-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.1;
}

.sidebar-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 3px;
}

.explorer {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.explorer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.explorer-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.explorer-bar .dot.r { background: #ed6a5e; }
.explorer-bar .dot.y { background: #f5bf4f; }
.explorer-bar .dot.g { background: #62c554; }

.explorer-title {
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 6px;
}

.explorer-list {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
}

.explorer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease;
  user-select: none;
}

.explorer-item:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.explorer-item.active {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-weight: 600;
}

[data-theme="dark"] .explorer-item.active {
  color: var(--emerald);
}

.explorer-item .ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.explorer-item .chev {
  width: 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.explorer-children {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}

.lang-toggle {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  width: fit-content;
  align-self: flex-start;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}

.lang-toggle button.active {
  background: var(--emerald);
  color: #fbf8ee;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .lang-toggle button.active {
  background: var(--emerald);
  color: #11140f;
}

/* ─── main content ──────────────────────────────────────────────────── */

main {
  padding: 0;
  position: relative;
}

.section {
  padding: 100px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

@media (max-width: 1100px) {
  .section { padding: 80px 56px; }
}

@media (max-width: 760px) {
  .section { padding: 70px 24px; min-height: auto; }
}

@media (max-width: 480px) {
  .section { padding: 60px 18px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 72px);
  letter-spacing: .03em;
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-sub { font-size: clamp(15px, 1.6vw, 18px); }
.body-text { font-size: clamp(16px, 1.4vw, 19px); }

.section-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 0 40px;
  line-height: 1.5;
}

.body-text {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
}

.body-text p { margin: 0 0 1.1em; }
.body-text strong { color: var(--ink); font-weight: 600; }
.body-text em.highlight {
  font-style: normal;
  color: var(--emerald);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 65%, var(--emerald-soft) 65%);
  padding: 0 2px;
}

[data-theme="dark"] .body-text em.highlight {
  background: linear-gradient(180deg, transparent 65%, rgba(106, 176, 137, .25) 65%);
}

.body-text em.gold {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

/* ─── hero ──────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 80px 80px 160px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero { padding: 70px 56px 140px; }
}

@media (max-width: 760px) {
  .hero { padding: 60px 24px 130px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 18px 120px; }
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-portrait {
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  border-radius: 50%;
  margin: 0 auto 36px;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

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

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 7.5vw, 110px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--emerald-deep);
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  padding: .12em 0 .18em;
}

[data-theme="dark"] .hero-name {
  color: var(--ink);
}

.hero-name .gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 700;
}

.hero-tagline {
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-tagline .sep {
  color: var(--gold);
  font-weight: 700;
}

.hero-status {
  margin: 36px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.hero-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(47, 107, 80, .55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 80, .5); }
  70% { box-shadow: 0 0 0 10px rgba(47, 107, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 80, 0); }
}

.hero-explore {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-explore .arr {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

/* ─── about — character + setup ─────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; }
}

.scene {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 700px;
  justify-self: center;
}

.scene-setup {
  position: absolute;
  right: 0;
  bottom: 6%;
  width: 95%;
  display: grid;
  place-items: end end;
}

.scene-setup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(31, 42, 38, .18));
}

.scene-character {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  pointer-events: none;
  z-index: 2;
}

.scene-character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 22px rgba(31, 42, 38, .22));
  animation: float-character 4.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes float-character {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

.scene-shadow {
  position: absolute;
  bottom: 2%;
  left: 18%;
  width: 35%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(31, 42, 38, .35), transparent 70%);
  filter: blur(8px);
  z-index: 1;
  animation: shadow-float 4.5s ease-in-out infinite;
}

@keyframes shadow-float {
  0%, 100% { width: 35%; opacity: .6; }
  50%      { width: 27%; opacity: .35; }
}

.about-quote {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.about-quote .qmark {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
}

.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 8px 0 0;
}

.about-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: normal;
}

/* ─── skills grid ───────────────────────────────────────────────────── */

.section-head-center {
  text-align: center;
  margin: 0 auto 60px;
}

.skills-section { text-align: center; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 22px;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
}

.skill-tile {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 14px;
}

.skill-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.skill:hover .skill-tile {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .skill-tile {
  background: var(--card);
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ─── timeline / experience ─────────────────────────────────────────── */

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 56px;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.tl-item.right .tl-card { grid-column: 3; }
.tl-item.left  .tl-card { grid-column: 1; }
.tl-item.right .tl-empty { grid-column: 1; }
.tl-item.left  .tl-empty { grid-column: 3; }

.tl-node {
  grid-column: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--emerald);
  justify-self: center;
  margin-top: 22px;
  box-shadow: 0 0 0 4px var(--bg);
  position: relative;
  z-index: 1;
}

.tl-node.gold { border-color: var(--gold); }
.tl-node.rust { border-color: var(--rust); }
.tl-node.deep { border-color: var(--emerald-deep); }
[data-theme="dark"] .tl-node.deep { border-color: var(--emerald); }

.tl-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}

.tl-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.tl-desc {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  background: var(--bg-2);
  color: var(--ink-2);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

@media (max-width: 760px) {
  .timeline::before { left: 18px; }
  .tl-item { grid-template-columns: 36px 1fr; }
  .tl-item.left .tl-card,
  .tl-item.right .tl-card { grid-column: 2; }
  .tl-empty { display: none; }
  .tl-node { grid-column: 1; }
}

/* ─── projects ──────────────────────────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card.placeholder {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
}

.project-card .pkind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.project-card .ptitle {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
  color: var(--ink);
}

.project-card .pdesc {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  flex-grow: 1;
}

.project-card .ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── reading — bookshelf ───────────────────────────────────────────── */

.reading {
  max-width: 1080px;
  margin: 0 auto;
}

.bookshelf {
  margin-top: 48px;
}

.bookshelf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.bookshelf-floor {
  height: 14px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--gold) 70%, black 30%) 0%,
    color-mix(in oklab, var(--gold) 45%, black 55%) 100%);
  border-radius: 0 0 8px 8px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ─── book spine ──────────────────────────────────────────────────────── */

.bs-book {
  position: relative;
  flex: 0 0 88px;
  height: 560px;
  border: none;
  border-radius: 3px 6px 6px 3px;
  background-color: var(--book-color, #4a7c59);
  background-image:
    /* vertical shading: dark left edge, highlight, dark right edge (3D) */
    linear-gradient(
      to right,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.10) 18%,
      rgba(255,255,255,0.10) 42%,
      rgba(0,0,0,0.08) 68%,
      rgba(0,0,0,0.35) 100%
    ),
    /* diagonal leather grain */
    repeating-linear-gradient(
      158deg,
      transparent 0px, transparent 7px,
      rgba(0,0,0,0.022) 7px, rgba(0,0,0,0.022) 8px
    ),
    /* horizontal micro-grain */
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 3px,
      rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px
    );
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-basis 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.3s ease;
  box-shadow:
    inset -4px 0 10px rgba(0,0,0,0.3),
    4px 0 8px rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.22);
}

/* top gold accent strip */
.bs-book::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--book-color, #4a7c59) 45%, #c8922a 55%),
    color-mix(in oklab, var(--book-color, #4a7c59) 25%, #e8b84b 75%),
    color-mix(in oklab, var(--book-color, #4a7c59) 45%, #c8922a 55%)
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}

/* dashed stitching border inset */
.bs-book::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,0.32);
  border-radius: 1px;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
}

/* ─── diamond ornaments ───────────────────────────────────────────────── */

.bs-deco-t,
.bs-deco-b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 5;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.bs-deco-t { top: 12px; }
.bs-deco-b { bottom: 36px; }

/* ─── decorative icon (resting state only) ────────────────────────────── */

.bs-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  transition: opacity 0.2s ease;
  z-index: 2;
}

/* ─── vertical spine title (resting state only) ───────────────────────── */

.bs-spine-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  max-height: 400px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: opacity 0.2s ease;
  z-index: 2;
}

/* ─── "lendo agora" badge ─────────────────────────────────────────────── */

.bs-flag {
  position: absolute;
  bottom: 12px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s ease, top 0.2s ease, bottom 0.2s ease,
              left 0.2s ease, right 0.2s ease;
  z-index: 3;
}

.bs-flag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--book-color, #4a7c59) 20%, #6ee89a 80%);
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}

/* ─── cover image (hidden in resting state) ───────────────────────────── */

.bs-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 57%;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease 0.22s;
  z-index: 2;
}

.bs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bs-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--book-color, #4a7c59) 85%, white 15%) 0%,
    var(--book-color, #4a7c59) 100%
  );
}

.bs-cover .bcf-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}

.bs-cover .bcf-author {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
}

/* ─── info panel (hidden in resting state) ────────────────────────────── */

.bs-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 43%;
  opacity: 0;
  overflow: hidden;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: opacity 0.2s ease 0.22s;
  z-index: 2;
}

.bs-info-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-info-author {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.bs-info-note {
  font-family: var(--font-serif);
  font-size: 8.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.6);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── active state ────────────────────────────────────────────────────── */

.bs-book.is-active {
  flex-basis: 300px;
}

.bs-book.is-active::before {
  opacity: 0;
}

.bs-book.is-active .bs-icon,
.bs-book.is-active .bs-spine-title,
.bs-book.is-active .bs-deco-t,
.bs-book.is-active .bs-deco-b {
  opacity: 0;
  pointer-events: none;
}

.bs-book.is-active .bs-cover,
.bs-book.is-active .bs-info {
  opacity: 1;
}

.bs-book.is-active .bs-flag {
  bottom: auto;
  top: 10px;
  left: auto;
  right: 8px;
  font-size: 7px;
  padding: 3px 8px;
}

/* ─── inactive state (other books when one is hovered) ───────────────── */

.bs-book.is-inactive {
  flex-basis: 52px;
  opacity: 0.45;
}

/* ─── responsive ──────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .bookshelf-row { gap: 4px; }
  .bs-book { flex-basis: 70px; height: 420px; }
  .bs-book.is-active { flex-basis: 250px; }
  .bs-book.is-inactive { flex-basis: 46px; }
  .bs-spine-title { font-size: 15px; }
}

@media (max-width: 480px) {
  .bs-book { flex-basis: 60px; height: 340px; }
  .bs-book.is-active { flex-basis: 210px; }
  .bs-spine-title { font-size: 13px; }
}

/* ─── contact ───────────────────────────────────────────────────────── */

.contact-section { text-align: center; }

.contact-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--emerald);
  color: #fbf8ee;
  border-color: var(--emerald);
}

[data-theme="dark"] .contact-links a:hover {
  color: #11140f;
}

.contact-links a svg { width: 18px; height: 18px; }

.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 2px;
  text-decoration: none;
}

footer.foot {
  padding: 28px 80px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  footer.foot { padding: 28px 56px; }
}

@media (max-width: 760px) {
  footer.foot { padding: 24px; flex-direction: column; gap: 8px; }
}

/* contact links wrap nicely on mobile */
@media (max-width: 480px) {
  .contact-links { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-links a { justify-content: center; }
  .hero-tagline { gap: 10px; }
  .hero-status { font-size: 11px; padding: 8px 14px; }
}

/* scene scales with viewport */
.scene { max-width: min(700px, 92vw); }
@media (max-width: 760px) {
  .scene { aspect-ratio: 4/4.5; }
  .scene-character { width: 65%; }
}

/* projects grid stacks earlier */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* timeline tightens */
@media (max-width: 760px) {
  .tl-item { margin-bottom: 36px; }
  .tl-card { padding: 18px 20px; }
  .tl-company { font-size: 22px; }
}

/* ─── certificates — gallery wall ───────────────────────────────────── */

.certificates-section {
  padding-top: 100px;
  padding-bottom: 120px;
}

.certificates-section .section-head-center {
  margin-bottom: 64px;
  max-width: 720px;
}

.wall {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 40px 80px;
  border-radius: 18px;
  background:
    /* hint of vignette */
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.05), transparent 60%),
    /* faint horizontal wallpaper bands */
    repeating-linear-gradient(0deg,
      rgba(31, 42, 38, .015) 0px,
      rgba(31, 42, 38, .015) 2px,
      transparent 2px,
      transparent 7px),
    /* warm plaster gradient */
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg-2) 70%, white 30%) 0%,
      var(--bg-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -40px 80px rgba(31, 42, 38, .06),
    var(--shadow-md);
  border: 1px solid var(--card-edge);
}

[data-theme="dark"] .wall {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.25), transparent 60%),
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.012) 0px,
      rgba(255,255,255,.012) 2px,
      transparent 2px,
      transparent 7px),
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg-2) 60%, black 40%) 0%,
      var(--bg-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 -40px 80px rgba(0,0,0,.35),
    var(--shadow-md);
}

/* the picture rail — a thin molding strip across the top of the wall */
.wall-rail {
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--gold) 80%, black 20%) 0%,
    var(--gold) 50%,
    color-mix(in oklab, var(--gold) 60%, black 40%) 100%);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(31,42,38,.18);
  pointer-events: none;
}

.wall-frames {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 68px 32px;
  position: relative;
  padding-top: 18px;
  align-items: start;
  justify-items: center;
}

/* frame container — flush-mounted on the wall, no tilt */
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}

.frame:hover {
  transform: translateY(-4px);
  z-index: 5;
}

.frame:hover .frame-body {
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.25),
    0 32px 50px rgba(31, 42, 38, .35),
    0 12px 24px rgba(31, 42, 38, .25);
}


/* size variants — column span only; aspect-ratio keeps proportions clean */
.frame--lg { grid-column: span 5; aspect-ratio: 4 / 5; max-width: 360px; }
.frame--md { grid-column: span 4; aspect-ratio: 4 / 5; max-width: 280px; }
.frame--sm { grid-column: span 3; aspect-ratio: 4 / 5.2; max-width: 220px; }

/* flush, aligned mounting — no offset nudges */

/* the cord that "hangs" the frame from the rail */
.frame-cord {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(31,42,38,.6), rgba(31,42,38,.25));
  transform: translateX(-.5px) rotate(8deg);
  transform-origin: top center;
  pointer-events: none;
}

.frame-cord::after {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,42,38,.55), transparent);
  transform: rotate(-16deg);
}

[data-theme="dark"] .frame-cord { background: linear-gradient(180deg, rgba(236,230,210,.5), rgba(236,230,210,.18)); }
[data-theme="dark"] .frame-cord::after { background: linear-gradient(90deg, transparent, rgba(236,230,210,.45), transparent); }

.frame-nail {
  position: absolute;
  top: -32px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4b274, #7a5a2c 70%, #3b2a14 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  transform: translateX(-3px);
}

/* the actual frame body — wood + matte + paper */
.frame-body {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background:
    /* inner darker bevel */
    linear-gradient(135deg, rgba(0,0,0,.12), transparent 30%, transparent 70%, rgba(0,0,0,.18)),
    /* wood grain */
    repeating-linear-gradient(90deg,
      rgba(60,30,10,.18) 0px,
      rgba(60,30,10,.18) 1px,
      transparent 1px,
      transparent 4px),
    /* wood base */
    linear-gradient(180deg, #6b4a2a 0%, #4b3018 50%, #3a2410 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 18px 30px rgba(31, 42, 38, .25),
    0 6px 14px rgba(31, 42, 38, .18);
  transition: box-shadow .3s ease;
}

/* the matte board around the certificate paper */
.frame-mat {
  width: 100%;
  height: 100%;
  padding: 14px;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--mat) 70%, white 30%) 0%,
      var(--mat) 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  position: relative;
}

/* the certificate paper itself */
.cert-paper {
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,.012) 0px,
      rgba(0,0,0,.012) 1px,
      transparent 1px,
      transparent 4px),
    linear-gradient(180deg, #fdf8ea 0%, #f4ebd0 100%);
  border: 1px double color-mix(in oklab, var(--accent, var(--gold)) 70%, black 30%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.04);
  color: #2a2418;
}

/* colored header band */
.cert-hd {
  width: 100%;
  padding: 7px 10px;
  background: var(--mat, #2d5f4f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-hd-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
}

/* main content wrapper */
.cert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  gap: 3px;
}

.cert-paper-seal {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.cert-paper-seal .seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--accent, var(--gold)) 80%, black 20%);
  opacity: .8;
}

.cert-paper-seal .seal-ring.inner {
  inset: 5px;
  border-style: dashed;
  opacity: .6;
}

.cert-paper-seal .seal-star {
  color: color-mix(in oklab, var(--accent, var(--gold)) 80%, black 20%);
  font-size: 14px;
  line-height: 1;
  position: relative;
}

.cert-paper-eyebrow {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .35em;
  color: color-mix(in oklab, var(--mat) 60%, black 40%);
  text-transform: uppercase;
  margin-top: 4px;
}

.cert-paper-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 17px);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 4px 0 0;
  text-wrap: balance;
  color: #1b1610;
}

.cert-paper-rule {
  width: 50%;
  height: 1px;
  background: color-mix(in oklab, var(--accent, var(--gold)) 70%, black 30%);
  opacity: .55;
  margin: 6px 0 4px;
}

.cert-paper-issuer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(9px, .9vw, 12px);
  color: #4a3e26;
  line-height: 1.25;
  text-wrap: balance;
}

.cert-paper-year {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .25em;
  color: color-mix(in oklab, var(--mat) 50%, black 50%);
  padding: 4px 0 8px;
  flex-shrink: 0;
}

/* always-visible download pill below each frame */
.frame-dl-btn {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 4;
}

.frame-dl-btn:hover {
  background: var(--gold);
  color: #1a1208;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .frame-dl-btn:hover { color: #11140f; }

/* the desk plant — sits in the corner of the wall composition */
.wall-plant {
  position: absolute;
  right: 14px;
  bottom: -42px;
  width: 70px;
  height: 90px;
  pointer-events: none;
  z-index: 1;
}

.plant-pot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 32px;
  background: linear-gradient(180deg, #b07a4a 0%, #7a4e2a 100%);
  border-radius: 4px 4px 8px 8px;
  box-shadow: inset 0 4px 0 rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.18);
}

.plant-leaf {
  position: absolute;
  background: linear-gradient(180deg, #4a8a5e 0%, #2d5f3e 100%);
  border-radius: 50% 50% 50% 0 / 60% 60% 40% 40%;
  transform-origin: bottom center;
}

.plant-leaf.l1 { width: 16px; height: 50px; left: 28%; bottom: 28px; transform: rotate(-22deg); }
.plant-leaf.l2 { width: 18px; height: 60px; left: 46%; bottom: 28px; transform: rotate(2deg);  }
.plant-leaf.l3 { width: 16px; height: 48px; left: 60%; bottom: 28px; transform: rotate(20deg); }

/* footer hint inside the section */
.cert-tip {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 36px;
}

/* responsive: at narrower widths, collapse to 6 cols, then 2, then 1 */
@media (max-width: 1100px) {
  .wall-frames { grid-template-columns: repeat(6, 1fr); gap: 62px 26px; }
  .frame--lg { grid-column: span 3; max-width: 300px; }
  .frame--md { grid-column: span 3; max-width: 260px; }
  .frame--sm { grid-column: span 2; max-width: 200px; }
}

@media (max-width: 760px) {
  .wall { padding: 56px 22px 70px; }
  .wall-rail { top: 30px; left: 6%; right: 6%; }
  .wall-frames { grid-template-columns: repeat(2, 1fr); gap: 56px 20px; padding-top: 14px; }
  .frame--lg, .frame--md, .frame--sm { grid-column: span 1; max-width: 260px; }
  .wall-plant { right: 10px; bottom: -34px; width: 56px; height: 72px; }
}

@media (max-width: 480px) {
  .wall-frames { grid-template-columns: 1fr; gap: 60px 0; }
  .frame--lg, .frame--md, .frame--sm { max-width: 280px; margin: 0 auto; }
}

