/* ==========================================================================
   Leard Innovation & Development LLC — corporate website
   Static, dependency-free CSS. Mobile-first. Tokens derived from the logo.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Palette — navy and gold are the inks measured in the logo master. */
  --navy:        #051F3A;   /* midnight navy: headings, text, dark surfaces  */
  --navy-2:      #0C2A49;   /* raised navy: hover states on dark surfaces    */
  --gold:        #BF8F41;   /* corporate gold: rules, accents, text on navy  */
  --gold-ink:    #87652D;   /* gold for TEXT on white / ivory (AA-safe)      */
  --ivory:       #F5F4F0;   /* warm ivory sections                          */
  --white:       #FFFFFF;

  /* Text */
  --ink-2:       #415468;   /* secondary text on light surfaces (7:1)       */
  --on-navy:     #F5F4F0;   /* primary text on navy (15:1)                  */
  --on-navy-2:   #C2C7CB;   /* secondary text on navy (9:1)                 */

  /* Lines */
  --line:        #E3E1DB;   /* hairline on white / ivory                    */
  --line-strong: #CFCCC4;
  --on-navy-line: rgba(245, 244, 240, 0.18);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 6.75rem);
  --header-h: 4.5rem;
  --radius: 2px;
}

/* ----------------------------------------------------------------- fonts -- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal;
  font-display: swap; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal;
  font-display: swap; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic;
  font-display: swap; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal;
  font-display: swap; src: url("../fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal;
  font-display: swap; src: url("../fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal;
  font-display: swap; src: url("../fonts/manrope-600.woff2") format("woff2"); }

/* ------------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; color: inherit; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--navy); color: var(--white);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transform: translateY(-200%); transition: transform 0.15s ease;
}
.skip-link:focus { transform: none; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 2.75rem; }

/* Without JavaScript the nav simply flows under the logo as a wrapping row,
   so navigation is always available. */
.nav-toggle { display: none; }
.site-nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0.25rem 0 0.75rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0; font-weight: 500; font-size: 0.9rem; text-decoration: none; color: var(--navy); }
.site-nav a:hover { color: var(--gold-ink); }

/* With JavaScript (mobile): a disclosure panel controlled by the toggle. */
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.5rem 0.75rem; margin-right: -0.75rem;
  background: none; border: 0; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.js .site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(5, 31, 58, 0.08);
}
.js .site-nav[data-open] { display: block; }
.js .site-nav ul { display: block; padding: 0.5rem var(--gutter) 1rem; }
.js .site-nav li + li { border-top: 1px solid var(--line); }
.js .site-nav a { display: block; padding: 0.9rem 0; font-size: 1rem; }

.nav-toggle__icon { position: relative; width: 1.25rem; height: 1px; background: currentColor; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 860px) {
  :root { --header-h: 5.5rem; }
  .site-header__inner { flex-wrap: nowrap; }
  .brand img { height: 3.5rem; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: block; position: static; order: 0; flex-basis: auto;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav ul, .js .site-nav ul { display: flex; flex-wrap: nowrap; gap: 2.25rem; padding: 0; }
  .site-nav li + li, .js .site-nav li + li { border: 0; }
  .site-nav a, .js .site-nav a { position: relative; display: inline-block; padding: 0.5rem 0; font-size: 0.95rem; letter-spacing: 0.02em; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
}

/* ---------------------------------------------------------------- hero -- */
.on-dark { background: var(--navy); color: var(--on-navy); }
.on-dark .eyebrow { color: var(--gold); }

.hero { border-bottom: 1px solid var(--gold); padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: 2.5rem; }

/* The headline is three fixed lines, so its size must track the column it
   sits in, not the viewport: the longest line ("Developing solutions.") needs
   about 8.3px of width per 1px of font size, hence 11.3cq. The vw-based clamp
   is the fallback for browsers without container query units. */
.hero__copy { container-type: inline-size; }
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.25rem);
  line-height: 1.04;
  color: var(--white);
  margin-top: 1.5rem;
}
@supports (font-size: 1cqw) {
  .hero h1 { font-size: clamp(1.9rem, 11.3cqw, 4.75rem); }
}
.hero h1 span { display: block; }
.lede { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--on-navy-2); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.5rem;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #D2A65A; }
.btn--ghost { border-color: rgba(245, 244, 240, 0.55); color: var(--on-navy); }
.btn--ghost:hover { background: rgba(245, 244, 240, 0.08); border-color: var(--on-navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }

.hero__panel { border: 1px solid var(--on-navy-line); padding: 1.75rem 1.5rem; }
.hero__tagline { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.6rem; line-height: 1.25; color: var(--on-navy); }
.hero__index { margin-top: 1.75rem; }
.hero__index li { border-top: 1px solid var(--on-navy-line); }
.hero__index a { display: flex; align-items: baseline; gap: 1rem; padding: 0.95rem 0; text-decoration: none; color: var(--on-navy); font-weight: 500; font-size: 0.95rem; line-height: 1.35; transition: color 0.2s ease; }
.hero__index a:hover { color: var(--gold); }
.hero__numeral { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--gold); min-width: 2rem; }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: clamp(3rem, 5vw, 4.5rem); align-items: end; }
  .hero__panel { padding: 2.25rem 2rem; }
}

