/*-- -------------------------- -->
<---        Core Styles         -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  :root {
    /* Neutral near-white — cooler, less-yellow light-mode base (see DESIGN.md) */
    --bg: #fbfbf8;
    --bg-soft: #f2f1ea;
    --text: #3c3836;
    --text-muted: #504945;
    --text-faint: #665c54;
    --border: #dcdace;
    --surface: #eceae0;

    /* Accent colors — shared across both themes */
    --primary: #c2540c;
    --primary-hover: #fe8019;
    /* AA-contrast orange for orange TEXT on light backgrounds (flipped bright in dark.css) */
    --primary-text: #9d3e00;
    --aqua: #689d6a;
    --aqua-bright: #8ec07c;
    --yellow: #d79921;
    --yellow-bright: #fabd2f;
    --blue: #458588;
    --blue-bright: #83a598;
    --red: #cc241d;
    --red-bright: #fb4934;
    --purple: #b16286;
    --green: #98971a;

    /* Legacy aliases from the starter kit — kept until components are restyled */
    --primaryShade: var(--primary-hover);
    --primaryDark: #ad4709;
    --bodyTextColor: var(--text);
    --bodyTextColorWhite: var(--bg);
    --headerColor: var(--text);

    /* 13px - 16px */
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    /* 31px - 49px */
    --headerFontSize: clamp(1.9375rem, 4.5vw, 3.0625rem);
    /* 60px - 100px top and bottom */
    --sectionPadding: clamp(3.75em, 7.82vw, 6.25em) 1rem;
  }
  /* roboto-regular - latin */
  @font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('/assets/fonts/roboto-v29-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/roboto-v29-latin-regular.woff') format('woff');
    
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  /* roboto-700 - latin */
  @font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local(''), url('/assets/fonts/roboto-v29-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/roboto-v29-latin-700.woff') format('woff');
    
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  /* roboto-900 - latin */
  @font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: local(''), url('/assets/fonts/roboto-v29-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/roboto-v29-latin-900.woff') format('woff');
    
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  body,
  html {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
  }
  *,
  *:before,
  *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    background-color: var(--bg);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
  }
  /* Ensure the [hidden] attribute always wins over component display rules
     (e.g. .contact-form { display:flex }), so JS toggling actually hides. */
  [hidden] {
    display: none !important;
  }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .container {
    position: relative;
    width: 92%;
    margin: auto;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    color: var(--headerColor);
  }
  p,
  li,
  a {
    font-size: 1.125rem;
    line-height: 1.5em;
    margin: 0;
  }
  p,
  li {
    color: var(--text-muted);
  }
  a:hover,
  button:hover {
    cursor: pointer;
  }
  .button-solid,
  .button-outline {
    position: relative;
    overflow: hidden;
    z-index: 0;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: color .3s, border-color .3s;
  }
  /* Sliding fill on hover: grows from the right edge leftward */
  .button-solid::before,
  .button-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
  }
  .button-solid:hover::before,
  .button-outline:hover::before {
    transform: scaleX(1);
  }
  .button-solid {
    background-color: var(--primary);
    color: #fff;
  }
  .button-solid::before {
    background-color: var(--primary-hover);
  }
  .button-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
  }
  .button-outline::before {
    background-color: var(--primary);
  }
  .button-outline:hover {
    color: #fff;
  }
  /* Shared section heading utilities */
  .topper {
    display: block;
    color: var(--primary-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: var(--topperFontSize);
    margin-bottom: 0.75rem;
  }
  .section-title {
    color: var(--text);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }
  .section-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 50rem;
  }
  .skip {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1111111;
  }
}
/* Reset Margins */
@media only screen and (min-width: 1024px) {
  body,
  html {
    padding: 0;
    margin: 0;
  }
}
/* Scale full website with the viewport width */
@media only screen and (min-width: 2000px) {
  body,
  html {
    font-size: .85vw;
  }
}
/*-- -------------------------- -->
<---         Navigation         -->
<--- -------------------------- -*/
/* Offset page content below the fixed nav */
@media only screen and (min-width: 0em) {
  #main {
    padding-top: 4.25rem;
  }
  .nav-cta {
    position: relative;
    overflow: hidden;
    z-index: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background-color: var(--primary);
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color .3s;
  }
  .nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary-hover);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
  }
  .nav-cta:hover::before {
    transform: scaleX(1);
  }
}
/* Mobile - Top Drop Down */
@media only screen and (max-width: 1023px) {
  #navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    height: auto;
    padding: 0.6rem 0;
  }
  /* Floating rounded pill (matches the desktop nav pill) */
  #navigation .background-color-div {
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 4%;
    right: 4%;
    width: auto;
    height: auto;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  #navigation .container {
    position: relative;
    width: 92%;
    margin: 0 auto;
    padding: 0.45rem 1.1rem;
    display: flex;
    align-items: center;
  }
  #navigation .logo {
    display: inline-block;
    height: 2.5rem;
    width: auto;
  }
  #navigation .logo img {
    width: auto;
    height: 100%;
  }
  #navigation .hamburger-menu {
    position: absolute;
    right: 0.4rem;
    border: none;
    height: 3rem;
    width: 3rem;
    z-index: 100;
    display: block;
    background: transparent;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: top .3s;
  }
  #navigation .hamburger-menu span {
    height: 2px;
    width: 1.875rem;
    background-color: var(--text);
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s;
  }
  #navigation .hamburger-menu span:before {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    width: 80%;
    background: var(--text);
    opacity: 1;
    top: -6px;
    left: 0;
    transition: width .3s, left .3s, top .3s, transform .5s;
  }
  #navigation .hamburger-menu span:after {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    width: 80%;
    background: var(--text);
    opacity: 1;
    top: 6px;
    left: 0;
    transition: width .3s, left .3s, top .3s, transform .3s;
  }
  #navigation .hamburger-menu.clicked span {
    background-color: transparent;
  }
  #navigation .hamburger-menu.clicked span:before {
    width: 100%;
    transform: translate(-50%, -50%) rotate(225deg);
    left: 50%;
    top: 50%;
  }
  #navigation .hamburger-menu.clicked span:after {
    width: 100%;
    transform: translate(-50%, -50%) rotate(-225deg);
    left: 50%;
    top: 50%;
  }
  #navigation #navbar-menu {
    position: fixed;
    right: 0;
    padding: 0;
    width: 100%;
    border-radius: 0 0 0.375em 0.375em;
    z-index: -1;
    overflow: hidden;
    background-color: var(--surface);
    top: 4.3rem;
    padding-top: 0;
    height: 0;
    transition: height 0.3s, padding-top 0.3s, top 0.3s;
  }
  #navigation #navbar-menu ul {
    padding: 0;
    perspective: 700px;
  }
  #navigation #navbar-menu ul li {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: center;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(-0.4375rem) rotateX(90deg);
    transition: opacity .5s, transform .5s;
  }
  #navigation #navbar-menu ul li:nth-of-type(1) {
    transition-delay: .01s;
  }
  #navigation #navbar-menu ul li:nth-of-type(2) {
    transition-delay: .02s;
  }
  #navigation #navbar-menu ul li:nth-of-type(3) {
    transition-delay: .03s;
  }
  #navigation #navbar-menu ul li:nth-of-type(4) {
    transition-delay: .04s;
  }
  #navigation #navbar-menu ul li:nth-of-type(5) {
    transition-delay: .05s;
  }
  #navigation #navbar-menu ul li:nth-of-type(6) {
    transition-delay: .06s;
  }
  #navigation #navbar-menu ul li:nth-of-type(7) {
    transition-delay: .07s;
  }
  #navigation #navbar-menu ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1875rem;
    text-align: center;
    display: inline-block;
    position: relative;
    font-weight: 700;
    transition: color .3s;
  }
  #navigation #navbar-menu ul li a:hover,
  #navigation #navbar-menu ul li a.active {
    color: var(--primary-text);
  }
  #navigation #navbar-menu .nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity .5s;
    transition-delay: .08s;
  }
  #navigation #navbar-menu.open {
    height: 25rem;
    padding-top: 1.25rem;
    z-index: -100;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 24px;
    border-bottom: 1px solid var(--border);
  }
  #navigation #navbar-menu.open ul li {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
  #navigation #navbar-menu.open .nav-cta {
    opacity: 1;
  }
}
/* Desktop */
@media only screen and (min-width: 64em) {
  ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0.375em rgba(0, 0, 0, 0.2);
    background-color: var(--surface);
  }
  ::-webkit-scrollbar-track-piece {
    background-color: var(--bg-soft);
  }
  ::-webkit-scrollbar {
    width: 0.75em;
    background-color: var(--bg-soft);
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 0.625em;
    background: var(--primary);
  }
  /* Scrolled: the floating pill flattens into a full-width bar */
  body.scroll #navigation .background-color-div {
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 0;
    border-width: 0 0 1px 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 7px 20px 0px;
  }
  #navigation {
    width: 100%;
    height: 6.25rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200000;
    padding: 0;
    display: flex;
    align-items: center;
  }
  #navigation .background-color-div {
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
    height: calc(100% - 1.5rem);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transition: top .3s, left .3s, right .3s, height .3s, border-radius .3s, box-shadow .3s;
  }
  #navigation .container {
    max-width: 80rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  #navigation .logo {
    margin-right: auto;
    height: 3.75rem;
    width: auto;
  }
  #navigation .logo img {
    width: auto;
    height: 100%;
  }
  #navigation #navbar-menu {
    display: flex;
    align-items: center;
  }
  #navigation #navbar-menu ul {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  #navigation #navbar-menu ul li {
    list-style: none;
    margin-left: 1.875rem;
    padding-top: 0.1875rem;
  }
  #navigation #navbar-menu .nav-cta {
    margin-left: 1.875rem;
  }
  #navigation #navbar-menu ul li a {
    text-decoration: none;
    font-weight: 700;
    /* 14px - 18px */
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    position: relative;
    z-index: 1;
    color: var(--text);
    transition: color .3s;
  }
  #navigation #navbar-menu ul li a:hover,
  #navigation #navbar-menu ul li a.active {
    color: var(--primary-text);
  }
  #navigation .hamburger-menu {
    display: none;
  }
  #main {
    padding-top: 6.25rem;
  }
}
/* Dark mode: the nav inherits the flipped Gruvbox tokens automatically (see dark.css). */
/*-- -------------------------- -->
<---   Interior Page Header     -->
<--- -------------------------- -*/
/* Shared dark hero for every inner page. Pulls up under the fixed nav so the
   nav pill floats over it — same trick as the homepage hero. */
