:root {
  --mal-navy: #061329;
  --mal-navy-2: #07182f;
  --mal-navy-3: #020914;
  --mal-blue: #0c1e3d;
  --mal-red: #cc0000;
  --mal-white: #ffffff;
  --mal-soft: rgba(255, 255, 255, 0.78);
  --mal-muted: rgba(255, 255, 255, 0.62);
  --mal-line: rgba(255, 255, 255, 0.16);
  --mal-card-radius: 32px;
  --mal-ui-radius: 16px;
  --mal-shell: 1320px;
}

html {
  scroll-behavior: smooth;
}

body.malameel-homepage-template,
body.malameel-homepage-template * {
  box-sizing: border-box;
}

body.malameel-homepage-template {
  margin: 0;
  min-height: 100vh;
  background-color: var(--mal-navy);
  background-image:
    radial-gradient(circle at 92% 38%, rgba(122, 0, 28, 0.22), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(204, 0, 0, 0.12), transparent 38%),
    radial-gradient(circle at 78% 9%, rgba(12, 30, 61, 0.35), transparent 30%),
    linear-gradient(180deg, #061329 0%, #07182f 48%, #020914 100%);
  background-attachment: fixed;
  color: var(--mal-white);
  font-family: "Figtree", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  overflow-x: hidden;
}

body.malameel-homepage-template img,
body.malameel-homepage-template svg {
  display: block;
  max-width: 100%;
}

body.malameel-homepage-template a {
  color: inherit;
}

body.malameel-homepage-template p,
body.malameel-homepage-template h1,
body.malameel-homepage-template h2,
body.malameel-homepage-template h3,
body.malameel-homepage-template ul,
body.malameel-homepage-template ol {
  margin-top: 0;
}

.mal-shell {
  width: min(var(--mal-shell), calc(100% - 64px));
  margin-inline: auto;
}

.mal-section {
  padding: 28px 0;
}

.mal-main {
  position: relative;
  z-index: 1;
}

.mal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--mal-card-radius);
  background:
    radial-gradient(circle at 0% 18%, rgba(204, 0, 0, 0.34), transparent 42%),
    radial-gradient(circle at 100% 70%, rgba(12, 30, 61, 0.72), transparent 48%),
    linear-gradient(135deg, rgba(92, 18, 42, 0.54), rgba(7, 18, 41, 0.9));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.23);
}

.mal-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.mal-card.mal-section-grid {
  padding: 48px 40px 64px;
}

.mal-open-grid {
  align-items: start;
  padding-block: 18px;
}

.mal-copy-block {
  min-width: 0;
}

.mal-copy-block p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--mal-soft);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
}

.mal-stacked-heading {
  margin-bottom: 18px;
  color: var(--mal-white);
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.mal-stacked-heading span {
  display: block;
}

/* Header */
.mal-site-header {
  position: relative;
  z-index: 20;
  padding: 26px 0 10px;
}

.mal-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mal-logo-link,
.mal-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mal-logo {
  width: 136px;
  height: auto;
}

/* Shared CTA button system. The SVG is the only button body. */
.mal-cta {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 244px;
  aspect-ratio: 348 / 124;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mal-white);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}

.mal-cta-skin {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 180ms ease;
}

.mal-cta-label {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.mal-cta:hover .mal-cta-skin,
.mal-cta:focus-visible .mal-cta-skin {
  filter: brightness(1.14) saturate(1.08) drop-shadow(0 0 18px rgba(255, 40, 75, 0.88)) drop-shadow(0 10px 24px rgba(204, 0, 0, 0.5));
}

.mal-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 4px;
  border-radius: 22px;
}

.mal-cta-small {
  width: 150px;
}

.mal-cta-small .mal-cta-label {
  margin-top: -5px;
  font-size: 12px;
}

/* Hero */
.mal-hero {
  padding: 28px 0 40px;
}

.mal-hero-shell {
  text-align: center;
}

