/* ==========================================================================
   /extras.css — award strip, email modal, video-page buttons
   Load on the home page AND /mywork:
     <link rel="stylesheet" href="/extras.css?v=1" />
   Uses the site's design tokens, with fallbacks so it also works on /mywork.
   ========================================================================== */

/* ---------- Award strip (home page, between About and Expertise) ---------- */

.award-strip {
  position: relative;
  z-index: 1;
  background: var(--paper, #F1F3EF);
  color: var(--ink, #14170F);
  border-top: 1px solid var(--line, #D8DCD5);
  border-bottom: 1px solid var(--line, #D8DCD5);
  padding: 1.75rem 0;
  overflow: hidden;
}

.award-strip-label {
  max-width: var(--max-width, 74rem);
  margin: 0 auto 1rem;
  padding: 0 var(--space-3, 1.75rem);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft, #4A4F4B);
}

.award-strip-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.award-strip-track {
  display: flex;
  width: max-content;
  animation: award-scroll 45s linear infinite;
}

.award-strip:hover .award-strip-track,
.award-strip:focus-within .award-strip-track {
  animation-play-state: paused;
}

.award-strip-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  margin: 0;
  list-style: none;
}

.award-strip-list li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display-bold, "Big Shoulders Display", "Arial Narrow", sans-serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Separator after each name */
.award-strip-list li::after {
  content: "/";
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.35;
}

/* Official winner badges, if you add them later (images/awards/*.png) */
.award-strip-list img {
  height: 2.4rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.85;
}

@keyframes award-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced motion: no scrolling, just a wrapped row */
@media (prefers-reduced-motion: reduce) {
  .award-strip-viewport { -webkit-mask-image: none; mask-image: none; }
  .award-strip-track {
    animation: none;
    width: auto;
    max-width: var(--max-width, 74rem);
    margin: 0 auto;
    padding: 0 var(--space-3, 1.75rem);
  }
  .award-strip-list { flex-wrap: wrap; gap: 1rem 2rem; }
  .award-strip-list[aria-hidden="true"] { display: none; }
}

@media (max-width: 560px) {
  .award-strip-label { padding: 0 var(--space-2, 1rem); }
}

/* ---------- "Email Me" trigger in the Contact section ---------- */

button.contact-email {
  cursor: pointer;
  text-align: left;
}

/* ---------- Email modal ---------- */

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.email-modal.is-open { display: flex; }

html.email-modal-lock { overflow: hidden; }

.email-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 16, 0.72);
}

.email-modal-panel {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--paper, #F1F3EF);
  color: var(--ink, #14170F);
  border-radius: var(--radius, 2px);
  padding: 2.25rem 2rem 2rem;
  font-family: var(--font-body, "Inter", -apple-system, sans-serif);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.email-modal-panel h2 {
  margin: 0;
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 450;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.email-modal-sub {
  margin: 0.4rem 0 1.5rem;
  color: var(--ink-soft, #4A4F4B);
  font-size: 0.92rem;
}

.email-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft, #4A4F4B);
  background: none;
  border: 0;
  cursor: pointer;
}

.email-modal-close:hover { color: var(--ink, #14170F); }

.email-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft, #4A4F4B);
}

.email-field input,
.email-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink, #14170F);
  background: #fff;
  border: 1px solid var(--line, #D8DCD5);
  border-radius: var(--radius, 2px);
}

.email-field textarea { resize: vertical; min-height: 8rem; }

.email-field input:focus,
.email-field textarea:focus {
  outline: 2px solid var(--ink, #14170F);
  outline-offset: 1px;
  border-color: var(--ink, #14170F);
}

.email-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.email-modal-submit {
  align-self: flex-start;
  padding: 0.85rem 1.8rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--paper, #F1F3EF);
  background: var(--void, #0E1210);
  border: 1px solid var(--void, #0E1210);
  border-radius: var(--radius, 2px);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.email-modal-submit:hover { opacity: 0.85; }
.email-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.email-modal-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
}

.email-modal-status.is-error { color: #B4432B; }

.email-modal-done-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-size: 1.35rem;
}

.email-modal-done-body {
  margin: 0 0 1.5rem;
  color: var(--ink-soft, #4A4F4B);
}

@media (max-width: 560px) {
  .email-modal-panel { padding: 2rem 1.25rem 1.5rem; }
}

/* ---------- Video page buttons (appear once the video starts) ---------- */

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-actions.is-visible {
  opacity: 1;
  transform: none;
}

.video-actions-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body, "Inter", -apple-system, sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius, 2px);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-actions-btn--primary {
  background: var(--paper, #F1F3EF);
  color: var(--void, #0E1210);
  border-color: var(--paper, #F1F3EF);
}

.video-actions-btn:hover,
.video-actions-btn:focus-visible { opacity: 0.8; }

/* ---------- Contact: logo framing Email Me + LinkedIn ---------- */
/* Wrapped in @supports so very old browsers keep the original layout
   instead of showing an oversized logo. */
@supports (aspect-ratio: 1) and (contain: size) {
  .contact-actions {
    display: grid;
    grid-template-columns: max-content auto;
    grid-template-rows: auto auto;
    column-gap: clamp(1.75rem, 5vw, 3.5rem);
    row-gap: var(--space-3, 1.75rem);
    justify-content: start;
    align-items: start;
  }
  .contact-email-wrap { display: contents; }
  .contact-actions .contact-email { grid-column: 1; grid-row: 1; justify-self: start; }
  .contact-actions .social-button { grid-column: 1; grid-row: 2; justify-self: start; }
  .contact-actions .contact-logo {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: auto;
    height: auto;
    aspect-ratio: 300 / 344;
    contain: size;
  }
}

/* ==========================================================================
   Mobile / touch polish
   ========================================================================== */

/* Nav jumps: keep section headings clear of the fixed header */
section[id] { scroll-margin-top: 4.5rem; }

/* Very small phones (320px, incl. iPhone "Display Zoom"): keep
   CREATIVE / DIRECTOR on one line each */
@media (max-width: 359px) {
  .hero-massive { font-size: 13.5vw; }
}

/* Email modal: size to the visible screen on iOS/Android (address bar,
   keyboard), and keep the Send button reachable on short phones */
.email-modal { top: 0; right: 0; bottom: 0; left: 0; }
.email-modal-panel { max-height: calc(100dvh - 2rem); overscroll-behavior: contain; }
@media (max-height: 720px) {
  .email-modal-panel { padding-top: 1.75rem; padding-bottom: 1.5rem; }
  .email-modal-sub { margin-bottom: 1rem; }
  .email-field textarea { min-height: 5.5rem; height: 5.5rem; }
}

/* Touch targets: at least 44px tall, without moving anything visually */
@media (max-width: 860px), (pointer: coarse) {
  .nav-toggle {
    box-sizing: content-box;
    padding: 6px;
    margin: -6px;
  }
  .mark-logo-link { padding: 0.8rem 0.9rem; margin: -0.8rem -0.9rem; }
  .mark-text { padding: 0.8rem 0; margin: -0.8rem 0; }
  .nav.is-open { gap: 0; }
  .nav.is-open a { padding: 0.7rem 0; }
  .nav-resume { min-height: 44px; padding: 0.7rem 1rem; }
  button.contact-email {
    min-height: 44px;
    display: inline-flex;
    align-items: flex-end;
  }
  .email-modal-close { width: 44px; height: 44px; top: 0.35rem; right: 0.45rem; }
  .site-footer a { display: inline-block; padding: 0.8rem 0; margin: -0.8rem 0; }
}
