:root {
  --bg: #f3f1eb;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #ddd8ce;
  --green: #1f3d32;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --accent: #c45c26;
  --card: #fffcf7;
  --shadow: 0 18px 40px rgba(31, 61, 50, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img, video { max-width: 100%; display: block; }
img, video, .slides figure, .lightbox img, .lightbox video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .04em; line-height: 1.15; }
.brand span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--muted); font-weight: 500; text-transform: none; }
nav a { text-decoration: none; margin-left: 22px; font-size: 14px; font-family: var(--sans); }
nav a.active { border-bottom: 1px solid var(--ink); }
.btn-contact, .btn {
  background: var(--green); color: #fff !important; text-decoration: none;
  padding: 8px 14px; border-radius: 6px; font-family: var(--sans); font-size: 13px;
  display: inline-block;
  width: auto;
}
.copy .btn { margin-top: 10px; }
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--ink); }

.home-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 40px 0 20px; }
.home-grid > div { min-width: 0; }
.portrait, .about-pic {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
.about-pic { margin-bottom: 16px; width: 100%; max-width: none; }
.slider.about-pic {
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
}
.slider.about-pic .slides,
.slider.about-pic .slides figure {
  height: 100%;
}
.slider.about-pic .slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.portrait, .about-pic, .slider, .projects img {
  border: 1px solid #d0cbc1;
  background: #ece9e2;
  box-shadow: none;
  padding: 8px;
  box-sizing: border-box;
}
.kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
h1 { font-family: var(--serif); font-size: 46px; line-height: 1.12; margin: 10px 0 18px; font-weight: 500; letter-spacing: -.02em; }
.lead { font-family: var(--serif); font-size: 18px; line-height: 1.7; max-width: 58ch; }
.side-card { background: #fff; border: 1px solid var(--line); padding: 16px; margin-top: 14px; font-family: var(--sans); font-size: 14px; }
.side-card .btn { display: block; text-align: center; margin-top: 8px; }
.meta { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.meta .ico { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; fill: var(--green); }

.section { padding: 24px 0 40px; }
.section h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.achieve-row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 14px;
}
.tag { border: 1px solid var(--line); padding: 2px 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.projects { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 16px; min-width: 0; max-width: 100%; }
.projects img { width: 100%; height: 180px; object-fit: cover; }
.projects article { min-width: 0; overflow: hidden; }
.projects article .slider,
.projects article .slider.feat {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
  background: #efebe3;
  border: 1px solid rgba(31,61,50,.08);
  border-radius: 18px;
}
.projects article .slider.feat .slides {
  gap: 12px;
}
.projects article .slider.feat .slides figure {
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}
.projects article .slides img,
.projects article .slides video,
.projects article .slider.feat .slides img,
.projects article .slider.feat .slides video,
.projects article .slider.feat img,
.projects article .slider.feat video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 12px;
  display: block;
  vertical-align: top;
}
.home-tagline { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; }
.projects .tag { display: inline-block; margin: 6px 0 8px; }
.projects h3 { margin: 0 0 6px; font-size: 18px; }
.projects p { margin: 0 0 8px; }
.feat-year { font-size: 16px; font-weight: 400; color: var(--ink); margin: 10px 0 4px !important; }
.feat-desc { font-size: 13px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
form { display: grid; gap: 10px; }
input, textarea { width: 100%; padding: 10px; border: 1px solid var(--line); font: 14px var(--sans); }
.about-grid { display: grid; grid-template-columns: 1.4fr .7fr; gap: 36px; }
.edu { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-family: var(--sans); font-size: 14px; }
.chips span { display: inline-block; border: 1px solid var(--line); padding: 4px 10px; margin: 0 6px 8px 0; font-family: var(--sans); font-size: 13px; }

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 8px 0 22px;
  border: 1px solid rgba(31,61,50,.08);
  background: #efebe3;
  padding: 6px;
  border-radius: 18px;
  box-sizing: border-box;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #1c1c1c;
}

.chart-wrap {
  position: sticky;
  top: 58px;
  z-index: 25;
  background: var(--bg);
  padding: 10px 6px 8px;
  overflow-x: visible;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(26,26,26,.04);
}
.chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #d7d2c8;
  padding: 4px 0 0;
  margin: 0;
  overflow: visible;
  gap: 0;
  min-height: 148px;
  min-width: 0;
}
.chart a, .c-col {
  text-decoration: none;
  text-align: center;
  min-width: 0;
  flex: 1;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .01em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 0;
}
.c-label {
  max-width: 7em;
  width: max-content;
  line-height: 1.15;
  white-space: normal;
  text-align: left;
  align-self: flex-start;
  margin: 0 0 8px 50%;
  transform: rotate(-60deg);
  transform-origin: left center;
  font-size: 12px;
}
.c-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff;
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.c-stem { width: 1px; background: #d0ccc4; flex-shrink: 0; margin-bottom: 6px; }
.h-xl .c-stem { height: 40px; }
.h-l .c-stem { height: 28px; }
.h-m .c-stem { height: 18px; }
.h-s .c-stem { height: 8px; }
.chart a.on .c-dot, .chart a:hover .c-dot {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(30,61,50,.12);
}
.chart a.on .c-label, .chart a.on .c-date { color: var(--ink); font-weight: 700; }
.c-dates {
  display: flex;
  justify-content: space-between;
  gap: 0;
  padding: 6px 0 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #d7d2c8;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
}
.c-dates span { flex: 1; text-align: center; }
.c-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  font-size: 11px;
  font-style: normal;
}
.c-date em { font-style: normal; font-weight: 600; }
.c-date b { font-weight: 500; }
.chart-bottom { min-height: 128px; align-items: flex-start; border-bottom: 0; margin-top: 0; min-width: 0; }
.chart-bottom a { justify-content: flex-start; flex-direction: column-reverse; }
.chart-bottom .c-label {
  margin: 8px 0 0 50%;
  text-align: right;
  transform: translateX(-100%) rotate(-60deg);
  transform-origin: right center;
}
.chart-bottom .c-stem { margin: 6px 0 0; }
.chart-bottom .c-slot { flex: 1; }
.shift-old { transform: translateX(-10px); }
.shift-new { transform: translateX(10px); }
.c-group { display: flex; min-width: 0; }
.c-group.n-1 { flex: 1; }
.c-group.n-2 { flex: 1.45; }
.c-group.n-3 { flex: 1.9; }
.c-group.n-4 { flex: 2.35; }
.c-group > * { flex: 1; min-width: 0; }
.c-dates .c-group { align-items: center; justify-content: center; }
.c-dates .c-group span { flex: 1; text-align: center; }
html { scroll-padding-top: 320px; }

.entry { display: grid; grid-template-columns: 150px 320px 1fr; gap: 24px; align-items: stretch; padding: 28px 0; border-top: 1px solid var(--line); }
.entry.no-media { grid-template-columns: 150px 1fr; }
.num { font-family: var(--serif); font-size: 28px; color: #9a9a9a; margin: 0; line-height: 1.2; }
.card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.card-actions .tag { margin: 0 0 0 auto; }
.copy h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.copy p { font-family: var(--serif); font-size: 16px; }
.copy strong { font-weight: 700; }
.copy em { font-style: italic; }
.copy u { text-decoration: underline; }
.copy a.desc-link,
.side-card a[href^="mailto"] {
  color: #1d4ed8;
  text-decoration: underline;
}
.home-award {
  display: grid;
  grid-template-columns: 70px 1fr 200px;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.home-award .year { font-family: var(--serif); color: #9a9a9a; font-size: 20px; margin: 0; }
.home-award h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.home-award p { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.projects h3 { font-family: var(--sans); font-weight: 600; }
.feat-desc { font-family: var(--sans); }
.home-award h3 { margin: 0 0 6px; font-size: 18px; }
.home-award p { margin: 0 0 10px; font-size: 14px; }
.home-award .tag { display: inline-block; }
.home-award:hover h3 { text-decoration: underline; }
.slider.mini .slides img,
.slider.mini .slides video { height: 94px; }
.slider { position: relative; overflow: hidden; background: #ece9e2; width: 100%; }
.slides { display: flex; width: 100%; gap: 12px; transition: transform .35s ease; }
.slides figure {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
}
.slides img, .slides video { width: 100%; height: 224px; object-fit: cover; background: #ddd8ce; }
.entry,
.project { align-items: stretch; }
.entry .slider,
.project .slider {
  width: 100%;
  max-width: 320px;
  min-height: 224px;
  max-height: 427px;
  height: 224px;
  align-self: start;
  overflow: hidden;
}
.entry .slider .slides,
.entry .slider .slides figure,
.project .slider .slides,
.project .slider .slides figure {
  height: 100%;
}
.entry .slides img,
.entry .slides video,
.project .slides img,
.project .slides video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.slider .prev, .slider .next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; background: #fff; }
.prev { left: 8px; } .next { right: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.filters button.active { background: var(--green); color: #fff; }
.project { display: grid; grid-template-columns: 150px 1fr 320px; gap: 24px; align-items: stretch; padding: 28px 0; border-top: 1px solid var(--line); }
.project.no-media { grid-template-columns: 150px 1fr; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tools span { border: 1px solid var(--line); padding: 4px 8px; font-family: var(--sans); font-size: 12px; }
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(20,20,20,.82);
  z-index: 80; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { width: 70vw; max-height: 80vh; object-fit: contain; background: #000; }
.lightbox.mini-pop img, .lightbox.mini-pop video { width: 50vw; max-height: 70vh; }
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: 0;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 81;
}
.lb-close { top: 16px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.hidden { display: none !important; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; }
@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .home-grid, .about-grid, .contact-grid, .project, .entry, .projects, .home-award { grid-template-columns: 1fr; }
  .entry, .entry.no-media, .project, .project.no-media { grid-template-columns: 1fr; }
  .portrait { height: auto; max-height: 260px; object-fit: cover; }
  h1 { font-size: 30px; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .brand { width: 100%; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
  nav a { margin-left: 0; font-size: 13px; }
  .chart-wrap {
    position: relative;
    top: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 8px 12px;
  }
  .chart, .c-dates, .chart-bottom {
    min-width: 980px;
  }
  .c-label { font-size: 10px; white-space: nowrap; max-width: none; }
  .slides img, .slides video { height: 200px; }
  .slider.mini .slides img,
  .slider.mini .slides video { height: 180px; }
  .lightbox img, .lightbox video,
  .lightbox.mini-pop img, .lightbox.mini-pop video {
    width: 88vw;
    max-height: 68vh;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close, .lb-prev, .lb-next { width: 36px; height: 36px; }
  .social-dock {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    flex-direction: row;
    background: rgba(243,241,235,.94);
    padding: 6px 8px;
    border-radius: 999px;
    gap: 8px;
  }
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 20px; height: 20px; }
  .section { padding: 28px 0 92px; }
  .filters button { font-size: 11px; padding: 5px 9px; }
  .card-actions { gap: 8px; }
  .hero-video { margin-bottom: 16px; }
  .entry .num, .project .num { order: 1; font-size: 18px; margin-bottom: 4px; }
  .entry .copy, .project .copy { order: 2; }
  .entry .slider, .project .slider {
    order: 3;
    width: 100%;
    max-width: 100%;
    height: 224px !important;
    min-height: 224px;
    max-height: 224px;
  }
  .entry .slides img,
  .entry .slides video,
  .project .slides img,
  .project .slides video {
    height: 224px;
  }
  .copy h3 { font-size: 20px; line-height: 1.3; }
  .copy p {
    font-size: 15px;
    line-height: 1.55;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .card-actions { order: 4; }
}

body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(196,92,38,.10), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(31,61,50,.08), transparent 50%),
    var(--bg);
}
::selection { background: rgba(196,92,38,.22); }
.site-header {
  background: rgba(243,241,235,.78);
  backdrop-filter: blur(16px);
  border-bottom: 0;
}
.header-inner { padding: 14px 0; }
nav a {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
nav a:hover { background: rgba(31,61,50,.06); }
nav a.active {
  border-bottom: 0;
  background: var(--green);
  color: #fff;
}
.btn-contact, .btn {
  border-radius: 999px;
  padding: 10px 16px;
  transition: transform .2s, box-shadow .2s;
}
.btn-contact:hover, .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: var(--card); }
h1 { font-size: clamp(36px, 5vw, 56px); }
.kicker { color: var(--accent); letter-spacing: .2em; }
.side-card, .chart-wrap, .projects article {
  background: var(--card);
  border: 1px solid rgba(31,61,50,.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 14px;
}
.projects article { padding: 8px 8px 18px; }
.projects article img {
  margin: 0 0 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 6px;
  border: 1px solid rgba(31,61,50,.08);
  background: #efebe3;
  border-radius: 18px;
  box-shadow: none;
}
.projects article .feat-year,
.projects article h3,
.projects article p,
.projects article .tag {
  margin-left: 10px;
  margin-right: 10px;
}
.side-card { padding: 20px; }
.chart-wrap { padding: 14px 8px 10px; overflow-x: visible; }
.portrait, .about-pic, .slider, .projects img {
  border-radius: 18px;
  padding: 6px;
  background: #efebe3;
  border: 1px solid rgba(31,61,50,.08);
}
.slider { overflow: hidden; }
.portrait, .about-pic,
.slides img, .slides video,
.projects img, .hero-video video {
  border-radius: 12px;
}
.home-award, .entry, .project {
  border-top: 0;
  margin: 12px 0;
  padding: 18px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31,61,50,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-award:hover, .entry:hover, .project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.home-award:hover h3 { text-decoration: none; color: var(--accent); }
.entry.is-active,
.project.is-active {
  outline: 1px solid rgba(196,92,38,.45);
  box-shadow:
    0 0 0 4px rgba(196,92,38,.10),
    0 14px 32px rgba(31,61,50,.10);
  background:
    linear-gradient(90deg, var(--accent) 5px, rgba(196,92,38,.07) 5px);
}
.section h2 { border-bottom: 0; position: relative; }
.section h2:after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 99px;
}
.tag, .chips span, .filters button {
  border-radius: 999px;
  border-color: rgba(31,61,50,.14);
}
.filters button.active { background: var(--accent); }
input, textarea {
  border-radius: 14px;
  background: var(--card);
  border-color: rgba(31,61,50,.12);
}
.slider .prev, .slider .next {
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.c-dot { border-color: var(--green); }
.chart a.on .c-dot, .chart a:hover .c-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.social-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.social-btn svg { width: 26px; height: 26px; }
.social-btn:hover { transform: translateY(-2px); }
.social-btn.yt { background: #ff0000; }
.social-btn.ig { background: #e4405f; }
.social-btn.dc { background: #5865f2; }
.social-btn.wa { background: #25d366; }

@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .wrap { width: min(100% - 24px, 1120px); }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }
  .brand { font-size: 20px; }
  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  nav a, .btn-contact {
    margin: 0;
    padding: 6px 10px;
    font-size: 12px;
  }
  .home-grid { display: flex; flex-direction: column; gap: 22px; padding: 20px 0 8px; }
  .home-grid > div { order: 1; }
  .home-grid > aside { order: 2; }
  .home-grid aside {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-grid aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .portrait {
    width: 168px;
    max-width: 168px;
    height: 210px;
    max-height: 210px;
    object-fit: cover;
  }
  .slider.about-pic {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .side-card { width: 100%; }
  h1 { font-size: 26px; line-height: 1.2; }
  .section { padding: 22px 0 100px; }
  .home-award, .projects article { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; gap: 14px; }
  .projects article { padding: 8px 8px 16px; }
  .projects article .slider.feat { margin: 0 0 10px; }
  .chart-wrap {
    position: relative;
    top: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .chart, .c-dates, .chart-bottom { min-width: 980px; }
  .social-dock {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    flex-direction: row;
    background: rgba(243,241,235,.94);
    padding: 6px 8px;
    border-radius: 999px;
    gap: 8px;
  }
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 20px; height: 20px; }
}

.chart-wrap:has(.chart-flags) {
  overflow: hidden !important;
  padding: 0;
  background: #eceae6;
  width: 100%;
  max-width: 100%;
}
.tl-shell { position: relative; width: 100%; }
.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}
.tl-nav {
  position: absolute;
  top: 44%;
  z-index: 9;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
  cursor: pointer;
  font-size: 22px;
}
.tl-prev { left: 8px; }
.tl-next { right: 8px; }
.chart.chart-flags {
  display: block !important;
  align-items: unset;
  justify-content: unset;
  overflow: visible;
  border-bottom: 0;
  min-height: 320px;
  height: 320px;
  width: max-content;
  min-width: max-content;
}
.chart-flags .tl-flag {
  position: absolute;
  bottom: 0;
  transform: none;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}
.tl-stem {
  width: 2px;
  background: #c0bbb2;
  height: 28px;
  margin-right: 3px;
}
.tl-flag.lane-1 .tl-stem { height: 88px; }
.tl-flag.lane-2 .tl-stem { height: 148px; }
.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7a746a;
  border: 2px solid #eceae6;
  margin-top: -5px;
  margin-right: -1px;
}
.tl-card {
  background: #d8d5cf;
  color: #3a3a3a;
  border: 1px solid #c5c0b6;
  border-radius: 0 3px 3px 0;
  padding: 5px 8px;
  font-family: var(--sans);
  font-size: 11px;
  width: 96px;
  max-width: 96px;
  white-space: normal;
  overflow: hidden;
  text-align: left;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tl-flag:hover,
.tl-flag:focus,
.chart a.on {
  z-index: 8;
}
.tl-flag:hover .tl-card,
.tl-flag:focus .tl-card,
.chart a.on .tl-card {
  max-width: 260px;
  overflow: visible;
  background: #fff;
  border-color: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.tl-flag:hover .tl-stem,
.chart a.on .tl-stem { background: #111; }
.tl-flag:hover .tl-dot,
.tl-flag.on .tl-dot, .tl-flag:hover .tl-dot, .chart a.on .tl-dot { background: #c81e1e; border-color: #c81e1e; }
.tl-flag.on .tl-stem, .tl-flag:hover .tl-stem, .chart a.on .tl-stem { background: #c81e1e; }


.tl-scale {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 48px;
  display: flex;
  align-items: stretch;
  width: max-content;
  border-top: 2px solid #8a847a;
  background: #e8e6e1;
  z-index: 2;
}
.tl-cell {
  flex: 0 0 34px;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  color: #6a655c;
  padding-top: 10px;
}
.tl-cell i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 6px;
  background: #b0aaa0;
}
 .tl-cell-year {
  flex: 0 0 58px;
  color: #1a1a1a;
}
.tl-cell-year i { width: 2px; height: 10px; background: #333; }
.tl-cell-year b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.tl-flags { bottom: 48px; }

.chart-flags2 {
  height: 200px;
  min-height: 200px;
  width: 100%;
  background: #fff;
}
.tl-storyslider,
.tl-timeline .tl-storyslider,
.chart-flags2 .tl-storyslider,
.tl-slide-container,
.tl-slide {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.chart-flags2 .tl-menubar {
  display: block !important;
  bottom: 8px;
  right: 8px;
  left: auto;
  top: auto;
  z-index: 6;
}
.chart-flags2 .tl-menubar-button {
  opacity: 1;
}
.chart-flags2 [class^="tl-icon-"],
.chart-flags2 [class*=" tl-icon-"] {
  font-family: "tl-icons" !important;
}


.chart-flags2 .tl-timeaxis-major .tl-timeaxis-tick { height: 14px; }
.chart-flags2 .tl-timeaxis-major .tl-timeaxis-tick-text { font-weight: 700; }
.chart-flags2 .tl-timeaxis-minor .tl-timeaxis-tick { height: 7px; }
.chart-flags2 .tl-timeaxis-minor .tl-timeaxis-tick-text { font-weight: 400; font-size: 10px; }
.chart-flags2 .tl-timenav {
  height: 200px !important;
  border: 0;
}

.chart-flags2.tl-timeline,
.chart-flags2 .tl-timeline {
  height: 200px !important;
  min-height: 200px;
  box-shadow: none;
}
@media (max-width: 900px) {
  .chart-wrap:has(.chart-flags2) {
    position: relative !important;
    top: auto !important;
  }
}

.entry, .project { scroll-margin-top: 220px; }

.entry, .project { scroll-margin-top: 240px; }
.tl-flag-hit {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: block;
}
.chart-flags2 .tl-timemarker { position: absolute; cursor: pointer; }

#evt-span-start-marker,
#evt-span-end-marker,
.tl-timemarker[id="evt-span-start-marker"],
.tl-timemarker[id="evt-span-end-marker"] {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Portfolio items shown on the Achievements timeline */
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-content-container {
  background-color: #d7efe4 !important;
  border-color: #2f7a55 !important;
}
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-content-container .tl-headline,
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-content-container h2 {
  color: #1b4d34 !important;
}
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-line-left,
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-line-right {
  border-color: #2f7a55 !important;
}
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-line-left:after,
.tl-timemarker[id*="-portfolio-marker"] .tl-timemarker-line-right:after {
  background-color: #2f7a55 !important;
}
.tl-timemarker[id*="-portfolio-marker"].tl-timemarker-active .tl-timemarker-content-container {
  background-color: #bfe6d3 !important;
  border-color: #1f5c3f !important;
}

.tl-attribution,
.tl-timeline .tl-attribution,
.tl-timeline .tl-credit,
.chart-flags2 .tl-attribution,
.chart-flags2 .tl-credit,
.tl-attribution a {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tl-timemarker.is-page-on .tl-timemarker-content-container {
  background-color: #fff !important;
  border-color: #333 !important;
  box-shadow: 1px 1px 3px rgba(145,145,145,.5);
}
.tl-timemarker.is-page-on .tl-timemarker-line-left:after,
.tl-timemarker.is-page-on .tl-timemarker-line-right:after {
  background-color: #c34528 !important;
}
.tl-timemarker[id*="-portfolio-marker"].is-page-on .tl-timemarker-content-container {
  background-color: #bfe6d3 !important;
  border-color: #1f5c3f !important;
}
.tl-timemarker[id*="-portfolio-marker"].is-page-on .tl-timemarker-line-left:after,
.tl-timemarker[id*="-portfolio-marker"].is-page-on .tl-timemarker-line-right:after {
  background-color: #2f7a55 !important;
}

body { user-select: none; -webkit-user-select: none; }
.can-copy, a[href^="mailto:"], a[href^="tel:"] {
  user-select: text !important;
  -webkit-user-select: text !important;
}
.notice-bar, .intro-notice { display: none; }
body[data-notice="footer_bar"] .notice-bar {
  display: block;
  text-align: center;
  font-size: 13px;
  font-family: var(--sans);
  padding: 8px 16px;
  background: #efeae2;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
body[data-notice="footer_intro"] .intro-notice {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 18px;
}
.legal-foot { padding: 22px 0 28px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal, .footer-notice, .footer-links {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.footer-links a { text-decoration: underline; }
.terms-inline { margin-top: 10px; font-size: 13px; }
.terms-page p { max-width: 720px; }
@media (max-width: 900px) {
  .foot-row { flex-direction: column; }
}

.hero-video,
.slides figure,
.lightbox .lb-inner,
.media-wm {
  position: relative;
  container-type: inline-size;
}
.media-wm::after {
  content: "© bruce.id";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: var(--wm-align-y, center);
  justify-content: var(--wm-align-x, center);
  padding: 10px 14px;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: calc(var(--wm-pct, 15) * 1cqw);
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, var(--wm-opacity, 0.18));
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  pointer-events: none;
  z-index: 5;
}
.slider.about-pic.media-wm::after,
.portrait.media-wm::after {
  content: none;
  display: none;
}
