/* Melenica Group inner pages: the homepage chrome-studio finish (D-074) applied over the inner-page components.
   Loaded after inner.css and shell.css. Black, white and silver only; same type system as the homepage
   (Bricolage Grotesque display at weight 500 with tight tracking, Instrument Serif italic accents, Atkinson body). */
:root {
  --bg: #000; --bg-1: #000; --bg-2: #0a0a0c; --bg-3: #0c0c0e; --paper: #000; --grid: transparent;
  --line: rgba(255, 255, 255, .08); --line-dark: rgba(255, 255, 255, .14); --radius: 18px;
  --ink: #f4f4f5; --ink-hi: #ffffff; --muted: #9d9d9d; --on-dark: #c8c8c8; --on-dark-muted: #9d9d9d;
}
html, body { background: #000; }
body { font: 400 1.0625rem/1.6 var(--font-body); }

/* Surfaces: true black, no drafting grid. Depth comes from hairlines, glass and a soft studio light. */
.gridpaper, .blueprint, .band-paper, .band-navy { background: #000; background-image: none; }
.band + .band, .band-navy { border-top: 1px solid var(--hair); }

/* Type: the homepage scale */
main h1 { font-size: clamp(2.8rem, 1.2rem + 5.2vw, 6.4rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; font-variation-settings: normal; max-width: 15ch; padding-bottom: .06em; }
main h2 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: .98; font-variation-settings: normal; }
main h3 { font-weight: 600; letter-spacing: -.01em; font-variation-settings: normal; }
.lede { color: #c8c8c8; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; max-width: 38em; }
.section-head p { color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.sheet-no { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); }
.sheet-no::before { width: 1.6rem; height: 1px; background: linear-gradient(90deg, #fff, #8f8f8f); }
a { color: var(--ink); }
a:hover { color: #fff; }

/* Page head: a black studio with a soft silver light from the upper right, like the homepage hero */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--hair); }
.page-head::before { content: ""; position: absolute; inset: -40% -10% 0 35%; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 42% at 62% 38%, rgba(255, 255, 255, .13), transparent 70%),
    linear-gradient(158deg, transparent 38%, rgba(255, 255, 255, .06) 44%, rgba(255, 255, 255, .16) 46.5%, rgba(255, 255, 255, .04) 49%, transparent 56%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.page-head .wrap { padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* Title block becomes a glass spec card */
.title-block { border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; background: rgba(8, 8, 10, .55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.title-block .tb-name { background: transparent; border-bottom: 1px solid var(--hair); padding: .9rem 1.1rem; font-family: var(--font-brand); font-weight: 300; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.title-block .tb-name .mark { width: 30px; height: auto; }
.title-block .tb-word { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-block dt, .title-block dd { padding: .6rem 1.1rem; border-color: var(--hair); }
.title-block dt { font-weight: 400; }
.title-block dd { font-weight: 600; }
.title-block .tb-foot { padding: .7rem 1.1rem .9rem; font-size: .88rem; }

/* Cards and documents: glass, hairline, rounded, no heavy top rules */
.form-card, .review-doc, .area-card, .split > div { background: rgba(12, 12, 14, .7); border: 1px solid var(--hair); border-top: 1px solid var(--hair-2); border-radius: 22px; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.review-doc { overflow: hidden; }
.review-doc header, .review-doc footer { background: rgba(255, 255, 255, .03); }
.review-doc li { border-color: var(--hair); }
.preview-note, .draft-banner { background: rgba(255, 255, 255, .04); border: 1px solid var(--hair-2); border-left: 1px solid var(--hair-2); border-radius: 14px; }
.field input, .field select, .field textarea { background: rgba(255, 255, 255, .04); border: 1px solid var(--hair-2); border-radius: 12px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-color: #fff; }
.form-status { background: rgba(255, 255, 255, .04); border: 1px solid var(--hair-2); border-left: 1px solid var(--hair-2); border-radius: 14px; }
.next-steps li { border-left: 1px solid rgba(255, 255, 255, .5); padding-left: 1.2rem; }
.draft-line { border-left: 1px solid rgba(255, 255, 255, .5); }
.toc { border-left: 1px solid var(--hair-2); }
.toc a:hover { color: #fff; }
.pin { background: var(--chrome); border: 0; color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.flag, .review-doc .flag { background: var(--chrome); color: #000; border-radius: 999px; padding: .2rem .7rem; }

/* Services: the homepage's ruled typographic index */
.svc { border-top: 1px solid var(--hair); }
.svc:first-child { border-top: 1px solid var(--hair-2); }
.svc h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); }
.svc .sketch { border: 1px solid var(--hair); border-radius: 18px; background: #050506; }
.svc .sketch figcaption { background: transparent; border-top: 1px solid var(--hair); }
.svc-cols li::before { height: 1px; background: linear-gradient(90deg, #fff, #8f8f8f); }
.svc-cols .out li::before { background: rgba(255, 255, 255, .22); }
.dim::before { border-top-color: rgba(255, 255, 255, .5); border-top-width: 1px; }
.dim::after { border-inline-color: rgba(255, 255, 255, .5); border-inline-width: 1px; }
.dim span { background: #000; color: var(--ink); font-weight: 600; }
.example img { border-radius: 18px; border-color: var(--hair-2); }

/* About */
.beliefs li { border-top: 1px solid var(--hair-2); }
.beliefs li h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 500; letter-spacing: -.025em; }
.split li::before { width: .45rem; height: .45rem; background: #fff; }
.split .person li::before { background: transparent; box-shadow: inset 0 0 0 1px #fff; }

/* CTA strip: homepage finale styling */
.cta-strip h2 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); max-width: 18ch; }

/* Mobile: tighter head */
@media (max-width: 899px) {
  .page-head::before { inset: -20% -40% 40% 10%; }
  .title-block { max-width: 30rem; }
}

/* Compact page heads (QA-6): h1, one line and the page's own action, so real content starts on the first phone
   screen. No decorative spec card. */
.page-head-compact .wrap { display: block; padding-block: clamp(2.25rem, 1.6rem + 3.5vw, 5rem) clamp(1.75rem, 1.4rem + 2vw, 3rem); }
.page-head-compact h1 { max-width: 20ch; }
.page-head-compact .lede { margin-top: .9rem; max-width: 44em; }
.page-head-compact .draft-line { margin-top: .8rem; }
.page-act { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.4rem; }
.page-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .25em; }
.page-meta { color: var(--muted); font-size: .95rem; }
.page-meta a { color: var(--ink); }

/* Services: the five packages as a chrome-numbered index, start-here pair lit */
.pkg-index { margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.pkg-index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair-2); }
.pkg-index li { border-right: 1px solid var(--hair); }
.pkg-index li:last-child { border-right: 0; }
.pkg-index a { display: grid; align-content: start; gap: .3rem; height: 100%; padding: 1rem 1rem 1.1rem; color: var(--ink); text-decoration: none; transition: background .25s; }
.pkg-index a:hover, .pkg-index a:focus-visible { background: rgba(255, 255, 255, .05); }
.pkg-index .is-start a { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.pi-n { font: 500 2rem/.9 var(--font-display); letter-spacing: -.05em; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
li:not(.is-start) .pi-n { opacity: .55; }
.pi-tag { font: 300 .68rem/1.2 var(--font-brand); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.pi-name { font: 600 1.05rem/1.2 var(--font-display); letter-spacing: -.01em; }
.pi-out { color: var(--muted); font-size: .88rem; line-height: 1.4; }
@media (max-width: 1023px) {
  .pkg-index ol { grid-template-columns: minmax(0, 1fr); }
  .pkg-index li { border-right: 0; border-bottom: 1px solid var(--hair); }
  .pkg-index a { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .9rem; padding: .75rem .8rem; }
  .pkg-index a > :not(.pi-n) { grid-column: 2; }
  .pi-n { grid-row: 1 / span 3; font-size: 1.6rem; align-self: center; }
  #quote .form-card { order: -1; }
}

/* Contact form: one contact method is enough; optional fields fold away */
.one-of { border: 0; margin: 0; padding: 0; min-width: 0; }
.one-of legend { padding: 0; font-weight: 700; font-size: 1rem; }
.one-of .hint { display: block; margin: .25rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.one-of-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.one-of-pair label { font-weight: 400; color: #d4d4d4; }
.more-details { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.more-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .7rem 0; font-weight: 700; }
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid #e6e6e6; border-bottom: 2px solid #e6e6e6; transform: rotate(45deg) translate(-2px, -2px); }
.more-details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.more-details summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.more-fields { padding: .4rem 0 1.2rem; }
@media (max-width: 560px) { .one-of-pair { grid-template-columns: minmax(0, 1fr); } }

/* Inquiry card (revision 3): experience radios, local-only image preview */
.inquiry { display: grid; gap: 1.2rem; }
.inq-title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 500; letter-spacing: -.035em; }
.inq-sub { color: var(--muted); margin-top: -.6rem; }
.xp-pick { border: 0; padding: 0; margin: 0; }
.xp-pick legend { font-weight: 600; margin-bottom: .7rem; }
.xp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.xp-opt { position: relative; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--hair-2); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .3s, background .3s; }
.xp-opt-wide { grid-column: 1 / -1; }
.inquiry .xp-opt input[type=radio] { padding: 0; min-height: 0; background: transparent; appearance: none; -webkit-appearance: none; flex: none; width: 1.05rem; height: 1.05rem; margin: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-content: center; }
.xp-opt input::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s; }
.xp-opt input:checked::before { transform: scale(1); }
.xp-opt:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.08); }
.xp-opt:hover { border-color: rgba(255,255,255,.45); }
.xp-opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.field .label { display: block; font-weight: 600; margin-bottom: .4rem; }
.drop { position: relative; display: grid; justify-items: start; gap: .5rem; padding: 1.2rem; border: 1px dashed rgba(255,255,255,.35); border-radius: 14px; background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.drop.over { border-color: #fff; background: rgba(255,255,255,.07); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-cta { display: inline-block; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; font-weight: 600; cursor: pointer; }
.drop input:focus-visible + .drop-cta { outline: 2px solid #fff; outline-offset: 3px; }
.drop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.drop-list:empty { display: none; }
.drop-list li { width: 84px; display: grid; gap: .25rem; font-size: .75rem; color: var(--muted); }
.drop-list img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hair-2); filter: grayscale(1); }
.drop-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inquiry .form-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.inquiry .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
@media (max-width: 560px) { .xp-options { grid-template-columns: 1fr; } }

/* Site-wide ambient chrome (revision 3): one fixed WebGL layer behind every section; the body lets it through. */
.ambient-chrome { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
html.has-ambient body { background: transparent; }
html.has-ambient .gridpaper, html.has-ambient .blueprint, html.has-ambient .band-paper, html.has-ambient .band-navy, html.has-ambient main .hero { background: transparent; }