.mal-hero-visual {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.mal-hero-visual img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.mal-hero-copy {
  margin-top: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mal-hero-copy h1 {
  width: 100%;
  margin-bottom: 8px;
  color: var(--mal-white);
  font-size: clamp(42px, 5.3vw, 76px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.mal-hero-copy h1 span {
  color: var(--mal-red);
}

.mal-hero-copy h2 {
  margin-bottom: 16px;
  color: var(--mal-white);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.mal-hero-copy p {
  max-width: 640px;
  margin-bottom: 20px;
  color: var(--mal-soft);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.5;
}

/* Founder */
.mal-founder-card {
  min-height: 360px;
  padding: 0 56px 0 0 !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(204, 0, 0, 0.48), transparent 38%),
    radial-gradient(circle at 100% 72%, rgba(12, 30, 61, 0.84), transparent 46%),
    linear-gradient(135deg, rgba(96, 15, 39, 0.62), rgba(7, 19, 43, 0.94));
}

.mal-founder-media {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: 360px;
}

.mal-founder-media img {
  width: min(94%, 560px);
  max-height: 380px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(10px);
}

.mal-founder-copy {
  padding: 48px 0;
}

.mal-plus-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--mal-soft);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.45;
}

.mal-plus-list li {
  position: relative;
  padding-left: 18px;
}

.mal-plus-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--mal-red);
  font-weight: 800;
}

/* Client proof */
.mal-proof-card {
  align-items: center;
}

.mal-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 38px;
  align-items: center;
  min-width: 0;
}

.mal-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
}

.mal-client-logo img {
  width: 100%;
  max-width: 160px;
  max-height: 56px;
  object-fit: contain;
}

/* Accordions */
.mal-accordion-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.mal-accordion {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mal-ui-radius);
  background: rgba(255, 255, 255, 0.105);
  color: var(--mal-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mal-accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 15px 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.25;
}

.mal-accordion summary::-webkit-details-marker {
  display: none;
}

.mal-accordion summary b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  color: var(--mal-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.mal-accordion[open] summary b {
  font-size: 0;
}

.mal-accordion[open] summary b::before {
  content: "-";
  font-size: 18px;
}

.mal-accordion p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--mal-soft);
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 1.5;
}

.mal-tier summary span {
  display: grid;
  gap: 3px;
}

.mal-tier summary strong {
  font-size: 1em;
  line-height: 1;
}

.mal-tier summary em {
  color: var(--mal-muted);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Case study */
.mal-case-card {
  align-items: start;
}

.mal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.mal-metric {
  min-width: 0;
}

.mal-metric strong {
  display: block;
  color: var(--mal-white);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.mal-metric span {
  display: block;
  margin-top: 6px;
  color: var(--mal-muted);
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1.25;
}

.mal-red-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--mal-soft);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.45;
}

.mal-red-list li {
  position: relative;
  padding-left: 16px;
}

.mal-red-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mal-red);
}

/* Portfolio */
.mal-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.mal-portfolio-item {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

.mal-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.mal-contact-card {
  align-items: start;
}

.mal-steps {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mal-soft);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.4;
  counter-reset: mal-step;
}

.mal-steps li {
  position: relative;
  min-height: 26px;
  padding-left: 40px;
  counter-increment: mal-step;
}

.mal-steps li::before {
  content: counter(mal-step);
  position: absolute;
  top: -2px;
  left: 0;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mal-red);
  color: var(--mal-white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.mal-contact-form {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.mal-field {
  display: grid;
  min-width: 0;
}

.mal-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mal-contact-form input,
.mal-contact-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mal-ui-radius);
  background: rgba(255, 255, 255, 0.11);
  color: var(--mal-white);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mal-contact-form input {
  min-height: 54px;
  padding: 0 22px;
}

.mal-contact-form textarea {
  min-height: 205px;
  padding: 18px 22px;
  overflow: hidden;
  resize: vertical;
}

.mal-contact-form input::placeholder,
.mal-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
  opacity: 1;
}

.mal-contact-form input:focus,
.mal-contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.33);
  background: rgba(255, 255, 255, 0.14);
}

.mal-contact-form .mal-cta-button {
  justify-self: center;
  margin-top: 2px;
}

.mal-form-message {
  border-radius: var(--mal-ui-radius);
  padding: 14px 18px;
  color: var(--mal-white);
  font-weight: 700;
}

.mal-form-message-success {
  background: rgba(0, 120, 72, 0.36);
  border: 1px solid rgba(126, 255, 198, 0.35);
}

.mal-form-message-error {
  background: rgba(204, 0, 0, 0.22);
  border: 1px solid rgba(255, 84, 84, 0.45);
}

.mal-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.mal-footer {
  padding: 34px 0 56px;
}

.mal-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 48px 64px;
  color: var(--mal-soft);
  font-size: 14px;
  line-height: 1.5;
}

