/* JFM Corp website. Kit: Project Management Web Design (boxed panels inset from a dark page, a hero panel with a
   cropped app-like panel, bento cards holding mini UIs, flowing wave artwork). Inter text, Figtree for the wordmark. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Variable.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --page: #18181d; --panel: #f0f0f2; --panel2: #ffffff; --dark: #26262e; --ink: #16161a; --muted: #5f6070; --line: #dcdce2;
  --coral: #f67162; --coral-d: #d9503f; --mint: #52c993; --violet: #6b57f5; --blue: #2b7cff; --teal: #129a8a;
  --r: 26px; --gap: 12px; --shadow: 0 12px 30px rgba(10, 10, 20, .08); --shadow-up: 0 22px 44px rgba(10, 10, 20, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page); padding: var(--gap); }
main { overflow-x: clip; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.tag { font-size: 13px; font-weight: 600; color: var(--coral-d); margin-bottom: .6em; }
.tag.light { color: #ffb4aa; }
.lead { font-size: 18px; color: #34343e; max-width: 640px; }
.note { color: var(--muted); font-size: 14px; }
.pad { padding: 8px 16px; color: #b9b9c4; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price { font-weight: 800; }
.price span, .bigprice span { font-weight: 500; color: var(--muted); font-size: 14px; }
.bigprice { font-size: 28px; font-weight: 800; margin: .2em 0 .6em; }

/* boxed panels */
.panel { background: var(--panel); border-radius: var(--r); padding: clamp(22px, 4vw, 56px); margin-bottom: var(--gap); position: relative; overflow: hidden; }
.panel.dark { background: var(--dark); color: #f1f1f5; }
.panel.dark .lead, .panel.dark p { color: #cfcfd8; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; font: 600 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .25s, box-shadow .25s, background .25s; }
.btn.primary { background: var(--coral); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.ar { display: inline-flex; width: 18px; height: 18px; transition: transform .25s; }
.ar svg { width: 18px; height: 18px; }
.tlink { display: inline-flex; gap: 8px; align-items: center; color: var(--coral-d); font-weight: 600; text-decoration: none; min-height: 44px; }
.linkbtn { background: none; border: 0; color: #b9b9c4; text-decoration: underline; cursor: pointer; min-height: 44px; font: inherit; }

/* header on the dark page */
.top { display: flex; align-items: center; gap: 18px; padding: 12px 16px 20px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.bmark { display: inline-flex; width: 30px; height: 30px; color: var(--coral); }
.bmark svg { width: 30px; height: 30px; }
.wm { font: 700 15px "Figtree", sans-serif; letter-spacing: .38em; }
.links { display: flex; gap: 4px; }
.links a { color: #d2d2da; text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 18px; font-weight: 600; min-height: 44px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-up); padding: 8px; display: grid; min-width: 220px; z-index: 10; }
.mnav nav a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 10px; }

/* hero with a cropped app-like panel */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding-right: 0; min-height: 560px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hshot { align-self: stretch; display: flex; align-items: center; margin-right: -60px; }
.app { width: 100%; background: #fff; border-radius: 22px 0 0 22px; box-shadow: var(--shadow-up); overflow: hidden; }
.abar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.abar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.abar span:nth-child(2) { background: #ffbd2e; } .abar span:nth-child(3) { background: #28c941; }
.abar b { margin-left: 12px; font-size: 13px; }
.abody { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.aside { background: #f7f7f9; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 18px 0; }
.aside i { width: 22px; height: 22px; border-radius: 7px; background: #e0e0e6; }
.aside i.on { background: var(--coral); }
.amain { padding: 18px 22px; }
.acap { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.mrow { display: grid; grid-template-columns: 12px 1fr 1.1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #efeff3; font-size: 13px; }
.mrow small { display: block; color: var(--muted); }
.mt b { font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.bar { height: 12px; background: #efeff3; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.coral { background: var(--coral); } .violet { background: var(--violet); } .teal { background: var(--teal); } .blue { background: var(--blue); }
.atotal { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }

/* bento row */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap); }
.bento > .panel { margin-bottom: var(--gap); }
.bcard { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding: 26px; }
.bcard.col { grid-template-columns: 1fr; align-content: start; }
.bcard h2 { font-size: 22px; }
.bcard p { font-size: 14px; color: var(--muted); }
.mlist { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.mlist .mrow { grid-template-columns: 10px 1fr; }
.mlist .bar { grid-column: 1 / -1; }
.cal, .chartbox { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.chead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.chead span { color: var(--muted); }
.crow { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.crow i { display: block; height: 12px; border-radius: 6px; }
.chart { width: 100%; height: auto; }
.bimg { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* wave feature cards */
.fhead { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: end; margin-bottom: 26px; }
.fhead h2 { margin: 0; }
.fhead p { margin: 0; color: var(--muted); }
.wgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.wcard { grid-column: span 2; background: #fff; border-radius: 20px; padding: 12px 12px 20px; text-decoration: none; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.wcard.wide { grid-column: span 3; }
.wave { display: block; width: 100%; height: 170px; border-radius: 14px; margin-bottom: 14px; }
.wcard h3, .wcard p, .wcard .more { padding: 0 6px; }
.wcard p { color: var(--muted); font-size: 14px; flex: 1; }
.more { display: inline-flex; gap: 8px; align-items: center; color: var(--coral-d); font-weight: 600; font-size: 14px; }

/* split dark panel and equipment strip */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.eqstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eqstrip img { border-radius: 16px; background: #fff; aspect-ratio: 1; object-fit: cover; }
.rimg { border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.cta2 { color: #fff; min-height: 320px; display: flex; align-items: flex-end; }
.cta2 .bgwave { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; margin: 0; }
.cta2 > div { position: relative; max-width: 620px; }
.cta2 p { color: #fff; }
.cta2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 20, .55), rgba(10, 10, 20, 0)); }
.cta2 > div { z-index: 1; }

/* services */
.phead h1 { max-width: 900px; }
.sgroup { padding-top: 0; padding-left: 0; padding-right: 0; }
.ghead { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 0 clamp(22px, 4vw, 56px) 18px; color: #fff; margin-bottom: 10px; }
.gwave { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; margin: 0; }
.ghead h2 { position: relative; margin: 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.slist { padding: 0 clamp(12px, 3vw, 40px); display: grid; gap: 10px; }
.srow { display: grid; grid-template-columns: 140px 1fr auto 44px; gap: 18px; align-items: center; background: #fff; border-radius: 18px; padding: 10px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.sthumb { width: 140px; height: 94px; object-fit: cover; border-radius: 12px; }
.stext small, .sprice small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.stext b { font-size: 17px; }
.sprice { font-weight: 800; text-align: right; white-space: nowrap; }
.go { color: var(--coral); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.dimg img { border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .8s; }
.dimg { border-radius: 20px; overflow: hidden; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--mint); color: #fff; flex: none; }
.checks svg { width: 18px; height: 18px; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mini { background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.mini img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.mini span { display: block; padding: 12px 14px; }
.mini small { display: block; color: var(--muted); }

/* equipment */
.eqgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.eq { background: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.eq img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
.eq ul { padding-left: 18px; margin: 0 0 12px; color: var(--muted); font-size: 14px; flex: 1; }

/* steps, visits, contact, facts, faq */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 90px 1fr 300px; gap: 24px; align-items: center; }
.sn { font: 800 54px/1 "Figtree", sans-serif; color: var(--coral); }
.simg { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.vgrid > .panel { margin-bottom: var(--gap); padding: 14px; }
.vcard img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 14px; }
.vcard > div { padding: 0 8px 8px; }
.wins { display: flex; gap: 30px; margin: 10px 0 16px; }
.wins dt { font-weight: 700; font-size: 20px; }
.wins dd { margin: 0; color: #cfcfd8; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cgrid > .panel { margin-bottom: var(--gap); }
.ccard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-height: 190px; transition: transform .3s, box-shadow .3s; }
.ccard b { font-size: 22px; }
.ccard .ar { margin-top: auto; }
.wavec { color: #fff; }
.wavec .bgwave { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.wavec::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 10, 20, .62), rgba(10, 10, 20, .25)); }
.wavec > *:not(svg) { position: relative; z-index: 1; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.facts div { background: #fff; border-radius: 16px; padding: 16px 18px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.faqbox { display: grid; gap: 10px; }
.qa { background: #fff; border-radius: 16px; padding: 0 20px; }
.qa summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; font-size: 17px; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--coral); font-size: 24px; transition: transform .3s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary::-webkit-details-marker { display: none; }

/* privacy: bento of numbered panels */
.pidx { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pidx a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; text-decoration: none; font-size: 14px; }
.pidx b { color: var(--coral-d); }
.pbento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.pbento > .panel { margin-bottom: 0; padding: 20px 22px 24px; }
.policy-section { scroll-margin-top: 16px; }
.policy-section[data-variant="dark"] { background: var(--dark); color: #f1f1f5; }
.policy-section[data-variant="dark"] p { color: #d4d4dc; }
.policy-section[data-variant="wave"] { background: #fff; }
.pmedia { position: relative; margin-bottom: 16px; }
.pmedia .pimg { border-radius: 16px; aspect-ratio: 3 / 1.4; object-fit: cover; width: 100%; height: auto; margin: 0; }
.pmedia .pband { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; margin: 0; border-radius: 0 0 16px 16px; opacity: .92; }
.pnum { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font: 800 18px "Figtree", sans-serif; padding: 6px 12px; border-radius: 10px; }
.policy-section h2 { font-size: 22px; }

/* request builder */
.planner { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); align-items: start; }
.pcol > .panel { padding: 24px; }
.box h2 { font-size: 22px; }
.addrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.addrow label { flex: 1 1 160px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
input, select, textarea { font: 400 16px "Inter", sans-serif; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 48px; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.radio input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--coral); }
.radio b { display: block; } .radio small { color: var(--muted); }
.radio.inline { display: inline-flex; margin-right: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 22px; min-height: 22px; accent-color: var(--coral); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.devs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.devs li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 8px 8px 14px; }
.devs li span { flex: 1; } .devs li small { color: var(--muted); display: block; }
.devs button, .lines button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.devs button { border-color: var(--line); color: var(--coral-d); }
.psum { position: sticky; top: 12px; display: grid; gap: 10px; padding: 24px; }
.psum .total { font: 800 30px/1.1 "Inter", sans-serif; margin: 0; color: #fff; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.lines li small { color: #b9b9c4; display: block; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.errors { background: #ffe9e6; color: #7a1c14; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.preview summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.preview pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, monospace; background: rgba(255, 255, 255, .08); color: #e8e8ee; border-radius: 12px; padding: 12px; max-height: 360px; overflow: auto; }

/* footer */
.foot { color: #b9b9c4; padding: 40px 16px 20px; }
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 26px; }
.fbrand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 15px "Figtree", sans-serif; letter-spacing: .38em; }
.fh { color: #fff; font-weight: 600; margin-bottom: 6px; }
.foot a { color: #fff; }
.legal { border-top: 1px solid #2c2c34; margin-top: 26px; padding-top: 16px; font-size: 13px; }

/* motion: reveal only when JavaScript runs; hover where hovering exists; both off for reduced motion */
html.js [data-reveal] { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .7s ease, transform .7s ease; }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
  .btn:hover .ar, .tlink:hover .ar, .wcard:hover .ar, .ccard:hover .ar { transform: translateX(4px); }
  .links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .wcard:hover, .mini:hover, .eq:hover, .ccard:hover, .srow:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
  .wcard:hover .wave path { transform: translateX(-18px); }
  .wave path { transition: transform 1.2s ease; }
  .detail:hover .dimg img { transform: scale(1.04); }
  .pidx a:hover { background: var(--coral); color: #fff; }
  .pidx a:hover b { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .wcard:hover, .mini:hover, .eq:hover, .ccard:hover, .srow:hover, .btn:hover { transform: none; }
}

/* small screens */
@media (max-width: 1000px) {
  .links, .top .cta { display: none; }
  .mnav { display: block; }
  .hero, .split, .detail, .fhead, .planner, .cgrid, .pbento { grid-template-columns: 1fr; }
  .hshot { margin-right: 0; }
  .app { border-radius: 22px; }
  .bento, .vgrid { grid-template-columns: 1fr; }
  .wgrid { grid-template-columns: 1fr 1fr; }
  .wcard, .wcard.wide { grid-column: span 1; }
  .steps li { grid-template-columns: 60px 1fr; }
  .simg { grid-column: 1 / -1; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .psum { position: static; }
}
@media (max-width: 600px) {
  body { padding: 8px; }
  .panel { padding: 22px 18px; }
  .hero { min-height: 0; padding-right: 18px; }
  .bcard { grid-template-columns: 1fr; }
  .wgrid { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 96px 1fr; }
  .sthumb { width: 96px; height: 72px; }
  .sprice { grid-column: 2; text-align: left; }
  .go { display: none; }
  .eqstrip { grid-template-columns: 1fr 1fr; }
  .facts, .fgrid { grid-template-columns: 1fr; }
  .wins { flex-direction: column; gap: 10px; }
  .addrow label { flex-basis: 100%; }
  .mrow { grid-template-columns: 12px 1fr; }
  .mrow .bar { grid-column: 1 / -1; }
  .pidx { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .pidx a { flex: none; scroll-snap-align: start; }
}
