/* Barrels Matter -- shared responsive and accessibility rules.
   Loaded after each page's inline styles so these win at equal specificity.

   Header logo: the source PNG is 816x697 with the artwork occupying a 550x180
   area in the middle, so the old `height:156px` produced a 192px tall fixed
   bar whose visible mark was only ~40px and whose invisible padding sat on top
   of the page headline. logo-mark.png is the artwork cropped to its edges. */

.nav-logo img { height: 40px; }
.footer-logo img { height: 30px; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.info-value a {
  display: inline-block;
  padding: 10px 0;
}

/* Keep page content clear of the fixed header at every width, including when
   an in-page anchor (#services, #contact, #reach) jumps into view. */
.page-hero { padding-top: 132px; }
html { scroll-padding-top: 92px; }

/* The overlay was rgba(12,12,12,.97), so the hero headline ghosted through it
   and the hamburger's three lines sat underneath the close X. */
.mobile-menu { background: #0c0c0c; }
body:has(.mobile-menu.open) .nav-hamburger { visibility: hidden; }

/* Touch devices: the custom cursor is meaningless, and body{cursor:none} was
   hiding the pointer on tablets above the 768px breakpoint. */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* Tap targets: 44x44 CSS px minimum. */
.nav-hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -11px;
}
.mobile-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 16px;
  right: 16px;
}
.btn-primary, .btn-ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-links a, .footer-social a {
  display: inline-block;
  padding: 12px 0;
}
body #i-skip {
  min-height: 44px;
  padding: 12px 0;
}

@media (max-width: 768px) {
  .nav-logo img { height: 32px; }
  .footer-logo img { height: 26px; }

  .page-hero { padding-top: 96px; }
  #hero { padding-top: 96px; }
  .hero-actions { flex-wrap: wrap; gap: 16px; }

  /* 16px stops iOS Safari zooming the whole page when a field takes focus. */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }

  /* Body-size copy that was set at 10-11px, unreadable on a phone. */
  .service-bullets li { font-size: 13px; line-height: 1.6; }
  .engagement-detail { font-size: 13px; line-height: 1.65; }
  .footer-copy, .footer-social a { font-size: 12px; }
  .page-hero-tag, .section-label { font-size: 11px; }
  .info-sub, .response-text, .form-note { font-size: 13px; }

  /* Form labels and button copy were 10px. 11px with the same tracking keeps
     the design language and clears the readability floor. */
  .form-group label { font-size: 11px; }
  .btn-primary, .btn-ghost { font-size: 11px; }
}

/* ── CONTACT FORM ──
   Sits inside #contact, which is centre-aligned; the form itself reads left.
   Same palette and type as the rest of the page, no third-party styling. */
.contact-form {
  max-width: 560px;
  margin: 0 auto 34px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 240, 234, .45);
  margin-bottom: 8px;
}
.form-group label .optional {
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(245, 240, 234, .25);
  margin-left: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
  color: var(--warm-white);
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s, background .2s;
  cursor: auto;
}
.form-group textarea { min-height: 124px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(62, 201, 180, .05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 240, 234, .22); }
/* Honeypot: removed from layout and from the accessibility tree. Bots that
   read raw HTML still see the field and fill it; people never do. */
.form-honeypot { display: none; }
/* Measured by accessibility audits even while hidden; keep it at 16px. */
.form-honeypot input { font-size: 16px; }
.form-status {
  min-height: 20px;
  margin-top: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--teal);
}
.form-status.error { color: #ff9b9b; }
.form-note {
  margin-top: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 234, .3);
}
.contact-form .btn-primary { border: 0; cursor: pointer; }
.contact-form .btn-primary[disabled] { opacity: .55; cursor: default; }

/* Altcha proof-of-work widget, restyled to the site palette. */
.contact-form altcha-widget {
  display: block;
  margin: 2px 0 20px;
  --altcha-max-width: 100%;
  --altcha-border-radius: 0;
  --altcha-border-width: 1px;
  --altcha-color-base: #1f1f1f;
  --altcha-color-text: #f5f0ea;
  --altcha-color-border: rgba(255, 255, 255, .12);
  --altcha-color-border-focus: var(--teal);
  --altcha-color-active: var(--teal);
  --altcha-color-error-text: #ff9b9b;
  --altcha-color-footer-bg: transparent;
}
/* The widget's checkbox is visually replaced by its own box but still takes
   focus; 16px stops iOS zooming the page when it does. */
.contact-form altcha-widget input[type="checkbox"] { font-size: 16px; }
/* Both attribution links were under the 24x24 tap floor. */
.contact-form altcha-widget .altcha-logo { padding: 3px; }
.contact-form altcha-widget .altcha-footer a { display: inline-block; padding: 5px 2px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
