/* ===============================================================
   desktop.css — LAYOUT for windows / landscape (wider than 768px).
   Loaded only on these screens, so nothing here touches phone.css.
   =============================================================== */

:root {
  --header-h: clamp(124px, 17vh, 160px);
}

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

/* Header: name top-left, tabs centred */
.site-header {
  position: relative;
  z-index: 5;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
}
.signature { position: absolute; left: 28px; top: 20px; font-size: calc(2.4rem * var(--title-scale, 1)); }
.signature small { font-size: 1.1rem; padding-left: 2px; }

.site-header { align-items: flex-start; }
.banner-wrap { margin-top: -12px; }
.banner { padding: 26px clamp(36px, 5vw, 64px) 26px; }
.tabs { display: flex; gap: clamp(32px, 6vw, 92px); align-items: center; }
.tab { font-size: calc(clamp(2.8rem, 4.8vw, 4.2rem) * var(--title-scale, 1)); }

/* Pages */
main {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding: 8px 32px 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(clamp(3rem, 5.5vw, 4.2rem) * var(--title-scale, 1));
  --page-top: 24px;
  --heading-room: calc(var(--page-title-size) * 1.15 + 18px);
}

/* Home: showreel centred 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: min(960px, 100%, (100vh - var(--header-h) - 170px) * 16 / 9); }

/* Portfolio: three-up grid */
.project-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.project-card .placeholder-title { font-size: 2.2rem; }
.card-caption strong { font-size: calc(2rem * var(--title-scale, 1)); }
.card-caption span { font-size: 1rem; }

/* Contact */
#page-contact { display: flex; justify-content: center; align-items: flex-start; padding-top: calc(var(--page-top) + var(--heading-room)); }
.note { width: min(580px, 100%); padding: 38px 44px 32px; }
.contact-email { font-size: calc(2.8rem * var(--title-scale, 1)); }

.placeholder-title { font-size: clamp(2.6rem, 5vw, 4rem); }
