/* ============================================================
   M Pleno & Associates
   Direction: "Bold & Direct", promoted out of the four-variant
   homepage prototype and extended across the four real pages.

   This stylesheet is self-contained. Pages that load it do not
   load style.css / responsive.css / color.css or anything from
   vendor/ ; the Bootstrap 3 template stack is only still used by
   the unconverted demo pages.

   Light only. Dark mode is out of scope by decision.
   ============================================================ */

:root {
  --ink:        #160D22;
  --paper:      #F2EEF7;
  --purple:     #9333EA;
  --purple-dk:  #6D28D9;
  --lilac:      #C084FC;
  --muted:      #665A78;
  --body-dim:   #4C4059;
  --line:       #CFC5DE;
  --wash:       #EDE0FC;

  /* on the ink background */
  --on-ink:     #F2EEF7;
  --on-ink-dim: #B7ACC6;
  --on-ink-nav: #9A8FAB;
  --ink-line:   #3B2E4C;

  --display: 'Archivo Black','Helvetica Neue',Impact,sans-serif;
  --text:    'Space Grotesk','Helvetica Neue',Helvetica,Arial,sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--purple-dk); }

/* Archivo Black is the display face. It ships in one weight, so
   `font-weight: 400` here is deliberate: anything heavier gets
   synthesised by the browser and smears the letterforms. */
.blk {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px,4.5vw,48px); }
.wrap.pb { padding-bottom: clamp(48px,6vw,84px); }
/* A statement block straight after a full-bleed band needs air above
   it, or the ink block welds itself onto the band and reads as one
   ragged shape. The homepage has a section in between and does not. */
