/* Enigma Knot Homepage V1
   Palette sampled from the approved logo board for this working prototype.
   Final brand-sheet values should supersede these once formally approved. */

:root {
  --ivory: #f5f0e6;
  --ivory-deep: #e8dfd0;
  --slate: #26363d;
  --slate-soft: #3c4c52;
  --champagne: #d2ad6f;
  --ink: #26363d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 190px; display: block; }
nav { display: flex; align-items: center; gap: 28px; font-size: .88rem; letter-spacing: .04em; }
nav a { text-decoration: none; }
.nav-contact { border-bottom: 1px solid var(--champagne); padding-bottom: 4px; }

.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 60px;
  padding: 48px 0 68px;
}
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--slate-soft);
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  margin-bottom: 30px;
}
h1 em { font-weight: 400; color: var(--slate-soft); }
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
h3 { font-size: 1.05rem; letter-spacing: .01em; }
.lede { max-width: 760px; font-size: 1.2rem; margin-bottom: 34px; }
.button {
  display: inline-block;
  padding: 14px 22px;
  background: var(--slate);
  color: var(--ivory);
  text-decoration: none;
  font-size: .88rem;
  letter-spacing: .04em;
}
.hero-mark {
  height: 230px;
  display: grid;
  place-items: center;
  position: relative;
}
.glow {
  color: var(--champagne);
  font-size: 56px;
  text-shadow: 0 0 18px rgba(210,173,111,.45), 0 0 50px rgba(210,173,111,.18);
}

.recognition {
  background: var(--slate);
  color: var(--ivory);
  padding: 76px max(24px, calc((100vw - var(--max))/2));
}
.recognition .eyebrow { color: var(--champagne); }
.recognition p:last-child { max-width: 820px; font-size: 1.2rem; }

.approach, .choices, .trust {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 82px 0;
}
.section-heading { max-width: 760px; margin-bottom: 42px; }
.two-sides, .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ivory-deep);
}
.two-sides article, .choice-grid article {
  background: var(--ivory);
  padding: 32px;
}
.number { color: var(--champagne); font-family: Georgia, serif; font-size: 1.4rem; }

.choices { border-top: 1px solid var(--ivory-deep); }
.choice-grid { grid-template-columns: repeat(4, 1fr); }
.choice-grid article { min-height: 155px; }

.trust {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 64px;
  align-items: center;
  border-top: 1px solid var(--ivory-deep);
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--slate);
  display: grid;
  place-items: center;
  color: var(--champagne);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
}
.quiet { opacity: .68; font-size: .92rem; }

.discovery {
  background: var(--slate);
  color: var(--ivory);
  padding: 82px max(24px, calc((100vw - 900px)/2));
}
.discovery .eyebrow { color: var(--champagne); }
.discovery p { font-size: 1.1rem; max-width: 800px; }
.not-pitch { border-left: 2px solid var(--champagne); padding-left: 22px; margin: 32px 0; }
.button.light { background: var(--ivory); color: var(--slate); margin-top: 18px; }

footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: end;
  font-size: .8rem;
}
footer div { display: flex; flex-direction: column; }
footer strong { letter-spacing: .15em; }
footer a { text-decoration: none; }

@media (max-width: 820px) {
  .site-header { min-height: 90px; }
  .brand img { width: 175px; }
  nav a:not(.nav-contact) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-mark { display: none; }
  .two-sides, .choice-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 44px; }
  .portrait-placeholder { max-width: 320px; }
  footer { grid-template-columns: 1fr; gap: 14px; }
}

