/* ==========================================================================
   jgann.com — site styles (landing page)
   Version: v3.6.0
   Created: 16 November 2026

   Deploy path: /sites/jgann-com/public/css/site.css
   Loaded last: fonts.css → tokens.css → /shared/css/base.css → this file.

   Breakpoints: 480 / 768 / 1024 / 1280 only. No !important: where base.css
   needs overriding, doubled-class specificity is used. No JavaScript.

   Contents
     1. Page basics and helpers
     2. Hero band (header, headline, gear cluster, the four "doors")
     3. About
     4. Venture details
     5. Resource Consultants products
     6. Contact
     7. Footer
     8. Reduced motion

   CHANGELOG
   v3.6.0  2026-11-16  Contact form inside the teal card: white panel,
                       fields with explicit text colours, honeypot, status
                       and thank-you states.
   v3.5.0  2026-11-16  Headshot and About heading centred in their column,
                       in line with the venture logos below.
   v3.4.0  2026-11-16  Headshot in the About section (.about-intro, .headshot).
   v3.3.0  2026-11-16  Gears rotate about their own drawn centre (local
                       origin) instead of their bounding box, so meshing
                       teeth never drift.
   v3.2.0  2026-11-16  Venture logos sit straight on the page (transparent,
                       no white plate or border) at fixed sizes instead of
                       percentage heights.
   v3.0.0  2026-11-16  Rebuilt for the picked design: "How can I help?"
                       layout, Workshop colours, turning gear cluster.
                       Replaces the v2.0.0 dark/neon styles.
   v2.0.0  2026-11-16  Initial creation.
   ========================================================================== */

/* ==========================================================================
   1. Page basics and helpers
   ========================================================================== */

body {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.skip-link.skip-link {
  color: var(--color-neutral-900);
  background-color: var(--color-accent-400);
}

.icon {
  flex: none;
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

/* Gears turn slowly. Each gear's duration is set inline in proportion to
   its tooth count, and each turns opposite to the gear it meshes with, so
   the teeth stay in mesh. Every gear is drawn centred on its own origin, so
   it rotates about that point (view-box, 0 0), not its bounding box, which
   is slightly off-centre for some tooth counts. */
.gear-cw,
.gear-ccw {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: gear-spin-cw linear infinite;
}

.gear-ccw {
  animation-name: gear-spin-ccw;
}

@keyframes gear-spin-cw {
  to { transform: rotate(360deg); }
}

@keyframes gear-spin-ccw {
  to { transform: rotate(-360deg); }
}

/* ==========================================================================
   2. Hero band
   ========================================================================== */

.band {
  color: var(--color-neutral-100);
  background-color: var(--color-neutral-900);
  padding-bottom: var(--space-section-loose);
}

.site-header {
  background-color: var(--color-neutral-900);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
}

.brand.brand,
.brand.brand:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--tap-target-min);
  color: var(--color-neutral-100);
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--weight-medium);
}

.header-email.header-email,
.header-email.header-email:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 48px;
  padding: 0 var(--space-md);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-100);
  text-decoration: none;
  border: 1.5px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.header-email.header-email:hover {
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-100);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-xl);
}

.hero .eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-400);
}

.hero-title.hero-title {
  margin: 0;
  max-width: 12em;
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: var(--weight-display);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-neutral-100);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent-400);
}

.hero-lede {
  margin: var(--space-md) 0 0;
  max-width: 32em;
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--color-neutral-300);
}

.hero-gears {
  display: flex;
  justify-content: center;
}

.hero-gears svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

@media (min-width: 768px) {
  .hero-gears svg {
    max-width: 420px;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .hero-gears svg {
    max-width: 480px;
  }
}

/* The four "doors": one per need, each jumps to its venture below. */
.doors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .doors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.door.door,
.door.door:visited {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
  min-height: 13.75rem;
  padding: var(--card-padding);
  color: var(--color-neutral-900);
  text-decoration: none;
  background-color: var(--color-neutral-0);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--duration-base) var(--ease-out);
}

.door.door:hover {
  transform: translateY(-4px);
}

.door-quote {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--weight-medium);
  line-height: 1.2;
}

.door-name {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  color: var(--color-brand-600);
}

/* ==========================================================================
   3. About
   ========================================================================== */

.about {
  padding-top: var(--space-section);
  padding-bottom: var(--space-lg);
}

.section-title.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--step-5);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.headshot {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-neutral-0);
  box-shadow: 0 0 0 3px var(--color-accent-500), var(--shadow-md);
}

@media (min-width: 768px) {
  .headshot {
    width: 10.5rem;
    height: 10.5rem;
  }
}

.about p {
  margin: 0;
  font-size: var(--step-1);
  line-height: var(--leading-loose);
}