/* ------------------------------------------------------------- sections -- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }

.section__grid { display: grid; gap: 2.5rem; }
.section__head--center { max-width: 48rem; margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; display: block; width: 2.25rem; height: 1px; background: currentColor; margin-bottom: 0.9rem; }
.section__head--center .eyebrow::before { margin-inline: auto; }

h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.08; margin-top: 0.75rem; color: var(--navy); }
.section__intro { margin-top: 1.25rem; color: var(--ink-2); max-width: 44rem; }
.section__head--center .section__intro { margin-inline: auto; }

.prose p + p { margin-top: 1.1rem; }
.prose__lead { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.45; font-weight: 500; color: var(--navy); }
.prose { color: var(--ink-2); }

@media (min-width: 900px) {
  .section__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); }
}

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.section--white .card { background: var(--white); border-color: var(--line-strong); }
@media (min-width: 760px) { .card { padding: 2rem; } }

/* Divisions */
.division-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.division__numeral { display: block; font-family: var(--serif); font-weight: 600; font-size: 3.25rem; line-height: 1; color: var(--gold-ink); margin-bottom: 0.5rem; }
.division__numeral::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--gold); margin-top: 1.1rem; }
.division__title { font-size: 1.55rem; margin-top: 1.5rem; color: var(--navy); }
.division p { margin-top: 0.75rem; color: var(--ink-2); }
@media (min-width: 760px) { .division-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Portfolio */
.portfolio-group { margin-top: 3.5rem; }
.portfolio-group:first-of-type { margin-top: 3rem; }
.portfolio-group__title { display: flex; align-items: center; gap: 1rem; font-size: 1.45rem; color: var(--navy); }
.portfolio-group__title::before { content: ""; flex-shrink: 0; width: 2.25rem; height: 1px; background: var(--gold); }
.portfolio-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.work { display: flex; flex-direction: column; min-height: 100%; }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.work__title { font-size: 1.75rem; margin-top: 1.1rem; color: var(--navy); }
.work p { margin-top: 0.5rem; color: var(--ink-2); flex-grow: 1; }
.work__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration-color: var(--gold); transition: color 0.2s ease; }
.work__link:hover { color: var(--gold-ink); }
.work__arrow { color: var(--gold-ink); font-size: 1.05rem; line-height: 1; }

.portfolio-more { margin-top: 3rem; }
.portfolio-more a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1rem; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 0.2em; transition: color 0.2s ease; }
.portfolio-more a:hover { color: var(--gold-ink); }
.portfolio-more__arrow { color: var(--gold-ink); transition: transform 0.2s ease; }
.portfolio-more a:hover .portfolio-more__arrow { transform: translateX(3px); }

.status {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem; border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); line-height: 1.5;
}
.status--dev { color: var(--gold-ink); }
.on-dark .status--dev { color: var(--gold); }