/* Mobile */
@media only screen and (min-width: 0em) {
  #int-hero {
    margin-top: -4.25rem;
    background-color: #1d2021;
    color: #ebdbb2;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 7.5rem 1rem 3.5rem;
    /* Equal band height across all inner pages regardless of headline length:
       a min-height plus vertical centering so 1-line and 2-line H1s share the
       same dark band (no jump when navigating between pages). */
    min-height: 21rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Curved bottom edge — the dark band bulges down in the middle, revealing
       the page background at the corners (matches the desktop/Oak Harbor look) */
    border-bottom-left-radius: 50% clamp(28px, 6vw, 70px);
    border-bottom-right-radius: 50% clamp(28px, 6vw, 70px);
  }
  #int-hero .int-hero-inner {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 50rem;
    margin: auto;
  }
  /* C — Matrix rain canvas, layered behind the hero (dark mode only).
     Mirrors the homepage #hero .hero-rain. Driven by effects.js. */
  #int-hero .hero-rain {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.18;
    display: none;
  }
  body.dark-mode #int-hero .hero-rain {
    display: block;
  }
  #int-hero .topper {
    color: var(--primary-hover);
    margin-bottom: 1rem;
  }
  #int-hero h1 {
    color: #f9f5d7;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
  }
  #int-hero p {
    color: #d5c4a1;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 38rem;
    margin: 1.25rem auto 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #int-hero {
    margin-top: -6.25rem;
    padding: 12rem 1rem 5.5rem;
    min-height: 28rem;
  }
}
/* Dark mode: the dark band gains a faint matrix-rain canvas (.hero-rain),
   matching the homepage hero. See effects.js initMatrix(). */
