/* REMii Group: site styles.
   Palette: deep evergreen and brass, taken from the gold art-deco logo.
   Type: Marcellus (display, echoes the logo lettering) + Instrument Sans (text).
   The one bold element is the octagon from the logo, framing Mark on the home page. */
:root {
  --vault: #0F1C19;
  --evergreen: #183B33;
  --evergreen-2: #21483F;
  --brass: #C9AB74;
  --brass-deep: #87672F;   /* brass for text on light backgrounds (AA) */
  --paper: #F7F7F4;
  --stone: #E9ECE7;
  --white: #FFFFFF;
  --ink: #16211E;
  --muted: #56625D;
  --line: #D3D9D3;
  --on-dark: #E8EBE6;
  --on-dark-muted: #A9B5AF;

  --display: "Marcellus", "Times New Roman", serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.h-sm { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); line-height: 1.55; }
.small { font-size: .95rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 48rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--vault); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--text); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn--brass { background: var(--brass); color: var(--vault); }
.btn--brass:hover { background: #DCC193; color: var(--vault); }
.btn--ghost { border-color: rgba(201,171,116,.6); color: var(--brass); }
.btn--ghost:hover { border-color: var(--brass); color: var(--white); }
.btn--sm { white-space: nowrap; min-height: 40px; padding: .55rem 1rem; font-size: .95rem; }
.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--vault); border-bottom: 1px solid rgba(201,171,116,.18); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--brass); }
.menu-toggle { display: none; font: 600 1rem var(--text); color: var(--brass); background: none; border: 1px solid rgba(201,171,116,.6); border-radius: 2px; min-height: 44px; padding: 0 1rem; cursor: pointer; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--vault); padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid rgba(201,171,116,.25); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 1rem; }
}

/* Home hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--evergreen-2) 0%, var(--vault) 60%); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--on-dark); max-width: 36ch; }
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); }
.portrait .frame { clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); aspect-ratio: 1; overflow: hidden; }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait .oct { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); pointer-events: none; overflow: visible; }
.portrait .oct path { fill: none; stroke: var(--brass); stroke-width: .24; stroke-dasharray: 1; stroke-dashoffset: 0; }
.portrait figcaption { margin-top: 2.25rem; text-align: center; color: var(--on-dark-muted); font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .portrait .oct path { animation: draw 1.8s var(--ease) .2s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { width: min(72%, 320px); }
}

/* Book credential under the hero buttons */
.credential { display: inline-flex; align-items: center; gap: 1rem; margin-top: .5rem;
  color: var(--on-dark); text-decoration: none; font-size: 1rem; line-height: 1.45; max-width: 30rem; }
.credential img { width: 56px; height: auto; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.credential strong { color: var(--brass); font-weight: 600; }
.credential:hover strong { text-decoration: underline; }

/* Inner page hero */
.page-hero { background: var(--vault); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid rgba(201,171,116,.25); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem); max-width: 20ch; }
.page-hero .lede { max-width: 52ch; color: var(--on-dark); }
.crumb { font-size: .95rem; color: var(--on-dark-muted); margin-bottom: 1.5rem; }
.crumb a { color: var(--brass); text-decoration: none; }

/* Sections */
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--deep { background: var(--evergreen); color: var(--on-dark); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head { position: sticky; top: 110px; }
@media (max-width: 860px) { .cols-2, .split { grid-template-columns: 1fr; } .split-head { position: static; } }

/* Solutions index: a ledger, not cards */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(12rem, 1fr) 1.6fr; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row h3 { margin: 0; transition: color .2s var(--ease); }
.row p { margin: 0; color: var(--muted); }
.row .more { grid-column: 2; font-weight: 600; color: var(--brass-deep); font-size: .98rem; }
.row:hover h3 { color: var(--brass-deep); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .row .more { grid-column: 1; } }

/* Principles */
.principles .lede { color: var(--on-dark); max-width: 50ch; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
.three > div { border-top: 1px solid var(--brass); padding-top: 1.5rem; }
.three p { color: var(--on-dark); }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* Quote */
.quote-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quote-img { margin: 0; outline: 1px solid var(--brass); outline-offset: 12px; }
.quote-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.pull { margin: 0; }
.pull p:first-child { font-family: var(--display); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.35; max-width: 34ch; }
.pull footer { color: var(--muted); margin-bottom: 1.5rem; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } .quote-img { max-width: 360px; } }

/* Lists */
.ticks, .steps { padding: 0; margin: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .85rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; background: var(--brass);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.15rem; font-family: var(--display); font-size: 1.6rem; color: var(--brass-deep); }
.also { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.also a { display: inline-block; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink); background: var(--white); }
.also a:hover { border-color: var(--brass-deep); color: var(--brass-deep); }

/* CTA band */
.band { background: var(--evergreen); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.band h2 { color: var(--white); margin-bottom: .4em; }
.band p { margin: 0; color: var(--on-dark); }
.band .btn-row { margin-top: 0; }

/* Contact */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.choice { border-top: 2px solid var(--brass); padding-top: 1.75rem; }
.choice .small { margin-top: 1rem; }
@media (max-width: 860px) { .choose { grid-template-columns: 1fr; } }
.form-embed { background: var(--white); border: 1px solid var(--line); min-height: 640px; }
.form-embed iframe { width: 100%; height: 760px; border: 0; display: block; }
.prose p { max-width: 62ch; }

/* Footer */
.site-footer { background: var(--vault); color: var(--on-dark-muted); padding-block: 4rem 2.5rem; font-size: .98rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(201,171,116,.2); }
.foot-grid img { width: 168px; }
.foot-tag { margin-top: 1rem; color: var(--on-dark-muted); max-width: 26ch; }
.site-footer h2 { font-family: var(--text); font-size: .98rem; font-weight: 600; color: var(--brass); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.disclosure { font-size: .85rem; line-height: 1.6; max-width: none; margin-top: 2rem; }
.copy { font-size: .85rem; margin: 1rem 0 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media print { .site-header, .band, .menu-toggle { display: none; } }
