/* ==========================================================================
   The Digital B(u)bble — recreated stylesheet
   ========================================================================== */

:root {
  --black: #111111;
  --dark: #424242;
  --gray-body: #6c6c6c;
  --gray-body-dark: #585858;
  --gray-bg: #f4f4f4;
  --gray-border: #e6e6e6;
  --gray-border-dark: #818181b3;
  --blue: #11a1ec;
  --blue-dark: #0d84c2;
  --blue-soft: #4ca0ff;
  --white: #ffffff;
  --nav-height: 64px;
  --max-width: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

/* Anchor scrolling is handled manually in JS (custom duration + easing),
   so native smooth-scrolling is left off to avoid the two fighting. */
html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

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

/* ---------------------------------------------------------------------- */
/* Nav                                                                    */
/* ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav--solid {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.nav--dark-bg {
  background: rgba(0, 0, 0, 0.55);
}

/* Once the user scrolls, give the fixed bar a solid backing so it stays
   legible over whatever content is now underneath it. */
.nav--scrolled.nav--dark-bg {
  background: rgba(10, 10, 10, 0.92);
}
.nav--scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo img { width: 30px; height: 30px; }

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav__links a {
  color: inherit;
  font-size: 16px;
  letter-spacing: normal;
  opacity: 0.85;
}
.nav__links a:hover { opacity: 1; text-decoration: none; }

.nav--dark-bg, .nav--dark-bg a { color: #fff; }
.nav--solid, .nav--solid a { color: var(--dark); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

/* ---------------------------------------------------------------------- */
/* Hero (home)                                                            */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* accounts for mobile browser chrome, where supported */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #333 url("../img/hero-home.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.42);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 20px;
}
.hero h1 {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 18px;
}
.hero p {
  font-size: 30px;
  font-weight: 200;
  color: #e6e6e6;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  /*
  display: inline-block;
  padding: 12px 30px;
  border-radius: 26px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  border: none;
  font-family: inherit;
  */
	

  padding: 15px 40px;
  border-radius: 30px;
  outline: none;
  line-height: 1.2;
  color: #FFF;
  margin: 0 10px;
  font-weight: 200;
  font-size: 24px;
  cursor: pointer;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  -webkit-transition: 0.35s;
  -moz-transition: 0.35s;
  -ms-transition: 0.35s;
  -o-transition: 0.35s;
  transition: 0.35s;
  width: auto;
}
.btn:hover { text-decoration: none; }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--blue {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}
.btn--blue:hover { background: var(--blue-dark); }

/* ---------------------------------------------------------------------- */
/* Section: things we do                                                  */
/* ---------------------------------------------------------------------- */

.section { padding: 90px 0; }
.section--gray { background: var(--gray-bg); }

.section-hero {
  padding: 20px 0 0px;
  text-align: center;
}

.section-hero h1 {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 20px;
}

.section-hero p {
  color: var(--gray-body);
  font-size: 28px;
  font-weight: 200;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

.section__heading {
  text-align: center;
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 18px;
}

.section__sub {
  text-align: center;
  color: var(--gray-body);
  font-size: 30px;
  font-weight: 200;
  max-width: 700px;
  margin: 0 auto 56px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card__icon {
  background: var(--gray-bg);
  height: 190px;
  overflow: hidden;
  margin-bottom: 24px;
}
.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.68;
  color: var(--dark);
  margin: 0 0 10px;
}
.card p {
  color: var(--gray-body);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.68;
  margin: 0 0 10px;
}
.card a.more {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--blue-soft);
}

/* ---------------------------------------------------------------------- */
/* CTA banner                                                             */
/* ---------------------------------------------------------------------- */

.cta {
  background: var(--gray-bg);
  padding: 60px 0;
  text-align: center;
}
.cta h2 {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 16px;
}
.cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--gray-body);
}
.cta__row span {
  font-size: 30px;
  font-weight: 200;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Project showcase rows                                                  */
/* ---------------------------------------------------------------------- */

.showcase {
  padding: 70px 0;
}
.showcase--alt { background: var(--gray-bg); }

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase__grid.reverse .showcase__media { order: 1; }
.showcase__grid.reverse .showcase__text { order: 2; }

.showcase__media img {
  width: 100%;
  border-radius: 2px;
}
.showcase__media a { display: block; }

.showcase__text h3 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1.05;
  color: var(--dark);
  margin: 0 0 16px;
}
.showcase__text p {
  color: var(--gray-body);
  font-weight: 200;
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 480px;
}
.showcase__text a.more {
  font-size: 26px;
  font-weight: 200;
  line-height: 1.5;
  color: var(--blue);
}