/*-- -------------------------- -->
<---   Computer-screen CTA banner (shared — used on every page)  -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em) {
  #cta-banner {
    background: var(--bg);
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem clamp(3rem, 6vw, 5rem);
  }
  #cta-banner .cta-scene {
    position: relative;
    width: 92%;
    max-width: 52rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ---- Monitor screen ---- */
  #cta-banner .cta-screen {
    position: relative;
    width: 100%;
    background: #1d2021;
    border: 1px solid #3c3836;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  }
  #cta-banner .cta-content {
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
  }
  #cta-banner h2 {
    color: #f9f5d7;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
  }

  /* ---- Terminal chrome — shown in dark mode only ---- */
  #cta-banner .cta-termbar {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    background: #0d0d0d;
    border-bottom: 1px solid #3c3836;
  }
  #cta-banner .cta-termbar .dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #665c54;
  }
  #cta-banner .cta-termbar .dot:nth-child(1) { background: #cc241d; }
  #cta-banner .cta-termbar .dot:nth-child(2) { background: #d79921; }
  #cta-banner .cta-termbar .dot:nth-child(3) { background: #98971a; }

  /* ---- Blinking cursor — shown in dark mode only ---- */
  #cta-banner .cta-cursor {
    display: none;
    width: 0.6rem;
    height: 1.4rem;
    margin-left: 0.35rem;
    vertical-align: -0.18rem;
    background: #b8bb26;
  }

  /* ---- Monitor stand ---- */
  #cta-banner .cta-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #cta-banner .cta-neck {
    width: 1.4rem;
    height: 1.6rem;
    background: #32302f;
  }
  #cta-banner .cta-base {
    width: 9rem;
    max-width: 45vw;
    height: 0.7rem;
    border-radius: 0.35rem;
    background: #32302f;
  }

  /* ---- Desk surface ---- */
  #cta-banner .cta-desk {
    width: 100%;
    height: 0.85rem;
    margin-top: 0.15rem;
    border-radius: 0.4rem;
    background: linear-gradient(#504945, #3c3836);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  }

  /* ---- Desk accents (mug + plant) — hidden on mobile ---- */
  #cta-banner .cta-mug,
  #cta-banner .cta-plant {
    display: none;
  }

  /* Dark mode: monitor becomes a glowing hacker terminal */
  body.dark-mode #cta-banner .cta-screen {
    background: #0d0d0d;
    border-color: #1d2021;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 60px rgba(184, 187, 38, 0.14);
  }
  body.dark-mode #cta-banner .cta-termbar {
    display: flex;
  }
  body.dark-mode #cta-banner .cta-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(rgba(184, 187, 38, 0.045) 0 1px, transparent 1px 3px);
  }
  body.dark-mode #cta-banner h2 {
    color: #b8bb26;
    text-shadow: 0 0 12px rgba(184, 187, 38, 0.45);
  }
  body.dark-mode #cta-banner .cta-cursor {
    display: inline-block;
    box-shadow: 0 0 8px rgba(184, 187, 38, 0.8);
    animation: cta-blink 1.05s steps(1) infinite;
  }
  body.dark-mode #cta-banner .cta-neck,
  body.dark-mode #cta-banner .cta-base {
    background: #282828;
  }
  body.dark-mode #cta-banner .cta-desk {
    background: linear-gradient(#3c3836, #282828);
  }
  @keyframes cta-blink {
    50% { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    body.dark-mode #cta-banner .cta-cursor { animation: none; }
  }
}
@media only screen and (min-width: 48em) {
  #cta-banner .cta-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 2.5rem;
  }
  #cta-banner h2 {
    max-width: 40rem;
  }
  #cta-banner .button-solid {
    flex-shrink: 0;
  }

  /* Desk accents sit on the desk, flanking the monitor stand */
  #cta-banner .cta-mug,
  #cta-banner .cta-plant {
    display: block;
    position: absolute;
    bottom: 0.85rem;
  }
  /* Coffee mug (right of the stand) */
  #cta-banner .cta-mug {
    right: 20%;
    width: 1.5rem;
    height: 1.4rem;
    border-radius: 0.2rem 0.2rem 0.4rem 0.4rem;
    background: #d65d0e;
  }
  #cta-banner .cta-mug::after {
    content: '';
    position: absolute;
    right: -0.55rem;
    top: 0.25rem;
    width: 0.6rem;
    height: 0.7rem;
    border: 0.22rem solid #d65d0e;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
  }
  /* Potted plant (left of the stand) */
  #cta-banner .cta-plant {
    left: 20%;
    width: 1.4rem;
    height: 1.2rem;
    border-radius: 0 0 0.3rem 0.3rem;
    background: #a0522d;
  }
  #cta-banner .cta-plant::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 60% 40% 55% 45%;
    background: #98971a;
  }
  body.dark-mode #cta-banner .cta-plant::before {
    background: #b8bb26;
  }
}

