/* ==========================================================================
   MECANDRIA — Contact (page-specific; loaded only on contact.html)
   Classes are prefixed .ct- so nothing leaks into other pages.

   hero → let's talk + brief-style form → why talk to us first → CTA.
   Frontend only: the form validates in the browser; nothing is transmitted.
   ========================================================================== */
.ct {
  --ct-bg: #FBF8F3; --ct-bg-2: #F4EEE5;
  --ct-line: rgba(90, 80, 70, .16); --ct-line-2: rgba(90, 80, 70, .28);
  --ct-muted: #5A5568; --ct-dim: #6E6878;
  --ct-cyan: 0, 119, 95; --ct-violet: 91, 46, 230; --ct-magenta: 199, 0, 73;   /* warm ivory palette: the "cyan" slot holds the teal label colour */
}
.ct section { position: relative; isolation: isolate; }
.ct-sec { padding-block: clamp(20px, 2.5vw, 32px) clamp(48px, 5.5vw, 80px); background: var(--ct-bg); scroll-margin-top: var(--nav-sticky-h); }
.ct-sec--alt { background: var(--ct-bg-2); }
.ct-sec--alt::before, .ct-sec--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: -1; }
.ct-sec--alt::before { top: 0; background: linear-gradient(var(--ct-bg), transparent); }
.ct-sec--alt::after { bottom: 0; background: linear-gradient(transparent, var(--ct-bg)); }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ct-chap { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--ct-cyan)); }
.ct-chap b { color: var(--ct-dim); font-variant-numeric: tabular-nums; }
.ct-chap::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, rgba(var(--ct-cyan), .7), transparent); }
.ct-h1 { font-size: clamp(2.3rem, 1rem + 4vw, 5.4rem); font-weight: 800; line-height: .97; letter-spacing: -.045em; text-transform: uppercase; }
.ct-h2 { font-size: clamp(1.6rem, .72rem + 2.6vw, 3.4rem); text-transform: uppercase; font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.ct-lead { font-size: clamp(1.03rem, .95rem + .35vw, 1.2rem); line-height: 1.65; color: var(--ct-muted); max-width: 54ch; margin: 0; }
.ct-cool { background: linear-gradient(92deg, #00775F, #00728A 45%, #5B2EE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct .btn-light { background: #1D1B2F; color: #FBF8F3; }
.ct .btn-light:hover { background: #3A3650; transform: translateY(-2px); }
.ct-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--ct-magenta)); }
.ct a:focus-visible, .ct button:focus-visible { outline: 2px solid rgb(var(--ct-cyan)); outline-offset: 4px; }

/* ==========================================================================
   HERO — minimal: label, headline, one line of text, a quiet way down
   ========================================================================== */
.ct-hero { padding: calc(var(--nav-h) + 40px) 0 clamp(64px, 7vw, 96px); background: var(--ct-bg); overflow: hidden; }
.ct-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 60% at 86% 20%, rgba(var(--ct-violet), .11), transparent 70%), radial-gradient(34% 50% at 0% 100%, rgba(0, 211, 164, .08), transparent 70%); }
.ct-hero h1 { margin: 26px 0 0; max-width: 17ch; }
.ct-hero h1 span { display: block; }
.ct-hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--ct-line); }
.ct-down { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #3A3648; }
.ct-down .arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ct-line-2); border-radius: 50%; color: rgb(var(--ct-cyan)); transition: transform .35s var(--ease), border-color .3s; }
.ct-down:hover .arrow { transform: translateY(3px); border-color: rgba(var(--ct-cyan), .6); }
.ct-rise { animation: ct-rise 1s var(--ease) both; }
.ct-rise:nth-child(2) { animation-delay: .08s; } .ct-rise:nth-child(3) { animation-delay: .18s; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   LET'S TALK (left) + FORM (right)
   ========================================================================== */
.ct-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px clamp(48px, 7vw, 120px); align-items: start; }
.ct-side { position: sticky; top: calc(var(--nav-sticky-h) + 32px); }
.ct-qs { list-style: none; margin: 30px 0 0; padding: 0; }
.ct-qs li { padding: 18px 0; border-bottom: 1px solid var(--ct-line); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #6E6878; }
.ct-qs li:first-child { border-top: 1px solid var(--ct-line); }
.ct-qs li:last-child { color: #1D1B2F; }
.ct-details { display: grid; gap: 22px; margin: 40px 0 0; }
.ct-details dt { margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ct-dim); }
.ct-details dd { margin: 0; font-size: 1.1rem; color: #2B2839; }
.ct-details a { background: linear-gradient(rgb(var(--ct-cyan)), rgb(var(--ct-cyan))) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; padding-bottom: 2px; }
.ct-details a:hover { color: #1D1B2F; background-size: 100% 1px; }

/* the form reads like a short brief: numbered, underlined fields */
.ct-formwrap { position: relative; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--ct-line); border-radius: 6px; background: linear-gradient(170deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .55) 40%), #FFFFFF; }
.ct-formwrap::before { /* single accent line along the top edge */
  content: ""; position: absolute; left: clamp(28px, 4vw, 56px); top: -1px; width: 64px; height: 2px; background: linear-gradient(90deg, rgb(var(--ct-cyan)), rgb(var(--ct-violet))); }
.ct-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.ct-form-head h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.ct-form-head p { margin: 0; font-size: .9rem; color: var(--ct-dim); }
.ct-context { margin: 0; padding: 14px 16px; border-left: 2px solid rgb(var(--ct-cyan)); background: rgba(var(--ct-cyan), .05); font-size: .95rem; color: #3A3648; }
.ct-context[hidden] { display: none; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.ct-field { position: relative; display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-field label, .ct-field legend { display: flex; align-items: baseline; gap: 10px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5A5568; }
.ct-field .n { font-size: 10px; letter-spacing: .14em; color: var(--ct-dim); font-variant-numeric: tabular-nums; }
.ct-field i { font-style: normal; color: rgb(var(--ct-magenta)); }
.ct-field input, .ct-field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ct-line-2); border-radius: 0; background: transparent; color: #1D1B2F; font: inherit; font-size: 1.05rem; transition: border-color .3s; }
.ct-field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #8A8396; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: rgb(var(--ct-cyan)); }
.ct-field input:-webkit-autofill { -webkit-text-fill-color: #1D1B2F; transition: background-color 9999s; }
.ct-field .err { min-height: 1.2em; font-size: .85rem; color: #B3261E; }
.ct-field.invalid input, .ct-field.invalid textarea { border-color: #D0384A; }

.ct-help legend { margin-bottom: 14px; }
.ct-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ct-line); }
.ct-opts label { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--ct-line); cursor: pointer; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5A5568; transition: color .3s, padding .35s var(--ease); }
.ct-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-opts span::before { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 14px; border: 1px solid var(--ct-line-2); border-radius: 50%; vertical-align: -2px; transition: border-color .3s, box-shadow .3s; }
.ct-opts label:hover { color: #1D1B2F; padding-left: 4px; }
.ct-opts input:checked + span { color: #1D1B2F; }
.ct-opts input:checked + span::before { border-color: rgb(var(--ct-cyan)); box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 7px rgb(var(--ct-cyan)); }
.ct-opts input:focus-visible + span { outline: 2px solid rgb(var(--ct-cyan)); outline-offset: 4px; }
.ct-help.invalid .ct-opts { border-top-color: #D0384A; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.ct-note { margin: 0; font-size: .82rem; color: #6E6878; }

.ct-done { padding: clamp(8px, 2vw, 24px) 0; }
.ct-done[hidden] { display: none; }
.ct-done:focus { outline: none; }
.ct-done-h { margin: 20px 0 18px; font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.ct-done p { margin: 0; max-width: 52ch; color: var(--ct-muted); line-height: 1.7; }
.ct-done strong { color: #1D1B2F; }
.ct-done-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }

/* ==========================================================================
   WHY TALK TO US FIRST — three large words joined by one drawn line
   ========================================================================== */
.ct-head { margin-bottom: clamp(48px, 6vw, 80px); }
.ct-head .ct-h2 { margin-top: 22px; }
.ct-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ct-steps::before, .ct-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.ct-steps::before { background: var(--ct-line-2); }
.ct-steps::after { background: linear-gradient(90deg, rgb(var(--ct-cyan)), rgb(var(--ct-violet)) 60%, rgba(var(--ct-magenta), .85)); transform-origin: left; }
.js .ct-steps[data-reveal] { opacity: 1; transform: none; }
.js .ct-steps[data-reveal]::after { transform: scaleX(0); }
.js .ct-steps.is-in::after { transform: scaleX(1); transition: transform 1.8s var(--ease) .2s; }
.ct-steps li { position: relative; padding: 36px clamp(16px, 3vw, 48px) 0 0; }
.ct-steps li + li { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid var(--ct-line); }
.ct-steps li + li::before { /* arrow where each step hands over to the next */
  content: "→"; position: absolute; left: -9px; top: -13px; width: 18px; height: 24px; display: grid; place-items: center; background: var(--ct-bg-2); color: rgb(var(--ct-cyan)); font-size: 15px; }
.ct-steps .n { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ct-dim); }
.ct-steps h3 { margin: 14px 0 16px; font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.ct-steps li:last-child h3 { color: #1D1B2F; }
.ct-steps li:last-child h3 { background: linear-gradient(92deg, #1D1B2F, #00775F 70%, #5B2EE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-steps p { margin: 0; max-width: 28ch; color: var(--ct-muted); line-height: 1.65; }
.js .ct-steps li { opacity: 0; transform: translateY(14px); }
.js .ct-steps.is-in li { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(.25s + var(--i) * .3s); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.ct-cta .ct-cool { display: block; }
.ct-cta h2 { margin-bottom: 44px; font-size: clamp(1.5rem, .8rem + 2.95vw, 3.5rem); text-transform: uppercase; }
.ct-cta .actions { display: flex; justify-content: center; }
.ct-cta .atmos .blob { opacity: .4; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; }
  .ct-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 34px; }
  .ct-steps::before, .ct-steps::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .ct-steps::after { background: linear-gradient(rgb(var(--ct-cyan)), rgb(var(--ct-violet)) 60%, rgba(var(--ct-magenta), .85)); transform-origin: top; }
  .js .ct-steps[data-reveal]::after { transform: scaleY(0); }
  .js .ct-steps.is-in::after { transform: scaleY(1); }
  .ct-steps li, .ct-steps li + li { padding: 0; border: 0; }
  .ct-steps li + li::before { left: -43px; top: -30px; transform: rotate(90deg); }
  .ct-steps p { max-width: 40ch; }
}
@media (max-width: 640px) {
  .ct-hero-foot { grid-template-columns: minmax(0, 1fr); }
  .ct-row, .ct-opts { grid-template-columns: minmax(0, 1fr); }
  .ct-formwrap { padding: 26px 20px; }
  .ct-formwrap::before { left: 20px; }
  .ct-submit .btn { width: 100%; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-rise { animation: none !important; }
  .js .ct-steps li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .ct-steps[data-reveal]::after { transform: none !important; transition: none !important; }
}
