/* ============================================
   PATENTED 89 — design tokens (uploaded palette)
   ============================================ */
:root {
  --black:      #000c0a;
  --black-2:    #001c19;
  --green-deep: #11332e;
  --sage:       #56726d;
  --brass:      #5b461d;
  --cream:      #fff4d7;

  --ink:        var(--black);
  --line-cream: rgba(0,12,10,0.22);
  --line-dark:  rgba(255,244,215,0.18);

  --font-cond: 'Industry', 'Oswald', 'Anton', 'Impact', sans-serif;
  --font-sans: 'Industry', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --notch: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================
   NOTCHED FRAME — outlined w/ diagonal line drawn
   Use .notch-frame on parent; pass --bd (color), --bw (border weight), --notch (size).
   The frame draws the full rectangle minus the bottom-right corner cut, then a diagonal across the cut.
   Implemented via a single SVG-like background using gradients + clip-paths is brittle —
   instead use border on a clipped element + a pseudo-element that draws the diagonal.
   ============================================ */
.notch-frame {
  --bd: #5b461d;
  --bw: 1px;
  position: relative;
  background: transparent;
  border: 1px solid var(--bd);
}
.notch-frame::before { content: none; }
.notch-frame::after { content: none; }

/* Filled notched (no border, just shape) */
.notch-fill {
  --notch: 18px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%,
    0 100%
  );
}

/* ============================================
   NAV
   ============================================ */
.nav {
  background: var(--black);
  padding: 22px 0;
  position: sticky; top: 0; z-index: 50;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav__brand b { font-weight: 700; }
.nav__cta {
  background: var(--brass);
  color: var(--cream);
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  --notch: 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: filter .2s;
}
.nav__cta:hover { filter: brightness(1.15); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--black);
  padding: 30px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  position: relative;
  z-index: 2;
  align-items: start;
}
.hero__badge {
  display: inline-block;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 32px;
  position: relative;
  --notch: 10px;
  --bd: var(--brass);
  --bw: 1px;
}
.hero__title {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 28px;
}
.hero__title b { font-weight: 700; }
.hero__copy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
  max-width: 460px;
  margin: 0 0 36px;
}

/* CTA — outlined, with notched corner + diagonal line */
.cta {
  display: inline-block;
  position: relative;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  --notch: 16px;
  --bd: var(--brass);
  --bw: 1px;
  background: transparent;
  cursor: pointer;
  border: 0;
  transition: color .2s;
}
.cta:hover { color: var(--cream); }
.cta:hover::before { background-color: rgba(91,70,29,0.25); }
.cta::before {
  transition: background-color .2s;
}

/* For elements using notch-frame, place the text in a wrapper so the ::before/::after sit behind text */
.notch-frame > * { position: relative; z-index: 2; }

.hero__rule {
  height: 1px; background: var(--brass);
  margin: 38px 0 16px;
  max-width: 460px;
}
.hero__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
}

/* hero logo (right side) */
.hero__logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.hero__logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  opacity: 1;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 50px;
}
.section-title b { font-weight: 700; }

/* ============================================
   WHAT WE DO  (cream)
   ============================================ */
.section-do {
  background: var(--cream);
  color: var(--black);
  padding: 80px 0 90px;
  position: relative;
}
.section-do .section-title { color: var(--black); }

.do__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.do__card {
  --bd: var(--black);
  --bw: 1px;
  --notch: 22px;
  padding: 28px 24px 36px;
  min-height: 230px;
  display: block;
  color: var(--black);
  cursor: pointer;
  transition: background-color .2s;
}
.do__card:hover { background-color: rgba(91,70,29,0.08); }
.do__card h3 {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--brass);
  line-height: 1.2;
  color: var(--black);
}
.do__card h3 b { font-weight: 700; }
.do__card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--black);
  margin: 0;
}

/* arrows */
.do__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  background: var(--black);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  border: 0;
}
.do__arrow--l { left: -16px; }
.do__arrow--r { right: -16px; }

/* ============================================
   WHY IT MATTERS  (sage)
   ============================================ */
.matters {
  background: var(--sage);
  color: var(--cream);
  padding: 80px 0 90px;
}
.matters .section-title { color: var(--cream); }

.matters__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.fed-action {
  --bd: var(--brass);
  --bw: 1px;
  --notch: 26px;
  background: var(--black);
  color: var(--cream);
  padding: 32px 28px 38px;
}
.fed-action h3 {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 16px;
}
.fed-action h3 b { font-weight: 700; }
.fed-action__rule { height: 1px; background: var(--brass); margin: 0 0 18px; }
.fed-action p { font-size: 12px; line-height: 1.65; margin: 0; color: rgba(255,244,215,0.85); }

.framework__head {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 22px;
}
.framework__head b { font-weight: 700; }
.framework__list { list-style: none; padding: 0; margin: 0; }
.framework__row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,244,215,0.18);
  align-items: baseline;
}
.framework__row:first-child { padding-top: 0; }
.framework__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.1em;
}
.framework__text { font-size: 12.5px; line-height: 1.5; color: rgba(255,244,215,0.92); }
.framework__disclaimer {
  margin-top: 20px;
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(255,244,215,0.55);
}

/* ============================================
   PATENT PORTFOLIO  (black)
   ============================================ */
.portfolio { background: var(--black); padding: 80px 0 90px; }
.portfolio .section-title { color: var(--cream); }