/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/
/* A dark band in both themes (Oak Harbor keeps the footer dark) */
/* Mobile */
@media only screen and (min-width: 0em) {
  #footer {
    --footer-text: #ebdbb2;
    --footer-muted: #a89984;
    background: #1d2021;
    color: var(--footer-text);
    border-top: 1px solid var(--border);
    padding: 4rem 0 1.5rem;
  }
  #footer .container {
    width: 90%;
    max-width: 80rem;
    margin: auto;
  }
  #footer .left-section {
    margin-bottom: 3rem;
    text-align: center;
  }
  #footer .left-section .logo {
    display: inline-block;
    height: 3.5rem;
    margin-bottom: 1.5rem;
  }
  #footer .left-section .logo img {
    width: auto;
    height: 100%;
    display: block;
  }
  #footer .left-section p {
    color: var(--footer-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 24rem;
    margin: 0 auto 1.75rem;
  }
  #footer .footer-cta {
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: #1d2021;
    background: #f9f5d7;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
  }
  #footer .footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
  }
  #footer .footer-cta:hover::before {
    transform: scaleX(1);
  }
  #footer .lists {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 22rem;
    margin: auto;
  }
  #footer .lists ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  #footer .lists ul li {
    margin-bottom: 0.85rem;
    color: var(--footer-text);
  }
  #footer .lists ul h2 {
    color: var(--footer-text);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
  }
  #footer .lists ul h2:before {
    content: '';
    position: absolute;
    height: 2px;
    width: 2.75rem;
    background: var(--primary);
    bottom: -0.6rem;
    left: 0;
  }
  #footer .lists ul li a {
    text-decoration: none;
    color: var(--footer-text);
    transition: color .3s;
  }
  #footer .lists ul li a:hover {
    color: var(--primary-hover);
  }
  #footer .contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--footer-muted);
  }
  #footer .contact-list li .ico {
    flex-shrink: 0;
    color: var(--primary);
  }
  #footer .credit {
    width: 90%;
    max-width: 80rem;
    margin: 3.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(235, 219, 178, 0.15);
    text-align: center;
    color: var(--footer-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
  #footer .credit .legal a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color .3s;
  }
  #footer .credit .legal a:hover {
    color: var(--primary-hover);
  }
  #footer .credit .legal span {
    margin: 0 0.5rem;
    opacity: .5;
  }
}
/* Desktop */
@media only screen and (min-width: 64em) {
  #footer {
    padding: 5rem 0 1.5rem;
  }
  #footer .container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
  }
  #footer .left-section {
    width: 26rem;
    margin-bottom: 0;
    text-align: left;
  }
  #footer .left-section .logo {
    height: 4rem;
  }
  #footer .left-section p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  #footer .lists {
    margin: 0;
    max-width: none;
    gap: 4rem;
    justify-content: flex-end;
  }
  #footer .credit {
    flex-direction: row;
    justify-content: space-between;
  }
}
/* Dark mode: lift the footer slightly off the dark page background */
@media only screen and (min-width: 0em) {
  body.dark-mode #footer {
    background: #282828;
  }
}

