/* ==========================================================================
   Hummingbird Tech Group — corporate site
   Single stylesheet. One owner per token.
   Palette and typefaces per Brand Standards v2.1 (locked).
   ========================================================================== */

:root {
  /* Brand Standards v2.1 — locked */
  --paper:        #000000;   /* Pure Black */
  --ink:          #f4efe6;   /* Ink */
  --green:        #7FE89C;   /* Hummingbird Green */
  --green-deep:   #3D9970;   /* Green Deep */

  /* Derived neutrals — for hierarchy only, never as accent */
  --ink-dim:      #a9b3ba;
  --ink-faint:    #6d7a82;
  --rule:         #22282c;

  --font-display: 'Archivo Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Type scale */
  --t-hero:  clamp(2.6rem, 6.4vw, 5.25rem);
  --t-lead:  clamp(1.75rem, 3.4vw, 2.75rem);
  --t-title: clamp(1.35rem, 2.2vw, 1.75rem);
  --t-body-l: 1.1875rem;
  --t-body:   1rem;
  --t-small:  0.875rem;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --frame: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-size: var(--t-small);
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark { height: 46px; width: auto; display: block; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.menu {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
}

.menu a {
  font-size: var(--t-small);
  color: var(--ink-dim);
  text-decoration: none;
  padding-block: 0.25rem;
}
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--green-deep);
}
.menu sup { font-size: 0.6em; vertical-align: super; }

/* Marks a link that leaves the house mark for a separate brand and domain.
   Matches the rule on the home page. Structural, not decorative. */
.menu .offsite {
  position: relative;
  padding-left: 1.25rem;
  margin-left: 0.25rem;
}
.menu .offsite::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: var(--rule);
}

/* ==========================================================================
   The mark — one orchestrated moment on load, replayed on hover
   ========================================================================== */

.mark-wing { transform-box: view-box; transform-origin: 300px 200px; }

.brand-mark .mark-wing { animation: wingbeat 0.34s ease-in-out 5; }
.brand:hover .mark-wing { animation: wingbeat 0.34s ease-in-out infinite; }

@keyframes wingbeat {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(-11deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark .mark-wing,
  .brand:hover .mark-wing { animation: none; }
}

/* ==========================================================================
   Shared blocks
   ========================================================================== */

main { flex: 1; }

.band { border-top: 1px solid var(--rule); }
.band .wrap { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

.section-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  letter-spacing: -0.015em;
  margin: 0 0 2.25rem;
}

p { margin: 0 0 1.1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.dim { color: var(--ink-dim); }

/* Green carries one meaning on this site: something that is running now. */
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  color: var(--green);
}
.live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex: none;
}

.pending {
  font-size: var(--t-small);
  color: var(--ink-faint);
}

.plain-link {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--green-deep);
  padding-bottom: 1px;
}
.plain-link:hover { box-shadow: inset 0 -2px 0 var(--green); }

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero .wrap {
  padding-block: clamp(3.5rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}

.hero-sub {
  font-size: var(--t-body-l);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 48ch;
  margin: 0;
}

@media (min-width: 900px) {
  .hero-sub { margin-left: clamp(0px, 12vw, 11rem); }
}

/* ==========================================================================
   Home — what we build
   ========================================================================== */

.builds {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}
@media (min-width: 820px) {
  .builds { grid-template-columns: 1fr 1fr; }
}

.build h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}
.build h3 sup { font-size: 0.5em; vertical-align: super; font-weight: 500; }

.build-status { margin: 0 0 1rem; }

.build p { color: var(--ink-dim); max-width: 46ch; }

/* ==========================================================================
   Home — where we're up to
   ========================================================================== */

.record {
  display: grid;
  gap: 0;
  max-width: 80ch;
}

.record > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.record > div:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 720px) {
  .record > div { grid-template-columns: 12rem 1fr; }
}

.record dt {
  font-size: var(--t-small);
  color: var(--ink-faint);
}
.record dd { margin: 0; color: var(--ink-dim); }

/* ==========================================================================
   Manifesto
   ========================================================================== */

.doc .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }

.doc h1 {
  font-size: var(--t-lead);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 0 2.25rem;
}

.doc p { font-size: var(--t-body-l); color: var(--ink-dim); line-height: 1.7; }

.doc .stand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 34ch;
  margin-block: 2.25rem;
}

.doc .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  max-width: none;
}

.gloss { display: grid; gap: 1.5rem; max-width: 60ch; }
.gloss p { margin: 0; font-size: var(--t-body); }
.gloss b { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Contact
   ========================================================================== */

.who { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 820px) {
  .who { grid-template-columns: 260px 1fr; }
}

.portrait {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.who-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 1rem 0 0.15rem;
}
.who-role { color: var(--ink-faint); font-size: var(--t-small); margin: 0; }

.reach {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-small);
}
.reach a { color: var(--ink-dim); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); }
.reach a:hover { color: var(--ink); box-shadow: inset 0 -1px 0 var(--green-deep); }
.reach span { color: var(--ink-faint); }

.said {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.said-by { font-size: var(--t-small); color: var(--ink-faint); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot { border-top: 1px solid var(--rule); }
.foot .wrap {
  padding-block: 1.5rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
}
.foot p { font-size: var(--t-small); color: var(--ink-faint); margin: 0; max-width: none; }
.foot a { color: var(--ink-faint); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); }
.foot a:hover { color: var(--ink-dim); }

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 700px) {
  .masthead .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
  }
  .menu { flex-wrap: wrap; gap: 1rem 1.25rem; }
  .brand-mark { height: 38px; }
  .brand-name { font-size: 1.3rem; }
}
