/* ===========================================================================
   Delmis Solutions — landing page
   Recreated from Carrd template #271 (Lato, dark slate, single centered card)
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Layout is built in em/rem; the root size scales the whole card by viewport. */
  font-size: 18pt;
}
@media (max-width: 1680px) { html { font-size: 13pt; } }
@media (max-width: 1280px) { html { font-size: 13pt; } }
@media (max-width: 980px)  { html { font-size: 11pt; } }
@media (max-width: 736px)  { html { font-size: 11pt; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1;
  color: #fff;
  background-color: #21252a;
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Layered background: subtle geometric line pattern over a dark slate gradient
   (mirrors the template's pattern + tinted photo, minus the stock photo). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20path%20%7B%20fill%3A%20none%3B%20stroke%3A%20rgba(255,255,255,0.078)%3B%20stroke-width%3A%201.01px%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20miter%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M256%2C128L0%2C384l-192-192%20M256%2C256%20M256%2C384%20M256%2C128v128%20M256%2C128l256%2C256l192-192%20M256%2C256%20M256%2C384%20M256%2C128%20M256%2C384%20M256%2C256%20M-64%2C704%20M0%2C384%20M511.7%2C512L256%2C256L0.3%2C512%20M512%2C384%20M0.3%2C512%20M-192%2C320L0.3%2C512%20M704%2C320L511.7%2C512%20M-192%2C448%20L0%2C640l256-256l256%2C256l192-192%20M-192-192L0%2C0l256-256%20M256-128%20M256%2C0%20M256-128V0%20M256-256L512%2C0l192-192%20M256-128%20M256%2C0%20M256-256%20M256%2C0%20M256-128%20M0.3%2C128%20M-192-64L0.3%2C128%20M704-64L511.7%2C128%20M-192%2C64L0%2C256L256%2C0l256%2C256L704%2C64%20M512%2C256v128%20M0%2C256v128%20M0-192%20V0l0.3%2C128L256-128l255.7%2C256L512%2C0v-192%20M256%2C640V512V384%22%20%2F%3E%3C%2Fsvg%3E'),
    radial-gradient(125% 125% at 50% 0%, #30353c 0%, #24282e 45%, #1b1e23 100%);
  background-size: 497px, cover;
  background-position: center, center;
  background-repeat: repeat, no-repeat;
}

/* --------------------------------------------------------------------------- */
/* Card                                                                        */
/* --------------------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.card-inner {
  width: 46rem;
  max-width: 100%;
  padding: 3rem 2rem;
}
.card-inner > * { margin: var(--spacing, 1rem) 0; }
.card-inner > :first-child { margin-top: 0; }
.card-inner > :last-child { margin-bottom: 0; }

/* Avatar ----------------------------------------------------------------- */
.avatar { line-height: 0; }
.avatar-frame {
  display: inline-block;
  width: 7rem;
  overflow: hidden;
  border-radius: 100%;
  border: 1px solid rgba(255, 255, 255, 0.349);
  padding: 0.25rem;
}
.avatar-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Headline & bio --------------------------------------------------------- */
.name {
  margin: 0;
  font-size: 3.25em;
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
}
.bio {
  font-size: 1em;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.025rem;
  color: rgba(255, 255, 255, 0.58);
}

/* --------------------------------------------------------------------------- */
/* Panel (button + icons)                                                      */
/* --------------------------------------------------------------------------- */
.panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem !important;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.349);
  border-radius: 3rem;
  background-color: rgba(255, 255, 255, 0.129);
}
.panel-col { flex: 1 1 0; min-width: 0; }
.panel-col--left { display: flex; }
.panel-col--right { display: flex; justify-content: flex-end; }

/* White pill button ------------------------------------------------------ */
.btn-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  height: 3.75rem;
  padding: 0 1.875rem;
  border: 0;
  border-radius: 2.5rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.025rem;
  color: #000;
  background-color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-pill .label { overflow: hidden; }
.btn-pill .btn-icon {
  flex: 0 0 auto;
  width: 1.125em;
  height: 1.125em;
  fill: #000;
  transition: fill 0.25s ease;
}
.btn-pill:hover { transform: scale(1.0425); }
.btn-pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Round icon links ------------------------------------------------------- */
.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.875em;
}
.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 100%;
  background-color: #fff;
  box-shadow: 0 1rem 2.25rem 0 rgba(0, 0, 0, 0.102);
  transition: transform 0.25s ease;
}
.icons a svg {
  width: 60%;
  height: 60%;
  fill: #000;
}
.icons a:hover { transform: scale(1.06); }
.icons a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* --------------------------------------------------------------------------- */
/* Contact modal                                                               */
/* --------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background-color: rgba(15, 17, 20, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }

.modal-card {
  position: relative;
  width: 30rem;
  max-width: 100%;
  /* margin:auto centers the card when it fits and lets the overlay scroll
     (top-pinned) when the form is taller than a short viewport. */
  margin: auto;
  padding: 2.5rem 2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.349);
  border-radius: 1.75rem;
  background-color: rgba(46, 51, 58, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
  transform: translateY(0.75rem) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 100%;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-close svg { width: 1rem; height: 1rem; }
.modal-close:hover { background-color: rgba(255, 255, 255, 0.16); color: #fff; }
.modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.modal-title {
  margin: 0 0 1.5rem;
  font-size: 1.6em;
  font-weight: 300;
  color: #fff;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-size: 0.8em;
  font-weight: 400;
  letter-spacing: 0.03rem;
  color: rgba(255, 255, 255, 0.65);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95em;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-pill--full { margin-top: 0.5rem; width: 100%; }

.form-note {
  margin: 0;
  font-size: 0.72em;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}
.form-email { color: rgba(255, 255, 255, 0.7); white-space: nowrap; }

/* --------------------------------------------------------------------------- */
/* Entrance animation                                                          */
/* --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: reveal-up 1s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal-up {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* --------------------------------------------------------------------------- */
@media (max-width: 736px) {
  .card { text-align: center; }
  .card-inner { --spacing: 0.875rem; }

  .name { font-size: 2.5em; }

  .panel {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem !important;
  }
  .panel-col { width: 100%; }
  .panel-col--right { justify-content: center; }
  .icons { justify-content: center; font-size: 1.625em; }

  .avatar-frame { width: 6rem; }
}

@media (max-width: 480px) {
  .modal-card { padding: 2.5rem 1.4rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .modal-overlay,
  .modal-card { transition: none; }
  .btn-pill:hover,
  .icons a:hover { transform: none; }
}