.brand img { height:85px; object-fit:contain; object-position:left center; }
.experience-teaser { margin-top:24px; color:#b99155; font-family:Georgia,"Times New Roman",serif; font-size:1rem; }


/* === V1.2 VISUAL RHYTHM PASS === */

/* Hero: no decorative orphan star; company identity gets clear authority. */
.hero {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 24px;
  padding-bottom: 72px;
}
.hero-mark, .glow { display: none !important; }

.hero-company {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: .18em;
  color: var(--slate);
  font-weight: 600;
}

/* Create a visual cadence through the long light middle. */
.approach {
  padding-top: 76px;
  padding-bottom: 76px;
}

.choices {
  width: 100%;
  max-width: none;
  padding: 72px max(24px, calc((100vw - var(--max))/2));
  background: #ece3d5;
  border-top: 1px solid rgba(38,54,61,.12);
  border-bottom: 1px solid rgba(38,54,61,.12);
}
.choices .section-heading {
  max-width: 760px;
}
.choices .choice-grid {
  background: rgba(38,54,61,.14);
}
.choices .choice-grid article {
  background: rgba(245,240,230,.78);
}

/* Expertise returns to Warm Ivory but is visually grounded. */
.trust {
  padding-top: 76px;
  padding-bottom: 76px;
  border-top: 0;
}
.trust > div:last-child {
  padding-left: 10px;
}

/* Keep the Clarity Call as the strong dark destination. */
.discovery {
  padding-top: 76px;
  padding-bottom: 76px;
}

@media (max-width: 820px) {
  .hero { padding-top: 38px; padding-bottom: 54px; }
  .hero-company { font-size: 1.25rem; }
  .choices {
    padding: 58px 24px;
  }
  .approach, .trust { padding-top: 58px; padding-bottom: 58px; }
}


/* === V1.3 SURGICAL LIVE-RENDER CORRECTION === */

/* Remove all standalone decorative hero accents. */
.hero-mark,
.hero-star,
.hero .spark,
.hero .glow,
.hero [aria-hidden="true"].star,
.hero [class*="star"] {
  display: none !important;
}

/* Give the company name real presence while the final master logo is pending. */
.hero-company {
  display: block !important;
  margin: 0 0 18px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem) !important;
  line-height: 1 !important;
  letter-spacing: .16em !important;
  font-weight: 600 !important;
  color: var(--slate) !important;
}

/* Technology Earns Its Place: visible Champagne-tinted field, not near-identical ivory. */
.choices {
  position: relative;
  background: #e7dac6 !important;
  border-top: 1px solid rgba(185,145,85,.42) !important;
  border-bottom: 1px solid rgba(185,145,85,.42) !important;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

/* If .choices is constrained by a shared inner wrapper, visually extend its field full-bleed. */
.choices::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #e7dac6;
}

/* Keep content comfortably legible on the warmer field. */
.choices .choice-grid article {
  background: rgba(245,240,230,.72) !important;
}
.choices .choice-grid {
  border-color: rgba(38,54,61,.16) !important;
}

/* Preserve the strong dark destination. */
.discovery {
  background: var(--slate) !important;
}

@media (max-width: 820px) {
  .hero-company {
    font-size: 1.35rem !important;
    letter-spacing: .13em !important;
    margin-bottom: 14px !important;
  }
  .choices {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}




/* === V1.8 AUTHORITATIVE HERO + FOOTER CLEANUP === */

/* Hero headline: two intentional blocks, tight editorial relationship. */
.hero h1 {
  max-width: 1120px !important;
  font-size: clamp(3rem, 4.05vw, 4.35rem) !important;
  line-height: 0.98 !important;
  margin-bottom: 1.6rem !important;
}

.hero h1 .hero-line-one,
.hero h1 .hero-line-two {
  display: block !important;
  margin: 0 !important;
}

.hero h1 .hero-line-two {
  margin-top: 0.03em !important;
}

@media (max-width: 1099px) {
  .hero h1 {
    font-size: clamp(2.55rem, 7.2vw, 4rem) !important;
    line-height: 1 !important;
  }
  .hero h1 .hero-line-two {
    margin-top: 0.04em !important;
  }
}

/* Footer: balanced three-column composition. */
footer {
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  text-align: left;
}

footer .footer-contact {
  text-align: center;
}

footer .footer-contact strong {
  display: block;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

footer .footer-legal {
  text-align: right;
}

@media (max-width: 820px) {
  footer {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  footer .footer-contact,
  footer .footer-legal {
    text-align: left !important;
  }
}


/* === V1.9 FOOTER ONLY — EVERYTHING ELSE LOCKED === */
.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 32px 0 38px;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  gap: 24px !important;
  font-size: .8rem;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.site-footer .footer-brand strong,
.site-footer .footer-contact strong {
  letter-spacing: .14em;
}

.site-footer .footer-contact {
  text-align: center !important;
}

.site-footer .footer-contact strong {
  display: block;
  margin-bottom: 4px;
}

.site-footer .footer-contact a {
  text-decoration: none;
}

.site-footer .footer-legal {
  text-align: right !important;
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  .site-footer .footer-contact,
  .site-footer .footer-legal {
    text-align: left !important;
  }
}
.portrait-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* =========================
   CONTACT PAGES
   ========================= */

.contact-page {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
  padding: 64px 0 88px;
}

.contact-page-body {
  background:
    linear-gradient(rgba(245, 240, 230, .84), rgba(245, 240, 230, .9)),
    url("images/enigma-knot-hero-warm-v1.png") center / cover fixed;
}

.contact-page-body .site-header,
.contact-page-body .site-footer {
  position: relative;
  z-index: 1;
}

.contact-intro {
  max-width: 760px;
  margin-bottom: 48px;
  padding: 30px 34px;
  background: rgba(245, 240, 230, .82);
  backdrop-filter: blur(3px);
}

.contact-intro h1 {
  max-width: 800px;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.contact-intro .lede {
  margin-bottom: 0;
}

.contact-form-section {
  padding: 42px;
  background: rgba(232, 223, 208, .9);
  border-top: 3px solid var(--champagne);
  box-shadow: 0 22px 55px rgba(38, 54, 61, .14);
  backdrop-filter: blur(5px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--slate);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-form label:nth-of-type(n + 5),
.contact-form .button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(38, 54, 61, .28);
  border-radius: 0;
  background: rgba(245, 240, 230, .9);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--champagne);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(210, 173, 111, .18);
}

.contact-form .button {
  justify-self: start;
  border: 1px solid var(--slate);
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background .2s ease, color .2s ease;
}

.contact-form .button:hover,
.contact-form .button:focus-visible,
.contact-success-button:hover,
.contact-success-button:focus-visible {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--slate);
}

.contact-success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    linear-gradient(rgba(245, 240, 230, .66), rgba(245, 240, 230, .78)),
    url("images/enigma-knot-hero-warm-v1.png") center / cover fixed;
}

.contact-success-main {
  width: min(100%, 820px);
}

.contact-success-card {
  padding: clamp(40px, 7vw, 72px);
  background: rgba(232, 223, 208, .9);
  border-top: 3px solid var(--champagne);
  text-align: center;
  box-shadow: 0 24px 65px rgba(38, 54, 61, .18);
  backdrop-filter: blur(6px);
}

.contact-success-card .eyebrow {
  color: var(--slate-soft);
}

.contact-success-card h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 24px;
}

