/* MCC Technologies — drawing-sheet language: vellum, graphite linework, MCCT blue, red-pen review notes. */
:root {
  --vellum: #eef1f4;
  --sheet: #ffffff;
  --graphite: #18202b;
  --graphite-2: #3a4553;
  --construction: #7b8794;
  --hairline: #c9d0d8;
  --blue: #2b2fe0;
  --blue-deep: #1b1fa8;
  --violet: #7a45e6;
  --redline: #c2302a;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1200px;
  --radius: 2px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale (1.25 ratio); headings set wide, like stencilled drawing titles */
h1, h2, h3 { font-variation-settings: "wdth" 116; font-weight: 640; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-variation-settings: "wdth" 108; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--graphite-2); }
.note { font-variation-settings: "wdth" 78; font-style: italic; color: var(--redline); font-size: .98rem; }
.small { font-size: .92rem; color: var(--graphite-2); }

/* Header */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--graphite); }
.brand img { width: 40px; height: auto; }
.brand span { font-variation-settings: "wdth" 120; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-weight: 400; font-variation-settings: "wdth" 90; font-size: .8rem; color: var(--graphite-2); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav a { color: var(--graphite); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .cta { color: #fff; background: var(--blue); padding: .55rem .95rem; border-radius: var(--radius); border: 0; }
.nav .cta:hover { background: var(--blue-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--hairline); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; color: var(--graphite); }
@media (max-width: 880px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--sheet); border-bottom: 1px solid var(--hairline); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--vellum); }
  .nav .cta { display: inline-block; margin-top: .8rem; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .8rem 1.25rem; border-radius: var(--radius);
  background: var(--blue); color: #fff; border: 2px solid var(--blue); cursor: pointer; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn.ghost:hover { background: var(--graphite); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero: a drawing sheet with grid references and a title block */
.sheet { background: var(--sheet); margin: clamp(20px, 3vw, 32px) auto; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wide) - 2 * var(--gutter)); position: relative;
  border: 1.5px solid var(--graphite); box-shadow: 0 0 0 6px var(--sheet), 0 0 0 7px var(--hairline); }
.sheet-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 5.5rem; align-items: center; }
.gridref { position: absolute; color: var(--construction); font-size: .72rem; font-variation-settings: "wdth" 80; display: flex; pointer-events: none; }
.gridref.top { top: 4px; left: 0; right: 0; justify-content: space-around; }
.gridref.side { top: 0; bottom: 0; left: 6px; flex-direction: column; justify-content: space-around; }
.titleblock { position: absolute; right: -1.5px; bottom: -1.5px; display: grid; grid-template-columns: auto auto auto; border: 1.5px solid var(--graphite);
  background: var(--sheet); font-size: .78rem; line-height: 1.3; }
.titleblock div { padding: .45rem .7rem; border-left: 1px solid var(--graphite); }
.titleblock div:first-child { border-left: 0; }
.titleblock b { display: block; font-weight: 600; font-variation-settings: "wdth" 110; font-size: .86rem; }
.titleblock span { color: var(--construction); font-variation-settings: "wdth" 82; }
.plan .ln { fill: none; stroke: var(--graphite); stroke-width: 2; }
.plan .thin { fill: none; stroke: var(--construction); stroke-width: 1; }
.plan .dim { fill: none; stroke: var(--construction); stroke-width: .8; }
.plan .cable { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 7 4; }
.plan .cone { fill: rgba(43, 47, 224, .07); stroke: var(--blue); stroke-width: .8; }
.plan .ap { fill: rgba(122, 69, 230, .06); stroke: var(--violet); stroke-width: .8; stroke-dasharray: 3 3; }
.plan .dev { fill: var(--sheet); stroke: var(--graphite); stroke-width: 1.5; }
.plan .red { fill: none; stroke: var(--redline); stroke-width: 1.6; }
.plan text { font-family: var(--font); font-size: 11px; fill: var(--graphite-2); }
.plan .redtext { fill: var(--redline); font-style: italic; font-variation-settings: "wdth" 78; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .plan .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s ease-out forwards; }
  .plan .late { opacity: 0; animation: appear .6s ease-out 1.9s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}
