:root{
  --bg:#fbfaf7;
  --panel:#ffffff;
  --text:#202124;
  --muted:#62666d;
  --line:#ded9cf;
  --accent:#245f73;
  --accent-strong:#173f4d;
  --gold:#b07831;
  --soft:#eef5f7;
  --shadow:0 12px 32px rgba(32,33,36,.08);
}

*{box-sizing:border-box}

html{font-size:16px}

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.6;
}

a{color:var(--accent); text-decoration-thickness:.08em; text-underline-offset:.18em}
a:hover{color:var(--accent-strong)}

.site-header,
.site-footer{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px 0;
}

.brand{
  color:var(--text);
  font-weight:800;
  letter-spacing:0;
  text-decoration:none;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.nav a{
  color:var(--muted);
  font-weight:650;
  text-decoration:none;
}

.nav a[aria-current="page"],
.nav a:hover{
  color:var(--text);
}

.hero,
.page,
.section{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.hero{
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(280px, .65fr);
  gap:32px;
  align-items:end;
  padding:64px 0 48px;
}

.hero-copy h1,
.page h1{
  max-width:900px;
  margin:0;
  font-size:clamp(2.4rem, 6vw, 5.2rem);
  line-height:.96;
  letter-spacing:0;
}

.page{
  padding:56px 0 72px;
}

.page h1{
  font-size:clamp(2.2rem, 5vw, 4.2rem);
}

.lede{
  max-width:760px;
  margin:24px 0 0;
  color:var(--muted);
  font-size:1.2rem;
}

.eyebrow{
  margin:0 0 14px;
  color:var(--gold);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:32px;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:1px solid var(--accent);
  border-radius:4px;
  font-weight:800;
  text-decoration:none;
}

.button.primary{
  background:var(--accent);
  color:#fff;
}

.button.secondary{
  color:var(--accent);
  background:transparent;
}

.signal-card,
.work-card,
.timeline-item{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}

.signal-card{
  padding:24px;
}

.signal-card h2,
.work-card h2,
.work-card h3,
.timeline-item h3{
  margin:0 0 10px;
  line-height:1.2;
}

.signal-card ul,
.plain-list{
  margin:0;
  padding-left:20px;
}

.signal-card li + li,
.plain-list li + li{
  margin-top:10px;
}

.section{
  padding:44px 0 64px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  font-size:2rem;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.featured-grid{
  grid-template-columns:minmax(0, 720px);
}

.portfolio-preview-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:42px;
}

.home-category-grid{
  margin-top:0;
}

.category-card{
  display:block;
  min-height:100%;
  padding:24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  box-shadow:var(--shadow);
}

.category-card:hover{
  color:var(--text);
  border-color:var(--accent);
}

.category-card h2,
.category-card h3{
  margin:0 0 10px;
  line-height:1.2;
}

.category-card p:last-child{
  margin:0;
  color:var(--muted);
}

.work-card,
.timeline-item{
  padding:22px;
}

.work-card p,
.timeline-item p{
  margin:0;
  color:var(--muted);
}

.work-card .card-link{
  display:inline-flex;
  margin-top:18px;
  font-weight:800;
  text-decoration:none;
}

.work-card h2,
.work-card h3,
.timeline-item h3{
  color:var(--text);
}

.meta{
  color:var(--gold);
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:40px;
}

.experience-section{
  margin-top:42px;
}

.experience-section h2,
.two-column h2{
  margin:0 0 14px;
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag-list span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--soft);
  color:var(--accent-strong);
  font-weight:700;
}

.timeline-item + .timeline-item{
  margin-top:14px;
}

.artifact-section{
  margin-top:36px;
}

.artifact-frame{
  overflow:hidden;
  width:100%;
  aspect-ratio:16 / 9;
  min-height:420px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.artifact-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

.artifact-preview{
  overflow:hidden;
  max-width:900px;
  margin:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.artifact-preview img{
  display:block;
  width:100%;
  height:auto;
}

.artifact-note{
  max-width:820px;
  margin:16px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

.portfolio-lane{
  margin-top:46px;
}

.tool-callout{
  max-width:820px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  box-shadow:var(--shadow);
}

.tool-callout h2{
  margin:0 0 10px;
  font-size:2rem;
}

.tool-callout p{
  color:var(--muted);
}

.link-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.link-list a{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  font-weight:750;
  text-decoration:none;
}

.site-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:28px 0 40px;
  color:var(--muted);
  border-top:1px solid var(--line);
}

@media (max-width: 840px){
  .site-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .hero,
  .two-column,
  .card-grid,
  .portfolio-preview-grid,
  .category-grid{
    grid-template-columns:1fr;
  }

  .hero{
    padding-top:36px;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .artifact-frame{
    min-height:300px;
  }
}

@media print{
  .site-header,
  .site-footer,
  .hero-actions{
    display:none;
  }

  body{
    background:#fff;
    color:#000;
  }

  .page{
    width:100%;
    padding:0;
  }
}
