/* Shared styles for tonycortese.info (the page designs themselves live in each page). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F7F2E8; }
img { max-width: 100%; }
html.tc-noscroll { overflow: hidden; }
a[data-soon] { cursor: pointer; }
:focus-visible { outline: 3px solid #D4A84B; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Contact form error line */
.tc-form-error { margin: 0; font-size: 15px; color: #9B2C2C; }
.tc-form-error a { color: inherit; font-weight: 600; }

/* "Coming soon" pop-up */
.tc-soon { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
.tc-soon[hidden] { display: none; }
.tc-soon-bg { position: absolute; inset: 0; background: rgba(5,10,20,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tc-soon-card { position: relative; width: 100%; max-width: 520px; background: #F7F2E8; color: #1B1B1F; border-radius: 32px; padding: 40px 40px 36px; box-sizing: border-box; box-shadow: 0 40px 100px rgba(0,0,0,0.55); border-top: 4px solid #D4A84B; }
.tc-soon-x { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: none; background: #ECE3D0; color: #1B1B1F; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tc-soon-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: #8A6A1F; }
.tc-soon-title { margin: 0 0 12px; padding-right: 48px; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.tc-soon-text { margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: #5A564F; }
.tc-soon-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-soon-ask, .tc-soon-close { font-family: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 14px 24px; min-height: 48px; cursor: pointer; }
.tc-soon-ask { background: #0F2340; color: #FFFFFF; border: none; }
.tc-soon-close { background: transparent; color: #1B1B1F; border: 2px solid rgba(15,35,64,0.25); }
@media (max-width: 560px) { .tc-soon-card { padding: 32px 24px 28px; border-radius: 26px; } .tc-soon-title { font-size: 26px; } }

/* ================= PHONE LAYOUT (Claude's choices, Nov 24) ================= */
@media (max-width: 640px) {
  /* Top menu: name + Contact on row 1, page links on row 2 */
  #dc-root div[style*="position: sticky; top: 0"] { height: auto !important; margin-bottom: -92px !important; }
  #dc-root div[style*="position: sticky; top: 0"] > div { height: auto !important; }
  #dc-root header { height: auto !important; flex-wrap: wrap !important; row-gap: 8px !important; column-gap: 12px !important; padding: 12px 18px !important; }
  #dc-root header > a:first-child { font-size: 20px !important; order: 0; }
  #dc-root header nav { display: contents !important; }
  #dc-root header nav > button:last-child { order: 1; margin-left: auto; padding: 7px 16px !important; font-size: 14px !important; }
  #dc-root header::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  #dc-root header nav > a, #dc-root header nav > button:first-child { order: 3; font-size: 15px !important; margin-right: 14px; }

  /* Headlines sized for a phone */
  #dc-root [style*="font-size: 72px"] { font-size: 42px !important; }
  #dc-root [style*="font-size: 56px"], #dc-root [style*="font-size: 58px"] { font-size: 36px !important; }
  #dc-root [style*="font-size: 52px"] { font-size: 36px !important; }
  #dc-root [style*="font-size: 48px"], #dc-root [style*="font-size: 46px"], #dc-root [style*="font-size: 44px"] { font-size: 32px !important; }
  #dc-root [style*="font-size: 42px"], #dc-root [style*="font-size: 40px"] { font-size: 30px !important; }
  #dc-root [style*="font-size: 38px"] { font-size: 28px !important; }
  #dc-root [style*="font-size: 240px"] { font-size: 140px !important; }
  #dc-root [style*="font-size: 160px"] { font-size: 110px !important; }
  #dc-root h1, #dc-root h2 { overflow-wrap: break-word; }

  /* Roomy desktop padding, tightened */
  #dc-root [style*="padding: 56px"] { padding: 26px 20px !important; }
  #dc-root [style*="padding: 40px 40px 36px"] { padding: 28px 22px 26px !important; }
  #dc-root [style*="border-radius: 48px"] { border-radius: 30px !important; }

  /* Picture-beside-card sections (Tomorrowman, Shepherd, AI projects): picture on top, card below */
  #dc-root div[style*="min-height: 520px"] { min-height: 300px !important; }
  #dc-root div[style*="width: 66%; overflow: hidden"] { width: 100% !important; bottom: auto !important; height: 360px !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%) !important; }
  #dc-root img[style*="max-width: 62%"] { width: 100% !important; max-width: 100% !important; height: 380px !important; object-position: center 15% !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%) !important; }

  /* Ship launches: smaller fanned cards, no overlapping labels */
  #dc-root div[style*="position: relative; height: 520px"] { height: 330px !important; }
  #dc-root div[style*="position: relative; height: 520px"] p { display: none !important; }
  #dc-root div[style*="width: 480px; height: 480px"] { width: 300px !important; height: 300px !important; right: -40px !important; }

  /* Ship launches: email previews one per row, shorter scroll window */
  #dc-root div[style*="grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start"] { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; }
  #dc-root div[style*="height: 460px; overflow-y: auto"] { height: 380px !important; }
  #dc-root div[style*="margin-top: 52px"] { margin-top: 0 !important; }
}