/* Approach */
.approach { display: grid; gap: 2rem; margin-top: 3rem; }
.approach__stage { border-top: 2px solid var(--gold); padding-top: 1.5rem; }
.approach__numeral { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--gold-ink); }
.approach__title { font-size: 1.6rem; margin-top: 1rem; color: var(--navy); }
.approach__stage p { margin-top: 0.6rem; color: var(--ink-2); }
@media (min-width: 760px) { .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 1100px) { .approach { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.philosophy { margin: 4rem 0 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--gold); }
.philosophy p { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.3; color: var(--navy); }

/* Leadership */
.founder__mark { margin: 2.25rem 0 0; }
.founder__mark img { width: 9.5rem; height: auto; border: 1px solid var(--line); }
.founder__name { font-size: 2.1rem; color: var(--navy); }
.founder__role { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.section__body .prose { margin-top: 1.5rem; }
@media (min-width: 900px) { .founder__mark img { width: 11.5rem; } }

/* Contact */
.inquiry-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.inquiry__title { font-size: 1.4rem; color: var(--navy); }
.inquiry p { margin-top: 0.6rem; color: var(--ink-2); }
@media (min-width: 760px) { .inquiry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.contact-panel { margin-top: 1.5rem; padding: 2rem 1.5rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.contact-panel__title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--white); }
.contact-panel__body { color: var(--on-navy-2); max-width: 40em; }
.contact-panel__pending { font-size: 0.85rem; color: var(--on-navy-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.contact-panel code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8em; color: var(--on-navy); }
.contact-panel .btn { justify-self: start; }
@media (min-width: 900px) {
  .contact-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 2rem; padding: 2.5rem; }
}

/* --------------------------------------------------------------- footer -- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--white); }
.footer__meta { margin-top: 0.5rem; color: var(--on-navy-2); font-size: 0.95rem; }
.footer__tagline { margin-top: 1.25rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--gold); }
.footer__heading { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.footer__nav ul, .footer__legal ul { display: grid; gap: 0.5rem; }
.footer__nav a, .footer__legal a { color: var(--on-navy); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--on-navy-line); padding-block: 1.5rem 2rem; font-size: 0.85rem; color: var(--on-navy-2); }
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 3rem; }
}

/* -------------------------------------------------------------- catalog -- */
/* Full portfolio page (/portfolio/). Every product is in the HTML, grouped by
   category; the filter buttons are hidden until JavaScript adds behaviour. */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.filters[hidden] { display: none; }
.filter-btn {
  min-height: 44px; padding: 0.55rem 1.05rem;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-status { min-height: 1.6em; margin-top: 1rem; font-size: 0.92rem; color: var(--ink-2); }

.catalog { display: grid; gap: 3.25rem; margin-top: 2rem; }
.catalog__group[hidden] { display: none; }
.catalog__title { display: flex; align-items: center; gap: 1rem; font-size: 1.55rem; color: var(--navy); }
.catalog__title::before { content: ""; flex-shrink: 0; width: 2.25rem; height: 1px; background: var(--gold); }
.catalog__grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product .work__title { font-size: 1.55rem; }
.product__category { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.catalog-note { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); max-width: 46rem; }

/* -------------------------------------------------------------- privacy -- */
.page { padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y); }
.page__head { max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); margin-top: 0.75rem; color: var(--navy); }
.page__meta { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }
.page__intro { margin-top: 1.25rem; color: var(--ink-2); max-width: 44rem; }
.page__body { max-width: 46rem; margin-top: 2.5rem; color: var(--ink-2); }
.page__body h2 { font-size: 1.6rem; margin-top: 2.25rem; color: var(--navy); }
.page__body h2 + p, .page__body h2 + ul { margin-top: 0.6rem; }
.page__body p + p { margin-top: 1rem; }
.page__body ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.page__body li { padding-left: 1.25rem; position: relative; }
.page__body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--gold-ink); }
.notice { border: 1px solid var(--gold); background: var(--ivory); padding: 1.25rem 1.5rem; margin-top: 2rem; border-radius: var(--radius); font-size: 0.95rem; color: var(--navy); }
.notice strong { font-weight: 600; }

/* ---------------------------------------------------------- preferences -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-nav, .nav-toggle, .hero__actions, .contact-panel, .site-footer { display: none !important; }
  .hero, .section, .on-dark { background: #fff !important; color: #000 !important; }
  .hero h1, h2, h3 { color: #000 !important; }
}