.mal-footer-logo {
  width: 112px;
  height: auto;
  margin-bottom: 18px;
}

.mal-footer-contact p,
.mal-footer-disclaimer,
.mal-footer-copyright {
  margin-bottom: 0;
}

.mal-footer-copyright {
  grid-column: 1 / -1;
  color: var(--mal-muted);
}

/* Lightbox */
.mal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.84);
}

.mal-lightbox.is-open {
  display: grid;
}

.mal-lightbox img {
  width: auto;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
}

.mal-lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--mal-white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .mal-card.mal-section-grid {
    padding: 42px 34px 56px;
  }

  .mal-section-grid {
    gap: 42px;
  }

  .mal-stacked-heading {
    font-size: clamp(28px, 3.2vw, 38px);
  }

  .mal-founder-card {
    padding-right: 34px !important;
  }

  .mal-founder-media img {
    width: min(100%, 500px);
    max-height: 360px;
  }

  .mal-logo-grid {
    gap: 24px 28px;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .mal-shell {
    width: min(var(--mal-shell), calc(100% - 40px));
  }

  .mal-section-grid {
    gap: 28px;
  }

  .mal-card.mal-section-grid {
    padding: 34px 26px 46px;
  }

  .mal-founder-card {
    padding: 0 26px 0 0 !important;
  }

  .mal-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 20px;
  }

  .mal-portfolio-grid {
    gap: 10px;
  }

  .mal-metrics {
    gap: 14px;
  }

  .mal-accordion summary,
  .mal-accordion p {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  body.malameel-homepage-template {
    background-attachment: scroll;
  }

  .mal-shell {
    width: min(100%, calc(100% - 32px));
  }

  .mal-site-header {
    padding-top: 22px;
  }

  .mal-logo {
    width: 124px;
  }

  .mal-cta-small {
    width: 132px;
  }

  .mal-cta-small .mal-cta-label {
    font-size: 11px;
  }

  .mal-section {
    padding: 20px 0;
  }

  .mal-section-grid,
  .mal-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mal-card.mal-section-grid {
    padding: 30px 22px 48px;
  }

  .mal-open-grid {
    padding-block: 12px;
  }

  .mal-stacked-heading {
    margin-bottom: 14px;
    font-size: clamp(28px, 8.4vw, 40px);
  }

  .mal-copy-block p {
    max-width: none;
  }

  .mal-hero {
    padding: 18px 0 32px;
  }

  .mal-hero-visual {
    width: min(124vw, 760px);
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .mal-hero-copy {
    margin-top: -4px;
  }

  .mal-hero-copy h1 {
    font-size: clamp(36px, 10.6vw, 56px);
  }

  .mal-hero-copy h2 {
    font-size: clamp(26px, 7.6vw, 38px);
  }

  .mal-hero-copy p {
    max-width: none;
  }

  .mal-founder-card {
    padding: 0 22px 34px !important;
  }

  .mal-founder-media {
    min-height: 0;
    order: 1;
    margin-inline: -8px;
  }

  .mal-founder-copy {
    order: 2;
    padding: 0;
  }

  .mal-founder-media img {
    width: min(100%, 470px);
    max-height: none;
    transform: translateY(0);
  }

  .mal-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
    padding-top: 6px;
  }

  .mal-client-logo {
    min-height: 52px;
  }

  .mal-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
  }

  .mal-red-list {
    gap: 10px;
  }

  .mal-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mal-contact-form {
    gap: 12px;
  }

  .mal-contact-form textarea {
    min-height: 230px;
  }

  .mal-footer {
    padding-bottom: 42px;
  }
}

@media (max-width: 460px) {
  .mal-header-grid {
    gap: 14px;
  }

  .mal-logo {
    width: 112px;
  }

  .mal-cta-small {
    width: 118px;
  }

  .mal-card.mal-section-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mal-hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .mal-cta {
    width: 224px;
  }

  .mal-cta-small {
    width: 116px;
  }

  .mal-cta-label {
    font-size: 14px;
  }

  .mal-cta-small .mal-cta-label {
    font-size: 10px;
  }

  .mal-logo-grid,
  .mal-portfolio-grid {
    gap: 14px;
  }

  .mal-accordion summary {
    min-height: 50px;
    padding: 14px 18px;
  }

  .mal-accordion p {
    padding: 0 18px 20px;
  }

  .mal-metrics {
    grid-template-columns: 1fr;
  }
}
