/* SouthOfMemphis — styles
   Direction: print-shop proof sheet. Off-white paper, signal red for action,
   soft blue for surfaces, navy ink. Crop marks + CMYK colour bar as the one bold moment. */

:root {
  --paper: #FAF7F2;      /* off-white */
  --paper-2: #EAF1F8;    /* soft blue wash for alternate sections */
  --ink: #1B2433;        /* navy ink */
  --ink-soft: #3A4556;
  --muted: #5B6575;
  --red: #C0302A;        /* primary accent */
  --red-dark: #9C231E;
  --blue: #A9C6E4;       /* soft blue */
  --blue-deep: #3D6A99;
  --rule: #DDD8D0;
  --white: #FFFFFF;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
  --radius: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.75rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 0.6em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
.h-sm { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 38em; }
.lede-sm { font-size: 1.125rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.prose { max-width: 36em; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible { outline-color: var(--blue); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  background: var(--red); color: var(--white);
  font: 600 1rem/1.2 var(--body);
  border: 2px solid var(--red); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.75rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font: 700 1.5rem/1 var(--display); }
.brand img { width: 72px; height: 72px; }
@media (max-width: 860px) { .brand img { width: 56px; height: 56px; } .brand { font-size: 1.3rem; } .header-inner { min-height: 4.75rem; } }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: .4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-phone { font-weight: 600 !important; color: var(--red) !important; white-space: nowrap; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--red); padding-left: .9rem; }
  .nav-phone { padding-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) var(--space); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { max-width: 11ch; }

.proof { position: relative; padding: 20px; }
.proof img, .proof .hero-art { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.proof i { position: absolute; width: 20px; height: 20px; color: var(--ink); }
.proof i::before, .proof i::after { content: ""; position: absolute; background: currentColor; }
.proof i::before { left: 0; top: 19px; width: 13px; height: 1px; }
.proof i::after  { left: 19px; top: 0; width: 1px; height: 13px; }
.proof .tl { top: 0; left: 0; }
.proof .tr { top: 0; right: 0; transform: scaleX(-1); }
.proof .bl { bottom: 0; left: 0; transform: scaleY(-1); }
.proof .br { bottom: 0; right: 0; transform: scale(-1, -1); }

.colorbar { display: flex; align-items: center; gap: 3px; padding-inline: 20px; margin-top: 2px; height: 14px; color: var(--ink); }
.colorbar span { flex: 1; height: 100%; transform-origin: left; }
.colorbar .c { background: #00A0DF; } .colorbar .m { background: #E4007C; }
.colorbar .y { background: #FFE500; } .colorbar .k { background: #1A1A1A; }
.colorbar .t { opacity: .45; }
.colorbar .reg { width: 16px; height: 16px; flex: none; margin-left: 6px; }
.hero-figure { margin: 0; }
.hero-figure figcaption { padding: .6rem 20px 0; font-size: .875rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .colorbar span { animation: ink-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  .colorbar span:nth-child(2) { animation-delay: .06s; } .colorbar span:nth-child(3) { animation-delay: .12s; }
  .colorbar span:nth-child(4) { animation-delay: .18s; } .colorbar span:nth-child(5) { animation-delay: .24s; }
  .colorbar span:nth-child(6) { animation-delay: .30s; } .colorbar span:nth-child(7) { animation-delay: .36s; }
  .colorbar span:nth-child(8) { animation-delay: .42s; }
  @keyframes ink-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 14ch; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section-tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

.page-intro { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-intro h1 { margin-bottom: .4em; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 760px) { .split, .two-col { grid-template-columns: 1fr; } }

/* Home service rows */
.rows { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.row:nth-child(even) { grid-template-columns: 6fr 5fr; }
.row:nth-child(even) img { order: 2; }
.row-copy { max-width: 32rem; }
@media (max-width: 760px) {
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) img { order: 0; }
}

/* ---------- Quote ---------- */
.quote-band { background: var(--blue); color: var(--ink); padding-block: var(--space); }
.quote { margin: 0; max-width: 52rem; position: relative; padding-top: 3.5rem; }
.quote::before {
  content: "\201C"; position: absolute; top: -1.25rem; left: -.25rem;
  font: 700 7rem/1 var(--display); color: var(--red);
}
.quote blockquote { margin: 0; }
.quote blockquote p { font: italic 500 clamp(1.35rem, 2.6vw, 1.9rem)/1.4 var(--display); margin: 0 0 1.5rem; }
.quote figcaption { display: flex; flex-direction: column; gap: .15rem; font-size: 1rem; }
.quote figcaption span { color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta-band { padding-block: var(--space); border-top: 1px solid var(--rule); }
.cta-inner { max-width: 44rem; }
.cta-inner p { font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.team { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); margin-top: 2rem; }
.person { display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; max-width: 54rem; }
.person img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; background: var(--paper-2); }
.person h3 { margin-bottom: .15em; }
.person h3 span { font-weight: 500; color: var(--muted); }
.person .role { color: var(--red); font-weight: 600; margin-bottom: .8em; }
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person img { width: 112px; height: 112px; }
}

/* ---------- Services page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.jump a { font-weight: 600; }
.service + .service { border-top: 1px solid var(--rule); }
.service-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.service:nth-of-type(odd) .service-figure { order: 2; }
.service-figure { margin: 0; position: sticky; top: 7.75rem; }
.service-figure img { width: 100%; border-radius: var(--radius); background: var(--paper-2); }
.service-figure img.bordered { border: 1px solid var(--rule); }
.figure-grid { columns: 2; column-gap: .7rem; }
.figure-grid img { width: 100%; margin-bottom: .7rem; break-inside: avoid; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.service-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.store-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.store-free { margin-left: .4rem; font: 700 1.05rem/1 var(--display); color: var(--red); white-space: nowrap; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; background: var(--red); border-radius: 50%; }
.checklist strong { color: var(--ink); }
@media (max-width: 860px) {
  .service-inner { grid-template-columns: 1fr; }
  .service:nth-of-type(odd) .service-figure { order: 0; }
  .service-figure { position: static; }
}
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.facts li { padding: 1rem 0; border-bottom: 1px solid var(--rule); font: 600 1.2rem/1.3 var(--display); }
.facts li:nth-child(odd) { padding-right: 1rem; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.work-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.work a, .work button {
  display: block; width: 100%; text-align: left; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); margin-bottom: .9rem; }
.work-name { display: block; font: 600 1.25rem/1.25 var(--display); }
.work-meta { display: block; color: var(--muted); font-size: .9375rem; }
.work a:hover .work-name, .work button:hover .work-name { color: var(--red); text-decoration: underline; text-underline-offset: .2em; }

/* Apps */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2rem; }
.app-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.app-icon { width: 72px; height: 72px; flex: none; border-radius: 16px; border: 1px solid var(--rule); }
.app-head h3 { margin: 0 0 .2em; font-size: 1.4rem; }
.app-head p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.app-cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }
.app-cta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
.play-badge { display: inline-block; line-height: 0; border-radius: var(--radius); margin: -6px -10px; }
.play-badge img { width: 168px; height: auto; }
.play-badge:focus-visible { outline-offset: -6px; }

.gallery { list-style: none; padding: 0; margin: 2rem 0 0; columns: 3 260px; column-gap: 1.25rem; }
.gallery li { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--white); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: opacity .15s; }
.gallery button:hover img { opacity: .88; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(27, 36, 51, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--paper); text-align: center; margin-top: .75rem; }
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  background: var(--paper); color: var(--ink); border: 0; border-radius: var(--radius);
  padding: .5rem 1rem; font: 600 .95rem var(--body); cursor: pointer;
}

/* ---------- Contact ---------- */
.email-card { max-width: 44rem; padding-block: clamp(1rem, 3vw, 2rem); }
.email-big {
  display: inline-block; margin-top: .25rem;
  font: 700 clamp(1.6rem, 5vw, 3rem)/1.1 var(--display);
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 3px solid var(--red); padding-bottom: .15em;
}
.email-big:hover { color: var(--red); }
.copy-status { min-height: 1.5em; margin: 1rem 0 0; font-weight: 600; color: var(--red); }
.email-tip { max-width: 34em; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 104px; height: 104px; filter: invert(1); margin-bottom: 1rem; }
.footer-brand p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 22rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-contact { font-style: normal; display: grid; gap: .5rem; align-content: start; }
.footer-base { border-top: 1px solid rgba(250, 247, 242, .15); padding-block: 1.25rem 1.5rem; font-size: .875rem; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
