/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@400;600&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--page-bg);
  font-family: 'Inter', sans-serif;
  display: flex;        /* row: .left-col | .illus-col */
  flex-direction: row;
}

/* ===== Page themes ===== */
.theme-orange { --page-bg: #FF6600; }
.theme-navy   { --page-bg: #2C5282; }
.theme-yellow { --page-bg: #FFD700; }
.theme-green  { --page-bg: #3D6E4F; }
.theme-purple { --page-bg: #4A3A7A; }

/* ===== Left column (nav + content) ===== */
.left-col {
  flex: 0 0 58%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1.4rem 2.5rem;
  flex-shrink: 0;
}

nav a {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}

nav a:hover  { opacity: 1; }
nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ===== Content area below nav ===== */
.page-body {
  flex: 1;
  padding: 0 2.5rem 2.5rem;
  display: flex;
  min-height: 0;
  min-width: 0;
}

.content-box {
  background: #fff;
  border: 5px solid #111;
  padding: 2.5rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  min-width: 0;
}

.content-box h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: #111;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.content-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.75rem;
}

/* Inline links inside body copy */
.content-box p a {
  color: #0057c8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-box p a:hover { color: #003e8f; }

/* ===== Illustration column (right, full viewport height) ===== */
.illus-col {
  flex: 0 0 42%;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  position: relative;
}

.illus-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* ===== Speech bubble CV download (career page) ===== */
.cv-bubble {
  position: absolute;
  top: 4%;
  right: 4%;
  max-width: 230px;
  background: #fff;
  border: 4px solid #111;
  border-radius: 22px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  z-index: 10;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #111;
  line-height: 1.3;
  transition: transform 0.12s;
}

.cv-bubble:hover { transform: scale(1.04); }

/* Non-linking variants, used while the CV download is switched off */
.cv-bubble--static        { cursor: default; }
.cv-bubble--static:hover  { transform: none; }

.cv-mobile-link--static {
  color: #555;
  text-decoration: none;
  cursor: default;
  font-weight: 600;
}

/* Bottom-left pointing tail — outer border triangle */
.cv-bubble::before {
  content: '';
  position: absolute;
  bottom: -26px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 20px solid transparent;
  border-top: 26px solid #111;
}

/* Bottom-left pointing tail — inner white fill */
.cv-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #fff;
  z-index: 1;
}

/* Mobile: plain text link inside content box instead */
.cv-mobile-link {
  display: none;
  font-weight: 600;
  color: #2C5282;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .cv-bubble      { display: none; }
  .cv-mobile-link { display: inline-block; }
}

/* ===== Video card (media page) ===== */
.video-card {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.video-card .video-title {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #111;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.video-card .video-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.75rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-article-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2C5282;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-article-link:hover { color: #1A3A5C; }

.video-description {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

/* ===== Section headings within content box ===== */
.section-heading {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #111;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  border-bottom: 3px solid #111;
  padding-bottom: 0.2rem;
}

/* ===== Profile blurb ===== */
.profile-blurb {
  margin-bottom: 1.2rem;
}

/* ===== Achievement bullet lists ===== */
.achievements {
  margin: 0.3rem 0 0 1.1rem;
  padding: 0;
}

.achievements li {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

/* ===== Career entries ===== */
.entries {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.entry {
  border-left: 4px solid #111;
  padding-left: 1rem;
}

.entry .role {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: #111;
}

.entry .company-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.entry p {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}

/* ===== Media items ===== */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.media-item {
  border-left: 4px solid #111;
  padding-left: 1rem;
}

.media-item .media-title {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: #111;
}

.media-item .media-meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.media-item a {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0057c8;
  text-decoration: none;
}

.media-item a:hover { text-decoration: underline; }

/* ===== Contact ===== */
/* (The old .contact-email / .contact-linkedin rules were removed with the
   contact page rebuild — see the CONTACT PAGE section at the end.) */

/* ===== Mobile responsive (≤768px) ===== */
@media (max-width: 768px) {
  /*
   * Switch body to a single-column grid.
   * .left-col uses display:contents to dissolve itself so that
   * its children (nav, .page-body) become direct grid children
   * of body — letting us place them in explicit rows independently
   * of .illus-col, which is a DOM sibling, not a DOM child.
   *
   * Resulting visual order: nav (row 1) → illustration (row 2) → content (row 3)
   */
  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    min-height: 100vh;
  }

  /* Dissolve the wrapper — nav and .page-body step up into the grid */
  .left-col {
    display: contents;
  }

  /* Row 1 — Navigation */
  nav {
    grid-row: 1;
    padding: 0.25rem 1.25rem;
    gap: 0 1.25rem;
    flex-wrap: wrap;
    align-items: center;
  }

  /* 44px minimum tap target on each link */
  nav a {
    font-size: 1.05rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Row 2 — Illustration: 250px tall, centered, not cropped */
  .illus-col {
    grid-row: 2;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* reset desktop flex sizing */
    flex: none;
    align-self: auto;
  }

  .illus-col img {
    height: 100%;
    width: auto;
    /* override desktop right-anchoring — centre on mobile */
    object-position: bottom center;
  }

  /* Row 3 — Content box: full width, readable padding */
  .page-body {
    grid-row: 3;
    padding: 0 1.25rem 1.5rem;
  }

  .content-box {
    padding: 1.25rem 1.5rem;
    justify-content: flex-start;
  }

  .content-box h1 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    margin-bottom: 1rem;
  }
}

/* ===================================================================
   CAREER PAGE
   The content box becomes a fixed header (blurb + jump nav) above a
   scrolling panel, so the jump nav stays put while the roles scroll.
   =================================================================== */

.content-box--career,
.content-box--panel {
  padding: 0;
  justify-content: flex-start;
  overflow: hidden;            /* .career-scroll does the scrolling */
}

/* ----- Fixed header ----- */
.career-head,
.panel-head {
  flex-shrink: 0;
  min-width: 0;
  padding: 1.5rem 2.25rem 0;
  border-bottom: 5px solid #111;
  background: #fff;
}

.career-blurb,
.panel-blurb {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 0.9rem;
}

/* ----- Jump navigation chips ----- */
.jump-nav {
  display: flex;
  min-width: 0;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.9rem;
  scrollbar-width: none;
}

.jump-nav::-webkit-scrollbar { display: none; }

.jump-chip {
  flex: 0 0 auto;
  font-family: 'Bangers', cursive;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #111;
  text-decoration: none;
  background: #fff;
  border: 2px solid #111;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.12s;
}

.jump-chip:hover  { transform: translateY(-2px); }
.jump-chip.active { background: #111; color: #fff; }

/* ----- Scrolling panel ----- */
.career-scroll,
.panel-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem 2.25rem 2rem;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Vertical spine running behind the badges */
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #111;
  z-index: 0;
}

.job {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  align-items: start;
}

/* ----- Timeline marker (small colour square sitting on the spine) ----- */
.job-marker {
  width: 22px;
  height: 22px;
  margin: 14px auto 0;
  border: 3px solid #111;
  background: var(--accent, #FF6600);
  box-shadow: 2px 2px 0 #111;
}

/* ----- Logo plate -----
   Height is fixed, width follows the logo's own aspect ratio, so wide
   wordmarks (eye square, Savanta) get the room they need while square
   marks (Lesara) stay square. ------------------------------------------- */
.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  max-width: 180px;      /* keeps a long wordmark from dominating the card */
  padding: 3px 6px;
  border: 2px solid #111;
  background: #fff;
  flex: 0 0 auto;
}

.logo-plate img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-plate--edu {
  height: 52px;
  max-width: 90px;
}

/* ----- Role card ----- */
.job-card {
  min-width: 0;
  overflow-wrap: break-word;
  background: #fff;
  border: 3px solid #111;
  border-top: 8px solid var(--accent, #FF6600);
  box-shadow: 5px 5px 0 #111;
  padding: 1rem 1.15rem;
  transition: transform 0.12s, box-shadow 0.12s;
}

.job-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #111;
}

.job-period {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: #111;
  color: #fff;
  padding: 0.12rem 0.5rem;
}

.job-role {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: #111;
  line-height: 1.2;
}

.job-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.4rem;
}

.job-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 0.5rem;
}

/* ----- Card header: logo plate + date tag ----- */
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

/* ----- Education ----- */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.edu {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #111;
  padding: 0.75rem 0.9rem;
}

.edu-text { min-width: 0; }

.edu-degree {
  font-family: 'Bangers', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #111;
  line-height: 1.25;
}

.edu-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

/* ----- Published work links ----- */
.job-links {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 2px dashed #ccc;
}

.job-links-label {
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #111;
  margin-bottom: 0.4rem;
}

.job-links a {
  display: block;
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0057c8;
  text-decoration: none;
  padding: 0.22rem 0 0.22rem 1.1rem;
}

.job-links a::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #111;
}

.job-links a:hover { text-decoration: underline; }

/* ----- Career page on mobile ----- */
@media (max-width: 768px) {
  .content-box--career,
  .content-box--panel { padding: 0; }
  .career-head,
  .panel-head         { padding: 1rem 1.25rem 0; }
  .career-scroll,
  .panel-scroll       { padding: 1.25rem; }

  .timeline::before { display: none; }

  .job         { grid-template-columns: 24px 1fr; gap: 0.6rem; }
  .job-marker  { width: 16px; height: 16px; margin-top: 12px; }
  .job-card    { padding: 0.85rem 0.9rem; box-shadow: 4px 4px 0 #111; }
  .logo-plate  { height: 38px; }
  .edu         { box-shadow: 3px 3px 0 #111; padding: 0.65rem 0.7rem; gap: 0.7rem; }
  .edu-degree  { font-size: 1rem; }
  .job-card:hover { transform: none; box-shadow: 4px 4px 0 #111; }
}

/* ===================================================================
   MEDIA PAGE
   =================================================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.media-card {
  min-width: 0;
  background: #fff;
  border: 3px solid #111;
  border-top: 8px solid var(--accent, #FF6600);
  box-shadow: 5px 5px 0 #111;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s, box-shadow 0.12s;
}

.media-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #111;
}

/* ----- Click-to-play thumbnail ----- */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 3px solid #111;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
}

.facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crops the bars off a 4:3 fallback thumbnail */
  display: block;
}

/* Comic-style play button */
.facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border: 4px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 3px 3px 0 #111;
  transition: transform 0.14s, background 0.14s;
}

.facade-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 20px solid #111;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.video-facade:hover .facade-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent, #FF6600);
}

.video-facade:focus-visible {
  outline: 4px solid #0057c8;
  outline-offset: -4px;
}

.facade-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: #111;
  color: #fff;
  padding: 0.1rem 0.45rem;
}

/* ----- The real player, once clicked ----- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 3px solid #111;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- Pull quote, used in place of a video on the article card ----- */
.media-quote {
  background: var(--accent, #3D6E4F);
  border-bottom: 3px solid #111;
  padding: 1.25rem 1.15rem;
}

.media-quote blockquote {
  font-family: 'Bangers', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #fff;
  text-indent: -0.4em;
}

.media-quote blockquote::before { content: '\201C'; }
.media-quote blockquote::after  { content: '\201D'; }

.media-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ----- Card text ----- */
.media-body {
  padding: 0.9rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.media-source {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: #111;
  color: #fff;
  padding: 0.1rem 0.45rem;
}

.media-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
}

.media-title {
  font-family: 'Bangers', cursive;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #111;
  margin-bottom: 0.45rem;
}

.media-blurb {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 0.75rem;
}

.media-link {
  display: block;
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0057c8;
  text-decoration: none;
  padding: 0.18rem 0 0.18rem 1.1rem;
}

.media-link::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #111;
}

.media-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .media-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .media-card       { box-shadow: 4px 4px 0 #111; }
  .media-card:hover { transform: none; box-shadow: 4px 4px 0 #111; }
  .facade-play      { width: 52px; height: 52px; }
  .facade-play::after {
    border-left-width: 16px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }
}

/* ===================================================================
   INTERESTS PAGE
   =================================================================== */

/* Content overflows here, and a centred flex column clips its own
   overflow at the top — so this page starts at the top instead. */
.content-box--interests {
  justify-content: flex-start;
}

.interest {
  margin-top: 1.75rem;
}

.interest-line {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 0.9rem;
}

/* ----- Photo grids ----- */
.photo-grid {
  display: grid;
  gap: 0.8rem;
}

.photo-grid--wide   { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo-grid--square { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.photo-grid--single { grid-template-columns: minmax(0, 230px); }

.photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}

.photo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111;
}

.photo:focus-visible {
  outline: 4px solid #0057c8;
  outline-offset: 2px;
}

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

.photo-grid--wide   .photo { aspect-ratio: 3 / 2; }
.photo-grid--square .photo { aspect-ratio: 1 / 1; }
.photo-grid--single .photo { aspect-ratio: 2 / 3; }

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  border: 4px solid #111;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: 'Bangers', cursive;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  font-family: 'Bangers', cursive;
  font-size: 1.9rem;
  line-height: 1;
  color: #111;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
}

.lightbox-close:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #111; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .photo-grid--wide   { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .photo-grid--square { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .photo-grid--single { grid-template-columns: minmax(0, 190px); }
  .photo              { box-shadow: 3px 3px 0 #111; }
  .photo:hover        { transform: none; box-shadow: 3px 3px 0 #111; }
  .lightbox           { padding: 1rem 0.75rem 2rem; }
  .lightbox img       { max-height: 70vh; }
}

/* ===================================================================
   CONTACT PAGE
   =================================================================== */

.content-box--contact {
  justify-content: center;
}

.contact-intro {
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.6rem;
}

.contact-intro + .contact-intro { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;   /* three wide cards stacked reads better than 2 + 1 */
  max-width: 430px;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

.contact-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #111;
}

.contact-card:focus-visible {
  outline: 4px solid #0057c8;
  outline-offset: 3px;
}

/* Icon tile, in the brand's own colour */
.contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #111;
  background: var(--accent, #4A3A7A);
  color: #fff;
  font-size: 1.4rem;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

/* Instagram's mark reads best on its gradient rather than a flat fill */
.contact-card--instagram .contact-icon {
  background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%);
}

.contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: 'Bangers', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #111;
  line-height: 1.15;
}

.contact-handle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  overflow-wrap: anywhere;
}

.contact-card:hover .contact-handle { color: #0057c8; }

@media (max-width: 768px) {
  .contact-grid  { gap: 0.8rem; margin-top: 1.2rem; }
  .contact-card  { box-shadow: 4px 4px 0 #111; }
  .contact-card:hover { transform: none; box-shadow: 4px 4px 0 #111; }
  .contact-icon  { width: 42px; height: 42px; font-size: 1.2rem; }
}