/*-- -------------------------- -->
<---   Pricing cards (shared)   -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em) {
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: auto;
  }
  .price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
  }
  .price-card.featured {
    background: #1d2021;
    border-color: #1d2021;
    color: #ebdbb2;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  }
  .price-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
  }
  .price-card.featured .price-name {
    color: #f9f5d7;
  }
  .price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
  }
  .price-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
  }
  .price-card.featured .price-features li {
    color: #d5c4a1;
  }
  .price-features li .pf-ico {
    flex-shrink: 0;
    margin-top: 0.15rem;
  }
  .price-features li.yes .pf-ico {
    color: #689d6a;
  }
  .price-features li.no {
    color: var(--text-faint);
  }
  .price-features li.no .pf-ico {
    color: var(--text-faint);
  }
  .price-card.featured .price-features li.no,
  .price-card.featured .price-features li.no .pf-ico {
    color: #928374;
  }
  .price-amount {
    margin-bottom: 1.5rem;
  }
  .price-amount .amount {
    display: block;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.05;
  }
  .price-amount.quote .amount {
    font-size: 1.6rem;
  }
  .price-card.featured .price-amount .amount {
    color: #f9f5d7;
  }
  .price-amount .period {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  .price-card.featured .price-amount .period {
    color: #a89984;
  }
  .price-card .button-solid {
    width: 100%;
  }
  /* Campaign badge + discounted (struck-through) price */
  .price-badge {
    position: absolute;
    top: -0.7rem;
    right: 1.25rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .price-amount .price-old {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-faint);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 0.2rem;
  }
  .price-amount.sale .amount {
    color: var(--primary-text);
  }
  /* Dark mode: lift the featured card with a brighter gray so it stands out
     instead of receding against the darker neighbours (--surface #32302f). */
  body.dark-mode .price-card.featured {
    background: #504945;
    border-color: #665c54;
  }
}
/* Desktop: 3 columns (all cards aligned) */
@media only screen and (min-width: 64em) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---  Scroll-reveal utility     -->
<--- -------------------------- -*/
/* Gated on .js-anim (set synchronously in base.html) so content is never
   hidden for no-JS users. effects.js adds .is-visible when scrolled in. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/*-- -------------------------- -->
<--- Light-mode background texture: DOT GRID -->
<--- Faint dot matrix — modern / techy. Light mode only; dark mode keeps
<--- its matrix-rain/terminal effects. #cta-banner is transparent in
<--- light mode so the dots show behind the computer-screen CTA. -->
<--- -------------------------- -*/
body:not(.dark-mode) {
  background-image: radial-gradient(rgba(60, 56, 54, 0.14) 1.3px, transparent 1.7px);
  background-size: 22px 22px;
}
body:not(.dark-mode) #cta-banner {
  background: transparent;
}