.creds + .wrap.pb, .dark + .wrap.pb { padding-top: clamp(48px,6vw,84px); }
.muted { color: var(--muted); }
.lbl { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* skip link, visible only once focused */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--purple); color: #fff; padding: 12px 18px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.sq {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; min-height: 56px; padding: 0 24px;
  font-family: inherit;
  font-size: clamp(12px,1.4vw,13.5px); letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sq.p { background: var(--purple); color: #fff; }
.sq.d { background: var(--ink); color: var(--paper); }
.sq:hover { background: var(--ink); color: var(--lilac); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--purple); }
.sq.d:hover { background: var(--purple); color: #fff; box-shadow: 6px 6px 0 var(--ink); }
.sq.sm    { min-height: 46px; }
.sq.block { justify-content: space-between; min-height: 62px; }
.sq.full  { width: 100%; }
@media (prefers-reduced-motion: reduce) { .sq:hover { transform: none; } }

/* ---------- header ---------- */
.hdr {
  background: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; min-height: 78px;
  padding: 12px clamp(18px,4.5vw,48px);
  flex-wrap: wrap;
}
.hdr .mark { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hdr .mark .nm { font-size: clamp(19px,3.4vw,26px); color: var(--on-ink); }
.hdr .mark .nm:hover { color: var(--lilac); }
.hdr .mark .sub { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-nav); }
.hdr .right { display: flex; align-items: center; gap: clamp(16px,3vw,34px); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav a { color: var(--on-ink-nav); }
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current] { color: var(--on-ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(36px,5vw,64px) 0 0; }
.rule {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding-bottom: 22px; border-bottom: 3px solid var(--ink);
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  flex-wrap: wrap;
}
.rule .alt { color: var(--muted); }

h1 { margin: 26px 0 0; font-size: clamp(30px,9.2vw,122px); line-height: .86; overflow-wrap: break-word; }
h2 { margin: 0; font-size: clamp(28px,5vw,52px); line-height: 1; overflow-wrap: break-word; }
.sec-title { margin: 0 0 30px; font-size: clamp(28px,4.4vw,46px); line-height: 1; }
.dark .sec-title { margin-bottom: 38px; }

/* rotating word, em-based so it scales with the clamped headline */
.rot { display: block; overflow: hidden; height: .92em; }
.rot-inner { display: block; animation: c-roll 14s cubic-bezier(.65,0,.35,1) infinite; }
.rot-inner > span { display: block; height: .92em; }
.rot-inner em { display: inline-block; font-style: normal; background: var(--purple); color: #fff; padding: 0 .1em; margin-left: -.1em; line-height: .92em; }
@keyframes c-roll {
  0%,15%   { transform: translateY(0); }
  20%,35%  { transform: translateY(-.92em); }
  40%,55%  { transform: translateY(-1.84em); }
  60%,75%  { transform: translateY(-2.76em); }
  80%,95%  { transform: translateY(-3.68em); }
  100%     { transform: translateY(-4.6em); }
}
@media (prefers-reduced-motion: reduce) { .rot-inner { animation: none; } }

.hsplit { display: grid; grid-template-columns: 1fr .72fr; gap: clamp(28px,5vw,64px); padding: clamp(32px,4.5vw,46px) 0 clamp(40px,6vw,60px); }
.lead { margin: 0; font-size: clamp(17px,2.2vw,21px); line-height: 1.5; max-width: 26em; text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.callbox { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 3px solid var(--ink); padding: 12px 24px; min-height: 62px; }
.callbox .num { font-size: clamp(17px,2.4vw,21px); }

/* ---------- page header, the inner pages ---------- */
.pagehead { padding: clamp(36px,5vw,64px) 0 0; }
.pagehead h1 { font-size: clamp(34px,7vw,84px); }
.pagehead .lead { margin-top: clamp(24px,3.5vw,34px); padding-bottom: clamp(40px,6vw,60px); max-width: 34em; }

/* ---------- ink section ---------- */
.dark { background: var(--ink); color: var(--on-ink); padding: clamp(48px,6.5vw,74px) 0 clamp(52px,7vw,78px); }
.dark a { color: var(--on-ink); }
.dark a:hover { color: var(--lilac); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(28px,5vw,64px); }
.pt { display: flex; flex-direction: column; gap: 10px; padding: 26px 0; border-top: 2px solid var(--ink-line); }
.pt:nth-child(-n+2) { border-top-color: var(--purple); }
.pt .n { font-size: 15px; color: var(--lilac); }
.pt h3 { margin: 0; font-size: clamp(21px,2.6vw,26px); line-height: 1.05; font-weight: 400; }
.pt p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--on-ink-dim); max-width: 26em; }

/* ---------- credentials strip ---------- */
.creds { background: var(--purple); color: #fff; padding: 32px 0; }
.creds .in { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.creds div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.creds .abbr { font-size: clamp(24px,3.4vw,30px); }
.creds span:last-child { font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

/* ---------- generic section ---------- */
.sec { padding: clamp(48px,6.5vw,78px) 0 clamp(52px,7vw,84px); }
.sec.top { padding-top: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 30px; flex-wrap: wrap; }

.prose { max-width: 34em; }
.prose p { margin: 0 0 20px; font-size: clamp(16.5px,1.9vw,18px); line-height: 1.6; color: var(--body-dim); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* ---------- numbered list rows ---------- */
.list { border-top: 3px solid var(--ink); }
.lrow {
  display: grid; grid-template-columns: 60px 1fr 1.15fr; gap: 20px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .18s ease, padding-left .18s ease;
}
.lrow:last-child { border-bottom: 3px solid var(--ink); }
.lrow:hover { background: var(--wash); padding-left: 16px; }
.lrow .n { font-size: 15px; color: var(--purple-dk); }
.lrow h3 { margin: 0; font-size: clamp(20px,2.6vw,28px); font-weight: 400; }
.lrow p { margin: 0; font-size: 16px; color: var(--body-dim); }

/* ---------- statement block ---------- */
.stmt {
  background: var(--ink); color: var(--on-ink);
  padding: clamp(36px,5vw,64px) clamp(24px,4vw,56px);
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(28px,4vw,56px); align-items: center;
}
.stmt p { margin: 0; font-size: clamp(24px,3.4vw,40px); line-height: 1.1; }
.stmt .note { font-size: 14.5px; color: var(--on-ink-dim); line-height: 1.5; }

/* ---------- contact ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px,4.5vw,56px); }
.split.rev { grid-template-columns: 1.15fr .85fr; }
.dl { display: grid; grid-template-columns: 96px 1fr; gap: 0 20px; }
.dl dt, .dl dd { margin: 0; padding: 15px 0; border-top: 1px solid var(--line); }
.dl dt { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dl dd { font-size: 16.5px; }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 2px solid var(--ink); }

form { border: 3px solid var(--ink); padding: clamp(22px,3vw,34px); display: flex; flex-direction: column; gap: 16px; }
.form-title { margin: 0; font-size: clamp(20px,2.6vw,24px); }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none;
  color: var(--ink); border: 2px solid var(--ink); background: #fff;
  padding: 12px 14px; border-radius: 0;
}
input:focus, textarea:focus { outline: 3px solid var(--purple); outline-offset: 1px; }
textarea { min-height: 116px; resize: vertical; }

/* form status region, written to by js/pleno-contact.js */
.formstatus { margin: 0; font-size: 15px; line-height: 1.5; padding: 12px 14px; border: 2px solid; }
.formstatus:empty { display: none; }
.formstatus.ok  { border-color: var(--ink); background: var(--wash); color: var(--ink); }
.formstatus.err { border-color: #B3261E; background: #FDEDEC; color: #7A1B14; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--on-ink-nav); padding: 36px 0; }
footer .in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .f-name { font-size: clamp(18px,2.6vw,24px); color: var(--on-ink); }
footer .f-tag { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }

/* Code.Sydney credit trailer */
footer .credit {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
  flex-wrap: wrap; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--ink-line); font-size: 12.5px; letter-spacing: .04em;
}
footer .credit a { color: var(--lilac); border-bottom: 1px solid rgba(192,132,252,.45); }
footer .credit a:hover { color: var(--on-ink); border-color: var(--on-ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hsplit, .g2, .creds .in, .stmt, .split, .f2 { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 44px 1fr; }
  .lrow p { grid-column: 2; }
  /* The nav stays put. It wraps to its own row under the wordmark
     rather than collapsing into a burger: four links fit, and a
     hidden nav strands mobile visitors now that About, Services and
     Contact are real pages instead of anchors on this one. */
  .hdr { align-items: flex-start; }
  .hdr .right { width: 100%; justify-content: space-between; gap: 16px; }
  .nav { flex-wrap: wrap; gap: 18px; font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(30px,9.4vw,60px); letter-spacing: -.045em; }
  .rot { font-size: .86em; }
  .rule { font-size: 11px; letter-spacing: .14em; }
  .hdr .right { flex-direction: column; align-items: stretch; }
  .hdr .right .sq { width: 100%; }
  footer .credit { justify-content: flex-start; }
}
