/* ==========================================================================
   Iron Swarm - design system
   Swiss / International Typographic Style: one grid, one grotesque, one accent.
   ========================================================================== */

:root {
  --frame: #0b0b0b;             /* dark surround behind the page sheet */
  --canvas: #d7d7d4;            /* warm light grey page */
  --ink: #0b0b0b;               /* matches the logo mark */
  --ink-2: #4b4b48;             /* secondary text */
  --ink-3: #7a7a76;             /* tertiary text */
  --rule: rgba(11, 11, 11, 0.16);
  --rule-strong: rgba(11, 11, 11, 0.7);

  --amber: #a25f07;             /* Iron Swarm accent, same as the logo */
  --on-amber: #f6efe3;
  --on-amber-2: rgba(246, 239, 227, 0.78);
  --rule-amber: rgba(246, 239, 227, 0.28);

  --radius: 18px;
  --gutter: clamp(16px, 3.2vw, 56px);
  --col-gap: clamp(16px, 2.4vw, 40px);

  --font-display: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  background: var(--frame);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1rem/1.5 var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

::selection { background: var(--amber); color: var(--on-amber); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.85rem;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* The light "sheet" sitting on the dark frame, like a printed page. */
.sheet {
  margin: 10px;
  min-height: calc(100vh - 20px);
  background: var(--canvas);
  border-radius: var(--radius);
  overflow: clip;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.logo { height: 22px; width: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.meta {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.meta strong { color: var(--ink); font-weight: 600; }
.meta a { text-decoration: none; }
.meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }

.accent { color: var(--amber); font-weight: 600; }
.dot { color: var(--amber); }

.link {
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-3);
}
.link:hover { text-decoration-color: currentColor; }
.link span { color: var(--amber); }               /* the small arrow glyph */

/* Round call-to-action disc. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.cta__disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--on-amber);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.cta:hover .cta__disc { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero: a 12-column editorial grid.
     row 1  nav (cols 8-9), contact (far right)
     row 2  headline (cols 1-7), stat (cols 9-12)
     row 3  tag + sub (left), meta (cols 9-11), disc (col 12)
     the faded mark sits behind rows 1-3 in the centre columns
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - 20px);
  min-height: calc(100svh - 20px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: var(--col-gap);
  padding: var(--gutter);
}

/* Masthead in the top-left corner. */
.hero__title {
  grid-column: 1 / 5;
  grid-row: 1;
  align-self: start;
  z-index: 3;
  font: 600 1.25rem/1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* Large faded logo in the slot the reference gives to its photograph. */
.hero__mark {
  grid-column: 4 / 10;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: center;
  z-index: 1;
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}
.hero__mark img { width: min(48vw, 700px); height: auto; }

.headline {
  grid-column: 1 / 8;
  grid-row: 2;
  align-self: center;
  z-index: 2;
  margin: 0;
  font: 600 clamp(2.3rem, min(5vw, 9.5vh), 5.6rem)/0.95 var(--font-display);
  letter-spacing: -0.04em;
}
.headline > span {
  display: block;
  white-space: nowrap;
}

/* Big light-weight figure on the right, like the reference's "8m - 20m". */
.hero__stat {
  grid-column: 9 / -1;
  grid-row: 2;
  align-self: center;
  z-index: 2;
  margin-top: 14vh;
  font: 400 clamp(1.7rem, 3.2vw, 3.6rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
}

.hero__left {
  grid-column: 1 / 5;
  grid-row: 3;
  align-self: end;
  z-index: 3;
}
.hero__tag {
  font: 600 1.4rem/1 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.hero__sub {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 26ch;
}

.hero__meta {
  grid-column: 9 / 12;
  grid-row: 3;
  align-self: end;
  z-index: 3;
}

.hero .cta {
  grid-column: 12;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}

.section h2 {
  font: 700 clamp(2rem, 4.6vw, 4.8rem)/0.95 var(--font-display);
  letter-spacing: -0.035em;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 12em;
}

.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.4;
  max-width: 34em;
  margin-bottom: 1em;
}

/* 01 Hive I: text left, specification table right. */
.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: 40px;
  align-items: start;
}
.cols__text { grid-column: 1 / span 6; }
.cols__text p:not(.lead) { color: var(--ink-2); max-width: 36em; }
.cols .specs { grid-column: 8 / -1; }

.specs {
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}
.specs div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; }

/* 02 Advantages */
.adv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--col-gap);
  border-top: 1px solid var(--rule-strong);
}
.adv article {
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.adv h3 {
  font: 600 clamp(1.3rem, 1.9vw, 1.8rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  margin-bottom: 0.6em;
  max-width: 14em;
}
.adv p { color: var(--ink-2); max-width: 30em; }

/* 03 Process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--col-gap);
  row-gap: 40px;
}
.steps li {
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
}
.step__num {
  display: block;
  font: 700 clamp(2rem, 3vw, 3rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--amber);
  margin-bottom: 40px;
}
.steps h3 {
  font: 600 1.15rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}
.steps p { color: var(--ink-2); font-size: 0.95rem; }

/* 04 Founders */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--col-gap);
  row-gap: 40px;
  border-top: 1px solid var(--rule-strong);
}
.people article { padding-top: 24px; }
.people h3 {
  font: 700 clamp(1.6rem, 2.4vw, 2.4rem)/1 var(--font-display);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.people p { color: var(--ink-2); max-width: 30em; margin-bottom: 18px; }

/* 05 Contact */
.section--amber {
  background: var(--amber);
  color: var(--on-amber);
}
.section--amber .lead { color: var(--on-amber-2); }
.section--amber .dot { color: inherit; }           /* amber on amber would vanish */

.email {
  display: inline-block;
  margin-top: 0.2em;
  font: 600 clamp(1.4rem, 3.8vw, 3.8rem)/1.05 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rule-amber);
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-color: currentColor; }

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 28px var(--gutter) 32px;
}
.footer .meta { font-size: 0.75rem; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
}
.footer__nav a { color: var(--ink-2); text-decoration: none; }
.footer__nav a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.headline > span {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.hero__stat, .hero__left, .hero__meta, .hero .cta {
  animation: fade 0.8s ease both;
  animation-delay: 600ms;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .headline > span, .hero__stat, .hero__left, .hero__meta, .hero .cta { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .cta__disc { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cols__text { grid-column: 1 / -1; }
  .cols .specs { grid-column: 1 / -1; }
  .hero__mark img { width: min(56vw, 700px); }
}

@media (max-width: 760px) {
  .sheet { margin: 6px; min-height: calc(100vh - 12px); }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 32px;
  }
  .hero > *, .hero .cta { align-self: flex-start; }   /* grid alignment must not bleed into the stack */
  .hero__mark { display: none; }

  .headline {
    margin-top: 8px;
    font-size: clamp(2rem, 9.4vw, 3.4rem);
    letter-spacing: -0.04em;
  }
  .hero__stat { margin-top: 4px; font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero__left { margin-top: 8px; }

  .adv, .people { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step__num { margin-bottom: 20px; }
  .adv article { padding: 20px 0 28px; }

  .footer { padding-top: 24px; }
}
