/* The Nunan Group - shared styles.
   Brand (native assets in brand/brand-assets/):
     ground ink   #08090A   page dark (primary)
     ground ivory #FAFAF7   light surfaces
     ink          #F7F8F8   text on dark
     ink graphite #201E1D   text on light
     teal         #2AA79B   the square, links (dark theme)
     teal deep    #0E6B66   the square, links (light theme)
     teal bright  #3BC4B6   link hover / focus ring
     slate        #8A8F98   secondary text on dark
     --line       rgba(240,244,248,0.14)   borders on dark
   Display: Montserrat. Body: Inter.
   Rules: no gradients, and teal is spent once per composition. Teal may
   appear only as the square, link text, link hover, and the 2px focus ring.
   If a layout shows teal in a second decorative place, remove one. */

:root {
  --page: #08090A;
  --card: #0F1011;
  --ink: #F7F8F8;
  --ink-2: #8A8F98;
  --line: rgba(240, 244, 248, 0.14);
  --teal: #2AA79B;
  --teal-bright: #3BC4B6;
}

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

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }
a:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

/* Header ---------------------------------------------------------------- */
header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex: none;
}

.brand-name {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-name .accent { color: var(--teal); }

nav.site { display: flex; gap: 28px; }
nav.site a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
nav.site a:hover { color: var(--ink); }
nav.site a[aria-current="page"] { color: var(--ink); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 148px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(720px 420px at 82% 10%, rgba(14, 107, 102, 0.30) 0%, rgba(14, 107, 102, 0) 68%),
    linear-gradient(180deg, #101214 0%, #0A0F10 52%, var(--page) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-mark {
  position: absolute;
  right: clamp(-160px, -8vw, -90px);
  top: 50%;
  width: clamp(360px, 46vw, 620px);
  transform: translateY(-50%);
  color: rgba(247, 248, 248, 0.05);
  pointer-events: none;
}
.hero-mark rect { fill: rgba(42, 167, 155, 0.20); }

h1 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.05;
  max-width: 22ch;
}

.hero p {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 17px;
}

/* Portfolio ------------------------------------------------------------- */
#portfolio { padding-top: 16px; padding-bottom: 24px; }

.eyebrow {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.entry {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 32px;
}
.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.entry-name {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.015em;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  border: 1px solid currentColor;
  padding: 3px 10px;
}
.badge-hold { color: var(--ink-2); }
.badge-other { color: var(--ink-2); }

.entry p {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--ink-2);
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.meta > div { font-size: 13px; color: var(--ink); }
.meta span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.meta-site .entry-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 13px;
}

/* Legacy ---------------------------------------------------------------- */
.legacy { padding-top: 24px; padding-bottom: 72px; }
.legacy-lead {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.legacy-body {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 16px;
}
.legacy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legacy-columns h3 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legacy-columns p { color: var(--ink-2); font-size: 14px; }

/* Footer ---------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); }
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 20px; }

/* Slim content pages (privacy / contact) -------------------------------- */
.slim-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.slim-title {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  margin: 64px 0 32px;
}
.slim h2 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 28px 0 10px;
}
.slim p, .slim li { color: var(--ink-2); }
.slim ul { margin: 8px 0 0 20px; }

/* Small screens --------------------------------------------------------- */
@media (max-width: 720px) {
  .meta { grid-template-columns: repeat(2, 1fr); }
  .legacy-columns { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 72px 0 56px; }
  header.wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav.site { gap: 20px; }
}
