/* AGI Ready landing page overrides: retain Monji's motion and motifs, make the page a readable landing. */
:root { --agi-ink: #101014; --agi-muted: #62636b; --agi-accent: #c9f269; --agi-line: #e8e8eb; }
html, body { min-height: 100%; height: auto; }
body { overflow-x: hidden; overflow-y: auto; color: var(--agi-ink); background: #fbfbfa; font-weight: 400; }
body:before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 80% 16%, rgba(201,242,105,.18), transparent 34%), linear-gradient(180deg,#fbfbfa,#f5f5f2); }
.loader-wrapper { display: none; }
.main-section.home { height: auto; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(0, 1180px) 1fr; grid-template-rows: auto 1fr auto; padding: 28px 5vw 34px; overflow: hidden; }
.main-section.home > img { display: none; }
.home .home-content { grid-column: 2; grid-row: 2; justify-content: flex-start; text-align: left; padding: 100px 0 45px; }
.home .home-content:before { left: auto; right: 8%; top: 12%; width: 190px; height: 190px; opacity: .18; }
.home .home-content:after { display: none; }
.home .home-content > div { max-width: 900px; position: relative; z-index: 1; }
.home .home-content .hello { color: #73757b; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; line-height: 1.4; margin-bottom: 30px; }
.home .home-content h1 { max-width: 880px; font-size: clamp(58px, 8.3vw, 116px); line-height: .98; margin: 0; letter-spacing: -.065em; text-align: left; color: var(--agi-ink); font-weight: 700; }
.home .home-content h1 span { display: inline; color: #6b8731; }
.home .home-content p { max-width: 650px; margin: 28px 0 0; color: var(--agi-muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; text-align: left; }
.home .call-to-actions { grid-column: 2; grid-row: 3; position: static; display: flex; gap: 14px; align-items: center; justify-content: flex-start; z-index: 2; }
.btn-primary, .btn-secondary { font-family: inherit; font-size: 15px; letter-spacing: 0; font-weight: 600; border-radius: 7px; height: auto; min-height: 52px; margin: 0; }
.btn-primary { padding: 0 22px; color: var(--agi-ink); background: var(--agi-accent); box-shadow: 0 8px 24px rgba(20,24,10,.08); }
.letter-wrap { display: inline-flex; padding: 0; }
.letter-wrap__word, .letter-wrap__char-inner { height: auto; line-height: 1.3; }
.letter-wrap__char-inner:after { display: none; }
.btn-secondary { background: #fff; border: 1px solid var(--agi-line); padding: 0 20px; color: var(--agi-ink); display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary:before, .btn-secondary:after { display: none; }
.btn-secondary div { height: auto; }
.btn-secondary span { color: var(--agi-ink); line-height: 1.3; }
.btn-secondary span:last-child { display: none; }
.home .contacts { grid-column: 2; grid-row: 1; position: static; display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 14px; }
.contacts ul { display: flex; gap: 24px; margin: 0; padding: 0; }
.contacts ul li { color: #5f6066; font-size: 13px; }
.leftbottom { grid-column: 2; grid-row: 3; justify-self: end; align-self: center; position: static; margin-top: 0; font-size: 13px; }
.leftbottom > span { display: none; }
.leftbottom > a { color: #55575c; font-size: 13px; }
.home .freelance { position: absolute; right: 5vw; bottom: 34px; font-size: 13px; color: #74757a; }
.freelance > span { font-size: 13px; }
.freelance > span > span { color: #505e2e; font-weight: 700; }
.freelance > span:before { display: none; }
.portfolio-grid { min-height: 100vh; height: auto; overflow: visible; display: block; padding: 90px max(5vw, calc((100vw - 1180px)/2)) 100px; background: #111214; color: #fff; }
.portfolio-grid .heading { text-align: left; padding: 0 0 42px; }
.portfolio-grid .heading h2 { max-width: 760px; color: #fff; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.055em; line-height: 1; }
.portfolio-grid .heading p { max-width: 620px; color: #a9aaae; font-size: 18px; line-height: 1.55; margin-top: 18px; }
.portfolio-grid ul.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; max-width: none; padding: 0; }
.portfolio-grid ul.grid li { float: none; width: auto; height: 205px; margin: 0; border-radius: 9px; overflow: hidden; background: #242629; }
.portfolio-grid ul.grid li img { filter: none; opacity: .2; object-fit: cover; }
.portfolio-grid ul.grid li .title { transform: none; pointer-events: auto; padding: 22px; align-items: flex-end; justify-content: flex-start; text-align: left; font-size: 20px; font-weight: 600; background: linear-gradient(180deg,transparent 10%,rgba(0,0,0,.78)); }
.portfolio-grid ul.grid li:hover .title { animation: none; }
.portfolio-grid ul.grid li:hover img { transform: scale(1.04); transition: transform .35s; }
.portfolio-grid .freelance { position: static; text-align: left; margin-top: 35px; }
.portfolio-grid .freelance > span { color: #b1b2b5; }
.portfolio-grid .freelance > span > span { color: var(--agi-accent); }
.back-home { position: fixed; top: 24px; left: 25px; filter: invert(1); }
.portfolio-items, .about, .layers { display: none !important; }
@media(max-width: 900px) {
  .main-section.home { min-height: 760px; padding: 22px 6vw 36px; }
  .home .home-content { padding-top: 95px; }
  .home .contacts { align-items: flex-start; }
  .contacts ul { gap: 8px; flex-direction: column; }
  .home .freelance { right: 6vw; bottom: 18px; }
  .leftbottom { display: none; }
  .portfolio-grid ul.grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 560px) {
  .main-section.home { min-height: 720px; grid-template-columns: 1fr; padding: 18px 22px 30px; }
  .home .contacts, .home .home-content, .home .call-to-actions { grid-column: 1; }
  .home .home-content { padding: 70px 0 35px; align-items: center; }
  .home .home-content h1 { font-size: clamp(53px, 15vw, 76px); }
  .home .home-content p { font-size: 18px; line-height: 1.45; }
  .home .call-to-actions { align-items: stretch; flex-direction: column; }
  .home .call-to-actions > * { width: 100%; }
  .home .freelance { left: 22px; right: auto; bottom: 14px; }
  .portfolio-grid { padding: 72px 22px 70px; }
  .portfolio-grid ul.grid { grid-template-columns: 1fr; }
  .portfolio-grid ul.grid li { height: 150px; }
}
.btn-secondary div { top: 0; height: auto; overflow: visible; }
.btn-secondary span { position: static; display: block; transform: none !important; color: var(--agi-ink) !important; }
.btn-secondary span:first-child { display: none; }
.btn-secondary span:last-child { display: block; }
.home .call-to-actions .btn-secondary { width: auto; margin: 0; }
.home .call-to-actions #open-portfolio { min-width: 235px; }
.home .contacts { position: relative; }
.home .contacts:before { content: "AGI READY"; color: var(--agi-ink); font-size: 15px; letter-spacing: .12em; font-weight: 800; }
.home .contacts ul { margin-left: auto; }
.home .contacts ul li:first-child, .home .contacts ul li:last-child { display: none; }
/* Avoid decorative template imagery that reads as broken portfolio thumbnails. */
.impact-mark { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(201,242,105,.20), transparent 38%), linear-gradient(145deg,#25272a,#18191c); }
.portfolio-grid ul.grid li:nth-child(2n) .impact-mark { background: radial-gradient(circle at 65% 30%, rgba(201,242,105,.15), transparent 40%), linear-gradient(145deg,#22252a,#17191c); }
.portfolio-grid ul.grid li:nth-child(3n) .impact-mark { background: radial-gradient(circle at 35% 65%, rgba(145,156,255,.18), transparent 42%), linear-gradient(145deg,#27272c,#18191c); }
.home .call-to-actions #open-portfolio .letter-wrap { display: block; }
.home .call-to-actions #open-portfolio .letter-wrap__word { display: inline; height: auto; overflow: visible; }
.home .call-to-actions #open-portfolio .letter-wrap__char { display: inline; transform: none !important; }
.home .call-to-actions #open-portfolio .letter-wrap__char-inner { display: inline; height: auto; line-height: inherit; }
/* Landing sections flow in the document; no full-screen template transitions. */
.main-section, .portfolio-items > div { position: relative; top: auto; left: auto; height: auto; min-height: 0; transform: none !important; visibility: visible; pointer-events: auto; transition: none; z-index: auto; }
.main-section.home { min-height: 100vh; }
.portfolio-grid { min-height: 100vh; }
.home .call-to-actions #open-portfolio .letter-wrap__char { letter-spacing: 0; }
.home .call-to-actions #open-portfolio .letter-wrap, .home .call-to-actions #open-portfolio .letter-wrap__word, .home .call-to-actions #open-portfolio .letter-wrap__char, .home .call-to-actions #open-portfolio .letter-wrap__char-inner { display: inline; height: auto; min-width: 0; overflow: visible; line-height: inherit; letter-spacing: 0; }
.home .call-to-actions #open-portfolio .letter-wrap__char-inner:after { display: none; }
.back-home { display: none; }
.home .call-to-actions #open-portfolio > span { display: inline; letter-spacing: 0; }
.header-note { color: #5f6066; font-size: 13px; }
.leftbottom > button.header-contact { position: relative; border: 0; background: none; color: #55575c; font: inherit; cursor: pointer; padding: 8px 0; }
.leftbottom > button.header-contact:hover { color: var(--agi-ink); }
.portfolio-grid .freelance { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portfolio-grid .section-contact { width: auto; min-width: 260px; margin: 0; border-color: #3d3e42; background: transparent; }
.portfolio-grid .section-contact span { color: #fff !important; }
.portfolio-grid .section-contact:hover { background: #292b2f; }
.contact-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.contact-modal.is-open { opacity: 1; visibility: visible; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(12,13,15,.72); backdrop-filter: blur(5px); }
.contact-dialog { position: relative; width: min(100%, 640px); max-height: min(90vh, 820px); overflow-y: auto; padding: 38px; border: 1px solid #ececef; border-radius: 16px; background: #fff; color: var(--agi-ink); box-shadow: 0 28px 90px rgba(0,0,0,.28); transform: translateY(12px); transition: transform .2s ease; }
.contact-modal.is-open .contact-dialog { transform: translateY(0); }
.contact-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f1ef; color: #333; font-size: 28px; line-height: 1; cursor: pointer; }
.contact-eyebrow { color: #6b8731; font-size: 12px; letter-spacing: .14em; font-weight: 800; }
.contact-dialog h2 { margin: 12px 48px 8px 0; font-size: clamp(32px,5vw,42px); line-height: 1.05; letter-spacing: -.04em; }
.contact-dialog > p { margin: 0 0 24px; color: #686970; line-height: 1.5; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-fields label { display: flex; flex-direction: column; gap: 7px; color: #38393d; font-size: 13px; font-weight: 600; }
.contact-fields .contact-wide { grid-column: 1 / -1; }
.contact-fields input, .contact-fields select, .contact-fields textarea { width: 100%; border: 1px solid #d9dade; border-radius: 7px; padding: 11px 12px; color: #16171a; background: #fff; font-family: inherit; font-size: 15px; line-height: 1.4; outline: none; }
.contact-fields input:focus, .contact-fields select:focus, .contact-fields textarea:focus { border-color: #839d4b; box-shadow: 0 0 0 3px rgba(131,157,75,.16); }
.contact-fields textarea { resize: vertical; min-height: 112px; }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 22px; margin: 12px 0 8px; color: #596e2b; font-size: 14px; line-height: 1.4; }
.contact-submit { width: 100%; min-height: 50px; border: 0; border-radius: 7px; background: var(--agi-accent); color: var(--agi-ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
body.contact-open { overflow: hidden; }
@media(max-width: 560px) {
  .portfolio-grid .freelance { flex-direction: column; align-items: flex-start; }
  .portfolio-grid .section-contact { width: 100%; }
  .contact-modal { padding: 12px; }
  .contact-dialog { padding: 30px 20px 22px; max-height: 94vh; }
  .contact-fields { grid-template-columns: 1fr; gap: 13px; }
  .contact-fields .contact-wide { grid-column: auto; }
}
/* Guided readiness self-assessment */
.assessment-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.assessment-modal.is-open { opacity: 1; visibility: visible; }
.assessment-backdrop { position: absolute; inset: 0; background: rgba(12,13,15,.76); backdrop-filter: blur(6px); }
.assessment-dialog { position: relative; width: min(100%, 760px); max-height: min(92vh, 900px); overflow-y: auto; padding: 42px; border: 1px solid #ececef; border-radius: 16px; background: #fff; color: var(--agi-ink); box-shadow: 0 28px 90px rgba(0,0,0,.3); transform: translateY(12px); transition: transform .2s ease; }
.assessment-modal.is-open .assessment-dialog { transform: translateY(0); }
.assessment-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f1ef; color: #333; font-size: 28px; line-height: 1; cursor: pointer; }
.assessment-eyebrow, .assessment-result-label { color: #6b8731; font-size: 11px; letter-spacing: .13em; font-weight: 800; }
.assessment-dialog h2 { margin: 16px 42px 10px 0; font-size: clamp(34px,5vw,48px); line-height: 1.05; letter-spacing: -.045em; }
.assessment-dialog h3 { margin: 24px 0 5px; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.assessment-dialog p { color: #686970; line-height: 1.5; }
.assessment-intro > p:not(.assessment-disclaimer) { max-width: 570px; font-size: 17px; }
.assessment-disclaimer, .assessment-privacy { font-size: 12px !important; color: #77787d !important; }
.assessment-start, .assessment-next { min-height: 48px; border: 0; border-radius: 7px; padding: 0 20px; background: var(--agi-accent); color: var(--agi-ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.assessment-start { margin-top: 14px; }
.assessment-start span { margin-left: 16px; font-size: 19px; }
.assessment-progress { display: flex; align-items: center; gap: 14px; margin: 10px 0 22px; color: #66676b; font-size: 12px; font-weight: 600; }
.assessment-progress > div { height: 5px; flex: 1; overflow: hidden; border-radius: 20px; background: #eceeeb; }
.assessment-progress > div > span { display: block; height: 100%; border-radius: inherit; background: #9fc34d; transition: width .2s ease; }
.assessment-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.assessment-profile label { display: flex; flex-direction: column; gap: 7px; color: #38393d; font-size: 13px; font-weight: 600; }
.assessment-profile label:first-child { grid-column: 1 / -1; }
.assessment-profile input, .assessment-profile select { min-height: 44px; padding: 10px 12px; border: 1px solid #d9dade; border-radius: 7px; background: #fff; color: #16171a; font-family: inherit; font-size: 14px; }
.assessment-profile input:focus, .assessment-profile select:focus { outline: none; border-color: #839d4b; box-shadow: 0 0 0 3px rgba(131,157,75,.16); }
.assessment-question { margin: 20px 0 0; padding: 0; border: 0; }
.assessment-question legend { margin-bottom: 8px; color: #25262a; font-size: 14px; font-weight: 700; }
.assessment-question label { display: flex; align-items: center; min-height: 39px; gap: 10px; margin: 6px 0; padding: 8px 11px; border: 1px solid #e3e4e5; border-radius: 7px; color: #494a4f; font-size: 13px; cursor: pointer; }
.assessment-question label:has(input:checked) { border-color: #9fc34d; background: #f7faef; color: #242721; }
.assessment-question input { accent-color: #6b8731; flex: 0 0 auto; }
.assessment-status { min-height: 20px; margin-top: 10px; color: #a33d32; font-size: 13px; }
.assessment-controls, .assessment-result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.assessment-back { min-height: 48px; padding: 0 16px; border: 1px solid #dcdddf; border-radius: 7px; background: #fff; color: #34353a; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.assessment-controls #assessment-next, .assessment-controls #assessment-submit { margin-left: auto; }
.assessment-submit { display: block; margin: 12px 0 0 auto; }
.assessment-submit[hidden], .assessment-controls [hidden], .assessment-step[hidden], .assessment-workflow[hidden], .assessment-result[hidden], .assessment-intro[hidden] { display: none !important; }
.assessment-score { display: flex; align-items: baseline; gap: 7px; margin: 24px 0 12px; }
.assessment-score strong { font-size: 78px; line-height: .95; letter-spacing: -.07em; }
.assessment-score span { color: #77787d; font-size: 17px; }
.assessment-result h3 { margin-top: 0; font-size: 30px; }
.assessment-result > p { max-width: 620px; }
.assessment-result h4 { margin: 25px 0 8px; font-size: 15px; }
.assessment-result ol { display: grid; gap: 12px; margin: 0; padding-left: 23px; }
.assessment-result li { padding-left: 3px; color: #45464b; }
.assessment-result li strong, .assessment-result li span { display: block; }
.assessment-result li strong { margin-bottom: 3px; font-size: 14px; }
.assessment-result li span { color: #686970; font-size: 13px; line-height: 1.45; }
body.assessment-open { overflow: hidden; }
@media(max-width:560px) {
  .assessment-modal { padding: 10px; }
  .assessment-dialog { max-height: 95vh; padding: 30px 19px 22px; }
  .assessment-profile { grid-template-columns: 1fr; }
  .assessment-profile label:first-child { grid-column: auto; }
  .assessment-dialog h3 { font-size: 22px; }
  .assessment-question label { font-size: 12px; }
}
