:root{
      --header-h: 85px;
      /* Benjamin Moore Color Trends 2026, anchored by Silhouette AF-655. */
      --bg:#57504c;
      --bg2:#435155;
      --panel:#4b4542;
      --panel2:#435155;
      --text:#eeece1;
      --muted:#d8d0c7;
      --line:rgba(232,222,207,.22);
      --accent:#a7b3aa;
      --accent2:#e8decf;
      --accent-warm:#b8a183;
      --shadow:0 14px 40px rgba(30,24,22,.34);
      --max:1180px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      color:var(--text);
      background-color:var(--bg);
      background:
        radial-gradient(circle at top left, rgba(167,179,170,.18), transparent 30%),
        radial-gradient(circle at top right, rgba(232,222,207,.12), transparent 26%),
        linear-gradient(180deg, var(--bg), #494340 100%);
      line-height:1.6;
    }
    main > section[id] {
      scroll-margin-top: var(--header-h);
      min-height: auto;
      transition: min-height 220ms ease, padding 220ms ease;
    }
    main > section:target {
      min-height: calc(100svh - var(--header-h));
      display: flex;
      align-items: center;
    }
    main > section:target > .wrap {
      width: min(calc(100% - 32px), var(--max));
    }
    @media (max-width: 760px) {
      main > section:target {
        min-height: auto;
        display: block;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      main > section[id] { transition: none; }
    }
    .brand-ref {
      color: var(--text);
      font-weight: 600;
      background: linear-gradient(120deg, rgba(167,179,170,.2), rgba(232,222,207,.14));
      padding: 2px 6px;
      border-radius: 6px;
    }
    a{color:inherit; text-decoration:none;}
    .wrap{width:min(calc(100% - 32px), var(--max)); margin:0 auto}
    .nav{
      position:sticky; top:0; z-index:20;
      backdrop-filter: blur(14px);
      background:rgba(67,81,85,.94);
      border-bottom:1px solid rgba(232,222,207,.18);
    }
    .nav-inner{
      display:flex; align-items:center; justify-content:space-between;
      gap:16px; padding:14px 0;
    }
    .brand{font-weight:800; letter-spacing:.2px}
    .brand small{display:block; color:var(--muted); font-weight:600; font-size:.78rem}
    .nav-links{display:flex; gap:18px; flex-wrap:wrap}
    .nav-links a{
      text-decoration:none; color:var(--muted); font-size:.95rem;
    }
    .nav-links a:hover{color:var(--text)}
    .hero{
      padding:78px 0 42px;
    }
    .hero-grid{
      display:grid;
      grid-template-columns:1.2fr .8fr;
      gap:28px;
      align-items:stretch;
    }
    .hero-card, .panel{
      background:linear-gradient(155deg, rgba(75,69,66,.97), rgba(67,81,85,.92));
      border:1px solid var(--line);
      border-radius:24px;
      box-shadow:var(--shadow);
    }
    .hero-card{padding:40px}
    .eyebrow{
      display:inline-flex; align-items:center; gap:10px;
      color:var(--accent2); font-weight:700; font-size:.88rem;
      letter-spacing:.04em; text-transform:uppercase;
      margin-bottom:14px;
    }
    .eyebrow::before{
      content:""; width:10px; height:10px; border-radius:50%;
      background:linear-gradient(180deg, var(--accent2), var(--accent));
      box-shadow:0 0 0 6px rgba(167,179,170,.16);
    }
    h1{
      font-size:clamp(2.3rem, 5vw, 4.2rem);
      line-height:1.05;
      margin:0 0 18px;
      letter-spacing:-.03em;
    }
    .hero p{
      margin:0 0 16px;
      color:var(--muted);
      font-size:1.05rem;
      max-width:68ch;
    }
    .hero-card p{
      margin:0 0 16px;
      color:var(--muted);
      font-size:1.05rem;
      max-width:68ch;
    }
    .cta-row{
      display:flex; flex-wrap:wrap; gap:14px; margin-top:24px;
    }
    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      min-height:48px; padding:18px;
      border-radius:14px; text-decoration:none; font-weight:700;
      border:1px solid transparent;
      transition:transform .18s ease, background .18s ease, border-color .18s ease;
    }
    .btn:hover{transform:translateY(-1px)}
    .btn-primary{
      background:linear-gradient(135deg, var(--accent2), var(--text));
      color:var(--bg);
    }
    .btn-secondary{
      background:rgba(232,222,207,.05);
      border-color:var(--line);
      color:var(--text);
    }
    .hero-side{
      padding:24px;
      display:grid;
      gap:16px;
      align-content:start;
    }
    .metric{
      background:rgba(232,222,207,.05);
      border:1px solid var(--line);
      border-radius:18px;
      padding:18px;
    }
    .metric strong{
      display:block; font-size:1.7rem; line-height:1.1; margin-bottom:6px;
    }
    .metric span{color:var(--muted); font-size:.95rem}
    section{padding:26px 0}
    h2{
      font-size:clamp(1.65rem, 3vw, 2.4rem);
      margin:0 0 10px;
      letter-spacing:-.02em;
    }
    .section-lead{
      color:var(--muted);
      /*max-width:70ch;*/
      margin:0 0 24px;
    }
    .grid-4{
      display:grid;
      grid-template-columns:repeat(4, 1fr);
      gap:18px;
    }
    .grid-3{
      display:grid;
      grid-template-columns:repeat(3, 1fr);
      gap:18px;
    }
    .grid-2{
      display:grid;
      grid-template-columns:repeat(2, 1fr);
      gap:18px;
    }
    .card{
      background:linear-gradient(155deg, rgba(75,69,66,.97), rgba(67,81,85,.92));
      border:1px solid var(--line);
      border-radius:22px;
      padding:22px;
      box-shadow:var(--shadow);
      height:100%;
    }
    .card h3{
      margin:0 0 10px;
      font-size:10pt; /*1.15rem;*/
    }
    .card p{margin:0; color:var(--muted)}
    .chips{display:flex; flex-wrap:wrap; gap:10px}
    .chip{
      padding:8px 12px; border-radius:999px;
      border:1px solid var(--line);
      background:rgba(232,222,207,.05);
      color:var(--text); font-size:.92rem;
    }
    .timeline{
      display:grid; gap:16px;
    }
    .job{
      display:grid;
      grid-template-columns:190px 1fr;
      gap:18px;
      padding:22px;
      border:1px solid var(--line);
      border-radius:22px;
      background:linear-gradient(155deg, rgba(75,69,66,.97), rgba(67,81,85,.92));
      box-shadow:var(--shadow);
    }
    .job .dates{
      color:var(--accent2);
      font-weight:700;
      font-size:.98rem;
    }
    .job h3{margin:0 0 8px; font-size:1.18rem}
    .job h3 span{
      color:var(--muted); font-weight:600;
    }
    .job ul{
      margin:0; padding-left:18px; color:var(--muted);
    }
    .job li + li{margin-top:6px}
    .centered{
      display:flex; justify-content:center;
    }
    .resume-card .btn{margin-top:16px}
    .contact{
      text-align:center;
      padding:40px 24px;
    }
    .contact p{
      color:var(--muted);
      max-width:56ch;
      margin:0 auto 22px;
    }
    .footer{
      color:var(--muted);
      font-size:.92rem;
      padding:28px 0 44px;
      text-align:center;
    }
    .small{
      color:var(--muted);
      font-size:.92rem;
    }
 
.project-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;

  border: 1px solid rgba(167, 179, 170, 0.72);
  border-radius: 0.55rem;
  background:
    linear-gradient(
      135deg,
      rgba(167, 179, 170, 0.16),
      rgba(232, 222, 207, 0.11)
    );

  color: var(--text);
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(167, 179, 170, 0.08);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.project-link::before {
  content: "LIVE PLATFORM";
  flex: 0 0 auto;
  padding: 0.18rem 0.42rem;
  border-radius: 0.3rem;
  background: rgba(167, 179, 170, 0.16);
  color: var(--accent2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.project-link::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--accent2);
  font-size: 1.05rem;
  font-weight: 800;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent2);
  background:
    linear-gradient(
      135deg,
      rgba(167, 179, 170, 0.24),
      rgba(232, 222, 207, 0.16)
    );
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(167, 179, 170, 0.14);
}

