/* ============================================================
   Hiltra Defense — shared stylesheet
   One proportion runs through everything: --pivot.
   It places the fulcrum in the logo, under every divider,
   and sets the label column of every content row.
   ============================================================ */

:root {
  --ground:      #0d1524;
  --light:       #f3f6f9;
  --grey:        #8b98a8;
  --label:       #a8b4c2;
  --rule:        rgba(243, 246, 249, 0.11);
  --amber:       #c07c1e;
  --amber-lift:  #d99b3f;

  /* the one proportion the whole identity is built on */
  --pivot: 20%;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--light);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- the lockup ----------
   The mark is a fixed object. It never mirrors, even in RTL. */

.lockup {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  font-size: clamp(2.05rem, 8.4vw, 4.5rem);
  direction: ltr;
  text-align: left;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
  /* trailing letter-space after the final A; pull the beam back to match */
  margin-right: -0.2em;
}

/* beam: two rails with a slit. the wedge sits behind and shows through the slit. */
.beam {
  position: relative;
  margin-top: 0.21em;
  height: 0.155em;
  isolation: isolate;
}

.beam::before,
.beam::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.055em;
  background: var(--light);
  z-index: 2;
  transform: scaleX(1);
  transform-origin: var(--pivot) center;
}

.beam::before { top: 0; }
.beam::after  { bottom: 0; }

.wedge {
  position: absolute;
  left: var(--pivot);
  top: 0.055em;
  width: 0;
  height: 0;
  border-left:  0.125em solid transparent;
  border-right: 0.125em solid transparent;
  border-bottom: 0.235em solid var(--amber);
  transform: translateX(-50%);
  z-index: 1;
}

/* trademark claim: sits outside the beam so it does not change its length */
.tm {
  position: absolute;
  left: 100%;
  top: 0.5em;
  margin-left: 0.22em;
  font-size: max(0.25em, 0.625rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--grey);
}

.tagline {
  margin: 1.9rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--grey);
  text-indent: 0.4em;
}

/* ---------- navigation ---------- */

.nav {
  /* longhand only: this element also carries .shell, whose horizontal
     padding a shorthand would silently reset */
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--grey);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover { color: var(--light); }

.nav a[aria-current="page"] { color: var(--light); }

.nav a:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 4px;
  border-radius: 2px;
}

/* the home link in the bar is the wordmark, set small */
.nav .home {
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--light);
  direction: ltr;
}

.nav .lang { margin-inline-start: auto; }

/* ---------- hero (home pages only) ---------- */

.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 4rem;
}

.lede {
  margin: 3.25rem 0 0;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 34ch;
}

/* ---------- interior page header ---------- */

.page-head {
  padding-top: 3.5rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.page-head .standfirst {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 3.2vw, 1.2rem);
  color: var(--grey);
  line-height: 1.6;
  max-width: 52ch;
}

/* ---------- sections ---------- */

section { padding: 0 0 4.5rem; }

/* every divider is the same lever as the logo */
.rule {
  position: relative;
  height: 1px;
  background: var(--rule);
  margin-bottom: 4.5rem;
}

.rule::after {
  content: "";
  position: absolute;
  inset-inline-start: var(--pivot);
  top: 1px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--amber);
  transform: translateX(-50%);
}

.rule.top { margin-top: 4rem; }

.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 38rem);
  gap: 0 3.5rem;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--label);
}

.body > p { margin: 0 0 1.35rem; max-width: 62ch; }
.body > p:last-child { margin-bottom: 0; }

/* a paragraph that follows a list needs air above it */
.body > ul + p,
.body > ol + p { margin-top: 1.5rem; }

.body strong { font-weight: 600; }

.principle { margin: 0 0 2.5rem; }
.principle:last-child { margin-bottom: 0; }

.principle h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.principle p { margin: 0; max-width: 62ch; }

/* status list: each marker is a small beam */
.facts { list-style: none; margin: 0; padding: 0; }

.facts li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-bottom: 0.85rem;
  max-width: 62ch;
}

.facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.82em;
  width: 0.7rem;
  height: 2px;
  background: var(--amber);
}

.facts li:last-child { margin-bottom: 0; }

/* a muted variant, for what is deliberately withheld */
.facts.muted li::before { background: var(--grey); opacity: 0.55; }
.facts.muted li { color: var(--grey); }

/* ---------- stages: a numbered sequence, because it is one ---------- */

.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }

.stage {
  position: relative;
  padding-inline-start: 2.75rem;
  margin-bottom: 2.25rem;
  counter-increment: stage;
  max-width: 62ch;
}

.stage:last-child { margin-bottom: 0; }

.stage::before {
  content: counter(stage);
  position: absolute;
  inset-inline-start: 0;
  top: 0.05em;
  width: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amber);
  text-align: center;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.15rem;
  line-height: 1.4;
}

.stage h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.stage .cost {
  display: block;
  font-size: 0.9375rem;
  color: var(--amber-lift);
  margin-bottom: 0.5rem;
}

.stage p { margin: 0; }

/* ---------- team ---------- */

.people { list-style: none; margin: 0; padding: 0; }

.person {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.person:first-child { padding-top: 0; }
.person:last-child  { border-bottom: 0; padding-bottom: 0; }

.person .name { font-weight: 600; display: block; }
.person .role { color: var(--label); font-size: 1rem; display: block; }

/* ---------- contact ---------- */

.mail {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 3px;
  transition: color 160ms ease, border-color 160ms ease;
  word-break: break-word;
  direction: ltr;
}

.mail:hover { color: var(--amber-lift); border-color: var(--amber-lift); }

.mail:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 5px;
  border-radius: 2px;
}

