/* Penumbra Intelligence: one page.
   Dark hero and "Why Penumbra"; a cream lens holding "What I do" and "How I work"; dark again
   from About to the footer. Sections read the --sec-* tokens, set once for cream and
   overridden for the dark sections. */

:root {
  --black: #0b0b0c;
  --black-2: #121214;
  --black-3: #17171a;
  --cream: #f4efe6;
  --cream-2: #ebe4d6;
  --gold: #d6a552;          /* accent on dark, sampled from the wordmark */
  --gold-bright: #f0cf8a;   /* highlights on dark */
  --gold-deep: #8a6a1e;     /* rules and large type on cream */
  --gold-text: #7a5c14;     /* small type on cream (5.4:1 on cream) */
  --ink: #1a1a1a;
  --ink-soft: #4b4740;
  --paper: #ede8de;
  --paper-soft: #b6b0a3;

  --font-head: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --wrap: 1100px;
  --narrow: 720px;
  --gutter: 16px;
  --radius: 3px;
}

/* Body sections. "What I do" and "How I work" sit on cream, inside a lens drawn by the two
   gold horizons; About and Contact are dark again. Chosen by Jordan on 18 October 2026 from
   three previewed treatments. */
:root {
  --sec-bg: var(--cream);
  --sec-bg-alt: var(--cream);
  --sec-text: var(--ink);
  --sec-soft: var(--ink-soft);
  --sec-accent: var(--gold-deep);
  --sec-accent-text: var(--gold-text);
  --sec-rule: rgba(138, 106, 30, 0.35);
  --sec-ring: var(--gold-deep);
  --sec-btn-ghost: var(--gold-text);
}
#about,
#contact {
  --sec-bg: var(--black);
  --sec-bg-alt: var(--black-2);
  --sec-text: var(--paper);
  --sec-soft: var(--paper-soft);
  --sec-accent: var(--gold);
  --sec-accent-text: var(--gold);
  --sec-rule: rgba(214, 165, 82, 0.3);
  --sec-ring: var(--gold);
  --sec-btn-ghost: var(--gold-bright);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: var(--narrow); }

/* ---------- type ---------- */

h1, h2, h3, .label, .btn, .nav {
  font-family: var(--font-head);
  font-weight: 500;
}

h2 { margin: 0; }

.label {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sec-accent-text);
}

.lede {
  max-width: var(--narrow);
  margin: 0 0 2.6rem;
  font-size: 1.28rem;
  line-height: 1.5;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--gutter);
  background: rgba(11, 11, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 165, 82, 0.16);
  color: var(--paper);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}
.nav__brand img { width: 48px; height: auto; }

.nav__links {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-soft);
  white-space: nowrap;
  padding: 0.4rem 0;
}
.nav__links a:hover { color: var(--gold-bright); }

@media (max-width: 640px) {
  .nav__brand span { display: none; }
  .nav__links {
    gap: 1rem;
    padding-right: 2.5rem;
    /* the row scrolls sideways; fade the right edge so that is visible */
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 62% 28%, rgba(214, 165, 82, 0.22), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(214, 165, 82, 0.07), transparent 70%);
}
.hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.hero__logo {
  width: min(84vw, 460px);
  margin: 0 auto 1.4rem;
}
.nowrap { white-space: nowrap; }

.hero__title {
  margin: 0 auto 1rem;
  max-width: 26ch;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.05rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--paper);
}
.hero__sub {
  margin: 0 auto 2.2rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--paper-soft);
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.btn--primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--ghost {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: transparent;
}
.btn--ghost:hover { background: rgba(214, 165, 82, 0.12); }

/* on the body sections, the ghost button takes the section's accent */
.section .btn--ghost {
  border-color: var(--sec-accent);
  color: var(--sec-btn-ghost);
}
.section .btn--ghost:hover { background: rgba(138, 106, 30, 0.1); }

@media (max-width: 480px) {
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* ---------- why ---------- */

.why {
  background: var(--black);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.why .label { color: var(--gold); }
.why__text p {
  margin: 0 0 1.1rem;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.6;
}
.why__text p:first-child {
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.4;
  color: var(--gold-bright);
}
.why__text p:last-child { margin-bottom: 0; }

/* ---------- horizon divider ---------- */

/* Two gold arcs bound the cream lens: the upper bows up, the lower bows down, echoing the
   band around the wordmark in the logo. The svg background is the cream; the dark part is
   drawn as a path. */
.horizon {
  position: relative;
  z-index: 1;
  line-height: 0;
  /* overlap the neighbouring sections by a pixel so no sub-pixel seam can show */
  margin: -1px 0;
}
.horizon svg {
  display: block;
  width: 100%;
  height: calc(clamp(40px, 7vw, 90px) + 2px);
}
.horizon__sky { fill: var(--black); }
.horizon__ground { fill: var(--black); }
.horizon__cream { fill: var(--cream); }
.horizon__line { stroke: var(--gold); }

/* ---------- body sections ---------- */

.section {
  background: var(--sec-bg);
  color: var(--sec-text);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section--alt { background: var(--sec-bg-alt); }

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}
@media (max-width: 760px) {
  .groups { grid-template-columns: 1fr; }
}
.group__title {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sec-accent-text);
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--sec-rule);
}
.services { margin: 0; }
.service { padding: 1.15rem 0; border-bottom: 1px solid var(--sec-rule); }
.service:last-child { border-bottom: 0; }
.service dt {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.12rem;
  margin: 0 0 0.3rem;
}
.service dd {
  margin: 0;
  color: var(--sec-soft);
}

.how {
  list-style: none;
  margin: 0;
  padding: 0;
}
.how li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--sec-rule);
  font-size: 1.1rem;
}
.how li:last-child { border-bottom: 1px solid var(--sec-rule); }
.how strong {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--sec-accent-text);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { width: 180px; }
}
.about__photo {
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--sec-ring), 0 0 0 9px var(--sec-bg);
  margin-top: 0.3rem;
}
.about__text p { margin: 0 0 1.1rem; }
.about__background {
  font-size: 0.95rem;
  color: var(--sec-soft);
  padding-top: 0.9rem;
  border-top: 1px solid var(--sec-rule);
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
}
.about__links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sec-accent-text);
  border-bottom: 1px solid var(--sec-rule);
  padding-bottom: 2px;
}
.about__links a:hover { border-bottom-color: currentColor; }

/* ---------- contact ---------- */

.contact__title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1.8rem;
  font-weight: 500;
}
.contact__title a {
  color: var(--sec-accent-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sec-rule);
  overflow-wrap: anywhere;
}
#contact .actions { justify-content: flex-start; }
.contact__meta {
  margin: 1.8rem 0 0;
  color: var(--sec-soft);
}
.contact__meta a { color: var(--sec-accent-text); }

/* ---------- footer ---------- */

.footer {
  background: var(--black);
  color: var(--paper-soft);
  text-align: center;
  padding: 3rem var(--gutter) 2.6rem;
  border-top: 1px solid rgba(214, 165, 82, 0.16);
}
.footer__icon { width: 96px; margin: 0 auto 1.2rem; opacity: 0.9; }
.footer__line {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer__small {
  margin: 0;
  font-size: 0.85rem;
}