.patents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.patent {
  cursor: pointer;
  transition: filter .2s;
  background: var(--brass);
}
.patent:hover { filter: brightness(1.1); }
.patent {
  background: var(--brass);
  color: var(--cream);
  padding: 22px 22px 26px;
  display: grid;
  grid-template-columns: 92px 1fr 70px;
  gap: 18px;
  align-items: stretch;
  --notch: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  position: relative;
  min-height: 130px;
}
.patent__tag {
  background: var(--sage);
  color: var(--cream);
  padding: 14px 10px;
  --notch: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 500;
  display: flex; align-items: center; text-align: center; justify-content: center;
}
.patent__body { display: flex; flex-direction: column; justify-content: center; }
.patent__id {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  color: var(--cream);
  text-transform: uppercase;
}
.patent__sub { font-size: 11px; line-height: 1.4; margin: 0 0 6px; color: rgba(255,244,215,0.92); }
.patent__date { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: rgba(255,244,215,0.7); }
.patent__num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--cream);
  align-self: center;
  text-align: right;
  letter-spacing: -0.02em;
}
.portfolio__note {
  margin-top: 32px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255,244,215,0.55);
  line-height: 1.55;
}

/* HHC coverage callout — sits above .portfolio__note */
.portfolio__hhc {
  --bd: rgba(255,244,215,0.32);
  margin-top: 36px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 22px 28px 24px;
  background: rgba(255,244,215,0.03);
}
.portfolio__hhc-tag {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
  align-self: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,244,215,0.18);
  padding-right: 28px;
}
.portfolio__hhc-body h4 {
  margin: 0 0 8px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-transform: uppercase;
}
.portfolio__hhc-body p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,244,215,0.78);
  max-width: 60ch;
}
.portfolio__hhc-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,244,215,0.45);
  padding: 4px 8px;
  border: 1px dashed rgba(255,244,215,0.28);
}

/* Patent-marking permissions callout — inside .section-do (cream) */
.marking {
  --bd: var(--black);
  margin-top: 56px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  background: var(--cream);
  position: relative;
}
.marking__head {
  padding: 30px 36px 32px;
  border-right: 1px solid rgba(0,12,10,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.marking__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.marking__head h3 {
  margin: 0;
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--black);
}
.marking__head h3 b { font-weight: 700; }
.marking__body { padding: 30px 36px 32px; }
.marking__body p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--black);
}
.marking__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 12px 24px;
  border-top: 1px solid rgba(0,12,10,0.18);
  border-bottom: 1px solid rgba(0,12,10,0.18);
  padding: 14px 0;
}
.marking__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.25;
}
.marking__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 3px;
}
.marking__diff {
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: rgba(0,12,10,0.7) !important;
  margin: 0 !important;
  font-style: italic;
}

@media (max-width: 720px) {
  .portfolio__hhc { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .portfolio__hhc-tag { border-right: 0; border-bottom: 1px solid rgba(255,244,215,0.18); padding: 0 0 10px; text-align: left; }
  .marking { grid-template-columns: 1fr; }
  .marking__head { border-right: 0; border-bottom: 1px solid rgba(0,12,10,0.18); }
  .marking__list { grid-template-columns: 1fr; }
}

/* ============================================
   START THE CONVERSATION  (cream form)
   ============================================ */
.convo { background: var(--cream); color: var(--black); padding: 80px 0 90px; }
.convo .section-title { color: var(--black); }

.convo__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.convo__left h4 {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--black);
}
.convo__left h4 b { font-weight: 700; }
.convo__left p { font-size: 12.5px; line-height: 1.55; color: var(--black); margin: 0; }

.convo__access {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 18px;
}
.convo__access b { font-weight: 700; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form__field {
  --bd: var(--black);
  --bw: 1px;
  --notch: 14px;
  padding: 0;
}
.form__field--full { grid-column: 1 / -1; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  outline: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--black); opacity: 1; }
.form__field select { cursor: pointer; appearance: none; background: transparent; color: var(--black); }
.form__field textarea { resize: vertical; min-height: 56px; }

.form__submit {
  grid-column: 1 / -1;
  background: var(--sage);
  color: var(--cream);
  border: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  --notch: 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: filter .2s;
}
.form__submit:hover { filter: brightness(1.1); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--black); color: var(--cream); padding: 50px 0 40px; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer__brand {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.footer__brand b { font-weight: 700; }
.footer__tag { font-size: 11px; margin: 14px 0 0; color: rgba(255,244,215,0.85); }
.footer__contact {
  text-align: right;
  font-size: 11px;
  line-height: 1.7;
  color: var(--cream);
}
.footer__contact a:hover { color: var(--brass); }
.footer__rule { height: 1px; background: rgba(255,244,215,0.15); margin: 36px 0 18px; }
.footer__bottom {
  display: flex; justify-content: space-between;
  font-size: 10px;
  color: rgba(255,244,215,0.55);
  gap: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo-wrap { justify-content: center; margin-top: 30px; }
  .hero__logo { max-width: 320px; }
  .do__grid { grid-template-columns: 1fr; }
  .do__arrow { display: none; }
  .matters__grid { grid-template-columns: 1fr; gap: 36px; }
  .patents { grid-template-columns: 1fr; }
  .patent { grid-template-columns: 70px 1fr 50px; }
  .patent__num { font-size: 40px; }
  .convo__grid { grid-template-columns: 1fr; gap: 30px; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contact { text-align: left; }
  .footer__bottom { flex-direction: column; }
}