/* inline link inside body copy */
.body a:not(.mail):not(.cta) {
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  transition: color 160ms ease, border-color 160ms ease;
}

.body a:not(.mail):not(.cta):hover { color: var(--amber-lift); border-color: var(--amber-lift); }

.body a:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- form ---------- */

.form { max-width: 34rem; }

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 0.9375rem;
  color: var(--label);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(243, 246, 249, 0.04);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--light);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(243, 246, 249, 0.06);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 2px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--grey); opacity: 0.6; }

/* honeypot: never shown, never focusable by keyboard */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ground);
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 2px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.cta:hover { background: var(--amber-lift); border-color: var(--amber-lift); }

.cta:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 3px;
}

.form-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--grey);
  max-width: 56ch;
}

.form-note a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  transition: color 160ms ease;
}

.form-note a:hover { color: var(--light); }

.form-note a:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

.form-status {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  color: var(--amber-lift);
}

.form-status:empty { margin: 0; }

/* ---------- article ---------- */

.article { max-width: 40rem; }

.article .meta {
  font-size: 0.9375rem;
  color: var(--grey);
  margin: 0 0 1.5rem;
}

.article h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--light);
  line-height: 1.4;
}

.article p { margin: 0 0 1.35rem; }

.article p:last-child { margin-bottom: 0; }

.article blockquote {
  margin: 2rem 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 2px solid var(--amber);
  color: var(--light);
  font-size: 1.125rem;
}

.article blockquote p { margin: 0; }

.article ul { margin: 0 0 1.35rem; padding-inline-start: 1.25rem; }
.article li { margin-bottom: 0.5rem; }

/* ---------- index of writing ---------- */

.entries { list-style: none; margin: 0; padding: 0; }

.entry { border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: 0; }

.entry a {
  display: block;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
}

.entry a:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: -2px;
  border-radius: 2px;
}

.entry .date {
  display: block;
  font-size: 0.9375rem;
  color: var(--grey);
  margin-bottom: 0.35rem;
}

.entry h2 {
  margin: 0 0 0.4rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--light);
  line-height: 1.35;
  transition: color 160ms ease;
}

.entry a:hover h2 { color: var(--amber-lift); }

.entry p { margin: 0; color: var(--grey); max-width: 54ch; }

.entry.pending { opacity: 0.5; }
.entry.pending .pending-label { color: var(--grey); font-size: 0.9375rem; }

/* ---------- back link ---------- */

.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 160ms ease;
}

.back:hover { color: var(--light); }

.back:focus-visible {
  outline: 2px solid var(--amber-lift);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- footer ---------- */

footer {
  padding: 0 0 3.5rem;
  color: var(--grey);
  font-size: 0.9375rem;
}

footer p { margin: 0; }

/* ---------- motion: the point arrives, then the beam extends from it ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .wedge {
    opacity: 0;
    animation: seat 420ms ease-out 250ms forwards;
  }
  .hero .beam::before,
  .hero .beam::after {
    transform: scaleX(0);
    animation: extend 1100ms cubic-bezier(0.22, 0.61, 0.28, 1) 560ms forwards;
  }
  .hero .beam::after { animation-delay: 640ms; }
  .hero .tagline, .hero .lede { animation: settle 700ms ease-out 1250ms both; }
}

@keyframes seat    { from { opacity: 0; transform: translateX(-50%) translateY(0.1em); }
                     to   { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes extend  { to { transform: scaleX(1); } }
@keyframes settle  { from { opacity: 0; } to { opacity: 1; } }

.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;
}

/* ---------- hero lockup + tagline as one block ----------
   The tagline is part of the mark, so it stays English and keeps the
   mark's reading direction. Wrapping both in one block gives them a
   shared left edge in either script direction. */

.lockup-block { align-self: flex-start; }

[dir="rtl"] .lockup-block {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .lockup-block .tagline {
  direction: ltr;
  text-align: left;
}

/* ---------- right to left ----------
   Body text mirrors. The mark does not. */

[dir="rtl"] .rule::after { transform: translateX(50%); }

[dir="rtl"] .lockup,
[dir="rtl"] .nav .home,
[dir="rtl"] .mail { direction: ltr; }

[dir="rtl"] .article blockquote,
[dir="rtl"] .stage,
[dir="rtl"] .facts li { text-align: right; }

/* Hebrew reads better a touch larger and looser */
[lang="he"] body,
body[lang="he"] { font-size: 18px; line-height: 1.8; }

/* ---------- narrow ---------- */

@media (max-width: 44rem) {
  body { font-size: 16px; }
  .shell { padding: 0 1.5rem; }
  .row { grid-template-columns: 1fr; gap: 1rem; }
  h2 { margin-bottom: 0.25rem; }
  section { padding-bottom: 3.5rem; }
  .rule { margin-bottom: 3.5rem; }
  .rule.top { margin-top: 3rem; }
  .tagline { letter-spacing: 0.26em; text-indent: 0.26em; font-size: 0.8125rem; }
  .nav-inner { gap: 1rem 1.25rem; }
  .nav { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  /* at this width the bar wraps; pushing the toggle to the far edge
     would strand it on a line of its own */
  .nav .lang { margin-inline-start: 0; }
  .page-head { padding-top: 2.5rem; }
}