.contact-success-message {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.12rem;
}

.contact-success-button {
  border: 1px solid var(--slate);
  transition: background .2s ease, color .2s ease;
}

.contact-success-redirect {
  margin: 20px 0 0;
  color: var(--slate-soft);
  font-size: .82rem;
}

@media (max-width: 820px) {
  .contact-page {
    padding: 42px 0 64px;
  }

  .contact-intro {
    margin-bottom: 34px;
    padding: 24px 22px;
  }

  .contact-form-section {
    padding: 28px 22px;
  }

  .contact-page-body {
    background-attachment: scroll;
    background-position: 62% center;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form label,
  .contact-form .button {
    grid-column: 1;
  }

  .contact-form .button {
    width: 100%;
  }

  .contact-success-page {
    padding: 20px;
    background-attachment: scroll;
    background-position: 62% center;
  }

  .contact-success-card {
    padding: 38px 22px;
  }
}


/* =========================
   IMMERSIVE WARM HERO — LOCAL CONCEPT
   ========================= */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 620px;
  padding: 52px max(24px, calc((100vw - var(--max))/2)) 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/enigma-knot-hero-warm-v1.png");
  background-position: center center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(245, 240, 230, 1) 0%,
      rgba(245, 240, 230, .98) 34%,
      rgba(245, 240, 230, .88) 50%,
      rgba(245, 240, 230, .3) 72%,
      rgba(245, 240, 230, .08) 100%),
    linear-gradient(0deg, rgba(38, 54, 61, .08), transparent 38%);
}

.hero-copy {
  width: min(58%, 680px);
  min-width: 0;
}

.hero h1 {
  font-size: clamp(3rem, 4.35vw, 4.65rem) !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: 680px;
    align-items: start;
    padding-top: 38px;
    padding-bottom: 190px;
  }

  .hero-copy {
    width: min(100%, 700px);
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero::after {
    background: linear-gradient(180deg,
      rgba(245, 240, 230, 1) 0%,
      rgba(245, 240, 230, .98) 48%,
      rgba(245, 240, 230, .72) 68%,
      rgba(245, 240, 230, .16) 100%);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 190px;
  }

  .hero::before {
    background-position: 62% bottom;
  }

  .hero::after {
    background: linear-gradient(180deg,
      rgba(245, 240, 230, 1) 0%,
      rgba(245, 240, 230, 1) 58%,
      rgba(245, 240, 230, .88) 68%,
      rgba(245, 240, 230, .08) 100%);
  }
}
