/* ===============================================================
   phone.css — LAYOUT for vertical phones (768px wide and below).
   Loaded only on these screens, so nothing here touches desktop.css.
   Same composition as desktop: tabs on top, reel in the middle,
   just stacked for a tall screen.
   =============================================================== */

:root {
  --header-h: 128px;
}

body { font-size: calc(1.3rem * var(--body-scale, 1)); }

/* Header: name centred above the tabs */
.site-header {
  position: relative;
  z-index: 5;
  min-height: var(--header-h);
  display: flex;
  flex-direction: column-reverse;   /* banner hangs from the top, name under it */
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 8px;
}
.signature { align-items: center; font-size: calc(2rem * var(--title-scale, 1)); }
.signature small { font-size: .85rem; }

.banner-wrap { width: 100%; margin-top: -10px; }
.banner { padding-top: 22px; }
.banner { padding: 14px 10px 20px; }
.tabs { display: flex; justify-content: center; gap: clamp(14px, 5vw, 26px); align-items: center; }
.tab { font-size: calc(clamp(1.45rem, 8.2vw, 2.7rem) * var(--title-scale, 1)); }

main {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: 8px 16px 48px;
}
.page-title { font-size: var(--page-title-size); line-height: 1.15; }

/* Showreel frame and contact box start at exactly the same height:
   both pages are anchored to the top, and the contact page leaves the
   same room the "Showreel" heading takes above the frame. */
:root {
  --page-title-size: calc(2.9rem * var(--title-scale, 1));
  --page-top: 24px;
  --heading-room: calc(var(--page-title-size) * 1.15 + 18px);
}

/* Home: reel centred vertically below the tabs */
#page-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--page-top);
}
#page-home .page-title { margin: 0 0 18px; }
.reel-frame { width: calc(100% - 12px); }
.sketch-frame::before { inset: -7px; }
.sketch-frame::after  { inset: -11px -5px -4px -9px; }

/* Portfolio: one column */
.project-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 0 6px;
}
.project-card .placeholder-title { font-size: 2rem; }
.card-caption strong { font-size: calc(1.9rem * var(--title-scale, 1)); }
.card-caption span { font-size: .95rem; }

/* Contact */
#page-contact { display: flex; justify-content: center; align-items: flex-start; padding-top: calc(var(--page-top) + var(--heading-room)); }
.note { width: calc(100% - 12px); padding: 30px 22px 26px; }
.contact-email { font-size: calc(2.2rem * var(--title-scale, 1)); }

.placeholder-title { font-size: 2.6rem; }
