/* Fryk Works — contact page (light marketing register) */

/* ── PAGE: one screen, no document scroll ── */
html:has(body.page-contact){
  height:100%;
  overflow:hidden;
}
.page-contact{
  display:flex;
  flex-direction:column;
  height:100dvh;
  overflow:hidden;
}
.page-contact .footer{flex-shrink:0}

/* ── LAYOUT ── */
.contact{
  display:grid;
  grid-template-columns:1.12fr 1fr;
  flex:1 1 auto;
  min-height:0;
}

/* ── VISUAL COLUMN ── */
.contact-visual{
  position:relative;
  overflow:hidden;
  background:#e0e0dc;
  min-height:0;
}
.contact-visual .hero-gallery{
  --hero-autoplay-dur:2000ms;
}
.contact-visual .hero-dots{
  z-index:3;
}

/* ── FORM COLUMN ── */
.contact-panel{
  display:flex;
  align-items:flex-start;
  align-items:safe center;
  min-height:0;
  overflow:hidden;
  padding:
    calc(var(--nav-h) + clamp(20px,2.8vh,40px))
    clamp(40px,6vw,104px)
    clamp(16px,2.2vh,28px);
}
.contact-inner{
  width:100%;
  max-width:440px;
}
.contact-inner .sec-label{
  display:block;
  margin-bottom:clamp(10px,2vh,26px);
}
.contact-h{
  font-size:clamp(28px,calc(3.2vw + 1vh),54px);
  font-weight:300;
  line-height:1.07;
  letter-spacing:-.03em;
  color:var(--ink);
  margin-bottom:clamp(8px,1.6vh,20px);
  text-wrap:balance;
}
.contact-sub{
  font-size:15px;
  line-height:1.7;
  color:var(--ink-60);
  font-weight:300;
  max-width:40ch;
  margin-bottom:clamp(16px,3.2vh,44px);
  text-wrap:pretty;
}

/* ── FIELDS ── */
.cfield{margin-bottom:clamp(12px,2.2vh,28px)}
.cfield-label{
  display:block;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-45);
  margin-bottom:4px;
}
.cfield-input{
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid var(--ink-border);
  border-radius:0;
  font-family:inherit;
  font-size:16px;
  font-weight:300;
  color:var(--ink);
  padding:10px 0;
  transition:border-color 200ms var(--ease-out);
}
.cfield-input:focus{border-bottom-color:var(--ink)}
.cfield-input[aria-invalid="true"]{border-bottom-color:var(--ink)}
textarea.cfield-input{
  resize:none;
  min-height:0;
  height:clamp(56px,8vh,88px);
  line-height:1.6;
}
.cfield-err{
  font-size:12px;
  color:var(--ink);
  letter-spacing:.01em;
  margin-top:8px;
}

/* ── SUBMIT + FAILURE NOTICE ── */
.cform-submit{
  width:100%;
  justify-content:center;
  margin-top:6px;
}
.cform-submit[disabled]{
  opacity:.55;
  cursor:default;
  pointer-events:none;
}
.cform-fail{
  font-size:13px;
  line-height:1.6;
  color:var(--ink);
  margin-top:18px;
}
.cform-fail a{
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ── SUCCESS STATE ── */
.cdone{
  opacity:0;
  transform:translateY(10px);
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-spring);
}
.cdone.show{
  opacity:1;
  transform:none;
}
.cdone:focus{outline:none}
.cdone-check{
  width:44px;
  height:44px;
  margin-bottom:22px;
  color:var(--ink);
}
.cdone-check circle,
.cdone-check path{
  stroke-dasharray:160;
  stroke-dashoffset:0;
}
@media (prefers-reduced-motion:no-preference){
  .cdone-check circle,
  .cdone-check path{stroke-dashoffset:160}
  .cdone.show .cdone-check circle{
    animation:cdone-draw 500ms var(--ease-out) 80ms forwards;
  }
  .cdone.show .cdone-check path{
    animation:cdone-draw 350ms var(--ease-out) 420ms forwards;
  }
}
@keyframes cdone-draw{to{stroke-dashoffset:0}}
.cdone-h{
  font-size:clamp(28px,3vw,40px);
  font-weight:300;
  letter-spacing:-.025em;
  color:var(--ink);
  margin-bottom:14px;
}
.cdone-sub{
  font-size:15px;
  line-height:1.7;
  color:var(--ink-60);
  font-weight:300;
  margin-bottom:34px;
  max-width:38ch;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion:reduce){
  .cdone{transition:none;transform:none}
  .cfield-input{transition:none}
}

/* ── RESPONSIVE ── */
@media(max-width:960px){
  .contact{
    grid-template-columns:1fr;
    grid-template-rows:minmax(120px,28dvh) minmax(0,1fr);
  }
  .contact-visual{
    height:auto;
    min-height:0;
  }
  .contact-panel{
    overflow:auto;
    padding:28px var(--gutter) 24px;
  }
}
@media(max-width:640px){
  .contact{
    grid-template-rows:minmax(110px,22dvh) minmax(0,1fr);
  }
  .contact-panel{padding:24px var(--gutter) 20px}
}