@media (max-width: 880px) {
  .sheet-inner { grid-template-columns: 1fr; padding-bottom: 7.5rem; }
  .gridref { display: none; }
  .titleblock { left: -1.5px; grid-template-columns: 1fr 1fr; }
  .titleblock div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--graphite); }
}

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section.paper { background: var(--sheet); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section > .wrap > p:last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem 3rem; }
.cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
@media (max-width: 720px) { .cols.four { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Deliverables schedule (services) */
.schedule { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1.5px solid var(--graphite); font-size: .98rem; }
.schedule caption { text-align: left; font-size: .92rem; color: var(--graphite-2); padding-bottom: .6rem; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-top: 1px solid var(--hairline); }
.schedule thead th { border-top: 0; border-bottom: 1.5px solid var(--graphite); font-weight: 600; font-variation-settings: "wdth" 110; font-size: .9rem; background: var(--vellum); }
.schedule td:first-child a { font-weight: 600; text-decoration: none; color: var(--graphite); }
.schedule td:first-child a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 720px) {
  .schedule thead { position: absolute; left: -9999px; }
  .schedule tr { display: block; border-top: 1px solid var(--hairline); padding: .4rem 0; }
  .schedule td { display: block; border: 0; padding: .3rem 1rem; }
  .schedule td::before { content: attr(data-h); display: block; font-size: .8rem; color: var(--construction); }
  .schedule td:first-child::before { content: none; }
}

/* Service detail */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.service ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.service li { margin: .25rem 0; }
.service .limits { border-left: 3px solid var(--redline); padding: .2rem 0 .2rem 1rem; margin-top: 1rem; }
.service .limits p { margin: 0; }
@media (max-width: 880px) { .service { grid-template-columns: 1fr; } }

/* Process (a real sequence) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--hairline); }
.steps li::before { content: counter(s); font-variation-settings: "wdth" 125; font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--blue); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1.5px solid var(--graphite); }
.markets section { padding: 1.4rem 1.4rem 1.4rem 0; border-bottom: 1px solid var(--hairline); }
.markets h3 { font-size: 1.15rem; }

/* Partners */
.partner { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--hairline); }
.partner img { width: 120px; background: #fff; border: 1px solid var(--hairline); padding: 6px; }
@media (max-width: 520px) { .partner { grid-template-columns: 1fr; } }

/* Callout band */
.band { background: var(--graphite); color: #e9edf2; }
.band h2 { color: #fff; }
.band p { color: #c9d1db; }
.band .btn.ghost { color: #fff; border-color: #fff; }
.band .btn.ghost:hover { background: #fff; color: var(--graphite); }

/* Page header for inner pages */
.page-head { background: var(--sheet); border-bottom: 1px solid var(--hairline); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head p { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--construction); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1.5px solid var(--construction); border-radius: var(--radius); background: #fff; color: var(--graphite); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.status { padding: .9rem 1rem; border-left: 4px solid var(--blue); background: var(--sheet); display: none; }
.status.show { display: block; }
.status.error { border-left-color: var(--redline); }

/* Footer */
.site-footer { background: var(--sheet); border-top: 1.5px solid var(--graphite); padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: var(--graphite); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 1rem; color: var(--graphite-2); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Long-form legal text */
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose { max-width: var(--measure); }

/* Capability statement */
.caplist { margin: 0; padding-left: 1.1rem; }
.caplist li { margin: 0 0 .7rem; }
.schedule.compact th, .schedule.compact td { padding: .55rem .8rem; }
.schedule.compact th { width: 9rem; font-weight: 600; }
@media print {
  @page { size: letter; margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .noprint, .skip { display: none !important; }
  .page-head, .section, .section.paper { padding: 6pt 0; background: #fff; border: 0; }
  .split { grid-template-columns: 1fr 3fr; gap: 12pt; }
  h1 { font-size: 20pt; } h2 { font-size: 13pt; } .lede { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
