:root {
  --paper: #f3eee6;
  --paper-deep: #ebe4d8;
  --ink: #141210;
  --ink-soft: #3a342c;
  --muted: #7a7268;
  --champagne: #b8956a;
  --champagne-soft: rgba(184, 149, 106, 0.45);
  --line: rgba(20, 18, 16, 0.1);
  --btn-face: #1a1714;
  --btn-text: #f7f2ea;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 20% 30%, #f7e7d0 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 80% 20%, #e8d4b8 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 85%, #dcc4a0 0%, transparent 55%),
    linear-gradient(135deg, #f8f3eb 0%, #f0e6d6 40%, #e8dcc8 70%, #f3eee6 100%);
  background-size: 200% 200%;
  animation: bg-drift 18s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

@keyframes bg-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
    background-position: 0% 40%;
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.08);
    background-position: 80% 20%;
  }
  100% {
    transform: translate3d(1%, -2%, 0) scale(1.06);
    background-position: 40% 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    inset: 0;
    transform: none;
    background-position: 50% 50%;
  }
}

/* Soft film grain — one memorable material detail */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.portrait-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 3px;
  background:
    linear-gradient(160deg, rgba(184, 149, 106, 0.85) 0%, rgba(184, 149, 106, 0.25) 45%, rgba(184, 149, 106, 0.7) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 28px rgba(20, 18, 16, 0.08);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: var(--paper-deep);
  border: 3px solid var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 9vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.rule {
  width: 36px;
  height: 1px;
  margin: 16px auto 18px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--champagne) 20%,
    var(--champagne) 80%,
    transparent 100%
  );
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
}

.lede {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.context {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.005em;
  line-height: 1.4;
}
.context li {
  margin: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.985) translateY(0.5px);
}

.btn-primary {
  background: linear-gradient(180deg, #24201c 0%, var(--btn-face) 100%);
  color: var(--btn-text);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px rgba(20, 18, 16, 0.16),
    0 1px 2px rgba(20, 18, 16, 0.12);
}

.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 24px rgba(20, 18, 16, 0.2),
    0 1px 2px rgba(20, 18, 16, 0.14);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 1px 2px rgba(20, 18, 16, 0.03);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(20, 18, 16, 0.16);
}

.phone {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 10px 4px 2px;
  transition: color 0.15s ease;
}

.phone:hover {
  color: var(--ink);
}

@media (min-width: 480px) {
  body {
    padding: 48px 28px;
  }

  .card {
    max-width: 380px;
  }

  .portrait-wrap {
    width: 112px;
    height: 112px;
    margin-bottom: 26px;
  }
}

@media (max-height: 700px) {
  body {
    padding-top: calc(18px + var(--safe-top));
    padding-bottom: calc(18px + var(--safe-bottom));
  }

  .portrait-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(2.1rem, 8vw, 2.45rem);
  }

  .rule {
    margin: 12px auto 14px;
  }

  .context {
    margin-bottom: 22px;
  }

  .btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Hide Netlify Drop badge */
a[href*="netlify.com/"],
a[href*="www.netlify.com"],
#netlify-badge,
.netlify-badge {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Compact premium contact form */
.lead-form {
  margin: 8px 0 8px;
  padding: 18px 16px 14px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 8px 22px rgba(20, 18, 16, 0.05);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.lead-label {
  margin: 0 0 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.field-label .req {
  color: var(--champagne);
  margin-left: 2px;
}

.field-label .opt {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lead-form textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(122, 114, 104, 0.75);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--champagne-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}

.lead-submit {
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
}

.lead-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lead-status {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.4;
  min-height: 1.2em;
}

.lead-status.is-success {
  color: var(--ink-soft);
}

.lead-status.is-error {
  color: #8a4a32;
}

@media (max-height: 700px) {
  .lead-form {
    padding: 14px 14px 12px;
    gap: 9px;
  }
  .lead-form textarea {
    min-height: 60px;
  }
}