/* ==========================================================================
   4. Venture details
   ========================================================================== */

.ventures {
  padding-bottom: var(--space-section);
}

.venture {
  align-items: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: var(--space-md);
}

/* Logos are transparent and sit straight on the cream page. Sizes are
   fixed (rem), never percentages, so every browser draws them the same. */
.plate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
}

.plate img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.venture-gg .plate img { height: 7.5rem; }
.venture-om .plate img { height: 10rem; }
.venture-cp .plate img { width: 22rem; }
.venture-rc .plate img { width: 26rem; }

.venture-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.venture-title.venture-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--step-4);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.venture-text {
  margin: 0;
  font-size: var(--step-1);
  line-height: var(--leading-normal);
}

.venture-who {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.venture-who strong {
  color: var(--color-text);
}

.venture-link.venture-link,
.venture-link.venture-link:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  align-self: flex-start;
  min-height: 48px;
  padding: 0 1.375rem;
  font-weight: var(--weight-bold);
  color: var(--color-neutral-0);
  text-decoration: none;
  background-color: var(--color-brand-600);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.venture-link.venture-link:hover {
  color: var(--color-neutral-0);
  background-color: var(--color-brand-800);
}

/* ==========================================================================
   5. Resource Consultants products
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 480px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
}

.product-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.75rem;
  padding: var(--space-xs);
  background-color: var(--color-surface-plate);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.product-plate img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 3.25rem;
  object-fit: contain;
}

.product-note {
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--color-text-muted);
}

.soon-badge {
  align-self: flex-start;
  padding: 0.2rem 0.625rem;
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-neutral-900);
  background-color: var(--color-accent-400);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   6. Contact
   ========================================================================== */

.contact {
  padding-bottom: var(--space-section-loose);
}

.contact-card {
  align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  color: var(--color-neutral-0);
  background-color: var(--color-brand-600);
  border-radius: var(--radius-xl);
}

.contact-card .section-title.section-title {
  color: var(--color-neutral-0);
}

.contact-card p {
  margin: var(--space-sm) 0 0;
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--color-neutral-0);
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.contact-action .contact-address {
  margin: 0;
  font-size: var(--step--1);
}

.email-btn.email-btn,
.email-btn.email-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 56px;
  padding: 0 1.875rem;
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--color-neutral-900);
  text-decoration: none;
  background-color: var(--color-accent-400);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.email-btn.email-btn:hover {
  color: var(--color-neutral-900);
  background-color: var(--color-accent-300);
}

/* Contact form: a white panel inside the teal card. Every text colour is
   set explicitly (typed text included) so nothing can turn white on white. */
.form-panel {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.field {
  display: grid;
  gap: var(--space-3xs);
}

.field + .field {
  margin-block-start: var(--space-sm);
}

.field label {
  font-size: var(--field-label-size);
  font-weight: var(--field-label-weight);
  color: var(--color-neutral-900);
}

.field .req {
  color: var(--color-error-600);
}

.field .opt {
  font-weight: var(--weight-regular);
  color: var(--color-neutral-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--field-min-height);
  padding: var(--field-padding-block) var(--field-padding-inline);
  font: inherit;
  font-size: var(--field-font-size);
  color: var(--field-text);
  -webkit-text-fill-color: var(--field-text);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  color-scheme: light;
}

.field textarea {
  resize: vertical;
  line-height: var(--leading-normal);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--field-placeholder);
  -webkit-text-fill-color: var(--field-placeholder);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--field-border-hover);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--field-border-focus);
  outline: var(--focus-ring-width) solid var(--color-accent-500);
  outline-offset: 1px;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--field-border-error);
}

/* Honeypot: off-screen for people, still in the page for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-block-start: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--step--1);
  color: var(--color-error-800);
  background-color: var(--color-error-100);
  border: 1px solid var(--color-error-600);
  border-radius: var(--radius-sm);
}

.form-status[hidden],
.form-done[hidden],
#contactForm[hidden] {
  display: none;
}

.form-panel .email-btn.email-btn {
  width: 100%;
  justify-content: center;
  margin-block-start: var(--space-md);
  border: 0;
  cursor: pointer;
}

.form-panel .email-btn.email-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.form-done h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-900);
}

.contact-card .form-done p {
  margin: var(--space-xs) 0 0;
  font-size: var(--step-0);
  color: var(--color-neutral-600);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
  font-size: var(--footer-font-size);
  color: var(--footer-text);
  background-color: var(--footer-bg);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--footer-padding-block);
}

.version-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-neutral-300);
  border: 1px solid var(--color-neutral-600);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   8. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gear-cw,
  .gear-ccw {
    animation: none;
  }

  .door.door:hover {
    transform: none;
  }
}