/* ---------------------------------------------------------------------- */
/* Other work grid                                                        */
/* ---------------------------------------------------------------------- */

.otherwork__intro {
  text-align: center;
  font-size: 28px;
  font-weight: 200;
  color: var(--dark);
  margin-bottom: 44px;
}
.otherwork__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.otherwork__grid img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #111;
}

/* ---------------------------------------------------------------------- */
/* Newsletter                                                             */
/* ---------------------------------------------------------------------- */

.newsletter {
  text-align: center;
  padding: 90px 0;
}
.newsletter h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 14px;
}
.newsletter p {
  color: var(--gray-body);
  font-weight: 200;
  font-size: 28px;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.newsletter form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.input {
  margin: 0em;
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  padding: 20px;
  font-size: 24px;
  padding: 15px 28px;
  border-radius: 30px;
  border: 1px solid var(--gray-border-dark);
  outline: none;
  text-align: left;
  width: 340px;
  color: var(--dark);
  background: transparent;
  font-weight: 200;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.input:focus { outline: none; border-color: var(--blue); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  color: #999;
  text-align: center;
  padding: 26px 0;
  font-size: 14px;
}
.site-footer a { color: #ccc; }
.site-footer .fa-heart { color: var(--blue); margin: 0 1px; }

/* ---------------------------------------------------------------------- */
/* Inner page (roadmap / design / development / privacy)                  */
/* ---------------------------------------------------------------------- */

.page-hero {
  padding: 150px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 20px;
}
.page-hero p {
  color: var(--gray-body);
  font-size: 28px;
  font-weight: 200;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

.prose {
  max-width: 1114px;
  margin: 0 auto;
  padding: 50px 32px;
}
.prose h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--dark);
  margin: 40px 0 16px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 10px;
}
.prose p {
  color: var(--gray-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 20px;
}
.prose .callout {
  background: var(--gray-bg);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 16px;
  color: var(--dark);
}
.prose .callout p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
}
.prose .meta {
  color: #9a9a9a;
  font-size: 15px;
  margin: -10px 0 30px;
}
.prose ul, .prose ol {
  color: var(--gray-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-left: 22px;
}
.prose li { margin-bottom: 8px; }
.prose .faq-item { margin: 0 0 26px; }
.prose .faq-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}
.prose .faq-item p { margin: 0; font-size: 18px; }
.prose a { color: var(--blue); }

/* ---------------------------------------------------------------------- */
/* Digital development: large section heading                            */
/* ---------------------------------------------------------------------- */
.prose h2.section-lg {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  color: var(--dark);
  margin: 50px 0 16px;
}

/* ---------------------------------------------------------------------- */
/* Digital development: three-column feature intro                       */
/* ---------------------------------------------------------------------- */
.dev-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1114px;
  margin: 50px auto 40px;
  padding: 0 32px;
}
.dev-features h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.dev-features p {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-body);
  line-height: 1.5;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Digital development: tech-stack icon row                              */
/* ---------------------------------------------------------------------- */
.dev-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1114px;
  margin: 0 auto;
}
.dev-icons img {
  width: 100%;
  height: 153px;
  object-fit: cover;
  display: block;
}

/* Plain two-column "need X?" text (no box) */
.dev-need {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 26px 0;
}
.dev-need h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.dev-need p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-body);
  margin: 0;
}

/* Teal "cross platform vs. native apps" band */
.teal-band {
  background: #74d0de;
  padding: 30px 0;
}
.teal-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.teal-band__image img {
  width: 100%;
  border-radius: 2px;
  display: block;
}
.teal-band__text h2 {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 16px;
}
.teal-band__text p {
  color: #fff;
  font-weight: 200;
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 480px;
}
.teal-band__text a.more {
  font-size: 22px;
  font-weight: 200;
  color: #005e91;
  text-decoration: underline;
}

