/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

  html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
  }
  
  /*
   * Remove text-shadow in selection highlight:
   * https://twitter.com/miketaylr/status/12228805301
   *
   * Customize the background color to match your design.
   */
  
  ::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
  }
  
  ::selection {
    background: #b3d4fc;
    text-shadow: none;
  }
  
  /*
   * A better looking default horizontal rule
   */
  
  hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
  }
  
  /*
   * Remove the gap between audio, canvas, iframes,
   * images, videos and the bottom of their containers:
   * https://github.com/h5bp/html5-boilerplate/issues/440
   */
  
  audio,
  canvas,
  iframe,
  img,
  svg,
  video {
    vertical-align: middle;
  }
  
  /*
   * Remove default fieldset styles.
   */
  
  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
  }
  
  /*
   * Allow only vertical resizing of textareas.
   */
  
  textarea {
    resize: vertical;
  }
  
  /* ==========================================================================
     Author's custom styles
     ========================================================================== */
  
  /* ==========================================================================
     Helper classes
     ========================================================================== */
  
  /*
   * Hide visually and from screen readers
   */
  
  .hidden,
  [hidden] {
    display: none !important;
  }
  
  /*
   * Hide only visually, but have it available for screen readers:
   * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
   *
   * 1. For long content, line feeds are not interpreted as spaces and small width
   *    causes content to wrap 1 word per line:
   *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
   */
  
  .visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
  }
  
  /*
   * Extends the .visually-hidden class to allow the element
   * to be focusable when navigated to via the keyboard:
   * https://www.drupal.org/node/897638
   */
  
  .visually-hidden.focusable:active,
  .visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
  }
  
  /*
   * Hide visually and from screen readers, but maintain layout
   */
  
  .invisible {
    visibility: hidden;
  }
  
  /*
   * Clearfix: contain floats
   *
   * The use of `table` rather than `block` is only necessary if using
   * `::before` to contain the top-margins of child elements.
   */
  
  .clearfix::before,
  .clearfix::after {
    content: "";
    display: table;
  }
  
  .clearfix::after {
    clear: both;
  }
  
  /* ==========================================================================
     EXAMPLE Media Queries for Responsive Design.
     These examples override the primary ('mobile first') styles.
     Modify as content requires.
     ========================================================================== */
  
  @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
  }
  
  @media print,
    (-webkit-min-device-pixel-ratio: 1.25),
    (min-resolution: 1.25dppx),
    (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
  }
  
  /* ==========================================================================
     Print styles.
     Inlined to avoid the additional HTTP request:
     https://www.phpied.com/delay-loading-your-print-css/
     ========================================================================== */
  
  @media print {
    *,
    *::before,
    *::after {
      background: #fff !important;
      color: #000 !important;
      /* Black prints faster */
      box-shadow: none !important;
      text-shadow: none !important;
    }
  
    a,
    a:visited {
      text-decoration: underline;
    }
  
    a[href]::after {
      content: " (" attr(href) ")";
    }
  
    abbr[title]::after {
      content: " (" attr(title) ")";
    }
  
    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
      content: "";
    }
  
    pre {
      white-space: pre-wrap !important;
    }
  
    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }
  
    tr,
    img {
      page-break-inside: avoid;
    }
  
    p,
    h2,
    h3 {
      orphans: 3;
      widows: 3;
    }
  
    h2,
    h3 {
      page-break-after: avoid;
    }
  }

  /* Frameshift styles */
  :root {
    --bg: #0b0f16;
    --surface: #111827;
    --surface-alt: #0f1624;
    --accent: #4fd1c5;
    --accent-strong: #38b2ac;
    --muted: #9fb3c8;
    --text: #e8eef5;
    --border: rgba(255, 255, 255, 0.08);
  }

  html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: var(--accent);
    text-decoration: none;
  }

  a:hover {
    color: var(--accent-strong);
  }

  .hero {
    position: relative;
    min-height: 80vh;
    padding: 28px 24px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background:
      linear-gradient(140deg, rgba(11, 15, 22, 0.85) 0%, rgba(11, 15, 22, 0.65) 55%, rgba(11, 15, 22, 0.85) 100%),
      url(img/frameshift-bg.jpg) top center / cover no-repeat;
    border-bottom: 1px solid var(--border);
  }

  .nav {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 48px);
  }

  .wordmark {
    width: 260px;
  }

  .nav-link {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  }

  .nav-link:hover {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
  }

  .hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 16px 0;
  }

  .lede {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    color: #c7d4e5;
    max-width: 720px;
  }

  .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }

  .pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #dbe5f2;
    font-size: 0.95rem;
  }

  .cta-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }

  .btn,
  .ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .btn {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #051017;
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.35);
  }

  .ghost-btn {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
  }

  .btn:hover,
  .ghost-btn:hover {
    transform: translateY(-1px);
  }

  .ghost-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .logo {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 96px;
    opacity: 0.9;
  }

  main {
    background: radial-gradient(circle at 20% 20%, rgba(79, 209, 197, 0.05), transparent 24%), var(--bg);
  }

  .section {
    padding: 72px 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    max-width: 760px;
    margin-bottom: 32px;
  }

  h2 {
    margin: 0 0 12px 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
  }

  .section-lede {
    margin: 0;
    color: #c5d4e8;
    font-size: 1.05rem;
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  }

  .card h3 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .card p {
    margin: 0;
    color: #c5d4e8;
  }

  .muted {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }

  .metric {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
  }

  .metric-number {
    font-size: 1.6rem;
    font-weight: 800;
  }

  .metric-label {
    color: #c5d4e8;
    margin-top: 4px;
  }

  .contact {
    padding-bottom: 96px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
  }

  .contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  }

  .contact-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .contact-blurb {
    margin: 0 0 8px 0;
    color: #c5d4e8;
  }

  .map-embed iframe {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 10px;
    margin-top: 10px;
  }


  @media (max-width: 700px) {
    .hero {
      padding: 24px 18px 80px;
      min-height: 85vh;
    }

    .nav {
      position: static;
      width: 100%;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .wordmark {
      width: 190px;
    }

    .hero-content {
      text-align: left;
      padding-top: 10px;
    }

    .cta-row {
      flex-wrap: wrap;
    }

    .logo {
      width: 72px;
      bottom: 24px;
      right: 18px;
    }

    .section {
      padding: 56px 18px;
    }
  }