.project-link:focus-visible {
  outline: 3px solid rgba(232, 222, 207, 0.4);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .project-link {
    width: 100%;
    flex-wrap: wrap;
  }
}  
    .portfolio-note{
      margin-top:18px;
      padding:16px 18px;
      border:1px solid var(--line);
      border-radius:18px;
      background:rgba(232,222,207,.05);
      color:var(--muted);
      font-size:.95rem;
    }
    .portfolio-tag{
      display:inline-flex;
      margin-bottom:10px;
      padding:5px 9px;
      border-radius:999px;
      border:1px solid rgba(167,179,170,.34);
      color:var(--accent2);
      background:rgba(167,179,170,.09);
      font-size:.8rem;
      font-weight:700;
      letter-spacing:.02em;
    }
    .card ul{
      margin:10px 0 0;
      padding-left:18px;
      color:var(--muted);
    }
    .card li + li{margin-top:5px}

    .case-study-actions{
      display:flex;
      justify-content:flex-start;
      margin-top:16px;
    }
    .cms-status{
      grid-column:1 / -1;
      padding:22px;
      border:1px solid var(--line);
      border-radius:22px;
      background:rgba(232,222,207,.05);
      color:var(--muted);
      box-shadow:var(--shadow);
    }

    @media (max-width: 980px){
      .hero-grid, .grid-4, .grid-3, .grid-2{grid-template-columns:1fr}
      .job{grid-template-columns:1fr}
    }
    @media (max-width: 640px){
      .hero-card{padding:28px}
      .nav-inner{align-items:flex-start; flex-direction:column}
      .nav-links{gap:12px}
    }

/* ===== Portmason fixed-footer support =====
   Mirrors the corp-site behavior: the footer remains visible while
   the document keeps enough bottom padding so content is not hidden.
*/
:root{
  --footer-h: 56px;
}
body{
  padding-bottom: var(--footer-h);
}
main > section:target{
  min-height: calc(100svh - var(--header-h) - var(--footer-h));
}
.footer{
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--footer-h);
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(67,81,85,.96);
  border-top: 1px solid rgba(232,222,207,.22);
  box-shadow: 0 -12px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  text-align: center;
}
.footer.wrap{
  max-width: none;
}
.footer a,
.footer button{
  color: inherit;
}
.footer a:hover,
.footer a:focus-visible,
.footer button:hover,
.footer button:focus-visible{
  color: var(--accent2);
}
@media (max-width: 640px){
  :root{
    --footer-h: 76px;
  }
}
