/* ==========================================================
   T7 Enterprises LLC — site styles
   Monochrome, sharp-cornered, built around the logo's
   corner-bracket frame and wide-tracked wordmark.
   ========================================================== */

@property --corner {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --white: #ffffff;
  --paper: #f5f5f3;
  --text: #141414;
  --muted: #5f5f5f;
  --gray: #8c8c8c;          /* matches the "LLC" gray in the logo */
  --line: #e2e2df;
  --line-dark: rgba(255, 255, 255, 0.14);
  --error: #b3261e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 74px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: clamp(20px, 2vw, 23px); letter-spacing: -0.01em; }

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

.sr-only {
  position: absolute; 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; left: 16px; top: -48px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Corner-bracket frame (from the logo) ---------- */
.frame {
  --corner-color: var(--black);
  --corner-w: 2px;
  background-image:
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color));
  background-repeat: no-repeat;
  background-origin: border-box;
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-size:
    var(--corner) var(--corner-w), var(--corner-w) var(--corner),
    var(--corner) var(--corner-w), var(--corner-w) var(--corner),
    var(--corner) var(--corner-w), var(--corner-w) var(--corner),
    var(--corner) var(--corner-w), var(--corner-w) var(--corner);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1.5px solid var(--black);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--black); }
.brand-mark { width: 42px; height: 42px; }
.brand-word {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  padding-top: 2px;
}

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--black); }
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu .nav-cta {
  padding: 10px 20px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
}
.nav-menu a.nav-cta.active { color: var(--white); }
.nav-menu a.nav-cta:hover { background: var(--white); color: var(--black); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--black);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle .bar:nth-of-type(2) { top: 17px; }
.nav-toggle .bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 0;
  background: var(--white);
}
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 span { color: var(--gray); }
.hero .lede {
  max-width: 54ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-mark {
  justify-self: center;
  width: min(100%, 380px);
  color: var(--black);
}
.hero-mark svg { width: 100%; height: auto; aspect-ratio: 1; }

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1.5px solid var(--black);
}
.hero-pillars > div { padding: 26px 24px 40px 0; }
.hero-pillars > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-pillars strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-pillars span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--black); color: var(--white); overflow: hidden; }

.section-head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-sub { margin-top: 20px; color: var(--muted); font-size: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.prose p { color: var(--muted); }
.inline-link { color: var(--text); border-bottom: 1.5px solid currentColor; }
.inline-link:hover { color: var(--gray); }
.prose p + p { margin-top: 20px; }
.prose p:first-child { color: var(--text); font-size: 20px; line-height: 1.55; }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.founder-photo {
  --corner: 40px;
  --corner-w: 2px;
  margin: 0;
  padding: 16px;
}
.founder-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.05);
}
.founder-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}
.founder .prose { margin-top: 28px; }
.founder-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
}
.founder-tags li {
  padding: 7px 12px;
  border: 1px solid var(--black);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--black);
}
.step { padding: 40px 36px 8px 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
.step-num {
  --corner: 10px;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 15px;
  font-weight: 700;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  --corner: 0px;
  background-color: var(--white);
  border: 1px solid var(--line);
  padding: 34px 28px 38px;
  transition: --corner .35s ease, border-color .35s ease;
}
.card:hover { --corner: 30px; border-color: transparent; }
.cards.cards-single { grid-template-columns: minmax(0, 560px); }
.cards-single .card { padding: 44px 40px 48px; }
.cards-single .card h3 { font-size: clamp(26px, 3vw, 34px); }
.card-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--black);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card-link:hover { color: var(--gray); border-bottom-color: var(--gray); }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  background: var(--paper);
}
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.card-tag {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
}
.card h3 { margin-bottom: 12px; }
.card p:not(.card-tag) { color: var(--muted); font-size: 15px; }

/* ---------- Principles ---------- */
.watermark {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(62vw, 720px);
  height: auto;
  aspect-ratio: 188 / 166;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.section-dark .container { position: relative; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1.5px solid var(--white);
}
.principle {
  padding: 40px 48px 44px 0;
  border-bottom: 1px solid var(--line-dark);
}
.principle:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line-dark); }
.principle h3 { margin-bottom: 12px; }
.principle h3::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
}
.principle p { max-width: 44ch; color: rgba(255, 255, 255, 0.66); }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--black);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-list a { font-weight: 600; border-bottom: 1px solid transparent; align-self: start; }
.contact-list a:hover { border-bottom-color: currentColor; }

.contact-form {
  --corner: 26px;
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  background-color: var(--paper);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--black); }
.field.invalid input,
.field.invalid textarea { border-color: var(--error); }
.contact-form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-note { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-note.error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 40px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.lockup { display: inline-flex; flex-direction: column; align-items: center; }
.lockup-mark { width: 72px; height: 72px; }
.lockup-word {
  margin-top: 16px;
  padding-left: 0.42em;          /* balances trailing letter-spacing */
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.lockup-llc {
  margin-top: 4px;
  padding-left: 0.4em;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--gray);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.footer-links a:hover { color: var(--white); }
.copyright {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.gov-ids { float: right; letter-spacing: 0.04em; }
@media (max-width: 560px) { .gov-ids { float: none; display: block; margin-top: 6px; } }

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
/* Cards animate both reveal and frame corners */
.js .card.reveal { transition: opacity .8s ease, transform .8s ease, --corner .35s ease, border-color .35s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .js .card.reveal, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 12px; letter-spacing: 0.3em; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: 16px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-menu a::after { display: none; }
  .nav-menu .nav-cta { margin-top: 20px; padding: 16px 0; text-align: center; font-size: 13px; color: var(--white); }
  .site-header.menu-open { border-bottom-color: var(--line); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }

  .split { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 420px; }

  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step-num { margin-bottom: 18px; }

  .principles { grid-template-columns: 1fr; }
  .principle,
  .principle:nth-child(even) { padding: 32px 0; border-left: 0; }

  .hero-pillars { grid-template-columns: 1fr; margin-top: 56px; }
  .hero-pillars > div,
  .hero-pillars > div + div { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; border-left: 0; }
  .hero-pillars > div + div { border-top: 1px solid var(--line); }
  .hero-pillars strong { display: inline; font-size: 19px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .contact-form .btn { width: 100%; }
  .brand-word { font-size: 11px; letter-spacing: 0.26em; }
}
