/* ============================================================
   NickOrDo portfolio — styles
   Colours & type match the design. Edit values here.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #d9d3c8;
  color: #1a1a1a;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #1a1a1a; color: #fff; }
a { color: inherit; }

/* ---- Outer frame + nested panels ---- */
.frame {
  width: 100%;
  max-width: 1148px;
  background: #eae6df;
  border-radius: 40px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 50px rgba(0,0,0,0.09);
}
.panel { position: relative; width: 100%; border-radius: 28px; }
.panel--a { background: #fbfaf8; }
.panel--b { background: #ffffff; }

/* ---- Shared bits ---- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2000px; }
.dot--green { width: 7px; height: 7px; background: #00873d; }
.eyebrow {
  font-family: 'Source Code Pro', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.eyebrow--green { color: #5f8471; margin-bottom: 10px; }
.eyebrow--faint { color: #a09b93; font-size: 12px; letter-spacing: 0.14em; margin-bottom: 18px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 2000px;
  transition: background 120ms ease;
}
.cta--dark { color: #fff; background: #1a1a1a; padding: 13px 24px; }
.cta--dark:hover { background: #333; }
.cta--light { color: #1a1a1a; background: #fff; padding: 13px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.cta--light:hover { background: #eceae5; }
.arrow { display: inline-block; transform: rotate(90deg); }

/* image placeholder slots (fallback circle if the <img> is missing) */
.slot { display: inline-block; border-radius: 2000px; overflow: hidden; background: #e6e2db; flex: none; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot--logo { width: 34px; height: 34px; }
.slot--avatar { width: 84px; height: 84px; }

/* ---- Hero ---- */
.hero { padding: 28px 40px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.brand-sub { font-size: 10px; color: #a09b93; letter-spacing: 0.04em; }
.toplinks { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.toplinks a { color: #6b6b6b; text-decoration: none; transition: color 100ms ease; }
.toplinks a:hover { color: #1a1a1a; }
.toplinks .sep { color: #c4c0ba; }

.hero-main { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 52px; }
.avatar-wrap { position: relative; margin-bottom: 32px; }
.avatar-pill {
  position: absolute; top: 16px; left: 72px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  background: #fff; padding: 6px 12px; border-radius: 2000px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); font-size: 12px;
}
.hero-title {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 60px; line-height: 1.04; letter-spacing: -0.035em;
  margin: 0; max-width: 680px;
}
.hero-sub { font-size: 16px; line-height: 1.6; color: #6b6b6b; margin: 22px 0 0; max-width: 520px; }
.hero-main .cta { margin-top: 34px; }

/* ---- Graph ---- */
#graph { padding: 32px 32px 24px; }
.graph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 8px 20px; }
.graph-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #8a8a8a; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.graph-mount {
  position: relative; width: 100%; height: 660px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #faf9f7 45%, #f1efe9 100%);
}
.graph-mount svg { display: block; width: 100%; height: 100%; }
.graph-mount g { cursor: pointer; }
.graph-cap { text-align: center; font-family: 'Source Code Pro', monospace; font-size: 11px; color: #b0aca6; margin: 16px 0 8px; }

/* ---- Approach ---- */
.approach { padding: 64px 56px; }
.section-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.14; letter-spacing: -0.02em; margin: 0 auto 48px; text-align: center; max-width: 520px; }
.divider { position: relative; border-top: 1px solid #dedad3; display: flex; justify-content: center; margin-bottom: 44px; }
.divider-pill { transform: translateY(-50%); font-size: 12px; color: #8a8a8a; background: #fff; padding: 6px 18px; border-radius: 2000px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.step-icon { width: 26px; height: 26px; color: #1a1a1a; margin-bottom: 20px; }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.step p { font-size: 13px; line-height: 1.65; color: #9a958d; margin: 0; }

/* ---- Contact ---- */
.contact { padding: 80px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-icon { width: 64px; height: 64px; border-radius: 2000px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; color: #1a1a1a; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.06; letter-spacing: -0.03em; margin: 0; max-width: 560px; }
.contact-sub { font-size: 16px; line-height: 1.6; color: #6b6b6b; margin: 20px 0 0; max-width: 460px; }
.contact-btns { display: flex; gap: 10px; margin-top: 36px; }

/* ---- Footer ---- */
.footer { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 10px; font-size: 12px; color: #8a8a8a; flex-wrap: wrap; gap: 8px; }

/* ---- Detail panel + scrim ---- */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(40,38,34,0.28); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.detail {
  position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 40;
  width: 420px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  transform: translateX(120%);
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
}
.detail.open { transform: translateX(0); }
.detail-head { position: relative; padding: 26px 28px 30px; background: rgba(43,43,43,0.06); }
.detail-close { position: absolute; top: 20px; right: 20px; border: none; background: rgba(255,255,255,0.7); width: 34px; height: 34px; border-radius: 2000px; cursor: pointer; color: #1a1a1a; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.detail-ring { width: 64px; height: 64px; border-radius: 2000px; background: #fff; border: 2px solid #2b2b2b; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.08); margin-bottom: 18px; }
.detail-ring-dot { width: 16px; height: 16px; border-radius: 2000px; background: #2b2b2b; }
.detail-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 2000px; background: rgba(255,255,255,0.65); margin-bottom: 14px; }
.detail-badge-dot { width: 7px; height: 7px; border-radius: 2000px; background: #2b2b2b; }
.detail-badge span:last-child { font-family: 'Source Code Pro', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #2b2b2b; }
.detail-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.detail-body { padding: 26px 28px 30px; overflow-y: auto; flex: 1; }
.detail-desc { font-size: 15px; line-height: 1.72; color: #5c5c5c; margin: 0 0 24px; }
.detail-conn-label { font-family: 'Source Code Pro', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #b0aca6; margin: 0 0 12px; padding-top: 22px; border-top: 1px solid #eceae5; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-chips button { font-family: 'Source Sans 3', sans-serif; font-size: 12px; padding: 5px 11px; border-radius: 2000px; cursor: pointer; }
.detail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; text-decoration: none; font-size: 14px; color: #fff; background: #1a1a1a; padding: 12px 22px; border-radius: 2000px; transition: background 120ms ease; }
.detail-link:hover { background: #333; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-title { font-size: 44px; }
  .contact-title { font-size: 34px; }
  .hero, .approach, .contact { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 520px) {
  body { padding: 10px; }
  .steps { grid-template-columns: 1fr; }
  .graph-mount { height: 520px; }
  .detail { width: 100%; right: 0; top: 0; bottom: 0; border-radius: 0; max-width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .toplinks a, .scrim, .detail, .detail-link { transition: none; }
}
