/* ---------- Fonts ---------- */
@font-face {
  font-family: "Eloquia";
  src: url("/fonts/EloquiaDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eloquia";
  src: url("/fonts/EloquiaDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eloquia";
  src: url("/fonts/EloquiaDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #26bb55;
  --ink: #191919;
  --paper: #ffffff;
  --muted: rgba(25, 25, 25, 0.55);

  --font: "Eloquia", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* One type scale used everywhere */
  --fs-display: clamp(3.5rem, 7.4vw, 9rem);            /* wordmark (fits a 50vw panel) */
  --fs-lg: clamp(1.375rem, 1rem + 1.75vw, 2.5rem);     /* intro, portfolio rows */
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);       /* footer, buttons, mobile meta */
  --fs-sm: 0.8125rem;                                  /* column labels */

  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --rule: 2px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.1;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--green);
  color: var(--paper);
}

.hero > * { min-width: 0; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--gutter) * 0.66) var(--gutter) var(--gutter);
}

.wordmark {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: -0.05em; /* optical alignment of the B */
}
.wordmark__mark {
  font-size: 0.28em;
  font-weight: 500;
  line-height: 1;
  vertical-align: top;
  position: relative;
  top: -0.1em;
  margin-left: 0.15em;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.15;
  max-width: 24ch;
  text-wrap: pretty;
}

/* ---------- Portfolio ---------- */
.portfolio { padding-top: var(--gutter); }

.portfolio__head {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0 var(--gutter) 0.75rem;
}
.portfolio__title { font-size: var(--fs-lg); font-weight: 400; line-height: 1; }
.portfolio__cols {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: subgrid;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.list { border-bottom: var(--rule) solid var(--ink); }

.row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9em var(--gutter);
  border-top: var(--rule) solid var(--ink);
  transition: background-color 120ms ease, color 120ms ease;
}
.row:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: var(--gutter);
  font-size: var(--fs-md);
}
.footer__copy { color: var(--muted); }

.button {
  display: inline-block;
  padding: 0.7em 1.5em;
  border: var(--rule) solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  transition: background-color 120ms ease, color 120ms ease;
}
.button:hover { background: var(--ink); color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 42svh 1fr;
    min-height: 100svh;
  }
  .hero__panel { padding-top: var(--gutter); gap: 2.5rem; }
  .wordmark { font-size: clamp(3.25rem, 15vw, 6rem); }
  .lead { max-width: none; }

  .portfolio__head { grid-template-columns: 1fr; }
  .portfolio__cols { display: none; }

  .row {
    display: block;
    padding: 0.8em var(--gutter);
  }
  .row__name { display: block; margin-bottom: 0.2em; }
  .row__sector, .row__stage { font-size: var(--fs-md); color: var(--muted); }
  .row__sector::after { content: "\00a0·\00a0"; }
  .row:hover .row__sector, .row:hover .row__stage { color: rgba(255,255,255,0.7); }

  .footer { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__panel { padding-left: calc(var(--gutter) * 0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .row, .button { transition: none; }
}
