/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg: #f4f8f7;
  --paper: #ffffff;
  --ink: #10201d;
  --muted: #667570;
  --mint: #16b99a;
  --mint-dark: #0b8e77;
  --mint-light: #dff6f0;
  --mint-faint: #edf9f6;
  --dark: #10211e;
  --dark-soft: #172b27;
  --line: #d7e8e3;
  --max: 1320px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 36px;
  --shadow: 0 24px 70px rgba(22, 58, 51, 0.09);
}
/* =========================================================
   RESET
========================================================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(22, 185, 154, 0.08),
      transparent 32rem
    ),
    var(--bg);
  color: var(--ink);
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
/* =========================================================
   TYPOGRAPHY
========================================================= */
.eyebrow {
  margin: 0 0 12px;
  color: var(--mint-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 4.6vw, 4.25rem);
  line-height: 0.97;
  letter-spacing: -0.058em;
}
.section-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--mint);
  color: #fff;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  background: #fff;
  border-color: var(--mint);
}
.text-link {
  color: var(--mint-dark);
  font-weight: 850;
}
/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 247, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 232, 227, 0.8);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.055em;
}
.logo span {
  color: var(--mint);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.languages {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.languages a.active {
  color: var(--ink);
}
/* =========================================================
   HERO
========================================================= */
.hero {
  padding: 58px 0 38px;
}
.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(390px, 0.92fr);
  gap: 58px;
  align-items: center;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.8rem, 7.5vw, 7.25rem);
  line-height: 0.87;
  letter-spacing: -0.078em;
}
.hero h1 span {
  color: var(--mint);
}
.hero-description {
  max-width: 690px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* hero image */
.hero-media {
  position: relative;
  height: 525px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #d9e7e3;
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.6s ease;
}
.hero-media:hover img {
  transform: scale(1.025);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 30, 26, 0.01),
    rgba(7, 30, 26, 0.2)
  );
  pointer-events: none;
}
.hero-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  max-width: 330px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
}
.hero-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.98rem;
}
.hero-card span {
  color: var(--muted);
  font-size: 0.87rem;
}
/* =========================================================
   PROOF STRIP
========================================================= */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-item {
  padding: 23px 20px;
}
.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}
.proof-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.33rem;
  letter-spacing: -0.04em;
}
.proof-item span {
  color: var(--muted);
  font-size: 0.88rem;
}
/* =========================================================
   SECTIONS
========================================================= */
section {
  padding: 40px 0;
}
/* =========================================================
   SERVICES
========================================================= */
.services {
  background: var(--paper);
}
.section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}
.section-split .section-copy {
  max-width: 560px;
  margin-bottom: 4px;
}
.services-grid {
  display: grid;
  grid-template-columns:
    1.08fr
    0.96fr
    0.96fr;
  gap: 16px;
  margin-top: 40px;
}
.service {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid transparent;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.service h3 {
  margin: 0 0 7px;
  font-size: 1.7rem;
  line-height: 1.06;
  letter-spacing: -0.043em;
}
.service-tagline {
  margin-bottom: 13px;
  color: var(--mint-dark);
  font-weight: 800;
}
.service p {
  margin: 0;
  color: var(--muted);
}

/* service image strip */
.service-feature {
  min-height: 265px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--dark);
  color: #fff;
}
.service-feature-image {
  min-height: 265px;
  overflow: hidden;
}
.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}
.service-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
}
.service-feature-copy .eyebrow {
  color: #62dac3;
}
.service-feature-copy h3 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.service-feature-copy p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}
/* =========================================================
   PORTFOLIO
========================================================= */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-rows: 245px 245px;
  gap: 16px;
  margin-top: 38px;
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #dbe7e3;
}
.project-large {
  grid-row: span 2;
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project:hover img {
  transform: scale(1.025);
}
.project-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 14px 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(13px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.project-overlay small {
  display: block;
  margin-bottom: 3px;
  color: var(--mint-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.project-overlay strong {
  font-size: 1rem;
}
/* =========================================================
   PRICING
========================================================= */
.pricing {
  background: var(--mint-light);
}
.pricing-layout {
  display: grid;
  grid-template-columns:
    0.76fr
    1.24fr;
  gap: 54px;
  align-items: start;
}
.pricing-intro {
  position: sticky;
  top: 110px;
}
.pricing-intro .section-copy {
  margin-bottom: 28px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.price-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(11, 142, 119, 0.12);
}
.price-pill {
  align-self: flex-start;
  padding: 7px 11px;
  margin-bottom: auto;
  border-radius: 999px;
  background: var(--mint-light);
  color: var(--mint-dark);
  font-size: 0.83rem;
  font-weight: 900;
}
.price-card h3 {
  margin: 31px 0 8px;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
}
.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}
/* =========================================================
   WORKFLOW
========================================================= */
.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  padding: 21px 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 33, 30, 0.97), rgba(16, 33, 30, 0.91)),
    url("https://images.unsplash.com/photo-1642969164999-979483e21601?auto=format&fit=crop&w=1600&q=80")
      center / cover;
}
.flow {
  position: relative;
  z-index: 1;
  padding: 4px 22px;
}
.flow + .flow {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.flow-number {
  display: block;
  margin-bottom: 5px;
  color: #62dac3;
  font-size: 0.75rem;
  font-weight: 900;
}
.flow strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.96rem;
}
.flow small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}
/* =========================================================
   CONTACT
========================================================= */
.contact {
  padding: 40px 0 44px;
}
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 55px;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(22, 185, 154, 0.33),
      transparent 30rem
    ),
    var(--dark);
  color: #fff;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-card .eyebrow {
  color: #65dbc4;
}
.contact-card h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.91;
  letter-spacing: -0.068em;
}
.contact-card p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}
.contact-actions {
  position: relative;
  z-index: 2;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-actions .btn {
  width: 100%;
}
.contact-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.contact-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}
/* =========================================================
   FOOTER
========================================================= */
footer {
  padding: 0 0 36px;
}
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    height: 430px;
  }
  .proof {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .proof-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service {
    min-height: 250px;
  }
  .service-feature {
    grid-template-columns: 1fr;
  }
  .service-feature-image {
    height: 300px;
  }
  .pricing-layout {
    grid-template-columns: 1fr;
  }
  .pricing-intro {
    position: static;
  }
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow:nth-of-type(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 14px;
    padding-top: 17px;
  }
  .flow:nth-of-type(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 14px;
    padding-top: 17px;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    flex-direction: row;
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 26px), var(--max));
  }
  section {
    padding: 28px 0;
  }
  .languages {
    display: none;
  }
  .nav .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.88rem;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 5.15rem);
  }
  .hero-media {
    height: 330px;
  }
  .hero-card {
    max-width: none;
  }
  .proof-item {
    padding: 17px 13px;
  }
  .proof-item strong {
    font-size: 1.05rem;
  }
  .proof-item span {
    font-size: 0.76rem;
  }
  .section-split,
  .portfolio-header {
    display: block;
  }
  .section-split .section-copy {
    margin-top: 18px;
  }
  .portfolio-header .text-link {
    display: inline-block;
    margin-top: 15px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows:
      310px
      210px
      210px;
  }
  .project-large {
    grid-row: auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .workflow {
    grid-template-columns: 1fr;
  }
  .flow {
    padding: 13px 0;
  }
  .flow + .flow,
  .flow:nth-of-type(3),
  .flow:nth-of-type(4) {
    margin: 0;
    padding: 13px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .contact-actions {
    flex-direction: column;
  }
}

/* Integration with the existing PHP shell and content editor. */
.prototype-home {
  --text: var(--ink);
  --accent: var(--mint);
  --accent-dark: var(--mint-dark);
}
.prototype-main > section + section {
  margin-top: 0;
}
.prototype-main > section {
  scroll-margin-top: 90px;
}
.prototype-main h1,
.prototype-main h2,
.prototype-main h3 {
  font-weight: 800;
  color: inherit;
}
.prototype-main .section-title h2 {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
}
.prototype-main .hero h1 em {
  color: var(--mint);
  font-style: normal;
}
.prototype-main .hero h1 {
  margin: 0;
}
.prototype-main .hero-description p,
.prototype-main .section-copy p {
  margin: 0;
}
.prototype-main .service-tagline p {
  color: inherit;
}
.prototype-main .editable-media {
  height: 100%;
  width: 100%;
}
.prototype-main .editable-media p {
  margin: 0;
  height: 100%;
}
.prototype-main .editable-media img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  float: none !important;
}
.prototype-main .editable-media p:empty {
  display: none;
}
.prototype-main .service-feature-image {
  position: relative;
}
.prototype-main .service-feature-image .editable-media {
  position: absolute;
  inset: 0;
}
.prototype-main .portfolio-grid {
  padding: 0;
}
.prototype-main .price-card .price-pill {
  line-height: 1.3;
}
.prototype-main .workflow {
  margin-top: 24px;
}
.prototype-main .contact-card h2 {
  color: white;
}
.prototype-home .site-header .container {
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
  padding: 0;
  display: flex;
  min-height: 72px;
  gap: 24px;
}
.prototype-home .site-header .brand {
  margin-right: auto;
}
.prototype-home .site-header .brand img {
  height: 44px;
  width: auto;
}
.prototype-home .site-nav {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 28px;
}
.prototype-home .site-nav a {
  font-size: 0.94rem;
  white-space: nowrap;
}
.prototype-home .language-switch {
  margin-left: 8px;
}
.prototype-home .header-quote {
  white-space: nowrap;
}
.prototype-home .btn {
  cursor: pointer;
  text-decoration: none;
}
.prototype-home .btn:focus-visible,
.prototype-home a:focus-visible {
  outline: 3px solid var(--mint-dark);
  outline-offset: 4px;
}
.prototype-home .site-footer {
  background: transparent;
  padding: 0 0 36px;
}
.prototype-home .site-footer > .container {
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.prototype-home .site-footer img {
  width: 132px;
  height: auto;
  max-width: 100%;
}
.prototype-home .modal img {
  max-width: 100%;
}
@media (min-width: 981px) {
  .prototype-home .site-nav {
    display: flex;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .prototype-home .menu-toggle {
    display: none;
  }
}
@media (max-width: 980px) {
  .prototype-home .site-header .container {
    gap: 18px;
  }
  .prototype-home .menu-group {
    order: 4;
  }
  .prototype-home .menu-toggle {
    display: block;
  }
  .prototype-home .site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 22px);
    background: white;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .prototype-home .site-nav.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .prototype-main .service-feature-image {
    min-height: 300px;
  }
}
@media (max-width: 650px) {
  .prototype-home .site-header .container {
    width: calc(100% - 26px);
    gap: 12px;
  }
  .prototype-home .header-quote {
    display: inline-flex;
    grid-area: quote;
  }
  .prototype-home .language-switch {
    margin-left: 0;
  }
  .prototype-main .hero-grid {
    gap: 32px;
  }
  .prototype-main .service-feature-copy {
    padding: 30px 24px;
  }
  .prototype-main .contact-card {
    padding: 36px 24px;
  }
  .prototype-main .portfolio-grid {
    grid-auto-rows: 240px;
  }
  .prototype-main .hero h1 {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .prototype-home *,
  .prototype-home *::before,
  .prototype-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
.service > [data-i18n-html$="Body"],
.price-card > [data-i18n-html$="Body"] {
  color: var(--muted);
}
.service-feature-copy > [data-i18n-html$="Body"] {
  color: rgba(255, 255, 255, 0.66);
}
.service-feature-copy > [data-i18n-html$="Body"] p {
  margin: 0;
}
.prototype-main .project-overlay strong {
  display: block;
}
.prototype-home .modal {
  z-index: 200;
}
.prototype-main .workflow {
  background: var(--dark);
}
.workflow-media {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}
.workflow-media p {
  margin: 0;
  height: 100%;
}
.workflow-media img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
}

.workflow-media {
  margin: 0;
}
/* The prototype's motion: soft image zoom, lifted service cards and smooth links. */
.prototype-home {
  --scroll-offset: 90px;
}
.prototype-main .service p {
  margin: 0 0 12px;
}
.prototype-main .service ul,
.prototype-main .price-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.prototype-main .service li,
.prototype-main .price-card li {
  margin: 6px 0;
}
.prototype-main .service li p,
.prototype-main .price-card li p {
  margin: 0;
}
.prototype-main .service-note {
  color: var(--muted);
  margin: 24px 0;
  max-width: 900px;
}
.prototype-main .price-card h3 {
  margin-top: 22px;
}
.prototype-main .price-card p,
.prototype-main .price-card li {
  font-size: 0.9rem;
}
.prototype-main .price-card a {
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prototype-main .service-feature-image img {
  transition: transform 0.6s ease;
}
.prototype-main .service-feature:hover img {
  transform: scale(1.025);
}
.prototype-main .project:focus-visible img {
  transform: scale(1.025);
}
.prototype-home .btn:focus-visible {
  transform: translateY(-1px);
}
.prototype-main .price-card {
  min-width: 0;
}
@media (max-width: 650px) {
  .prototype-home .site-header .brand img {
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .prototype-main .project img,
  .prototype-main .hero-media img,
  .prototype-main .service-feature-image img,
  .prototype-main .service,
  .prototype-home .btn {
    transform: none !important;
  }
}
.prototype-main .price-pill {
  margin-bottom: 0;
}
.prototype-home .subpage-modal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prototype-home .subpage-modal-body th,
.prototype-home .subpage-modal-body td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
}
.prototype-home .subpage-modal-body {
  overflow-x: auto;
}

@media (max-width: 650px) {
  .prototype-main > .contact {
    padding: 28px 0 32px;
  }
}
/* Portfolio shares the homepage shell, with image-led project stories. */
.prototype-portfolio .portfolio-main {
  display: block;
}
.prototype-portfolio .portfolio-intro {
  padding: 40px 0 28px;
}
.prototype-portfolio .portfolio-intro .text-link {
  display: inline-block;
  margin-bottom: 28px;
}
.prototype-portfolio .portfolio-intro h1 {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: 800;
  margin: 0;
}
.prototype-portfolio .portfolio-gallery {
  padding: 0 0 40px;
  margin: 0;
}
.prototype-portfolio .portfolio-gallery > .container {
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
  padding: 0;
}
.prototype-portfolio [data-portfolio-list] > .card {
  position: relative;
  padding: 32px;
  margin: 0 0 24px !important;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: none;
  scroll-margin-top: 90px;
}
.prototype-portfolio .portfolio-entry__header {
  padding: 0;
  margin: 0 0 24px;
}
.prototype-portfolio .portfolio-entry__header h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 900px;
}
.prototype-portfolio .portfolio-entry__date-badge {
  position: static;
  margin: 0 0 12px;
  color: var(--mint-dark);
}
.prototype-portfolio .portfolio-entry__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}
.prototype-portfolio .portfolio-entry__body {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.prototype-portfolio .portfolio-entry__body::after {
  display: none;
}
.prototype-portfolio .portfolio-entry__body .rich-text {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--muted);
}
.prototype-portfolio .portfolio-entry__body-content {
  max-height: none !important;
  overflow: visible !important;
}
.prototype-portfolio .portfolio-entry__body-content::after {
  display: none;
}
.prototype-portfolio .portfolio-entry__read-more {
  display: none !important;
}
.prototype-portfolio .portfolio-entry__text {
  margin: 0;
}
.prototype-portfolio .portfolio-gallery-slide img {
  width: 100%;
  height: 380px;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: none;
}
.prototype-portfolio .portfolio-entry__gallery-stack {
  min-width: 0;
}
.prototype-portfolio .portfolio-gallery-thumbnail {
  border-radius: 12px;
}
.prototype-portfolio .portfolio-gallery-slide img {
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .prototype-portfolio .portfolio-gallery-slide:hover img {
    transform: scale(1.015);
  }
}
@media (max-width: 900px) {
  .prototype-portfolio .portfolio-entry__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .prototype-portfolio [data-portfolio-list] > .card {
    padding: 24px;
  }
}
@media (max-width: 650px) {
  .prototype-portfolio .portfolio-intro {
    padding: 28px 0;
  }
  .prototype-portfolio .portfolio-gallery > .container {
    width: calc(100% - 26px);
  }
  .prototype-portfolio [data-portfolio-list] > .card {
    padding: 20px;
  }
  .prototype-portfolio .portfolio-gallery-slide img {
    height: 280px;
  }
  .prototype-portfolio .portfolio-entry__body .rich-text {
    font-size: 0.96rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .prototype-portfolio .portfolio-gallery-slide img {
    transform: none !important;
  }
}
/* Anchor the mobile popover to the right edge on every public page. */
@media (max-width: 980px) {
  .prototype-home .site-nav {
    left: auto;
    right: 0;
  }
}
.prototype-portfolio .portfolio-intro .eyebrow {
  display: block;
}
/* Project stories: natural image ratios, open layout and balanced text columns. */
.prototype-portfolio .portfolio-intro {
  padding-bottom: 40px;
}
.prototype-portfolio [data-portfolio-list] > .card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 14px;
  padding: 40px 0;
  margin: 0 !important;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.prototype-portfolio .portfolio-entry__date-badge {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: end;
}
.prototype-portfolio .portfolio-entry__header {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}
.prototype-portfolio .portfolio-entry__header h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.65rem);
  margin: 0;
}
.prototype-portfolio .portfolio-entry__content {
  display: contents;
}
.prototype-portfolio .portfolio-entry__gallery-stack {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 100%;
  max-width: none;
  align-self: start;
}
.prototype-portfolio .portfolio-entry__text {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  max-width: none;
  align-self: start;
}
.prototype-portfolio .portfolio-entry__body {
  width: 100%;
  min-width: 0;
}
.prototype-portfolio .portfolio-entry__body .rich-text {
  font-size: 1rem;
  line-height: 1.7;
}
.prototype-portfolio .portfolio-entry__body .rich-text > p:first-child {
  margin-top: 0;
}
.prototype-portfolio .portfolio-entry__body em {
  display: block;
  font-size: 0.86rem;
  font-style: normal;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prototype-portfolio .portfolio-gallery-viewport {
  display: block;
}
.prototype-portfolio .portfolio-gallery-slide {
  display: none;
  transform: none;
}
.prototype-portfolio .portfolio-gallery-slide.is-active {
  display: block;
}
.prototype-portfolio .portfolio-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  border-radius: 20px;
  background: transparent;
}
.prototype-portfolio .portfolio-gallery-thumbnail {
  width: 76px;
  height: 64px;
  aspect-ratio: auto;
  background: transparent;
}
.prototype-portfolio .portfolio-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prototype-portfolio .portfolio-gallery-thumbnails {
  margin-top: 12px;
}
@media (min-width: 1100px) {
  .prototype-portfolio [data-portfolio-list] > .card:nth-child(even) {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .prototype-portfolio
    [data-portfolio-list]
    > .card:nth-child(even)
    .portfolio-entry__gallery-stack {
    grid-column: 2;
  }
  .prototype-portfolio
    [data-portfolio-list]
    > .card:nth-child(even)
    .portfolio-entry__date-badge,
  .prototype-portfolio
    [data-portfolio-list]
    > .card:nth-child(even)
    .portfolio-entry__header,
  .prototype-portfolio
    [data-portfolio-list]
    > .card:nth-child(even)
    .portfolio-entry__text {
    grid-column: 1;
  }
}
@media (max-width: 760px) {
  .prototype-portfolio [data-portfolio-list] > .card {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    padding: 28px 0;
  }
  .prototype-portfolio .portfolio-entry__date-badge {
    align-self: flex-start;
  }
  .prototype-portfolio .portfolio-entry__gallery-stack {
    margin: 8px 0;
  }
  .prototype-portfolio .portfolio-entry__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .prototype-portfolio .portfolio-gallery-slide img {
    height: auto;
  }
}
/* Mobile menu stays on the left; language control stays on the right. */
@media (max-width: 980px) {
  .prototype-home .site-header .container {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    grid-template-areas: "menu brand quote lang";
    gap: 16px;
  }
  .prototype-home .menu-group {
    grid-area: menu;
    order: 0;
    justify-self: start;
  }
  .prototype-home .site-header .brand {
    grid-area: brand;
    margin: 0;
    justify-self: start;
  }
  .prototype-home .language-switch {
    grid-area: lang;
    margin: 0;
  }
  .prototype-home .header-quote {
    display: inline-flex;
    grid-area: quote;
  }
  .prototype-home .site-nav {
    left: 0;
    right: auto;
  }
}
.prototype-portfolio [data-portfolio-list] > .card { grid-template-rows:auto auto 1fr; }
.prototype-portfolio .portfolio-entry__gallery-stack { grid-row:1 / span 3; }

@media (max-width: 480px) {
  .prototype-home .site-header .container {
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .prototype-home .site-header .brand img {
    width: 100%;
    max-width: 100px;
    height: auto;
  }
  .prototype-home .language-current {
    padding-inline: 4px;
  }
}

/* Shared dimensions and typography for quote and email actions. */
.prototype-home .btn[data-contact-trigger],
.prototype-home .contact-actions .btn-outline {
  box-sizing: border-box;
  width: 180px;
  min-width: 180px;
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  flex: 0 0 auto;
  justify-self: start;
  align-self: start;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}
.prototype-home .site-header .header-quote {
  align-self: center;
}
@media (max-width: 380px) {
  .prototype-home .site-header .container {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "menu brand lang" "quote quote quote";
    padding-block: 8px;
  }
  .prototype-home .site-header .header-quote {
    justify-self: center;
  }
}
