@font-face {
  font-family: 'Rajdhani Medium';
  src: url('fonts/rajdhani-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --rust: #A83C09;
  --rust-deep: #8A3107;
  --gray: #A6A6A6;

  /* Page. Rust is an accent here, not a background — it fails as a reading
     surface at body-text sizes. It owns the hero and the accents only. */
  --paper: #FFFFFF;
  --bone: #F5F2EF;
  --ink: #1C1917;
  --slate: #57534E;
  --line: #E3DDD7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
}

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

.sprite {
  display: none;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections all share one left edge, so form width is capped on the form
   itself rather than by narrowing (and re-centering) its wrapper. */

/* --- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--rust);
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.logo {
  white-space: nowrap;
  font-family: 'Rajdhani Medium', 'Rajdhani', Arial, sans-serif;
  font-weight: 500;
  line-height: 1;
}

.logo-primary { color: #FFFFFF; }
.logo-secondary { color: var(--gray); }

.tagline {
  margin-top: 1.5em;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  z-index: 2;
  color: #FFFFFF;
  opacity: 0.6;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.scroll-cue:hover,
.scroll-cue:focus-visible { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
  }
}

/* --- Bands ----------------------------------------------------------- */

/* Sections are separated by background colour rather than rules. */
.band {
  padding: 6.5rem 0;
}

.band--paper { background: var(--paper); }
.band--bone  { background: var(--bone); }

.eyebrow {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.15;
  font-weight: bold;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 20ch;
}

h2 em {
  font-style: normal;
  color: var(--rust);
}

.section-sub {
  margin-top: 1.1rem;
  font-size: 19px;
  max-width: 60ch;
}

/* --- Cards ----------------------------------------------------------- */

.cards {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem;
}

.icon {
  width: 28px;
  height: 28px;
  display: block;
  margin-bottom: 1.1rem;
  color: var(--rust);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.card p {
  font-size: 16px;
}

/* --- Values -----------------------------------------------------------
   Same card treatment as .card, but full width and stacked: icon sits
   beside its heading, detail runs underneath at full measure. */

.values {
  margin-top: 3rem;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.values li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
}

.value-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.values .icon {
  margin-bottom: 0;
  flex: none;
}

.values h3 {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
}

.values p {
  font-size: 16px;
}

/* --- Industries ------------------------------------------------------ */

/* Photo tiles. Same grid rhythm as .cards, tighter gap — the images carry
   the weight, so they sit closer together. */
.industries {
  margin-top: 3rem;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.industries li {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line); /* holds the tile's shape before the image lands */
}

.industries img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label sits on a gradient scrim rather than the raw photo — these images
   have bright patches (skylights, sunsets) that white text disappears into. */
.industries span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.1rem 0.9rem;
  background: linear-gradient(rgba(28, 25, 23, 0), rgba(28, 25, 23, 0.88));
  color: #FFFFFF;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.3;
}

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

.email {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.email:hover,
.email:focus-visible { color: var(--rust-deep); }

.contact-form {
  margin-top: 2.75rem;
  max-width: 560px;
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.optional {
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--rust);
}

.contact-form button {
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  background: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 4px;
  padding: 0.85rem 2.25rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
}

.contact-form button:disabled {
  opacity: 0.55;
  cursor: default;
}

.contact-form button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Honeypot. Positioned out of sight rather than display:none — some bots skip
   fields they can tell are hidden, and this one only works if they fill it.
   aria-hidden and tabindex="-1" in the markup keep it away from real users. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:not(:empty) {
  margin-top: 1.25rem;
  font-size: 16px;
  color: var(--ink);
}

/* --- Footer ---------------------------------------------------------- */

/* Rust, bookending the hero. White needs a higher alpha here than it did on
   ink to clear AA against the lighter background — 0.88 lands at 5.3:1. */
footer {
  background: var(--rust);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  padding-top: 4rem;
}

/* Email sits on the tagline's line, hard right — flex-end aligns it to the
   bottom of the brand block rather than the top of the logo. */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: 'Rajdhani Medium', 'Rajdhani', Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  white-space: nowrap;
}

footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
}

footer a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Mobile ---------------------------------------------------------- */

@media (max-width: 700px) {
  /* No room for two columns — stack, and let the tagline wrap again. */
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-brand p { white-space: normal; }

  /* Rows have nowhere to go this narrow — stack them. */
  .values li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: normal;
  }

  .tagline { width: 90vw; }
  .band { padding: 4.5rem 0; }
  .cards { margin-top: 2.5rem; }
  .values { margin-top: 2.5rem; }
}
