/* ============================================================
   GrowthScale — /work (portfolio)
   Uses the tokens, nav, section header, CTA band and footer from
   styles.css. This file only adds the intro and the project cases.
   To add a project: copy one <article class="case"> block in
   work/index.html and drop its screenshots in assets/work/
   (desktop 1440×900, phone 780×1688).
   ============================================================ */

.nav-menu a[aria-current="page"] { color: var(--orange); }

/* ---- Intro ---- */
.work-hero {
  padding: clamp(64px, 14vh, 160px) var(--gutter) clamp(64px, 11vh, 130px);
}
.work-hero h1 { font-size: var(--step-hero); margin-top: 22px; max-width: 14ch; }
.work-hero .mono-lead { margin-top: 28px; }

/* ---- Project case ---- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding: clamp(40px, 6vh, 72px) 0 clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.case:first-of-type { border-top: none; padding-top: 0; }

/* screenshots: a browser window with a phone overlapping its corner */
.case-shots { position: relative; padding: 0 clamp(36px, 6%, 80px) clamp(44px, 8%, 90px) 0; }
.browser {
  display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.3s;
}
a.browser:hover { border-color: var(--orange); }
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: 0.03em; color: var(--gray);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--dark-gray); }
.browser-bar b { font-weight: 400; margin: 0 auto; padding-right: 33px; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser img { transition: transform 0.9s var(--ease); }
a.browser:hover img { transform: scale(1.015); }

.phone {
  position: absolute; right: 0; bottom: 0;
  width: clamp(96px, 23%, 200px);
  padding: 5px; border-radius: 22px;
  background: #0b0b0b; border: 1px solid #2a2a2a;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.phone img { width: 100%; height: auto; border-radius: 17px; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; }

/* details column */
.case-info { display: flex; flex-direction: column; align-items: flex-start; }
.case-num { font-family: var(--sans); font-size: 20px; color: var(--gray); letter-spacing: -0.02em; }
.case-name {
  font-family: var(--sans); font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(30px, 2.8vw, 46px); margin-top: 14px;
}
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }
.case-pitch { margin-top: 26px; font-size: 15px; line-height: 1.6; color: var(--white); max-width: 40ch; text-wrap: pretty; }
.case-built { margin-top: 22px; width: 100%; border-top: 1px solid var(--line); }
.case-built li {
  display: flex; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5; color: var(--light-gray);
}
.case-built li::before { content: "+"; color: var(--orange); flex: 0 0 auto; }
.case-stack { margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }
.case-link { margin-top: 28px; }
.case-soon {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--light-gray);
}
.case-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* light interface: the phone frame stays dark, shadow softer */
:root[data-theme="light"] .phone { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .case { grid-template-columns: 1fr; }
  .case-info { max-width: 620px; }
}
@media (max-width: 560px) {
  .case-shots { padding: 0 28px 48px 0; }
  .phone { width: 31%; border-radius: 16px; padding: 4px; }
  .phone img { border-radius: 12px; }
  .browser-bar { height: 28px; }
  .browser-bar b { padding-right: 0; margin: 0 0 0 8px; }
}
