/* ===== AIMA Contact + Founder signature — 2026-10-12 ===== */

/* Founder signature in System State */
.system-state-card .metric-founder .metric-icon{
  font-family:inherit;
  font-size:7px;
  font-weight:950;
  letter-spacing:.04em;
  color:#fff;
  background:linear-gradient(145deg,#5e73df,#7286ec);
  border-color:rgba(92,115,223,.14);
  box-shadow:0 7px 18px rgba(84,106,208,.17);
}

.system-state-card .founder-name{
  width:auto!important;
  max-width:100%;
  margin:0!important;
  display:block!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#151c27!important;
  font-size:13px!important;
  line-height:1.05!important;
  font-weight:850!important;
  letter-spacing:-.025em!important;
}

html[data-theme="dark"] .system-state-card .metric-founder .metric-icon{
  color:#fff;
  background:linear-gradient(145deg,#6277e5,#8291f5);
  box-shadow:0 7px 20px rgba(83,104,216,.24);
}

html[data-theme="dark"] .system-state-card .founder-name{
  color:#edf2f8!important;
}

/* Contact section */
.contact-section{
  position:relative;
  z-index:3;
  width:min(1420px,calc(100% - 48px));
  margin:86px auto 20px;
  scroll-margin-top:96px;
}

.contact-shell{
  position:relative;
  min-height:570px;
  display:grid;
  grid-template-columns:minmax(300px,.42fr) minmax(0,.58fr);
  overflow:hidden;
  border:1px solid rgba(15,20,32,.085);
  border-radius:38px;
  background:
    radial-gradient(circle at 8% 15%,rgba(91,115,255,.10),transparent 31%),
    radial-gradient(circle at 92% 88%,rgba(96,204,231,.08),transparent 28%),
    rgba(255,255,255,.68);
  box-shadow:0 34px 100px rgba(16,24,40,.075);
}

.contact-shell::before{
  content:"";
  position:absolute;
  left:42%;
  top:0;
  bottom:0;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(15,20,32,.075) 12%,rgba(15,20,32,.075) 88%,transparent);
  pointer-events:none;
}

.contact-copy{
  position:relative;
  z-index:2;
  padding:62px 50px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.contact-copy h2{
  margin:16px 0 18px;
  color:#111722;
  font-size:clamp(46px,5vw,76px);
  line-height:.94;
  letter-spacing:-.058em;
}

.contact-copy h2 em{
  color:#778291;
  font-weight:430;
}

.contact-copy>p{
  max-width:440px;
  margin:0;
  color:#6d7785;
  font-size:12px;
  line-height:1.75;
}

.contact-person{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:34px;
}

.contact-avatar{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(145deg,#5269da,#7588ed);
  box-shadow:0 12px 28px rgba(72,94,195,.18);
  font-size:10px;
  font-weight:950;
  letter-spacing:.04em;
}

.contact-person>div:last-child{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.contact-person strong{
  color:#18202d;
  font-size:11px;
  line-height:1;
}

.contact-person span{
  color:#87919e;
  font-size:7px;
  font-weight:760;
  letter-spacing:.04em;
}

.contact-email-link{
  position:relative;
  width:min(100%,370px);
  margin-top:22px;
  padding:13px 42px 13px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
  border:1px solid rgba(15,20,32,.075);
  border-radius:15px;
  background:rgba(255,255,255,.58);
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.contact-email-link:hover{
  transform:translateY(-2px);
  border-color:rgba(80,102,159,.14);
  background:rgba(255,255,255,.90);
  box-shadow:0 12px 28px rgba(16,24,40,.065);
}

.contact-email-link>span{
  color:#929aa5;
  font-size:5px;
  font-weight:900;
  letter-spacing:.13em;
}

.contact-email-link>b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#303a48;
  font-size:8px;
  font-weight:780;
}

.contact-email-link>i{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#7b8592;
  font-size:12px;
  font-style:normal;
}

.contact-form{
  position:relative;
  z-index:2;
  align-self:center;
  margin:42px;
  padding:28px;
  border:1px solid rgba(15,20,32,.075);
  border-radius:28px;
  background:rgba(255,255,255,.80);
  box-shadow:0 25px 70px rgba(16,24,40,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.contact-form-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  min-height:33px;
  padding-bottom:15px;
  margin-bottom:15px;
  border-bottom:1px solid rgba(15,20,32,.065);
}

.contact-form-top>span{
  color:#667181;
  font-size:6px;
  font-weight:900;
  letter-spacing:.15em;
}

.contact-form-top>small{
  color:#929ba6;
  font-size:5.5px;
  font-weight:700;
}

.contact-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

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

.contact-field-wide{
  grid-column:1/-1;
}

.contact-field>span{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:#7d8794;
  font-size:5.5px;
  font-weight:900;
  letter-spacing:.12em;
}

.contact-field>span i{
  color:#a3aab3;
  font-size:4.5px;
  font-style:normal;
  letter-spacing:.08em;
}

.contact-field input,
.contact-field textarea{
  width:100%;
  box-sizing:border-box;
  appearance:none;
  outline:none;
  border:1px solid rgba(15,20,32,.075);
  border-radius:13px;
  background:#f8f9fb;
  color:#1d2633;
  font:700 9px/1.3 inherit;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.contact-field input{
  height:48px;
  padding:0 14px;
}

.contact-field textarea{
  min-height:136px;
  padding:13px 14px;
  resize:vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder{
  color:#a1a9b4;
  font-weight:600;
}

.contact-field input:focus,
.contact-field textarea:focus{
  border-color:rgba(83,106,219,.28);
  background:#fff;
  box-shadow:0 0 0 4px rgba(83,106,219,.055);
}

.contact-field.is-invalid input,
.contact-field.is-invalid textarea{
  border-color:rgba(203,77,91,.38);
  box-shadow:0 0 0 4px rgba(203,77,91,.055);
}

.contact-form-foot{
  min-height:52px;
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.contact-form-foot p{
  margin:0;
  color:#8c96a2;
  font-size:6px;
  line-height:1.5;
}

.contact-form-foot p.is-success{color:#3f9470}
.contact-form-foot p.is-error{color:#bd5b69}

.contact-submit{
  appearance:none;
  min-width:150px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 15px 0 17px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(110deg,#1d2637,#4157bb 100%);
  box-shadow:0 12px 30px rgba(50,68,150,.17);
  font:850 8px/1 inherit;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}

.contact-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(50,68,150,.23);
}

.contact-submit:disabled{
  cursor:wait;
  opacity:.65;
  transform:none;
}

.contact-submit b{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(255,255,255,.12);
  font-size:10px;
}

.contact-honey{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Dark */
html[data-theme="dark"] .contact-shell{
  border-color:rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 8% 15%,rgba(104,124,255,.15),transparent 31%),
    radial-gradient(circle at 92% 88%,rgba(72,198,230,.08),transparent 28%),
    rgba(10,16,28,.78);
  box-shadow:0 38px 110px rgba(0,0,0,.26);
}

html[data-theme="dark"] .contact-shell::before{
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.065) 12%,rgba(255,255,255,.065) 88%,transparent);
}

html[data-theme="dark"] .contact-copy h2{color:#f2f6fb}
html[data-theme="dark"] .contact-copy h2 em{color:#8795aa}
html[data-theme="dark"] .contact-copy>p{color:#8f9caf}
html[data-theme="dark"] .contact-person strong{color:#eaf0f7}
html[data-theme="dark"] .contact-person span{color:#718096}

html[data-theme="dark"] .contact-email-link{
  border-color:rgba(255,255,255,.07);
  background:rgba(255,255,255,.028);
}

html[data-theme="dark"] .contact-email-link:hover{
  border-color:rgba(126,145,205,.14);
  background:rgba(255,255,255,.05);
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

html[data-theme="dark"] .contact-email-link>span{color:#68778d}
html[data-theme="dark"] .contact-email-link>b{color:#cbd5e3}
html[data-theme="dark"] .contact-email-link>i{color:#728199}

html[data-theme="dark"] .contact-form{
  border-color:rgba(255,255,255,.07);
  background:rgba(15,23,39,.84);
  box-shadow:0 28px 80px rgba(0,0,0,.30);
}

html[data-theme="dark"] .contact-form-top{
  border-color:rgba(255,255,255,.06);
}

html[data-theme="dark"] .contact-form-top>span{color:#8090a6}
html[data-theme="dark"] .contact-form-top>small{color:#65758b}
html[data-theme="dark"] .contact-field>span{color:#718097}
html[data-theme="dark"] .contact-field>span i{color:#596a82}

html[data-theme="dark"] .contact-field input,
html[data-theme="dark"] .contact-field textarea{
  border-color:rgba(255,255,255,.065);
  background:#0e1726;
  color:#eaf0f7;
}

html[data-theme="dark"] .contact-field input::placeholder,
html[data-theme="dark"] .contact-field textarea::placeholder{
  color:#56667d;
}

html[data-theme="dark"] .contact-field input:focus,
html[data-theme="dark"] .contact-field textarea:focus{
  border-color:rgba(116,137,255,.28);
  background:#111b2c;
  box-shadow:0 0 0 4px rgba(116,137,255,.055);
}

html[data-theme="dark"] .contact-form-foot p{color:#6e7d92}

html[data-theme="dark"] .contact-submit{
  color:#111827;
  background:linear-gradient(110deg,#f1f5fb,#9eafff 100%);
  box-shadow:0 14px 34px rgba(71,88,178,.20);
}

html[data-theme="dark"] .contact-submit b{
  background:rgba(17,24,39,.09);
}

/* Responsive */
@media(max-width:980px){
  #contact{scroll-margin-top:84px}

  .contact-section{
    width:min(760px,calc(100% - 30px));
    margin-top:68px;
  }

  .contact-shell{
    grid-template-columns:1fr;
    min-height:0;
    border-radius:30px;
  }

  .contact-shell::before{
    left:24px;
    right:24px;
    top:auto;
    bottom:auto;
    width:auto;
    height:1px;
    transform:none;
    background:linear-gradient(90deg,transparent,rgba(15,20,32,.075),transparent);
  }

  .contact-copy{
    padding:44px 30px 26px;
  }

  .contact-copy h2{
    font-size:54px;
  }

  .contact-form{
    margin:14px 24px 24px;
  }

  html[data-theme="dark"] .contact-shell::before{
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.065),transparent);
  }
}

@media(max-width:700px){
  .contact-section{
    width:calc(100% - 28px);
    margin-top:48px;
  }

  .contact-shell{
    border-radius:24px;
  }

  .contact-copy{
    padding:36px 21px 20px;
  }

  .contact-copy h2{
    margin-top:13px;
    font-size:43px;
  }

  .contact-copy>p{
    font-size:10.5px;
  }

  .contact-person{
    margin-top:25px;
  }

  .contact-avatar{
    width:40px;
    height:40px;
    border-radius:13px;
  }

  .contact-email-link{
    margin-top:17px;
  }

  .contact-form{
    margin:10px 11px 13px;
    padding:18px 14px;
    border-radius:19px;
  }

  .contact-fields{
    grid-template-columns:1fr;
    gap:10px;
  }

  .contact-field-wide{
    grid-column:auto;
  }

  .contact-field input{
    height:45px;
  }

  .contact-field textarea{
    min-height:118px;
  }

  .contact-form-foot{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .contact-submit{
    width:100%;
    min-width:0;
  }

  .system-state-card .founder-name{
    font-size:9.5px!important;
  }
}

@media(max-width:430px){
  .contact-copy h2{
    font-size:39px;
  }

  .contact-form-top>small{
    max-width:120px;
    text-align:right;
    line-height:1.35;
  }

  .contact-email-link>b{
    font-size:7px;
  }

  .system-state-card .founder-name{
    font-size:8.7px!important;
  }
}

/* Public contact identity */
.contact-email-link{
  cursor:default;
}
.system-state-card .metric-founder .metric-copy>small{
  white-space:normal;
  line-height:1.35;
}