.inner-cta {
  background: var(--gray-bg);
  padding: 60px 0;
  text-align: center;
}
.inner-cta h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 10px;
}
.inner-cta p {
  color: var(--gray-body);
  font-size: 24px;
  font-weight: 200;
  line-height: 1.5;
  margin: 0 0 24px;
}
.inner-cta form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                           */
/* ---------------------------------------------------------------------- */

.contact-hero {
  position: relative;
  min-height: 100vh;
  background: #1a1a1a url("../img/contact-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.35) 55%, rgba(10,10,10,0.05) 100%);
}
.contact-hero .container {
  position: relative;
  z-index: 2;
  padding: 136px 11.5%;
  margin: 100px 0;
}
.contact-hero h1 {
  color: #fff;
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1.78px;
  line-height: 1;
  margin: 0 0 12px;
}
.contact-hero > .container > p {
  color: #d8d8d8;
  font-size: 28px;
  font-weight: 200;
  line-height: 1.4;
  margin: 0 0 34px;
}

.contact-form {
  max-width: 480px;
}
.contact-form label {
  display: block;
  color: #f0f0f0;
  font-size: 14px;
  margin: 22px 0 8px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  /*
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: #fff;
  */
	
	
  margin: 0.5em 0em 0.8em;
  width: 100%;
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  padding: 20px;
  font-size: 24px;
  padding: 15px 28px;
  border-radius: 30px;
  border: 1px solid rgba(129, 129, 129, 0.7);
  outline: none;
  text-align: left;
  color: #6C6C6C;
  background: transparent;
  font-weight: 200;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }

.captcha {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.captcha__code {
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 4px;
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 18px;
  user-select: none;
}

.contact-form button[type="submit"] {
  margin-top: 24px;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ---------------------------------------------------------------------- */
/* Project (app) pages                                                    */
/* ---------------------------------------------------------------------- */

.project-hero {
  position: relative;
  min-height: 100vh;
  background-color: #222;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
/* Matches the live site's .dm-background-overlay: a flat black scrim (not a
   gradient) sitting between the background photo and the content, at the
   same opacity for both the dark and light hero variants. */
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000;
  opacity: 0.3;
}
/* Brainiac, Dioko, Meditating Man, Tunetrack, Movie Bug, Pocket Billions
   (the "--compact" hero variant) use a darker scrim than the base value. */
.project-hero--compact::before {
  opacity: 0.6;
}
.project-hero--dark { color: #fff; background-color: #222; }
.project-hero--light { color: #242424; background-color: #f4f4f2; }

.project-hero__back {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 3;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  padding: 8px 16px;
  border-radius: 20px;
}
.project-hero--light .project-hero__back {
  color: rgba(0,0,0,0.7);
  background: rgba(255,255,255,0.55);
}
.project-hero__back:hover { background: rgba(0,0,0,0.55); color: #fff; text-decoration: none; }
.project-hero--light .project-hero__back:hover { background: rgba(255,255,255,0.8); color: #000; }

/* Live site layout (pages with separate bg/phone image assets, e.g. Oikosly):
   the text column and phone image are centred as a single group (flex
   justify-content:center, fixed 90px gap) rather than split space-between,
   matching thedigitalbubble.com exactly. */
.project-hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  padding: 0 5%;
}
.project-hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  flex: 0 1 560px;
  padding: 10px;
  margin-left: 20px;
}
.project-hero__media {
  flex: 0 1 451px;
  display: flex;
  justify-content: center;
}
.project-hero__media img {
  width: 100%;
  max-width: 451px;
  height: auto;
  display: block;
}
.project-hero__logo {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  display: block;
}
/* Live-site colours: pure black text on the light variant, pure white on
   the dark variant — legibility comes from the 0.3-opacity scrim behind it,
   not a translucent text colour. */
.project-hero__content h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.64px;
  line-height: 1;
  margin: 0 0 22px;
}
.project-hero--light .project-hero__content h1 { color: #000; }
.project-hero--dark .project-hero__content h1 { color: #fff; }
.project-hero__content .tagline {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.333;
  letter-spacing: -0.1px;
  margin: 0 0 25px;
}
.project-hero--light .tagline { color: #000; }
.project-hero--dark .tagline { color: #fff; }

/* Default: a text "View on the App Store" pill button (used by pages that
   don't yet have the real Apple badge asset). When the link wraps an <img>
   (the real app_store.svg badge, pulled from the live site), the button
   chrome is stripped and the badge renders at its native 168x61 size. */
.project-hero__store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-hero__store:hover { text-decoration: none; }
.project-hero--dark .project-hero__store {
  /*
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  /*
}
.project-hero--dark .project-hero__store:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.project-hero--light .project-hero__store {
  /*
  background: rgba(36,36,36,0.9);
  border: 1px solid rgba(36,36,36,0.9);
  color: #fff;
  */
}
.project-hero--light .project-hero__store:hover { background: #000; border-color: #000; }
.project-hero__store:has(img) {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  line-height: 0;
}
.project-hero__store img {
  width: 168px;
  height: 61px;
  display: block;
}

.project-hero__footer {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.project-hero--light .project-hero__footer { color: #000; }
.project-hero--dark .project-hero__footer { color: #fff; }
.project-hero--light .project-hero__footer a { color: #000; text-decoration: none; }
.project-hero--dark .project-hero__footer a { color: #fff; text-decoration: none; }
.project-hero__footer a:hover { text-decoration: underline; }

/* --compact: used on pages where the site footer should stay on-screen
   alongside the hero instead of sitting below the fold. The hero gives up
   its fixed 100vh and instead fills whatever space is left above the
   footer; on short/mobile viewports where the stacked content is taller
   than that, it simply grows back and the page scrolls as normal. */
body:has(.project-hero--compact) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.project-hero--compact {
  min-height: 0;
  flex: 1 1 auto;
}
.project-hero--compact .project-hero__grid {
  min-height: 0;
}
/* The phone screenshot's own natural height (~800px) is what actually
   keeps the hero tall — width:auto/height:auto sizing follows the
   available width, not the shrinking flex box. Cap it against the
   viewport so it scales down and the footer has room to sit in view. */
.project-hero--compact .project-hero__media img {
  width: auto;
  height: auto;
  max-width: 451px;
  max-height: calc(100vh - 180px);
}
body:has(.project-hero--compact) .site-footer {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Privacy Policy                                                         */
/* ---------------------------------------------------------------------- */

.privacy .prose h2:first-of-type { margin-top: 0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__grid.reverse .showcase__media,
  .showcase__grid.reverse .showcase__text { order: initial; }
  .otherwork__grid { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero p { font-size: 19px; }

  .section__heading,
  .cta h2,
  .inner-cta h2,
  .newsletter h2,
  .page-hero h1,
  .contact-hero h1 { font-size: 32px; letter-spacing: -1px; }

  .section__sub,
  .cta__row span,
  .inner-cta p,
  .newsletter p,
  .page-hero p,
  .contact-hero > .container > p { font-size: 19px; }

  .showcase__text h3 { font-size: 28px; letter-spacing: -1px; }
  .showcase__text p { font-size: 19px; }
  .showcase__text a.more { font-size: 18px; }

  .prose p { font-size: 18px; }
  .otherwork__intro { font-size: 20px; }

  .prose h2.section-lg { font-size: 28px; letter-spacing: -1px; }
  .dev-features { grid-template-columns: 1fr; gap: 30px; margin: 30px auto; }
  .dev-icons { grid-template-columns: repeat(2, 1fr); }
  .dev-need { grid-template-columns: 1fr; gap: 20px; }
  .teal-band__grid { grid-template-columns: 1fr; }
  .teal-band__text h2 { font-size: 28px; letter-spacing: -1px; }
  .teal-band__text p { font-size: 19px; max-width: none; }
  .teal-band__text a.more { font-size: 18px; }

  .project-hero__grid { flex-direction: column; text-align: center; padding-top: 90px; gap: 30px; }
  .project-hero__content { max-width: 100%; margin-left: 0; }
  .project-hero__store { margin: 0 auto; }
  .project-hero__media img { max-width: 320px; margin: 0 auto; }
  .project-hero__content h1 { font-size: 40px; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  body.nav-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    transform: none;
    background: var(--white);
    flex-direction: column;
    padding: 16px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-border);
  }
  body.nav-open .nav--dark-bg .nav__links,
  body.nav-open .nav--dark-bg { background: var(--black); }
  .otherwork__grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 120px; }
}
