@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --ink: #0B1420;
  --ink-2: #12212F;
  --paper: #F7F5F0;
  --paper-2: #FFFFFF;
  --body: #3B4C5B;
  --faint: #7C8C99;
  --line: #E0DCD2;
  --accent: #2E8C8C;
  --accent-br: #4FD1C5;
  --amber: #D08A2C;
  --maxw: 1180px;
  --display: 'Fraunces', Georgia, serif;
  --ui: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.7 var(--ui);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .55em;
}

a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.kicker {
  font-family: var(--ui); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}

/* ============ header ============ */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,20,32,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 37px; height: 37px; color: #fff; flex: none; }
.brand-name {
  font-family: 'Space Grotesk', var(--ui); font-size: 25px; color: #fff;
  letter-spacing: -.005em; line-height: 1; display: inline-flex; align-items: baseline;
  white-space: nowrap;
}
.brand-name .r { font-weight: 700; }
.brand-name .s { font-weight: 500; }
.brand-name .o { display: inline-block; width: .56em; height: .56em;
  vertical-align: baseline; margin: 0 .02em; position: relative; top: .042em; }
.brand-name .o svg { display: block; width: 100%; height: 100%; }
.brand-name b { font-weight: 700; }

nav.main { display: flex; gap: 24px; flex-wrap: wrap; }
nav.main a {
  color: #A8BAC6; text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .01em; padding: 5px 0; border-bottom: 1.5px solid transparent;
}
nav.main a:hover { color: #fff; border-bottom-color: var(--accent-br); }

/* ============ hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: 120px 0 108px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,209,197,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,209,197,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, #000 10%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -14%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,140,140,.22), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  max-width: 21ch; margin-bottom: .4em;
}
.hero h1 em { font-style: normal; color: var(--accent-br); }
.hero .lede {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: #A8BAC6;
  max-width: 58ch; margin: 0 0 40px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-br); color: #06231F; }
.btn-primary:hover { background: #6EE7DB; }
.btn-ghost { border-color: rgba(255,255,255,.26); color: #fff; }
.btn-ghost:hover { border-color: var(--accent-br); color: var(--accent-br); }

.hero-rule {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: 10px 44px; flex-wrap: wrap;
}
.hero-rule span { color: #7C919E; font-size: 13.5px; letter-spacing: .04em; }
.hero-rule b { color: #fff; font-weight: 600; }

/* ============ sections ============ */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.dark { background: var(--ink-2); border-bottom-color: rgba(255,255,255,.07); }
section.dark h2, section.dark h3, section.dark .figure { color: #fff; }
section.dark p { color: #9FB2BF; }
section.dark .card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }

.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.85rem); }
.sec-head p { margin: 0; font-size: 18px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 3px; padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(11,20,32,.09); border-color: var(--accent); }
.card h3 { font-size: 1.22rem; margin-bottom: .4em; }
.card p { margin: 0; font-size: 15.5px; }
.card .num { font-family: var(--display); font-size: 12.5px; color: var(--accent); display: block; margin-bottom: 15px; letter-spacing: .12em; }

/* ============ stats ============ */
.stats { display: grid; gap: 30px 64px; justify-content: start;
  grid-template-columns: repeat(auto-fit, minmax(210px, 268px)); }
.stat .figure {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4rem); color: var(--ink);
  line-height: .95; display: block; letter-spacing: -.03em;
}
.stat { display: flex; flex-direction: column; }
.stat .label { color: var(--faint); font-size: 13.5px; line-height: 1.5;
  margin: 0 0 10px; display: block; max-width: 26ch; }

