/* ============================================================
   ryan abrams designs, base stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400;1,6..12,600&display=swap');

:root {
  --navy: #2d2b6f;
  --navy-dark: #201f52;
  --pink: #ea69a7;
  --pink-light: #f8d9e7;
  --pink-soft: #fdf0f6;
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #34325f;
  --gray: #746f8a;
  --border: #e7e2f2;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max-width: 1320px;
  --shadow: 0 20px 40px -20px rgba(45, 43, 111, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--navy);
}

body {
  margin: 10px;
  min-height: calc(100vh - 20px);
  overflow-x: hidden;
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 600px) {
  body { margin: 6px; min-height: calc(100vh - 12px); border-radius: 12px; }
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

p { margin: 0 0 1em; color: var(--gray); }

h1, h2, h3, h4 {
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--pink);
  font-size: 0.85rem;
  margin-bottom: 0.75em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: lowercase;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--pink);
  color: var(--navy-dark);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(234, 105, 167, 0.55);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo-mark {
  display: flex;
  align-items: center;
}
.logo-mark img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active { color: var(--pink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 28px; }
  .nav-links a::after { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
.hero-content h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  text-transform: lowercase;
  max-width: 13ch;
  text-align: left;
}
.hero-content .lede {
  max-width: 46ch;
  margin: 18px 0 32px;
  font-size: 1.12rem;
  color: var(--gray);
  text-align: left;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-banner {
  position: relative;
  padding: 24px 8px;
}
.skyline {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 901px) {
  .skyline { transform: rotate(-3deg) scale(1.12); }
}
.sticker {
  position: absolute;
  bottom: -20px;
  left: 32px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: lowercase;
  transform: rotate(-9deg);
  border: 3px solid var(--cream);
  box-shadow: 0 14px 26px -10px rgba(45, 43, 111, 0.4);
  padding: 10px;
}
@media (max-width: 500px) {
  .sticker { width: 84px; height: 84px; font-size: 0.68rem; left: 12px; bottom: -12px; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg);
  margin: 56px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: scroll-left 28s linear infinite;
}
.marquee-track span {
  display: inline-block;
  padding: 0 1.2em;
  font-weight: 800;
  text-transform: lowercase;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.marquee-track span:nth-child(odd) { color: var(--pink); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- sections ---------- */
section.wrap { padding-top: 64px; padding-bottom: 64px; }
.section-head {
  max-width: 60ch;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: lowercase;
}
.section-head.left {
  text-align: left;
  margin: 0 0 40px;
  max-width: none;
}

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.work-grid.featured {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.work-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(45, 43, 111, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.work-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  text-transform: lowercase;
  font-size: 0.9rem;
  text-align: center;
  overflow: hidden;
}
.work-thumb:not(:has(img)) {
  padding: 20px;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-thumb.placeholder {
  background: repeating-linear-gradient(135deg, var(--pink-soft), var(--pink-soft) 12px, var(--white) 12px, var(--white) 24px);
  color: var(--pink);
  border-bottom: 1px dashed var(--pink);
}
.work-body { padding: 22px 24px 26px; }
.work-body h3 {
  font-size: 1.15rem;
  text-transform: lowercase;
  margin-bottom: 6px;
}
.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.work-body p { font-size: 0.95rem; margin-bottom: 0; }
.coming-soon {
  border: 2px dashed var(--pink-light);
  background: var(--pink-soft);
}

/* ---------- case study page ---------- */
.case-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.case-hero .eyebrow { display: block; }
.case-hero h1 {
  text-transform: lowercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 20ch;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-meta div { min-width: 140px; }
.case-meta h4 {
  text-transform: lowercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--pink);
  margin-bottom: 4px;
}
.case-meta p { color: var(--navy); font-weight: 600; margin: 0; }
.case-image {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--pink));
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  text-transform: lowercase;
  overflow: hidden;
}
.case-image:not(:has(img)) {
  aspect-ratio: 16 / 9;
}
.case-image img {
  width: 100%;
  height: auto;
  display: block;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.case-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}
.case-gallery.prototype-gifs {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 32px 0;
}
.case-gallery.prototype-gifs img {
  border: 1px solid var(--border);
}
.case-body { max-width: 70ch; margin: 0 auto; }
.case-body h2 {
  text-transform: lowercase;
  font-size: 1.5rem;
  margin-top: 2em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--pink-light), var(--navy));
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 2px solid var(--pink-light);
}
.timeline li {
  position: relative;
  padding: 0 0 26px 26px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--cream);
}
.timeline strong { color: var(--navy); text-transform: lowercase; }
.timeline span { display: block; font-size: 0.85rem; color: var(--gray); }

.expertise-tags {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.expertise-tags li {
  background: var(--pink-soft);
  color: var(--navy);
  border: 1px solid var(--pink-light);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  text-transform: lowercase;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.services-grid.wide {
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}
@media (max-width: 520px) {
  .services-grid.wide { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.service-card h3 { text-transform: lowercase; font-size: 1.2rem; }
.service-num {
  color: var(--pink);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

/* ---------- testimonials ---------- */
.testimonial-flow {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.6;
  color: var(--gray);
  max-width: 900px;
  margin: 0;
}
.t-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  margin: 0 12px;
  vertical-align: middle;
}

/* ---------- contact ---------- */
.contact-info h3 { text-transform: lowercase; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list a { font-weight: 700; color: var(--navy); }
.contact-list a:hover { color: var(--pink); }
.contact-list span {
  display: block;
  font-size: 0.78rem;
  text-transform: lowercase;
  color: var(--gray);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--pink-light);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: lowercase;
  color: var(--white);
}
.footer-logo span { color: var(--pink); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
  font-weight: 600;
}
.footer-links a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
  font-weight: 600;
}
.footer-social a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  text-transform: lowercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- reveal on scroll ----------
   Visible by default so content never disappears if JS is slow/blocked.
   The hide-then-fade-in behavior only applies once `.js` is set on <html>
   by the inline script in <head> (see every page's <head>). */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
