/* Sizes are in rem where 1rem = 16 mockup px at a 1024px viewport, so the
   layout scales proportionally with the window like the mockups do. */
:root {
  --bg: #040406;
  --panel: #121212;
  --panel-2: #0e0e0e;
  --line: #1f1f1f;
  --line-2: #3a3a3a;
  --accent: #c5d15b;
  --white: #ffffff;
  --text: #c9c9ca;
  --muted: #9a9a9a;
  --dim: #6f6f6f;
  --ph: #2e2e2e;
  --ph-line: #3a3a3a;
  --ph-label: #7a7a7a;
  --radius: .5rem;
  --radius-sm: .25rem;
  --gutter: 3rem;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

html {
  font-size: clamp(14px, 1.5625vw, 22px);
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .75rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.accent { color: var(--accent); }

.eyebrow {
  font-size: .5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.caps {
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.25rem;
  padding: 0 3rem 0 1.85rem;
}

.logo img { width: 2.1rem; height: auto; }

.site-nav {
  display: flex;
  gap: 1.9rem;
  font-size: .65rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.site-nav a:hover { color: var(--accent); }

.header-cta {
  justify-self: end;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  height: 2.1rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: .25rem;
  color: var(--white);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: border-color .2s, background .2s;
}

.btn .icon { color: var(--accent); font-size: .9rem; }
.btn:hover { border-color: var(--accent); }

.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--accent:hover { background: rgba(197, 209, 91, .08); }

.btn--sm {
  height: 1.7rem;
  padding: 0 .75rem;
  gap: .8rem;
  font-size: .45rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
}

.link-arrow .icon { font-size: .85rem; }

/* ---------- image placeholders ----------
   Grey until the original named in data-img exists in assets/img/. */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph);
  border-radius: var(--radius-sm);
}

.ph::after {
  content: attr(data-img);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .25rem;
  color: var(--ph-label);
  font-size: .42rem;
  letter-spacing: .04em;
  text-align: center;
  word-break: break-all;
}

.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
  object-position: var(--pos, center);
}

.ph.has-img { background: var(--bg); }
.ph.has-img::after { content: none; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  :root { --gutter: 1rem; }
  body { font-size: .875rem; }

  .site-header {
    grid-template-columns: auto 1fr;
    padding: 0 var(--gutter);
    height: 3.5rem;
  }

  /* phones: keep the menu visible in one compact row; "Contact" covers the
     header button, which doesn't fit beside it */
  .site-nav {
    justify-self: end;
    gap: 1.05rem;
    font-size: .78rem;
    letter-spacing: .02em;
  }
  .header-cta { display: none; }
  .btn { font-size: .7rem; }
  .btn--sm { font-size: .65rem; }
  .link-arrow { font-size: .7rem; }
  .ph::after { font-size: .6rem; }
}

/* ---------- UX pass: readable type + 44px touch targets on phones ---------- */
@media (max-width: 767px) {
  html { font-size: 16px; }
  body { font-size: 1rem; }
  .site-nav { gap: .9rem; font-size: .78rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .logo { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .btn, .btn--sm { min-height: 44px; height: auto; font-size: .78rem; }
  .link-arrow { min-height: 44px; font-size: .78rem; }
  .eyebrow { font-size: .78rem; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