/* ============ name lists ============ */
.names { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.names li {
  font-family: var(--display); font-size: 17px; color: var(--ink);
  border: 1px solid var(--line); background: var(--paper-2);
  padding: 11px 20px; border-radius: 2px;
}
section.dark .names li { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }

/* portfolio tiles: linked + optional logo slot */
.names li.has-link { padding: 0; }
.names li.has-link a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 20px; text-decoration: none; color: inherit;
  transition: color .18s ease;
}
.names li.has-link { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.names li.has-link:hover { transform: translateY(-2px); }
section.dark .names li.has-link:hover { border-color: var(--accent-br); background: rgba(79,209,197,.1); }
.names li.has-link a::after {
  content: "↗"; font-size: 12px; opacity: .45; margin-left: 2px;
  font-family: var(--ui); transition: opacity .18s ease;
}
.names li.has-link:hover a::after { opacity: 1; }
.names .plogo { height: 20px; width: auto; max-width: 92px; display: block; flex: none; }
.names li.no-link { opacity: .72; }
.attrib { font-size: 14px; color: var(--faint); margin: 14px 0 0; max-width: 64ch; }

/* legal fine print — hanging asterisk, deliberately quiet */
.fineprint {
  font-size: 11px; line-height: 1.65; letter-spacing: .005em;
  margin: 30px 0 0; max-width: 86ch;
  position: relative; padding-left: 15px; opacity: .55;
}
.fineprint::before {
  content: "*"; position: absolute; left: 0; top: .15em; font-size: 13px;
}
section.dark .fineprint { color: #9FB2BF; }
.fineprint strong { font-weight: 600; }

/* client logo strip */
.logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 40px; padding: 26px 0 4px; margin: 0; list-style: none;
}
.logos li { display: flex; align-items: center; min-height: 46px; }
.logos img {
  height: 30px; width: auto; max-width: 168px; display: block;
  filter: grayscale(1); opacity: .62;
  transition: filter .25s ease, opacity .25s ease;
}
.logos li:hover img { filter: grayscale(0); opacity: 1; }
.logos .wordmark {
  font-family: var(--display); font-size: 19px; color: var(--ink);
  opacity: .62; transition: opacity .25s ease; white-space: nowrap;
}
.logos li:hover .wordmark { opacity: 1; }
.logos .more {
  font-family: var(--display); font-size: 17px; color: var(--accent);
  white-space: nowrap; letter-spacing: -.01em; opacity: .85;
  padding-left: 4px; border-left: 1px solid var(--line); padding-left: 22px;
}
section.dark .logos .more { color: var(--accent-br); border-left-color: rgba(255,255,255,.14); }
@media (max-width: 560px) { .logos { gap: 16px 26px; } .logos img { height: 24px; } }

/* portfolio: logos on light cards so each brand keeps its own colours on the dark section */
.plogos {
  display: grid; gap: 16px; padding: 10px 0 4px; margin: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
}
.plogos li {
  background: transparent; border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
  min-height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 20px 22px; position: relative;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.plogos li:hover { transform: translateY(-3px); border-color: var(--accent-br);
  background: rgba(79,209,197,.07); }
/* every mark normalised to one bone-white silhouette so seven brands read as one wall */
.plogos img {
  filter: brightness(0) invert(1); opacity: .72;
  transition: opacity .2s ease;
}
.plogos li:hover img { opacity: 1; }
/* currentColor cannot cross an <img> boundary, so these invert with everything else */
.plogos a, .plogos .static {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; text-decoration: none;
}
.plogos img { max-height: 42px; max-width: 100%; width: auto; height: auto; display: block; }
.plogos a::after {
  content: "↗"; position: absolute; top: 8px; right: 10px;
  font-size: 11px; color: var(--ink); opacity: 0; transition: opacity .2s ease;
  font-family: var(--ui);
}
.plogos li:hover a::after { opacity: .5; }
@media (max-width: 480px) { .plogos { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .plogos li { min-height: 78px; } .plogos img { max-height: 34px; } }

/* dark-section logo strip (portfolio) — light marks, link affordance */
section.dark .logos img { filter: none; opacity: .78; }
section.dark .logos li:hover img { opacity: 1; }
section.dark .logos .wordmark { color: #fff; opacity: .72; }
section.dark .logos li:hover .wordmark { opacity: 1; }
.logos .more {
  font-family: var(--display); font-size: 17px; color: var(--accent);
  white-space: nowrap; letter-spacing: -.01em; opacity: .85;
  padding-left: 4px; border-left: 1px solid var(--line); padding-left: 22px;
}
section.dark .logos .more { color: var(--accent-br); border-left-color: rgba(255,255,255,.14); }
.logos a {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
}
.logos a::after {
  content: "↗"; font-size: 11px; opacity: 0; transition: opacity .2s ease;
  font-family: var(--ui);
}
.logos li:hover a::after { opacity: .8; }
.logos li { transition: transform .2s ease; }
.logos li:hover { transform: translateY(-2px); }

/* ============ resources ============ */
.res-group { margin-bottom: 40px; }
.res-group h3 { font-size: 1.05rem; margin-bottom: .6em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.res-group ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 46px; }
.res-group li { margin-bottom: 7px; font-size: 15.5px; break-inside: avoid; }
@media (max-width: 680px) { .res-group ul { columns: 1; } }

/* ============ contact ============ */
.contact-box {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px; padding: 40px 34px; max-width: 660px;
}
.contact-box .email { font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 1.9rem); display: inline-block; margin-top: 4px; text-decoration: none; }
.contact-box .email:hover { text-decoration: underline; }

footer { padding: 46px 0 60px; border: 0; background: var(--ink); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { margin: 0; color: #6E8794; font-size: 13.5px; }
footer a { color: #A8BAC6; }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

.skip { position: absolute; left: -9999px; background: var(--accent-br); color: #06231F; padding: 10px 16px; z-index: 60; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent-br); outline-offset: 3px; }


/* ---- card icon system: every glyph framed by the logo's corner brackets ---- */
.card-icon { width: 46px; height: 46px; display: block; margin: 0 0 18px; color: var(--accent); }
section.dark .card-icon { color: var(--accent-br); opacity: .9; }
.card-icon .frame { opacity: .4; }

/* ---- topographic texture: Nevada strata, used as section ground ---- */
.topo { position: relative; overflow: hidden; }
.topo > .wrap { position: relative; z-index: 2; }
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("img/topo.svg");
  background-size: 1200px auto; background-position: right -120px top -40px;
  background-repeat: no-repeat; opacity: .5;
}
@media (max-width: 760px) { .topo::before { opacity: .28; } }
